Skip to content

Commit

Permalink
fix(replace): Plugin Name untouched...
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jul 28, 2022
1 parent 322be91 commit 49c6c94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/rename.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function replace_name_slug( $config, $content ) {
$content = str_replace( 'Plugin_name', $class, $content );
$content = preg_replace('/Plugin Name$/', $config[ 'plugin_name' ], $content );
$content = preg_replace('/Plugin name/', $config[ 'plugin_name' ], $content );
$content = str_replace('Plugin Name', $config[ 'plugin_name' ], $content );
$content = str_replace( 'plugin-name', WPBP_PLUGIN_SLUG, $content );
$content = str_replace( 'plugin_name', str_replace( ' ', '_', str_replace( '-', '_', WPBP_PLUGIN_SLUG ) ), $content );
preg_match_all( '/[A-Z]/', ucwords( strtolower( preg_replace( '/[0-9]+/', '', $config[ 'plugin_name' ] ) ) ), $ucword );
Expand Down

0 comments on commit 49c6c94

Please sign in to comment.