IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | | unset( $themes[ get_option( 'stylesheet' ) ] ); |
| | 68 | unset( $themes[ get_stylesheet() ] ); |
| 69 | 69 | WP_Theme::sort_by_name( $themes ); |
| 70 | 70 | |
| 71 | 71 | $per_page = 36; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 102 | 102 | exit; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | | $themes = array_diff( $themes, array( get_option( 'stylesheet' ), get_option( 'template' ) ) ); |
| | 105 | $themes = array_diff( $themes, array( get_stylesheet(), get_template() ) ); |
| 106 | 106 | |
| 107 | 107 | if ( empty( $themes ) ) { |
| 108 | 108 | wp_safe_redirect( add_query_arg( 'error', 'main', $referer ) ); |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 462 | 462 | ); |
| 463 | 463 | } |
| 464 | 464 | |
| 465 | | if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) { |
| | 465 | if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_stylesheet() && $stylesheet != get_template() ) { |
| 466 | 466 | $url = add_query_arg( array( |
| 467 | 467 | 'action' => 'delete-selected', |
| 468 | 468 | 'checked[]' => $theme_key, |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 370 | 370 | $themes = $checked = $request = array(); |
| 371 | 371 | |
| 372 | 372 | // Put slug of current theme into request. |
| 373 | | $request['active'] = get_option( 'stylesheet' ); |
| | 373 | $request['active'] = get_stylesheet(); |
| 374 | 374 | |
| | 375 | /** @var WP_Theme $theme */ |
| 375 | 376 | foreach ( $installed_themes as $theme ) { |
| 376 | 377 | $checked[ $theme->get_stylesheet() ] = $theme->get('Version'); |
| 377 | 378 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 922 | 922 | } |
| 923 | 923 | |
| 924 | 924 | // Set up site tables. |
| 925 | | $template = get_option( 'template' ); |
| 926 | | $stylesheet = get_option( 'stylesheet' ); |
| | 925 | $template = get_template(); |
| | 926 | $stylesheet = get_stylesheet(); |
| 927 | 927 | $allowed_themes = array( $stylesheet => true ); |
| 928 | 928 | |
| 929 | 929 | if ( $template != $stylesheet ) { |