Better version here: https://gist.github.com/tnorthcutt/efbf4ce76797f6efa7bde9cc5405143c
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 | |
// Nav Menu Dropdown Class | |
include_once( CHILD_DIR . '/lib/classes/nav-menu-dropdown.php' ); | |
/** | |
* Mobile Menu | |
* | |
*/ | |
function be_mobile_menu() { |
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 | |
/** | |
* Don't Update Plugin | |
* | |
* This prevents you being prompted to update if there's a public plugin | |
* with the same name. | |
* | |
* @since 1.0.0 | |
* @author Mark Jaquith |
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 | |
/** | |
* Customize Event Query using Post Meta | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* | |
*/ |
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 | |
/** | |
* Get an array of gravity forms. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function jdn_gf_options() { | |
$form_array = array(); |
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
Set AppObj = CreateObject("Shell.Application") | |
If WScript.Arguments.Length=1 Then | |
AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash"" -d """ & WScript.Arguments(0) & """" | |
Else | |
AppObj.ShellExecute "C:\Console2\Console.exe", " -t ""Git Bash""" | |
End If |
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_action( 'add_meta_boxes', 'tgm_remove_all_the_metaboxes', 100 ); | |
/** | |
* Removes all metaboxes except the ones I WANT ON MY POST TYPE. RAGE. | |
* | |
* This assumes a specific post type. In my case, it is 'envira'. | |
* This function is very aggressive and removes every single metabox minus | |
* the needed submitdiv metabox (which allows you to publish something) and | |
* the metaboxes that I register with my plugin. | |
* |
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 | |
// Disables sticky Strict Standards warnings. Good for poorly developed plugins. | |
// Put this file in mu-plugins | |
if ( WP_DEBUG ) { | |
error_reporting( E_ALL & ~E_STRICT ); | |
} |
General procedure is to follow the established GitFlow model.
Assuming the move happens right after 2.0.0 is released.
- All SVN tags moved in as Git Tags.
- Code SVN tagged as 2.0.0 moved to Git
master
branch - Git
master
branch is branched todevelop
.
If work after 2.0.0 has already been committed to SVN trunk
, then SVN trunk
is moved to Git develop
branch instead.