Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions src/wp-includes/formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Becomes:
*
* ’cause today’s effort makes it worth tomorrow’s “holiday” …
*
*f
* Code within certain HTML blocks are skipped.
*
* Do not use this function before the {@see 'init'} action hook; everything will break.
Expand Down Expand Up @@ -5588,18 +5588,13 @@
* @return string Sanitized string.
*/
function sanitize_text_field( $str ) {
$filtered = _sanitize_text_fields( $str, false );
if ( ! is_string( $str ) ) {

Check failure on line 5591 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Line indented incorrectly; expected 1 tabs, found 1 spaces
return '';

Check failure on line 5592 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 5593 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed

/**
* Filters a sanitized text field string.
*
* @since 2.9.0
*
* @param string $filtered The sanitized string.
* @param string $str The string prior to being sanitized.
*/
return apply_filters( 'sanitize_text_field', $filtered, $str );
}
$filtered = _sanitize_text_fields( $str, false );

Check failure on line 5595 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
return apply_filters( 'sanitize_text_field', $filtered, $str );

Check failure on line 5596 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 5597 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Whitespace found at end of line

Check failure on line 5597 in src/wp-includes/formatting.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Spaces must be used for mid-line alignment; tabs are not allowed

/**
* Sanitizes a multiline string from user input or from the database.
Expand Down
Loading