Make WordPress Core


Ignore:
Timestamp:
01/18/2010 08:34:48 PM (15 years ago)
Author:
ryan
Message:

Coding standards, space after if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r12733 r12752  
    9393
    9494    //Translate fields
    95     if( $translate && ! empty($plugin_data['TextDomain']) ) {
    96         if( ! empty( $plugin_data['DomainPath'] ) )
     95    if ( $translate && ! empty($plugin_data['TextDomain']) ) {
     96        if ( ! empty( $plugin_data['DomainPath'] ) )
    9797            load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file). $plugin_data['DomainPath']);
    9898        else
     
    114114
    115115        $plugin_data['Description'] = wptexturize( $plugin_data['Description'] );
    116         if( ! empty($plugin_data['Author']) )
     116        if ( ! empty($plugin_data['Author']) )
    117117            $plugin_data['Description'] .= ' <cite>' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.</cite>';
    118118    }
     
    199199    $wp_plugins = array ();
    200200    $plugin_root = WP_PLUGIN_DIR;
    201     if( !empty($plugin_folder) )
     201    if ( !empty($plugin_folder) )
    202202        $plugin_root .= $plugin_folder;
    203203
     
    331331    foreach ( $plugins as $plugin ) {
    332332        $plugin = plugin_basename($plugin);
    333         if( ! is_plugin_active($plugin) )
     333        if ( ! is_plugin_active($plugin) )
    334334            continue;
    335335        if ( ! $silent )
     
    399399    global $wp_filesystem;
    400400
    401     if( empty($plugins) )
     401    if ( empty($plugins) )
    402402        return false;
    403403
     
    411411        $data = ob_get_contents();
    412412        ob_end_clean();
    413         if( ! empty($data) ){
     413        if ( ! empty($data) ){
    414414            include_once( ABSPATH . 'wp-admin/admin-header.php');
    415415            echo $data;
     
    424424        $data = ob_get_contents();
    425425        ob_end_clean();
    426         if( ! empty($data) ){
     426        if ( ! empty($data) ){
    427427            include_once( ABSPATH . 'wp-admin/admin-header.php');
    428428            echo $data;
     
    10651065 */
    10661066function add_option_whitelist( $new_options, $options = '' ) {
    1067     if( $options == '' ) {
     1067    if ( $options == '' ) {
    10681068        global $whitelist_options;
    10691069    } else {
     
    10951095 */
    10961096function remove_option_whitelist( $del_options, $options = '' ) {
    1097     if( $options == '' ) {
     1097    if ( $options == '' ) {
    10981098        global $whitelist_options;
    10991099    } else {
     
    11041104            if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) {
    11051105                $pos = array_search( $key, $whitelist_options[ $page ] );
    1106                 if( $pos !== false )
     1106                if ( $pos !== false )
    11071107                    unset( $whitelist_options[ $page ][ $pos ] );
    11081108            }
Note: See TracChangeset for help on using the changeset viewer.