Title Check: Avoid Deprecated warnings when there's no file contents.#482
Title Check: Avoid Deprecated warnings when there's no file contents.#482
Conversation
|
I believe this closes #476 ? The PR did not solve the whole problem, I am seeing: |
Check that file_content is a string, both before and after the preg_replace.
|
Copilot changed it to Testing instructions:
|
|
There is an alternative PR that adds the is_string check to the if statement: https://github.com/WordPress/theme-check/pull/477/changes |
|
Note that with the SVG title being fixed in dfbfafd Astra cannot be used to test this anymore, the PHP warning has already been fixed. We should still fix this, we will need another theme to test on. |
Not 100% sure how this is happening, but seems like a quick win to avoid unnecessary processing and break early.