ncode( "{$handle}-inline-css" );
}
$output[] = sprintf(
'/*# sourceURL=%s */',
$source_url
);
}
$output = implode( "\n", $output );
if ( ! $display ) {
return $output;
}
printf(
"\n",
esc_attr( $handle ),
$this->type_attr,
$output
);
return true;
}
/**
* Overrides the add_data method from WP_Dependencies, to allow unsetting dependencies for conditional styles.
*
* @since 6.9.0
*
* @param string $handle Name of the item. Should be unique.
* @param string $key The data key.
* @param mixed $value The data value.
* @return bool True on success, false on failure.
*/
public function add_data( $handle, $key, $value ) {
if ( ! isset( $this->registered[ $handle ] ) ) {
return false;
}
if ( 'conditional' === $key ) {
$this->registered[ $handle ]->deps = array();
}
return parent::add_data( $handle, $key, $value );
}
/**
* Determines style dependencies.
*
* @since 2.6.0
*
* @see WP_Dependencies::all_deps()
*
* @param string|string[] $handles Item handle (string) or item handles (array of strings).
* @param bool $recursion Optional. Internal flag that function is calling itself.
* Default false.
* @param int|false $group Optional. Group level: level (int), no groups (false).
* Default false.
* @return bool True on success, false on failure.
*/
public function all_deps( $handles, $recursion = false, $group = false ) {
$result = parent::all_deps( $handles, $recursion, $group );
if ( ! $recursion ) {
/**
* Filters the array of enqueued styles before processing for output.
*
* @since 2.6.0
*
* @param string[] $to_do The list of enqueued style handles about to be processed.
*/
$this->to_do = apply_filters( 'print_styles_array', $this->to_do );
}
return $result;
}
/**
* Generates an enqueued style's fully-qualified URL.
*
* @since 2.6.0
*
* @param string $src The source of the enqueued style.
* @param string $ver The version of the enqueued style.
* @param string $handle The style's registered handle.
* @return string Style's fully-qualified URL.
*/
public function _css_href( $src, $ver, $handle ) {
if ( ! is_bool( $src ) && ! preg_match( '|^(https?:)?//|', $src ) && ! ( $this->content_url && str_starts_with( $src, $this->content_url ) ) ) {
$src = $this->base_url . $src;
}
if ( ! empty( $ver ) ) {
$src = add_query_arg( 'ver', $ver, $src );
}
/**
* Filters an enqueued style's fully-qualified URL.
*
* @since 2.6.0
*
* @param string $src The source URL of the enqueued style.
* @param string $handle The style's registered handle.
*/
$src = apply_filters( 'style_loader_src', $src, $handle );
return esc_url( $src );
}
/**
* Whether a handle's source is in a default directory.
*
* @since 2.8.0
*
* @param string $src The source of the enqueued style.
* @return bool True if found, false if not.
*/
public function in_default_dir( $src ) {
if ( ! $this->default_dirs ) {
return true;
}
foreach ( (array) $this->default_dirs as $test ) {
if ( str_starts_with( $src, $test ) ) {
return true;
}
}
return false;
}
/**
* Processes items and dependencies for the footer group.
*
* HTML 5 allows styles in the body, grab late enqueued items and output them in the footer.
*
* @since 3.3.0
*
* @see WP_Dependencies::do_items()
*
* @return string[] Handles of items that have been processed.
*/
public function do_footer_items() {
$this->do_items( false, 1 );
return $this->done;
}
/**
* Resets class properties.
*
* @since 3.3.0
*/
public function reset() {
$this->do_concat = false;
$this->concat = '';
$this->concat_version = '';
$this->print_html = '';
}
/**
* Gets a style-specific dependency warning message.
*
* @since 6.9.1
*
* @param string $handle Style handle with missing dependencies.
* @param string[] $missing_dependency_handles Missing dependency handles.
* @return string Formatted, localized warning message.
*/
protected function get_dependency_warning_message( $handle, $missing_dependency_handles ) {
return sprintf(
/* translators: 1: Style handle, 2: List of missing dependency handles. */
__( 'The style with the handle "%1$s" was enqueued with dependencies that are not registered: %2$s.' ),
$handle,
implode( wp_get_list_item_separator(), $missing_dependency_handles )
);
}
}
Fatal error: Uncaught Error: Class "WP_Styles" not found in /home/sanattv/public_html/staging.sanat.international/wp-includes/functions.wp-styles.php:24
Stack trace:
#0 /home/sanattv/public_html/staging.sanat.international/wp-includes/functions.wp-styles.php(132): wp_styles()
#1 /home/sanattv/public_html/staging.sanat.international/wp-content/plugins/elementor/core/page-assets/loader.php(172): wp_register_style('e-shapes', 'https://staging...', Array, '3.30.0')
#2 /home/sanattv/public_html/staging.sanat.international/wp-content/plugins/elementor/core/page-assets/loader.php(181): Elementor\Core\Page_Assets\Loader->register_assets()
#3 /home/sanattv/public_html/staging.sanat.international/wp-content/plugins/elementor/includes/plugin.php(749): Elementor\Core\Page_Assets\Loader->__construct()
#4 /home/sanattv/public_html/staging.sanat.international/wp-content/plugins/elementor/includes/plugin.php(660): Elementor\Plugin->init_components()
#5 /home/sanattv/public_html/staging.sanat.international/wp-includes/class-wp-hook.php(341): Elementor\Plugin->init('')
#6 /home/sanattv/public_html/staging.sanat.international/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#7 /home/sanattv/public_html/staging.sanat.international/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#8 /home/sanattv/public_html/staging.sanat.international/wp-settings.php(742): do_action('init')
#9 /home/sanattv/public_html/staging.sanat.international/wp-config.php(102): require_once('/home/sanattv/p...')
#10 /home/sanattv/public_html/staging.sanat.international/wp-load.php(50): require_once('/home/sanattv/p...')
#11 /home/sanattv/public_html/staging.sanat.international/wp-blog-header.php(13): require_once('/home/sanattv/p...')
#12 /home/sanattv/public_html/staging.sanat.international/index.php(17): require('/home/sanattv/p...')
#13 {main}
thrown in /home/sanattv/public_html/staging.sanat.international/wp-includes/functions.wp-styles.php on line 24