wp core update 6.6
This commit is contained in:
@@ -174,7 +174,8 @@ function plugins_api( $action, $args = array() ) {
|
||||
|
||||
if ( $ssl && is_wp_error( $request ) ) {
|
||||
if ( ! wp_is_json_request() ) {
|
||||
trigger_error(
|
||||
wp_trigger_error(
|
||||
__FUNCTION__,
|
||||
sprintf(
|
||||
/* translators: %s: Support forums URL. */
|
||||
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
|
||||
@@ -320,6 +321,8 @@ function install_search_form( $deprecated = true ) {
|
||||
?>
|
||||
<form class="search-form search-plugins" method="get">
|
||||
<input type="hidden" name="tab" value="search" />
|
||||
<label for="search-plugins"><?php _e( 'Search Plugins' ); ?></label>
|
||||
<input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" />
|
||||
<label class="screen-reader-text" for="typeselector">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
@@ -331,13 +334,6 @@ function install_search_form( $deprecated = true ) {
|
||||
<option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
|
||||
<option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option>
|
||||
</select>
|
||||
<label class="screen-reader-text" for="search-plugins">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Search Plugins' );
|
||||
?>
|
||||
</label>
|
||||
<input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
|
||||
<?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
|
||||
</form>
|
||||
<?php
|
||||
@@ -953,7 +949,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
if ( $status['url'] ) {
|
||||
if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_installed && ! empty( $data->download_link ) ) {
|
||||
$button = sprintf(
|
||||
'<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
|
||||
'<a class="install-now button" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
|
||||
esc_attr( $data->slug ),
|
||||
esc_url( $status['url'] ),
|
||||
/* translators: %s: Plugin name and version. */
|
||||
@@ -974,7 +970,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
if ( $status['url'] ) {
|
||||
if ( $compatible_php && $compatible_wp ) {
|
||||
$button = sprintf(
|
||||
'<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s">%s</a>',
|
||||
'<a class="update-now button aria-button-if-js" data-plugin="%s" data-slug="%s" href="%s" aria-label="%s" data-name="%s" role="button">%s</a>',
|
||||
esc_attr( $status['file'] ),
|
||||
esc_attr( $data->slug ),
|
||||
esc_url( $status['url'] ),
|
||||
@@ -1021,7 +1017,7 @@ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible
|
||||
}
|
||||
|
||||
$button = sprintf(
|
||||
'<a href="%1$s" data-name="%2$s" data-slug="%3$s" data-plugin="%4$s" class="button button-primary activate-now" aria-label="%5$s">%6$s</a>',
|
||||
'<a href="%1$s" data-name="%2$s" data-slug="%3$s" data-plugin="%4$s" class="button button-primary activate-now" aria-label="%5$s" role="button">%6$s</a>',
|
||||
esc_url( $activate_url ),
|
||||
esc_attr( $name ),
|
||||
esc_attr( $data->slug ),
|
||||
|
||||
Reference in New Issue
Block a user