Avoid E_STRICT notices. see #18975

git-svn-id: https://develop.svn.wordpress.org/trunk@19094 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-31 19:38:46 +00:00
parent a5c6da9a2e
commit 4399cf7610
5 changed files with 21 additions and 15 deletions
+2 -1
View File
@@ -1621,7 +1621,8 @@ function feed_links_extra( $args = array() ) {
$args = wp_parse_args( $args, $defaults );
if ( is_single() || is_page() ) {
$post = &get_post( $id = 0 );
$id = 0;
$post = &get_post( $id );
if ( comments_open() || pings_open() || $post->comment_count > 0 ) {
$title = esc_attr(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], esc_html( get_the_title() ) ));