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
# wp-cli: http://wp-cli.org/ | |
wp plugin search debug-bar --field=slug --format=csv --per-page=50 \ | |
| grep -F 'debug-bar-' \ | |
| xargs -n 1 wp plugin install |
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: Translation Updates Table | |
* | |
* @author Pascal Birchler <[email protected]> | |
* @license GPL2+ | |
*/ | |
/** | |
* Displays a table with available translation updates. |
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
function toggleClass(element, className) { | |
if (!element || !className) { return; } | |
var classString = element.className, nameIndex = classString.indexOf(className); | |
if (nameIndex == -1) { | |
classString += (classString.length) ? ' ' + className : className; | |
} else { | |
classString = classString.replace(' '+className, ''); | |
classString = classString.replace(className, ''); | |
} | |
element.className = classString; |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Silent Flush | |
* Description: Flushes rewrite rules whenever a custom post type or taxonomy is registered and not already part of these rules. This is a soft flush, the .htaccess will not be rewritten. | |
* Version: 2013.05.04 | |
* Author: Thomas Scholz <[email protected]> | |
* Author URI: http://toscho.de | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php | |
*/ |