#22585 closed defect (bug) (fixed)
wp_editor() gives fatal error on front-end
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | major | Version: | 3.5 |
Component: | Editor | Keywords: | needs-unit-tests has-patch commit |
Focuses: | Cc: |
Description
Adding wp_editor() to theme front-end gives fatal error when media_buttons are set to true.
Fatal error: Call to undefined function is_upload_space_available() in /home/vds/public_html/clients/client1/web6/web/wp-includes/media.php on line 1274
Attachments (2)
Change History (13)
#4
@
12 years ago
- Keywords reporter-feedback removed
- Milestone changed from Awaiting Review to 3.5
Actually, it doesn't matter; I can reproduce with latest trunk.
#6
@
12 years ago
- Keywords needs-unit-tests needs-patch added
Me thinks we should have a basic unit test for this that just checks if there are any errors, fatal or otherwise, when calling wp_editor() in the front-end.
#8
@
12 years ago
- Keywords commit added
This is not going to be easy to unit test, because we load all functions in unit tests. (We *could* create a group of frontend tests that run first.) That said, we should work into our workflows to test wp_editor() and all related media stuff on the frontend.
This was originally fixed in [22497] and obviously [22821] required one last function in the mix.
#9
@
12 years ago
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
In 22840:
Related: #22357