WordPress.org

Make WordPress Core

Changeset 29801


Ignore:
Timestamp:
10/01/2014 06:57:08 PM (5 years ago)
Author:
wonderboymusic
Message:

Add a default filter to title_save_pre: trim, because extra whitespace.

Props nikolov.tmw, avryl.
Fixes #19904.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r27484 r29801  
    192192add_filter( 'pingback_ping_source_uri', 'pingback_ping_source_uri'            );
    193193add_filter( 'xmlrpc_pingback_error',    'xmlrpc_pingback_error'               );
     194add_filter( 'title_save_pre',           'trim'                                );
    194195
    195196add_filter( 'http_request_host_is_external', 'allowed_http_request_hosts', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.