Make WordPress Core


Ignore:
Timestamp:
12/08/2011 11:02:33 PM (14 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/themes.php

    r19514 r19577  
    3535
    3636if ( $action ) {
    37     $allowed_themes = get_site_option( 'allowedthemes' );   
     37    $allowed_themes = get_site_option( 'allowedthemes' );
    3838    switch ( $action ) {
    3939        case 'enable':
     
    129129                    unset( $themes[$key] );
    130130                } else {
    131                     $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) );                   
     131                    $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) );
    132132                    $theme_info[ $theme ] = $data;
    133133                }
    134134            }
    135            
     135
    136136            if ( empty( $themes ) ) {
    137137                wp_redirect( add_query_arg( 'error', 'main', $referer ) );
     
    191191            foreach ( $themes as $theme )
    192192                $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) );
    193             $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 
     193            $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1;
    194194            wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) );
    195195            exit;
     
    229229<?php screen_icon('themes'); ?>
    230230<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
    231 if ( $s ) 
    232     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?> 
     231if ( $s )
     232    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $s ) ); ?>
    233233</h2>
    234234
Note: See TracChangeset for help on using the changeset viewer.