Changeset 32875
- Timestamp:
- 06/19/2015 10:03:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r32874 r32875 516 516 * @return int 517 517 */ 518 function intval_base10( $value ) {518 public function intval_base10( $value ) { 519 519 return intval( $value, 10 ); 520 520 } … … 709 709 * @since 4.3.0 710 710 */ 711 function customize_preview_init() {711 public function customize_preview_init() { 712 712 add_action( 'template_redirect', array( $this, 'render_menu' ) ); 713 713 add_action( 'wp_enqueue_scripts', array( $this, 'customize_preview_enqueue_deps' ) ); … … 729 729 * @return array 730 730 */ 731 function filter_wp_nav_menu_args( $args ) {731 public function filter_wp_nav_menu_args( $args ) { 732 732 $this->preview_nav_menu_instance_number += 1; 733 733 $args['instance_number'] = $this->preview_nav_menu_instance_number; … … 765 765 * @return null 766 766 */ 767 function filter_wp_nav_menu( $nav_menu_content, $args ) {767 public function filter_wp_nav_menu( $nav_menu_content, $args ) { 768 768 if ( ! empty( $args->can_partial_refresh ) && ! empty( $args->instance_number ) ) { 769 769 $nav_menu_content = sprintf( … … 785 785 * @return string 786 786 */ 787 function hash_nav_menu_args( $args ) {787 public function hash_nav_menu_args( $args ) { 788 788 return wp_hash( wp_create_nonce( self::RENDER_AJAX_ACTION ) . serialize( $args ) ); 789 789 } … … 794 794 * @since 4.3.0 795 795 */ 796 function customize_preview_enqueue_deps() {796 public function customize_preview_enqueue_deps() { 797 797 wp_enqueue_script( 'customize-preview-nav-menus' ); 798 798 wp_enqueue_style( 'customize-preview' ); … … 806 806 * @since 4.3.0 807 807 */ 808 function export_preview_data() {808 public function export_preview_data() { 809 809 810 810 // Why not wp_localize_script? Because we're not localizing, and it forces values into strings. … … 836 836 * @see wp_nav_menu() 837 837 */ 838 function render_menu() {838 public function render_menu() { 839 839 if ( empty( $_POST[ self::RENDER_QUERY_VAR ] ) ) { 840 840 return;
Note: See TracChangeset
for help on using the changeset viewer.