WordPress.org

Make WordPress Core

Changeset 9759


Ignore:
Timestamp:
11/18/08 18:38:20 (7 years ago)
Author:
ryan
Message:

Allow underscores in page names for meta box and column requests. see #8246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r9712 r9759  
    820820    $hidden = explode( ',', $_POST['hidden'] ); 
    821821    $page = isset( $_POST['page'] )? $_POST['page'] : ''; 
    822     if ( !preg_match( '/^[a-z-]+$/', $page ) ) { 
     822    if ( !preg_match( '/^[a-z-_]+$/', $page ) ) { 
    823823        die(-1); 
    824824    } 
     
    834834    $hidden = explode( ',', $_POST['hidden'] ); 
    835835    $page = isset( $_POST['page'] )? $_POST['page'] : ''; 
    836     if ( !preg_match( '/^[a-z-]+$/', $page ) ) { 
     836    if ( !preg_match( '/^[a-z-_]+$/', $page ) ) { 
    837837        die(-1); 
    838838    } 
Note: See TracChangeset for help on using the changeset viewer.