[wp-trac] [WordPress Trac] #40687: pre_option_upload_url_path filter no longer working

WordPress Trac noreply at wordpress.org
Sun May 7 20:42:55 UTC 2017


#40687: pre_option_upload_url_path filter no longer working
--------------------------+-----------------------------
 Reporter:  QROkes        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 “pre_option_upload_url_path” filter is not working since WP 4.7.

 This is my use case that used to work like a charm before, it's pretty
 simple and seems like an issue in the {{{wp_upload_dir()}}} function in
 {{{/wp-includes/functions.php}}} file.

 {{{
 function cdn_url() {
   return 'http://cdn.domain/wp-content/uploads';
 }
 add_filter( 'pre_option_upload_url_path', 'cdn_url' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40687>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list