Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31104, comment 10


Ignore:
Timestamp:
04/14/2021 11:05:19 PM (5 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31104, comment 10

    initial v1  
    2222}}}
    2323
    24 However, it looks like most of these are also internal variables that a plugin should not really be concerned with, except for maybe `$network_wide`. As noted above, running any code depending on these values directly at inclusion time is bad practice that we may not necessarily want to support. As a workaround for `$network_wide`, plugins still have access to `$_GET['networkwide']`, see [21104] / #20995.
     24However, it looks like most of these are also internal variables that a plugin should not really be concerned with, except for maybe `$network_wide`. As noted above, running any code depending on these values directly at inclusion time is bad practice that we may not necessarily want to support. As a workaround for `$network_wide`, plugins still have access to `$_GET['networkwide']`, see [21104] / #20995. An activation hook callback also receives `$network_wide` as the first argument.
    2525
    2626So it seems like we can try [attachment:"31104.diff"] early in 5.8 and see what plugins break, if any, and then decide if any of these variables are necessary to keep for backward compatibility.