Skip to content

Commit 36f6f64

Browse files
committed
Bootstrap/Load: Give more context and warning about editing compat.php.
As indicated by name, this is a compatibility file which warrants more care to begin with, but it's still worth warning folks about how narrow function availability is in this file. Props jorbin, dmsnell, helen. See #61694. git-svn-id: https://develop.svn.wordpress.org/trunk@59043 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8f6ec89 commit 36f6f64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wp-includes/compat.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
/**
33
* WordPress implementation for PHP functions either missing from older PHP versions or not included by default.
44
*
5+
* This file is loaded extremely early and the functions can be relied upon by drop-ins.
6+
* Ergo, please ensure you do not rely on external functions when writing code for this file.
7+
* Only use functions built into PHP or are defined in this file and have adequate testing
8+
* and error suppression to ensure the file will run correctly and not break websites.
9+
*
510
* @package PHP
611
* @access private
712
*/

0 commit comments

Comments
 (0)