auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -17,8 +17,6 @@ class WPSEO_Admin_User_Profile {
|
||||
public function __construct() {
|
||||
add_action( 'show_user_profile', [ $this, 'user_profile' ] );
|
||||
add_action( 'edit_user_profile', [ $this, 'user_profile' ] );
|
||||
add_action( 'personal_options_update', [ $this, 'process_user_option_update' ] );
|
||||
add_action( 'edit_user_profile_update', [ $this, 'process_user_option_update' ] );
|
||||
|
||||
add_action( 'update_user_meta', [ $this, 'clear_author_sitemap_cache' ], 10, 3 );
|
||||
}
|
||||
@@ -43,11 +41,16 @@ class WPSEO_Admin_User_Profile {
|
||||
/**
|
||||
* Updates the user metas that (might) have been set on the user profile page.
|
||||
*
|
||||
* @deprecated 22.6
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param int $user_id User ID of the updated user.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function process_user_option_update( $user_id ) {
|
||||
_deprecated_function( __METHOD__, 'Yoast SEO 22.6' );
|
||||
|
||||
update_user_meta( $user_id, '_yoast_wpseo_profile_updated', time() );
|
||||
|
||||
if ( ! check_admin_referer( 'wpseo_user_profile_update', 'wpseo_nonce' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user