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
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
$ cd $HOME/Code/repo-directory | |
$ git remote rename origin bitbucket | |
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
$ git push origin master | |
$ git remote rm bitbucket |
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: EDD Test Payments | |
Plugin URI: https://gist.github.com/zackkatz/7418620 | |
Description: Allow admins to use Test Payment even when it's not enabled. | |
Author: Katz Web Services, Inc. | |
Version: 1.0 | |
Author URI: http://katz.co | |
*/ |
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 | |
if ( ! function_exists( "sanitize_html_classes" ) && function_exists( "sanitize_html_class" ) ) { | |
/** | |
* sanitize_html_class works just fine for a single class | |
* Some times le wild <span class="blue hedgehog"> appears, which is when you need this function, | |
* to validate both blue and hedgehog, | |
* Because sanitize_html_class doesn't allow spaces. | |
* | |
* @uses sanitize_html_class |
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: bbPress - Show Lead Topic | |
Plugin URI: https://gist.github.com/ntwb/3815686 | |
Description: bbPress - Show Lead Topic | |
Version: 0.2 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ |
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 shortcode_empty_paragraph_fix($content) | |
{ | |
$array = array ( | |
'<p>[' => '[', | |
']</p>' => ']', | |
']<br />' => ']' | |
); | |
$content = strtr($content, $array); |