mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
General: Remove discouraged @return void
annotations.
Such `@return void` annotations must not be used in WordPress core's PHP code, except bundled themes, third-party libraries, and PHP compatibility shims. Props isabel_brison, swissspidy. Fixes #59619. Built from https://develop.svn.wordpress.org/trunk@56943 git-svn-id: http://core.svn.wordpress.org/trunk@56454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a69a0dfcb0
commit
41cf4f1521
@ -478,7 +478,6 @@ function _flatten_blocks( &$blocks ) {
|
|||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @param array $block a parsed block.
|
* @param array $block a parsed block.
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function _inject_theme_attribute_in_template_part_block( &$block ) {
|
function _inject_theme_attribute_in_template_part_block( &$block ) {
|
||||||
if (
|
if (
|
||||||
@ -496,7 +495,6 @@ function _inject_theme_attribute_in_template_part_block( &$block ) {
|
|||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @param array $block a parsed block.
|
* @param array $block a parsed block.
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function _remove_theme_attribute_from_template_part_block( &$block ) {
|
function _remove_theme_attribute_from_template_part_block( &$block ) {
|
||||||
if (
|
if (
|
||||||
|
@ -776,8 +776,6 @@ final class WP_Theme implements ArrayAccess {
|
|||||||
* Perform reinitialization tasks.
|
* Perform reinitialization tasks.
|
||||||
*
|
*
|
||||||
* Prevents a callback from being injected during unserialization of an object.
|
* Prevents a callback from being injected during unserialization of an object.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function __wakeup() {
|
public function __wakeup() {
|
||||||
if ( $this->parent && ! $this->parent instanceof self ) {
|
if ( $this->parent && ! $this->parent instanceof self ) {
|
||||||
|
@ -40,8 +40,6 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
|||||||
* Registers the controllers routes.
|
* Registers the controllers routes.
|
||||||
*
|
*
|
||||||
* @since 6.3.0
|
* @since 6.3.0
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function register_routes() {
|
public function register_routes() {
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-beta4-56942';
|
$wp_version = '6.4-beta4-56943';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user