[wp-trac] [WordPress Trac] #37684: Allow sites to have filterable "states" akin to posts & media

WordPress Trac noreply at wordpress.org
Wed Jun 5 14:56:17 UTC 2019


#37684: Allow sites to have filterable "states" akin to posts & media
-----------------------------------+------------------------------
 Reporter:  johnjamesjacoby        |       Owner:  johnjamesjacoby
     Type:  enhancement            |      Status:  assigned
 Priority:  normal                 |   Milestone:  5.3
Component:  Networks and Sites     |     Version:  3.0
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:  multisite
-----------------------------------+------------------------------

Comment (by pbiron):

 Another change that I think **might** be warranted would be to change

 {{{
 !#php
 foreach ( $this->status_list as $status => $col ) {
         if ( $_site->{$status} == 1 ) {
                 $site_states[] = $col[1];
         }
 }
 }}}

 to

 {{{
 !#php
 foreach ( $this->status_list as $status => $col ) {
         if ( $_site->{$status} == 1 ) {
                 $site_states[ $col[0] ] = $col[1];
         }
 }
 }}}

 That is, to give indexes to the states related to site status (e.g., span,
 deleted, etc).

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


More information about the wp-trac mailing list