Skip to content

Commit

Permalink
Post navigation link: Coding standard fixes (#58380)
Browse files Browse the repository at this point in the history
Update an inline comment to follow the PHP inline documentation standards.
  • Loading branch information
carolinan authored and cbravobernal committed Jan 30, 2024
1 parent 2ef4028 commit 5313e53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/post-navigation-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ function render_block_core_post_navigation_link( $attributes, $content ) {
$in_same_term = isset( $attributes['inSameTerm'] ) ? $attributes['inSameTerm'] : false;
$taxonomy = isset( $attributes['taxonomy'] ) && $in_same_term ? $attributes['taxonomy'] : '';

/**
/*
* The dynamic portion of the function name, `$navigation_type`,
* Refers to the type of adjacency, 'next' or 'previous'.
*
* @See https://developer.wordpress.org/reference/functions/get_previous_post_link/
* @See https://developer.wordpress.org/reference/functions/get_next_post_link/
* @see https://developer.wordpress.org/reference/functions/get_previous_post_link/
* @see https://developer.wordpress.org/reference/functions/get_next_post_link/
*/
$get_link_function = "get_{$navigation_type}_post_link";

Expand Down

0 comments on commit 5313e53

Please sign in to comment.