WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Subheading] breaks on punctuation (4 posts)

  1. achellios
    Member
    Posted 4 years ago #

    Trying out the Subheading plugin for the first time. I have a blogger who uses quotation marks frequently in headlines--if they are used in the subheading, the subhead truncates at the first quotation mark.

    Example--the following subheadline:

    New Research Uncovers Massive Errors in "Perfect Science"

    is reduced to the following after saving the post:

    New Research Uncovers Massive Errors in

    Haven't had time to take a crack at this yet, but hopefully tomorrow I'll be able to work on a solution, unless the plugin creator is super speedy and beats me to it. :)

    Excellent plugin otherwise. Thanks much!

  2. achellios
    Member
    Posted 4 years ago #

    Got it!

    In panel.php, update the last line to:

    <input type="text" autocomplete="off" id="wp_subheading" name="wpsh_value" value="<?=htmlentities(wpsh_value())?>" />

    It works for apostrophes and quotation marks in the string now.

  3. Steve
    Member
    Posted 4 years ago #

    Hi achellios,

    Applied this fix, made a few other adjustments and tagged it as version 0.2.3.

    I then realised I was double encoding the values, so had to fix that in version 0.2.4!

    Many thanks for spotting this issue and using the plugin :).

  4. pinkypillz
    Member
    Posted 4 years ago #

    hi achellios,

    i have problems with punctuation error for example when i write
    john's book and saved it, it becomes john''''s book . please tell me how to solve this.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic