Changeset 42719 for trunk/src/wp-admin/themes.php
- Timestamp:
- 02/19/2018 02:12:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r42648 r42719 12 12 if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { 13 13 wp_die( 14 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' .14 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 15 15 '<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>', 16 16 403 … … 25 25 if ( ! $theme->exists() || ! $theme->is_allowed() ) { 26 26 wp_die( 27 '<h1>' . __( ' An error has occurred.' ) . '</h1>' .27 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 28 28 '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 29 29 403 … … 40 40 if ( ! current_user_can( 'delete_themes' ) ) { 41 41 wp_die( 42 '<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' .42 '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . 43 43 '<p>' . __( 'Sorry, you are not allowed to delete this item.' ) . '</p>', 44 44 403 … … 48 48 if ( ! $theme->exists() ) { 49 49 wp_die( 50 '<h1>' . __( ' An error has occurred.' ) . '</h1>' .50 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 51 51 '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 52 52 403
Note: See TracChangeset
for help on using the changeset viewer.