Make WordPress Core


Ignore:
Timestamp:
12/06/2019 10:41:26 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Increase the specificity of various docblock parameter types and return types.

See #48303

File:
1 edited

Legend:

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

    r46696 r46823  
    36843684 * @global wpdb $wpdb WordPress database abstraction object.
    36853685 *
    3686  * @param array  $terms    List of Term taxonomy IDs.
    3687  * @param object $taxonomy Current taxonomy object of terms.
     3686 * @param int[]       $terms    List of Term taxonomy IDs.
     3687 * @param WP_Taxonomy $taxonomy Current taxonomy object of terms.
    36883688 */
    36893689function _update_post_term_count( $terms, $taxonomy ) {
     
    37393739 * @global wpdb $wpdb WordPress database abstraction object.
    37403740 *
    3741  * @param array  $terms    List of term taxonomy IDs.
    3742  * @param object $taxonomy Current taxonomy object of terms.
     3741 * @param int[]       $terms    List of term taxonomy IDs.
     3742 * @param WP_Taxonomy $taxonomy Current taxonomy object of terms.
    37433743 */
    37443744function _update_generic_term_count( $terms, $taxonomy ) {
     
    41734173 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    41744174 *
    4175  * @param object|int|string $term     The term object, ID, or slug whose link will be retrieved.
    4176  * @param string            $taxonomy Optional. Taxonomy. Default empty.
     4175 * @param WP_Term|int|string $term     The term object, ID, or slug whose link will be retrieved.
     4176 * @param string             $taxonomy Optional. Taxonomy. Default empty.
    41774177 * @return string|WP_Error URL of the taxonomy term archive on success, WP_Error if term does not exist.
    41784178 */
     
    42704270     * @since 2.5.0
    42714271     *
    4272      * @param string $termlink Term link URL.
    4273      * @param object $term     Term object.
    4274      * @param string $taxonomy Taxonomy slug.
     4272     * @param string  $termlink Term link URL.
     4273     * @param WP_Term $term     Term object.
     4274     * @param string  $taxonomy Taxonomy slug.
    42754275     */
    42764276    return apply_filters( 'term_link', $termlink, $term, $taxonomy );
Note: See TracChangeset for help on using the changeset viewer.