Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29684, comment 31


Ignore:
Timestamp:
08/31/2017 08:44:38 AM (7 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29684, comment 31

    initial v1  
    44Ah right, I missed this. Let's add these two tests back in, and in `get_main_site_id()` call `get_network( get_site()->network_id )`. A bit strange, but that should make it work.
    55
     6@spacedmonkey
     7
    68> Because there is a magic getting in WP_Network, calling site_id will call `get_main_site_id`. The reason you want to make sure the magic getter run, is that it only runs once. This stops the logic running multiple times.
    79