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
$trace=debug_backtrace(); | |
$caller=array_shift($trace); | |
error_log( "Lumpy: mail debug function " . print_r( $trace[0]['function'] , true ) ); | |
error_log( "Lumpy: mail debug class " . print_r( $caller['class'] , true ) ); |
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: Webkit Line Height Fixer | |
Plugin URI: https://twitter.com/lumpysimon | |
Description: Remove the annoying inline line-height styles added by Webkit | |
Version: 1.0 | |
Author: Simon Blackbourn @ Lumpy Lemon | |
Author URI: http://lumpylemon.co.uk | |
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
# .gitignore file for WordPress that ignores everything except: | |
# | |
# - .gitignore | |
# - favicon.ico | |
# - wp-config.php | |
# - everything in mu-plugins | |
# - my-plugin | |
# - my-theme (except for .sass-cache) | |
# | |
# based on https://gist.github.com/jdbartlett/444295 |
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
/* | |
=========== | |
= columns = | |
=========== | |
*/ | |
$gutter: 4%; |
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
<section class="cols"> | |
<div class="col col-3-5"> | |
<div class="cols"> | |
<div class="col col-1-3"> | |
<div class="button">one third of three fifths</div> | |
</div> | |
<div class="col col-1-3"> | |
<div class="button">one third of three fifths</div> | |
</div> | |
<div class="col col-1-3"> |
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 | |
defined( 'ABSPATH' ) or die(); | |
$ll_sitemap = new ll_sitemap; |
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
register_extended_post_type( | |
'newsletter', | |
array( | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'menu_position' => 45, | |
'quick_edit' => false, | |
'supports' => array( 'title', 'editor', 'thumbnail' ), | |
'admin_cols' => array( | |
'newsletter-image' => 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
add_filter( 'post_password_expires', 'my_cookie_time' ); | |
function my_cookie_time( $time ) { | |
return 600; // 600 = 10 minutes. Use 0 to expire the cookie at the end of the current browsing session. | |
} |
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
.hyphenate { | |
overflow-wrap: break-word; | |
word-wrap: break-word; | |
-webkit-hyphens: auto; | |
-ms-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: auto; | |
} |
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
add_filter( 'rest_enabled', '_return_false' ); | |
add_filter( 'rest_jsonp_enabled', '_return_false' ); |