[wp-trac] [WordPress Trac] #48693: Silence ini_set caused error or check if function_exists first
WordPress Trac
noreply at wordpress.org
Tue Jan 7 23:25:04 UTC 2020
#48693: Silence ini_set caused error or check if function_exists first
----------------------------+-----------------------------
Reporter: drazon | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.3.3
Component: Bootstrap/Load | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => accepted
* milestone: Awaiting Review => 5.3.3
Comment:
For reference, this was previously fixed in [37448] / #36708, but the fix
was reverted in [45611/trunk/src/wp-includes/load.php] per the coding
standards.
Since this still appears to cause warnings, let's either add a
`function_exists()` check or restore the error suppression here for now
with an exception for PHPCS.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48693#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list