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 | |
Class Admin_Column_Custom_Field { | |
/** @var string */ | |
private $field_key; | |
/** @var string */ | |
private $field_label; |
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 | |
//each | |
array_walk($array, function($item) { | |
}); | |
//upto | |
array_walk(range(1,5), function($i) { | |
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 | |
class Debug_Bar_JS extends Debug_Bar_Panel { | |
var $real_error_handler = array(); | |
function init() { | |
$this->title( __('JavaScript', 'debug-bar') ); | |
// attach here instead of debug_bar_enqueue_scripts | |
// because we want to be as early as possible! |
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
Show hidden characters
{ | |
"auto_complete": true, | |
"blod_folder_labels": true, | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/User/itg.dark (SL).tmTheme", | |
"draw_indent_guides": true, | |
"draw_white_space": "all", | |
"folder_exclude_patterns": | |
[ | |
".svn", |
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
$grid-gutter: 20px !default; | |
$grid-gutter-small: $grid-gutter !default; | |
$grid-gutter-medium: $grid-gutter-small !default; | |
$grid-gutter-large: $grid-gutter-medium !default; | |
$colslist: 1, 2, 3, 4, 5, 6, 12; | |
// Media Queries | |
$screen-small-min: 567px; | |
$screen-medium-min: 768px; |
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 | |
trigger_error("This file should not be included, only analyzed by your IDE", E_USER_ERROR); | |
$wp_the_query = new WP_Query(); | |
/** @var WP_Query $wp_query */ | |
$wp_query = $wp_the_query; | |
$wp_rewrite = new WP_Rewrite(); | |
$wp = new WP(); |
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
# encoding: utf-8 | |
# vim: ft=ruby expandtab shiftwidth=2 tabstop=2 | |
require 'yaml' | |
Vagrant.require_version '>= 1.5' | |
Vagrant.configure(2) do |config| | |
vccw_version = '2.8.2'; |
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
'use strict'; | |
// ================================== | |
// | |
// Config. | |
// | |
// ================================== | |
var config = { | |
browserify: { |
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_action( 'parse_query', 'bogo_parse_query' ); | |
function bogo_parse_query( $query ) { | |
$qv = &$query->query_vars; | |
if ( ! empty( $qv['bogo_suppress_locale_query'] ) ) | |
return; |