v1.2.1
This commit is contained in:
parent
a115f08319
commit
17078a91bd
1 changed files with 123 additions and 49 deletions
|
|
@ -62,6 +62,16 @@ class Frontend_Profile {
|
|||
* @return void
|
||||
*/
|
||||
public function maybe_handle_frontend_save(): void {
|
||||
// On wp-admin pages the profile form is already handled by the
|
||||
// personal_options_update / edit_user_profile_update hooks that fire
|
||||
// later in the admin bootstrap (when all admin includes are loaded).
|
||||
// Running here too would call save_profile_settings() twice and
|
||||
// trigger a fatal because add_settings_error() is not yet available
|
||||
// at init time in admin context.
|
||||
if ( is_admin() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue