Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
b3f1257
Branch 4.0.
nacin Sep 4, 2014
4edbc74
Add safeguards for when ext/hash is not compiled with PHP.
nacin Sep 23, 2014
bab3933
The 4.0 branch is 4.0.1-alpha.
nacin Nov 6, 2014
aaec512
Plugin search: Wrap results in a form to fix pagination's `paged` inp…
nacin Nov 6, 2014
e2c870f
Quicktags: move focusing the editor after inserting content to the en…
nacin Nov 6, 2014
b2217fa
Editor-expand: reset the editor height after the window is resized.
nacin Nov 6, 2014
f904bbc
Upgrade MediaElement to 2.15.1.
nacin Nov 6, 2014
2db717b
Revert [28610] in order to avoid infinite redirect loops on reverse p…
nacin Nov 6, 2014
d7245bc
Make sure we're on the media grid page before calling wp.media().
nacin Nov 6, 2014
b94cfff
Create new $wp_roles object in install_blog() to avoid protected _ini…
nacin Nov 6, 2014
c943b71
Editor expand: hide TinyMCE float panels and tooltips when scrolling.
nacin Nov 6, 2014
5add2ed
TinyMCE wpView: when pasting/inserting content before a view, add new…
nacin Nov 6, 2014
8930d00
Make sure the $parent argument of wp_insert_attachment() still works …
nacin Nov 6, 2014
7be0716
Avoid PHP notices in media modal caused by orphaned attachments.
nacin Nov 6, 2014
eec6b41
Create correct permalinks for child posts of hierarchical post types …
nacin Nov 6, 2014
4f14d9f
In `wp_audio|video_shortcode()`, make sure that `autoplay` and `loop`…
nacin Nov 6, 2014
59ae9aa
Media Frames: Set the box-sizing CSS property to border-box for check…
nacin Nov 6, 2014
0e76113
In get_adjacent_post(), $excluded_terms should check term_id rather t…
nacin Nov 20, 2014
3f256ab
TinyMCE: fix image captions regexp when wpautop is disabled in wp_edi…
nacin Nov 20, 2014
94f0e4d
Media Grid: when the modal is open, don't respond to arrow keys when …
nacin Nov 20, 2014
e2cf18d
Don't display Edit links for attachments user cannot edit.
nacin Nov 20, 2014
3a108f5
Media Grid: Don't attempt to delete an attachment that can't be deleted.
nacin Nov 20, 2014
8e04e41
Revert [28948] for the 4.0 branch, which caused a regression.
nacin Nov 20, 2014
432912f
Use hash_equals() for old md5 hashes.
nacin Nov 20, 2014
133bfe6
Form validation for password resets.
nacin Nov 20, 2014
dd9f42a
Playlists are video by default. props duck_
nacin Nov 20, 2014
5fcfb73
Fix typo in style filter. props miqrogroove
nacin Nov 20, 2014
65ac1b9
Invalidate password keys when a user's email changes.
nacin Nov 20, 2014
50a4318
TinyMCE: Verify HTML in captions. props azaozz
nacin Nov 20, 2014
45ca540
Press This: Ensure the error message is printed. props johnbillion
nacin Nov 20, 2014
be45cc1
Better validation of the URL used in core HTTP requests.
nacin Nov 20, 2014
d9cd724
Anchor texturize to shortcodes to improve regex efficiency.
nacin Nov 20, 2014
6e658f8
Validate image data.
nacin Nov 20, 2014
39c7ff2
Prevent high resource usage when hashing large passwords. props mdawa…
nacin Nov 20, 2014
d9f6f1c
4.0.1 version bumps.
nacin Nov 20, 2014
e34cfb7
Undo changes to the 4.0 branch caused by clean-css 2.2.8 (branch) ver…
nacin Nov 20, 2014
3e79a92
Update Akismet external in trunk to 3.1.
nacin Mar 16, 2015
be559a4
Backport the PHPUnit test fixes from [31622] to the 4.0 branch.
pento Apr 19, 2015
285af6e
The 4.0 branch is now 4.0.2-alpha.
pento Apr 20, 2015
d114ee8
4.0: Bump package.json, readme.html and license.txt.
pento Apr 20, 2015
548201e
Merge the query sanity checks from #21212 to the 4.0 branch.
pento Apr 20, 2015
55be6d3
`wpdb::$checking_collation` was incorrectly marked as `protected` ins…
pento Apr 20, 2015
3170d00
Clean up some edge cases in `sanitize_sql_orderby()`. Merge of [32164…
pento Apr 20, 2015
766a6f6
Remove some old backwards compatibility code from TinyMCE. Merge of […
pento Apr 20, 2015
c5dbb01
Update the Plupload Flash file to the latest version. Merge of [32168…
pento Apr 20, 2015
2af7429
In Multisite, prevent plugins from unintentionally switching sites. M…
pento Apr 20, 2015
26e7a95
Ensure post titles are correctly escaped on the Dashboard. Merge of […
pento Apr 20, 2015
7c0efb9
4.0: Update about.php.
pento Apr 20, 2015
d4d995b
Bump 4.0 branch to 4.0.2.
pento Apr 20, 2015
530a462
Fix some `wpdb::check_safe_collation()` calls missed in [32181].
pento Apr 20, 2015
e20485b
WPDB: When deciding if a query needs extra sanity checking based on c…
pento Apr 21, 2015
488576e
WPDB: When sanity checking a string by sending it to MySQL for conver…
pento Apr 23, 2015
8254664
The 4.0 branch is now 4.0.3.
helen Apr 23, 2015
4b6fa85
4.0 branch is now 4.0.4.
pento Apr 27, 2015
4fe0310
4.0:
pento Apr 27, 2015
d6df175
TinyMCE: work-around a bug in the tags matching regex.
azaozz May 6, 2015
7e35f92
WPDB: When checking that a string can be sent to MySQL, we shouldn't …
May 6, 2015
69de48f
The UTF-8 regex can occasionally fail on very low memory machines. Re…
helen May 6, 2015
c9168e3
WPDB: When sanity checking query character sets, there's no need to c…
ocean90 May 6, 2015
a820c92
When upgrading WordPress remove genericons example.html files
aaronjorbin May 6, 2015
6dbcbfa
WPDB: Allow queries to reference tables in the dbname.tablename forma…
johnbillion May 6, 2015
551057b
Upgrade: Ensure unintelligible DB schemas don't result in content loss.
May 6, 2015
cfd130d
Upgrade: `$wpdb->get_col_length()` sanity check: bail on unexpected r…
May 6, 2015
9e426bb
4.0.5 version bumps.
ocean90 May 6, 2015
5d196f2
Capabilities: When creating an auto-draft, ensure that the current us…
pento Jul 23, 2015
60eb789
Shortcodes: Improve the reliablity of shortcodes inside HTML tags.
pento Jul 23, 2015
b3356b6
Bump 4.0 branch to version 4.0.6.
pento Jul 23, 2015
5b23ca5
Backport r33469 and r33470 to 4.0.
azaozz Jul 31, 2015
30df27a
Nav menus: Consistent titles in widgets.
ocean90 Aug 3, 2015
9e21a4a
Customizer: Use `hash_equals()` for widgets.
ocean90 Aug 4, 2015
53957f2
Heartbeat: Ensure post locks are released.
ocean90 Aug 4, 2015
acd70d3
Themes: Fix some broken links in the legacy theme preview.
ocean90 Aug 4, 2015
e8797fc
Comments: IDs are integers.
ocean90 Aug 4, 2015
b5a80e8
Fix `do_shortcode('<[shortcode]')` edge case.
dd32 Aug 4, 2015
a782df3
Bump 4.0 branch to version 4.0.7.
ocean90 Aug 4, 2015
4379874
Capabilities: Fall back to the `edit_posts` capability for orphaned c…
pento Sep 9, 2015
21c8cc7
WPDB: `get_table_from_query()` didn't find table names with hyphens i…
pento Sep 10, 2015
2a0ec14
List tables: escape user e-mails
nb Sep 14, 2015
536f3b6
Shortcodes: don't allow unclosed HTML elements in attributes
nb Sep 14, 2015
b81cdd6
XMLRPC: Don't allow private posts to be sticky.
ocean90 Sep 14, 2015
2cb538b
Bump 4.0 branch to 4.0.8.
helen Sep 15, 2015
7fd9eac
Finish bumping the 4.0 branch to 4.0.8.
helen Sep 15, 2015
c84e59e
Update Akismet externals
dd32 Oct 13, 2015
3d3c9ab
Background Updates: Remove the 7am/7pm background update check.
dd32 Jan 6, 2016
126b1f3
Theme: Escape error messages
aaronjorbin Jan 6, 2016
2fdd270
Bump 4.0 branch to 4.0.9.
ocean90 Jan 6, 2016
90961ce
HTTP: `0.1.2.3` is not a valid IP.
ocean90 Feb 2, 2016
dfc561c
Better validation of the URL used in HTTP redirects.
ocean90 Feb 2, 2016
20c5220
Bump 4.0 branch to 4.0.10.
ocean90 Feb 2, 2016
8f0764e
Snoopy: use escapeshellarg instead of escapeshellcmd
nb Mar 30, 2016
869f687
Multisite: Validate new email address confirmations.
ocean90 Mar 30, 2016
84ad22e
HTTP: Improve detection of valid IP addresses.
ocean90 Mar 30, 2016
3291a98
Multisite: Improve escaping in network settings.
jeremyfelt Mar 30, 2016
217fe37
Taxonomies: make sure taxonomy functions work correctly with taxonomy…
nb Mar 30, 2016
9098775
External Libraries: Update plupload from upstream
nb May 6, 2016
7277742
Bump 4.0 branch to 4.0.11.
ocean90 May 6, 2016
2a56c9c
Admin: Allow for the consistent filtering of `auth_redirect_scheme`
jeremyfelt Jun 21, 2016
d8fcaf9
Customize: Make sure that preview and return URLs are URLs.
ocean90 Jun 21, 2016
01e2cb3
Taxonomy: More specific cap check when processing category data on po…
boonebgorges Jun 21, 2016
4c2ff51
Admin: Escape attachment name in case it contains special characters
nb Jun 21, 2016
e16790e
Revisions: Change the capability needed to view revision diffs to `ed…
rachelbaker Jun 21, 2016
8197793
Admin: escape URL-encoded permalinks
nb Jun 21, 2016
a6b669c
Media: Improve handling of extensionless filenames.
joemcgill Jun 21, 2016
7f457ea
Bump 4.0 branch to 4.0.12.
boonebgorges Jun 21, 2016
2ec2662
Upgrade/Install: Sanitize file name in `File_Upload_Upgrader`.
swissspidy Sep 6, 2016
8edc840
Media: Sanitize upload filename.
jeremyfelt Sep 7, 2016
b79f440
Bump 4.0 branch to 4.0.13.
jeremyfelt Sep 7, 2016
600bd29
General: Update copyright year to 2017 in license.txt.
dd32 Jan 6, 2017
e21c149
Media: Improved media titles when created from filename.
joemcgill Jan 6, 2017
918f720
Mail: Upgrade PHPMailer to 5.2.21.
dd32 Jan 6, 2017
0f8124c
Add nonce for widget accessibility mode.
aaroncampbell Jan 11, 2017
dbfc89d
Mail: Disable wp-mail.php when `mailserver_url` is mail.example.com.
jeremyfelt Jan 11, 2017
d04147c
Update PHPMailer to 5.2.22.
dd32 Jan 11, 2017
af78632
Multisite: Use `wp_rand()` in signup key creation.
jeremyfelt Jan 11, 2017
d8e0c20
Themes: Fix markup for theme name fallbacks.
ocean90 Jan 11, 2017
5fcb58d
Updates: Translate plugin data on the Updates screen.
ocean90 Jan 11, 2017
d94f560
Media: Improve image filetype checking.
joemcgill Jan 11, 2017
b236cbe
Media: Fix exif_imagetype check in wp_get_image_mime
joemcgill Jan 11, 2017
3956625
Bump 4.0 branch to version 4.0.14.
aaroncampbell Jan 11, 2017
98590a9
Query: Ensure that queries work correctly with post type names with s…
ocean90 Jan 26, 2017
6c9f0e2
Press This: Do not show Categories & Tags UI for users who cannot ass…
ocean90 Jan 26, 2017
18c5162
Posts, Post Types: When using Excerpt mode on the Posts list table, e…
johnbillion Jan 26, 2017
25e87a2
Bump 4.0 branch to version 4.0.15.
aaroncampbell Jan 26, 2017
58440ac
Validate video and audio metadata.
jeremyfelt Mar 6, 2017
7065280
Embeds: URL encode YouTube video IDs for broader compatibility.
ocean90 Mar 6, 2017
acbd361
Plugins: Add file check to plugin deletions.
aaroncampbell Mar 6, 2017
cd7144b
Strip control characters before validating redirect.
aaroncampbell Mar 6, 2017
a40fe1c
Bump 4.0 branch to version 4.0.16.
nylen Mar 6, 2017
47b7ded
Fix broken audio/video functions when sanitizing ID3 data
swissspidy Apr 17, 2017
7b33a67
Bump 4.0 branch to version 4.0.17.
swissspidy Apr 20, 2017
f35de85
Whitelist post arguments in XML-RPC
swissspidy May 16, 2017
f7259c1
Adjust post meta checks
swissspidy May 16, 2017
89a3525
Customize: Ignore invalid customization sessions.
ocean90 May 16, 2017
f27c1f0
Add nonce for updating file system credentials.
aaroncampbell May 16, 2017
8f69071
Media: Simplify upload error message construction.
swissspidy May 16, 2017
395d3d7
Bump 4.0 branch to version 4.0.18.
aaroncampbell May 16, 2017
5fc965b
Editor: Prevent adding `javascript:` and `data:` URLs through the inl…
ocean90 Sep 19, 2017
ed1fb81
Users: Provide a fallback for incorrect HTTP referrers.
ocean90 Sep 19, 2017
4c6018f
TinyMCE: Improve the previews for shortcodes.
ocean90 Sep 19, 2017
9f5d4f7
General: Add missing URL-encoding and add extra hardening to plugin a…
johnbillion Sep 19, 2017
d29f744
Filesystem API: Ensure filenames are valid before attempting to unzip…
johnbillion Sep 19, 2017
f80bd53
Database: Hardening for `wpdb::prepare()`
aaroncampbell Sep 19, 2017
a133648
Database: Don’t trigger `_doing_it_wrong()` for null values in `wpdb:…
aaroncampbell Sep 19, 2017
f10a53c
Database: Hardening to bring `wpdb::prepare()` inline with documentat…
aaroncampbell Sep 19, 2017
42af396
Bump 4.0 branch to version 4.0.19.
aaroncampbell Sep 19, 2017
03aec8b
Users: Use correct escaping function for URLs.
ocean90 Sep 19, 2017
907fe81
Database: Restore numbered placeholders in `wpdb::prepare()`.
pento Oct 31, 2017
a9c82ac
Bump 4.0 branch to version 4.0.20.
pento Oct 31, 2017
0c9b121
General: Remove the version number from the readme file in the 4.0 br…
johnbillion Oct 31, 2017
6105b0d
WPDB: Check that `AUTH_SALT` is not empty, Fix a PHP notice when `AUT…
dd32 Nov 27, 2017
c2be274
Hardening: Use a properly generated hash for the `newbloguser` key in…
johnbillion Nov 29, 2017
5532a29
Hardening: Add escaping to the language attributes used on `html` ele…
johnbillion Nov 29, 2017
a44ccc6
Hardening: Ensure the attributes of enclosures are correctly escaped …
johnbillion Nov 29, 2017
80aef7b
Hardening: Remove the ability to upload JavaScript files for users wh…
johnbillion Nov 29, 2017
dcff9fb
Bump 4.0 branch to version 4.0.21.
johnbillion Nov 29, 2017
c5ccc7c
Upgrade: When deleting old files, if deletion fails attempt to empty …
dd32 Jan 16, 2018
d6fc54f
External Libraries: Remove unnecessary / obsoleted MediaElement.js fi…
dd32 Jan 16, 2018
31b1279
Bump the 4.0 branch to 4.0.22.
dd32 Jan 16, 2018
5a8e43f
General: Update copyright year to 2018 in license.txt.
SergeyBiryukov Jan 23, 2018
dd263fc
Login: Use `wp_safe_redirect()` when redirecting the login page if fo…
ocean90 Apr 3, 2018
b7ad4d7
Template: Make sure the version string is correctly escaped for use i…
ocean90 Apr 3, 2018
47734f6
Bump 4.0 branch to version 4.0.23
aaroncampbell Apr 3, 2018
5d0d03c
Media: Limit thumbnail file deletions to the same directory as the or…
johnbillion Jul 5, 2018
e0669df
Bump 4.0 branch to version 4.0.24
aaroncampbell Jul 5, 2018
4bf1e12
Media: Improve verification of MIME file types.
jeremyfelt Dec 12, 2018
a887bea
KSES: Conditionally remove the `<form>` element from `$allowedposttags`.
pento Dec 12, 2018
82c3aff
Multisite: Improve messaging for previously activated users.
peterwilsoncc Dec 13, 2018
4b02fb0
KSES: Make the URI attributes DRY.
iandunn Dec 13, 2018
c19efc0
Multisite: Validate activation links.
peterwilsoncc Dec 13, 2018
837af88
Editor: Remove unwanted fields before saving posts.
pento Dec 13, 2018
0ac92b3
Bump 4.0 branch to version 4.0.25.
jeremyfelt Dec 13, 2018
33938f5
Comments: Improve comment content filtering.
SergeyBiryukov Mar 12, 2019
b91cab4
WordPress 4.0.26
pento Mar 13, 2019
442e49e
Build/Test tools: Fix the Travis CI build for the 4.0 branch.
johnbillion Mar 26, 2019
701d78e
Escape the output in `wp_ajax_upload_attachment()`.
SergeyBiryukov Sep 4, 2019
0bbd6c2
Remove _convert_urlencoded_to_entities() from the get_the_content() c…
whyisjake Sep 4, 2019
72bc032
Improve URL validation in `wp_validate_redirect()`.
SergeyBiryukov Sep 4, 2019
371474f
Fix for URL sanitization in `wp_kses_bad_protocol_once()`.
desrosj Sep 4, 2019
d6d162d
WordPress 4.0.27.
desrosj Sep 4, 2019
8a02054
Backporting several bug fixes.
whyisjake Oct 14, 2019
143bfc0
WordPress 4.0.28.
desrosj Oct 14, 2019
473123a
Update `wp_kses_bad_protocol()` to recognize `&colon;` on uri attribu…
SergeyBiryukov Dec 12, 2019
5e48e39
WordPress 4.0.29
SergeyBiryukov Dec 12, 2019
7baf7d5
User: Invalidate `user_activation_key` on password update.
whyisjake Apr 29, 2020
a941556
WordPress 4.0.30
desrosj Apr 29, 2020
d5e5bd0
Updating the About page for WordPress 4.0.30
desrosj Apr 29, 2020
74eff17
WordPress 4.0.30 contains multiple fixes.
desrosj Apr 29, 2020
325a7b4
General: Backport several commits for release.
whyisjake Jun 10, 2020
65bda9c
Themes: Ensure a broken theme name is returned properly.
SergeyBiryukov Jun 10, 2020
9c6b9ba
WordPress 4.0.31.
desrosj Jun 10, 2020
8dd4755
Administration: Pass the result of `set-screen-option` filter to the …
SergeyBiryukov Jul 1, 2020
b9280a9
General: WordPress updates
whyisjake Oct 29, 2020
e3b7bd4
WordPress 4.0.32.
desrosj Oct 29, 2020
9508fca
Build/Test Tools: Support NodeJS 14.x in the 4.0 branch.
desrosj Feb 5, 2021
c54f6d1
Build/Test Tools: Backport GitHub Action and build improvements to th…
desrosj Apr 2, 2021
661fd52
External libraries: Improve attachment handling in PHPMailer
peterwilsoncc May 12, 2021
46f01d9
WordPress 4.0.33.
peterwilsoncc May 12, 2021
da7258c
Grouped backports to the 4.0 branch.
desrosj Jan 6, 2022
6d5ba74
WordPress 4.0.33.
desrosj Jan 6, 2022
153c04d
External Librairies: Update jQuery.query to version 2.2.3.
SergeyBiryukov Mar 10, 2022
01fd225
WordPress 4.0.35.
SergeyBiryukov Mar 10, 2022
1092d3d
Grouped backports to the 4.0 branch.
SergeyBiryukov Aug 30, 2022
4432149
WordPress 4.0.36.
desrosj Aug 30, 2022
5563191
Security: Introduce strings to indicate support status.
peterwilsoncc Oct 10, 2022
314c192
Grouped backports to the 4.0 branch.
SergeyBiryukov Oct 17, 2022
da7d5d1
WordPress 4.0.37.
SergeyBiryukov Oct 17, 2022
f204416
Security: Replace update nag to indicate end of support.
peterwilsoncc Nov 29, 2022
a333bae
WordPress 4.0.38.
peterwilsoncc Nov 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
WordPress - Web publishing software

Copyright 2014 by the contributors
Copyright 2018 by the contributors

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
1 change: 0 additions & 1 deletion readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<body>
<h1 id="logo">
<a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
<br /> Version 4.0
</h1>
<p style="text-align: center">Semantic Personal Publishing Platform</p>

Expand Down
84 changes: 63 additions & 21 deletions wp-activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,50 @@
die();
}

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

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

$key = '';
$result = null;

if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST['key'] ) {
wp_die( __( 'A key value mismatch has been detected. Please follow the link provided in your activation email.' ), __( 'An error occurred during the activation' ), 400 );
} elseif ( ! empty( $_GET['key'] ) ) {
$key = $_GET['key'];
} elseif ( ! empty( $_POST['key'] ) ) {
$key = $_POST['key'];
}

if ( $key ) {
$redirect_url = remove_query_arg( 'key' );

if ( $redirect_url !== remove_query_arg( false ) ) {
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
wp_safe_redirect( $redirect_url );
exit;
} else {
$result = wpmu_activate_signup( $key );
}
}

if ( $result === null && isset( $_COOKIE[ $activate_cookie ] ) ) {
$key = $_COOKIE[ $activate_cookie ];
$result = wpmu_activate_signup( $key );
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
}

if ( $result === null || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {
status_header( 404 );
} elseif ( is_wp_error( $result ) ) {
$error_code = $result->get_error_code();

if ( ! in_array( $error_code, $valid_error_codes ) ) {
status_header( 400 );
}
}

if ( is_object( $wp_object_cache ) )
$wp_object_cache->cache_enabled = false;

Expand Down Expand Up @@ -63,12 +107,13 @@ function wpmu_activate_stylesheet() {
<?php
}
add_action( 'wp_head', 'wpmu_activate_stylesheet' );
add_action( 'wp_head', 'wp_sensitive_page_meta' );

get_header();
?>

<div id="content" class="widecolumn">
<?php if ( empty($_GET['key']) && empty($_POST['key']) ) { ?>
<?php if ( ! $key ) { ?>

<h2><?php _e('Activation Key Required') ?></h2>
<form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>">
Expand All @@ -82,28 +127,25 @@ function wpmu_activate_stylesheet() {
</form>

<?php } else {

$key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key'];
$result = wpmu_activate_signup( $key );
if ( is_wp_error($result) ) {
if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) {
$signup = $result->get_error_data();
?>
<h2><?php _e('Your account is now active!'); ?></h2>
<?php
echo '<p class="lead-in">';
if ( $signup->domain . $signup->path == '' ) {
printf( __('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>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
} else {
printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$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="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
}
echo '</p>';
if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) {
$signup = $result->get_error_data();
?>
<h2><?php _e('Your account is now active!'); ?></h2>
<?php
echo '<p class="lead-in">';
if ( $signup->domain . $signup->path == '' ) {
printf( __('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>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
} else {
?>
<h2><?php _e('An error occurred during the activation'); ?></h2>
<?php
echo '<p>'.$result->get_error_message().'</p>';
printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$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="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
}
echo '</p>';
} elseif ( $result === null || is_wp_error( $result ) ) {
?>
<h2><?php _e('An error occurred during the activation'); ?></h2>
<?php if ( is_wp_error( $result ) ) {
echo '<p>' . $result->get_error_message() . '</p>';
} ?>
<?php
} else {
$url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : '';
$user = get_userdata( (int) $result['user_id'] );
Expand Down
Loading