General: Remove ableist language from code comments.

Remove a handful of occurrences of ableist terms in code comments; omits external libraries.

Props dartiss, upadalavipul, SergeyBiryukov, shailu25, jorbin, dmsnell, joedolson, manfcarlo.
Fixes #60247.
Built from https://develop.svn.wordpress.org/trunk@57584


git-svn-id: http://core.svn.wordpress.org/trunk@57085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson 2024-02-11 19:14:19 +00:00
parent 23d24eefc2
commit 9a3c2cc58b
8 changed files with 22 additions and 10 deletions

View File

@ -70,7 +70,7 @@ jQuery( function($) {
* @param {Event} event The event object. * @param {Event} event The event object.
* @return {void} * @return {void}
*/ */
$timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels. $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(), var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
newD = new Date( aa, mm - 1, jj, hh, mn ); newD = new Date( aa, mm - 1, jj, hh, mn );

View File

@ -889,7 +889,7 @@ jQuery( function($) {
}); });
// Set the selected visibility as current. // Set the selected visibility as current.
$postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels. $postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val(); var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val();
$postVisibilitySelect.slideUp('fast'); $postVisibilitySelect.slideUp('fast');
@ -945,7 +945,7 @@ jQuery( function($) {
}); });
// Save the changed timestamp. // Save the changed timestamp.
$timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels. $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
if ( updateText() ) { if ( updateText() ) {
$timestampdiv.slideUp('fast'); $timestampdiv.slideUp('fast');
$timestampdiv.siblings('a.edit-timestamp').show().trigger( 'focus' ); $timestampdiv.siblings('a.edit-timestamp').show().trigger( 'focus' );

View File

@ -340,7 +340,7 @@ define('SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT', 'http://purl.org/rss/1.0/mo
/** /**
* RSS 2.0 Namespace * RSS 2.0 Namespace
* (Stupid, I know, but I'm certain it will confuse people less with support.) * (I know, but I'm certain it will confuse people less with support.)
*/ */
define('SIMPLEPIE_NAMESPACE_RSS_20', ''); define('SIMPLEPIE_NAMESPACE_RSS_20', '');
@ -1208,7 +1208,7 @@ class SimplePie
* Set options to make SP as fast as possible * Set options to make SP as fast as possible
* *
* Forgoes a substantial amount of data sanitization in favor of speed. This * Forgoes a substantial amount of data sanitization in favor of speed. This
* turns SimplePie into a dumb parser of feeds. * turns SimplePie into an dumb parser of feeds.
* *
* @param bool $set Whether to set them or not * @param bool $set Whether to set them or not
*/ */

View File

@ -507,7 +507,7 @@ final class WP_Theme implements ArrayAccess {
} }
return; return;
} }
// Set the parent. Pass the current instance so we can do the crazy checks above and assess errors. // Set the parent. Pass the current instance so we can do the checks above and assess errors.
$this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template : $this->theme_root, $this ); $this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template : $this->theme_root, $this );
} }

View File

@ -6939,7 +6939,19 @@ class wp_xmlrpc_server extends IXR_Server {
return $this->pingback_error( 48, __( 'The pingback has already been registered.' ) ); return $this->pingback_error( 48, __( 'The pingback has already been registered.' ) );
} }
// Very stupid, but gives time to the 'from' server to publish! /*
* The remote site may have sent the pingback before it finished publishing its own content
* containing this pingback URL. If that happens then it won't be immediately possible to fetch
* the pinging post; adding a small delay reduces the likelihood of this happening.
*
* While there are more robust methods than calling `sleep()` here (because `sleep()` merely
* mitigates the risk of requesting the remote post before it's available), this is effective
* enough for most cases and avoids introducing more complexity into this code.
*
* One way to improve the reliability of this code might be to add failure-handling to the remote
* fetch and retry up to a set number of times if it receives a 404. This could also handle 401 and
* 403 responses to differentiate the "does not exist" failure from the "may not access" failure.
*/
sleep( 1 ); sleep( 1 );
$remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] ); $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );

View File

@ -504,7 +504,7 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) {
$element = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $element ); $element = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $element );
} }
// Looks like we found some crazy unfiltered HTML. Skipping it for confidence. // Looks like we found some unexpected unfiltered HTML. Skipping it for confidence.
$element = strtr( $element, $trans ); $element = strtr( $element, $trans );
continue; continue;
} }

View File

@ -2802,7 +2802,7 @@ function add_theme_support( $feature, ...$args ) {
* the constant is always accurate (and is not defined later, overriding our value). * the constant is always accurate (and is not defined later, overriding our value).
* As stated above, the first value wins. * As stated above, the first value wins.
* Once we get to wp_loaded (just-in-time), define any constants we haven't already. * Once we get to wp_loaded (just-in-time), define any constants we haven't already.
* Constants are lame. Don't reference them. This is just for backward compatibility. * Constants should be avoided. Don't reference them. This is just for backward compatibility.
*/ */
if ( defined( 'NO_HEADER_TEXT' ) ) { if ( defined( 'NO_HEADER_TEXT' ) ) {

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.5-alpha-57583'; $wp_version = '6.5-alpha-57584';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.