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
git filter-branch --tree-filter "rm -rf ai1wm-backups" --prune-empty HEAD | |
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d | |
echo ai1wm-backups/ >> .gitignore | |
git add .gitignore | |
git commit -m 'Removing ai1wm-backups from git history' | |
git gc | |
git push origin production --force |
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
> git fetch | |
... | |
error: non-monotonic index .git/objects/pack/pack-be03d54c63e1a503114461d4c1945b34c7af01c8.idx | |
... | |
> rm .git/objects/pack/pack-be03d54c63e1a503114461d4c1945b34c7af01c8.idx | |
> git index-pack .git/objects/pack/pack-be03d54c63e1a503114461d4c1945b34c7af01c8.pack |
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: Plugin Versions | |
* Description: Adds a Plugin Versions menu in WordPress Network Admin under Plugins. | |
* Author: Terrance Orletsky - Earthman Media | |
* Author URI: https://earthmanmedia.com | |
* Version: 1.0 | |
*/ | |
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 ( ! defined( 'ABSPATH' ) ) { | |
exit( 'restricted access' ); | |
} | |
/* | |
* This is a function that show copier section. | |
* Show multisite relationships. | |
*/ | |
if ( ! function_exists( 'wmcc_display_content_copier' ) ) { |
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: Plugins Enabled | |
* Description: Displays the plugin status across all sites in a WordPress Multisite network. | |
* Author: Terrance Orletsky - Earthman Media | |
* Author URI: https://earthmanmedia.com | |
* Version: 1.0.7 | |
*/ | |
add_action( 'network_admin_menu', 'wpms_plugin_list_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
function em_setup_media_permissions() { | |
add_filter( 'user_has_cap', 'em_grant_media_permissions_except_subscriber', 1000, 4 ); | |
} | |
// add custom caps to enable media permissions for custom roles | |
function em_grant_media_permissions_except_subscriber( $allcaps, $caps, $args, $user ) { | |
$post_id = isset( $_REQUEST['post'] ) ? $_REQUEST['post'] : ( isset( $args[2] ) ? $args[2] : null ); | |
if ( ! $post_id ) { |
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: Plugin Versions | |
* Description: Adds a Plugin Versions menu in WordPress Admin under Plugins. | |
* Author: Terrance Orletsky - Earthman Media | |
* Author URI: https://earthmanmedia.com | |
* Version: 1.0.4 | |
*/ | |
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: EM Custom Login Logo and Styles | |
* Description: MU-Plugin - Customizes the login page with a custom logo and styles. | |
* Author: Terrance Orletsky / ChatGPT | |
* Version: 2.3.2 | |
*/ | |
add_action( 'login_enqueue_scripts', 'em_custom_login_styles' ); |
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
#!/bin/bash | |
# Usage from project root | |
# make sure your default public key (id_rsa.pub) is added to pantheon | |
# bash /path/to/bash/script/collect-php-error-log-rsync.sh | |
# ** put this in the folder you also want the '/logs' folder to land in | |
### SET SCRIPT PARAMS ### | |
# Site UUID is REQUIRED: Get from Pantheon Dashboard URL | |
SITE_UUID="12345678-1234-1234-abcd-0123456789ab" |
OlderNewer