mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Remove profile_page_email_warning_ob_start() and profile_page_email_warning_ob_content(). fixes #11759
git-svn-id: http://svn.automattic.com/wordpress/trunk@12841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
692cdf0c7b
commit
416b218ef1
@ -266,15 +266,6 @@ All at ###SITENAME###
|
|||||||
}
|
}
|
||||||
add_action('update_option_new_admin_email', 'update_option_new_admin_email', 10, 2);
|
add_action('update_option_new_admin_email', 'update_option_new_admin_email', 10, 2);
|
||||||
|
|
||||||
function profile_page_email_warning_ob_start() {
|
|
||||||
ob_start( 'profile_page_email_warning_ob_content' );
|
|
||||||
}
|
|
||||||
|
|
||||||
function profile_page_email_warning_ob_content( $content ) {
|
|
||||||
$content = str_replace( ' class="regular-text" /> Required.</td>', ' class="regular-text" /> Required. (You will be sent an email to confirm the change)</td>', $content );
|
|
||||||
return $content;
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_profile_email() {
|
function update_profile_email() {
|
||||||
global $current_user, $wpdb;
|
global $current_user, $wpdb;
|
||||||
if ( isset( $_GET[ 'newuseremail' ] ) && $current_user->ID ) {
|
if ( isset( $_GET[ 'newuseremail' ] ) && $current_user->ID ) {
|
||||||
@ -1079,7 +1070,6 @@ add_action ( 'myblogs_allblogs_options', 'choose_primary_blog' );
|
|||||||
|
|
||||||
if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) ) {
|
if ( strpos( $_SERVER['PHP_SELF'], 'profile.php' ) ) {
|
||||||
add_action( 'admin_init', 'update_profile_email' );
|
add_action( 'admin_init', 'update_profile_email' );
|
||||||
add_action( 'admin_init', 'profile_page_email_warning_ob_start' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function blogs_listing_post() {
|
function blogs_listing_post() {
|
||||||
|
Loading…
Reference in New Issue
Block a user