You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,17 +3,37 @@
3
3
## What?
4
4
<!-- In a few words, what is the PR actually doing? -->
5
5
6
+
<!-- Please reference the issue this PR fixes -->
7
+
Fixes #
8
+
6
9
## Why?
7
10
<!-- Why is this PR necessary? What problem is it solving? Reference any existing previous issue(s) or PR(s), but please add a short summary here, too. -->
8
11
9
12
## How?
10
13
<!-- How is your PR addressing the issue at hand? What are the implementation details? -->
11
14
15
+
## Use of AI Tools
16
+
<!--
17
+
You are free to use artificial intelligence (AI) tooling to contribute, but you must disclose what tooling you are using and to what extent a pull request has been authored by AI. It is your responsibility to review and take responsibility for what AI generates. See the WordPress AI Guidelines: <https://make.wordpress.org/ai/handbook/ai-guidelines/>.
18
+
19
+
Example disclosure:
20
+
21
+
AI assistance: Yes
22
+
Tool(s): GitHub Copilot, ChatGPT
23
+
Model(s): GPT-5.1
24
+
Used for: Initial code skeleton and test suggestions; final implementation and tests were reviewed and edited by me.
25
+
-->
26
+
12
27
## Testing Instructions
13
28
<!-- Please provide steps on how to test or validate that the change in this PR works as described. -->
14
29
15
30
## Screenshots or screencast
16
-
<!-- if applicable -->
31
+
<!-- If this PR includes UI changes, please provide screenshots or a screen recording for clarity. -->
32
+
<!-- This section can be removed if not applicable. -->
33
+
34
+
| Before | After |
35
+
| ------ | ----- |
36
+
|||
17
37
18
38
## Changelog Entry
19
39
<!--
@@ -24,3 +44,4 @@ Please include a summary for this PR, noting whether this is something being Add
24
44
> Removed - Feature.
25
45
> Fixed - Bug fix.
26
46
> Security - Vulnerability.
47
+
> Development Update - Development related updates.
@@ -550,8 +567,8 @@ public static function is_valid_user_action( $user_id, $action ) {
550
567
*/
551
568
publicstaticfunctioncurrent_user_being_edited() {
552
569
// Try to resolve the user ID from the request first.
553
-
if ( ! empty( $_REQUEST['user_id'] ) ) {
554
-
$user_id = intval( $_REQUEST['user_id'] );
570
+
if ( ! empty( $_REQUEST['user_id'] ) ) {// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce verified in trigger_user_settings_action() via is_valid_user_action() before any state change.
571
+
$user_id = intval( $_REQUEST['user_id'] );// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce verified in trigger_user_settings_action() via is_valid_user_action() before any state change.
555
572
556
573
if ( current_user_can( 'edit_user', $user_id ) ) {
557
574
return$user_id;
@@ -570,8 +587,9 @@ public static function current_user_being_edited() {
if ( isset( $_REQUEST['rememberme'] ) && $_REQUEST['rememberme'] ) {
1651
+
if ( ! empty( $_REQUEST['rememberme'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Request read only after successful verify_login_nonce() in this request.
1628
1652
$rememberme = true;
1629
1653
}
1630
1654
@@ -1665,7 +1689,7 @@ public static function _login_form_validate_2fa( $user, $nonce = '', $provider =
$customize_login = isset( $_REQUEST['customize-login'] );// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Request read only after successful verify_login_nonce() in this request.
1669
1693
if ( $customize_login ) {
1670
1694
wp_enqueue_script( 'customize-base' );
1671
1695
wp_add_inline_script(
@@ -1699,10 +1723,10 @@ public static function _login_form_validate_2fa( $user, $nonce = '', $provider =
@@ -2128,7 +2152,9 @@ public static function user_two_factor_options( $user ) {
2128
2152
self::add_error(
2129
2153
newWP_Error(
2130
2154
'two_factor_suggest_backup',
2131
-
__( 'To prevent being locked out of your account, consider enabling a backup method like Recovery Codes in case you lose access to your primary authentication method.', 'two-factor' ),
2155
+
isset( $providers['Two_Factor_Backup_Codes'] )
2156
+
? __( 'To prevent being locked out of your account, consider enabling a backup method like Recovery Codes in case you lose access to your primary authentication method.', 'two-factor' )
2157
+
: __( 'To prevent being locked out of your account, consider enabling an additional two-factor method in case you lose access to your primary authentication method.', 'two-factor' ),
<?phpesc_html_e( 'Configure a primary two-factor method along with a backup method, such as Recovery Codes, to avoid being locked out if you lose access to your primary method. Methods marked as recommended are more secure and easier to use.', 'two-factor' ); ?>
2267
+
<?php
2268
+
echoesc_html(
2269
+
isset( $providers['Two_Factor_Backup_Codes'] )
2270
+
? __( 'Configure a primary two-factor method along with a backup method, such as Recovery Codes, to avoid being locked out if you lose access to your primary method. Methods marked as recommended are more secure and easier to use.', 'two-factor' )
2271
+
: __( 'Configure a primary two-factor method along with an additional two-factor method to avoid being locked out if you lose access to your primary method. Methods marked as recommended are more secure and easier to use.', 'two-factor' )
0 commit comments