Skip to content

Commit 72b69a2

Browse files
author
patrickebates
committed
Initial merge with WP 5.1.0. Probably unstable.
1 parent 7b5d08d commit 72b69a2

File tree

942 files changed

+104803
-79411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

942 files changed

+104803
-79411
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Project Nami
22
===============
33

4-
### Version: `2.0.3` ###
4+
### Version: `2.1.0` ###
55

66
### Description: ###
77
[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://deploy.azure.com/?repository=https://github.com/ProjectNami/projectnami/tree/latest)

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @var bool
1313
*/
14-
define('WP_USE_THEMES', true);
14+
define( 'WP_USE_THEMES', true );
1515

1616
/** Loads the WordPress Environment and Template */
1717
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

wp-activate.php

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
define( 'WP_INSTALLING', true );
1010

1111
/** Sets up the WordPress Environment. */
12-
require( dirname(__FILE__) . '/wp-load.php' );
12+
require( dirname( __FILE__ ) . '/wp-load.php' );
1313

1414
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
1515

16-
if ( !is_multisite() ) {
16+
if ( ! is_multisite() ) {
1717
wp_redirect( wp_registration_url() );
1818
die();
1919
}
2020

2121
$valid_error_codes = array( 'already_active', 'blog_taken' );
2222

2323
list( $activate_path ) = explode( '?', wp_unslash( $_SERVER['REQUEST_URI'] ) );
24-
$activate_cookie = 'wp-activate-' . COOKIEHASH;
24+
$activate_cookie = 'wp-activate-' . COOKIEHASH;
2525

2626
$key = '';
2727
$result = null;
@@ -64,8 +64,9 @@
6464

6565
nocache_headers();
6666

67-
if ( is_object( $wp_object_cache ) )
67+
if ( is_object( $wp_object_cache ) ) {
6868
$wp_object_cache->cache_enabled = false;
69+
}
6970

7071
// Fix for page title
7172
$wp_query->is_404 = false;
@@ -89,10 +90,10 @@ function do_activate_header() {
8990
* Fires before the Site Activation page is loaded.
9091
*
9192
* Fires on the {@see 'wp_head'} action.
92-
*
93-
* @since 3.0.0
94-
*/
95-
do_action( 'activate_wp_head' );
93+
*
94+
* @since 3.0.0
95+
*/
96+
do_action( 'activate_wp_head' );
9697
}
9798
add_action( 'wp_head', 'do_activate_header' );
9899

@@ -108,7 +109,7 @@ function wpmu_activate_stylesheet() {
108109
#submit, #key { width: 90%; font-size: 24px; }
109110
#language { margin-top: .5em; }
110111
.error { background: #f66; }
111-
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: bold; }
112+
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
112113
</style>
113114
<?php
114115
}
@@ -122,18 +123,19 @@ function wpmu_activate_stylesheet() {
122123
<div class="wp-activate-container">
123124
<?php if ( ! $key ) { ?>
124125

125-
<h2><?php _e('Activation Key Required') ?></h2>
126-
<form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>">
126+
<h2><?php _e( 'Activation Key Required' ); ?></h2>
127+
<form name="activateform" id="activateform" method="post" action="<?php echo network_site_url( 'wp-activate.php' ); ?>">
127128
<p>
128-
<label for="key"><?php _e('Activation Key:') ?></label>
129-
<br /><input type="text" name="key" id="key" value="" size="50" />
129+
<label for="key"><?php _e( 'Activation Key:' ); ?></label>
130+
<br /><input type="text" name="key" id="key" value="" size="50" />
130131
</p>
131132
<p class="submit">
132-
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" />
133+
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e( 'Activate' ); ?>" />
133134
</p>
134135
</form>
135136

136-
<?php } else {
137+
<?php
138+
} else {
137139
if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) {
138140
$signup = $result->get_error_data();
139141
?>
@@ -142,7 +144,7 @@ function wpmu_activate_stylesheet() {
142144
echo '<p class="lead-in">';
143145
if ( $signup->domain . $signup->path == '' ) {
144146
printf(
145-
/* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
147+
/* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
146148
__( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
147149
network_site_url( 'wp-login.php', 'login' ),
148150
$signup->user_login,
@@ -151,7 +153,7 @@ function wpmu_activate_stylesheet() {
151153
);
152154
} else {
153155
printf(
154-
/* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */
156+
/* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */
155157
__( 'Your site at %1$s is active. You may now log in to your site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),
156158
sprintf( '<a href="http://%1$s">%1$s</a>', $signup->domain ),
157159
$signup->user_login,
@@ -168,31 +170,37 @@ function wpmu_activate_stylesheet() {
168170
<?php endif; ?>
169171
<?php
170172
} else {
171-
$url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
173+
$url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
172174
$user = get_userdata( (int) $result['user_id'] );
173175
?>
174-
<h2><?php _e('Your account is now active!'); ?></h2>
176+
<h2><?php _e( 'Your account is now active!' ); ?></h2>
175177

176178
<div id="signup-welcome">
177-
<p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p>
178-
<p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $result['password']; ?></p>
179+
<p><span class="h3"><?php _e( 'Username:' ); ?></span> <?php echo $user->user_login; ?></p>
180+
<p><span class="h3"><?php _e( 'Password:' ); ?></span> <?php echo $result['password']; ?></p>
179181
</div>
180182

181-
<?php if ( $url && $url != network_home_url( '', 'http' ) ) :
183+
<?php
184+
if ( $url && $url != network_home_url( '', 'http' ) ) :
182185
switch_to_blog( (int) $result['blog_id'] );
183186
$login_url = wp_login_url();
184187
restore_current_blog();
185188
?>
186-
<p class="view"><?php
189+
<p class="view">
190+
<?php
187191
/* translators: 1: site URL, 2: login URL */
188192
printf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), $url, esc_url( $login_url ) );
189-
?></p>
190-
<?php else: ?>
191-
<p class="view"><?php
193+
?>
194+
</p>
195+
<?php else : ?>
196+
<p class="view">
197+
<?php
192198
/* translators: 1: login URL, 2: network home URL */
193199
printf( __( 'Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url( 'wp-login.php', 'login' ), network_home_url() );
194-
?></p>
195-
<?php endif;
200+
?>
201+
</p>
202+
<?php
203+
endif;
196204
}
197205
}
198206
?>
@@ -202,4 +210,5 @@ function wpmu_activate_stylesheet() {
202210
var key_input = document.getElementById('key');
203211
key_input && key_input.focus();
204212
</script>
205-
<?php get_footer( 'wp-activate' );
213+
<?php
214+
get_footer( 'wp-activate' );

0 commit comments

Comments
 (0)