#22357 closed defect (bug) (fixed)
wp_editor calls non-existent filter callback on front end in multisite mode
| Reported by: | wonderboymusic | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Multisite | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Okay.