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 | |
/** | |
* Is the current page a descendent of page identified by the path (not slug). | |
* A page is not a descendent of itself! | |
* | |
* @link http://wordpress.stackexchange.com/questions/101213/does-is-child-exist-in-wp-3-5-1 | |
* @link https://gist.github.com/broskees/8fd20d3167c4e7dd2941aaef5e7068cc | |
* @param string $page_path The path of the page, e.g. mypage/mysubpage | |
* @return boolean True if current page is a descednent of specified $page_path. False otherwise. | |
*/ |
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
# Uninstall current version you want to change | |
brew uninstall --cask vagrant | |
# e.g. Vagrant | |
brew edit --cask vagrant | |
# replace the contents of that file with the version of the file found in github history: | |
# https://github.com/Homebrew/homebrew-cask/commits/master/Casks/vagrant.rb | |
# or change version and SHA256, you can find on https://releases.hashicorp.com/vagrant/ | |
``` |
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('plugins_loaded', function() { | |
if ( !function_exists('is_plugin_active') ) { | |
/** WordPress Plugin Administration API */ | |
require_once(ABSPATH . 'wp-admin/includes/plugin.php'); | |
} | |
if ( is_plugin_active( 'advanced-custom-fields-pro/acf.php' ) ) { | |
return; |