Changeset 49789 for trunk/src/wp-includes/post.php
- Timestamp:
- 12/10/2020 11:51:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49731 r49789 1394 1394 * Default is value of $has_archive. 1395 1395 * @type bool $pages Whether the permastruct should provide for pagination. Default true. 1396 * @type const$ep_mask Endpoint mask to assign. If not specified and permalink_epmask is set,1396 * @type int $ep_mask Endpoint mask to assign. If not specified and permalink_epmask is set, 1397 1397 * inherits from $permalink_epmask. If not specified and permalink_epmask 1398 1398 * is not set, defaults to EP_PERMALINK. … … 2335 2335 * @param object|WP_Post|array $post The post object or array 2336 2336 * @param string $context Optional. How to sanitize post fields. 2337 * Accepts 'raw', 'edit', 'db', or 'display'.2338 * Default 'display'.2337 * Accepts 'raw', 'edit', 'db', 'display', 2338 * 'attribute', or 'js'. Default 'display'. 2339 2339 * @return object|WP_Post|array The now sanitized post object or array (will be the 2340 2340 * same type as `$post`). … … 2508 2508 * @param mixed $value Value of the prefixed post field. 2509 2509 * @param int $post_id Post ID. 2510 * @param string $context Context for how to sanitize the field. Possible2511 * values include 'edit', 'display',2512 * 'attribute' and 'js'.2510 * @param string $context Context for how to sanitize the field. 2511 * Accepts 'raw', 'edit', 'db', 'display', 2512 * 'attribute', or 'js'. Default 'display'. 2513 2513 */ 2514 2514 $value = apply_filters( "{$field}", $value, $post_id, $context );
Note: See TracChangeset
for help on using the changeset viewer.