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: Block Editor Cleanup | |
| * Plugin URI: https://github.com/WordPress/gutenberg/issues/38299#issuecomment-1025520487 | |
| * Version: 1.0.0 | |
| * Description: Remove WP 5.9 default block editor styles when using Classic Editor | |
| * Author: joshuafredrickson | |
| * Author URI: https://joshuafredrickson.com | |
| * License: GNU General Public License v2 | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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
| const fs = require( 'fs' ) | |
| const themeJson = fs.readFileSync( './theme.json' ) | |
| const theme = JSON.parse( themeJson ) | |
| const colors = theme.settings.color.palette.reduce( ( acc, item ) => { | |
| const [color, number] = item.slug.split( '-' ) | |
| // If there is a number identifier, make this an object | |
| if(undefined !== number) { |
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
| # Kinsta Deployment through Github Actions for Bedrock/Sage. | |
| # | |
| # Placed at: .github/workflow/deploy.yml | |
| # | |
| # Process should be studied from code, but some quick brief: | |
| # - runs composer / sage installation | |
| # - moves correct `.env.*` file for multiple configs | |
| # - uses rsync to sync files, uses /.rsyncignore file to exclude whatever should not be there | |
| # - symlinks uploads folder and symlink release folder to kinsta public hostname | |
| # - if you want to clear cache, please uncomment the last job |
OlderNewer