new_user_email_admin_notice()

 

File: wp-includes/user.php

function new_user_email_admin_notice() {
	global $pagenow;

	if ( 'profile.php' === $pagenow && isset( $_GET['updated'] ) ) {
		$email = get_user_meta( get_current_user_id(), '_new_email', true );
		if ( $email ) {
			/* translators: %s: New email address */
			echo '<div class="notice notice-info"><p>' . sprintf( __( 'Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.' ), '<code>' . esc_html( $email['newemail'] ) . '</code>' ) . '</p></div>';
		}
	}
}

参数:new_user_email_admin_notice()

此函数是从wp admin/includes/ms.php中删除的,因此它不再是多站点特定的。

85.00% (17) 次Baidu访问
15.00% (3) 次Sogou访问
  • 蜘蛛:Baidu,17次,更新时间:2019-05-24 02:46:28
  • 蜘蛛:Sogou,3次,更新时间:2019-05-06 00:01:32

参与评论