Skip to content

Avoid generic function names for page list block internal functions#32736

Merged
mcsf merged 1 commit intotrunkfrom
update/page-list-block-function-names
Jun 16, 2021
Merged

Avoid generic function names for page list block internal functions#32736
mcsf merged 1 commit intotrunkfrom
update/page-list-block-function-names

Conversation

@youknowriad
Copy link
Copy Markdown
Contributor

Addresses #28265 (comment)

I'm not sure these are the best names but I tried renaming these functions so they don't look as generic WP APIs and more internal functions used by the block's server side code.

@youknowriad youknowriad added [Type] Code Quality Issues or PRs that relate to code quality Backport to WP Beta/RC [Block] Page List Affects the Page List Block labels Jun 16, 2021
@youknowriad youknowriad self-assigned this Jun 16, 2021
@youknowriad youknowriad requested a review from ajitbohra as a code owner June 16, 2021 13:12
Copy link
Copy Markdown
Contributor

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any alternative proposal for the names, but these are pretty self explanatory about their scope.

Thanks Riad!

Copy link
Copy Markdown
Contributor

@mcsf mcsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly what I had in my workdir. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Page List Affects the Page List Block [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants