Ryan McCue

Results 402 comments of Ryan McCue

> You mean do a patch for WP-Parser, or me just implement it for my own use case? The latter; WP doesn't support it out of the box, and I...

In any case, xref is [currently broken](https://xref.wordpress.org/branches/3.9/), so this should be low priority.

That said, could link to Trac: ``` php parser_source_link( 'https://core.trac.wordpress.org/browser/trunk/src/%1$s#L%2$s' ); ```

> Let's take a basic action of a theme calling do_action( 'wp_head' ). Parsing the theme, this makes it look like the hook originated in this theme, when really it...

The [autoloader we use at Human Made](https://github.com/humanmade/hm-base/blob/master/content/plugins-mu/autoloader.php) fits with the WP file naming scheme (`WP_Some_Class` -> `class-wp-some-class.php`) and supports namespaces.

This is also being used with some small changes [for the new W.org plugin directory](https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-autoloader.php).

Here's how I did it, but it breaks in certain circumstances: ``` php add_filter( 'dpa_maybe_unlock_achievement_progress_increment', array( $this, 'maybe_decrement')); add_action( 'sennza_likes', array( $this, 'run_sennza_likes' ), 10 ); add_action( 'sennza_likes_unlike', array( $this,...

The GIF isn't loading for me, but this is part of Accelerate and should be handled there.

As an aside, Extended CPTs also does an unbounded, uncached `SELECT DISTINCT post_author`, presumably for the dropdown list?