Ticket #11227: #11227.patch
File #11227.patch, 3.2 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/plugin.php
43 43 * 'PluginURI' - Plugin web site address. 44 44 * 'TextDomain' - Plugin's text domain for localization. 45 45 * 'DomainPath' - Plugin's relative directory path to .mo files. 46 * 'UpgradeCheck' - (optional) Plugin's auto-upgrade check discarded 47 * 'UpgradeText' - (optional) Plugin's auto-upgrade message when upgradable. 46 48 * 47 49 * Some users have issues with opening large files and manipulating the contents 48 50 * for want is usually the first 1kiB or 2kiB. This function stops pulling in … … 75 77 'Author' => 'Author', 76 78 'AuthorURI' => 'Author URI', 77 79 'TextDomain' => 'Text Domain', 78 'DomainPath' => 'Domain Path' 80 'DomainPath' => 'Domain Path', 81 'UpgradeCheck' => 'Upgrade Check', 82 'UpgradeText' => 'Upgrade Text' 79 83 ); 80 84 81 85 $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' ); -
wp-admin/includes/update.php
185 185 echo '<tr class="plugin-update-tr"><td colspan="3" class="plugin-update"><div class="update-message">'; 186 186 if ( ! current_user_can('update_plugins') ) 187 187 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s Details</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); 188 else if (isset($plugin_data['UpgradeText']) && !empty($plugin_data['UpgradeText'])) 189 printf( __('There is a new version of %1$s available. %2$s'), $plugin_name, $plugin_data['UpgradeText'] ); 188 190 else if ( empty($r->package) ) 189 191 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s Details</a> <em>automatic upgrade unavailable for this plugin</em>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); 190 192 else -
wp-includes/update.php
120 120 121 121 $plugin_changed = false; 122 122 foreach ( $plugins as $file => $p ) { 123 124 if (isset($p['UpgradeCheck']) && !empty($p['UpgradeCheck'])) 125 { 126 unset($plugins[$file]); 127 continue; 128 } 129 123 130 $new_option->checked[ $file ] = $p['Version']; 124 131 125 132 if ( !isset( $current->checked[ $file ] ) || strval($current->checked[ $file ]) !== strval($p['Version']) ) … … 139 146 if ( $time_not_changed && !$plugin_changed ) 140 147 return false; 141 148 149 if (empty($plugins)) return false; 150 151 // active plugins synchronized with plugins ($active clean-up) 152 $active_flip = array_flip($active); 153 $active = array(); 154 foreach($plugins as $file => $p) if (isset($active_flip[$file])) $active[] = $file; 155 142 156 // Update last_checked for current to prevent multiple blocking requests if request hangs 143 157 $current->last_checked = time(); 144 158 set_transient( 'update_plugins', $current );