WordPress.org

Plugin Directory

Changeset 545695


Ignore:
Timestamp:
05/18/12 09:44:44 (2 years ago)
Author:
nbachiyski
Message:

Use array_push() instead of []= for symmetry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ice/trunk/class-ice-span-filter.php

    r545694 r545695  
    4444            switch ( $token->id ) { 
    4545            case self::TOKEN_DEL: 
    46                 $state_stack[] = self::STATE_IN_DEL; 
     46                array_push( $state_stack, self::STATE_IN_DEL ); 
    4747                break; 
    4848            case self::TOKEN_INS: 
    49                 $state_stack[] = self::STATE_IN_INS; 
     49                array_push( $state_stack, self::STATE_IN_INS ); 
    5050                break; 
    5151            case self::TOKEN_SPAN: 
    52                 $state_stack[] = self::STATE_IN_SPAN; 
     52                array_push( $state_stack, self::STATE_IN_SPAN ); 
    5353                if ( !in_array( self::STATE_IN_DEL, $state_stack, true ) ) { 
    5454                    $result .= $token->text; 
Note: See TracChangeset for help on using the changeset viewer.