Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/wp-admin/admin-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
<p id="footer-left" class="alignleft">
<?php
$text = sprintf(
/* translators: %s: https://wordpress.org/ */
__( 'Thank you for creating with <a href="%s">WordPress</a>.' ),
esc_url( __( 'https://wordpress.org/' ) )
/* translators: 1: https://wordpress.org/, 2: confirmation message. */
__( 'Thank you for creating with <a href="%1$s" onclick="javascript:return confirm(\'%2$s\');">WordPress</a>.' ),
esc_url( __( 'https://wordpress.org/' ) ),
esc_js( __( "Are you sure you want to leave this page?\n 'Cancel' to stay, 'OK' to leave." ) )
);

/**
Expand Down
10 changes: 6 additions & 4 deletions src/wp-admin/options-general.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ class="<?php echo esc_attr( $classes_for_button ); ?>"
<p class="description" id="home-description">
<?php
printf(
/* translators: %s: Documentation URL. */
__( 'Enter the same address here unless you <a href="%s">want your site home page to be different from your WordPress installation directory</a>.' ),
__( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' )
/* translators: 1: Documentation URL. 2: Confirmation message. */
__( 'Enter the same address here unless you <a href="%1$s" onclick="javascript:return confirm(\'%2$s\');">want your site home page to be different from your WordPress installation directory</a>.' ),
__( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' ),
/* translators: %s: confirmation message. */
esc_js( __( "Are you sure you want to leave this page?\n 'Cancel' to stay, 'OK' to leave." ) )
);
?>
</p>
Expand Down Expand Up @@ -547,7 +549,7 @@ class="<?php echo esc_attr( $classes_for_button ); ?>"
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
"<span class='spinner'></span>\n" . '</p>';

echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/documentation/article/customize-date-and-time-format/">Documentation on date and time formatting</a>.' ) . "</p>\n";
echo "\t<p class='date-time-doc'>" . sprintf( __( '<a href="https://wordpress.org/documentation/article/customize-date-and-time-format/" onclick="javascript:return confirm(\'%s\');">Documentation on date and time formatting</a>.' ), esc_js( __( "Are you sure you want to leave this page?\n 'Cancel' to stay, 'OK' to leave." ) ) ) . "</p>\n";
?>
</fieldset>
</td>
Expand Down
7 changes: 4 additions & 3 deletions src/wp-admin/options-permalink.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@
<p>
<?php
printf(
/* translators: %s: Documentation URL. */
__( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%s">number of tags are available</a>, and here are some examples to get you started.' ),
__( 'https://wordpress.org/documentation/article/customize-permalinks/' )
/* translators: 1: Documentation URL. 2: Confirmation message. */
__( 'WordPress offers you the ability to create a custom URL structure for your permalinks and archives. Custom URL structures can improve the aesthetics, usability, and forward-compatibility of your links. A <a href="%1$s" onclick="javascript:return confirm(\'%2$s\');">number of tags are available</a>, and here are some examples to get you started.' ),
__( 'https://wordpress.org/documentation/article/customize-permalinks/' ),
esc_js( __( "Are you sure you want to leave this page?\n 'Cancel' to stay, 'OK' to leave." ) )
);
?>
</p>
Expand Down
7 changes: 4 additions & 3 deletions src/wp-admin/options-reading.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@
<p class="description">
<?php
printf(
/* translators: %s: Documentation URL. */
__( 'Your theme determines how content is displayed in browsers. <a href="%s">Learn more about feeds</a>.' ),
__( 'https://developer.wordpress.org/advanced-administration/wordpress/feeds/' )
/* translators: 1: Documentation URL. 2: Confirmation message. */
__( 'Your theme determines how content is displayed in browsers. <a href="%1$s" onclick="javascript:return confirm(\'%2$s\');">Learn more about feeds</a>.' ),
__( 'https://developer.wordpress.org/advanced-administration/wordpress/feeds/' ),
esc_js( __( "Are you sure you want to leave this page?\n 'Cancel' to stay, 'OK' to leave." ) )
);
?>
</p>
Expand Down
7 changes: 4 additions & 3 deletions src/wp-admin/options-writing.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@
<p><label for="ping_sites">
<?php
printf(
/* translators: %s: Documentation URL. */
__( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see the <a href="%s">Update Services</a> documentation article. Separate multiple service URLs with line breaks.' ),
__( 'https://developer.wordpress.org/advanced-administration/wordpress/update-services/' )
/* translators: 1: Documentation URL. 2: Confirmation message. */
__( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see the <a href="%1$s" onclick="javascript:return confirm(\'%2$s\');">Update Services</a> documentation article. Separate multiple service URLs with line breaks.' ),
__( 'https://developer.wordpress.org/advanced-administration/wordpress/update-services/' ),
esc_js( __( "Are you sure you want to leave this page?\n 'Cancel' to stay, 'OK' to leave." ) )
);
?>
</label></p>
Expand Down
Loading