Changeset 168

Show
Ignore:
Timestamp:
10/29/08 22:31:00 (2 months ago)
Author:
westi
Message:

Merge style function updates and phpdoc from WordPress.

Files:

Legend:

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

    r154 r168  
    88 
    99/** 
    10  * {@internal Missing Short Description}} 
     10 * Display styles that are in the queue or part of $handles. 
    1111 * 
    1212 * @since r79 
     13 * @uses do_action() Calls 'wp_print_styles' hook. 
     14 * @global object $wp_styles The WP_Styles object for printing styles. 
    1315 * 
    14  * @param mixed $handles See {@link WP_Styles::do_items()} for information
    15  * @return mixed See {@link WP_Styles::do_items()} for information
     16 * @param array $handles (optional) Styles to be printed.  (void) prints queue, (string) prints that style, (array of strings) prints those styles
     17 * @return bool True on success, false on failure
    1618 */ 
    1719function wp_print_styles( $handles = false ) { 
     
    3133} 
    3234 
    33 function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = false ) { 
     35/** 
     36 * Register CSS style file. 
     37 * 
     38 * @since r79 
     39 * @see WP_Styles::add() For parameter and additional information. 
     40 */ 
     41function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { 
    3442        global $wp_styles; 
    3543        if ( !is_a($wp_styles, 'WP_Styles') ) 
     
    3947} 
    4048 
     49/** 
     50 * Remove a registered CSS file. 
     51 * 
     52 * @since r79 
     53 * @see WP_Styles::remove() For parameter and additional information. 
     54 */ 
    4155function wp_deregister_style( $handle ) { 
    4256        global $wp_styles; 
     
    4761} 
    4862 
     63/** 
     64 * Enqueue a CSS style file. 
     65 * 
     66 * @since r79 
     67 * @see WP_Styles::add(), WP_Styles::enqueue() 
     68 */ 
    4969function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) { 
    5070        global $wp_styles;