Changeset 20025
- Timestamp:
- 02/28/2012 08:38:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r19712 r20025 271 271 * @since 3.1.0 272 272 * 273 * @param bool $api Optional. Whether try to fetch tags from the WP.org API. Defaults to true. 273 274 * @return array Array of features keyed by category with translations keyed by slug. 274 275 */ 275 function get_theme_feature_list( ) {276 function get_theme_feature_list( $api = true ) { 276 277 // Hard-coded list is used if api not accessible. 277 278 $features = array( … … 291 292 'yellow' => __( 'Yellow' ), 292 293 'dark' => __( 'Dark' ), 293 'light' => __( 'Light ')294 'light' => __( 'Light' ), 294 295 ), 295 296 … … 300 301 'four-columns' => __( 'Four Columns' ), 301 302 'left-sidebar' => __( 'Left Sidebar' ), 302 'right-sidebar' => __( 'Right Sidebar' ) 303 'right-sidebar' => __( 'Right Sidebar' ), 303 304 ), 304 305 305 306 __('Width') => array( 306 307 'fixed-width' => __( 'Fixed Width' ), 307 'flexible-width' => __( 'Flexible Width' ) 308 'flexible-width' => __( 'Flexible Width' ), 308 309 ), 309 310 … … 326 327 'theme-options' => __( 'Theme Options' ), 327 328 'threaded-comments' => __( 'Threaded Comments' ), 328 'translation-ready' => __( 'Translation Ready' ) 329 'translation-ready' => __( 'Translation Ready' ), 329 330 ), 330 331 … … 332 333 'holiday' => __( 'Holiday' ), 333 334 'photoblogging' => __( 'Photoblogging' ), 334 'seasonal' => __( 'Seasonal' ) 335 'seasonal' => __( 'Seasonal' ), 335 336 ) 336 337 ); 337 338 338 if ( ! current_user_can('install_themes') )339 if ( ! $api || ! current_user_can( 'install_themes' ) ) 339 340 return $features; 340 341
Note: See TracChangeset
for help on using the changeset viewer.