Ticket #5066: updateoption.diff
File updateoption.diff, 2.7 KB (added by , 17 years ago) |
---|
-
wp-admin/includes/update.php
28 28 function update_nag() { 29 29 $cur = get_option( 'update_core' ); 30 30 31 if (!get_option("check_updates")){ 32 echo "<div id='update-nag'>".__('Please <a href="options-privacy.php">elect</a> if you would like to have auto-updates enabled')."</div>"; 33 return; 34 } 31 35 if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) 32 36 return false; 33 37 … … 42 46 43 47 function wp_update_plugins() { 44 48 global $wp_version; 49 if (get_option("check_updates")!='true') 50 return; 45 51 46 52 if ( !function_exists('fsockopen') ) 47 53 return false; -
wp-admin/options-privacy.php
22 22 <?php do_action('blog_privacy_selector'); ?> 23 23 </td> 24 24 </tr> 25 <tr valign="top"> 26 <th scope="row"><?php _e('Automatic Update Notification:') ?> </th> 27 <td> 28 <p><input id="check_updates" type="radio" name="check_updates" value="true" <?php checked("true", get_option('check_updates')); ?> /> 29 <label for="check_updates"><?php _e('I would like for my Wordpress to automatically connect to wordpress.org and check for updated versions of Wordpress and my plugins');?></label></p> 30 <p><input id="no_update_check" type="radio" name="check_updates" value="false" <?php checked("false", get_option('check_updates')); ?> /> 31 <label for="no_update_check"><?php _e('No thanks. I understand that I will be responsible to check for updated versions of Wordpress and my plugins.');?></label></p> 32 <p><em>Note that during this check certain information is sent to the wordpress.org servers. This information includes your current version, version of PHP and URL of your site.</p> 33 <?php do_action('blog_privacy_selector'); ?> 34 </td> 35 </tr> 25 36 </table> 26 37 27 38 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> 28 39 <input type="hidden" name="action" value="update" /> 29 <input type="hidden" name="page_options" value="blog_public " />40 <input type="hidden" name="page_options" value="blog_public,check_updates" /> 30 41 </p> 31 42 </form> 32 43 -
wp-includes/update.php
8 8 9 9 global $wp_version; 10 10 $php_version = phpversion(); 11 if (get_option("check_updates")!='true') 12 return; 11 13 12 14 $current = get_option( 'update_core' ); 13 15 $locale = get_locale();