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
a:89:{s:11:"^wp-json/?$";s:22:"index.php?rest_route=/";s:14:"^wp-json/(.*)?";s:33:"index.php?rest_route=/$matches[1]";s:21:"^index.php/wp-json/?$";s:22:"index.php?rest_route=/";s:24:"^index.php/wp-json/(.*)?";s:33:"index.php?rest_route=/$matches[1]";s:52:"blog/category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$";s:52:"index.php?category_name=$matches[1]&feed=$matches[2]";s:47:"blog/category/(.+?)/(feed|rdf|rss|rss2|atom)/?$";s:52:"index.php?category_name=$matches[1]&feed=$matches[2]";s:28:"blog/category/(.+?)/embed/?$";s:46:"index.php?category_name=$matches[1]&embed=true";s:40:"blog/category/(.+?)/page/?([0-9]{1,})/?$";s:53:"index.php?category_name=$matches[1]&paged=$matches[2]";s:22:"blog/category/(.+?)/?$";s:35:"index.php?category_name=$matches[1]";s:49:"blog/tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:42:"index.php?tag=$matches[1]&feed=$matches[2]";s:44:"blog/tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:42:"index.php?tag=$matches[1]&feed=$matches[2]";s:25:"blog/tag/([^/]+)/embed/?$";s:36:"index.php?tag=$matc |
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
/** | |
* Gets or updates the cache incrementor for a post type. | |
* | |
* @param string $post_type The post type. | |
* @param bool $update Whether to force an incrementor update. | |
* @return string | |
*/ | |
function post_type_cache_incrementor( $post_type, $update = false ) { | |
$group = 'post_type_cache_incrementor'; |
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 | |
// Sample code to demonstrate a possible bug in core where | |
// wp_update_post() is resetting the term_order. | |
global $wp_taxonomies; | |
// Let core set the term_order field automatically. | |
$wp_taxonomies['category']->sort = true; | |
$post_id = wp_insert_post( |
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 | |
/** | |
* Estimator class to get estimated time left. | |
*/ | |
class Estimator { | |
public $total = 0; | |
public $count = 0; | |
public $start_time = 0; |
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 | |
/** | |
* Adds a value to cache. | |
* | |
* If the specified key already exists, the value is not stored and the function | |
* returns false. | |
* | |
* @link http://www.php.net/manual/en/memcached.add.php | |
* | |
* @param string $key The key under which to store the value. |
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: SSH Remote Test | |
*/ | |
add_action( 'admin_init', 'ssh_remote_test', 1 ); | |
function ssh_remote_test() { |
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: SSH Remote Test | |
*/ | |
add_action( 'admin_init', 'ssh_remote_test', 1 ); | |
function ssh_remote_test() { |
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
#!/bin/bash | |
##################### | |
# bacon.sh | |
# | |
# Client to get paragraphs of garbage content from baconipsum.com | |
# | |
# usage: | |
# bacon.sh <paragraph-count> | |
##################### |
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
// USERHTML - Wildcat User List to HTML Converter | |
// By: Pete Nelson (pete@terminal-one.com) | |
dim urec as userrecord | |
dim today as date, now as time, domain as string | |
if not exists("userhtml.cfg") then | |
cls | |
print "@0A@What is your domain name@07@: " defcolor; |
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 | |
register_rest_route( 'test', '/v1/schema-test', array( | |
'methods' => 'POST', | |
'callback' => __NAMESPACE__ . '\handle_endpoint', | |
'args' => array( | |
'mybools' => array( | |
'required' => true, | |
'type' => 'array', // We require an array of items. | |
'items' => array( |