Merge "Only use FastStringSearch on PHP <5.5"
This commit is contained in:
commit
9f8d1b96c1
1 changed files with 4 additions and 1 deletions
|
|
@ -111,7 +111,10 @@ class ReplacementArray {
|
|||
* @return string
|
||||
*/
|
||||
public function replace( $subject ) {
|
||||
if ( function_exists( 'fss_prep_replace' ) ) {
|
||||
if (
|
||||
function_exists( 'fss_prep_replace' ) &&
|
||||
version_compare( PHP_VERSION, '5.5.0' ) < 0
|
||||
) {
|
||||
if ( $this->fss === false ) {
|
||||
$this->fss = fss_prep_replace( $this->data );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue