WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/30/2010 08:34:54 PM (10 years ago)
Author:
ryan
Message:

Network Admin, first pass. see #14435

Location:
trunk/wp-admin/network
Files:
1 added
1 copied

Legend:

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

    r15473 r15481  
    1717
    1818$title = __( 'Sites' );
    19 $parent_file = 'ms-admin.php';
     19$parent_file = 'sites.php';
    2020
    2121if ( isset( $_GET['action'] ) && 'editblog' == $_GET['action'] ) {
     
    4949wp_enqueue_script( 'admin-forms' );
    5050
    51 require_once( './admin-header.php' );
     51require_once( '../admin-header.php' );
    5252
    5353$id = isset( $_GET['id'] ) ? intval( $_GET['id'] ) : 0;
     
    117117        <?php screen_icon(); ?>
    118118        <h2><?php _e( 'Edit Site' ); ?> - <a href="<?php echo esc_url( get_home_url( $id ) ); ?>"><?php echo esc_url( get_home_url( $id ) ); ?></a></h2>
    119         <form method="post" action="ms-edit.php?action=updateblog">
     119        <form method="post" action="edit.php?action=updateblog">
    120120            <?php wp_nonce_field( 'editblog' ); ?>
    121121            <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
     
    426426        </h2>
    427427
    428         <form action="ms-sites.php" method="get" id="ms-search">
     428        <form action="sites.php" method="get" id="ms-search">
    429429        <p class="search-box">
    430430        <input type="hidden" name="action" value="blogs" />
     
    439439        </form>
    440440
    441         <form id="form-site-list" action="ms-edit.php?action=allblogs" method="post">
     441        <form id="form-site-list" action="edit.php?action=allblogs" method="post">
    442442        <input type="hidden" name="mode" value="<?php echo esc_attr( $mode ); ?>" />
    443443        <div class="tablenav">
     
    563563                            case 'blogname': ?>
    564564                                <td class="column-title">
    565                                     <a href="<?php echo esc_url( admin_url( 'ms-sites.php?action=editblog&amp;id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname . $blog_state; ?></a>
     565                                    <a href="<?php echo esc_url( network_admin_url( 'sites.php?action=editblog&amp;id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname . $blog_state; ?></a>
    566566                                    <?php
    567567                                    if ( 'list' != $mode )
     
    578578                                    );
    579579
    580                                     $actions['edit']    = '<span class="edit"><a href="' . esc_url( admin_url( 'ms-sites.php?action=editblog&amp;id=' . $blog['blog_id'] ) ) . '">' . __( 'Edit' ) . '</a></span>';
     580                                    $actions['edit']    = '<span class="edit"><a href="' . esc_url( network_admin_url( 'sites.php?action=editblog&amp;id=' . $blog['blog_id'] ) ) . '">' . __( 'Edit' ) . '</a></span>';
    581581                                    $actions['backend'] = "<span class='backend'><a href='" . esc_url( get_admin_url($blog['blog_id']) ) . "' class='edit'>" . __( 'Backend' ) . '</a></span>';
    582582                                    if ( $current_site->blog_id != $blog['blog_id'] ) {
    583583                                        if ( get_blog_status( $blog['blog_id'], 'deleted' ) == '1' )
    584                                             $actions['activate']    = '<span class="activate"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=activateblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to activate the site %s' ), $blogname ) ) ) ) . '">' . __( 'Activate' ) . '</a></span>';
     584                                            $actions['activate']    = '<span class="activate"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=activateblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to activate the site %s' ), $blogname ) ) ) ) . '">' . __( 'Activate' ) . '</a></span>';
    585585                                        else
    586                                             $actions['deactivate']  = '<span class="activate"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=deactivateblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to deactivate the site %s' ), $blogname ) ) ) ) . '">' . __( 'Deactivate' ) . '</a></span>';
     586                                            $actions['deactivate']  = '<span class="activate"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=deactivateblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to deactivate the site %s' ), $blogname ) ) ) ) . '">' . __( 'Deactivate' ) . '</a></span>';
    587587
    588588                                        if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
    589                                             $actions['unarchive']   = '<span class="archive"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=unarchiveblog&amp;id=' .  $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ) ) . '">' . __( 'Unarchive' ) . '</a></span>';
     589                                            $actions['unarchive']   = '<span class="archive"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=unarchiveblog&amp;id=' .  $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ) ) . '">' . __( 'Unarchive' ) . '</a></span>';
    590590                                        else
    591                                             $actions['archive'] = '<span class="archive"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ) ) . '">' . _x( 'Archive', 'verb; site' ) . '</a></span>';
     591                                            $actions['archive'] = '<span class="archive"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ) ) . '">' . _x( 'Archive', 'verb; site' ) . '</a></span>';
    592592
    593593                                        if ( get_blog_status( $blog['blog_id'], 'spam' ) == '1' )
    594                                             $actions['unspam']  = '<span class="spam"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ) ) . '">' . _x( 'Not Spam', 'site' ) . '</a></span>';
     594                                            $actions['unspam']  = '<span class="spam"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to unspam the site %s.' ), $blogname ) ) ) ) . '">' . _x( 'Not Spam', 'site' ) . '</a></span>';
    595595                                        else
    596                                             $actions['spam']    = '<span class="spam"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=spamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to mark the site %s as spam.' ), $blogname ) ) ) ) . '">' . _x( 'Spam', 'site' ) . '</a></span>';
    597 
    598                                         $actions['delete']  = '<span class="delete"><a href="' . esc_url( admin_url( 'ms-edit.php?action=confirm&amp;action2=deleteblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to delete the site %s.' ), $blogname ) ) ) ) . '">' . __( 'Delete' ) . '</a></span>';
     596                                            $actions['spam']    = '<span class="spam"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=spamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to mark the site %s as spam.' ), $blogname ) ) ) ) . '">' . _x( 'Spam', 'site' ) . '</a></span>';
     597
     598                                        $actions['delete']  = '<span class="delete"><a href="' . esc_url( network_admin_url( 'edit.php?action=confirm&amp;action2=deleteblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( 'You are about to delete the site %s.' ), $blogname ) ) ) ) . '">' . __( 'Delete' ) . '</a></span>';
    599599                                    }
    600600
     
    710710        <div id="form-add-site" class="wrap">
    711711            <h3><?php _e( 'Add Site' ) ?></h3>
    712             <form method="post" action="ms-edit.php?action=addblog">
     712            <form method="post" action="edit.php?action=addblog">
    713713                <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
    714714                <table class="form-table">
     
    745745} // end switch( $action )
    746746
    747 include( './admin-footer.php' ); ?>
     747include( '../admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.