WordPress.org

Make WordPress Core

Ticket #18007: 18007.patch

File 18007.patch, 417 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/functions.php

     
    256256                return false; 
    257257        if ( ':' !== $data[1] ) 
    258258                return false; 
    259         $lastc = $data[$length-1]; 
     259        $lastc = substr($data, -1); 
    260260        if ( ';' !== $lastc && '}' !== $lastc ) 
    261261                return false; 
    262262        $token = $data[0];