WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/25/2018 07:32:24 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42769 r42876  
    10441044 *                               element from the array needs to match; 'and' means all elements
    10451045 *                               must match; 'not' means no elements may match. Default 'and'.
    1046  * @return array A list of post type names or objects.
     1046 * @return string[]|WP_Post_Type[] An array of post type names or objects.
    10471047 */
    10481048function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) {
     
    43424342 *
    43434343 * @param int|WP_Post $post_id Post ID or object.
    4344  * @return array
     4344 * @return bool|string[] Array of URLs already pinged for the given post, false if the post is not found.
    43454345 */
    43464346function get_pung( $post_id ) {
     
    43584358     * @since 2.0.0
    43594359     *
    4360      * @param array $pung Array of URLs already pinged for the given post.
     4360     * @param string[] $pung Array of URLs already pinged for the given post.
    43614361     */
    43624362    return apply_filters( 'get_pung', $pung );
Note: See TracChangeset for help on using the changeset viewer.