WordPress.org

Make WordPress Core


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

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

Props JeffMatson.
Fixes #34179.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.