vaakash / git-it-write

A WordPress plugin to publish markdown files present in a Github repository as posts to WordPress automatically.
https://www.aakashweb.com/wordpress-plugins/git-it-write/
GNU General Public License v3.0
48 stars 22 forks source link

bugfix: sanitize item & image slug for comparing key exists in array #4

Closed imjlk closed 1 year ago

imjlk commented 3 years ago

Related with this & #2 this issue,

sanitize_title() is using in wp-includes/post.php when add a $post_name.

Probably, $folder also need sanitize_title() when execute publish()

  if( array_key_exists( $folder, $repo_structure ) ){

but I left it because I didn't know exactly about the $repo_structure.