Make WordPress Core

Changeset 48658


Ignore:
Timestamp:
07/28/2020 10:13:50 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document that various metadata functions return false for an invalid ID.

Props salcode.
See #40519.

Location:
trunk/src/wp-includes
Files:
5 edited

Legend:

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

    r48591 r48658  
    497497 *                           Default false.
    498498 * @return mixed An array if $single is false. The value of meta data field
    499  *               if $single is true.
     499 *               if $single is true. False for an invalid $comment_id.
    500500 */
    501501function get_comment_meta( $comment_id, $key = '', $single = false ) {
  • trunk/src/wp-includes/ms-site.php

    r48214 r48658  
    10881088 *                        Default false.
    10891089 * @return mixed An array if $single is false. The value of meta data field
    1090  *               if $single is true.
     1090 *               if $single is true. False for an invalid $site_id.
    10911091 */
    10921092function get_site_meta( $site_id, $key = '', $single = false ) {
  • trunk/src/wp-includes/post.php

    r48635 r48658  
    21212121 *                        Default false.
    21222122 * @return mixed An array if $single is false. The value of the meta field
    2123  *               if $single is true.
     2123 *               if $single is true. False for an invalid $post_id.
    21242124 */
    21252125function get_post_meta( $post_id, $key = '', $single = false ) {
  • trunk/src/wp-includes/taxonomy.php

    r48600 r48658  
    12931293 *                        Default false.
    12941294 * @return mixed An array if $single is false. The value of the meta field
    1295  *               if $single is true.
     1295 *               if $single is true. False for an invalid $term_id.
    12961296 */
    12971297function get_term_meta( $term_id, $key = '', $single = false ) {
  • trunk/src/wp-includes/user.php

    r48590 r48658  
    832832 *                        Default false.
    833833 * @return mixed An array if $single is false. The value of meta data field
    834  *               if $single is true.
     834 *               if $single is true. False for an invalid $user_id.
    835835 */
    836836function get_user_meta( $user_id, $key = '', $single = false ) {
Note: See TracChangeset for help on using the changeset viewer.