Skip to content

Commit

Permalink
Formatting: Ensure correct slug when attempting to autolink class met…
Browse files Browse the repository at this point in the history
…hod names.

Fixes #545.
  • Loading branch information
coffee2code committed Dec 2, 2024
1 parent 623f566 commit 31ddf14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ function( $matches ) {

// Only link actually parsed methods.
$args = array(
'post_type' => 'wp-parser-method',
'name' => $name,
'post_type' => 'wp-parser-method',
'name' => str_replace( '::', '-', $name ),
'posts_per_page' => 1,
);

Expand Down

0 comments on commit 31ddf14

Please sign in to comment.