My Sites: Make "Create a New Site" link consistent with other "Add New" links.
Props JeffMatson. Fixes #34179. Built from https://develop.svn.wordpress.org/trunk@34979 git-svn-id: http://core.svn.wordpress.org/trunk@34944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c7b7f7133
commit
6595b1b080
|
@ -828,17 +828,6 @@ function choose_primary_blog() {
|
|||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) : ?>
|
||||
<tr>
|
||||
<th scope="row" colspan="2" class="th-full">
|
||||
<?php
|
||||
/** This filter is documented in wp-login.php */
|
||||
$sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
||||
?>
|
||||
<a href="<?php echo esc_url( $sign_up_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
|
||||
</th>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -56,7 +56,16 @@ if ( $updated ) { ?>
|
|||
<?php } ?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1><?php echo esc_html( $title ); ?></h1>
|
||||
<h1><?php
|
||||
echo esc_html( $title );
|
||||
|
||||
if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) {
|
||||
/** This filter is documented in wp-login.php */
|
||||
$sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
||||
printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) );
|
||||
}
|
||||
?></h1>
|
||||
|
||||
<?php
|
||||
if ( empty( $blogs ) ) :
|
||||
echo '<p>';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34978';
|
||||
$wp_version = '4.4-alpha-34979';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue