I'm getting this message above my images when they are posted as an update on the P2 theme. Any ideas of what is going on. The image is displayed below this error.
Warning: strpos() [function.strpos]: Empty delimiter in /home/bbprojek/public_html/yourlocalsite.com/client48/wp-content/themes/p2/functions.php on line 185
MLanxess
Member
Posted 1 year ago #
I have the same problem: http://wordpress.org/support/topic/414392
What I found out as a workaround: You have to put a text before the image to make the warning message disappear. But this also did not work if you first post the image and then put a text before the image. The warning message also disappear if you give the image a post title.
oh.amanda
Member
Posted 1 year ago #
Found this fix: http://wordpress.org/support/topic/349100?replies=3
Worked for me!
in function.php file, line 185 - replace
$pos = strpos( $content, $title );
with
if($title !='') {
$pos = strpos( $content, $title );
}
@oh.amanda: Thanks, worked perfectly!