Ticket #23805: 23805.diff
File 23805.diff, 1.5 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
859 859 foreach ( (array) $_POST['menu-item'] as $menu_item_data ) { 860 860 if ( 861 861 ! empty( $menu_item_data['menu-item-type'] ) && 862 'custom' != $menu_item_data['menu-item-type']&&862 in_array( $menu_item_data['menu-item-type'], array( 'post_type', 'taxonomy' ) ) && 863 863 ! empty( $menu_item_data['menu-item-object-id'] ) 864 864 ) { 865 865 switch( $menu_item_data['menu-item-type'] ) { … … 2179 2179 2180 2180 //if we are comparing two revisions, the first 'revision' represented by the leftmost 2181 2181 //slider position is the current revision, prepend a comparison to this revision 2182 if ( $compare_two_mode ) 2182 if ( $compare_two_mode ) 2183 2183 array_unshift( $revisions, get_post( $post_id ) ); 2184 2184 2185 2185 $count = -1; 2186 2186 2187 2187 foreach ( $revisions as $revision ) : … … 2192 2192 $count++; 2193 2193 // return blank data for diffs to the left of the left handle (for right handel model) 2194 2194 // or to the right of the right handle (for left handel model) 2195 if ( ( 0 != $left_handle_at && $count <= $left_handle_at ) || 2196 ( 0 != $right_handle_at && $count > $right_handle_at )) { 2195 if ( ( 0 != $left_handle_at && $count <= $left_handle_at ) || 2196 ( 0 != $right_handle_at && $count > $right_handle_at )) { 2197 2197 $alltherevisions[] = array ( 2198 2198 'ID' => $revision->ID, 2199 2199 ); 2200 2200 2201 2201 continue; 2202 2202 } 2203 2203