Support » Plugin: Shortcoder » UI: Displaying sample shortcode not complete

  • Resolved bkjproductions


    When you create a shortcode, on the right at the top, it shows you what the shortcode will be. However, for me, at least, it is not showing the ending quote nor the closing square bracket. (See sample screenshot.)

    Perhaps the input class sc_copy_field should use single quotes to wrap the value, since double quotes are used?

    Line 445 of sc-admin.php, I see that esc_attr() is being used but it may be simpler to just use single quotes for the value.

    <input type="text" value=' . "'". esc_attr( self::get_shortcode( $sc_name ) ) . "'" . '...

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author vaakash


    Hi @bkjproductions,

    Sorry for the late reply. Yes the copy field box is small so the text is seen half.

    But the full shortcode can be copied.
    Just click the box to select the text and right click copy it.

    Regarding esc_attr() is the recommended way to set any value for a HTML attribute.

Viewing 1 replies (of 1 total)
  • The topic ‘UI: Displaying sample shortcode not complete’ is closed to new replies.