Make WordPress Core

Changeset 46759


Ignore:
Timestamp:
11/22/2019 06:14:45 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct spelling and capitalization in wp-includes/load.php:

  • Fix typo in is_blog_admin() description.
  • Capitalize PHP correctly in enable_wp_debug_mode_checks filter description.
  • Capitalize XML correctly in wp_is_xml_request() return value description.

Props stevegrunwell.
Fixes #48771.

File:
1 edited

Legend:

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

    r46660 r46759  
    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     *
     
    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/`
     
    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() {
Note: See TracChangeset for help on using the changeset viewer.