Make WordPress Core


Ignore:
Timestamp:
03/19/2015 03:55:39 AM (10 years ago)
Author:
wonderboymusic
Message:

Replace array_shift() with reset() where appropriate for performance.

Props SergeyBiryukov.
Fixes #31259.

File:
1 edited

Legend:

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

    r30663 r31829  
    4141        $endian_letter = ('big' == $this->endian)? 'N' : 'V';
    4242        $int = unpack($endian_letter, $bytes);
    43         return array_shift($int);
     43        return reset( $int );
    4444    }
    4545
Note: See TracChangeset for help on using the changeset viewer.