Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. foreach($posts as $post) {
  2.     // $id is defined on the first iteration but $post_id is not
  3.     $id = $post->post_id;
  4.     $post_title = stripslashes($post->post_title);
  5.     $post_title = str_replace('"', '', $post_title);
  6.  
  7.     // Filter hook - the errors are being generated downstream from here
  8.     // Note also the use of undefined var $post_id
  9.     $post_title=apply_filters('roster_post_title',$post_title,$post_id,$roster_slider_curr,$roster_slider_css);
  10.  
  11.     // $post_id is defined after this point
  12.     // ...
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement