Fix notices from an undefined post variable#104
Fix notices from an undefined post variable#104srtfisher wants to merge 5 commits intoAutomattic:developfrom
Conversation
|
Hey there, thanks for the contribution and sorry for the delay in a response. While the code change itself looks reasonable (and safer), would you mind providing testing instructions? I'm having trouble reproducing the original issue on the main branch. Pages set with a custom taxonomy seem to be working fine for me. Are you doing something differently? Is it on the taxonomy preview page and the full page content is being displayed instead of a summary? My main concern here is I'd like to provide defaults for the values that are not having any values set (ex Also, I don't think we want to introduce a composer.json, so would you mind excluding it from the PR? Thanks! |
|
@jgcaruso because |
Hey there, just want to let you know I'm no longer with Automattic so I don't have merge privileges anymore. Wish I could be more helpful here, but I don't know who to direct this to now. |
|
@jgcaruso thanks for the heads up! I figure somebody someday will get to it. Perhaps @GaryJones ? |
|
Hey @srtfisher, thanks for this contribution and for your patience while this PR has been waiting! The fix makes sense - on taxonomy archives and other contexts where I do want to flag one consideration before merging: with these guard clauses, when A couple of options come to mind:
What's your experience been on NYPost? Are you using the rating shortcode on taxonomy pages with explicit Thanks again for the fix! |
Fixes notices from the shortcode when used on taxonomy pages (which do not have a
$postset):Changes proposed in this Pull Request:
Testing instructions:
Screenshot / Video
Proposed changelog entry for your changes: