Make WordPress Core


Ignore:
Timestamp:
04/20/2023 02:28:50 PM (11 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.