[wp-trac] [WordPress Trac] #9420: Plugin URL Path
WordPress Trac
noreply at wordpress.org
Fri Dec 29 08:37:33 UTC 2023
#9420: Plugin URL Path
-------------------------------+----------------------
Reporter: enailor | Owner: (none)
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version: 2.7
Severity: normal | Resolution: wontfix
Keywords: reporter-feedback | Focuses:
-------------------------------+----------------------
Comment (by moonnight):
plugin_dir_url() functions are WordPress function used to generate URLs to
files or directories within your plugin or the WordPress installation.
They should not include the absolute file path as part of the URL.
Here are a few things you can check or try to resolve this issue:
Check WordPress Version: Ensure that you are using a compatible version of
WordPress. These functions are typically designed to work with modern
versions of WordPress, and using an older version of PHP might not be the
issue.
Check for Custom Code: Look for any custom code or modifications in your
WordPress installation or theme that might be affecting the behavior of
these functions.
Debugging: You can add some debugging code to your plugin to see what
FILE, plugin_dir_url(), and plugins_url() are returning. This can help you
pinpoint the issue.[[Image(ticket:40218:mobile.png, 0px,
link=https://casinobookmark.net)]]
By echoing these values, you can see what FILE, plugin_dir_url(), and
plugins_url() are returning in your specific environment. This may help
you identify if there's any unexpected behavior or if there's something
specific to your setup causing the issue.
In summary, the behavior you described is not typical for plugin_dir_url()
and plugins_url(), and it's likely due to some configuration or custom
code in your environment. Debugging and updating your PHP version could
help resolve the problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9420#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list