script_concat_settings example


    public static function print_tinymce_scripts() {
        global $concatenate_scripts;

        if ( self::$tinymce_scripts_printed ) {
            return;
        }

        self::$tinymce_scripts_printed = true;

        if ( ! isset( $concatenate_scripts ) ) {
            script_concat_settings();
        }

        wp_print_scripts( array( 'wp-tinymce' ) );

        echo "<script type='text/javascript'>\n" . self::wp_mce_translation() . "</script>\n";
    }

    /** * Print (output) the TinyMCE configuration and initialization scripts. * * @since 3.3.0 * * @global string $tinymce_version */

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). */
    if ( $compressed ) {
        $scripts->add( 'wp-tinymce', includes_url( 'js/tinymce/' ) . 'wp-tinymce.js', array()$tinymce_version );
    } else {
        
Home | Imprint | This part of the site doesn't use cookies.