Changeset 49544 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/09/2020 03:13:56 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49496 r49544 2324 2324 2325 2325 /** 2326 * Sanitize every post field.2326 * Sanitizes every post field. 2327 2327 * 2328 2328 * If the context is 'raw', then the post object or array will get minimal … … 2333 2333 * @see sanitize_post_field() 2334 2334 * 2335 * @param object|WP_Post|array $post The Post Object or Array2335 * @param object|WP_Post|array $post The post object or array 2336 2336 * @param string $context Optional. How to sanitize post fields. 2337 2337 * Accepts 'raw', 'edit', 'db', or 'display'. 2338 2338 * Default 'display'. 2339 * @return object|WP_Post|array The now sanitized Post Object or Array (will be the2340 * same type as $post).2339 * @return object|WP_Post|array The now sanitized post object or array (will be the 2340 * same type as `$post`). 2341 2341 */ 2342 2342 function sanitize_post( $post, $context = 'display' ) {
Note: See TracChangeset
for help on using the changeset viewer.