Ticket #23318: update-service.diff
File update-service.diff, 1.9 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/plugin.php
47 47 * 'TextDomain' - Plugin's text domain for localization. 48 48 * 'DomainPath' - Plugin's relative directory path to .mo files. 49 49 * 'Network' - Boolean. Whether the plugin can only be activated network wide. 50 * 'UpdateService' - String. Indicates which update service should be used to obtain plugin information. Defaults to wordpressorg (which is the only one handled natively by WordPress core). 50 51 * 51 52 * Some users have issues with opening large files and manipulating the contents 52 53 * for want is usually the first 1kiB or 2kiB. This function stops pulling in … … 81 82 'TextDomain' => 'Text Domain', 82 83 'DomainPath' => 'Domain Path', 83 84 'Network' => 'Network', 85 'UpdateService' => 'Update Service', 84 86 // Site Wide Only is deprecated in favor of Network. 85 87 '_sitewide' => 'Site Wide Only', 86 88 ); … … 93 95 $plugin_data['Network'] = $plugin_data['_sitewide']; 94 96 } 95 97 $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ); 98 if ( empty( $plugin_data['UpdateService'] ) ) 99 $plugin_data['UpdateService'] = 'wordpressorg'; 96 100 unset( $plugin_data['_sitewide'] ); 97 101 98 102 if ( $markup || $translate ) { -
wp-includes/update.php
228 228 if ( $time_not_changed && ! $extra_stats ) { 229 229 $plugin_changed = false; 230 230 foreach ( $plugins as $file => $p ) { 231 if ( 'wordpressorg' != $p['UpdateService'] ) { 232 unset( $plugins[ $file ] ); 233 continue; 234 } 235 231 236 $new_option->checked[ $file ] = $p['Version']; 232 237 233 238 if ( !isset( $current->checked[ $file ] ) || strval($current->checked[ $file ]) !== strval($p['Version']) )