WordPress.org

Make WordPress Core

Changeset 22253


Ignore:
Timestamp:
10/17/2012 01:09:17 PM (7 years ago)
Author:
ryan
Message:

Allow numbers in screen option IDs. Fixes setting posts per page for custom post types containing 0-9. Props SergeyBiryukov. fixes #18323

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r22009 r22253  
    326326        $value = $_POST['wp_screen_options']['value'];
    327327
    328         if ( !preg_match( '/^[a-z_-]+$/', $option ) )
     328        if ( $option != sanitize_key( $option ) )
    329329            return;
    330330
Note: See TracChangeset for help on using the changeset viewer.