I hereby claim:
- I am spenserhale on github.
- I am spenserhale (https://keybase.io/spenserhale) on keybase.
- I have a public key ASBk6vHu6G-HbBUhey9uB5X-f5Hje-GWDiW6UBcvnkHQIAo
To claim this, I am signing this object:
/** | |
* Deletes all current site transients. (Blog not Network) | |
* | |
* @return array{ deleted: string[], errored: string[] } An array of successfully and failed to delete transients. | |
*/ | |
function delete_transients(): array | |
{ | |
if (wp_using_ext_object_cache()) { | |
global $wp_object_cache; |
# Adjust the following variables as necessary | |
REMOTE=origin | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
BATCH_SIZE=250 | |
# check if the branch exists on the remote | |
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
# if so, only push the commits that are not on the remote already | |
range=$REMOTE/$BRANCH..HEAD | |
else |
/** | |
* Triggers browser to download a file with content. | |
* | |
* Accomplishes by creating a temporary a tag that we encode filename and data to and then click on behalf of user. | |
* | |
* @example | |
* browserFileDownload("results.txt","Success Example!"); | |
* @example | |
* browserFileDownload("example.xml", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><collection><item>1</item></collection>", "application/xml"); | |
* |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// file: wp-content/plugins/gravityformsauthorizenet/api/lib/net/authorize/util/HttpClient.php | |
namespace net\authorize\util; | |
/** | |
* A class to send a request to the XML API. | |
* | |
* @package AuthorizeNet | |
* @subpackage net\authorize\util |