Make WordPress Core

Changeset 12531


Ignore:
Timestamp:
12/24/2009 08:21:16 AM (15 years ago)
Author:
westi
Message:

phpDoc updates for functions.wp-styles.php. Merge from BackPress props CharlesClarkson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.wp-styles.php

    r11656 r12531  
    1414 * @global object $wp_styles The WP_Styles object for printing styles.
    1515 *
    16  * @param array $handles (optional) Styles to be printed.  (void) prints queue, (string) prints that style, (array of strings) prints those styles.
     16 * @param array|bool $handles Styles to be printed. An empty array prints the queue,
     17 *  an array with one string prints that style, and an array of strings prints those styles.
    1718 * @return bool True on success, false on failure.
    1819 */
     
    3738 *
    3839 * @since r79
    39  * @see WP_Styles::add() For parameter and additional information.
     40 * @see WP_Styles::add() For additional information.
     41 * @global object $wp_styles The WP_Styles object for printing styles.
     42 * @link http://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types.
     43 *
     44 * @param string $handle Name of the stylesheet.
     45 * @param string|bool $src Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'.
     46 * @param array $deps Array of handles of any stylesheet that this stylesheet depends on.
     47 *  (Stylesheets that must be loaded before this stylesheet.) Pass an empty array if there are no dependencies.
     48 * @param string|bool $ver String specifying the stylesheet version number, if it has one. This parameter
     49 *  is used to ensure that the correct version is sent to the client regardless of caching, and so should be included
     50 *  if a version number is available and makes sense for the stylesheet.
     51 * @param string $media The media for which this stylesheet has been defined.
    4052 */
    4153function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) {
     
    5163 *
    5264 * @since r79
    53  * @see WP_Styles::remove() For parameter and additional information.
     65 * @see WP_Styles::remove() For additional information.
     66 * @global object $wp_styles The WP_Styles object for printing styles.
     67 *
     68 * @param string $handle Name of the stylesheet.
    5469 */
    5570function wp_deregister_style( $handle ) {
     
    6681 * @since r79
    6782 * @see WP_Styles::add(), WP_Styles::enqueue()
     83 * @global object $wp_styles The WP_Styles object for printing styles.
     84 * @link http://www.w3.org/TR/CSS2/media.html#media-types List of CSS media types.
     85 *
     86 * @param string $handle Name of the stylesheet.
     87 * @param string|bool $src Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'.
     88 * @param array $deps Array of handles (names) of any stylesheet that this stylesheet depends on.
     89 *  (Stylesheets that must be loaded before this stylesheet.) Pass an empty array if there are no dependencies.
     90 * @param string|bool $ver String specifying the stylesheet version number, if it has one. This parameter
     91 *  is used to ensure that the correct version is sent to the client regardless of caching, and so should be included
     92 *  if a version number is available and makes sense for the stylesheet.
     93 * @param string $media The media for which this stylesheet has been defined.
    6894 */
    6995function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) {
     
    82108 * Check whether style has been added to WordPress Styles.
    83109 *
    84  * The values for list defaults to 'queue', which is the same as enqueue for
    85  * styles.
     110 * The values for list defaults to 'queue', which is the same as wp_enqueue_style().
    86111 *
    87112 * @since WP unknown; BP unknown
     113 * @global object $wp_styles The WP_Styles object for printing styles.
    88114 *
    89  * @param string $handle Handle used to add style.
    90  * @param string $list Optional, defaults to 'queue'. Others values are 'registered', 'queue', 'done', 'to_do'
    91  * @return bool
     115 * @param string $handle Name of the stylesheet.
     116 * @param string $list Values are 'registered', 'done', 'queue' and 'to_do'.
     117 * @return bool True on success, false on failure.
    92118 */
    93119function wp_style_is( $handle, $list = 'queue' ) {
Note: See TracChangeset for help on using the changeset viewer.