<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[12657] trunk:
  Switch to passing arrays instead of query strings to functions.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12657">12657</a></dd>
<dt>Author</dt> <dd>westi</dd>
<dt>Date</dt> <dd>2010-01-08 08:34:39 +0000 (Fri, 08 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Switch to passing arrays instead of query strings to functions. Fixes <a href="http://trac.wordpress.org/ticket/6647">#6647</a> props filosofo and hakre.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminimportwordpressphp">trunk/wp-admin/import/wordpress.php</a></li>
<li><a href="#trunkwpadminincludesexportphp">trunk/wp-admin/includes/export.php</a></li>
<li><a href="#trunkwpadminoptionsreadingphp">trunk/wp-admin/options-reading.php</a></li>
<li><a href="#trunkwpcontentthemesclassicheaderphp">trunk/wp-content/themes/classic/header.php</a></li>
<li><a href="#trunkwpcontentthemesclassicsidebarphp">trunk/wp-content/themes/classic/sidebar.php</a></li>
<li><a href="#trunkwpcontentthemesdefaultarchivesphp">trunk/wp-content/themes/default/archives.php</a></li>
<li><a href="#trunkwpcontentthemesdefaultsidebarphp">trunk/wp-content/themes/default/sidebar.php</a></li>
<li><a href="#trunkwpincludescommenttemplatephp">trunk/wp-includes/comment-template.php</a></li>
<li><a href="#trunkwpincludesdeprecatedphp">trunk/wp-includes/deprecated.php</a></li>
<li><a href="#trunkwptrackbackphp">trunk/wp-trackback.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminimportwordpressphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/import/wordpress.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/import/wordpress.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-admin/import/wordpress.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -360,7 +360,7 @@
</span><span class="cx">                 unset( $custom_taxonomies['link_category'] );
</span><span class="cx">                 
</span><span class="cx">                 $custom_taxonomies = array_keys( $custom_taxonomies );
</span><del>-                $current_terms = (array) get_terms( $custom_taxonomies, 'get=all' );
</del><ins>+                $current_terms = (array) get_terms( $custom_taxonomies, array('get' =&gt; 'all') );
</ins><span class="cx">                 $taxonomies = array();
</span><span class="cx">                 foreach ( $current_terms as $term ) {
</span><span class="cx">                         if ( isset( $_terms[$term-&gt;taxonomy] ) ) {
</span></span></pre></div>
<a id="trunkwpadminincludesexportphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/export.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/export.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-admin/includes/export.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx"> unset($custom_taxonomies['post_tag']);
</span><span class="cx"> unset($custom_taxonomies['link_category']);
</span><span class="cx"> $custom_taxonomies = array_keys($custom_taxonomies);
</span><del>-$terms = (array) get_terms($custom_taxonomies, 'get=all');
</del><ins>+$terms = (array) get_terms($custom_taxonomies, array('get' =&gt; 'all'));
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * {@internal Missing Short Description}}
</span></span></pre></div>
<a id="trunkwpadminoptionsreadingphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-reading.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-reading.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-admin/options-reading.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -41,8 +41,8 @@
</span><span class="cx">         &lt;/label&gt;
</span><span class="cx">         &lt;/p&gt;
</span><span class="cx"> &lt;ul&gt;
</span><del>-        &lt;li&gt;&lt;?php printf(&quot;&lt;label for='page_on_front'&gt;&quot;.__('Front page: %s').&quot;&lt;/label&gt;&quot;, wp_dropdown_pages(&quot;name=page_on_front&amp;echo=0&amp;show_option_none=&quot;.__('- Select -').&quot;&amp;selected=&quot; . get_option('page_on_front'))); ?&gt;&lt;/li&gt;
-        &lt;li&gt;&lt;?php printf(&quot;&lt;label for='page_for_posts'&gt;&quot;.__('Posts page: %s').&quot;&lt;/label&gt;&quot;, wp_dropdown_pages(&quot;name=page_for_posts&amp;echo=0&amp;show_option_none=&quot;.__('- Select -').&quot;&amp;selected=&quot; . get_option('page_for_posts'))); ?&gt;&lt;/li&gt;
</del><ins>+        &lt;li&gt;&lt;?php printf(&quot;&lt;label for='page_on_front'&gt;&quot; . __('Front page: %s') . &quot;&lt;/label&gt;&quot;, wp_dropdown_pages( array( 'name' =&gt; 'page_on_front', 'echo' =&gt; 0, 'show_option_none' =&gt; __('- Select -'), 'selected' =&gt; get_option('page_on_front')  ) ) ); ?&gt;&lt;/li&gt;
+        &lt;li&gt;&lt;?php printf(&quot;&lt;label for='page_for_posts'&gt;&quot;. __('Posts page: %s') . &quot;&lt;/label&gt;&quot;, wp_dropdown_pages( array( 'name' =&gt; 'page_for_posts','echo' =&gt; 0, 'show_option_none' =&gt; __('- Select -'), 'selected' =&gt; get_option('page_for_posts') ) ) ); ?&gt;&lt;/li&gt;
</ins><span class="cx"> &lt;/ul&gt;
</span><span class="cx"> &lt;?php if ( 'page' == get_option('show_on_front') &amp;&amp; get_option('page_for_posts') == get_option('page_on_front') ) : ?&gt;
</span><span class="cx"> &lt;div id=&quot;front-page-warning&quot; class=&quot;updated&quot;&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemesclassicheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/classic/header.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/classic/header.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-content/themes/classic/header.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx">         &lt;/style&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;link rel=&quot;pingback&quot; href=&quot;&lt;?php bloginfo('pingback_url'); ?&gt;&quot; /&gt;
</span><del>-        &lt;?php wp_get_archives('type=monthly&amp;format=link'); ?&gt;
</del><ins>+        &lt;?php wp_get_archives(array('type' =&gt; 'monthly', 'format' =&gt; 'link')); ?&gt;
</ins><span class="cx">         &lt;?php //comments_popup_script(); // off by default ?&gt;
</span><span class="cx">         &lt;?php wp_head(); ?&gt;
</span><span class="cx"> &lt;/head&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemesclassicsidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/classic/sidebar.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/classic/sidebar.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-content/themes/classic/sidebar.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -24,7 +24,7 @@
</span><span class="cx">  &lt;/li&gt;
</span><span class="cx">  &lt;li id=&quot;archives&quot;&gt;&lt;?php _e('Archives:'); ?&gt;
</span><span class="cx">         &lt;ul&gt;
</span><del>-         &lt;?php wp_get_archives('type=monthly'); ?&gt;
</del><ins>+         &lt;?php wp_get_archives(array('type' =&gt; 'monthly')); ?&gt;
</ins><span class="cx">         &lt;/ul&gt;
</span><span class="cx">  &lt;/li&gt;
</span><span class="cx">  &lt;li id=&quot;meta&quot;&gt;&lt;?php _e('Meta:'); ?&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemesdefaultarchivesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/default/archives.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/default/archives.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-content/themes/default/archives.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Archives by Month:&lt;/h2&gt;
</span><span class="cx">         &lt;ul&gt;
</span><del>-                &lt;?php wp_get_archives('type=monthly'); ?&gt;
</del><ins>+                &lt;?php wp_get_archives(array('type' =&gt; 'monthly')); ?&gt;
</ins><span class="cx">         &lt;/ul&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;h2&gt;Archives by Subject:&lt;/h2&gt;
</span></span></pre></div>
<a id="trunkwpcontentthemesdefaultsidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-content/themes/default/sidebar.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-content/themes/default/sidebar.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-content/themes/default/sidebar.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -55,11 +55,11 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;li&gt;&lt;h2&gt;Archives&lt;/h2&gt;
</span><span class="cx">                                 &lt;ul&gt;
</span><del>-                                &lt;?php wp_get_archives('type=monthly'); ?&gt;
</del><ins>+                                &lt;?php wp_get_archives(array('type' =&gt; 'monthly')); ?&gt;
</ins><span class="cx">                                 &lt;/ul&gt;
</span><span class="cx">                         &lt;/li&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php wp_list_categories('show_count=1&amp;title_li=&lt;h2&gt;Categories&lt;/h2&gt;'); ?&gt;
</del><ins>+                        &lt;?php wp_list_categories(array('show_count' =&gt; 1, 'title_li' =&gt; '&lt;h2&gt;Categories&lt;/h2&gt;')); ?&gt;
</ins><span class="cx">                 &lt;/ul&gt;
</span><span class="cx">                 &lt;ul&gt;
</span><span class="cx">                         &lt;?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?&gt;
</span></span></pre></div>
<a id="trunkwpincludescommenttemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/comment-template.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/comment-template.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-includes/comment-template.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -983,7 +983,7 @@
</span><span class="cx">         if ( !empty( $css_class ) ) {
</span><span class="cx">                 echo ' class=&quot;'.$css_class.'&quot; ';
</span><span class="cx">         }
</span><del>-        $title = the_title_attribute( 'echo=0' );
</del><ins>+        $title = the_title_attribute( array('echo' =&gt; 0 ) );
</ins><span class="cx"> 
</span><span class="cx">         echo apply_filters( 'comments_popup_link_attributes', '' );
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesdeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/deprecated.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/deprecated.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-includes/deprecated.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -592,7 +592,7 @@
</span><span class="cx"> function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
</span><span class="cx">         _deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
</span><span class="cx"> 
</span><del>-        $links = get_bookmarks(&quot;category=$category&amp;orderby=$orderby&amp;limit=$limit&quot;);
</del><ins>+        $links = get_bookmarks( array( 'category' =&gt; $category, 'orderby' =&gt; $orderby, 'limit' =&gt; $limit ) ) ;
</ins><span class="cx"> 
</span><span class="cx">         $links_array = array();
</span><span class="cx">         foreach ($links as $link)
</span></span></pre></div>
<a id="trunkwptrackbackphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-trackback.php (12656 => 12657)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-trackback.php        2010-01-08 08:29:55 UTC (rev 12656)
+++ trunk/wp-trackback.php        2010-01-08 08:34:39 UTC (rev 12657)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx"> 
</span><span class="cx"> if (empty($wp)) {
</span><span class="cx">         require_once('./wp-load.php');
</span><del>-        wp('tb=1');
</del><ins>+        wp( array( 'tb' =&gt; '1' ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre>
</div>
</div>

</body>
</html>