#22357 closed defect (bug) (fixed)
wp_editor calls non-existent filter callback on front end in multisite mode
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Multisite | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Okay.