~canonical-sysadmins/wordpress/upstream

« back to all changes in this revision

Viewing changes to wp-includes/pluggable.php

  • Committer: Barry Price
  • Date: 2019-10-16 07:26:33 UTC
  • Revision ID: barry.price@canonical.com-20191016072633-1jg1zi7uh0fpem6g
new upstream release 5.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1092
1092
         *                   0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
1093
1093
         */
1094
1094
        function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) {
1095
 
                if ( -1 == $action ) {
 
1095
                if ( -1 === $action ) {
1096
1096
                        _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' );
1097
1097
                }
1098
1098
 
1111
1111
                 */
1112
1112
                do_action( 'check_admin_referer', $action, $result );
1113
1113
 
1114
 
                if ( ! $result && ! ( -1 == $action && strpos( $referer, $adminurl ) === 0 ) ) {
 
1114
                if ( ! $result && ! ( -1 === $action && strpos( $referer, $adminurl ) === 0 ) ) {
1115
1115
                        wp_nonce_ays( $action );
1116
1116
                        die();
1117
1117
                }