[wp-trac] [WordPress Trac] #37989: Unexpected change to media title behavior in WP 4.6.1

WordPress Trac noreply at wordpress.org
Sat Oct 1 10:42:11 UTC 2016


#37989: Unexpected change to media title behavior in WP 4.6.1
--------------------------------------------------+------------------------
 Reporter:  arhenderson63                         |       Owner:  joemcgill
     Type:  defect (bug)                          |      Status:  reopened
 Priority:  normal                                |   Milestone:  4.6.2
Component:  Media                                 |     Version:  4.6.1
 Severity:  major                                 |  Resolution:
 Keywords:  has-patch has-unit-tests fixed-major  |     Focuses:
--------------------------------------------------+------------------------

Comment (by oldrup):

 Sorry if obscuring this ticket with irrelevant feedback, but I really
 needed to find a fix on this. When uploading many files each day, with
 proper names, its quite a nuisance having to re-enter the title each
 time..

 This snippet works for me, leaving the title alone.


 {{{
 /* Don't sanitize title of uploaded files */
 add_filter( 'sanitize_title', function( $changed, $raw ) {
 return $raw;
 }, PHP_INT_MAX, 2 );
 }}}

 I've got my spaces and my special characters - just as I need it. This is
 most likely not a proper solution for everyone, but at least is shows what
 end results is needed by some.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37989#comment:56>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list