Make WordPress Core


Ignore:
Timestamp:
10/21/2022 09:10:29 PM (18 months ago)
Author:
audrasjb
Message:

Docs: Align spelling with American English.

This changeset replaces "behaviour" with "behavior" in various docblocks.

Props kebbet, jrf.
See #56811, #56792.

File:
1 edited

Legend:

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

    r54482 r54663  
    944944    }
    945945
    946     // Account for the previous behaviour of the function when the $quote_style is not an accepted value.
     946    // Account for the previous behavior of the function when the $quote_style is not an accepted value.
    947947    if ( empty( $quote_style ) ) {
    948948        $quote_style = ENT_NOQUOTES;
     
    10241024    }
    10251025
    1026     // Match the previous behaviour of _wp_specialchars() when the $quote_style is not an accepted value.
     1026    // Match the previous behavior of _wp_specialchars() when the $quote_style is not an accepted value.
    10271027    if ( empty( $quote_style ) ) {
    10281028        $quote_style = ENT_NOQUOTES;
     
    43354335 *
    43364336 * NOTE: Since 4.8.3, '%' characters will be replaced with a placeholder string,
    4337  * this prevents certain SQLi attacks from taking place. This change in behaviour
     4337 * this prevents certain SQLi attacks from taking place. This change in behavior
    43384338 * may cause issues for code that expects the return value of esc_sql() to be useable
    43394339 * for other purposes.
     
    43554355 *
    43564356 * A number of characters are removed from the URL. If the URL is for displaying
    4357  * (the default behaviour) ampersands are also replaced. The {@see 'clean_url'} filter
     4357 * (the default behavior) ampersands are also replaced. The {@see 'clean_url'} filter
    43584358 * is applied to the returned cleaned URL.
    43594359 *
Note: See TracChangeset for help on using the changeset viewer.