This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.proxyGet = function ( url, callback, options ) { | |
// reject anything that doesn't resemble a "plain" URL or a null (see below) | |
if (! (url === null || /^(https?:|\/\/)/.test(url))) { | |
throw new SyntaxError('Expected a URL.'); | |
} | |
// allow detection of current SSL mode by starting the url with '//' | |
if (url && url.indexOf('//') === 0) { | |
url = window.location.protocol + url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
'date_format' => get_option('date_format'), | |
'count' => 10, | |
'shuffle' => 0, | |
'sort' => null, | |
//... | |
else | |
return garees_flickr_feed_error("please enter your flickr-api-key in the settings!"); | |
$amount = $shuffle >= $count ? $shuffle : $count; |
NewerOlder