Make WordPress Core

Changeset 52597


Ignore:
Timestamp:
01/18/2022 08:27:39 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typos in some DocBlocks.

Props kebbet.
See #54729.

Location:
trunk/src/wp-includes
Files:
9 edited

Legend:

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

    r52593 r52597  
    121121                $pattern_name = sanitize_title( $pattern['title'] );
    122122                $registry     = WP_Block_Patterns_Registry::get_instance();
    123                 // Some patterns might be already registerd as `core patterns with the `core` prefix.
     123                // Some patterns might be already registered as core patterns with the `core` prefix.
    124124                $is_registered = $registry->is_registered( $pattern_name ) || $registry->is_registered( "core/$pattern_name" );
    125125                if ( ! $is_registered ) {
  • trunk/src/wp-includes/block-template.php

    r52595 r52597  
    6767                $index                  = array_search( $relative_template_path, $templates, true );
    6868
    69                 // If the template hiearchy algorithm has successfully located a PHP template file,
     69                // If the template hierarchy algorithm has successfully located a PHP template file,
    7070                // we will only consider block templates with higher or equal specificity.
    7171                $templates = array_slice( $templates, 0, $index + 1 );
  • trunk/src/wp-includes/blocks.php

    r52558 r52597  
    11651165 *
    11661166 * @param WP_Block $block   Block instance.
    1167  * @param boolean  $is_next Flag for hanlding `next/previous` blocks.
     1167 * @param boolean  $is_next Flag for handling `next/previous` blocks.
    11681168 *
    11691169 * @return string|null Returns the constructed WP_Query arguments.
  • trunk/src/wp-includes/class-wp-http-encoding.php

    r52150 r52597  
    8989         * Warning: Magic numbers within. Due to the potential different formats that the compressed
    9090         * data may be returned in, some "magic offsets" are needed to ensure proper decompression
    91          * takes place. For a simple progmatic way to determine the magic offset in use, see:
     91         * takes place. For a simple pragmatic way to determine the magic offset in use, see:
    9292         * https://core.trac.wordpress.org/ticket/18273
    9393         *
  • trunk/src/wp-includes/class-wp-http.php

    r52422 r52597  
    137137         *                                             Default ABSPATH . WPINC . '/certificates/ca-bundle.crt'.
    138138         *     @type bool         $stream              Whether to stream to a file. If set to true and no filename was
    139          *                                             given, it will be droped it in the WP temp dir and its name will
     139         *                                             given, it will be dropped it in the WP temp dir and its name will
    140140         *                                             be set using the basename of the URL. Default false.
    141141         *     @type string       $filename            Filename of the file to write to when streaming. $stream must be
  • trunk/src/wp-includes/class-wp-locale.php

    r48991 r52597  
    139139                // Abbreviations for each day.
    140140                $this->weekday_abbrev[ __( 'Sunday' ) ]    = /* translators: Three-letter abbreviation of the weekday. */ __( 'Sun' );
    141                 $this->weekday_abbrev[ __( 'Monday' ) ]    = /* translators: Ttree-letter abbreviation of the weekday. */ __( 'Mon' );
     141                $this->weekday_abbrev[ __( 'Monday' ) ]    = /* translators: Three-letter abbreviation of the weekday. */ __( 'Mon' );
    142142                $this->weekday_abbrev[ __( 'Tuesday' ) ]   = /* translators: Three-letter abbreviation of the weekday. */ __( 'Tue' );
    143143                $this->weekday_abbrev[ __( 'Wednesday' ) ] = /* translators: Three-letter abbreviation of the weekday. */ __( 'Wed' );
  • trunk/src/wp-includes/class-wp-theme-json-resolver.php

    r52372 r52597  
    148148         * theme supports, if any. Note that if the same data
    149149         * is present in theme.json and in theme supports,
    150          * the theme.json takes precendence.
     150         * the theme.json takes precedence.
    151151         *
    152152         * @since 5.8.0
  • trunk/src/wp-includes/class-wp-theme-json.php

    r52434 r52597  
    15211521                 * values they introduce don't conflict with default values. We do so
    15221522                 * by checking the incoming slugs for theme presets and compare them
    1523                  * with the equivalent dfefault presets: if a slug is present as a default
     1523                 * with the equivalent default presets: if a slug is present as a default
    15241524                 * we remove it from the theme presets.
    15251525                 */
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php

    r51783 r52597  
    596596         * @param int   $menu_id          The term ID for the given menu.
    597597         * @param bool  $auto_add         Whether to auto-add or not.
    598          * @return array (Maybe) modified nav_menu_otions array.
     598         * @return array (Maybe) modified nav_menu_options array.
    599599         */
    600600        protected function filter_nav_menu_options_value( $nav_menu_options, $menu_id, $auto_add ) {
Note: See TracChangeset for help on using the changeset viewer.