WordPress.org

Make WordPress Core

Changeset 44565


Ignore:
Timestamp:
01/11/2019 06:25:37 AM (10 months ago)
Author:
pento
Message:

Coding Standards: Document intentional case block fall-throughs.

Fixes PSR2.ControlStructures.SwitchDeclaration.TerminatingComment violations.

See #45934.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r44467 r44565  
    17501750            unset( $_sidebars_widgets );
    17511751
     1752            // intentional fall-through to upgrade to the next version.
    17521753        case 2:
    17531754            $sidebars_widgets                  = retrieve_widgets();
  • trunk/src/wp-admin/post.php

    r44437 r44565  
    206206        wp_update_attachment_metadata( $post_id, $newmeta );
    207207
     208        // Intentional fall-through to trigger the edit_post() call.
    208209    case 'editpost':
    209210        check_admin_referer( 'update-post_' . $post_id );
  • trunk/src/wp-admin/user-edit.php

    r43571 r44565  
    174174        }
    175175
     176        // Intentional fall-through to display $errors.
    176177    default:
    177178        $profileuser = get_user_to_edit( $user_id );
  • trunk/src/wp-includes/general-template.php

    r44353 r44565  
    656656                )
    657657            );
     658            // Intentional fall-through to be handled by the 'url' case.
    658659        case 'url':
    659660            $output = home_url();
Note: See TracChangeset for help on using the changeset viewer.