[wp-trac] [WordPress Trac] #58150: Use is_main_site() in WP_MS_Sites_List_Table::handle_row_actions()

WordPress Trac noreply at wordpress.org
Thu Apr 20 14:29:05 UTC 2023


#58150: Use is_main_site() in WP_MS_Sites_List_Table::handle_row_actions()
-------------------------------------+-------------------------------------
 Reporter:  SergeyBiryukov           |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  closed
 Priority:  low                      |   Milestone:  6.3
Component:  Networks and Sites       |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  good-first-bug has-      |     Focuses:  multisite, coding-
  patch                              |  standards
-------------------------------------+-------------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55666" 55666]:
 {{{
 #!CommitTicketReference repository="" revision="55666"
 Networks and Sites: Simplify the check for main site on Network Admin →
 Sites screen.

 This replaces a site ID comparison when displaying action links in
 `WP_MS_Sites_List_Table::handle_row_actions()` with a dedicated function
 call, `is_main_site()`, for clarity.

 Follow-up to [13918], [25125], [26120], [32644], [38814].

 Props ecorica, spacedmonkey, SergeyBiryukov.
 Fixes #58150.
 }}}

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


More information about the wp-trac mailing list