WordPress.org

Make WordPress Core

Changeset 34979


Ignore:
Timestamp:
10/09/2015 03:49:24 AM (3 years ago)
Author:
SergeyBiryukov
Message:

My Sites: Make "Create a New Site" link consistent with other "Add New" links.

Props JeffMatson.
Fixes #34179.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r34912 r34979  
    829829        </td>
    830830    </tr>
    831     <?php if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) : ?>
    832         <tr>
    833             <th scope="row" colspan="2" class="th-full">
    834                 <?php
    835                 /** This filter is documented in wp-login.php */
    836                 $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
    837                 ?>
    838                 <a href="<?php echo esc_url( $sign_up_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
    839             </th>
    840         </tr>
    841     <?php endif; ?>
    842831    </table>
    843832    <?php
  • trunk/src/wp-admin/my-sites.php

    r33442 r34979  
    5757
    5858<div class="wrap">
    59 <h1><?php echo esc_html( $title ); ?></h1>
     59<h1><?php
     60echo esc_html( $title );
     61
     62if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) {
     63    /** This filter is documented in wp-login.php */
     64    $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
     65    printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) );
     66}
     67?></h1>
     68
    6069<?php
    6170if ( empty( $blogs ) ) :
Note: See TracChangeset for help on using the changeset viewer.