Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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)

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

Download all attachments as: .zip

Change History (6)

#1 @wonderboymusic
14 years ago

  • Owner set to wonderboymusic
  • Status newaccepted

#2 @nacin
14 years ago

  • Keywords commit added

Okay.

#3 @nacin
14 years ago

  • Owner changed from wonderboymusic to westi
  • Status acceptedassigned

#4 @westi
14 years ago

  • Resolutionfixed
  • Status assignedclosed

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
14 years ago

Related: #22585

Note: See TracTickets for help on using tickets.