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 | |
| /** | |
| * 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 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
| # 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 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: Auto-embeds Disabler | |
| * Version: 0.1 | |
| * Description: Disables the auto-embeds function in WordPress 3.5 | |
| * Author: Dominik Schilling | |
| * Author URI: http://wphelper.de/ | |
| * Plugin URI: http://wpgrafie.de/1078/ | |
| * | |
| * |
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: XML-RPC Disabler | |
| * Version: 0.1 | |
| * Description: Disables the XML-RCP API in WordPress 3.5 | |
| * Author: Dominik Schilling | |
| * Author URI: http://wphelper.de/ | |
| * Plugin URI: http://wpgrafie.de/994/ | |
| * | |
| * |
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
| /** | |
| * For site admins: Print some debug infos into backend footer. | |
| * - Time | |
| * - DB Queries | |
| * - Memory Usage | |
| * - Cache Hts/Misses | |
| * - Active Plugins | |
| * | |
| * @param string $text Existing footer text. | |
| * |
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
| <div class="share-box twitter"> | |
| <span>Auf Twitter teilen</span> | |
| <a style="display:none" href="https://twitter.com/share" class="twitter-share-button" data-lang="de" data-dnt="true" data-count="vertical">Twittern</a> | |
| </div> | |
| <div class="share-box googleplus"> | |
| <span>Auf Google+ teilen</span> | |
| <div class="g-plusone" data-size="tall"></div> | |
| </div> |
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
| /** | |
| * Add a X-XSS-Protection = 0 header for post previews to allow | |
| * Webkit browsers to render iframe and flash objects. | |
| * @see: http://core.trac.wordpress.org/ticket/20148 | |
| * | |
| * @param $headers array Already added header items. | |
| * @param $object WP The query variables. | |
| * | |
| * @return array | |
| */ |
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
| mkdir ~/Documents/Conflicted && find -L ~/Dropbox -name "*In Konflikt stehende Kopie*" -exec mv {} ~/Documents/Conflicted \; |
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
| sudo mkdir /var/mysql | |
| sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock |
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
| #!/bin/bash | |
| # Checks WordPress core for unused images. | |
| # Requires ack2: http://beyondgrep.com/ | |
| # | |
| # The script needs to be placed inside the WordPress root | |
| # directory or add the path to the WordPress directory via a | |
| # parameter. Example: $ ./wp-search-images ~/Sites/WordPress/ | |
| # | |
| # Define the image paths in img_paths[] | |
| # |