Skip to content

Commit d6b4669

Browse files
committed
Customize: Remove unreachable return statements in WP_Customize_Manager.
This addresses 3 PHPStan errors: > Unreachable statement - code above always terminates. Each line of code is unreachable because the preceding statement exits execution. Developed in WordPress#12497. Follow-up to r62704. Props soean, mukesh27. See #64898. git-svn-id: https://develop.svn.wordpress.org/trunk@62763 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4c7af09 commit d6b4669

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/wp-includes/class-wp-customize-manager.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,6 @@ public function customize_preview_init() {
19361936
'<code>customize_messenger_channel</code>'
19371937
)
19381938
);
1939-
return;
19401939
}
19411940

19421941
$this->prepare_controls();
@@ -3166,7 +3165,6 @@ public function handle_changeset_trash_request() {
31663165
'code' => 'non_existent_changeset',
31673166
)
31683167
);
3169-
return;
31703168
}
31713169

31723170
if ( ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->delete_post, $changeset_post_id ) ) {
@@ -3197,7 +3195,6 @@ public function handle_changeset_trash_request() {
31973195
'code' => 'changeset_already_trashed',
31983196
)
31993197
);
3200-
return;
32013198
}
32023199

32033200
$r = $this->trash_changeset_post( $changeset_post_id );

0 commit comments

Comments
 (0)