[wp-trac] [WordPress Trac] #32973: Can't hook in id column in Sites List Table, and the column could not be hidden.

WordPress Trac noreply at wordpress.org
Mon Jul 13 15:26:59 UTC 2015


#32973: Can't hook in id column in Sites List Table, and the column could not be
hidden.
--------------------------------+------------------------------
 Reporter:  cnyyk               |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  3.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  ui
--------------------------------+------------------------------

Comment (by cnyyk):

 Thanks for your reply. I Got it.

 Seems that there's another tiny bug:
 The same file, line 367

 {{{
 case 'plugins': ?>
         <?php if ( has_filter( 'wpmublogsaction' ) ) {
         echo "<td class='$column_name column-$column_name'$style>";
                 /**
                  * Fires inside the auxiliary 'Actions' column of the
 Sites list table.
                  *
                  * By default this column is hidden unless something is
 hooked to the action.
                  *
                  * @since MU
                  *
                  * @param int $blog_id The site ID.
                  */
                 do_action( 'wpmublogsaction', $blog['blog_id'] ); ?>
         </td>
         <?php }
         break;
 }}}

 The condition check is has_filter, but actually did the 'do_action'。
 Should be has_filter with apply_filter, or has_action then do_action here?
 I'm confused.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32973#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list