Make WordPress Core

Ticket #57069: 57069.12.patch

File 57069.12.patch, 2.6 KB (added by upadalavipul, 21 months ago)
  • wp-includes/blocks/calendar.php

     
    77
    88/**
    99 * Renders the `core/calendar` block on server.
     10 *
     11 * @global int $monthnum    Month number..
     12 * @global int $year        Year number.
    1013 *
    1114 * @param array $attributes The block attributes.
    1215 *
     
    97100/**
    98101 * Queries the database for any published post and saves
    99102 * a flag whether any published post exists or not.
     103 *
     104 * @global wpdb $wpdb WordPress database abstraction object.
    100105 *
    101106 * @return bool Has any published posts or not.
    102107 */
  • wp-includes/blocks/comments.php

     
    1515 * As this callback will always run during SSR, first we need to check whether
    1616 * the block is in legacy mode. If not, the HTML generated in the editor is
    1717 * returned instead.
     18 *
     19 * @global WP_Post $post Global post object.
    1820 *
    1921 * @param array    $attributes Block attributes.
    2022 * @param string   $content    Block default content.
  • wp-includes/blocks/latest-comments.php

     
    2121 *    so duplicating it isn't too terrible.
    2222 *
    2323 * @since 3.3.0
     24 *
     25 * @global WP_Post $post Global post object.
    2426 *
    2527 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
    2628 * @return string The post title if set; "(no title)" if no title is set.
  • wp-includes/blocks/latest-posts.php

     
    1717/**
    1818 * Callback for the excerpt_length filter used by
    1919 * the Latest Posts block at render time.
     20 *
     21 * @global int $block_core_latest_posts_excerpt_length
    2022 *
    2123 * @return int Returns the global $block_core_latest_posts_excerpt_length variable
    2224 *             to allow the excerpt_length filter respect the Latest Block setting.
     
    2830
    2931/**
    3032 * Renders the `core/latest-posts` block on server.
     33 *
     34 * @global WP_Post $post Global post object.
     35 * @global int $block_core_latest_posts_excerpt_length.
    3136 *
    3237 * @param array $attributes The block attributes.
    3338 *