Make WordPress Core

Changeset 54663


Ignore:
Timestamp:
10/21/2022 09:10:29 PM (2 years 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.

Location:
trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r54084 r54663  
    272272do_action( 'enqueue_block_editor_assets' );
    273273
    274 // In order to duplicate classic meta box behaviour, we need to run the classic meta box actions.
     274// In order to duplicate classic meta box behavior, we need to run the classic meta box actions.
    275275require_once ABSPATH . 'wp-admin/includes/meta-boxes.php';
    276276register_and_do_post_meta_boxes( $post );
  • trunk/src/wp-admin/includes/update-core.php

    r54236 r54663  
    853853 * The contents of this array indicate any new bundled plugins/themes which
    854854 * should be installed with the WordPress Upgrade. These items will not be
    855  * re-installed in future upgrades, this behaviour is controlled by the
     855 * re-installed in future upgrades, this behavior is controlled by the
    856856 * introduced version present here being older than the current installed version.
    857857 *
  • trunk/src/wp-includes/class-wp-http-proxy.php

    r54133 r54663  
    4646     * Whether proxy connection should be used.
    4747     *
    48      * Constants which control this behaviour:
     48     * Constants which control this behavior:
    4949     *
    5050     * - `WP_PROXY_HOST`
     
    6262     * Whether authentication should be used.
    6363     *
    64      * Constants which control this behaviour:
     64     * Constants which control this behavior:
    6565     *
    6666     * - `WP_PROXY_USERNAME`
  • trunk/src/wp-includes/class-wp-http.php

    r54133 r54663  
    248248         *  - boolean false to avoid short-circuiting the response
    249249         *
    250          * Returning any other value may result in unexpected behaviour.
     250         * Returning any other value may result in unexpected behavior.
    251251         *
    252252         * @since 2.9.0
     
    326326        );
    327327
    328         // Ensure redirects follow browser behaviour.
     328        // Ensure redirects follow browser behavior.
    329329        $options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) );
    330330
     
    477477
    478478    /**
    479      * Match redirect behaviour to browser handling.
     479     * Match redirect behavior to browser handling.
    480480     *
    481481     * Changes 302 redirects from POST to GET to match browser handling. Per
  • trunk/src/wp-includes/deprecated.php

    r54524 r54663  
    20282028 *
    20292029 * A number of characters are removed from the URL. If the URL is for displaying
    2030  * (the default behaviour) ampersands are also replaced. The 'clean_url' filter
     2030 * (the default behavior) ampersands are also replaced. The 'clean_url' filter
    20312031 * is applied to the returned cleaned URL.
    20322032 *
  • 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 *
  • trunk/src/wp-includes/functions.php

    r54522 r54663  
    84378437 * Sorts the keys of an array alphabetically.
    84388438 * The array is passed by reference so it doesn't get returned
    8439  * which mimics the behaviour of ksort.
     8439 * which mimics the behavior of ksort.
    84408440 *
    84418441 * @since 6.0.0
  • trunk/src/wp-includes/rest-api.php

    r54518 r54663  
    33083308 *
    33093309 * This iterates over all error codes and messages to change it into a flat
    3310  * array. This enables simpler client behaviour, as it is represented as a
     3310 * array. This enables simpler client behavior, as it is represented as a
    33113311 * list in JSON rather than an object/map.
    33123312 *
  • trunk/src/wp-includes/rest-api/class-wp-rest-request.php

    r54133 r54663  
    1515 * Note: This implements ArrayAccess, and acts as an array of parameters when
    1616 * used in that manner. It does not use ArrayObject (as we cannot rely on SPL),
    17  * so be aware it may have non-array behaviour in some cases.
     17 * so be aware it may have non-array behavior in some cases.
    1818 *
    1919 * Note: When using features provided by ArrayAccess, be aware that WordPress deliberately
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r54339 r54663  
    194194     *
    195195     * This iterates over all error codes and messages to change it into a flat
    196      * array. This enables simpler client behaviour, as it is represented as a
     196     * array. This enables simpler client behavior, as it is represented as a
    197197     * list in JSON rather than an object/map.
    198198     *
  • trunk/tests/phpunit/tests/admin/wpPostsListTable.php

    r54215 r54663  
    226226        );
    227227
    228         // Mimic the behaviour of `wp_edit_posts_query()`:
     228        // Mimic the behavior of `wp_edit_posts_query()`:
    229229        if ( ! isset( $args['orderby'] ) ) {
    230230            $args['orderby']                = 'menu_order title';
  • trunk/tests/phpunit/tests/functions/cleanDirsizeCache.php

    r52780 r54663  
    106106
    107107    /**
    108      * Tests the behaviour of the function when the transient doesn't exist.
     108     * Tests the behavior of the function when the transient doesn't exist.
    109109     *
    110110     * @ticket 52241
     
    122122
    123123    /**
    124      * Tests the behaviour of the function when the transient does exist, but is not an array.
     124     * Tests the behavior of the function when the transient does exist, but is not an array.
    125125     *
    126126     * In particular, this tests that no PHP TypeErrors are being thrown.
  • trunk/tests/phpunit/tests/functions/wpListUtil.php

    r54421 r54663  
    943943     * Tests non-existent '$orderby' fields.
    944944     *
    945      * In PHP < 7.0.0, the sorting behaviour is different, which Core does not
     945     * In PHP < 7.0.0, the sorting behavior is different, which Core does not
    946946     * currently handle. Until this is fixed, or the minimum PHP version is
    947947     * raised to PHP 7.0.0+, these tests will be skipped on PHP < 7.0.0.
  • trunk/tests/phpunit/tests/rest-api/rest-application-passwords-controller.php

    r53882 r54663  
    993993        $actual = wp_is_application_passwords_supported();
    994994
    995         // Revert to default behaviour so that other tests are not affected.
     995        // Revert to default behavior so that other tests are not affected.
    996996        putenv( 'WP_ENVIRONMENT_TYPE' );
    997997
     
    10251025
    10261026        if ( 'default' === $expected ) {
    1027             // Revert to default behaviour so that other tests are not affected.
     1027            // Revert to default behavior so that other tests are not affected.
    10281028            putenv( 'WP_ENVIRONMENT_TYPE' );
    10291029        }
  • trunk/tests/phpunit/tests/theme.php

    r54236 r54663  
    357357        $this->assertFalse( $theme->exists() );
    358358
    359         // These return the bogus name - perhaps not ideal behaviour?
     359        // These return the bogus name - perhaps not ideal behavior?
    360360        $this->assertSame( $template, get_template() );
    361361        $this->assertSame( $style, get_stylesheet() );
  • trunk/tests/phpunit/wp-mail-real-test.php

    r47198 r54663  
    6060$original_wpdb = $GLOBALS['wpdb'];
    6161
    62 // Hide warnings during testing, since that's the normal WP behaviour.
     62// Hide warnings during testing, since that's the normal WP behavior.
    6363if ( ! WP_DEBUG ) {
    6464    error_reporting( E_ALL ^ E_NOTICE );
Note: See TracChangeset for help on using the changeset viewer.