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
# BEGIN Browser Cache | |
<IfModule mod_deflate.c> | |
<IfModule mod_setenvif.c> | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html | |
</IfModule> | |
<IfModule mod_filter.c> | |
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon |
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
user nobody; | |
# you must set worker processes based on your CPU cores, nginx does not benefit from setting more than that | |
worker_processes 2; | |
# number of file descriptors used for nginx | |
# the limit for the maximum FDs on the server is usually set by the OS. | |
# if you don't set FD's then OS settings will be used which is by default 2000 | |
worker_rlimit_nofile 100000; |
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 | |
add_filter( 'genesis_seo_title', 'prefix_seo_title_fix' ); | |
/** | |
* Correct a bug in Genesis that causes the home page title to display with a p | |
* tag instead of a h1 tag when a static front page is in use. | |
* | |
* @copyright Copyright (c) 2014, FAT Media, LLC | |
*/ | |
function prefix_seo_title_fix( $title, $inside, $wrap ) { |
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 | |
printf( '<div %s>', genesis_attr( 'site-tagline-left' ) ); | |
printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) ); | |
echo '</div>'; |
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
/* Greg's Threaded Comment Numbering Genesis | |
--------------------------------------------- */ | |
.commentnumber { | |
display: block; | |
float: right; | |
font-size: 40px; | |
font-size: 4rem; | |
margin-left: 20px; | |
margin-left: 2rem; | |
padding: 0 20px; |
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 | |
/** | |
* Add custom icons using Dashicons for Gravity Forms. | |
* | |
* This outputs some extra stlying to force Gravity Forms to use a modern | |
* dashicon in the wp-admin sidebar. | |
* | |
* @author Robert Neu | |
* @link http://melchoyce.github.io/dashicons/ |
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 | |
/** | |
* Check the current post to see what type of post it is. | |
* | |
* This will return true whenever a post is equal to a specified post type. | |
* It can be useful when making global changes for a particular post type. | |
* | |
* @param $post_types array or string the type of posts you're wanting to check. | |
* @return bool true if the current post type matches any of the checked types. |
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 | |
/** | |
* Check an array to see if any values aren't empty. | |
* | |
* @param $array the array of data that you want to check for filled values. | |
* @return bool true if the array has at least one non-empty value. | |
* @author Robert Neu <http://wpbacon.com> | |
*/ | |
function prefix_array_has_data( $array ) { |
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
### Keybase proof | |
I hereby claim: | |
* I am wpbacon on github. | |
* I am robertneu (https://keybase.io/robertneu) on keybase. | |
* I have a public key whose fingerprint is C486 BFE2 48DE 6FA6 7CAD CEC5 D506 FDC5 70D2 A57D | |
To claim this, I am signing this object: |
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 | |
// Ignore the <?php tag, it's only here for syntax highlighting. | |
// This can be found on line 285 of disqus.php | |
$commentdata = $wpdb->get_row($wpdb->prepare( "SELECT comment_ID, comment_parent FROM $wpdb->comments WHERE comment_agent = 'Disqus/1.0:{$comment->id}' LIMIT 1"), ARRAY_A); |
OlderNewer