Make WordPress Core

Ticket #60247: 60247.2.diff

File 60247.2.diff, 5.8 KB (added by joedolson, 8 months ago)

Combine into one patch; a few additional items

  • src/js/_enqueues/admin/comment.js

     
    7070         * @param {Event} event The event object.
    7171         * @return {void}
    7272         */
    73         $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
     73        $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
    7474                var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(),
    7575                        newD = new Date( aa, mm - 1, jj, hh, mn );
    7676
  • src/js/_enqueues/admin/post.js

     
    889889                });
    890890
    891891                // Set the selected visibility as current.
    892                 $postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
     892                $postVisibilitySelect.find('.save-post-visibility').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
    893893                        var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val();
    894894
    895895                        $postVisibilitySelect.slideUp('fast');
     
    945945                });
    946946
    947947                // Save the changed timestamp.
    948                 $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse - multiple OK cancels.
     948                $timestampdiv.find('.save-timestamp').on( 'click', function( event ) { // Crazyhorse branch - multiple OK cancels.
    949949                        if ( updateText() ) {
    950950                                $timestampdiv.slideUp('fast');
    951951                                $timestampdiv.siblings('a.edit-timestamp').show().trigger( 'focus' );
  • src/wp-includes/class-simplepie.php

     
    340340
    341341/**
    342342 * RSS 2.0 Namespace
    343  * (Stupid, I know, but I'm certain it will confuse people less with support.)
     343 * (I know, but I'm certain it will confuse people less with support.)
    344344 */
    345345define('SIMPLEPIE_NAMESPACE_RSS_20', '');
    346346
     
    12081208         * Set options to make SP as fast as possible
    12091209         *
    12101210         * Forgoes a substantial amount of data sanitization in favor of speed. This
    1211          * turns SimplePie into a dumb parser of feeds.
     1211         * turns SimplePie into an dumb parser of feeds.
    12121212         *
    12131213         * @param bool $set Whether to set them or not
    12141214         */
  • src/wp-includes/class-wp-theme.php

     
    507507                                }
    508508                                return;
    509509                        }
    510                         // Set the parent. Pass the current instance so we can do the crazy checks above and assess errors.
     510                        // Set the parent. Pass the current instance so we can do the checks above and assess errors.
    511511                        $this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template : $this->theme_root, $this );
    512512                }
    513513
  • src/wp-includes/class-wp-xmlrpc-server.php

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

     
    504504                                $element = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $element );
    505505                        }
    506506
    507                         // Looks like we found some crazy unfiltered HTML. Skipping it for confidence.
     507                        // Looks like we found some unexpected unfiltered HTML. Skipping it for confidence.
    508508                        $element = strtr( $element, $trans );
    509509                        continue;
    510510                }
  • src/wp-includes/theme.php

     
    27892789                         * the constant is always accurate (and is not defined later,  overriding our value).
    27902790                         * As stated above, the first value wins.
    27912791                         * Once we get to wp_loaded (just-in-time), define any constants we haven't already.
    2792                          * Constants are lame. Don't reference them. This is just for backward compatibility.
     2792                         * Constants should be avoided. Don't reference them. This is just for backward compatibility.
    27932793                         */
    27942794
    27952795                        if ( defined( 'NO_HEADER_TEXT' ) ) {