Changeset 12531
- Timestamp:
- 12/24/2009 08:21:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.wp-styles.php
r11656 r12531 14 14 * @global object $wp_styles The WP_Styles object for printing styles. 15 15 * 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. 17 18 * @return bool True on success, false on failure. 18 19 */ … … 37 38 * 38 39 * @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. 40 52 */ 41 53 function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { … … 51 63 * 52 64 * @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. 54 69 */ 55 70 function wp_deregister_style( $handle ) { … … 66 81 * @since r79 67 82 * @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. 68 94 */ 69 95 function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = false ) { … … 82 108 * Check whether style has been added to WordPress Styles. 83 109 * 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(). 86 111 * 87 112 * @since WP unknown; BP unknown 113 * @global object $wp_styles The WP_Styles object for printing styles. 88 114 * 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. 92 118 */ 93 119 function wp_style_is( $handle, $list = 'queue' ) {
Note: See TracChangeset
for help on using the changeset viewer.