wp_print_scripts example

<?php         }
        break;
}

if ( ! wp_is_mobile() ) {
    ?> <script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> <?php }

wp_print_scripts( $scripts_to_print );
?> <script type="text/javascript"> jQuery( function( $ ) { $( '.hide-if-no-js' ).removeClass( 'hide-if-no-js' ); } ); </script> </body> </html>
<?php _e( 'If you want to run multiple WordPress installations in a single database, change this.' ); ?></p></td> </tr> </table> <?php         if ( isset( $_GET['noapi'] ) ) {
            ?> <input name="noapi" type="hidden" value="1" /><?php } ?> <input type="hidden" name="language" value="<?php echo esc_attr( $language ); ?>" /> <p class="step"><input name="submit" type="submit" value="<?php echo htmlspecialchars( __( 'Submit' ), ENT_QUOTES ); ?>" class="button button-large" /></p> </form> <?php         wp_print_scripts( 'password-toggle' );
        break;

    case 2:
        load_default_textdomain( $language );
        $GLOBALS['wp_locale'] = new WP_Locale();

        $dbname = trim( wp_unslash( $_POST['dbname'] ) );
        $uname  = trim( wp_unslash( $_POST['uname'] ) );
        $pwd    = trim( wp_unslash( $_POST['pwd'] ) );
        $dbhost = trim( wp_unslash( $_POST['dbhost'] ) );
        $prefix = trim( wp_unslash( $_POST['prefix'] ) );

        


        $html = do_shortcode( $parsed );

        global $wp_scripts;

        if ( ! empty( $wp_scripts ) ) {
            $wp_scripts->done = array();
        }

        ob_start();
        wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) );
        $scripts = ob_get_clean();

        $parsed = $styles . $html . $scripts;
    }

    if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) ||
        preg_match( '%<link [^>]*href="http://%', $parsed ) ) ) ) {
        // Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked.         wp_send_json_error(
            array(
                'type'    => 'not-ssl',
                
if ( $this->doing_ajax() ) {
            wp_die( $ajax_message );
        }

        if ( ! $message ) {
            $message = __( 'Something went wrong.' );
        }

        if ( $this->messenger_channel ) {
            ob_start();
            wp_enqueue_scripts();
            wp_print_scripts( array( 'customize-base' ) );

            $settings = array(
                'messengerArgs' => array(
                    'channel' => $this->messenger_channel,
                    'url'     => wp_customize_url(),
                ),
                'error'         => $ajax_message,
            );
            ?> <script> ( function( api, settings ) { var preview = new api.Messenger( settings.messengerArgs ); preview.send( 'iframe-loading-error', settings.error ); } )( wp.customize,
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 */
    

        $nonces       = $wp_customize->get_nonces();
        $request_args = array(
            'nonce'                      => $nonces['save'],
            'customize_changeset_uuid'   => $wp_customize->changeset_uuid(),
            'wp_customize'               => 'on',
            'customize_changeset_status' => 'publish',
        );
        ob_start();
        ?> <?php wp_print_scripts( array( 'wp-util' ) ); ?> <script> wp.ajax.post( 'customize_save', <?php echo wp_json_encode( $request_args ); ?> ); </script> <?php         $script = ob_get_clean();

        wp_die(
            '<h1>' . __( 'Your scheduled changes just published' ) . '</h1>' .
            '<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>' . $script,
            200
        );
    }
Home | Imprint | This part of the site doesn't use cookies.