WordPress.org

Make WordPress Core

Changeset 12657


Ignore:
Timestamp:
01/08/2010 08:34:39 AM (9 years ago)
Author:
westi
Message:

Switch to passing arrays instead of query strings to functions. Fixes #6647 props filosofo and hakre.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r12652 r12657  
    361361       
    362362        $custom_taxonomies = array_keys( $custom_taxonomies );
    363         $current_terms = (array) get_terms( $custom_taxonomies, 'get=all' );
     363        $current_terms = (array) get_terms( $custom_taxonomies, array('get' => 'all') );
    364364        $taxonomies = array();
    365365        foreach ( $current_terms as $term ) {
  • trunk/wp-admin/includes/export.php

    r12515 r12657  
    5252unset($custom_taxonomies['link_category']);
    5353$custom_taxonomies = array_keys($custom_taxonomies);
    54 $terms = (array) get_terms($custom_taxonomies, 'get=all');
     54$terms = (array) get_terms($custom_taxonomies, array('get' => 'all'));
    5555
    5656/**
  • trunk/wp-admin/options-reading.php

    r12546 r12657  
    4242    </p>
    4343<ul>
    44     <li><?php printf("<label for='page_on_front'>".__('Front page: %s')."</label>", wp_dropdown_pages("name=page_on_front&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_on_front'))); ?></li>
    45     <li><?php printf("<label for='page_for_posts'>".__('Posts page: %s')."</label>", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
     44    <li><?php printf("<label for='page_on_front'>" . __('Front page: %s') . "</label>", wp_dropdown_pages( array( 'name' => 'page_on_front', 'echo' => 0, 'show_option_none' => __('- Select -'), 'selected' => get_option('page_on_front')  ) ) ); ?></li>
     45    <li><?php printf("<label for='page_for_posts'>". __('Posts page: %s') . "</label>", wp_dropdown_pages( array( 'name' => 'page_for_posts','echo' => 0, 'show_option_none' => __('- Select -'), 'selected' => get_option('page_for_posts') ) ) ); ?></li>
    4646</ul>
    4747<?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
  • trunk/wp-content/themes/classic/header.php

    r10485 r12657  
    1818
    1919    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    20     <?php wp_get_archives('type=monthly&format=link'); ?>
     20    <?php wp_get_archives(array('type' => 'monthly', 'format' => 'link')); ?>
    2121    <?php //comments_popup_script(); // off by default ?>
    2222    <?php wp_head(); ?>
  • trunk/wp-content/themes/classic/sidebar.php

    r12589 r12657  
    2525 <li id="archives"><?php _e('Archives:'); ?>
    2626    <ul>
    27      <?php wp_get_archives('type=monthly'); ?>
     27     <?php wp_get_archives(array('type' => 'monthly')); ?>
    2828    </ul>
    2929 </li>
  • trunk/wp-content/themes/default/archives.php

    r9234 r12657  
    1717<h2>Archives by Month:</h2>
    1818    <ul>
    19         <?php wp_get_archives('type=monthly'); ?>
     19        <?php wp_get_archives(array('type' => 'monthly')); ?>
    2020    </ul>
    2121
  • trunk/wp-content/themes/default/sidebar.php

    r11791 r12657  
    5656            <li><h2>Archives</h2>
    5757                <ul>
    58                 <?php wp_get_archives('type=monthly'); ?>
     58                <?php wp_get_archives(array('type' => 'monthly')); ?>
    5959                </ul>
    6060            </li>
    6161
    62             <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
     62            <?php wp_list_categories(array('show_count' => 1, 'title_li' => '<h2>Categories</h2>')); ?>
    6363        </ul>
    6464        <ul>
  • trunk/wp-includes/comment-template.php

    r12598 r12657  
    984984        echo ' class="'.$css_class.'" ';
    985985    }
    986     $title = the_title_attribute( 'echo=0' );
     986    $title = the_title_attribute( array('echo' => 0 ) );
    987987
    988988    echo apply_filters( 'comments_popup_link_attributes', '' );
  • trunk/wp-includes/deprecated.php

    r12656 r12657  
    593593    _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
    594594
    595     $links = get_bookmarks("category=$category&orderby=$orderby&limit=$limit");
     595    $links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
    596596
    597597    $links_array = array();
  • trunk/wp-trackback.php

    r12284 r12657  
    88if (empty($wp)) {
    99    require_once('./wp-load.php');
    10     wp('tb=1');
     10    wp( array( 'tb' => '1' ) );
    1111}
    1212
Note: See TracChangeset for help on using the changeset viewer.