diff --git a/generator/rename.php b/generator/rename.php index a417011..9a46bd6 100644 --- a/generator/rename.php +++ b/generator/rename.php @@ -112,6 +112,7 @@ function replace_name_slug( $config, $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( $config[ 'plugin_name' ] . ':', '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 );