mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Docs: Various docblock corrections.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1393,7 +1393,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||
* @type bool $feeds Whether the feed permastruct should be built for this post type.
|
||||
* Default is value of $has_archive.
|
||||
* @type bool $pages Whether the permastruct should provide for pagination. Default true.
|
||||
* @type const $ep_mask Endpoint mask to assign. If not specified and permalink_epmask is set,
|
||||
* @type int $ep_mask Endpoint mask to assign. If not specified and permalink_epmask is set,
|
||||
* inherits from $permalink_epmask. If not specified and permalink_epmask
|
||||
* is not set, defaults to EP_PERMALINK.
|
||||
* }
|
||||
@@ -2334,8 +2334,8 @@ function is_sticky( $post_id = 0 ) {
|
||||
*
|
||||
* @param object|WP_Post|array $post The post object or array
|
||||
* @param string $context Optional. How to sanitize post fields.
|
||||
* Accepts 'raw', 'edit', 'db', or 'display'.
|
||||
* Default 'display'.
|
||||
* Accepts 'raw', 'edit', 'db', 'display',
|
||||
* 'attribute', or 'js'. Default 'display'.
|
||||
* @return object|WP_Post|array The now sanitized post object or array (will be the
|
||||
* same type as `$post`).
|
||||
*/
|
||||
@@ -2507,9 +2507,9 @@ function sanitize_post_field( $field, $value, $post_id, $context = 'display' ) {
|
||||
*
|
||||
* @param mixed $value Value of the prefixed post field.
|
||||
* @param int $post_id Post ID.
|
||||
* @param string $context Context for how to sanitize the field. Possible
|
||||
* values include 'edit', 'display',
|
||||
* 'attribute' and 'js'.
|
||||
* @param string $context Context for how to sanitize the field.
|
||||
* Accepts 'raw', 'edit', 'db', 'display',
|
||||
* 'attribute', or 'js'. Default 'display'.
|
||||
*/
|
||||
$value = apply_filters( "{$field}", $value, $post_id, $context );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user