Make WordPress Core

Changeset 32875


Ignore:
Timestamp:
06/19/2015 10:03:13 PM (9 years ago)
Author:
wonderboymusic
Message:

Add missing access modifiers to WP_Customize_Nav_Menus.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r32874 r32875  
    516516     * @return int
    517517     */
    518     function intval_base10( $value ) {
     518    public function intval_base10( $value ) {
    519519        return intval( $value, 10 );
    520520    }
     
    709709     * @since 4.3.0
    710710     */
    711     function customize_preview_init() {
     711    public function customize_preview_init() {
    712712        add_action( 'template_redirect', array( $this, 'render_menu' ) );
    713713        add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue_deps' ) );
     
    729729     * @return array
    730730     */
    731     function filter_wp_nav_menu_args( $args ) {
     731    public function filter_wp_nav_menu_args( $args ) {
    732732        $this->preview_nav_menu_instance_number += 1;
    733733        $args['instance_number'] = $this->preview_nav_menu_instance_number;
     
    765765     * @return null
    766766     */
    767     function filter_wp_nav_menu( $nav_menu_content, $args ) {
     767    public function filter_wp_nav_menu( $nav_menu_content, $args ) {
    768768        if ( ! empty( $args->can_partial_refresh ) && ! empty( $args->instance_number ) ) {
    769769            $nav_menu_content = sprintf(
     
    785785     * @return string
    786786     */
    787     function hash_nav_menu_args( $args ) {
     787    public function hash_nav_menu_args( $args ) {
    788788        return wp_hash( wp_create_nonce( self::RENDER_AJAX_ACTION ) . serialize( $args ) );
    789789    }
     
    794794     * @since 4.3.0
    795795     */
    796     function customize_preview_enqueue_deps() {
     796    public function customize_preview_enqueue_deps() {
    797797        wp_enqueue_script( 'customize-preview-nav-menus' );
    798798        wp_enqueue_style( 'customize-preview' );
     
    806806     * @since 4.3.0
    807807     */
    808     function export_preview_data() {
     808    public function export_preview_data() {
    809809
    810810        // Why not wp_localize_script? Because we're not localizing, and it forces values into strings.
     
    836836     * @see wp_nav_menu()
    837837     */
    838     function render_menu() {
     838    public function render_menu() {
    839839        if ( empty( $_POST[ self::RENDER_QUERY_VAR ] ) ) {
    840840            return;
Note: See TracChangeset for help on using the changeset viewer.