Only variables should be assigned by reference in "dsq_prev_permalink"
-
There is an extra character “&” in “get_post”.
function dsq_prev_permalink($post_id) { // if post not published, return $post = &get_post($post_id); if ($post->post_status != 'publish') { return; } global $dsq_prev_permalinks; $dsq_prev_permalinks['post_'.$post_id] = get_permalink($post_id); }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Only variables should be assigned by reference in "dsq_prev_permalink"’ is closed to new replies.