I have located one of the pages where the function is being called...
// Add the shortcode once for each map
$shortcodes = "";
foreach($maps as $map)
$shortcodes .= '<p>[mappress mapid="' . $map->mapid . '"]</p>';
if ($autodisplay == 'top')
return $shortcodes . $content;
else
return $content . $shortcodes;
}
and here is the function that is mentioned in the error message...
function shortcode_parse_atts($text) {
$atts = array();
$pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/';
$text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text);
if ( preg_match_all($pattern, $text, $match, PREG_SET_ORDER) ) {
foreach ($match as $m) {
if (!empty($m[1]))
$atts[strtolower($m[1])] = stripcslashes($m[2]);
elseif (!empty($m[3]))
$atts[strtolower($m[3])] = stripcslashes($m[4]);
elseif (!empty($m[5]))
$atts[strtolower($m[5])] = stripcslashes($m[6]);
elseif (isset($m[7]) and strlen($m[7]))
$atts[] = stripcslashes($m[7]);
elseif (isset($m[8]))
$atts[] = stripcslashes($m[8]);
}
Warning: preg_replace() [function.preg-replace]: Compilation failed: unknown option bit(s) set at offset -1 in /home/whatonea/public_html/wp-includes/shortcodes.php on line 257
I'm not quite sure where to start with this, I've inherited the problem from a colleague I'd appreciate any advice