Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#31672 closed enhancement (fixed)

Filter for get_editor_stylesheets()

Reported by: danielbachhuber's profile danielbachhuber Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.3 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch commit
Focuses: Cc:

Description

I'd like to be able to pre-process registered editor stylesheets to append filemtime for automatic cache busting. Yes, I can muck with the global but this is the most exact way to do it.

Related #30187

Attachments (4)

31672.1.diff (305 bytes) - added by danielbachhuber 9 years ago.
31672.2.diff (483 bytes) - added by MikeHansenMe 9 years ago.
31672.3.diff (507 bytes) - added by MikeHansenMe 9 years ago.
31672.4.diff (507 bytes) - added by MikeHansenMe 9 years ago.
updated @since to 4.3.0

Download all attachments as: .zip

Change History (12)

#1 @valendesigns
9 years ago

  • Keywords needs-docs added

Needs a filter docblock.

@MikeHansenMe
9 years ago

#2 @MikeHansenMe
9 years ago

  • Keywords needs-docs removed

#3 @valendesigns
9 years ago

Thanks for the quick response! One thing to note is that filter docs are typically in the "Filter X for X" syntax. Maybe something like "Filter the array of stylesheets applied to the editor.", or similar would be more applicable in this situation?

@MikeHansenMe
9 years ago

#4 @wonderboymusic
9 years ago

  • Milestone changed from Future Release to 4.3
  • Owner set to DrewAPicture
  • Status changed from new to assigned

#5 @DrewAPicture
9 years ago

The hook docs look OK, other than needing to update the @since version to 4.3.0, @mikehandsenme.

@MikeHansenMe
9 years ago

updated @since to 4.3.0

#6 @MikeHansenMe
9 years ago

31672.4.diff is updated to show @since 4.3.0

#7 @DrewAPicture
9 years ago

  • Keywords commit added
  • Owner changed from DrewAPicture to wonderboymusic

Hook docs in 31672.4.diff look good.

#8 @SergeyBiryukov
9 years ago

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

In 32928:

Add editor_stylesheets filter to get_editor_stylesheets().

props danielbachhuber, MikeHansenMe.
fixes #31672.

Note: See TracTickets for help on using tickets.