A WordPress plugin to make it easy to collect links from around the web, turn them into roundup posts and streamline the production of daily/weekly roundup newsletters using MailChimp. Built and maintained by INN Labs.
This PR passes the expected $post to the_except() function in SavedLinks, to prevent errors.
Why
This PR is to fix an issue I noticed when using the Link Roundups plugin with a theme that was not Largo. If you run a search that returns a Saved Link CPT, it throws an error.
For #185
Testing/Questions
Features that this PR affects:
Saved Links CPT
Questions that need to be answered before merging:
[x] Is this PR targeting the correct branch in this repository?
(I believe so, but please let me know if it's not!)
Steps to test this PR:
On a test site, apply a theme that is not Largo -- a good bet is one of the default themes, like Twenty Twenty.
If you don't have any, add at least one "Saved Link"
Run a search on the front-end of the site; note that you get an error:
Apply the PR.
Confirm that the error is now gone, and the search results are displaying as expected:
Additional information
INN Member/Labs Client requesting: (if applicable)
Changes
This PR passes the expected
$post
tothe_except()
function inSavedLinks
, to prevent errors.Why
This PR is to fix an issue I noticed when using the Link Roundups plugin with a theme that was not Largo. If you run a search that returns a Saved Link CPT, it throws an error.
For #185
Testing/Questions
Features that this PR affects:
Questions that need to be answered before merging:
(I believe so, but please let me know if it's not!)
Steps to test this PR:
Additional information
INN Member/Labs Client requesting: (if applicable)