[wp-trac] [WordPress Trac] #39920: Empty if-statement

WordPress Trac noreply at wordpress.org
Mon Feb 20 14:13:28 UTC 2017


#39920: Empty if-statement
--------------------------+-----------------------------
 Reporter:  appchecker    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello!

 In this
 [https://github.com/WordPress/WordPress/blob/c4e78a8d8ba2e0b5b85866c6fc46895aead5802a
 /wp-admin/includes/misc.php#L74 code fragment]:


 {{{#!php
 <?php
         if ( $markerdata = explode( "\n", implode( '', file( $filename ) )
 ));
         {
                 $state = false;
                 ....
         }
 }}}

 Body of if-statement actually is empty. Probably, semicolon is excess.

 This possible defect found with (
 [https://cnpo.ru/en/solutions/appchecker.php AppChecker ] )

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39920>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list