Make WordPress Core

Changeset 13152


Ignore:
Timestamp:
02/14/2010 11:52:27 AM (15 years ago)
Author:
nacin
Message:

Use $wp_query->get_queried_object(). Also move wp_head() to end of <head>, see #9015.

Location:
trunk/wp-content/themes/twentyten
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13147 r13152  
    127127function twentyten_term_list($taxonomy, $glue = ', ', $text = '', $also_text = '') {
    128128    global $wp_query, $post;
    129     $current_term = $wp_query->queried_object;
     129    $current_term = $wp_query->get_queried_object();
    130130    $terms = wp_get_object_terms($post->ID, $taxonomy);
    131131    // If we're viewing a Taxonomy page..
  • trunk/wp-content/themes/twentyten/header.php

    r13144 r13152  
    2525
    2626    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    27 
     27    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    2828    <?php wp_head(); ?>
    29 
    30     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    3129</head>
    3230
Note: See TracChangeset for help on using the changeset viewer.