Make WordPress Core


Ignore:
Timestamp:
05/31/2015 03:17:50 AM (11 years ago)
Author:
wonderboymusic
Message:

Add doc blocks to functions that are missing them.
If the function has no need for @param or @return, do an archeaological dig to find @since.

See #32444.

File:
1 edited

Legend:

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

    r32650 r32672  
    196196
    197197if ( !function_exists('json_decode') ) {
     198        /**
     199         * @global Services_JSON $wp_json
     200         * @param string $string
     201         * @param bool   $assoc_array
     202         * @return object|array
     203         */
    198204        function json_decode( $string, $assoc_array = false ) {
    199205                global $wp_json;
     
    209215                return $res;
    210216        }
     217
     218        /**
     219         * @param object $data
     220         * @return array
     221         */
    211222        function _json_decode_object_helper($data) {
    212223                if ( is_object($data) )
Note: See TracChangeset for help on using the changeset viewer.