Fix second callback when filtering caption text for shortcode, props SergeyBiryukov, fixes #20369
git-svn-id: https://develop.svn.wordpress.org/trunk@20376 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6e3ed8bbf9
commit
80df7fe2cf
|
@ -179,7 +179,7 @@ function _cleanup_image_add_caption($str) {
|
|||
|
||||
// Private, preg_replace callback used in image_add_caption()
|
||||
function _cleanup_image_add_caption2($str) {
|
||||
return str_replace( "'", ''', $str );
|
||||
return ( isset( $str[0] ) ) ? str_replace( "'", ''', $str[0] ) : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue