Make WordPress Core


Ignore:
Timestamp:
12/08/2008 03:46:26 AM (16 years ago)
Author:
azaozz
Message:

Filter menu IDs, fixes #8523

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu-header.php

    r9784 r10123  
    5858        $class = $class ? ' class="' . join( ' ', $class ) . '"' : '';
    5959        $tabindex = ' tabindex="1"';
    60         $id = isset($item[5]) && ! empty($item[5]) ? ' id="' . $item[5] . '"' : '';
     60        $id = isset($item[5]) && ! empty($item[5]) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';
    6161        $img = '';
    6262        if ( isset($item[6]) && ! empty($item[6]) ) {
Note: See TracChangeset for help on using the changeset viewer.