Make WordPress Core

Ticket #55068: 55068.diff

File 55068.diff, 2.2 KB (added by rafiahmedd, 4 years ago)

Here I fixed these typos

  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index 5377f4eaee..90b0417b27 100644
    a b function get_extended( $post ) { 
    973973 *
    974974 * @global WP_Post $post Global post object.
    975975 *
    976  * @param int|WP_Post|null $post   Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values
     976 * @param int|WP_Post|null $post   Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsy values
    977977 *                                 return the current global post inside the loop. A numerically valid post ID that
    978978 *                                 points to a non-existent post returns `null`. Defaults to global $post.
    979979 * @param string           $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
    function is_post_type_viewable( $post_type ) { 
    22772277         * The returned filtered value must be a boolean type to ensure
    22782278         * `is_post_type_viewable()` only returns a boolean. This strictness
    22792279         * is by design to maintain backwards-compatibility and guard against
    2280          * potential type errors in PHP 8.1+. Non-boolean values (even falsey
     2280         * potential type errors in PHP 8.1+. Non-boolean values (even falsy
    22812281         * and truthy values) will result in the function returning false.
    22822282         *
    22832283         * @since 5.9.0
    function is_post_type_viewable( $post_type ) { 
    22912291/**
    22922292 * Determine whether a post status is considered "viewable".
    22932293 *
    2294  * For built-in post statuses such as publish and private, the 'public' value will be evaluted.
     2294 * For built-in post statuses such as publish and private, the 'public' value will be evaluated.
    22952295 * For all others, the 'publicly_queryable' value will be used.
    22962296 *
    22972297 * @since 5.7.0
    function is_post_status_viewable( $post_status ) { 
    23242324         * The returned filtered value must be a boolean type to ensure
    23252325         * `is_post_status_viewable()` only returns a boolean. This strictness
    23262326         * is by design to maintain backwards-compatibility and guard against
    2327          * potential type errors in PHP 8.1+. Non-boolean values (even falsey
     2327         * potential type errors in PHP 8.1+. Non-boolean values (even falsy
    23282328         * and truthy values) will result in the function returning false.
    23292329         *
    23302330         * @since 5.9.0