WordPress.org

Make WordPress Core

Changeset 19020


Ignore:
Timestamp:
10/19/11 23:51:06 (3 years ago)
Author:
nacin
Message:

Sanitize plural and singular args for list tables. props sbressler, fixes #18875.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r18853 r19020  
    9191        if ( !$args['plural'] ) 
    9292            $args['plural'] = $screen->base; 
     93 
     94        $args['plural'] = sanitize_key( $args['plural'] ); 
     95        $args['singular'] = sanitize_key( $args['singular'] ); 
    9396 
    9497        $this->_args = $args; 
Note: See TracChangeset for help on using the changeset viewer.