This file contains hidden or 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: Disable plugins when doing local dev | |
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
Version: 0.1 | |
License: GPL version 2 or any later version | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ |
This file contains hidden or 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 | |
/** | |
* Bootstrap Pagination. | |
* | |
* Echos Bootstraped paginated links (http://getbootstrap.com/components/#pagination). | |
* | |
* @since 0.0.1 | |
* | |
* @param array $args { | |
* An array of arguments. Optional. |
This file contains hidden or 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 (!is_blog_installed()) { return; } | |
if ('http://' . $_SERVER['SERVER_NAME'] . '/wp' == get_option('home')) { | |
update_option('siteurl', 'http://' . $_SERVER['SERVER_NAME'] . '/wp'); | |
update_option('home', 'http://' . $_SERVER['SERVER_NAME']); | |
update_option('upload_path', $_SERVER['DOCUMENT_ROOT'] . '/media'); | |
update_option('upload_url_path', 'http://' . $_SERVER['SERVER_NAME'] . '/media'); | |
update_option('permalink_structure', '/%postname%/'); | |
} |
This file contains hidden or 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: Disable Plugins | |
Description: Disables plugins that you specify depending on the value of the WP_LOCAL_DEV constant | |
Version: 0.2 | |
License: GPL version 2 or any later version | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ |
NewerOlder