mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
PHP Notice fix for non-normative nonce action strings. props Viper007Bond. see #9393
git-svn-id: https://develop.svn.wordpress.org/trunk@10857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2282,9 +2282,11 @@ function wp_explain_nonce( $action ) {
|
||||
return $trans[$verb][$noun][0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] );
|
||||
return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] );
|
||||
} else {
|
||||
return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user