wp_scripts_get_suffix example


function wp_register_tinymce_scripts( $scripts$force_uncompressed = false ) {
    global $tinymce_version$concatenate_scripts$compress_scripts;

    $suffix     = wp_scripts_get_suffix();
    $dev_suffix = wp_scripts_get_suffix( 'dev' );

    script_concat_settings();

    $compressed = $compress_scripts && $concatenate_scripts && isset( $_SERVER['HTTP_ACCEPT_ENCODING'] )
        && false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) && ! $force_uncompressed;

    /* * Load tinymce.js when running from /src, otherwise load wp-tinymce.js.gz (in production) * or tinymce.min.js (when SCRIPT_DEBUG is true). */
    
'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version), 'twemoji' ),
        );
    } else {
        $settings['source'] = array(
            /** This filter is documented in wp-includes/class-wp-scripts.php */
            'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version), 'concatemoji' ),
        );
    }

    wp_print_inline_script_tag(
        sprintf( 'window._wpemojiSettings = %s;', wp_json_encode( $settings ) ) . "\n" .
            file_get_contents( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' )
    );
}

/** * Converts emoji characters to their equivalent HTML entity. * * This allows us to store emoji in a DB using the utf8 character set. * * @since 4.2.0 * * @param string $content The content to encode. * @return string The encoded content. */
esc_attr( $secret )
    );

    /* * Note that the script must be placed after the <blockquote> and <iframe> due to a regexp parsing issue in * `wp_filter_oembed_result()`. Because of the regex pattern starts with `|(<blockquote>.*?</blockquote>)?.*|` * wherein the <blockquote> is marked as being optional, if it is not at the beginning of the string then the group * will fail to match and everything will be matched by `.*` and not included in the group. This regex issue goes * back to WordPress 4.4, so in order to not break older installs this script must come at the end. */
    $output .= wp_get_inline_script_tag(
        file_get_contents( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js' )
    );

    /** * Filters the embed HTML output for a given post. * * @since 4.4.0 * * @param string $output The default iframe tag to display embedded content. * @param WP_Post $post Current post object. * @param int $width Width of the response. * @param int $height Height of the response. */
if ( ! wp_should_load_separate_core_block_assets() ) {
        return;
    }

    static $core_blocks_meta;
    if ( ! $core_blocks_meta ) {
        $core_blocks_meta = require ABSPATH . WPINC . '/blocks/blocks-json.php';
    }

    $includes_url  = includes_url();
    $includes_path = ABSPATH . WPINC . '/';
    $suffix        = wp_scripts_get_suffix();
    $wp_styles     = wp_styles();
    $style_fields  = array(
        'style'       => 'style',
        'editorStyle' => 'editor',
    );

    /* * Ignore transient cache when the development mode is set to 'core'. Why? To avoid interfering with * the core developer's workflow. */
    if ( ! wp_is_development_mode( 'core' ) ) {
        
Home | Imprint | This part of the site doesn't use cookies.