* Disregard invalid slug * Change logic for invalid slug -- plugin dir with the slug must exist * Use put_contents correctly --------- Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>