This file contains hidden or 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 | |
/** | |
* Return a "front page's" real permalink | |
* | |
* @param string $link The page permalink. | |
* @param int $page_id The page id. | |
* @param bool $sample Whether to return a sample permalink. | |
* | |
* @return string The filtered permalink. | |
*/ |
This file contains hidden or 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: Debug Hooks | |
* Author: J.D. Grimes & Some other guy on the net | |
* Version: $ver$ | |
* Description: Adds some functions you can use to debug actions and filters. | |
*/ | |
/** |
This file contains hidden or 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: J.D.'s Dev Tools | |
* Version: 0.9.9-beta-5 | |
* Description: My development tools. | |
* Author: J.D. Grimes | |
* Author URI: http://codesymphony.co/ | |
*/ |
This file contains hidden or 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 | |
// Can be called whenever. | |
function add_admin_notice( $code, $message, $type = 'error' ) { | |
global $wp_admin_notices; | |
if ( ! isset( $wp_admin_notices ) ) | |
$wp_admin_notices = array(); | |
$wp_admin_notices[] = array( |
This file contains hidden or 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 to provide a bootstrap for modules. | |
* | |
* @package WordPoints | |
* @since 1.10.0 | |
*/ | |
/** |
This file contains hidden or 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 list of global variables to back up. | |
* | |
* @since 2.0.0 | |
* | |
* @var string|string[] | |
*/ | |
protected $backup_globals; |
This file contains hidden or 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
/** | |
* Test that points hooks that don't auto-reverse don't refire after import. | |
* | |
* @since 1.0.0 | |
*/ | |
public function test_imported_non_auto_reversing_hook_does_not_refire() { | |
$legacy_slug = 'comment'; | |
$settings = array( |
This file contains hidden or 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 | |
/** | |
* Sniff for data that is expected to be slashed. | |
* | |
* Some WordPress core functions expect the data passed to them to be slashed, for | |
* legacy reasons. | |
* | |
* @package WordPress-Coding-Standards | |
* @since 0.10.0 | |
*/ |
This file contains hidden or 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 WP_Time_Test extends WP_UnitTestCase { | |
public function test_strtotime() { | |
$offset = -5; | |
update_option( 'gmt_offset', $offset ); | |
update_option( 'timezone_string', 'America/New_York' ); |
This file contains hidden or 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: WP-SpamShield Bypass for EDD SL | |
* Author: J.D. Grimes | |
* Author URI: https://codesymphony.co/ | |
* Plugin URI: https://codesymphony.co/ | |
* Version: 1.0.0 | |
* License: GPLv2+ | |
* Description: Bypasses WP-SpamShield blocking for Easy Digital Downloads Software Licenses requests. |