Changeset 47785 for trunk/src/wp-admin/media-upload.php
- Timestamp:
- 05/12/2020 06:30:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/media-upload.php
r47218 r47785 30 30 31 31 // IDs should be integers. 32 $ID = isset( $ID ) ? (int) $ID : 0; 32 $ID = isset( $ID ) ? (int) $ID : 0; // phpcs:ignore WordPress.NamingConventions.ValidVariableName 33 33 $post_id = isset( $post_id ) ? (int) $post_id : 0; 34 34 35 35 // Require an ID for the edit screen. 36 if ( isset( $action ) && 'edit' == $action && ! $ID ) {36 if ( isset( $action ) && 'edit' === $action && ! $ID ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName 37 37 wp_die( 38 38 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . … … 82 82 83 83 // Let the action code decide how to handle the request. 84 if ( 'type' == $tab || 'type_url'== $tab || ! array_key_exists( $tab, media_upload_tabs() ) ) {84 if ( 'type' === $tab || 'type_url' === $tab || ! array_key_exists( $tab, media_upload_tabs() ) ) { 85 85 /** 86 86 * Fires inside specific upload-type views in the legacy (pre-3.5.0)
Note: See TracChangeset
for help on using the changeset viewer.