Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Aug 24, 2022
1 parent 49c6c94 commit 1897f53
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 @@ -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 );
Expand Down

0 comments on commit 1897f53

Please sign in to comment.