Skip to content

Fixes #64825: Twenty Seventeen: Stop passing get_the_ID() to twentyseventeen_edit_link(), simplify docblock. #11209

Open
PANawkar wants to merge 2 commits intoWordPress:trunkfrom
PANawkar:64825-local
Open

Fixes #64825: Twenty Seventeen: Stop passing get_the_ID() to twentyseventeen_edit_link(), simplify docblock. #11209
PANawkar wants to merge 2 commits intoWordPress:trunkfrom
PANawkar:64825-local

Conversation

@PANawkar
Copy link

@PANawkar PANawkar commented Mar 9, 2026

Stop passing get_the_ID() to twentyseventeen_edit_link()

Trac ticket: https://core.trac.wordpress.org/ticket/64825

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @pratik.nawkar@xecurify.com.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

Core Committers: Use this line as a base for the props when committing in SVN:

Props pratiknawkar94, mukesh27, sabernhardt.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

Comment on lines -113 to -118
* Returns an accessibility-friendly link to edit a post or page.
*
* This also gives a little context about what exactly we're editing
* (post or page?) so that users understand a bit more where they are in terms
* of the template hierarchy and their content. Helpful when/if the single-page
* layout with multiple posts/pages shown gets confusing.
Copy link
Member

Choose a reason for hiding this comment

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

Should be reverted

Copy link

@sabernhardt sabernhardt Mar 9, 2026

Choose a reason for hiding this comment

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

I think the documentation update is more important than a PHPStan-related change. The function does not give any page/post context since that was removed in PR 89, before version 1.0.

Copy link
Member

@mukeshpanchal27 mukeshpanchal27 left a comment

Choose a reason for hiding this comment

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

Looks good.

The function documentation update just needs to be reverted, and then it should be ready for commit.

Co-authored-by: Stephen A. Bernhardt <sabernhardt@yahoo.com>
@PANawkar PANawkar requested a review from sabernhardt March 9, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants