Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#22357 closed defect (bug) (fixed)

wp_editor calls non-existent filter callback on front end in multisite mode

Reported by: wonderboymusic's profile wonderboymusic Owned by: westi's profile westi
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.0
Component: Multisite Keywords: has-patch commit
Focuses: Cc:


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)

move-ms-upload-functions.diff (4.3 KB) - added by wonderboymusic 12 years ago.

Download all attachments as: .zip

Change History (6)

#1 @wonderboymusic
12 years ago

  • Owner set to wonderboymusic
  • Status changed from new to accepted

#2 @nacin
12 years ago

  • Keywords commit added


#3 @nacin
12 years ago

  • Owner changed from wonderboymusic to westi
  • Status changed from accepted to assigned

#4 @westi
12 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 22497:

Multisite: Move all the functions which calculate upload space usage to wp-includes so they apply correctly with front-end editors.

Fixes #22357 props wonderboymusic.

#5 @scribu
12 years ago

Related: #22585

Note: See TracTickets for help on using tickets.