WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/31/2010 11:02:17 AM (9 years ago)
Author:
scribu
Message:

use get_queried_object() wrappers throughout. See #14015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r16083 r16114  
    717717function edit_term_link( $link = '', $before = '', $after = '', $term = null, $echo = true ) {
    718718    if ( is_null( $term ) ) {
    719         global $wp_query;
    720         $term = $wp_query->get_queried_object();
     719        $term = get_queried_object();
    721720    }
    722721
Note: See TracChangeset for help on using the changeset viewer.