Changeset 11507
- Timestamp:
- 03/09/2017 06:58:18 PM (8 years ago)
- Location:
- branches/2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0
-
branches/2.0/bp-templates/bp-legacy/buddypress-functions.php
r11458 r11507 924 924 return; 925 925 926 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( wp_unslash( $_POST['nonce'] ), 'mark_favorite' ) ) { 926 // Either the 'mark' or 'unmark' nonce is accepted, for backward compatibility. 927 $nonce = wp_unslash( $_POST['nonce'] ); 928 if ( ! wp_verify_nonce( $nonce, 'mark_favorite' ) && ! wp_verify_nonce( $nonce, 'unmark_favorite' ) ) { 927 929 return; 928 930 } … … 947 949 return; 948 950 949 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( wp_unslash( $_POST['nonce'] ), 'unmark_favorite' ) ) { 951 // Either the 'mark' or 'unmark' nonce is accepted, for backward compatibility. 952 $nonce = wp_unslash( $_POST['nonce'] ); 953 if ( ! wp_verify_nonce( $nonce, 'mark_favorite' ) && ! wp_verify_nonce( $nonce, 'unmark_favorite' ) ) { 950 954 return; 951 955 }
Note: See TracChangeset
for help on using the changeset viewer.