- Create file named git-push-wh with the following content and add it to your path
#!/bin/sh
GIT_DIR_="$(git rev-parse --git-dir)"
BRANCH="$(git rev-parse --symbolic --abbrev-ref $(git symbolic-ref HEAD))"| <?php | |
| add_filter( 'rewrite_rules_array', 'cache_frontend_ajax_rules' ); | |
| /** | |
| * Rewrite rules filter to add rules for front end ajax calls | |
| * | |
| * @param array $rewrite_rules | |
| * | |
| * @return array | |
| */ |
| diff --git Vagrantfile Vagrantfile | |
| index 65de7b1..40ba133 100644 | |
| --- Vagrantfile | |
| +++ Vagrantfile | |
| @@ -33,7 +33,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| v.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box" | |
| end | |
| - if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) == nil | |
| - config.vm.synced_folder ".", "/srv", nfs: true |
| #!/bin/bash | |
| # | |
| # provision.sh | |
| # | |
| # This file is specified in Vagrantfile and is loaded by Vagrant as the primary | |
| # provisioning script whenever the commands `vagrant up`, `vagrant provision`, | |
| # or `vagrant reload` are used. It provides all of the default packages and | |
| # configurations included with Varying Vagrant Vagrants. | |
| # By storing the date now, we can calculate the duration of provisioning at the |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| dir = Dir.pwd | |
| vagrant_dir = File.expand_path(File.dirname(__FILE__)) | |
| Vagrant.configure("2") do |config| | |
| # Store the current version of Vagrant for use in conditionals when dealing | |
| # with possible backward compatible issues. |
| /** | |
| * Remove media library javascript files to prevent other plugins from conflicting with yours. | |
| */ | |
| function dequeue_media_conflicts() { | |
| if ( 'your_plugin_hook_name' !== get_current_screen() ) { | |
| return; | |
| } | |
| wp_dequeue_script( 'media-upload' ); | |
| wp_enqueue_script( 'media-editor' ); |
| <?php | |
| /** | |
| * Plugin Name: Stream User Generator | |
| * Description: Generates X-Team users for testing | |
| * Version: 0.1 | |
| * Author: johnregan3 | |
| * Author URI: http://johnregan3.me | |
| * | |
| * USE: | |
| * Upload this into your Plugins directory. |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Add this file to /Library/Preferences/Webide60/codestyles --> | |
| <code_scheme name="WordPress Code Style"> | |
| <option name="USE_SAME_INDENTS" value="true" /> | |
| <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> | |
| <option name="OTHER_INDENT_OPTIONS"> | |
| <value> | |
| <option name="INDENT_SIZE" value="4" /> | |
| <option name="CONTINUATION_INDENT_SIZE" value="8" /> |
| <?php | |
| /** | |
| * WordPress Chosen Taxonomy Metabox | |
| * Author: Helen Hou-Sandi | |
| * | |
| * Use Chosen for a replacement taxonomy metabox in WordPress | |
| * Useful for taxonomies that aren't changed much on the fly and are | |
| * non-hierarchical in nature, as Chosen is for flat selection only. | |
| * You can always use the taxonomy admin screen to add/edit taxonomy terms. | |
| * Categories need slightly different treatment from the rest in order to |
| <?php | |
| /* Plugin Name: Damn Vulnerable WordPress Plugin | |
| * Description: Intentionally vulnerable plugin for plugin author education | |
| * Version: 0.1 | |
| * Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
| * Author: Jon Cave | |
| * Author URI: http://joncave.co.uk | |
| * License: GPLv2+ | |
| * | |
| * DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |