WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#41363 new defect (bug)

Document nocache_headers() usage in wp-admin/admin-post.php

Reported by: ronakganatra Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: docs Cc:

Description

nocache_headers(); is used but unclear as to what it actually does. documentation need improvement

Attachments (1)

41363.patch (431 bytes) - added by ronakganatra 11 months ago.
added description for used function nocache_headers();

Download all attachments as: .zip

Change History (3)

@ronakganatra
11 months ago

added description for used function nocache_headers();

#1 @SergeyBiryukov
11 months ago

  • Component changed from Editor to Administration

Hi @ronakganatra, welcome to WordPress Trac! Thanks for the patch.

There are more than 15 instances of nocache_headers() calls in core though, adding a comment to only one of them seems inconsistent. The function itself already has a description, maybe it should be made clearer?

#2 @SergeyBiryukov
11 months ago

  • Summary changed from Needs improvements in the documentation of the function to Document nocache_headers() usage in wp-admin/admin-post.php
Note: See TracTickets for help on using tickets.