Make WordPress Core

Changeset 59043


Ignore:
Timestamp:
09/17/2024 11:48:26 PM (3 weeks ago)
Author:
helen
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/compat.php

    r58849 r59043  
    22/**
    33 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default.
     4 *
     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.
    49 *
    510 * @package PHP
Note: See TracChangeset for help on using the changeset viewer.