Coding Standards: Document intentional `case` block fall-throughs.
Fixes `PSR2.ControlStructures.SwitchDeclaration.TerminatingComment` violations. See #45934. Built from https://develop.svn.wordpress.org/trunk@44565 git-svn-id: http://core.svn.wordpress.org/trunk@44396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c00229969a
commit
6d5cd6842a
|
@ -1749,6 +1749,7 @@ function upgrade_330() {
|
|||
$sidebars_widgets = $_sidebars_widgets;
|
||||
unset( $_sidebars_widgets );
|
||||
|
||||
// intentional fall-through to upgrade to the next version.
|
||||
case 2:
|
||||
$sidebars_widgets = retrieve_widgets();
|
||||
$sidebars_widgets['array_version'] = 3;
|
||||
|
|
|
@ -205,6 +205,7 @@ switch ( $action ) {
|
|||
|
||||
wp_update_attachment_metadata( $post_id, $newmeta );
|
||||
|
||||
// Intentional fall-through to trigger the edit_post() call.
|
||||
case 'editpost':
|
||||
check_admin_referer( 'update-post_' . $post_id );
|
||||
|
||||
|
|
|
@ -173,6 +173,7 @@ switch ( $action ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
// Intentional fall-through to display $errors.
|
||||
default:
|
||||
$profileuser = get_user_to_edit( $user_id );
|
||||
|
||||
|
|
|
@ -655,6 +655,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
|
|||
'<code>url</code>'
|
||||
)
|
||||
);
|
||||
// Intentional fall-through to be handled by the 'url' case.
|
||||
case 'url':
|
||||
$output = home_url();
|
||||
break;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-beta1-44564';
|
||||
$wp_version = '5.1-beta1-44565';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue