Make WordPress Core

Changeset 53331


Ignore:
Timestamp:
05/02/2022 01:11:07 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Remove @return void from various DocBlocks.

Per the documentation standards, it should not be used outside of the default bundled themes.

Follow-up to [38767], [47055], [49697], [50956], [51003], [52069], [53255].

See #54729.

Location:
trunk
Files:
7 edited

Legend:

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

    r53302 r53331  
    534534 * @param string[]                $preload_paths        List of paths to preload.
    535535 * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
    536  *
    537  * @return void
    538536 */
    539537function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) {
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r53279 r53331  
    12001200     *
    12011201     * @param array $available_item_type Menu item data to output, including title, type, and label.
    1202      * @return void
    12031202     */
    12041203    protected function print_post_type_container( $available_item_type ) {
     
    12411240     *
    12421241     * @since 4.7.0
    1243      *
    1244      * @return void
    12451242     */
    12461243    protected function print_custom_links_available_menu_item() {
  • trunk/src/wp-includes/pomo/translations.php

    r51919 r53331  
    160160         *
    161161         * @param Object $other Another Translation object, whose translations will be merged in this one (passed by reference).
    162          * @return void
    163162         */
    164163        public function merge_with( &$other ) {
  • trunk/src/wp-includes/script-loader.php

    r53306 r53331  
    29342934 * @param string $block_name The block-name, including namespace.
    29352935 * @param array  $args       An array of arguments [handle,src,deps,ver,media].
    2936  * @return void
    29372936 */
    29382937function wp_enqueue_block_style( $block_name, $args ) {
  • trunk/src/wp-includes/theme-templates.php

    r52347 r53331  
    106106 *
    107107 * @global string $_wp_current_template_content
    108  *
    109  * @return void
    110108 */
    111109function the_block_template_skip_link() {
  • trunk/tests/phpunit/tests/kses.php

    r52969 r53331  
    6262     * @param string $string        Test string for kses.
    6363     * @param string $expect_string Expected result after passing through kses.
    64      * @return void
    6564     */
    6665    public function test_wp_filter_post_kses_a( $string, $expect_string ) {
     
    170169     * @param string $string        Test string for kses.
    171170     * @param string $expect_string Expected result after passing through kses.
    172      * @return void
    173171     */
    174172    public function test_wp_filter_post_kses_abbr( $string, $expect_string ) {
  • trunk/tests/phpunit/tests/user/query.php

    r53327 r53331  
    19701970    /**
    19711971     * @ticket 53177
     1972     * @dataProvider data_returning_fields
     1973     *
     1974     * @covers WP_User_Query::prepare_query
    19721975     *
    19731976     * @param $field
    19741977     * @param $expected
    1975      *
    1976      * @return void
    1977      *
    1978      * @dataProvider data_returning_fields
    1979      *
    1980      * @covers WP_User_Query::prepare_query
    19811978     */
    19821979    public function test_returning_fields( $field, $expected_values ) {
     
    21022099     * @ticket 53177
    21032100     *
    2104      * @return void
    2105      *
    21062101     * @covers WP_User_Query::prepare_query
    21072102     */
Note: See TracChangeset for help on using the changeset viewer.