Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate fm_url_to_post_id() #797

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Deprecate fm_url_to_post_id() #797

wants to merge 1 commit into from

Conversation

dlh01
Copy link
Member

@dlh01 dlh01 commented Feb 26, 2021

Fixes #532.

Support for custom post types was added to `url_to_postid()` in WordPress
3.7. According to its own docs and the site where it came from,
`fm_url_to_post_id()` was intended to work around the previous lack of
support for CPTs.

Also corrects the return type for `fm_url_to_post_id()`, which is
important in this case for an assurance of compatibility with
`url_to_postid()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider deprecating fm_url_to_post_id()
1 participant