]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/pomo/po.php
Wordpress 2.9
[autoinstalls/wordpress.git] / wp-includes / pomo / po.php
index 6c40c5a4eee44ea7e9c9324ee32a4a2ab79d6a20..fb0d8e408c6fce3bc73b9fd145455b6d128f1dff 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Class for working with PO files
  *
- * @version $Id: po.php 123 2009-05-13 19:35:43Z nbachiyski $
+ * @version $Id: po.php 283 2009-09-23 16:21:51Z nbachiyski $
  * @package pomo
  * @subpackage po
  */
@@ -16,6 +16,7 @@ ini_set('auto_detect_line_endings', 1);
 /**
  * Routines for working with PO files
  */
+if ( !class_exists( 'PO' ) ):
 class PO extends Gettext_Translations {
        
 
@@ -316,7 +317,9 @@ class PO extends Gettext_Translations {
                                return false;
                        }
                }
-               if (array() == array_filter($entry->translations)) $entry->translations = array();
+               if (array() == array_filter($entry->translations, create_function('$t', 'return $t || "0" === $t;'))) {
+                       $entry->translations = array();
+               }
                return array('entry' => $entry, 'lineno' => $lineno);
        }
        
@@ -357,4 +360,4 @@ class PO extends Gettext_Translations {
                return $s;
        }
 }
-?>
+endif;
\ No newline at end of file