Making WordPress.org

Changeset 13252


Ignore:
Timestamp:
02/29/2024 07:11:05 AM (14 months ago)
Author:
dd32
Message:

wporg-plugins-2024: Remove customizer support.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/functions.php

    r13249 r13252  
    234234
    235235/**
    236  * Add postMessage support for site title and description for the Theme Customizer.
    237  *
    238  * @param \WP_Customize_Manager $wp_customize Theme Customizer object.
    239  */
    240 function customize_register( $wp_customize ) {
    241     $wp_customize->get_setting( 'blogname' )->transport        = 'postMessage';
    242     $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
    243 }
    244 add_action( 'customize_register', __NAMESPACE__ . '\customize_register' );
    245 
    246 /**
    247  * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
    248  */
    249 function customize_preview_js() {
    250     wp_enqueue_script( 'wporg_plugins_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
    251 }
    252 add_action( 'customize_preview_init', __NAMESPACE__ . '\customize_preview_js' );
    253 
    254 /**
    255236 * Filters the list of CSS body classes for the current post or page.
    256237 *
     
    281262 */
    282263function nojs_body_tag() {
    283         echo "<script>document.body.className = document.body.className.replace('no-js','js');</script>\n";
     264    echo "<script>document.body.className = document.body.className.replace('no-js','js');</script>\n";
    284265}
    285266add_action( 'wp_body_open', __NAMESPACE__ . '\nojs_body_tag' );
Note: See TracChangeset for help on using the changeset viewer.