[wp-trac] [WordPress Trac] #22357: wp_editor calls non-existent filter callback on front end in multisite mode

WordPress Trac noreply at wordpress.org
Sun Nov 4 03:45:41 UTC 2012


#22357: wp_editor calls non-existent filter callback on front end in multisite mode
----------------------------+--------------------------
 Reporter:  wonderboymusic  |       Type:  defect (bug)
   Status:  new             |   Priority:  normal
Milestone:  3.5             |  Component:  Multisite
  Version:  3.0             |   Severity:  normal
 Keywords:  has-patch       |
----------------------------+--------------------------
 When you are using {{{wp_editor()}}} on the front-end in Multisite mode,
 the editor will run code that applies upload_size_limit filter.

 The default ms callback for 'upload_size_limit' is only accessible from
 the admin.
 {{{
 add_filter( 'upload_size_limit', 'upload_size_limit_filter' );
 }}}

 {{{wp-includes/ms-functions.php}}} is always loaded in multisite, so I
 moved the 4 necessary functions there from {{{wp-admin/includes/ms.php}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22357>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list