Changeset 32874
- Timestamp:
- 06/19/2015 10:00:33 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r32822 r32874 119 119 ); 120 120 } 121 } else 121 } elseif ( 'taxonomy' === $obj_type ) { 122 122 $terms = get_terms( $taxonomy_or_post_type, array( 123 123 'child_of' => 0, … … 340 340 'type' => WP_Customize_Nav_Menu_Setting::TYPE, 341 341 ); 342 } else 342 } elseif ( preg_match( WP_Customize_Nav_Menu_Item_Setting::ID_PATTERN, $setting_id ) ) { 343 343 $setting_args = array( 344 344 'type' => WP_Customize_Nav_Menu_Item_Setting::TYPE, … … 363 363 if ( ! empty( $setting_args['type'] ) && WP_Customize_Nav_Menu_Setting::TYPE === $setting_args['type'] ) { 364 364 $setting_class = 'WP_Customize_Nav_Menu_Setting'; 365 } else 365 } elseif ( ! empty( $setting_args['type'] ) && WP_Customize_Nav_Menu_Item_Setting::TYPE === $setting_args['type'] ) { 366 366 $setting_class = 'WP_Customize_Nav_Menu_Item_Setting'; 367 367 } -
trunk/src/wp-includes/class-wp-customize-setting.php
r32806 r32874 859 859 if ( 'post_type' === $value['type'] ) { 860 860 $original_title = get_the_title( $value['object_id'] ); 861 } else 861 } elseif ( 'taxonomy' === $value['type'] ) { 862 862 $original_title = get_term_field( 'name', $value['object_id'], $value['object'], 'raw' ); 863 863 if ( is_wp_error( $original_title ) ) { … … 1738 1738 if ( $auto_add && false === $i ) { 1739 1739 array_push( $nav_menu_options['auto_add'], $this->term_id ); 1740 } else 1740 } elseif ( ! $auto_add && false !== $i ) { 1741 1741 array_splice( $nav_menu_options['auto_add'], $i, 1 ); 1742 1742 } -
trunk/src/wp-includes/class-wp-customize-widgets.php
r32650 r32874 748 748 $args['sanitize_callback'] = array( $this, 'sanitize_sidebar_widgets' ); 749 749 $args['sanitize_js_callback'] = array( $this, 'sanitize_sidebar_widgets_js_instance' ); 750 } else 750 } elseif ( preg_match( $this->setting_id_patterns['widget_instance'], $id, $matches ) ) { 751 751 $args['sanitize_callback'] = array( $this, 'sanitize_widget_instance' ); 752 752 $args['sanitize_js_callback'] = array( $this, 'sanitize_widget_js_instance' ); -
trunk/src/wp-includes/comment.php
r32769 r32874 973 973 if ( $orderby == $this->query_vars['meta_key'] || $orderby == 'meta_value' ) { 974 974 $parsed = "$wpdb->commentmeta.meta_value"; 975 } else 975 } elseif ( $orderby == 'meta_value_num' ) { 976 976 $parsed = "$wpdb->commentmeta.meta_value+0"; 977 } else 977 } elseif ( in_array( $orderby, $allowed_keys ) ) { 978 978 979 979 if ( isset( $meta_query_clauses[ $orderby ] ) ) { -
trunk/src/wp-includes/link-template.php
r32845 r32874 921 921 if ( $object_type ) { 922 922 $args['post_type'] = $object_type; 923 } else 923 } elseif ( ! empty( $tax->object_type ) ) { 924 924 $args['post_type'] = reset( $tax->object_type ); 925 925 } -
trunk/src/wp-includes/taxonomy.php
r32837 r32874 2713 2713 if ( in_array( $orderby, array( 'term_id', 'name', 'slug', 'term_group' ) ) ) { 2714 2714 $orderby = "t.$orderby"; 2715 } else 2715 } elseif ( in_array( $orderby, array( 'count', 'parent', 'taxonomy', 'term_taxonomy_id' ) ) ) { 2716 2716 $orderby = "tt.$orderby"; 2717 } else 2717 } elseif ( 'term_order' === $orderby ) { 2718 2718 $orderby = 'tr.term_order'; 2719 } else 2719 } elseif ( 'none' === $orderby ) { 2720 2720 $orderby = ''; 2721 2721 $order = ''; -
trunk/src/wp-includes/user.php
r32838 r32874 722 722 // Default order is by 'user_login'. 723 723 $ordersby = array( 'user_login' => $order ); 724 } else 724 } elseif ( is_array( $qv['orderby'] ) ) { 725 725 $ordersby = $qv['orderby']; 726 726 } else {
Note: See TracChangeset
for help on using the changeset viewer.