Making WordPress.org

Opened 20 months ago

Last modified 20 months ago

#6039 new defect (bug)

Functions broken links at plugin editor

Reported by: mehedi890's profile mehedi890 Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Attachments (2)

plugin-editor.png (35.7 KB) - added by mehedi890 20 months ago.
broken-link.png (15.3 KB) - added by mehedi890 20 months ago.

Download all attachments as: .zip

Change History (5)

#1 follow-up: @SergeyBiryukov
20 months ago

  • Component changed from Plugin Directory to Developer Hub

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.

#2 in reply to: ↑ 1 @mehedi890
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 @SergeyBiryukov
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.