[Plugin: Custom Upload Dir] correction submit
-
Hello ulfben, thx for your great plugin.
I made the following “correction” at line 160
original
$post_name = (!empty($post->post_name)) ? $post->post_name : (!empty($post->post_title)) ? sanitize_title($post->post_title) : $post_id;“correction”
$post_name = (!empty($post->post_name)) ? $post->post_name : (!empty($post->post_title) ? sanitize_title($post->post_title) : $post_id);simply moved a parenthesis. I was getting the post_title instead of the post_name(slug).
Kind regards.
Claude.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: Custom Upload Dir] correction submit’ is closed to new replies.