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.
Built from https://develop.svn.wordpress.org/trunk@53331


git-svn-id: http://core.svn.wordpress.org/trunk@52920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-05-02 13:13:08 +00:00
parent 056bbc95ea
commit 9c76c77398
6 changed files with 1 additions and 10 deletions

View File

@ -533,8 +533,6 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
* *
* @param string[] $preload_paths List of paths to preload. * @param string[] $preload_paths List of paths to preload.
* @param WP_Block_Editor_Context $block_editor_context The current block editor context. * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
*
* @return void
*/ */
function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) { function block_editor_rest_api_preload( array $preload_paths, $block_editor_context ) {
global $post, $wp_scripts, $wp_styles; global $post, $wp_scripts, $wp_styles;

View File

@ -1199,7 +1199,6 @@ final class WP_Customize_Nav_Menus {
* @since 4.7.0 * @since 4.7.0
* *
* @param array $available_item_type Menu item data to output, including title, type, and label. * @param array $available_item_type Menu item data to output, including title, type, and label.
* @return void
*/ */
protected function print_post_type_container( $available_item_type ) { protected function print_post_type_container( $available_item_type ) {
$id = sprintf( 'available-menu-items-%s-%s', $available_item_type['type'], $available_item_type['object'] ); $id = sprintf( 'available-menu-items-%s-%s', $available_item_type['type'], $available_item_type['object'] );
@ -1240,8 +1239,6 @@ final class WP_Customize_Nav_Menus {
* Prints the markup for available menu item custom links. * Prints the markup for available menu item custom links.
* *
* @since 4.7.0 * @since 4.7.0
*
* @return void
*/ */
protected function print_custom_links_available_menu_item() { protected function print_custom_links_available_menu_item() {
?> ?>

View File

@ -159,7 +159,6 @@ if ( ! class_exists( 'Translations', false ) ) :
* Merge $other in the current object. * Merge $other in the current object.
* *
* @param Object $other Another Translation object, whose translations will be merged in this one (passed by reference). * @param Object $other Another Translation object, whose translations will be merged in this one (passed by reference).
* @return void
*/ */
public function merge_with( &$other ) { public function merge_with( &$other ) {
foreach ( $other->entries as $entry ) { foreach ( $other->entries as $entry ) {

View File

@ -2933,7 +2933,6 @@ function wp_enqueue_block_support_styles( $style ) {
* *
* @param string $block_name The block-name, including namespace. * @param string $block_name The block-name, including namespace.
* @param array $args An array of arguments [handle,src,deps,ver,media]. * @param array $args An array of arguments [handle,src,deps,ver,media].
* @return void
*/ */
function wp_enqueue_block_style( $block_name, $args ) { function wp_enqueue_block_style( $block_name, $args ) {
$args = wp_parse_args( $args = wp_parse_args(

View File

@ -105,8 +105,6 @@ function wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_ID
* @since 5.8.0 * @since 5.8.0
* *
* @global string $_wp_current_template_content * @global string $_wp_current_template_content
*
* @return void
*/ */
function the_block_template_skip_link() { function the_block_template_skip_link() {
global $_wp_current_template_content; global $_wp_current_template_content;

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-beta3-53330'; $wp_version = '6.0-beta3-53331';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.