Make WordPress Core


Ignore:
Timestamp:
10/21/2009 07:06:55 AM (15 years ago)
Author:
westi
Message:

Merge updated pomo code. Includes new NOOP_Translations class see #10971 props nbachiyski.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pomo/mo.php

    r11626 r12079  
    33 * Class for working with MO files
    44 *
    5  * @version $Id: mo.php 106 2009-04-23 19:48:22Z nbachiyski $
     5 * @version $Id: mo.php 221 2009-09-07 21:08:21Z nbachiyski $
    66 * @package pomo
    77 * @subpackage mo
     
    1111require_once dirname(__FILE__) . '/streams.php';
    1212
     13if ( !class_exists( 'MO' ) ):
    1314class MO extends Gettext_Translations {
    1415
     
    9697
    9798    function get_byteorder($magic) {
    98 
    9999        // The magic is 0x950412de
    100100
     
    103103        $magic_little_64 = (int) 2500072158;
    104104        // 0xde120495
    105         $magic_big = ((int) - 569244523) && 0xFFFFFFFF;
    106        
     105        $magic_big = ((int) - 569244523) & 0xFFFFFFFF;
    107106        if ($magic_little == $magic || $magic_little_64 == $magic) {
    108107            return 'little';
     
    183182
    184183}
    185 ?>
     184endif;
Note: See TracChangeset for help on using the changeset viewer.