~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-includes/wp-diff.php

  • Committer: David Ames
  • Date: 2013-12-30 23:54:39 UTC
  • Revision ID: david.ames@canonical.com-20131230235439-p0vd8h95sdjwbv3c
Import wordpress 3.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
                }
392
392
 
393
393
                return array($orig_matches, $final_matches, $orig_rows, $final_rows);
394
 
 
395
 
/*
396
 
                // Debug
397
 
                echo "\n\n\n\n\n";
398
 
 
399
 
                echo "-- DEBUG Matches: Orig -> Final --";
400
 
 
401
 
                foreach ( $orig_matches as $o => $f ) {
402
 
                        echo "\n\n\n\n\n";
403
 
                        echo "ORIG: $o, FINAL: $f\n";
404
 
                        var_dump($orig[$o],$final[$f]);
405
 
                }
406
 
                echo "\n\n\n\n\n";
407
 
 
408
 
                echo "-- DEBUG Matches: Final -> Orig --";
409
 
 
410
 
                foreach ( $final_matches as $f => $o ) {
411
 
                        echo "\n\n\n\n\n";
412
 
                        echo "FINAL: $f, ORIG: $o\n";
413
 
                        var_dump($final[$f],$orig[$o]);
414
 
                }
415
 
                echo "\n\n\n\n\n";
416
 
 
417
 
                echo "-- DEBUG Rows: Orig -- Final --";
418
 
 
419
 
                echo "\n\n\n\n\n";
420
 
                foreach ( $orig_rows as $row => $o ) {
421
 
                        if ( $o < 0 )
422
 
                                $o = 'X';
423
 
                        $f = $final_rows[$row];
424
 
                        if ( $f < 0 )
425
 
                                $f = 'X';
426
 
                        echo "$o -- $f\n";
427
 
                }
428
 
                echo "\n\n\n\n\n";
429
 
 
430
 
                echo "-- END DEBUG --";
431
 
 
432
 
                echo "\n\n\n\n\n";
433
 
 
434
 
                return array($orig_matches, $final_matches, $orig_rows, $final_rows);
435
 
*/
436
394
        }
437
395
 
438
396
        /**