fixing readmore minor bug
This commit is contained in:
parent
f95e233986
commit
f4d9a3fd1a
@ -78,7 +78,7 @@ function plugin_readmore_main($string) {
|
||||
|
||||
}
|
||||
|
||||
if ($q->single || isset($fp_params['entry'])) {
|
||||
if (($q && $q->single) || isset($fp_params['entry'])) {
|
||||
$string = str_replace('[more]', "<a id=\"readmore-{$fp_params['entry']}\"></a>", $string);
|
||||
}
|
||||
|
||||
@ -88,4 +88,4 @@ function plugin_readmore_main($string) {
|
||||
add_filter('the_content', 'plugin_readmore_main', 1);
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user