WordPress.org

Make WordPress Core

Ticket #18323: 18323.patch

File 18323.patch, 485 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-admin/includes/misc.php

     
    328328                $option = $_POST['wp_screen_options']['option'];
    329329                $value = $_POST['wp_screen_options']['value'];
    330330
    331                 if ( !preg_match( '/^[a-z_-]+$/', $option ) )
     331                if ( !preg_match( '/^[a-z0-9_-]+$/', $option ) )
    332332                        return;
    333333
    334334                $option = str_replace('-', '_', $option);