Changeset 7911
- Timestamp:
- 05/08/2008 07:19:58 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r7852 r7911 270 270 $lambda = create_function( '', 'return 5;' ); 271 271 add_filter( 'option_posts_per_rss', $lambda ); // hack - comments query doesn't accept per_page parameter 272 $comments_query = new WP_Query( 'feed=rss2&withcomments=1');272 $comments_query = new WP_Query(array('feed' => 'rss2', 'withcomments' => 1)); 273 273 remove_filter( 'option_posts_per_rss', $lambda ); 274 274 -
trunk/wp-admin/includes/taxonomy.php
r7483 r7911 48 48 return 0; 49 49 50 return wp_delete_term($cat_ID, 'category', "default=$default");50 return wp_delete_term($cat_ID, 'category', array('default' => $default)); 51 51 } 52 52 -
trunk/wp-admin/includes/template.php
r7883 r7911 490 490 function page_rows( $pages ) { 491 491 if ( ! $pages ) 492 $pages = get_pages( 'sort_column=menu_order');492 $pages = get_pages( array('sort_column' => 'menu_order') ); 493 493 494 494 if ( ! $pages ) … … 702 702 function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) { 703 703 if (!$categories ) 704 $categories = get_categories( 'hide_empty=0');704 $categories = get_categories( array('hide_empty' => 0) ); 705 705 706 706 if ( $categories ) { -
trunk/wp-includes/bookmark-template.php
r6828 r7911 173 173 if ( $categorize ) { 174 174 //Split the bookmarks into ul's for each category 175 $cats = get_terms('link_category', "category_name=$category_name&include=$category&orderby=$category_orderby&order=$category_order&hierarchical=0");175 $cats = get_terms('link_category', array('category_name' => $category_name, 'include' => $category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0)); 176 176 177 177 foreach ( (array) $cats as $cat ) { -
trunk/wp-includes/widgets.php
r7902 r7911 904 904 $number = 15; 905 905 906 $r = new WP_Query( "showposts=$number&what_to_show=posts&nopaging=0&post_status=publish");906 $r = new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish')); 907 907 if ($r->have_posts()) : 908 908 ?>
Note: See TracChangeset
for help on using the changeset viewer.