Make WordPress Core


Ignore:
Timestamp:
10/04/2012 12:40:09 PM (14 years ago)
Author:
ryan
Message:

Reduce use of global. Use get_blog_details() instead. fixes #22090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-delete-site.php

    r19712 r22108  
    2525        }
    2626}
     27
     28$blog = get_blog_details();
    2729
    2830$title = __( 'Delete Site' );
     
    7375                <?php wp_nonce_field( 'delete-blog' ) ?>
    7476                <input type="hidden" name="action" value="deleteblog" />
    75                 <p><input id="confirmdelete" type="checkbox" name="confirmdelete" value="1" /> <label for="confirmdelete"><strong><?php printf( __( "I'm sure I want to permanently disable my site, and I am aware I can never get it back or use %s again." ), is_subdomain_install() ? $current_blog->domain : $current_blog->domain . $current_blog->path ); ?></strong></label></p>
     77                <p><input id="confirmdelete" type="checkbox" name="confirmdelete" value="1" /> <label for="confirmdelete"><strong><?php printf( __( "I'm sure I want to permanently disable my site, and I am aware I can never get it back or use %s again." ), is_subdomain_install() ? $blog->domain : $blog->domain . $blog->path ); ?></strong></label></p>
    7678                <?php submit_button( __( 'Delete My Site Permanently' ) ); ?>
    7779        </form>
Note: See TracChangeset for help on using the changeset viewer.