Skip to content

Commit

Permalink
change parameter name
Browse files Browse the repository at this point in the history
to be more specific, two letter parameter names are too short for the wp standards
  • Loading branch information
jdub233 committed Nov 1, 2021
1 parent d355c54 commit 9814093
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ function get_only_parents() {
$parent_ids = array_keys( $sections['sections'] );

// Use get_nav_posts to load titles.
$parents = array_map( function( $id ) {
$parents = array_map( function( $parent_id ) {
return array(
'postid' => $id,
'title' => html_entity_decode( \get_the_title( $id ), ENT_QUOTES, 'UTF-8' ),
'type' => \get_post_type( $id ),
'postid' => $parent_id,
'title' => html_entity_decode( \get_the_title( $parent_id ), ENT_QUOTES, 'UTF-8' ),
'type' => \get_post_type( $parent_id ),
);
}, $parent_ids );

Expand Down

0 comments on commit 9814093

Please sign in to comment.