Make WordPress Core

Changeset 21236


Ignore:
Timestamp:
07/09/2012 03:40:32 AM (12 years ago)
Author:
markjaquith
Message:

Do not display an error message when a plugin or theme being updated is found to already be up to date. Note the fact, and call it success. props solarissmoke. fixes #19752

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r21197 r21236  
    497497
    498498            if ( !isset( $current->response[ $plugin ] ) ) {
    499                 $this->skin->set_result(false);
     499                $this->skin->set_result(true);
    500500                $this->skin->before();
    501                 $this->skin->error('up_to_date');
     501                $this->skin->feedback('up_to_date');
    502502                $this->skin->after();
    503                 $results[$plugin] = false;
     503                $results[$plugin] = true;
    504504                continue;
    505505            }
     
    855855
    856856            if ( !isset( $current->response[ $theme ] ) ) {
    857                 $this->skin->set_result(false);
     857                $this->skin->set_result(true);
    858858                $this->skin->before();
    859                 $this->skin->error('up_to_date');
     859                $this->skin->feedback('up_to_date');
    860860                $this->skin->after();
    861                 $results[$theme] = false;
     861                $results[$theme] = true;
    862862                continue;
    863863            }
Note: See TracChangeset for help on using the changeset viewer.