WordPress.org

Make WordPress Core

Ticket #23289: patch

File patch, 509 bytes (added by agarden, 5 years ago)

Patch

  • wp-includes/option.php

     
    105105 */
    106106function wp_protect_special_option( $option ) {
    107107        $protected = array( 'alloptions', 'notoptions' );
    108         if ( in_array( $option, $protected ) )
     108        if ( in_array( $option, $protected, true ) )
    109109                wp_die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) );
    110110}
    111111