Skip to content

Commit e3a128c

Browse files
committed
Rename scaffold method to get rid of underscore prefix
1 parent 6932dc3 commit e3a128c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Scaffold_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function post_type( $args, $assoc_args ) {
7777
'dashicon' => 'admin-post',
7878
);
7979

80-
$this->_scaffold( $args[0], $assoc_args, $defaults, '/post-types/', array(
80+
$this->scaffold( $args[0], $assoc_args, $defaults, '/post-types/', array(
8181
'post_type.mustache',
8282
'post_type_extended.mustache',
8383
) );
@@ -132,13 +132,13 @@ public function taxonomy( $args, $assoc_args ) {
132132
$assoc_args['post_types'] = $this->quote_comma_list_elements( $assoc_args['post_types'] );
133133
}
134134

135-
$this->_scaffold( $args[0], $assoc_args, $defaults, '/taxonomies/', array(
135+
$this->scaffold( $args[0], $assoc_args, $defaults, '/taxonomies/', array(
136136
'taxonomy.mustache',
137137
'taxonomy_extended.mustache',
138138
) );
139139
}
140140

141-
private function _scaffold( $slug, $assoc_args, $defaults, $subdir, $templates ) {
141+
private function scaffold( $slug, $assoc_args, $defaults, $subdir, $templates ) {
142142
$wp_filesystem = $this->init_wp_filesystem();
143143

144144
$control_args = $this->extract_args( $assoc_args, array(

0 commit comments

Comments
 (0)