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 | |
unregister_sidebar( 'header-right' ); | |
remove_action( 'genesis_header', 'genesis_do_header' ); |
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: Overlay Dev | |
* Description: Overlay an image on the website to assist with development. Please add overlay-dev.png to the same directory as this file. This works as an mu-plugin. | |
* Version: 1.0.0 | |
* Author: Sal Ferrarello | |
* Author URI: http://salferrarello.com/ | |
* | |
* This file can be copied from the gist with | |
* curl -O https://gist.githubusercontent.com/salcode/f286c301663edad4e4a3/raw/wp-overlay-dev.php |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta http-equiv="Refresh" content="0; URL=http://www.example.com/target/"> | |
<title>Redirect</title> | |
</head> | |
<body> | |
<a href="http://www.example.com/target/">http://www.example.com/target/</a> |
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
// filter post_info to use 'Last updated' date | |
add_filter( 'genesis_post_info', 'fe_genesis_post_info_add_last_mod' ); | |
/** | |
* Change Genesis Post Info date to last modified date | |
* | |
* @since 0.1.0 | |
* | |
* @param string $post_info, string (with shortcodes) for post info | |
* @return string Genesis default post info with modified instead of publish date |
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 | |
/** | |
* Test dbDelta() | |
* | |
* @group upgrade | |
* @group dbdelta | |
*/ | |
class Tests_dbDelta extends WP_UnitTestCase { |
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
curl -sS https://getcomposer.org/installer | php;\ | |
mkdir -p /usr/local/bin;\ | |
mv composer.phar /usr/local/bin/composer |
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 | |
global $wp_version; | |
if ( version_compare( $wp_version, '4.2', '<=' ) ) { | |
add_filter( 'comments_open', '__return_false' ); | |
} |
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
{ | |
"repositories":[ | |
{ | |
"type":"composer", | |
"url":"http://wpackagist.org" | |
}, | |
{ | |
"type": "package", | |
"package": { | |
"name": "WebDevStudios/Hash-Link-Scroll-Offset", |
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
{ | |
"repositories":[ | |
{ | |
"type":"composer", | |
"url":"http://wpackagist.org" | |
}, | |
{ | |
"type": "vcs", | |
"url": "https://github.com/WebDevStudios/Hash-Link-Scroll-Offset" | |
} |