Skip to content

Cache function calls in Form Input and LoginOut blocks #70998

@dhananjaykuber

Description

@dhananjaykuber

Form Input Block (/packages/block-library/src/form-input/index.php) & LoginOut Block (/packages/block-library/src/loginout/index.php)

Issue: Multiple calls to is_user_logged_in()
Impact: Repeated expensive authentication checks on block

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions