Changeset 47218 for trunk/src/wp-admin/media-upload.php
- Timestamp:
- 02/09/2020 04:51:22 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/media-upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/media-upload.php
r47198 r47218 34 34 35 35 // Require an ID for the edit screen. 36 if ( isset( $action ) && $action == 'edit'&& ! $ID ) {36 if ( isset( $action ) && 'edit' == $action && ! $ID ) { 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 ( $tab == 'type' || $tab == 'type_url'|| ! 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.