Opened 3 years ago
Closed 3 years ago
#54891 closed defect (bug) (reported-upstream)
Functions broken links at plugin editor
Reported by: | mehedi890 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.8.3 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
I found some broken links at plugin editor. I'm currently using WordPress 5.8.3 version. Here is a 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 attachment : https://prnt.sc/26ijpd7 https://prnt.sc/26ijrrh
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the ticket.
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. As this Trac is used for enhancements and bug reporting for the WordPress core software, this would probably be better reported on https://meta.trac.wordpress.org.