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
# https://help.github.com/articles/fork-a-repo | |
$ git remote add upstream git@github.com:{user-name}/{project-name}.git | |
$ git fetch upstream | |
$ git merge upstream/master | |
$ git push origin |
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
You should really fix these slow tests (>250ms)... | |
1. 1601ms to run Tests_Basic:test_readme | |
2. 1384ms to run Tests_Canonical:test with data set #0 | |
3. 1338ms to run Tests_WP_Site_Icon:test_insert_cropped_attachment | |
4. 1142ms to run Tests_XMLRPC_wp_uploadFile:test_valid_attachment | |
5. 1118ms to run Tests_Term_Cache:test_hierachy_invalidation | |
6. 1000ms to run Tests_Theme:test_get_themes_contents | |
7. 940ms to run Tests_XMLRPC_wp_newPost:test_post_format | |
8. 938ms to run Tests_WP_Site_Icon:test_create_attachment_object | |
9. 914ms to run Tests_XMLRPC_wp_getOptions:test_option_values_admin |
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
├─┬ autoprefixer@6.0.3 | |
│ ├── browserslist@1.0.1 | |
│ ├── caniuse-db@1.0.30000359 | |
│ ├── num2fraction@1.2.2 | |
│ └─┬ postcss@5.0.10 | |
│ ├── js-base64@2.1.9 | |
│ ├── source-map@0.5.3 | |
│ └─┬ supports-color@3.1.2 | |
│ └── has-flag@1.0.0 | |
├─┬ grunt@0.4.5 |
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 | |
/** | |
* Adds additional args to the widget tag cloud: | |
* format => array | |
* topic_count_text_callback => my_remove_default_tag_title | |
* | |
*/ | |
function my_add_type_arg( $args ) { | |
$args['format'] = 'array'; | |
$args['topic_count_text_callback'] = 'my_remove_default_tag_title'; |
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
// Based on https://github.com/bitmanic/rem/ | |
// Examples of usage: | |
// text-shadow: rem( 1px 1px 0 #fff ); | |
// font-size: rem( 16px ); | |
// @include box-shadow( rem( -2px 2px 0 ) rgba(0,0,0,0.1) ); | |
$baseline-px: 16px; | |
@function rem( $px-values ) { | |
$baseline-rem: $baseline-px / 1rem; | |
@if type-of($px-values) == "number" { |
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 | |
/** | |
* Removes the hentry mircoformat from post_class() output. | |
*/ | |
function ds_remove_hentry_microformat( $classes ) { | |
return array_diff( $classes, array( 'hentry' ) ); | |
} | |
add_filter( 'post_class', 'ds_remove_hentry_microformat' ); |
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: SVG | |
* Version: 1.0 | |
* Description: Allows you to upload SVG files through the media uploader. | |
* Author: Dominik Schilling | |
* Author URI: http://wphelper.de/ | |
* Plugin URI: https://gist.github.com/ocean90/5263152 | |
* | |
* License: GPLv2 or later |
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: Chrome Logger | |
* Description: Logs PHP debug info into Chrome console | |
* Author: Dominik Schilling | |
*/ | |
/** | |
* Server Side Chrome PHP debugger class | |
* Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0 |
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: Admin Color Switcher | |
* Version: 0.1 | |
* Description: Switch admin color scheme via toolbar | |
* Author: Dominik Schilling | |
* Author URI: http://wphelper.de/ | |
* Plugin URI: http://wpgrafie.de/ | |
* | |
* |
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 | |
// How many revisions should be created? | |
$num_of_revisions = 40; | |
// Demo content | |
$content = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. | |
Duis autem vel eum iriure dolor in |