[wp-trac] [WordPress Trac] #18637: Poor regex used in admin-ajax.php for user UI state
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 11 08:56:57 UTC 2011
#18637: Poor regex used in admin-ajax.php for user UI state
----------------------------+-----------------------------
Reporter: MarcusPope | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.2.1
Severity: major | Keywords: has-patch
----------------------------+-----------------------------
The regex used to determine if the current page is blacklisted during meta
box ordering or screen options changes or box closing actions will filter
out custom post types that contain numbers in their names.
In this case all changes to the meta box layout will go unsaved without
any notice to the user.
Attached is a patch that abstracts the repetitive / restrictive regex to a
constant and updates it to accept 0-9. Not sure if other characters need
to be added but the base change is there.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18637>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list