[wp-trac] [WordPress Trac] #21220: Misspelled @return statement and minor PHPDoc fixes in wp-includes/post-template.php
WordPress Trac
noreply at wordpress.org
Tue Jan 2 13:40:18 UTC 2024
#21220: Misspelled @return statement and minor PHPDoc fixes in wp-includes/post-
template.php
-------------------------+---------------------
Reporter: c3mdigital | Owner: ryan
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.5
Component: Inline Docs | Version: 2.7
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+---------------------
Comment (by blackmorena):
The behavior you described with plugin_dir_url() and plugins_url() in PHP
5.2.17 is not expected, and it seems like there might be some issue or
misconfiguration in your setup causing this behavior.
plugin_dir_url() and plugins_url() functions are WordPress functions 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.
Update PHP: PHP 5.2 is very old and no longer supported. Consider updating
your PHP version to a more recent and supported version (PHP 7.0 or
later).
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21220#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list