[wp-trac] [WordPress Trac] #32648: Deprecate `PRIMARY_NETWORK_ID` in favor of `MAIN_NETWORK_ID`

WordPress Trac noreply at wordpress.org
Sun Jun 14 21:58:05 UTC 2015

#32648: Deprecate `PRIMARY_NETWORK_ID` in favor of `MAIN_NETWORK_ID`
 Reporter:  jeremyfelt          |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  4.3
Component:  Networks and Sites  |    Version:  3.7
 Severity:  normal              |   Keywords:  dev-feedback
  Focuses:  multisite           |
 `PRIMARY_NETWORK_ID` was introduced as a new constant and
 `primary_network_id` as a new cache key in [25147]. As we use "main"
 rather than "primary" in every other place, it would be nice if we could
 rewrite history a bit and use `MAIN_NETWORK_ID` and `main_network_id`

 We're 6 releases in since these were introduced, so it's possible that
 we're stuck with what we have. If we can rename these, we should do it in
 the 4.3 release.

 See #30294 for introduction of `get_main_network_id()`, #25030 for
 introduction of `is_main_network()`.

Ticket URL: <https://core.trac.wordpress.org/ticket/32648>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list