Make WordPress Core


Ignore:
Timestamp:
07/07/2016 12:17:38 AM (8 years ago)
Author:
jeremyfelt
Message:

Meta: Don't pass an empty $meta_key to get_metadata().

This doesn't break anything, but also isn't necessary.

Props sc0ttkclark.
See #35658.

File:
1 edited

Legend:

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

    r37991 r37996  
    12401240    }
    12411241
    1242     $data = get_metadata( $object_type, $object_id, $meta_key );
     1242    $data = get_metadata( $object_type, $object_id );
    12431243
    12441244    $meta_keys = get_registered_meta_keys( $object_type, $object_subtype );
Note: See TracChangeset for help on using the changeset viewer.