Changeset 16104
- Timestamp:
- 10/30/2010 06:21:23 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r16096 r16104 744 744 require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; 745 745 746 /** 747 * For performance reasons, we omit some object properties from the checklist. 748 * The following is a hacky way to restore them when adding non-custom items. 749 */ 746 // For performance reasons, we omit some object properties from the checklist. 747 // The following is a hacky way to restore them when adding non-custom items. 748 750 749 $menu_items_data = (array) $_POST['menu-item']; 751 750 $menu_item_data = array_shift( $menu_items_data ); … … 768 767 $_menu_item = array_shift( $_menu_items ); 769 768 770 / ** Restore the missing menu item properties **/769 // Restore the missing menu item properties 771 770 $menu_item_data['menu-item-description'] = $_menu_item->description; 772 773 $menu_items_data = array( $menu_item_data ); 774 }771 } 772 773 $menu_items_data = array( $menu_item_data ); 775 774 776 775 $item_ids = wp_save_nav_menu_items( 0, $menu_items_data ); -
trunk/wp-includes/post.php
r16066 r16104 3098 3098 function get_page_by_path($page_path, $output = OBJECT, $post_type = 'page') { 3099 3099 global $wpdb; 3100 $null = null; 3100 3101 $page_path = rawurlencode(urldecode($page_path)); 3101 3102 $page_path = str_replace('%2F', '/', $page_path); … … 3111 3112 3112 3113 if ( empty($pages) ) 3113 return null;3114 return $null; 3114 3115 3115 3116 foreach ( $pages as $page ) { … … 3125 3126 } 3126 3127 3127 return null;3128 return $null; 3128 3129 } 3129 3130
Note: See TracChangeset
for help on using the changeset viewer.