<!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" />
<title>[30679] trunk/src/wp-admin/includes: Improve various `@param` docs for List Tables.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/30679">30679</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/30679","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2014-12-01 00:32:19 +0000 (Mon, 01 Dec 2014)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Improve various `@param` docs for List Tables.
See <a href="https://core.trac.wordpress.org/ticket/30224">#30224</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasswplisttablephp">trunk/src/wp-admin/includes/class-wp-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmedialisttablephp">trunk/src/wp-admin/includes/class-wp-media-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmssiteslisttablephp">trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmsthemeslisttablephp">trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmsuserslisttablephp">trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpplugininstalllisttablephp">trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswppluginslisttablephp">trunk/src/wp-admin/includes/class-wp-plugins-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswppostslisttablephp">trunk/src/wp-admin/includes/class-wp-posts-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswptermslisttablephp">trunk/src/wp-admin/includes/class-wp-terms-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpthemeslisttablephp">trunk/src/wp-admin/includes/class-wp-themes-list-table.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasswplisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -479,6 +479,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access protected
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param string $post_type
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function months_dropdown( $post_type ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb, $wp_locale;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -535,6 +537,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access protected
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param string $current_mode
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function view_switcher( $current_mode ) {
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -601,6 +605,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access protected
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $option
+ * @param int $default
</ins><span class="cx" style="display: block; padding: 0 10px"> * @return int
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function get_items_per_page( $option, $default = 20 ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -629,6 +635,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access protected
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param string $which
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function pagination( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $this->_pagination_args ) ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -929,6 +937,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access protected
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @param string $which
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function display_tablenav( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'top' == $which )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -954,6 +963,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.1.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access protected
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param string $which
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function extra_tablenav( $which ) {}
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmedialisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-media-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-media-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-media-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -104,6 +104,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $actions;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function extra_tablenav( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( 'bar' !== $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -146,9 +149,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> _e( 'No media attachments found.' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function pagination( $which ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- global $mode;
-
</del><span class="cx" style="display: block; padding: 0 10px"> parent::pagination( $which );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -493,6 +497,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endwhile;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param WP_Post $post
+ * @param string $att_title
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> private function _get_row_actions( $post, $att_title ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $actions = array();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmssiteslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -146,6 +146,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $actions;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function pagination( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $mode;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmsthemeslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -142,6 +142,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @staticvar string $term
+ * @param WP_Theme $theme
+ * @return bool
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function _search_callback( $theme ) {
</span><span class="cx" style="display: block; padding: 0 10px"> static $term;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( is_null( $term ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -163,6 +168,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Not used by any core columns.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $orderby
+ * @global string $order
+ * @param array $theme_a
+ * @param array $theme_b
+ * @return int
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function _order_callback( $theme_a, $theme_b ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $orderby, $order;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -266,6 +278,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->single_row( $theme );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $status
+ * @global int $page
+ * @global string $s
+ * @global array $totals
+ * @param WP_Theme $theme
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function single_row( $theme ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $status, $page, $s, $totals;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmsuserslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -102,6 +102,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $role_links;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $mode
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function pagination( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $mode;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpplugininstalllisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -268,6 +268,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->display_tablenav( 'bottom' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function display_tablenav( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $GLOBALS['tab'] === 'featured' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -306,6 +309,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return array();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $plugin_a
+ * @param object $plugin_b
+ * @return int
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> private function order_callback( $plugin_a, $plugin_b ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $orderby = $this->orderby;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) {
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswppluginslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-plugins-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-plugins-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-plugins-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -191,6 +191,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @staticvar string $term
+ * @param array $plugin
+ * @return boolean
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function _search_callback( $plugin ) {
</span><span class="cx" style="display: block; padding: 0 10px"> static $term;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( is_null( $term ) )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -205,6 +210,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return false;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $orderby
+ * @global string $order
+ * @param array $plugin_a
+ * @param array $plugin_b
+ * @return int
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function _order_callback( $plugin_a, $plugin_b ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $orderby, $order;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -308,6 +320,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $actions;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $status
+ * @param string $which
+ * @return null
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function bulk_actions( $which = '' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $status;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -317,6 +334,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> parent::bulk_actions( $which );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $status
+ * @param string $which
+ * @return null
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function extra_tablenav( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $status;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -352,6 +374,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->single_row( array( $plugin_file, $plugin_data ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $status
+ * @global int $page
+ * @global string $s
+ * @global array $totals
+ * @param array $item
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function single_row( $item ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $status, $page, $s, $totals;
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswppostslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-posts-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -217,6 +217,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $actions;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global int $cat
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function extra_tablenav( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $cat;
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -268,6 +272,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return parent::current_action();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $mode
+ * @param string $which
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> protected function pagination( $which ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $mode;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -375,6 +383,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global WP_Query $wp_query
+ * @global int $per_page
+ * @param array $posts
+ * @param int $level
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function display_rows( $posts = array(), $level = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wp_query, $per_page;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -390,6 +404,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $mode
+ * @param array $posts
+ * @param int $level
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> private function _display_rows( $posts, $level = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $mode;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -405,6 +424,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $this->single_row( $post, $level );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global wpdb $wpdb
+ * @param array $pages
+ * @param int $pagenum
+ * @param int $per_page
+ * @return bool|null
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $wpdb;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -542,6 +568,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> unset( $children_pages[$parent] ); //required in order to keep track of orphans
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $mode
+ * @staticvar string $alternate
+ * @param WP_Post $post
+ * @param int $level
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function single_row( $post, $level = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $mode;
</span><span class="cx" style="display: block; padding: 0 10px"> static $alternate;
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswptermslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-terms-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-terms-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-terms-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -202,6 +202,16 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param string $taxonomy
+ * @param array $terms
+ * @param array $children
+ * @param int $start
+ * @param int $per_page
+ * @param int $count
+ * @param int $parent
+ * @param int $level
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> private function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $end = $start + $per_page;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -250,6 +260,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @global string $taxonomy
+ * @staticvar string $row_class
+ * @param object $tag
+ * @param int $level
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function single_row( $tag, $level = 0 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> global $taxonomy;
</span><span class="cx" style="display: block; padding: 0 10px"> $tag = sanitize_term( $tag, $taxonomy );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -264,6 +280,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> echo '</tr>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_cb( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $default_term = get_option( 'default_' . $this->screen->taxonomy );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -274,6 +294,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return ' ';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_name( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $taxonomy = $this->screen->taxonomy;
</span><span class="cx" style="display: block; padding: 0 10px"> $tax = get_taxonomy( $taxonomy );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -348,15 +372,27 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $out;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_description( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return $tag->description;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_slug( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /** This filter is documented in wp-admin/edit-tag-form.php */
</span><span class="cx" style="display: block; padding: 0 10px"> return apply_filters( 'editable_slug', $tag->slug );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_posts( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $count = number_format_i18n( $tag->count );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -381,6 +417,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return "<a href='" . esc_url ( add_query_arg( $args, 'edit.php' ) ) . "'>$count</a>";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_links( $tag ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $count = number_format_i18n( $tag->count );
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $count )
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -388,6 +428,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $count;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param object $tag
+ * @param string $column_name
+ * @return string
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $tag, $column_name ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Filter the displayed columns in the terms list table.
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpthemeslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-themes-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-themes-list-table.php 2014-12-01 00:12:05 UTC (rev 30678)
+++ trunk/src/wp-admin/includes/class-wp-themes-list-table.php 2014-12-01 00:32:19 UTC (rev 30679)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -95,6 +95,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param string $which
+ * @return null
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function tablenav( $which = 'top' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $this->get_pagination_arg( 'total_pages' ) <= 1 )
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -219,6 +223,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> endforeach;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * @param WP_Theme $theme
+ * @return bool
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> public function search_theme( $theme ) {
</span><span class="cx" style="display: block; padding: 0 10px"> // Search the features
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( $this->features as $word ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -255,6 +263,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 3.4.0
</span><span class="cx" style="display: block; padding: 0 10px"> * @access public
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @param array $extra_args
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function _js_vars( $extra_args = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';
</span></span></pre>
</div>
</div>
</body>
</html>