WordPress.org

Make WordPress Core

Changeset 25813


Ignore:
Timestamp:
10/16/2013 06:26:04 PM (8 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: implement tag auto-complete for featured content settings, and uppercase __CLASS__ for consistency. Props kovshenin, see #25549.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r25808 r25813  
    3131     */
    3232    public static function setup() {
    33         add_action( 'init', array( __class__, 'init' ), 30 );
     33        add_action( 'init', array( __CLASS____, 'init' ), 30 );
    3434    }
    3535
     
    309309     */
    310310    public static function register_setting() {
    311         add_settings_field( 'featured-content', __( 'Featured content', 'twentyfourteen' ), array( __class__, 'render_form' ), 'reading' );
    312         register_setting( 'reading', 'featured-content', array( __class__, 'validate_settings' ) );
     311        add_settings_field( 'featured-content', __( 'Featured content', 'twentyfourteen' ), array( __CLASS__, 'render_form' ), 'reading' );
     312        register_setting( 'reading', 'featured-content', array( __CLASS__, 'validate_settings' ) );
    313313    }
    314314
     
    327327                $tag_name = $tag->name;
    328328        }
     329
     330        wp_enqueue_script( 'twentyfourteen-admin', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131016', true );
    329331        ?>
    330332        <div id="featured-content-ui">
Note: See TracChangeset for help on using the changeset viewer.