wp-includes Text Diff.php

The Text_Diff class has a not is_a and an is_a

class Text_Diff {
.....
	function isEmpty()
.....
//		if (!is_a($edit, 'Text_Diff_Op_copy')) {
		$class_name = 'Text_Diff_Op_copy';
		if ( ( get_class($edit) != $class_name )
		 && !is_subclass_of($edit, $class_name) ) {
.....
	function lcs()
.....
//		if (is_a($edit, 'Text_Diff_Op_copy')) {
		$class_name = 'Text_Diff_Op_copy';
		if ( ( get_class($edit) == $class_name )
		 || is_subclass_of($edit, $class_name) ) {
Technorati Tags: ,

One Trackback

  1. By the Mittineague Blog -> is_a Conclusion on August 3, 2009 at 4:43 pm

    […] wp-includes/Text/Diff.php […]