Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#35964 closed enhancement (fixed)

Improve docs for WP_Dependencies/WP_Styles/WP_Scripts and related functions

Reported by: ocean90's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: 4.5 Priority: normal
Severity: normal Version:
Component: Script Loader Keywords:
Focuses: docs Cc:

Description (last modified by ocean90)

Tickets which introduced mentioned classes/function:

  • #2701 – Centralize javascript inclusions
  • #3911 – Javascript should not be localized by via PHP
  • #7011 – Create wp_print_styles() to match wp_print_scripts()
  • #8628 – Extend class WP_Scripts to support concatenating, compressing and printing scripts in the HTML head and the footer

Attachments (2)

35964.patch (13.7 KB) - added by ocean90 9 years ago.
35964.2.patch (16.8 KB) - added by ocean90 9 years ago.

Download all attachments as: .zip

Change History (13)

#1 @ocean90
9 years ago

  • Owner set to ocean90
  • Status changed from new to accepted

#2 @ocean90
9 years ago

In 36729:

Docs: Use correct @since tags for script enqueue functions.

See [4968], [3788].
See #35964.

#3 @ocean90
9 years ago

In 36730:

Docs: Document properties of WP_Scripts and add missing @since tags.

See #35964.

#4 @ocean90
9 years ago

In 36731:

Docs: In WP_Dependencies add a changelog entry to methods which were moved from WP_Scripts to WP_Dependencies.

See #35964.

#5 @ocean90
9 years ago

  • Description modified (diff)

#6 @ocean90
9 years ago

In 36732:

Docs: In WP_Dependencies add a changelog entry for the $group parameter.

See #35964.

#7 @ocean90
9 years ago

In 36733:

Docs: Add missing @since tags to WP_Styles properties/methods.

See #35964.

@ocean90
9 years ago

#8 @ocean90
9 years ago

@DrewAPicture I'd like to get rid of the references to BackPress in the file headers and class docs. Any objections to this?

#9 @DrewAPicture
9 years ago

@ocean90 Nope. I talked to @johnjamesjacoby about this a couple of months ago and the consensus was: go ahead.

@ocean90
9 years ago

#10 @ocean90
9 years ago

In 36744:

Docs: Improve inline docs for WP_Dependencies, WP_Styles, and WP_Scripts.

Also, make them and related files part of WordPress.

See #35964.

#11 @ocean90
9 years ago

  • Milestone changed from Awaiting Review to 4.5
  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.