Changeset 32483 for trunk/src/wp-includes/functions.wp-styles.php
- Timestamp:
- 05/10/2015 07:56:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-styles.php
r32041 r32483 99 99 * 100 100 * @since 2.6.0 101 * @since 4.3.0 A return value was added. 101 102 * 102 103 * @param string $handle Name of the stylesheet. … … 108 109 * Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print', 109 110 * 'screen', 'tty', or 'tv'. 111 * @return bool Whether the style has been registered. True on success, false on failure. 110 112 */ 111 113 function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) { 112 114 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); 113 115 114 wp_styles()->add( $handle, $src, $deps, $ver, $media );116 return wp_styles()->add( $handle, $src, $deps, $ver, $media ); 115 117 } 116 118
Note: See TracChangeset
for help on using the changeset viewer.