Make WordPress Core


Ignore:
Timestamp:
05/29/2015 03:42:40 PM (9 years ago)
Author:
wonderboymusic
Message:

Add @static* annotations where they are missing.
Initialize all static vars that are not, most to null.

See #32444.

File:
1 edited

Legend:

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

    r32621 r32650  
    1717 * @access private
    1818 *
    19  * @staticvar array|false $fields
     19 * @staticvar array $fields
    2020 *
    2121 * @param array $post     Optional. A post array to be processed for insertion as a post revision.
     
    2424 */
    2525function _wp_post_revision_fields( $post = null, $autosave = false ) {
    26     static $fields = false;
    27 
    28     if ( !$fields ) {
     26    static $fields = null;
     27
     28    if ( is_null( $fields ) ) {
    2929        // Allow these to be versioned
    3030        $fields = array(
Note: See TracChangeset for help on using the changeset viewer.