Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix title retrieval #24

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Fix title retrieval #24

merged 1 commit into from
Jun 21, 2023

Conversation

szepeviktor
Copy link
Contributor

@szepeviktor szepeviktor commented Apr 29, 2022

As wp_title() ends with

    // Send it out.
    if ( $display ) {
        echo $title;
    } else {
        return $title;
    }

https://developer.wordpress.org/reference/functions/wp_title/

Discovered by @phpstan, see #16

@rasmuswinter rasmuswinter merged commit a6cee26 into outlandishideas:v3 Jun 21, 2023
@szepeviktor szepeviktor deleted the patch-1 branch June 21, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants