Automattic / Automattic/VIP-Coding-Standards

Catch `setup_post_data` call without checking user capabilities in templates

Open
#38 3 comments 0 reactions 1 assignee Claimed by @david-binda View on GitHub
Type: Enhancement
Dominant language
PHP
Stars
261
Forks
44
Avg merge
19m
Merged PRs (30d)
1

Description

eg:

```
$post_id = get_query_var( 'post_id', null );
$post = get_post( $post_id );
setup_post_data( $post );
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.