Make WordPress Core


Ignore:
Timestamp:
12/01/2014 01:33:34 AM (12 years ago)
Author:
wonderboymusic
Message:

Improve various @param docs for src/wp-includes/*.

See #30224.

File:
1 edited

Legend:

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

    r29958 r30681  
    4040        }
    4141
     42        /**
     43         * @param string $handle
     44         * @return bool
     45         */
    4246        public function do_item( $handle ) {
    4347                if ( !parent::do_item($handle) )
    … …  
    120124        }
    121125
     126        /**
     127         * @param string $handle
     128         * @param string $code
     129         */
    122130        public function add_inline_style( $handle, $code ) {
    123131                if ( ! $code ) {
    … …  
    135143        }
    136144
     145        /**
     146         * @param string $handle
     147         * @param bool $echo
     148         * @return bool
     149         */
    137150        public function print_inline_style( $handle, $echo = true ) {
    138151                $output = $this->get_data( $handle, 'after' );
    … …  
    153166        }
    154167
     168        /**
     169         * @param mixed $handles
     170         * @param bool $recursion
     171         * @param mixed $group
     172         * @return bool
     173         */
    155174        public function all_deps( $handles, $recursion = false, $group = false ) {
    156175                $r = parent::all_deps( $handles, $recursion );
    … …  
    168187        }
    169188
     189        /**
     190         * @param string $src
     191         * @param string $ver
     192         * @param string $handle
     193         * @return string
     194         */
    170195        public function _css_href( $src, $ver, $handle ) {
    171196                if ( !is_bool($src) && !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
    … …  
    188213        }
    189214
     215        /**
     216         * @param string $src
     217         * @return bool
     218         */
    190219        public function in_default_dir($src) {
    191220                if ( ! $this->default_dirs )
Note: See TracChangeset for help on using the changeset viewer.