WordPress.org

Make WordPress Core

#23896 closed defect (bug) (fixed)

Post Formats: "Localize" the right script

Reported by: ocean90 Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords: has-patch commit
Focuses: Cc:

Description

The currentPostFormat variable should be added to the post-formats.js script.

Patch also prevents a notice on the edit screen for media.

Notice: Undefined variable: active_post_type_slug in /wp-admin/edit-form-advanced.php

Attachments (1)

23896.patch (1.3 KB) - added by ocean90 13 months ago.

Download all attachments as: .zip

Change History (3)

ocean9013 months ago

comment:1 SergeyBiryukov13 months ago

  • Keywords commit added

comment:2 SergeyBiryukov13 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 23868:

Fix incorrect script handle and a notice. props ocean90. fixes #23896.

Note: See TracTickets for help on using tickets.