• Resolved bolint

    (@bolint)


    Hi,

    It would be great if the plugin can use some method to prevent WP shortcode error like: Notice: add_shortcode was called incorrectly. Invalid shortcode name: . Do not use spaces or reserved characters: & / < > [ ]
    For now, I modified the code in the Shortcode.php line 39:
    str_replace(array(' ', '&', '/', '<', '>', '[', ']'), '-', $snippet['title']),

    Thanks a lot!

    https://wordpress.org/plugins/post-snippets/

  • The topic ‘Preventing shortcode error’ is closed to new replies.