Post edited 1:15 am – 16 February, 2010 by webservant Post edited 1:20 am – 16 February, 2010 by webservant
I searched and found several have spotted this, but I see no solution. Did I miss something? If you look at this sermon: http://www.aisquith.org/audio-…..mon_id=632 you can see what I mean (in the tags).
EDIT – Apostrophes in the title don't do it. Only apostrophes in tags. I don't think anyone noticed because, up until a couple of days ago, tags didn't display on the Sermon page.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
// Prints tags
function sb_print_tags($tags) {
$out = array();
foreach ((array) $tags as $tag)
$out[] = ''.stripslashes($tag).'';
$tags = implode(', ', (array) $out);
echo $tags;
}
That does prevent apostrophes from showing as slashes… but there is something weirder going on. Go to my site (it's HERE), type in "Lord's Supper" and click "go". It replaces the apostrophe with slashes, and doesn't find any sermons.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
I get the same issue with the title search – I removed the wpdb->escapes (line 744 sermon) from the query and put in stripslashes on the form field (line 995 frontend) and shortcode atts array (line 465 sermon). Now, even though the results claim to have found a record, there is nothing in the sermon's array. So, close but no bananas.
I also had an issue when the Speaker's name had an apostrophe in the active filter – this also required a stripslashes in the frontend file (line 890 frontend).