Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SLASHED-for-WP/includes/class-inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static function get() {
* @param array $inventory ['variables', 'sf_classes', 'is_classes'].
*/
self::$cache[ static::class ] = self::sanitize_inventory(
apply_filters( static::filter_slug() . '/inventory', self::$cache[ static::class ] )
apply_filters( static::filter_slug() . '/inventory', self::$cache[ static::class ] ) // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound -- hook name is prefixed via filter_slug() which returns the integration-specific prefix (e.g. slashed_bricks).
);

return self::$cache[ static::class ];
Expand Down Expand Up @@ -666,7 +666,7 @@ private static function resolve() {
* @return string Absolute path, or '' when no local copy is available.
*/
private static function find_local_bundle_path() {
$override = apply_filters( static::filter_slug() . '/inventory_local_path', null );
$override = apply_filters( static::filter_slug() . '/inventory_local_path', null ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound -- hook name is prefixed via filter_slug().

if ( false === $override ) {
return '';
Expand Down
1 change: 1 addition & 0 deletions SLASHED-for-WP/includes/class-manual-css-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function handle_save() {
if ( 'clear' === $action ) {
update_option( self::OPTION_KEY, '' );
} else {
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- CSS cannot be sanitized via wp_kses without corrupting valid rules (e.g. `>`, `[attr~="val"]`). The value is validated below and stored raw; output is escaped at render time.
$raw_css = isset( $_POST['slashed_manual_css'] )
? wp_unslash( $_POST['slashed_manual_css'] )
: '';
Expand Down
4 changes: 2 additions & 2 deletions SLASHED-for-WP/integrations/bricks/includes/class-classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ public function build_categories() {
return array(
array(
'id' => self::CATEGORY_LAYOUT,
'name' => __( 'SLASHED Layout', 'slashed-bricks' ),
'name' => __( 'SLASHED Layout', 'slashed' ),
),
array(
'id' => self::CATEGORY_STATE,
'name' => __( 'SLASHED State', 'slashed-bricks' ),
'name' => __( 'SLASHED State', 'slashed' ),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ private function count_class_references( $classes ) {
// are always the same, so the `truncated: true` flag is paired
// with reproducible content rather than whatever order MySQL
// happened to return rows in.
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- one-off scan for reBEMer; result set varies per call so caching would be incorrect.
$rows = $wpdb->get_col(
// phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $placeholders is a list of literal %s built from a constant key list; the values are bound through prepare().
$wpdb->prepare(
Expand Down
9 changes: 0 additions & 9 deletions SLASHED-for-WP/integrations/bricks/slashed-bricks.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
* is included. In standalone mode (this plugin activated directly), load
* everything from the shared includes directory two levels up.
*/
if ( ! defined( 'SLASHED_VERSION' ) ) {
add_action(
'init',
function () {
load_plugin_textdomain( 'slashed-bricks', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
);
}

if ( ! class_exists( 'Slashed_Token_Store' ) ) {
$slashed_shared = SLASHED_BRICKS_PATH . '../../includes/';
require_once $slashed_shared . 'class-settings.php';
Expand Down
9 changes: 0 additions & 9 deletions SLASHED-for-WP/integrations/gutenberg/slashed-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ function slashed_gutenberg_get_css_url() {
return apply_filters( 'slashed_gutenberg/css_bundle_url', $default_url );
}

if ( ! defined( 'SLASHED_VERSION' ) ) {
add_action(
'init',
function () {
load_plugin_textdomain( 'slashed-gutenberg', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
);
}

/**
* Standalone token pipeline bootstrap.
*
Expand Down
7 changes: 0 additions & 7 deletions SLASHED-for-WP/slashed.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
*/
define( 'SLASHED_CSS_REF', 'v0.5.46' );

add_action(
'init',
function () {
load_plugin_textdomain( 'slashed', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
);

// ─── Shared infrastructure ────────────────────────────────────────────

require_once SLASHED_PATH . 'includes/class-settings.php';
Expand Down