• Resolved mngallery

    (@mngallery)


    There is a javascript execution error related to $selector_js and $title_js in hpt_hptheadinsert()

    For example: “echo esc_js( $title_js )” emits quotes as “"Page Title"” which results in invalid javascript when assigning a value to var titleText

    Emitting $title_js without a call to esc_js() results in valid javascript.

    Tested only with Firefox.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arjun Thakur

    (@arjunthakur)

    Hi @mngallery thank you for the details. Will check this scenario.

    Can you confirm if you are facing this issue in the latest v1.6.2 ?

            <!-- Hide Page Title -->
            <script type="text/javascript">
            (function () {
                'use strict';
    
                function hptHideTitle() {
                    var selector = &quot;.entry-title&quot;;
                    var titleText = &quot;AI fu00f6r ekonomer&quot;;
                    var target = null;
    
                    if (selector) {
                        try {
                            target = document.querySelector(selector);
                        } catch (e) {
                            target = null;
                        }
                    }

    Version 1.6.2

    • This reply was modified 1 week, 5 days ago by pmerkland.
    Plugin Author Arjun Thakur

    (@arjunthakur)

    @mngallery @pmerkland We have fixed the JavaScript compatibility issue affecting some browsers, including Firefox.
    The fix is included in version 1.6.3. Please update to the latest version and check again.

    If you still experience the issue after updating to 1.6.3, please let us know your browser version so we can investigate further.

    I can confirm version 1.6.3 have fixed the issue for us. Thanks!

    Plugin Author Arjun Thakur

    (@arjunthakur)

    Thanks for confirmation.

    @pmerkland if you can write a review for us that would be really helpful for us. https://wordpress.org/support/plugin/hide-page-and-post-title/reviews/#new-post

    • This reply was modified 5 days, 21 hours ago by Arjun Thakur.
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.