diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 6f25348280..fd55545146 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -171,35 +171,43 @@ function get_theme_update_available( $theme ) { if ( !is_multisite() ) { if ( ! current_user_can('update_themes') ) { - /* translators: 1: theme name, 2: theme details URL, 3: accessibility text, 4: version number */ - $html = sprintf( '

' . __( 'There is a new version of %1$s available. View version %4$s details.' ) . '

', + /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */ + $html = sprintf( '

' . __( 'There is a new version of %1$s available. View version %4$s details.' ) . '

', $theme_name, esc_url( $details_url ), - /* translators: 1: theme name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: theme name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) + ), $update['new_version'] ); } elseif ( empty( $update['package'] ) ) { - /* translators: 1: theme name, 2: theme details URL, 3: accessibility text, 4: version number */ - $html = sprintf( '

' . __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this theme.' ) . '

', + /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number */ + $html = sprintf( '

' . __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this theme.' ) . '

', $theme_name, esc_url( $details_url ), - /* translators: 1: theme name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: theme name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) + ), $update['new_version'] ); } else { - /* translators: 1: theme name, 2: theme details URL, 3: accessibility text, 4: version number, 5: update URL, 6: accessibility text */ - $html = sprintf( '

' . __( 'There is a new version of %1$s available. View version %4$s details or update now.' ) . '

', + /* translators: 1: theme name, 2: theme details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ + $html = sprintf( '

' . __( 'There is a new version of %1$s available. View version %4$s details or update now.' ) . '

', $theme_name, esc_url( $details_url ), - /* translators: 1: theme name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: theme name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) + ), $update['new_version'], $update_url, - /* translators: %s: theme name */ - esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ), - $stylesheet + sprintf( 'aria-label="%s" id="update-theme" data-slug="%s"', + /* translators: %s: theme name */ + esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ), + $stylesheet + ) ); } } diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index eff6f7647c..457b5fee63 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -368,34 +368,42 @@ function wp_plugin_update_row( $file, $plugin_data ) { echo '

'; if ( ! current_user_can( 'update_plugins' ) ) { - /* translators: 1: plugin name, 2: details URL, 3: accessibility text, 4: version number */ - printf( __( 'There is a new version of %1$s available. View version %4$s details.' ), + /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number */ + printf( __( 'There is a new version of %1$s available. View version %4$s details.' ), $plugin_name, esc_url( $details_url ), - /* translators: 1: plugin name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: plugin name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) + ), $response->new_version ); } elseif ( empty( $response->package ) ) { - /* translators: 1: plugin name, 2: details URL, 3: accessibility text, 4: version number */ - printf( __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.' ), + /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number */ + printf( __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.' ), $plugin_name, esc_url( $details_url ), - /* translators: 1: plugin name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: plugin name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) + ), $response->new_version ); } else { - /* translators: 1: plugin name, 2: details URL, 3: accessibility text, 4: version number, 5: update URL, 6: accessibility text */ - printf( __( 'There is a new version of %1$s available. View version %4$s details or update now.' ), + /* translators: 1: plugin name, 2: details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ + printf( __( 'There is a new version of %1$s available. View version %4$s details or update now.' ), $plugin_name, esc_url( $details_url ), - /* translators: 1: plugin name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: plugin name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) + ), $response->new_version, wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $file, 'upgrade-plugin_' . $file ), - /* translators: %s: plugin name */ - esc_attr( sprintf( __( 'Update %s now' ), $plugin_name ) ) + sprintf( 'class="update-link" aria-label="%s"', + /* translators: %s: plugin name */ + esc_attr( sprintf( __( 'Update %s now' ), $plugin_name ) ) + ) ); } @@ -505,34 +513,42 @@ function wp_theme_update_row( $theme_key, $theme ) { echo '

'; if ( ! current_user_can( 'update_themes' ) ) { - /* translators: 1: theme name, 2: details URL, 3: accessibility text, 4: version number */ - printf( __( 'There is a new version of %1$s available. View version %4$s details.'), + /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number */ + printf( __( 'There is a new version of %1$s available. View version %4$s details.'), $theme['Name'], esc_url( $details_url ), - /* translators: 1: theme name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: theme name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) + ), $response['new_version'] ); } elseif ( empty( $response['package'] ) ) { - /* translators: 1: theme name, 2: details URL, 3: accessibility text, 4: version number */ - printf( __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this theme.' ), + /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number */ + printf( __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this theme.' ), $theme['Name'], esc_url( $details_url ), - /* translators: 1: theme name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: theme name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) + ), $response['new_version'] ); } else { - /* translators: 1: theme name, 2: details URL, 3: accessibility text, 4: version number, 5: update URL, 6: accessibility text */ - printf( __( 'There is a new version of %1$s available. View version %4$s details or update now.' ), + /* translators: 1: theme name, 2: details URL, 3: additional link attributes, 4: version number, 5: update URL, 6: additional link attributes */ + printf( __( 'There is a new version of %1$s available. View version %4$s details or update now.' ), $theme['Name'], esc_url( $details_url ), - /* translators: 1: theme name, 2: version number */ - esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ), + sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', + /* translators: 1: theme name, 2: version number */ + esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) + ), $response['new_version'], wp_nonce_url( self_admin_url( 'update.php?action=upgrade-theme&theme=' ) . $theme_key, 'upgrade-theme_' . $theme_key ), - /* translators: %s: theme name */ - esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) ) + sprintf( 'class="update-link" aria-label="%s"', + /* translators: %s: theme name */ + esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) ) + ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index a605cdcf6a..4d85c0675c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta3-38081'; +$wp_version = '4.6-beta3-38082'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.