About page: Fix some minor string errors and simplify URL-building for the plugin install link for capable users.

Props ocean90, DrewAPicture
See #34663.

Built from https://develop.svn.wordpress.org/trunk@35765


git-svn-id: http://core.svn.wordpress.org/trunk@35729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-12-04 16:13:28 +00:00
parent 7250749032
commit 3e1f22c196
2 changed files with 13 additions and 8 deletions

View File

@ -109,16 +109,21 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<p><?php echo ( 'WordPress 4.4 marks the beginning of a new era with integration of infrastructure for the new REST API. The REST API serves to provide developers with a robust path forward for building and extending RESTful APIs on top of WordPress.' ); ?></p>
<p><?php
if ( current_user_can( 'install_plugins' ) ) {
$plugin_link = '<a href="' . esc_url( network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=rest-api' .
'&TB_iframe=true&width=600&height=550' ) ) . '" class="thickbox">WordPress REST API</a>';
$url_args = array(
'tab' => 'plugin-information',
'plugin' => 'rest-api',
'TB_iframe' => true,
'width' => 600,
'height' => 550
);
$plugin_link = '<a href="' . esc_url( add_query_arg( $url_args, network_admin_url( 'plugin-install.php' ) ) ) . '" class="thickbox">WordPress REST API</a>';
} else {
$plugin_link = '<a href="https://wordpress.org/plugins/rest-api">WordPress REST API</a>';
}
/* translators: WordPress REST API plugin link */
printf( ( 'Infrastructure is the first part of a multi-stage rollout for the REST API, which also targets inclusion of core endpoints in an upcoming release. To get a sneak peek of the core endpoints, and for more on extending the REST API, check out the official %s plugin.' ),
$plugin_link
);
printf( ( 'Infrastructure is the first part of a multi-stage rollout for the REST API, which also targets inclusion of core endpoints in an upcoming release. To get a sneak peek of the core endpoints, and for more on extending the REST API, check out the official %s plugin.' ), $plugin_link );
?></p>
</div>
</div>
@ -129,7 +134,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h4><?php echo ( 'Term meta' ); ?></h4>
<p><?php
/* translators: 1: add_term_meta() docs link, 2: get_term_meta() docs link, 3: update_term_meta() docs link */
printf( ( 'Terms now now support metadata, just like posts. See %1$s, %2$s, and %3$s for more information.' ),
printf( ( 'Terms now support metadata, just like posts. See %1$s, %2$s, and %3$s for more information.' ),
'<a href="https://developer.wordpress.org/reference/functions/add_term_meta"><code>add_term_meta()</code></a>',
'<a href="https://developer.wordpress.org/reference/functions/get_term_meta"><code>get_term_meta()</code></a>',
'<a href="https://developer.wordpress.org/reference/functions/update_term_meta"><code>update_term_meta()</code></a>'
@ -140,7 +145,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
<h4><?php echo ( 'Comment query improvements' ); ?></h4>
<p><?php
/* translators: WP_Comment_Query class name */
printf( ( 'Comment queries now have improved cache handling and performance. New arguments in %s making crafting robust comment queries simpler.' ), '<code>WP_Comment_Query</code>' );
printf( ( 'Comment queries now have cache handling to improve performance. New arguments in %s make crafting robust comment queries simpler.' ), '<code>WP_Comment_Query</code>' );
?></p>
</div>
<div class="col">

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-RC1-35764';
$wp_version = '4.4-RC1-35765';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.