<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[28495] trunk/src/wp-admin/includes/class-wp-upgrader-skins.php: Add access modifier (`public`) to methods and members of `WP_Upgrader_Skin` and its subclasses.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/28495">28495</a></dd>
<dt>Author</dt> <dd>wonderboymusic</dd>
<dt>Date</dt> <dd>2014-05-19 01:22:55 +0000 (Mon, 19 May 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add access modifier (`public`) to methods and members of `WP_Upgrader_Skin` and its subclasses.
See <a href="http://core.trac.wordpress.org/ticket/27881">#27881</a>, <a href="http://core.trac.wordpress.org/ticket/22234">#22234</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasswpupgraderskinsphp">trunk/src/wp-admin/includes/class-wp-upgrader-skins.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasswpupgraderskinsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/includes/class-wp-upgrader-skins.php (28494 => 28495)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/includes/class-wp-upgrader-skins.php 2014-05-19 01:18:46 UTC (rev 28494)
+++ trunk/src/wp-admin/includes/class-wp-upgrader-skins.php 2014-05-19 01:22:55 UTC (rev 28495)
</span><span class="lines">@@ -16,29 +16,29 @@
</span><span class="cx"> */
</span><span class="cx"> class WP_Upgrader_Skin {
</span><span class="cx">
</span><del>- var $upgrader;
- var $done_header = false;
- var $result = false;
</del><ins>+ public $upgrader;
+ public $done_header = false;
+ public $result = false;
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> $defaults = array( 'url' => '', 'nonce' => '', 'title' => '', 'context' => false );
</span><span class="cx"> $this->options = wp_parse_args($args, $defaults);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function set_upgrader(&$upgrader) {
</del><ins>+ public function set_upgrader(&$upgrader) {
</ins><span class="cx"> if ( is_object($upgrader) )
</span><span class="cx"> $this->upgrader =& $upgrader;
</span><span class="cx"> $this->add_strings();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function add_strings() {
</del><ins>+ public function add_strings() {
</ins><span class="cx"> }
</span><span class="cx">
</span><del>- function set_result($result) {
</del><ins>+ public function set_result($result) {
</ins><span class="cx"> $this->result = $result;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function request_filesystem_credentials($error = false) {
</del><ins>+ public function request_filesystem_credentials($error = false) {
</ins><span class="cx"> $url = $this->options['url'];
</span><span class="cx"> $context = $this->options['context'];
</span><span class="cx"> if ( !empty($this->options['nonce']) )
</span><span class="lines">@@ -46,18 +46,18 @@
</span><span class="cx"> return request_filesystem_credentials($url, '', $error, $context); //Possible to bring inline, Leaving as is for now.
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function header() {
</del><ins>+ public function header() {
</ins><span class="cx"> if ( $this->done_header )
</span><span class="cx"> return;
</span><span class="cx"> $this->done_header = true;
</span><span class="cx"> echo '<div class="wrap">';
</span><span class="cx"> echo '<h2>' . $this->options['title'] . '</h2>';
</span><span class="cx"> }
</span><del>- function footer() {
</del><ins>+ public function footer() {
</ins><span class="cx"> echo '</div>';
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function error($errors) {
</del><ins>+ public function error($errors) {
</ins><span class="cx"> if ( ! $this->done_header )
</span><span class="cx"> $this->header();
</span><span class="cx"> if ( is_string($errors) ) {
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function feedback($string) {
</del><ins>+ public function feedback($string) {
</ins><span class="cx"> if ( isset( $this->upgrader->strings[$string] ) )
</span><span class="cx"> $string = $this->upgrader->strings[$string];
</span><span class="cx">
</span><span class="lines">@@ -89,8 +89,8 @@
</span><span class="cx"> return;
</span><span class="cx"> show_message($string);
</span><span class="cx"> }
</span><del>- function before() {}
- function after() {}
</del><ins>+ public function before() {}
+ public function after() {}
</ins><span class="cx">
</span><span class="cx"> /**
</span><span class="cx"> * Output JavaScript that calls function to decrement the update counts.
</span><span class="lines">@@ -122,11 +122,11 @@
</span><span class="cx"> * @since 2.8.0
</span><span class="cx"> */
</span><span class="cx"> class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
</span><del>- var $plugin = '';
- var $plugin_active = false;
- var $plugin_network_active = false;
</del><ins>+ public $plugin = '';
+ public $plugin_active = false;
+ public $plugin_network_active = false;
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> $defaults = array( 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => __('Update Plugin') );
</span><span class="cx"> $args = wp_parse_args($args, $defaults);
</span><span class="cx">
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after() {
</del><ins>+ public function after() {
</ins><span class="cx"> $this->plugin = $this->upgrader->plugin_info();
</span><span class="cx"> if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){
</span><span class="cx"> echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin) .'"></iframe>';
</span><span class="lines">@@ -176,17 +176,17 @@
</span><span class="cx"> * @since 3.0.0
</span><span class="cx"> */
</span><span class="cx"> class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
</span><del>- var $in_loop = false;
- var $error = false;
</del><ins>+ public $in_loop = false;
+ public $error = false;
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> $defaults = array( 'url' => '', 'nonce' => '' );
</span><span class="cx"> $args = wp_parse_args($args, $defaults);
</span><span class="cx">
</span><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function add_strings() {
</del><ins>+ public function add_strings() {
</ins><span class="cx"> $this->upgrader->strings['skin_upgrade_start'] = __('The update process is starting. This process may take a while on some hosts, so please be patient.');
</span><span class="cx"> $this->upgrader->strings['skin_update_failed_error'] = __('An error occurred while updating %1$s: <strong>%2$s</strong>');
</span><span class="cx"> $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.');
</span><span class="lines">@@ -194,7 +194,7 @@
</span><span class="cx"> $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.');
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function feedback($string) {
</del><ins>+ public function feedback($string) {
</ins><span class="cx"> if ( isset( $this->upgrader->strings[$string] ) )
</span><span class="cx"> $string = $this->upgrader->strings[$string];
</span><span class="cx">
</span><span class="lines">@@ -215,14 +215,14 @@
</span><span class="cx"> echo "<p>$string</p>\n";
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function header() {
</del><ins>+ public function header() {
</ins><span class="cx"> // Nothing, This will be displayed within a iframe.
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function footer() {
</del><ins>+ public function footer() {
</ins><span class="cx"> // Nothing, This will be displayed within a iframe.
</span><span class="cx"> }
</span><del>- function error($error) {
</del><ins>+ public function error($error) {
</ins><span class="cx"> if ( is_string($error) && isset( $this->upgrader->strings[$error] ) )
</span><span class="cx"> $this->error = $this->upgrader->strings[$error];
</span><span class="cx">
</span><span class="lines">@@ -238,15 +238,15 @@
</span><span class="cx"> echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function bulk_header() {
</del><ins>+ public function bulk_header() {
</ins><span class="cx"> $this->feedback('skin_upgrade_start');
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function bulk_footer() {
</del><ins>+ public function bulk_footer() {
</ins><span class="cx"> $this->feedback('skin_upgrade_end');
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function before($title = '') {
</del><ins>+ public function before($title = '') {
</ins><span class="cx"> $this->in_loop = true;
</span><span class="cx"> printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' <span class="spinner waiting-' . $this->upgrader->update_current . '"></span></h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count);
</span><span class="cx"> echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').css("display", "inline-block");</script>';
</span><span class="lines">@@ -254,7 +254,7 @@
</span><span class="cx"> $this->flush_output();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after($title = '') {
</del><ins>+ public function after($title = '') {
</ins><span class="cx"> echo '</p></div>';
</span><span class="cx"> if ( $this->error || ! $this->result ) {
</span><span class="cx"> if ( $this->error )
</span><span class="lines">@@ -274,12 +274,12 @@
</span><span class="cx"> $this->flush_output();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function reset() {
</del><ins>+ public function reset() {
</ins><span class="cx"> $this->in_loop = false;
</span><span class="cx"> $this->error = false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function flush_output() {
</del><ins>+ public function flush_output() {
</ins><span class="cx"> wp_ob_end_flush_all();
</span><span class="cx"> flush();
</span><span class="cx"> }
</span><span class="lines">@@ -305,26 +305,26 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin {
</span><del>- var $plugin_info = array(); // Plugin_Upgrader::bulk() will fill this in.
</del><ins>+ public $plugin_info = array(); // Plugin_Upgrader::bulk() will fill this in.
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function add_strings() {
</del><ins>+ public function add_strings() {
</ins><span class="cx"> parent::add_strings();
</span><span class="cx"> $this->upgrader->strings['skin_before_update_header'] = __('Updating Plugin %1$s (%2$d/%3$d)');
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function before($title = '') {
</del><ins>+ public function before($title = '') {
</ins><span class="cx"> parent::before($this->plugin_info['Title']);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after($title = '') {
</del><ins>+ public function after($title = '') {
</ins><span class="cx"> parent::after($this->plugin_info['Title']);
</span><span class="cx"> $this->decrement_update_count( 'plugin' );
</span><span class="cx"> }
</span><del>- function bulk_footer() {
</del><ins>+ public function bulk_footer() {
</ins><span class="cx"> parent::bulk_footer();
</span><span class="cx"> $update_actions = array(
</span><span class="cx"> 'plugins_page' => '<a href="' . self_admin_url('plugins.php') . '" title="' . esc_attr__('Go to plugins page') . '" target="_parent">' . __('Return to Plugins page') . '</a>',
</span><span class="lines">@@ -349,27 +349,27 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin {
</span><del>- var $theme_info = array(); // Theme_Upgrader::bulk() will fill this in.
</del><ins>+ public $theme_info = array(); // Theme_Upgrader::bulk() will fill this in.
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function add_strings() {
</del><ins>+ public function add_strings() {
</ins><span class="cx"> parent::add_strings();
</span><span class="cx"> $this->upgrader->strings['skin_before_update_header'] = __('Updating Theme %1$s (%2$d/%3$d)');
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function before($title = '') {
</del><ins>+ public function before($title = '') {
</ins><span class="cx"> parent::before( $this->theme_info->display('Name') );
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after($title = '') {
</del><ins>+ public function after($title = '') {
</ins><span class="cx"> parent::after( $this->theme_info->display('Name') );
</span><span class="cx"> $this->decrement_update_count( 'theme' );
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function bulk_footer() {
</del><ins>+ public function bulk_footer() {
</ins><span class="cx"> parent::bulk_footer();
</span><span class="cx"> $update_actions = array(
</span><span class="cx"> 'themes_page' => '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>',
</span><span class="lines">@@ -401,10 +401,10 @@
</span><span class="cx"> * @since 2.8.0
</span><span class="cx"> */
</span><span class="cx"> class Plugin_Installer_Skin extends WP_Upgrader_Skin {
</span><del>- var $api;
- var $type;
</del><ins>+ public $api;
+ public $type;
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> $defaults = array( 'type' => 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '' );
</span><span class="cx"> $args = wp_parse_args($args, $defaults);
</span><span class="cx">
</span><span class="lines">@@ -414,12 +414,12 @@
</span><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function before() {
</del><ins>+ public function before() {
</ins><span class="cx"> if ( !empty($this->api) )
</span><span class="cx"> $this->upgrader->strings['process_success'] = sprintf( __('Successfully installed the plugin <strong>%s %s</strong>.'), $this->api->name, $this->api->version);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after() {
</del><ins>+ public function after() {
</ins><span class="cx">
</span><span class="cx"> $plugin_file = $this->upgrader->plugin_info();
</span><span class="cx">
</span><span class="lines">@@ -476,10 +476,10 @@
</span><span class="cx"> * @since 2.8.0
</span><span class="cx"> */
</span><span class="cx"> class Theme_Installer_Skin extends WP_Upgrader_Skin {
</span><del>- var $api;
- var $type;
</del><ins>+ public $api;
+ public $type;
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> $defaults = array( 'type' => 'web', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => '' );
</span><span class="cx"> $args = wp_parse_args($args, $defaults);
</span><span class="cx">
</span><span class="lines">@@ -489,12 +489,12 @@
</span><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function before() {
</del><ins>+ public function before() {
</ins><span class="cx"> if ( !empty($this->api) )
</span><span class="cx"> $this->upgrader->strings['process_success'] = sprintf( $this->upgrader->strings['process_success_specific'], $this->api->name, $this->api->version);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after() {
</del><ins>+ public function after() {
</ins><span class="cx"> if ( empty($this->upgrader->result['destination_name']) )
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="lines">@@ -559,9 +559,9 @@
</span><span class="cx"> * @since 2.8.0
</span><span class="cx"> */
</span><span class="cx"> class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
</span><del>- var $theme = '';
</del><ins>+ public $theme = '';
</ins><span class="cx">
</span><del>- function __construct($args = array()) {
</del><ins>+ public function __construct($args = array()) {
</ins><span class="cx"> $defaults = array( 'url' => '', 'theme' => '', 'nonce' => '', 'title' => __('Update Theme') );
</span><span class="cx"> $args = wp_parse_args($args, $defaults);
</span><span class="cx">
</span><span class="lines">@@ -570,7 +570,7 @@
</span><span class="cx"> parent::__construct($args);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after() {
</del><ins>+ public function after() {
</ins><span class="cx"> $this->decrement_update_count( 'theme' );
</span><span class="cx">
</span><span class="cx"> $update_actions = array();
</span><span class="lines">@@ -630,11 +630,11 @@
</span><span class="cx"> * @since 3.7.0
</span><span class="cx"> */
</span><span class="cx"> class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
</span><del>- var $language_update = null;
- var $done_header = false;
- var $display_footer_actions = true;
</del><ins>+ public $language_update = null;
+ public $done_header = false;
+ public $display_footer_actions = true;
</ins><span class="cx">
</span><del>- function __construct( $args = array() ) {
</del><ins>+ public function __construct( $args = array() ) {
</ins><span class="cx"> $defaults = array( 'url' => '', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false );
</span><span class="cx"> $args = wp_parse_args( $args, $defaults );
</span><span class="cx"> if ( $args['skip_header_footer'] ) {
</span><span class="lines">@@ -644,7 +644,7 @@
</span><span class="cx"> parent::__construct( $args );
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function before() {
</del><ins>+ public function before() {
</ins><span class="cx"> $name = $this->upgrader->get_name_for_update( $this->language_update );
</span><span class="cx">
</span><span class="cx"> echo '<div class="update-messages lp-show-latest">';
</span><span class="lines">@@ -652,17 +652,17 @@
</span><span class="cx"> printf( '<h4>' . __( 'Updating translations for %1$s (%2$s)…' ) . '</h4>', $name, $this->language_update->language );
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function error( $error ) {
</del><ins>+ public function error( $error ) {
</ins><span class="cx"> echo '<div class="lp-error">';
</span><span class="cx"> parent::error( $error );
</span><span class="cx"> echo '</div>';
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function after() {
</del><ins>+ public function after() {
</ins><span class="cx"> echo '</div>';
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function bulk_footer() {
</del><ins>+ public function bulk_footer() {
</ins><span class="cx"> $this->decrement_update_count( 'translation' );
</span><span class="cx"> $update_actions = array();
</span><span class="cx"> $update_actions['updates_page'] = '<a href="' . self_admin_url( 'update-core.php' ) . '" title="' . esc_attr__( 'Go to WordPress Updates page' ) . '" target="_parent">' . __( 'Return to WordPress Updates' ) . '</a>';
</span><span class="lines">@@ -696,7 +696,7 @@
</span><span class="cx"> class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
</span><span class="cx"> protected $messages = array();
</span><span class="cx">
</span><del>- function request_filesystem_credentials( $error = false, $context = '' ) {
</del><ins>+ public function request_filesystem_credentials( $error = false, $context = '' ) {
</ins><span class="cx"> if ( $context )
</span><span class="cx"> $this->options['context'] = $context;
</span><span class="cx"> // TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version
</span><span class="lines">@@ -707,11 +707,11 @@
</span><span class="cx"> return $result;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function get_upgrade_messages() {
</del><ins>+ public function get_upgrade_messages() {
</ins><span class="cx"> return $this->messages;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function feedback( $data ) {
</del><ins>+ public function feedback( $data ) {
</ins><span class="cx"> if ( is_wp_error( $data ) )
</span><span class="cx"> $string = $data->get_error_message();
</span><span class="cx"> else if ( is_array( $data ) )
</span><span class="lines">@@ -747,19 +747,19 @@
</span><span class="cx"> $this->messages[] = $string;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function header() {
</del><ins>+ public function header() {
</ins><span class="cx"> ob_start();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function footer() {
</del><ins>+ public function footer() {
</ins><span class="cx"> $output = ob_get_contents();
</span><span class="cx"> if ( ! empty( $output ) )
</span><span class="cx"> $this->feedback( $output );
</span><span class="cx"> ob_end_clean();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- function bulk_header() {}
- function bulk_footer() {}
- function before() {}
- function after() {}
</del><ins>+ public function bulk_header() {}
+ public function bulk_footer() {}
+ public function before() {}
+ public function after() {}
</ins><span class="cx"> }
</span></span></pre>
</div>
</div>
</body>
</html>