Make WordPress Core


Ignore:
Timestamp:
02/18/2026 04:46:25 PM (3 months ago)
Author:
westonruter
Message:

Themes: Fix type issues in core themes and remove PHPStan suppression comments.

Developed in https://github.com/WordPress/wordpress-develop/pull/10951

Props westonruter, sabernhardt, justlevine.
See #64238, #61175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php

    r61643 r61676  
    3030 * @param array $args    Arguments for displaying the site logo either as an image or text.
    3131 * @param bool  $display Display or return the HTML.
    32  * @return string Compiled HTML based on our arguments.
     32 * @return string|void Compiled HTML based on our arguments.
    3333 */
    3434function twentytwenty_site_logo( $args = array(), $display = true ) {
     
    108108 *
    109109 * @param bool $display Display or return the HTML.
    110  * @return string The HTML to display.
     110 * @return string|void The HTML to display.
    111111 */
    112112function twentytwenty_site_description( $display = true ) {
     
    250250 * @param int    $post_id  The ID of the post.
    251251 * @param string $location The location where the meta is shown.
    252  * @return string Post meta HTML.
     252 * @return string|void Post meta HTML.
    253253 */
    254254function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) {
Note: See TracChangeset for help on using the changeset viewer.