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
<?php | |
class ClassicPressReleases { | |
/** | |
* Get migration URL fetching created_at from api.github.com. | |
* | |
* @param string $version Version to retrive migration URL. | |
* | |
* @return string|bool URL for release. Empty string if no release found. False on API failure. | |
*/ | |
public static function getMigrationFromCPVersion($version) { |
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
/** | |
* Get a list of ClassicPress released versions from api-v1.classicpress.net. | |
* | |
* @return array|false Array of CP versions or false on API failure. | |
*/ | |
function get_cp_versions() { | |
$response = wp_remote_get('https://api-v1.classicpress.net/v1/upgrade/index.php', ['timeout'=>3]); | |
if (is_wp_error($response) || empty($response)) { | |
return false; |
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
<?php | |
/** | |
* Plugin Name: Test Application Password | |
*/ | |
namespace XXSimoXX\testAP; | |
if (!defined('ABSPATH')){ | |
die('-1'); | |
}; |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use PDF::API2; | |
my ($pdf, $step) = @ARGV; | |
if (not defined $pdf) { | |
die "Need file name\n"; |
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
<?php | |
/** | |
* Plugin Name: twk | |
* | |
* Description: Fix (the worst way) troubles with untrusted certificates in ClassicPress. | |
* | |
*/ | |
if (!defined('ABSPATH')){ | |
die('-1'); |