Skip to content

Commit db5f22e

Browse files
committed
renamed fakerpress method to be able to support taxonomies in future
1 parent d945122 commit db5f22e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/Supports/FakerPress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function pre_insert_post( $data, $postarr ) {
8080
*/
8181
public function insert_post( $post_id, $post, $update ) {
8282
if ( $this->ID === $post->post_type ) {
83-
$this->update_meta( $post_id, $this->data );
83+
$this->update_post_meta( $post_id, $this->data );
8484
}
8585
}
8686

@@ -92,7 +92,7 @@ public function insert_post( $post_id, $post, $update ) {
9292
*
9393
* @return bool
9494
*/
95-
public function update_meta( $post_id, $data ) {
95+
public function update_post_meta( $post_id, $data ) {
9696
if ( isset( $data['post_featured_image'] ) ) {
9797
set_post_thumbnail( $post_id, $data['post_featured_image'] );
9898
unset( $data['post_featured_image'] );

0 commit comments

Comments
 (0)