rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -197,7 +197,7 @@ class WP_Upgrader_Skin {
$feedback = $this->upgrader->strings[ $feedback ];
}
if ( strpos( $feedback, '%' ) !== false ) {
if ( str_contains( $feedback, '%' ) ) {
if ( $args ) {
$args = array_map( 'strip_tags', $args );
$args = array_map( 'esc_html', $args );
@@ -211,21 +211,21 @@ class WP_Upgrader_Skin {
}
/**
* Action to perform before an update.
* Performs an action before an update.
*
* @since 2.8.0
*/
public function before() {}
/**
* Action to perform following an update.
* Performs and action following an update.
*
* @since 2.8.0
*/
public function after() {}
/**
* Output JavaScript that calls function to decrement the update counts.
* Outputs JavaScript that calls function to decrement the update counts.
*
* @since 3.9.0
*
@@ -270,7 +270,7 @@ class WP_Upgrader_Skin {
* @since 5.5.0
*
* @param WP_Error $wp_error WP_Error object.
* @return bool
* @return bool True if the error should be hidden, false otherwise.
*/
public function hide_process_failed( $wp_error ) {
return false;