Changeset 12752 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 01/18/2010 08:34:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r12733 r12752 93 93 94 94 //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'] ) ) 97 97 load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file). $plugin_data['DomainPath']); 98 98 else … … 114 114 115 115 $plugin_data['Description'] = wptexturize( $plugin_data['Description'] ); 116 if ( ! empty($plugin_data['Author']) )116 if ( ! empty($plugin_data['Author']) ) 117 117 $plugin_data['Description'] .= ' <cite>' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.</cite>'; 118 118 } … … 199 199 $wp_plugins = array (); 200 200 $plugin_root = WP_PLUGIN_DIR; 201 if ( !empty($plugin_folder) )201 if ( !empty($plugin_folder) ) 202 202 $plugin_root .= $plugin_folder; 203 203 … … 331 331 foreach ( $plugins as $plugin ) { 332 332 $plugin = plugin_basename($plugin); 333 if ( ! is_plugin_active($plugin) )333 if ( ! is_plugin_active($plugin) ) 334 334 continue; 335 335 if ( ! $silent ) … … 399 399 global $wp_filesystem; 400 400 401 if ( empty($plugins) )401 if ( empty($plugins) ) 402 402 return false; 403 403 … … 411 411 $data = ob_get_contents(); 412 412 ob_end_clean(); 413 if ( ! empty($data) ){413 if ( ! empty($data) ){ 414 414 include_once( ABSPATH . 'wp-admin/admin-header.php'); 415 415 echo $data; … … 424 424 $data = ob_get_contents(); 425 425 ob_end_clean(); 426 if ( ! empty($data) ){426 if ( ! empty($data) ){ 427 427 include_once( ABSPATH . 'wp-admin/admin-header.php'); 428 428 echo $data; … … 1065 1065 */ 1066 1066 function add_option_whitelist( $new_options, $options = '' ) { 1067 if ( $options == '' ) {1067 if ( $options == '' ) { 1068 1068 global $whitelist_options; 1069 1069 } else { … … 1095 1095 */ 1096 1096 function remove_option_whitelist( $del_options, $options = '' ) { 1097 if ( $options == '' ) {1097 if ( $options == '' ) { 1098 1098 global $whitelist_options; 1099 1099 } else { … … 1104 1104 if ( isset($whitelist_options[ $page ]) && is_array($whitelist_options[ $page ]) ) { 1105 1105 $pos = array_search( $key, $whitelist_options[ $page ] ); 1106 if ( $pos !== false )1106 if ( $pos !== false ) 1107 1107 unset( $whitelist_options[ $page ][ $pos ] ); 1108 1108 }
Note: See TracChangeset
for help on using the changeset viewer.