Changeset 47207
- Timestamp:
- 02/07/2020 07:14:29 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r47122 r47207 170 170 171 171 <!-- Whitelist the I18n functions file from issues identified by the I18n sniff 172 (such as calling the low-level translate() function). -->172 (such as calling the low-level translate() function). --> 173 173 <rule ref="WordPress.WP.I18n"> 174 174 <exclude-pattern>/src/wp-includes/l10n\.php</exclude-pattern> … … 190 190 191 191 <!-- Exclude checking of line endings when reporting errors, but fix them when running phpcbf. 192 Git and SVN manage these pretty well cross-platform as "native".193 Whitelist configuration files. -->192 Git and SVN manage these pretty well cross-platform as "native". 193 Whitelist configuration files. --> 194 194 <rule ref="Generic.Files.LineEndings"> 195 195 <exclude-pattern>/wp-config\.php</exclude-pattern> … … 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="PEAR.Files.IncludingFile.BracketsNotRequired"> 278 <type>warning</type> 279 </rule> 280 <rule ref="PEAR.Files.IncludingFile.UseRequire"> 281 <type>warning</type> 282 </rule> 283 <rule ref="PEAR.Files.IncludingFile.UseRequireOnce"> 284 <type>warning</type> 285 </rule> 286 <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> 287 273 288 <!-- Assignments in while conditions are a valid method of looping over iterables. --> 274 289 <rule ref="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"> -
trunk/src/wp-admin/includes/meta-boxes.php
r47119 r47207 428 428 } else { 429 429 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 430 echo 430 echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . '</a>'; 431 431 } 432 432 } -
trunk/src/wp-admin/includes/translation-install.php
r47198 r47207 22 22 23 23 if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) { 24 return 24 return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) ); 25 25 } 26 26 -
trunk/src/wp-includes/functions.php
r47198 r47207 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 5203 return 'lighttpd' == $server_parts[0] && -1 == version_compare( $server_parts[1], '1.5.0' ); 5204 5204 } 5205 5205 -
trunk/src/wp-includes/shortcodes.php
r47122 r47207 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.
Note: See TracChangeset
for help on using the changeset viewer.