Skip to content

Commit 50f2d7d

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53331 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a913b73 commit 50f2d7d

7 files changed

Lines changed: 3 additions & 19 deletions

File tree

src/wp-includes/block-editor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,6 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
533533
*
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
*/
539537
function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) {
540538
global $post, $wp_scripts, $wp_styles;

src/wp-includes/class-wp-customize-nav-menus.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,6 @@ public function available_items_template() {
11991199
* @since 4.7.0
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 ) {
12051204
$id = sprintf( 'available-menu-items-%s-%s', $available_item_type['type'], $available_item_type['object'] );
@@ -1240,8 +1239,6 @@ protected function print_post_type_container( $available_item_type ) {
12401239
* Prints the markup for available menu item custom links.
12411240
*
12421241
* @since 4.7.0
1243-
*
1244-
* @return void
12451242
*/
12461243
protected function print_custom_links_available_menu_item() {
12471244
?>

src/wp-includes/pomo/translations.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ public function translate_plural( $singular, $plural, $count, $context = null )
159159
* Merge $other in the current object.
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 ) {
165164
foreach ( $other->entries as $entry ) {

src/wp-includes/script-loader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,6 @@ static function () use ( $style ) {
29332933
*
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
*/
29382937
function wp_enqueue_block_style( $block_name, $args ) {
29392938
$args = wp_parse_args(

src/wp-includes/theme-templates.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ function wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_ID
105105
* @since 5.8.0
106106
*
107107
* @global string $_wp_current_template_content
108-
*
109-
* @return void
110108
*/
111109
function the_block_template_skip_link() {
112110
global $_wp_current_template_content;

tests/phpunit/tests/kses.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public function data_wp_filter_post_kses_address() {
6161
*
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 ) {
6766
global $allowedposttags;
@@ -169,7 +168,6 @@ public function data_wp_kses_video() {
169168
*
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 ) {
175173
global $allowedposttags;

tests/phpunit/tests/user/query.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,15 +1969,12 @@ public function test_get_single_capability_multisite_blog_id() {
19691969

19701970
/**
19711971
* @ticket 53177
1972-
*
1973-
* @param $field
1974-
* @param $expected
1975-
*
1976-
* @return void
1977-
*
19781972
* @dataProvider data_returning_fields
19791973
*
19801974
* @covers WP_User_Query::prepare_query
1975+
*
1976+
* @param $field
1977+
* @param $expected
19811978
*/
19821979
public function test_returning_fields( $field, $expected_values ) {
19831980
$q = new WP_User_Query(
@@ -2101,8 +2098,6 @@ public function data_returning_fields() {
21012098
/**
21022099
* @ticket 53177
21032100
*
2104-
* @return void
2105-
*
21062101
* @covers WP_User_Query::prepare_query
21072102
*/
21082103
public function test_returning_field_user_registered() {

0 commit comments

Comments
 (0)