Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove return void that should not exist #5484

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/wp-includes/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ function _flatten_blocks( &$blocks ) {
* @access private
*
* @param array $block a parsed block.
* @return void
*/
function _inject_theme_attribute_in_template_part_block( &$block ) {
if (
Expand All @@ -496,7 +495,6 @@ function _inject_theme_attribute_in_template_part_block( &$block ) {
* @access private
*
* @param array $block a parsed block.
* @return void
*/
function _remove_theme_attribute_from_template_part_block( &$block ) {
if (
Expand Down
2 changes: 0 additions & 2 deletions src/wp-includes/class-wp-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,6 @@ public function parent() {
* Perform reinitialization tasks.
*
* Prevents a callback from being injected during unserialization of an object.
*
* @return void
*/
public function __wakeup() {
if ( $this->parent && ! $this->parent instanceof self ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public function __construct() {
* Registers the controllers routes.
*
* @since 6.3.0
*
* @return void
*/
public function register_routes() {

Expand Down