From c63de7818e478ec8dcbd66ca78ad1e96f08ae824 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Wed, 20 Apr 2022 14:07:53 +0000 Subject: [PATCH] Docs: Docs: Use third-person singular verbs for function descriptions in `wp-includes/blocks.php` and `wp-includes/script-loader.php`, per the documentation standards. See #54729. git-svn-id: https://develop.svn.wordpress.org/trunk@53235 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/blocks.php | 6 +++--- src/wp-includes/script-loader.php | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index fc8f343fa8..93ff0f7aaa 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -407,7 +407,7 @@ function unregister_block_type( $name ) { } /** - * Determine whether a post or content string has blocks. + * Determines whether a post or content string has blocks. * * This test optimizes for performance rather than strict accuracy, detecting * the pattern of a block but not validating its structure. For strict accuracy, @@ -433,7 +433,7 @@ function has_blocks( $post = null ) { } /** - * Determine whether a $post or a string contains a specific block type. + * Determines whether a $post or a string contains a specific block type. * * This test optimizes for performance rather than strict accuracy, detecting * whether the block type exists but not validating its structure and not checking @@ -1229,7 +1229,7 @@ function get_query_pagination_arrow( $block, $is_next ) { } /** - * Allow multiple block styles. + * Allows multiple block styles. * * @since 5.9.0 * diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 3bd6152656..0f8eaeacad 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -647,7 +647,7 @@ function wp_scripts_get_suffix( $type = '' ) { } /** - * Register all WordPress scripts. + * Registers all WordPress scripts. * * Localizes some of them. * args order: `$scripts->add( 'handle', 'url', 'dependencies', 'query-string', 1 );` @@ -1427,7 +1427,7 @@ function wp_default_scripts( $scripts ) { } /** - * Assign default styles to $styles object. + * Assigns default styles to $styles object. * * Nothing is returned, because the $styles parameter is passed by reference. * Meaning that whatever object is passed will be updated without having to @@ -1733,7 +1733,7 @@ function wp_default_styles( $styles ) { } /** - * Reorder JavaScript scripts array to place prototype before jQuery. + * Reorders JavaScript scripts array to place prototype before jQuery. * * @since 2.3.1 * @@ -1765,7 +1765,7 @@ function wp_prototype_before_jquery( $js_array ) { } /** - * Load localized data on print rather than initialization. + * Loads localized data on print rather than initialization. * * These localizations require information that may not be loaded even by init. * @@ -2045,7 +2045,7 @@ function print_footer_scripts() { } /** - * Print scripts (internal use only) + * Prints scripts (internal use only) * * @ignore * @@ -2226,7 +2226,7 @@ function print_late_styles() { } /** - * Print styles (internal use only) + * Prints styles (internal use only). * * @ignore * @since 3.3.0 @@ -2273,7 +2273,7 @@ function _print_styles() { } /** - * Determine the concatenation and compression settings for scripts and styles. + * Determines the concatenation and compression settings for scripts and styles. * * @since 2.8.0 * @@ -2388,7 +2388,7 @@ function wp_enqueue_global_styles() { } /** - * Render the SVG filters supplied by theme.json. + * Renders the SVG filters supplied by theme.json. * * Note that this doesn't render the per-block user-defined * filters which are handled by wp_render_duotone_support, @@ -2835,7 +2835,7 @@ function wp_maybe_inline_styles() { } /** - * Make URLs relative to the WordPress installation. + * Makes URLs relative to the WordPress installation. * * @since 5.9.0 * @access private