[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/plugins/akismet/_inc/ -> akismet.js (summary)

(no description)

File Size: 421 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  retryMshotUntilLoaded()
  preloadMshotsInViewport()
  akismet_check_for_spam()
  akismet_enable_comment_author_url_removal()
  akismet_mshot_url()
  akismet_preload_mshot()

Functions
Functions that are not part of a class:

retryMshotUntilLoaded()   X-Ref
The way mShots works is if there was no screenshot already recently generated for the URL,
it returns a "loading..." image for the first request. Then, some subsequent request will
receive the actual screenshot, but it's unknown how long it will take. So, what we do here
is continually re-request the mShot, waiting a second after every response until we get the
actual screenshot.


preloadMshotsInViewport()   X-Ref
No description

akismet_check_for_spam(offset, limit)   X-Ref
No description

akismet_enable_comment_author_url_removal()   X-Ref
No description

akismet_mshot_url( linkUrl, retry )   X-Ref
Generate an mShot URL if given a link URL.

param: string linkUrl
param: int retry If retrying a request, the number of the retry.
return: string The mShot URL;

akismet_preload_mshot( linkUrl )   X-Ref
Begin loading an mShot preview of a link.

param: string linkUrl



Generated: Sun Nov 24 01:00:02 2024 Cross-referenced by PHPXref 0.7.1