WordPress.org

Make WordPress Core

Changeset 10805


Ignore:
Timestamp:
03/17/2009 05:43:57 PM (9 years ago)
Author:
ryan
Message:

Pass the unprocessed title to the sanitize_title filter. Props chineseleper. fixes #8981 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/formatting.php

    r10460 r10805  
    638638 */
    639639function sanitize_title($title, $fallback_title = '') {
     640    $raw_title = $title;
    640641    $title = strip_tags($title);
    641     $title = apply_filters('sanitize_title', $title);
     642    $title = apply_filters('sanitize_title', $title, $raw_title);
    642643
    643644    if ( '' === $title || false === $title )
Note: See TracChangeset for help on using the changeset viewer.