July 28, 2017 · WordPress Web PHP

Bug fixing translation WP_Globus manual excerpt crash

Bug fix on missing post translation due to manual excerpt

Add the +

---
 public_html/wp-includes/post-template.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/public_html/wp-includes/post-template.php b/public_html/wp-includes/post-template.php
index 701af8d..2edfea9 100644
--- a/public_html/wp-includes/post-template.php
+++ b/public_html/wp-includes/post-template.php
@@ -285,6 +285,13 @@ function get_the_content( $more_link_text = null, $strip_teaser = false ) {
                $page = count( $pages ); // give them the highest numbered page that DOES exist

        $content = $pages[$page - 1];
+    /**
+     * Bug Fix on missing post translation
+     */
+    if ( class_exists( 'WPGlobus' ) ) {
+        $content = WPGlobus_Filters::filter__text($content);
+    }
+
        if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
                $content = explode( $matches[0], $content, 2 );
                if ( ! empty( $matches[1] ) && ! empty( $more_link_text ) )