Ticket #49376: 49376.diff
| File 49376.diff, 3.4 KB (added by , 6 years ago) |
|---|
-
phpcs.xml.dist
270 270 </properties> 271 271 </rule> 272 272 273 <!-- Enforce no parenthesis for language constructs, and only one space immediately after. 274 Including this rule is temporary until it is moved from the WordPress-Extra ruleset to 275 the WordPress-Core ruleset upstream. 276 --> 277 <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> 278 273 279 <!-- Assignments in while conditions are a valid method of looping over iterables. --> 274 280 <rule ref="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"> 275 281 <exclude-pattern>*</exclude-pattern> -
src/wp-admin/includes/meta-boxes.php
427 427 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Move to Trash' ) . '</a>'; 428 428 } else { 429 429 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 430 echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . '</a>';430 echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . '</a>'; 431 431 } 432 432 } 433 433 ?> -
src/wp-admin/includes/translation-install.php
21 21 require ABSPATH . WPINC . '/version.php'; 22 22 23 23 if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) { 24 return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );24 return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) ); 25 25 } 26 26 27 27 /** -
src/wp-includes/functions.php
5200 5200 function is_lighttpd_before_150() { 5201 5201 $server_parts = explode( '/', isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : '' ); 5202 5202 $server_parts[1] = isset( $server_parts[1] ) ? $server_parts[1] : ''; 5203 return 'lighttpd' == $server_parts[0] && -1 == version_compare( $server_parts[1], '1.5.0' );5203 return 'lighttpd' == $server_parts[0] && -1 == version_compare( $server_parts[1], '1.5.0' ); 5204 5204 } 5205 5205 5206 5206 /** -
src/wp-includes/shortcodes.php
258 258 // Also, see shortcode_unautop() and shortcode.js. 259 259 260 260 // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation 261 return 262 '\\[' // Opening bracket. 261 return '\\[' // Opening bracket. 263 262 . '(\\[?)' // 1: Optional second opening bracket for escaping shortcodes: [[tag]]. 264 263 . "($tagregexp)" // 2: Shortcode name. 265 264 . '(?![\\w-])' // Not followed by word character or hyphen.