I hereby claim:
- I am barrd on github.
- I am barrd (https://keybase.io/barrd) on keybase.
- I have a public key ASC1QtWlWxuAejZQSil1Jv3oiWemVVrnEHgntyrjJt0CvQo
To claim this, I am signing this object:
| UPDATE wp_postmeta SET meta_value=concat(meta_value, ' %%sep%% %%sitename%%') WHERE meta_key ='_yoast_wpseo_title'; |
| <!-- @see http://johnpolacek.com/2012/10/03/help-prevent-fouc --> | |
| <!-- WordPress implementation --> | |
| <!-- Add to header --> | |
| <style type="text/css"> | |
| .no-fouc {display: none;} | |
| </style> | |
| <script> | |
| document.documentElement.className = 'no-fouc'; | |
| </script> |
| [user] | |
| name = Dave Barr | |
| email = [email protected] | |
| [color] | |
| ui = true | |
| [core] | |
| editor = code --wait | |
| excludesfile = /Users/barrd/.gitignore_global | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Enable AVIF types | |
| * | |
| * @see https://developer.wordpress.org/reference/functions/wp_check_filetype_and_ext/ | |
| */ | |
| function barrd_enable_avif_types( $types, $file, $filename, $mimes ) { | |
| if ( false !== strpos( $filename, '.avif' ) ) { | |
| $types['ext'] = 'avif'; | |
| $types['type'] = 'image/avif'; |
| <?php | |
| /** | |
| * Hide jQuery Migration notice | |
| * | |
| * Temp fix until plugin can be removed | |
| * | |
| * @return void | |
| */ | |
| function removes_migrate_warning() { |
| <?php | |
| /** | |
| * Required Dependencies | |
| */ | |
| // Construct the iterator. | |
| $rdi = new RecursiveDirectoryIterator( get_template_directory() . '/inc' ); | |
| // Loop through PHP files. | |
| foreach ( new RecursiveIteratorIterator( $rdi ) as $file ) { | |
| if ( $file->getExtension() === 'php' ) { |
| # --------------------------------------------------------------------- | |
| # Vanilla WordPress Git Ignore File | |
| # --------------------------------------------------------------------- | |
| # Ignore everything in root except wp-content dir & wp-config | |
| /* | |
| !wp-content/ | |
| !wp-config* | |
| wp-config-sample.php |
| <?php | |
| /** | |
| * Exclude posts by ID | |
| * | |
| * @param array $query The WP_Query instance. | |
| */ | |
| function exclude_posts_from_search( $query ) { | |
| if ( $query->is_main_query() && is_search() ) { | |
| // Add post IDs into array. | |
| $post_ids = array( 10, 11, 12 ); |