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
#! /bin/bash | |
# Update a WordPress plugin from git | |
# Based on scripts from thenbrent (https://github.com/thenbrent/multisite-user-management/blob/master/deploy.sh) and scribu (https://gist.github.com/1125050) | |
# main config | |
SRC_DIR=$(pwd) | |
DIR_NAME=$(basename "$SRC_DIR") | |
SVNUSER="gluten" | |
SVNPATH="/tmp/$DIR_NAME" | |
SVNURL="http://plugins.svn.wordpress.org/$DIR_NAME/" |
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: Vimeo oembed hotfix | |
Plugin URI: | |
Description: Enable https vimeo embeds. <strong>Note</strong>: If for any reason videos are not embedding properly, simply deactivate, and then reactivate this plugin. | |
Author: gluten | |
Version: 2.0 | |
Author URI: http://belabor.org/ | |
*/ |
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 a Network Admin link to the Admin Bar. | |
*/ | |
function network_admin_adminbar() { | |
if( is_super_admin() ) { | |
global $wp_admin_bar; |
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
jQuery('#authors li select').each(function(){ jQuery(this).find('option[value="0"]').remove() }); |