Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bmellor

    (@bmellor)

    bug fixed

    Thread Starter bmellor

    (@bmellor)

    Stating that issue is outside the scope of the plugin is not actually a “resolution.” I’m not sure what is referred to by a “standard WordPress admin.” I am not able to find this reference in the documentation.

    If readers are interested in an actual resolution, it can be had by adding something to the effect of attach_list = Query(document).find('#attachments_list'); as the first line of the attachments_handle_attach function, and then replacing the four references to top.document that appear in the attachments_handle_attach function with the variable attach_list that you just created.

    In this manner, the script will successfully locate the attachments wherever they might appear within the DOM, and not blindly assume that they are in top.document.

    The entire attachments.js from version 1.6.1 of the attachments plugin is reproduced here with the suggested changes. It has been reformatted with an emphasis on comprehensibility.

    [162 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)