Support » Plugins and Hacks » [Plugin: Subheading] breaks on punctuation

[Plugin: Subheading] breaks on punctuation

  • 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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 :).

    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.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Subheading] breaks on punctuation’ is closed to new replies.