Coding Standards: Document intentional `case` block fall-throughs.

Fixes `PSR2.ControlStructures.SwitchDeclaration.TerminatingComment` violations.

See #45934.



git-svn-id: https://develop.svn.wordpress.org/trunk@44565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-11 06:25:37 +00:00
parent d0f00b58e2
commit 83af0329a2
4 changed files with 4 additions and 0 deletions

View File

@ -1749,6 +1749,7 @@ function upgrade_330() {
$sidebars_widgets = $_sidebars_widgets; $sidebars_widgets = $_sidebars_widgets;
unset( $_sidebars_widgets ); unset( $_sidebars_widgets );
// intentional fall-through to upgrade to the next version.
case 2: case 2:
$sidebars_widgets = retrieve_widgets(); $sidebars_widgets = retrieve_widgets();
$sidebars_widgets['array_version'] = 3; $sidebars_widgets['array_version'] = 3;

View File

@ -205,6 +205,7 @@ switch ( $action ) {
wp_update_attachment_metadata( $post_id, $newmeta ); wp_update_attachment_metadata( $post_id, $newmeta );
// Intentional fall-through to trigger the edit_post() call.
case 'editpost': case 'editpost':
check_admin_referer( 'update-post_' . $post_id ); check_admin_referer( 'update-post_' . $post_id );

View File

@ -173,6 +173,7 @@ switch ( $action ) {
exit; exit;
} }
// Intentional fall-through to display $errors.
default: default:
$profileuser = get_user_to_edit( $user_id ); $profileuser = get_user_to_edit( $user_id );

View File

@ -655,6 +655,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
'<code>url</code>' '<code>url</code>'
) )
); );
// Intentional fall-through to be handled by the 'url' case.
case 'url': case 'url':
$output = home_url(); $output = home_url();
break; break;