Make WordPress Core


Ignore:
Timestamp:
03/18/2009 02:43:45 AM (17 years ago)
Author:
ryan
Message:

Trim trailing whitespace

File:
1 edited

Legend:

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

    r10643 r10810  
    242242    if ( !is_string( $content ) || empty( $content ) )
    243243        return array();
    244        
     244
    245245    $tokens = token_get_all( $content );
    246246    $functions = array();
     
    257257        }
    258258    }
    259    
     259
    260260    $functions = array_unique( $functions );
    261261    sort( $functions );
    262262    $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );
    263263    $ignore_functions = array_unique( $ignore_functions );
    264    
     264
    265265    $out = array();
    266266    foreach ( $functions as $function ) {
     
    269269        $out[] = $function;
    270270    }
    271    
     271
    272272    return $out;
    273273}
     
    276276 * Determines the language to use for CodePress syntax highlighting,
    277277 * based only on a filename.
    278  * 
     278 *
    279279 * @since 2.8
    280  * 
     280 *
    281281 * @param string $filename The name of the file to be highlighting
    282282**/
    283283function codepress_get_lang( $filename ) {
    284     $codepress_supported_langs = apply_filters( 'codepress_supported_langs', 
     284    $codepress_supported_langs = apply_filters( 'codepress_supported_langs',
    285285                                    array( '.css' => 'css',
    286                                             '.js' => 'javascript', 
    287                                             '.php' => 'php', 
    288                                             '.html' => 'html', 
    289                                             '.htm' => 'html', 
    290                                             '.txt' => 'text' 
     286                                            '.js' => 'javascript',
     287                                            '.php' => 'php',
     288                                            '.html' => 'html',
     289                                            '.htm' => 'html',
     290                                            '.txt' => 'text'
    291291                                            ) );
    292292    $extension = substr( $filename, strrpos( $filename, '.' ) );
    293293    if ( $extension && array_key_exists( $extension, $codepress_supported_langs ) )
    294294        return $codepress_supported_langs[$extension];
    295    
     295
    296296    return 'generic';
    297297}
     
    299299/**
    300300 * Adds Javascript required to make CodePress work on the theme/plugin editors.
    301  * 
     301 *
    302302 * This code is attached to the action admin_print_footer_scripts.
    303  * 
     303 *
    304304 * @since 2.8
    305305**/
Note: See TracChangeset for help on using the changeset viewer.