diff --git a/lib/Newsletter/Editor/PostContentManager.php b/lib/Newsletter/Editor/PostContentManager.php index 8169263b8d..3e0f55a2e8 100644 --- a/lib/Newsletter/Editor/PostContentManager.php +++ b/lib/Newsletter/Editor/PostContentManager.php @@ -39,9 +39,9 @@ class PostContentManager { if ($this->wp->hasExcerpt($post)) { return self::stripShortCodes($this->wp->getTheExcerpt($post)); } - return $this->generateExcerpt($this->wp->getTheContent(null, false, $post)); + return $this->generateExcerpt($post->post_content); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps } - return self::stripShortCodes($this->wp->getTheContent(null, false, $post)); + return self::stripShortCodes($post->post_content); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps } public function filterContent($content, $displayType, $withPostClass = true) { diff --git a/lib/WP/Functions.php b/lib/WP/Functions.php index e6855b47dd..580f4b741c 100644 --- a/lib/WP/Functions.php +++ b/lib/WP/Functions.php @@ -729,10 +729,6 @@ class Functions { _deprecated_hook($hook_name, $version, $replacement, $message); } - public function getTheContent($moreLinkText = null, $stripTeaser = false, $post = null) { - return get_the_content($moreLinkText, $stripTeaser, $post); - } - public function getTheExcerpt($post = null) { return get_the_excerpt($post); }