WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Meta import fails (2 posts)

  1. gjhowie
    Member
    Posted 5 years ago #

    Version 1.1.0 - Importing the meta data will fail if an Apostrophe is present in the caption or description.

    Nextgen gallery is great, but this problem is a real pain! Is it possible to escape or enclose the apostrophe to allow the meta to be imported correctly?

  2. gjhowie
    Member
    Posted 5 years ago #

    It looks like this can be fixed by modifying the admin/functions.php as follows:-

    Within the function import_MetaData, insert the following lines immediately before the update database line:

    $alttext = addslashes($alttext);
    $description = addslashes($description);

    Apostrophes appear to work correctly now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.