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
| /** | |
| * bbPress specific CSS | |
| * | |
| * @package bbPress | |
| * @subpackage Theme | |
| */ | |
| /* =bbPress Style | |
| -------------------------------------------------------------- */ |
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 | |
| add_filter( 'pre_get_avatar', 'rkv_remove_avatar_from_list', 10, 3 ); | |
| /** | |
| * Remove the avatars from just the admin user list table. | |
| * | |
| * @param string $avatar HTML for the user's avatar. Default null. | |
| * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, | |
| * user email, WP_User object, WP_Post object, or WP_Comment object. | |
| * @param array $args Arguments passed to get_avatar_url(), after processing. | |
| * |
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
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| # add a trailing slash to /wp-admin | |
| RewriteRule ^([_0-9a-zA-Z-]+/)+?wp-admin$ $1wp-admin/ [R=301,L] | |
| RewriteCond %{REQUEST_FILENAME} -f [OR] |
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
| var path = require('path'); | |
| var fs = require('fs'); | |
| module.exports = function (grunt) { | |
| 'use strict'; | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), |
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
| # What if you are trying to migrate a bunch of posts from one site into | |
| # another site that already has content? We'll assume you already have | |
| # a database export of the posts and postmeta you want to migrate. You | |
| # will want to create a database locally to alter the tables to get them | |
| # ready to merge into the production database that already has content. | |
| # You will also need to know the highest `meta_id` and `ID` values from | |
| # the `wp_postmeta` and `wp_posts` tables, respectively. | |
| # First, we need to create new columns in the tables we have locally. To | |
| # do this the right way, we are going to figure out what type of data |
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 | |
| function language_detector_admin_notices() { | |
| // Get the current language locale | |
| $language = get_locale(); | |
| // Check if the nag screen has been disabled for this language | |
| if ( false === get_option( 'plugin_slug_language_detector_' . $language, false ) ) { | |
| // Check if a translation file already exists for this language | |
| if ( $loaded = load_plugin_textdomain( 'text_domain', false, plugin_dir_path( __FILE__ ) . '/languages/' ) ) { |
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
| # This is an example of the kind of things you can do in a configuration file. | |
| # All flags used by the client can be configured here. Run Let's Encrypt with | |
| # "--help" to learn more about the available options. | |
| # Use a 4096 bit RSA key instead of 2048 | |
| rsa-key-size = 4096 | |
| # Always use the staging/testing server | |
| # server = https://acme-staging.api.letsencrypt.org/directory | |
| server = https://acme-v01.api.letsencrypt.org/directory |
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
| sudo: false | |
| language: php | |
| matrix: | |
| include: | |
| - php: 5.6 | |
| before_install: | |
| - WP_CORE_DIR=/tmp/wordpress/ | |
| - git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen | |
| - | | |
| if [[ true ]]; then |
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
| # Usage: nvmi v6.0.1 (will install specified version) | |
| # Usage: nvmi_latest (will install latest node version) | |
| # these functions will replace the current 'default' version known in the shell. | |
| # to install a node version next to your current 'default' just use nvm install vX.X.X | |
| function nvmi() { | |
| CURRENT=$(node -v) | |
| nvm install $1 --reinstall-packages-from=$CURRENT |