[wp-trac] [WordPress Trac] #61029: Multisite state 'Delete' can only have a value of 1or 0. Not 2. So why is 2 mentioned in the code?

WordPress Trac noreply at wordpress.org
Thu Apr 18 01:23:35 UTC 2024


#61029: Multisite state 'Delete' can only have a value of 1or 0. Not 2. So why is 2
mentioned in the code?
--------------------------------+------------------------------
 Reporter:  ignatiusjeroe       |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------
Changes (by dd32):

 * component:  General => Networks and Sites


Comment:

 The '2' state is a historical vestiage of Multisite.

 While it's likely not used by Core today, it was previously used by
 WordPress MU (WordPress Multisite, pre WordPress 3.0)

 Here's the earliest reference I can find to it:
 https://mu.trac.wordpress.org/browser/trunk/wp-inst/wp-
 settings.php?rev=551&marks=198-203#L198

 While this code branch could be removed (Combining deleted == 1 and
 deleted == 2), it would likely be at the disadvantage of breaking existing
 sites that were expecting that specific error page, or plugins which
 expected Core to handle it.

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


More information about the wp-trac mailing list