[wp-trac] [WordPress Trac] #60569: Generate UUID for media slugs if attachment pages are inactive.
WordPress Trac
noreply at wordpress.org
Fri Jul 19 06:14:18 UTC 2024
#60569: Generate UUID for media slugs if attachment pages are inactive.
------------------------------------+-----------------------
Reporter: peterwilsoncc | Owner: antpb
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.7
Component: Media | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+-----------------------
Comment (by debarghyabanerjee):
Replying to [comment:12 peterwilsoncc]:
> Replying to [comment:11 debarghyabanerjee]:
> > Post ID won't work because the slug is getting generated before
inserting the post.
>
> Thanks for that, I wasn't sure of the order of operations.
>
> I also suspect post ID could "steal" helpful slugs, eg `episode/20` for
a podcast.
I gave it a thought and tried appending the extensions after the post_name
to generate the slug, but after further considerations, I don't think that
would be a good choice either, so I will be switching to your idea of
using UUID for slugs.
I will make the necessary changes and will push the code by today. Thanks
:-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60569#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list