Ticket #60247: 60247.2.diff
File 60247.2.diff, 5.8 KB (added by , 8 months ago) |
---|
-
src/js/_enqueues/admin/comment.js
70 70 * @param {Event} event The event object. 71 71 * @return {void} 72 72 */ 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. 74 74 var aa = $('#aa').val(), mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val(), 75 75 newD = new Date( aa, mm - 1, jj, hh, mn ); 76 76 -
src/js/_enqueues/admin/post.js
889 889 }); 890 890 891 891 // 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. 893 893 var visibilityLabel = '', selectedVisibility = $postVisibilitySelect.find('input:radio:checked').val(); 894 894 895 895 $postVisibilitySelect.slideUp('fast'); … … 945 945 }); 946 946 947 947 // 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. 949 949 if ( updateText() ) { 950 950 $timestampdiv.slideUp('fast'); 951 951 $timestampdiv.siblings('a.edit-timestamp').show().trigger( 'focus' ); -
src/wp-includes/class-simplepie.php
340 340 341 341 /** 342 342 * 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.) 344 344 */ 345 345 define('SIMPLEPIE_NAMESPACE_RSS_20', ''); 346 346 … … 1208 1208 * Set options to make SP as fast as possible 1209 1209 * 1210 1210 * 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. 1212 1212 * 1213 1213 * @param bool $set Whether to set them or not 1214 1214 */ -
src/wp-includes/class-wp-theme.php
507 507 } 508 508 return; 509 509 } 510 // Set the parent. Pass the current instance so we can do the c razy checks above and assess errors.510 // Set the parent. Pass the current instance so we can do the checks above and assess errors. 511 511 $this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template : $this->theme_root, $this ); 512 512 } 513 513 -
src/wp-includes/class-wp-xmlrpc-server.php
6939 6939 return $this->pingback_error( 48, __( 'The pingback has already been registered.' ) ); 6940 6940 } 6941 6941 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 */ 6943 6955 sleep( 1 ); 6944 6956 6945 6957 $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] ); -
src/wp-includes/shortcodes.php
504 504 $element = preg_replace_callback( "/$pattern/", 'do_shortcode_tag', $element ); 505 505 } 506 506 507 // Looks like we found some crazyunfiltered HTML. Skipping it for confidence.507 // Looks like we found some unexpected unfiltered HTML. Skipping it for confidence. 508 508 $element = strtr( $element, $trans ); 509 509 continue; 510 510 } -
src/wp-includes/theme.php
2789 2789 * the constant is always accurate (and is not defined later, overriding our value). 2790 2790 * As stated above, the first value wins. 2791 2791 * 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. 2793 2793 */ 2794 2794 2795 2795 if ( defined( 'NO_HEADER_TEXT' ) ) {