$attributes Optional. Key-value pairs representing `" from * around an inline script after trimming whitespace. Typlically this * is used in conjunction with output buffering, where `ob_get_clean()` * is passed as the `$contents` argument. * * Example: * * // Strips exact literal empty SCRIPT tags. * $js = '; * 'sayHello();' === wp_remove_surrounding_empty_script_tags( $js ); * * // Otherwise if anything is different it warns in the JS console. * $js = ''; * 'console.error( ... )' === wp_remove_surrounding_empty_script_tags( $js ); * * @private * @since 6.4.0 * * @see wp_print_inline_script_tag() * @see wp_get_inline_script_tag() * * @param string $contents Script body with manually created SCRIPT tag literals. * @return string Script body without surrounding script tag literals, or * original contents if both exact literals aren't present. */ function wp_remove_surrounding_empty_script_tags( $contents ) { $contents = trim( $contents ); $opener = ''; if ( strlen( $contents ) > strlen( $opener ) + strlen( $closer ) && strtoupper( substr( $contents, 0, strlen( $opener ) ) ) === $opener && strtoupper( substr( $contents, -strlen( $closer ) ) ) === $closer ) { return substr( $contents, strlen( $opener ), -strlen( $closer ) ); } else { $error_message = __( 'Expected string to start with script tag (without attributes) and end with script tag, with optional whitespace.' ); _doing_it_wrong( __FUNCTION__, $error_message, '6.4' ); return sprintf( 'console.error(%s)', wp_json_encode( __( 'Function wp_remove_surrounding_empty_script_tags() used incorrectly in PHP.' ) . ' ' . $error_message ) ); } }
Fatal error: Uncaught Error: Call to undefined function Elementor\Core\Page_Assets\wp_register_style() in /home/sportuga/public_html/wp-content/plugins/elementor/core/page-assets/loader.php:104 Stack trace: #0 /home/sportuga/public_html/wp-content/plugins/elementor/core/page-assets/loader.php(113): Elementor\Core\Page_Assets\Loader->register_assets() #1 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(737): Elementor\Core\Page_Assets\Loader->__construct() #2 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(647): Elementor\Plugin->init_components() #3 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #4 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home/sportuga/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/sportuga/public_html/wp-settings.php(643): do_action('init') #7 /home/sportuga/public_html/wp-config.php(100): require_once('/home/sportuga/ in /home/sportuga/public_html/wp-content/plugins/elementor/core/page-assets/loader.php on line 104