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('admin_init', function () { | |
// Redirect any user trying to access comments page | |
global $pagenow; | |
if ($pagenow === 'edit-comments.php') { | |
wp_redirect(admin_url()); | |
exit; | |
} |
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
# Upgrade / Update outdated casks installed. | |
# -------------------------------------------------------------------------------- | |
# Looks for outdated casks and installs the the latest version. | |
# User data (like application preferences) is intact. | |
# Updated one liner (thanks Henrik242) | |
# -------------------------------------------------------------------------------- | |
brew upgrade $(brew outdated --cask --greedy --quiet) | |