Opened 20 months ago
Last modified 20 months ago
#6039 new defect (bug)
Functions broken links at plugin editor
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | |
Cc: |
Description
I found some broken links at plugin editor. I'm currently using WordPress 5.8.3 version. Here is the list of Functions & Classes:
- WC() https://developer.wordpress.org/reference/functions/WC/
- WP_Query() https://developer.wordpress.org/reference/functions/WP_Query/
- wc_get_checkout_url() https://developer.wordpress.org/reference/functions/wc_get_checkout_url/
- wc_get_template_part() https://developer.wordpress.org/reference/functions/wc_get_template_part/
- woocommerce_product_loop_end() https://developer.wordpress.org/reference/functions/woocommerce_product_loop_end/
- woocommerce_product_loop_start() https://developer.wordpress.org/reference/functions/woocommerce_product_loop_start/
- woocommerce_template_loop_price() https://developer.wordpress.org/reference/functions/woocommerce_template_loop_price/
Here is the attachments: https://prnt.sc/26ijpd7 https://prnt.sc/26ijrrh
Attachments (2)
Change History (5)
#2
in reply to:
↑ 1
@
20 months ago
WP_Query class is also in there
WP_Query() https://developer.wordpress.org/reference/functions/WP_Query/
I think this also needs to be fixed.
#3
@
20 months ago
Right, the correct URL for WP_Query
would be this one:
https://developer.wordpress.org/reference/classes/wp_query/
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Meta Trac! Thanks for the report.
Just copying my response from #WP54891 for some more context.
It looks like most of these functions come from WooCommerce and not from WordPress core, so they don't exist in the function reference.
The Look Up button in the plugin/theme editor appears to send the function name to an endpoint like this:
https://api.wordpress.org/core/handbook/1.0/?function=woocommerce_template_loop_price
which then redirects to the resulting URL.
Apparently the endpoint needs some adjustment to avoid linking WooCommerce functions to the WordPress core function reference.