Let the Wordpress auto-create slugs from titles instead of using just the post-id
This commit is contained in:
@@ -214,7 +214,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
$post = array(
|
$post = array(
|
||||||
'ID' => $id,
|
'ID' => $id,
|
||||||
'post_title' => $title,
|
'post_title' => $title,
|
||||||
'post_name' => $id,
|
'post_name' => '',
|
||||||
);
|
);
|
||||||
wp_update_post( $post );
|
wp_update_post( $post );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user