Make WordPress Core

Changeset 32539


Ignore:
Timestamp:
05/22/2015 04:23:15 AM (9 years ago)
Author:
wonderboymusic
Message:

Add/standardize missing doc blocks for cache.php.

See #32444.

File:
1 edited

Legend:

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

    r32528 r32539  
    1313 *
    1414 * @since 2.0.0
    15  * @uses $wp_object_cache Object Cache Class
    16  * @see WP_Object_Cache::add()
     15 *
     16 * @global WP_Object_Cache $wp_object_cache
    1717 *
    1818 * @param int|string $key The cache key to use for retrieval later
     
    4848 *
    4949 * @since 3.3.0
    50  * @uses $wp_object_cache Object Cache Class
    51  * @see WP_Object_Cache::decr()
     50 *
     51 * @global WP_Object_Cache $wp_object_cache
    5252 *
    5353 * @param int|string $key The cache key to increment
     
    6666 *
    6767 * @since 2.0.0
    68  * @uses $wp_object_cache Object Cache Class
    69  * @see WP_Object_Cache::delete()
     68 *
     69 * @global WP_Object_Cache $wp_object_cache
    7070 *
    7171 * @param int|string $key What the contents in the cache are called
     
    8383 *
    8484 * @since 2.0.0
    85  * @uses $wp_object_cache Object Cache Class
    86  * @see WP_Object_Cache::flush()
     85 *
     86 * @global WP_Object_Cache $wp_object_cache
    8787 *
    8888 * @return bool False on failure, true on success
     
    9898 *
    9999 * @since 2.0.0
    100  * @uses $wp_object_cache Object Cache Class
    101  * @see WP_Object_Cache::get()
     100 *
     101 * @global WP_Object_Cache $wp_object_cache
    102102 *
    103103 * @param int|string $key What the contents in the cache are called
     
    118118 *
    119119 * @since 3.3.0
    120  * @uses $wp_object_cache Object Cache Class
    121  * @see WP_Object_Cache::incr()
     120 *
     121 * @global WP_Object_Cache $wp_object_cache
    122122 *
    123123 * @param int|string $key The cache key to increment
     
    136136 *
    137137 * @since 2.0.0
    138  * @global $wp_object_cache WordPress Object Cache instance
    139  * @uses WP_Object_Cache
     138 *
     139 * @global WP_Object_Cache $wp_object_cache
    140140 */
    141141function wp_cache_init() {
     
    147147 *
    148148 * @since 2.0.0
    149  * @uses $wp_object_cache Object Cache Class
    150  * @see WP_Object_Cache::replace()
     149 *
     150 * @global WP_Object_Cache $wp_object_cache
    151151 *
    152152 * @param int|string $key What to call the contents in the cache
     
    167167 * @since 2.0.0
    168168 *
    169  * @uses $wp_object_cache Object Cache Class
    170  * @see WP_Object_Cache::set()
     169 * @global WP_Object_Cache $wp_object_cache
    171170 *
    172171 * @param int|string $key What to call the contents in the cache
     
    189188 * @since 3.5.0
    190189 *
     190 * @global WP_Object_Cache $wp_object_cache
     191 *
    191192 * @param int $blog_id Blog ID
    192193 */
     
    201202 *
    202203 * @since 2.6.0
     204 *
     205 * @global WP_Object_Cache $wp_object_cache
    203206 *
    204207 * @param string|array $groups A group or an array of groups to add
     
    235238 * @since 2.6.0
    236239 * @deprecated 3.5.0
     240 *
     241 * @global WP_Object_Cache $wp_object_cache
    237242 */
    238243function wp_cache_reset() {
     
    479484     * @since 2.0.0
    480485     *
    481      * @return bool Always returns true
     486     * @return true Always returns true
    482487     */
    483488    public function flush() {
    484         $this->cache = array ();
     489        $this->cache = array();
    485490
    486491        return true;
     
    686691     *
    687692     * @since 2.0.8
     693     *
     694     * @global int $blog_id
    688695     */
    689696    public function __construct() {
Note: See TracChangeset for help on using the changeset viewer.