Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#31672 closed enhancement (fixed)

Filter for get_editor_stylesheets()

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

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 12 years ago.
31672.2.diff​ (483 bytes ) - added by MikeHansenMe 12 years ago.
31672.3.diff​ (507 bytes ) - added by MikeHansenMe 12 years ago.
31672.4.diff​ (507 bytes ) - added by MikeHansenMe 11 years ago.
updated @since to 4.3.0

Download all attachments as: .zip

Change History (12)

#1 @valendesigns
12 years ago

  • Keywords needs-docs added

Needs a filter docblock.

#2 @MikeHansenMe
12 years ago

  • Keywords needs-docs removed

#3 @valendesigns
12 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?

#4 @wonderboymusic
11 years ago

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

#5 @DrewAPicture
11 years ago

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

@MikeHansenMe
11 years ago

updated @since to 4.3.0

#6 @MikeHansenMe
11 years ago

31672.4.diff​ is updated to show @since 4.3.0

#7 @DrewAPicture
11 years ago

  • Keywords commit added
  • Owner changed from DrewAPicture to wonderboymusic

Hook docs in 31672.4.diff​ look good.

#8 @SergeyBiryukov
11 years ago

  • Resolution → fixed
  • Status assigned → closed

In 32928:

Add editor_stylesheets filter to get_editor_stylesheets().

props danielbachhuber, MikeHansenMe.
fixes #31672.

Note: See TracTickets for help on using tickets.