wp/wp-admin/includes/options.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-admin/includes/options.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-admin/includes/options.php	Tue Dec 15 13:49:49 2020 +0100
@@ -49,16 +49,17 @@
 			$siteName.text( title );
 		});
 
-		$("input[name='date_format']").click(function(){
-			if ( "date_format_custom_radio" != $(this).attr("id") )
+		$( 'input[name="date_format"]' ).click( function() {
+			if ( 'date_format_custom_radio' !== $(this).attr( 'id' ) )
 				$( 'input[name="date_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
 		});
+
 		$( 'input[name="date_format_custom"]' ).on( 'click input', function() {
 			$( '#date_format_custom_radio' ).prop( 'checked', true );
 		});
 
-		$("input[name='time_format']").click(function(){
-			if ( "time_format_custom_radio" != $(this).attr("id") )
+		$( 'input[name="time_format"]' ).click( function() {
+			if ( 'time_format_custom_radio' !== $(this).attr( 'id' ) )
 				$( 'input[name="time_format_custom"]' ).val( $( this ).val() ).closest( 'fieldset' ).find( '.example' ).text( $( this ).parent( 'label' ).children( '.format-i18n' ).text() );
 		});
 
@@ -80,7 +81,7 @@
 					spinner.addClass( 'is-active' );
 
 					$.post( ajaxurl, {
-						action: 'date_format_custom' == format.attr( 'name' ) ? 'date_format' : 'time_format',
+						action: 'date_format_custom' === format.attr( 'name' ) ? 'date_format' : 'time_format',
 						date 	: format.val()
 					}, function( d ) { spinner.removeClass( 'is-active' ); example.text( d ); } );
 				}
@@ -129,5 +130,5 @@
  */
 function options_reading_blog_charset() {
 	echo '<input name="blog_charset" type="text" id="blog_charset" value="' . esc_attr( get_option( 'blog_charset' ) ) . '" class="regular-text" />';
-	echo '<p class="description">' . __( 'The <a href="https://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
+	echo '<p class="description">' . __( 'The <a href="https://wordpress.org/support/article/glossary/#character-set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>';
 }