From 6e68b0dac5ab27e207c3686b3517108da6a8cc48 Mon Sep 17 00:00:00 2001 From: Josh Darby Date: Mon, 17 Jun 2019 12:28:53 -0400 Subject: [PATCH 1/3] Switched `$post` to `get_post()` in top-stories.php template since... `$post` was returning `undefined`. --- homepages/templates/top-stories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepages/templates/top-stories.php b/homepages/templates/top-stories.php index cbbe0f420..7a60eaeaa 100644 --- a/homepages/templates/top-stories.php +++ b/homepages/templates/top-stories.php @@ -70,7 +70,7 @@ } ?>

- +

From e5b31e4c410dbfe6b9d1349d2763f21834330e67 Mon Sep 17 00:00:00 2001 From: Josh Darby Date: Mon, 17 Jun 2019 12:38:26 -0400 Subject: [PATCH 2/3] Updated changelog to reflect undefined variable fix --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 298a970eb..75b91cebf 100644 --- a/changelog.md +++ b/changelog.md @@ -20,6 +20,7 @@ though this project doesn't succeed in adhering to [Semantic Versioning](https:/ - Fixes a `ReferenceError` in navigation menu JavaScript. [Pull request #1715](https://github.com/INN/largo/pull/1715) for [issue #1714](https://github.com/INN/largo/issues/1714). - Fixes an undefined variable error in certain edge cases of the site `og:description` and `description` meta tags. [Pull request #1724](https://github.com/INN/largo/pull/1724) for [issue #1721](https://github.com/INN/largo/issues/1721). - Co-Authors Plus profile field descriptions no longer contain escaped HTML. [Pull request #1726](https://github.com/INN/largo/pull/1726) for [issue #1720](https://github.com/INN/largo/issues/1720). +- Fixes a `Undefined variable: post` error in `homepage/templates/top-stories.php` on line 73. [Pull request #1728](https://github.com/INN/largo/pull/1728) for [issue #1723](https://github.com/INN/largo/issues/1723). ## [Largo 0.6.3](https://github.com/INN/largo/compare/v0.6.2...v0.6.3) From 7f41060307ac58a0835934548312c15c4eef816e Mon Sep 17 00:00:00 2001 From: Josh Darby Date: Tue, 18 Jun 2019 09:25:59 -0400 Subject: [PATCH 3/3] Fixed one more undefined $post in homepages/templates/top-stories.php --- changelog.md | 2 +- homepages/templates/top-stories.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 75b91cebf..8b35e7c1c 100644 --- a/changelog.md +++ b/changelog.md @@ -20,7 +20,7 @@ though this project doesn't succeed in adhering to [Semantic Versioning](https:/ - Fixes a `ReferenceError` in navigation menu JavaScript. [Pull request #1715](https://github.com/INN/largo/pull/1715) for [issue #1714](https://github.com/INN/largo/issues/1714). - Fixes an undefined variable error in certain edge cases of the site `og:description` and `description` meta tags. [Pull request #1724](https://github.com/INN/largo/pull/1724) for [issue #1721](https://github.com/INN/largo/issues/1721). - Co-Authors Plus profile field descriptions no longer contain escaped HTML. [Pull request #1726](https://github.com/INN/largo/pull/1726) for [issue #1720](https://github.com/INN/largo/issues/1720). -- Fixes a `Undefined variable: post` error in `homepage/templates/top-stories.php` on line 73. [Pull request #1728](https://github.com/INN/largo/pull/1728) for [issue #1723](https://github.com/INN/largo/issues/1723). +- Fixes multiple `Undefined variable: post` errors in `homepage/templates/top-stories.php`. [Pull request #1728](https://github.com/INN/largo/pull/1728) for [issue #1723](https://github.com/INN/largo/issues/1723). ## [Largo 0.6.3](https://github.com/INN/largo/compare/v0.6.2...v0.6.3) diff --git a/homepages/templates/top-stories.php b/homepages/templates/top-stories.php index 7a60eaeaa..fe64dcc6b 100644 --- a/homepages/templates/top-stories.php +++ b/homepages/templates/top-stories.php @@ -29,7 +29,7 @@

- +