Changes from branches/2.7/wp-admin/includes/template.php at r10452 to trunk/wp-admin/includes/template.php at r10182
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r10452 r10182 440 440 * @param unknown_type $popular_cats 441 441 */ 442 function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null ) { 443 if ( empty($walker) || !is_a($walker, 'Walker') ) 444 $walker = new Walker_Category_Checklist; 445 442 function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false ) { 443 $walker = new Walker_Category_Checklist; 446 444 $descendants_and_self = (int) $descendants_and_self; 447 445 … … 2400 2398 2401 2399 if ( $for_post ) 2402 $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date _gmt || '0000-00-00 00:00:00' == $post->post_date_gmt) ) ? false : true;2400 $edit = ( in_array($post->post_status, array('draft', 'pending') ) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date ) ) ? false : true; 2403 2401 2404 2402 $tab_index_attribute = '';
Note: See TracChangeset
for help on using the changeset viewer.