Skip to content

In get_the_company_logo(): make sure $post exists#2897

Open
azaozz wants to merge 1 commit intoAutomattic:trunkfrom
azaozz:fix/PHP-warning-in-statistics-backend
Open

In get_the_company_logo(): make sure $post exists#2897
azaozz wants to merge 1 commit intoAutomattic:trunkfrom
azaozz:fix/PHP-warning-in-statistics-backend

Conversation

@azaozz
Copy link
Contributor

@azaozz azaozz commented Sep 4, 2025

Fixes #2894.

Changes Proposed in this Pull Request

Ensure $post exists before using it in get_the_company_logo(). It may not exist if an invalid post ID was passed, or when the function was called without a post ID outside the loop.

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.

Job Statistics Backend: PHP warning

1 participant