WordPress.org

Make WordPress Core

Ticket #6647: more_array_args.6647.2.diff

File more_array_args.6647.2.diff, 5.9 KB (added by hakre, 8 years ago)
  • wp-content/themes/default/sidebar.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    5555
    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>
    6565                        <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
  • wp-admin/import/wordpress.php

     
    360360                unset( $custom_taxonomies['link_category'] );
    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 ) {
    366366                        if ( isset( $_terms[$term->taxonomy] ) ) {
  • wp-includes/comment-template.php

     
    975975        if ( !empty( $css_class ) ) {
    976976                echo ' class="'.$css_class.'" ';
    977977        }
    978         $title = the_title_attribute( 'echo=0' );
     978        $title = the_title_attribute( array('echo' => 0 ) );
    979979
    980980        echo apply_filters( 'comments_popup_link_attributes', '' );
    981981
  • wp-trackback.php

     
    77
    88if (empty($wp)) {
    99        require_once('./wp-load.php');
    10         wp('tb=1');
     10        wp( array( 'tb' => '1' ) );
    1111}
    1212
    1313/**
  • wp-admin/options-reading.php

     
    4141        </label>
    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') ) : ?>
    4848<div id="front-page-warning" class="updated">
  • wp-content/themes/classic/sidebar.php

     
    2424 </li>
    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>
    3030 <li id="meta"><?php _e('Meta:'); ?>
  • wp-includes/deprecated.php

     
    592592function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
    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();
    598598        foreach ($links as $link)
  • wp-admin/includes/export.php

     
    5151unset($custom_taxonomies['post_tag']);
    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/**
    5757 * {@internal Missing Short Description}}
  • wp-content/themes/default/archives.php

     
    1616
    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
    2222<h2>Archives by Subject:</h2>
  • wp-content/themes/classic/header.php

     
    1717        </style>
    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(); ?>
    2323</head>