• Resolved wizzud

    (@wizzud)


    With reference to WP Photo Album Plus v6.4.11 : js/wppa.js, line 279, tests for being “allowed and capable to ajax” using…

    // Are we allowed and capable to ajax?
    if ( wppaAllowAjax && jQuery.ajax() ) {
    	wppaCanAjaxRender = true;
    }

    If wppaAllowAjax is true then the call to jQuery.ajax() results in a totally unnecessary ajax retrieval of the current page!

    I don’t believe that it is necessary for the test to call jQuery’s ajax function, surely it only needs to check that the function exists, eg…

    // Are we allowed and capable to ajax?
    if ( wppaAllowAjax && jQuery.ajax ) {
    ...

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I thank you on my bare knees from the bottom of my heart that you finally discovered the cause of a bug that causes ‘unexplainable’ reloads.

    This issue has been brain-breaking to me for years. I will fix it as you suggested in the next version. It will surely improve performance.

    Once again:

    TNANK YOU!

    Thread Starter wizzud

    (@wizzud)

    You’re welcome.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Fixed 6.4.12, May 14 2016

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bug : unnecessary/undesirable ajax request?’ is closed to new replies.