~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to .pc/010disabling_update_note.patch/wp-admin/includes/update.php

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2014-09-05 20:58:06 UTC
  • mfrom: (1.2.38)
  • Revision ID: package-import@ubuntu.com-20140905205806-e4h6dkg4190n0svf
Tags: 4.0+dfsg-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        if ( ! $updates || empty( $updates->updates ) )
75
75
                return false;
76
76
 
77
 
        include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
 
77
        include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
78
78
 
79
79
        $auto_update = false;
80
80
        $upgrader = new WP_Automatic_Updater;
101
101
 * @return bool|array False on failure. An array of checksums on success.
102
102
 */
103
103
function get_core_checksums( $version, $locale ) {
104
 
        $return = array();
105
 
 
106
104
        $url = $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' );
107
105
 
108
106
        if ( $ssl = wp_http_supports( array( 'ssl' ) ) )
181
179
        switch ( $cur->response ) {
182
180
        case 'development' :
183
181
                return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
184
 
        break;
185
182
 
186
183
        case 'upgrade' :
187
184
                return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);
188
 
        break;
189
185
 
190
186
        case 'latest' :
191
187
        default :
192
188
                return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
193
 
        break;
194
189
        }
195
190
}
196
191
add_filter( 'update_footer', 'core_update_footer' );
332
327
}
333
328
 
334
329
function get_theme_updates() {
335
 
        $themes = wp_get_themes();
336
330
        $current = get_site_transient('update_themes');
337
331
 
338
332
        if ( ! isset( $current->response ) )
367
361
        if ( !isset( $current->response[ $theme_key ] ) )
368
362
                return false;
369
363
        $r = $current->response[ $theme_key ];
370
 
        $themes_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());
371
 
        $theme_name = wp_kses( $theme['Name'], $themes_allowedtags );
372
364
 
373
365
        $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 1024, 'height' => 800 ), $current->response[ $theme_key ]['url'] );
374
366
 
406
398
}
407
399
 
408
400
function maintenance_nag() {
409
 
        include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
 
401
        include( ABSPATH . WPINC . '/version.php' ); // include an unmodified $wp_version
410
402
        global $upgrading;
411
403
        $nag = isset( $upgrading );
412
404
        if ( ! $nag ) {