WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4598 closed defect (bug) (wontfix)

jquery script not queued in post editing page.

Reported by: olivm Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

the jquery scripts are not enqueued in the post editing page.
but they are enqueued in post-new...

--- /home/oliv/workspace/wordpress/wp-admin/post.php (revision 5790)
+++ /home/oliv/workspace/wordpress/wp-admin/post.php (working copy)
@@ -55,6 +55,7 @@

if($post->post_status == 'draft') {

wp_enqueue_script('prototype');

+ wp_enqueue_script('interface');

wp_enqueue_script('autosave');

}
require_once('admin-header.php');

Attachments (1)

4598.diff (375 bytes) - added by Nazgul 7 years ago.

Download all attachments as: .zip

Change History (5)

Nazgul7 years ago

comment:1 Nazgul7 years ago

  • Keywords has-patch added

comment:2 mdawaffe7 years ago

I don't think we need jQuery or interface on either of those pages. Correct me if I'm wrong, somebody.

Plugins can load jQuery if they need to (plugins loading JS should be using wp_enqueue_script() anyway), but core should load as little JS as possible.

comment:3 ryan7 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

comment:4 foolswisdom7 years ago

  • Milestone 2.3 deleted
Note: See TracTickets for help on using tickets.