summaryrefslogtreecommitdiffstats
path: root/wp-admin/options-general.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-admin/options-general.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--wp-admin/options-general.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
index 28aa16c..9515f71 100644
--- a/wp-admin/options-general.php
+++ b/wp-admin/options-general.php
@@ -32,7 +32,7 @@ if ( ! is_multisite() ) {
'<p>' . sprintf(
/* translators: %s: Documentation URL. */
__( 'Though the terms refer to two different concepts, in practice, they can be the same address or different. For example, you can have the core WordPress installation files in the root directory (<code>https://example.com</code>), in which case the two URLs would be the same. Or the <a href="%s">WordPress files can be in a subdirectory</a> (<code>https://example.com/wordpress</code>). In that case, the WordPress URL and the site URL would be different.' ),
- __( 'https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' )
) . '</p>' .
'<p>' . sprintf(
/* translators: 1: http://, 2: https:// */
@@ -235,7 +235,7 @@ if ( ! is_multisite() ) {
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://wordpress.org/documentation/article/giving-wordpress-its-own-directory/' )
+ __( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' )
);
?>
</p>
@@ -354,7 +354,7 @@ if ( str_contains( $tzstring, 'Etc/GMT' ) ) {
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
$check_zone_info = false;
- if ( 0 == $current_offset ) {
+ if ( 0 === (int) $current_offset ) {
$tzstring = 'UTC+0';
} elseif ( $current_offset < 0 ) {
$tzstring = 'UTC' . $current_offset;
@@ -554,7 +554,7 @@ foreach ( $time_formats as $format ) {
global $wp_locale;
for ( $day_index = 0; $day_index <= 6; $day_index++ ) :
- $selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected="selected"' : '';
+ $selected = ( (int) get_option( 'start_of_week' ) === $day_index ) ? 'selected="selected"' : '';
echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
endfor;
?>