WordPress.org

Make WordPress Core

Ticket #48771: 48771.patch

File 48771.patch, 1.1 KB (added by stevegrunwell, 19 months ago)

Fix the spelling of "administrative" in the DocBlock for is_admin(), along with minor capitalization fixes ("XML" and "PHP")

  • src/wp-includes/load.php

     
    312312         *
    313313         * This filter runs before it can be used by plugins. It is designed for
    314314         * non-web run-times. Returning false causes the `WP_DEBUG` and related
    315          * constants to not be checked and the default php values for errors
     315         * constants to not be checked and the default PHP values for errors
    316316         * will be used unless you take care to update them yourself.
    317317         *
    318318         * @since 4.6.0
     
    990990}
    991991
    992992/**
    993  * Whether the current request is for a site's admininstrative interface.
     993 * Whether the current request is for a site's administrative interface.
    994994 *
    995995 * e.g. `/wp-admin/`
    996996 *
     
    15271527 *
    15281528 * @since 5.2.0
    15291529 *
    1530  * @return bool True if Accepts or Content-Type headers contain xml, false otherwise.
     1530 * @return bool True if Accepts or Content-Type headers contain XML, false otherwise.
    15311531 */
    15321532function wp_is_xml_request() {
    15331533        $accepted = array(