Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865
git-svn-id: http://core.svn.wordpress.org/trunk@22114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c09c184f3
commit
faca571a3a
|
@ -894,7 +894,7 @@ function comments_template( $file = '/comments.php', $separate_comments = false
|
|||
update_comment_cache($wp_query->comments);
|
||||
|
||||
if ( $separate_comments ) {
|
||||
$wp_query->comments_by_type = &separate_comments($comments);
|
||||
$wp_query->comments_by_type = separate_comments($comments);
|
||||
$comments_by_type = &$wp_query->comments_by_type;
|
||||
}
|
||||
|
||||
|
|
|
@ -978,7 +978,7 @@ function get_delete_post_link( $id = 0, $deprecated = '', $force_delete = false
|
|||
* @return string
|
||||
*/
|
||||
function get_edit_comment_link( $comment_id = 0 ) {
|
||||
$comment = &get_comment( $comment_id );
|
||||
$comment = get_comment( $comment_id );
|
||||
|
||||
if ( !current_user_can( 'edit_comment', $comment->comment_ID ) )
|
||||
return;
|
||||
|
|
|
@ -3653,7 +3653,7 @@ function get_pages($args = '') {
|
|||
update_post_cache( $pages );
|
||||
|
||||
if ( $child_of || $hierarchical )
|
||||
$pages = & get_page_children($child_of, $pages);
|
||||
$pages = get_page_children($child_of, $pages);
|
||||
|
||||
if ( !empty($exclude_tree) ) {
|
||||
$exclude = (int) $exclude_tree;
|
||||
|
|
|
@ -2988,9 +2988,9 @@ function get_term_link( $term, $taxonomy = '') {
|
|||
|
||||
if ( !is_object($term) ) {
|
||||
if ( is_int($term) ) {
|
||||
$term = &get_term($term, $taxonomy);
|
||||
$term = get_term($term, $taxonomy);
|
||||
} else {
|
||||
$term = &get_term_by('slug', $term, $taxonomy);
|
||||
$term = get_term_by('slug', $term, $taxonomy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue