Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

use proper checks in update_meta_value etc #2801

Description

@tharsheblows

Currently when you update a meta value, it checks current_user_can('edit_post_meta') regardless of the actual object type. It needs to use object type dependent capability checks. These aren't in core yet but there's a ticket here:
https://core.trac.wordpress.org/ticket/38284

A workaround for the time being would be to check edit_{$object_type} I suppose.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions