WordPress / wporg-developer

WordPress.org Developer theme
https://developer.wordpress.org/
60 stars 23 forks source link

Code example contain class location #515

Open pkevan opened 4 months ago

pkevan commented 4 months ago

When writing out example code, the title of the code block has the location of the class it belongs to, which feels unnecessary and isn't accurate. e.g. wp-includes/class-wp-query.php

Screenshot 2024-05-07 at 17 02 30

The label should only appear in the code reference which usually is placed at the end of the documentation.

Presumably this is related to the code parser, and not the content of the documentation but I ran out of time looking.