Make WordPress Core

Ticket #51797: 51797.diff

File 51797.diff, 5.4 KB (added by david.kryzaniak, 4 years ago)

Updates to docs

  • wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/post.php b/wp-includes/post.php
    a b  
    22192219 * @param bool   $single  Optional. Whether to return a single value.
    22202220 *                        This parameter has no effect if $key is not specified.
    22212221 *                        Default false.
    2222  * @return mixed An array if $single is false. The value of the meta field
    2223  *               if $single is true. False for an invalid $post_id.
     2222 * @return mixed An array of values, or single metadata value if $single is true.
     2223 *               An empty array or empty string if nothing is found.
     2224 *               False if there's a problem with the value of $post_id.
    22242225 */
    22252226function get_post_meta( $post_id, $key = '', $single = false ) {
    22262227        return get_metadata( 'post', $post_id, $key, $single );
  • wp-includes/taxonomy.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
    a b  
    13071307 * @param bool   $single  Optional. Whether to return a single value.
    13081308 *                        This parameter has no effect if $key is not specified.
    13091309 *                        Default false.
    1310  * @return mixed An array if $single is false. The value of the meta field
    1311  *               if $single is true. False for an invalid $term_id.
     1310 * @return mixed An array of values, or single metadata value if $single is true.
     1311 *               An empty array or empty string if nothing is found.
     1312 *               False if there's a problem with the value of $term_id.
    13121313 */
    13131314function get_term_meta( $term_id, $key = '', $single = false ) {
    13141315        return get_metadata( 'term', $term_id, $key, $single );
  • wp-includes/ms-site.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php
    a b  
    10861086 * @param bool   $single  Optional. Whether to return a single value.
    10871087 *                        This parameter has no effect if $key is not specified.
    10881088 *                        Default false.
    1089  * @return mixed An array if $single is false. The value of meta data field
    1090  *               if $single is true. False for an invalid $site_id.
     1089 * @return mixed An array of values, or single metadata value if $single is true.
     1090 *               An empty array or empty string if nothing is found.
     1091 *               False if there's a problem with the value of $site_id.
    10911092 */
    10921093function get_site_meta( $site_id, $key = '', $single = false ) {
    10931094        return get_metadata( 'blog', $site_id, $key, $single );
  • wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/user.php b/wp-includes/user.php
    a b  
    10101010 * @param bool   $single  Optional. Whether to return a single value.
    10111011 *                        This parameter has no effect if $key is not specified.
    10121012 *                        Default false.
    1013  * @return mixed An array if $single is false. The value of meta data field
    1014  *               if $single is true. False for an invalid $user_id.
     1013 * @return mixed An array of values, or single metadata value if $single is true.
     1014 *               An empty array or empty string if nothing is found.
     1015 *               False if there's a problem with the value of $user_id.
    10151016 */
    10161017function get_user_meta( $user_id, $key = '', $single = false ) {
    10171018        return get_metadata( 'user', $user_id, $key, $single );
  • wp-includes/comment.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/comment.php b/wp-includes/comment.php
    a b  
    495495 * @param bool   $single     Optional. Whether to return a single value.
    496496 *                           This parameter has no effect if $key is not specified.
    497497 *                           Default false.
    498  * @return mixed An array if $single is false. The value of meta data field
    499  *               if $single is true. False for an invalid $comment_id.
     498 * @return mixed An array of values, or single metadata value if $single is true.
     499 *               An empty array or empty string if nothing is found.
     500 *               False if there's a problem with the value of $comment_id.
    500501 */
    501502function get_comment_meta( $comment_id, $key = '', $single = false ) {
    502503        return get_metadata( 'comment', $comment_id, $key, $single );