mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1476,7 +1476,7 @@ function register_post_type( $post_type, $args = array() ) {
|
||||
* @global array $wp_post_types List of post types.
|
||||
*
|
||||
* @param string $post_type Post type to unregister.
|
||||
* @return bool|WP_Error True on success, WP_Error on failure or if the post type doesn't exist.
|
||||
* @return true|WP_Error True on success, WP_Error on failure or if the post type doesn't exist.
|
||||
*/
|
||||
function unregister_post_type( $post_type ) {
|
||||
global $wp_post_types;
|
||||
@@ -5060,7 +5060,7 @@ function get_enclosed( $post_id ) {
|
||||
* @since 4.7.0 `$post_id` can be a WP_Post object.
|
||||
*
|
||||
* @param int|WP_Post $post_id Post ID or object.
|
||||
* @return bool|string[] Array of URLs already pinged for the given post, false if the post is not found.
|
||||
* @return false|string[] Array of URLs already pinged for the given post, false if the post is not found.
|
||||
*/
|
||||
function get_pung( $post_id ) {
|
||||
$post = get_post( $post_id );
|
||||
@@ -6116,7 +6116,7 @@ function wp_get_attachment_metadata( $attachment_id = 0, $unfiltered = false ) {
|
||||
*
|
||||
* @param int $attachment_id Attachment post ID.
|
||||
* @param array $data Attachment meta data.
|
||||
* @return int|bool False if $post is invalid.
|
||||
* @return int|false False if $post is invalid.
|
||||
*/
|
||||
function wp_update_attachment_metadata( $attachment_id, $data ) {
|
||||
$attachment_id = (int) $attachment_id;
|
||||
|
||||
Reference in New Issue
Block a user