WordPress.org

Make WordPress Core

Changeset 10804


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r10783 r10804  
    637637 */
    638638function sanitize_title($title, $fallback_title = '') {
     639    $raw_title = $title;
    639640    $title = strip_tags($title);
    640     $title = apply_filters('sanitize_title', $title);
     641    $title = apply_filters('sanitize_title', $title, $raw_title);
    641642
    642643    if ( '' === $title || false === $title )
Note: See TracChangeset for help on using the changeset viewer.