bug : unnecessary/undesirable ajax request?
-
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 tojQuery.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 ) { ...
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘bug : unnecessary/undesirable ajax request?’ is closed to new replies.