[wp-trac] [WordPress Trac] #25669: Introduce helper function for AJAX checks
WordPress Trac
noreply at wordpress.org
Thu Aug 18 10:35:40 UTC 2016
#25669: Introduce helper function for AJAX checks
------------------------------------+------------------------------
Reporter: toscho | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+------------------------------
Comment (by swissspidy):
Replying to [comment:20 Mte90]:
> From slack log is proposed to rename that function as `wp_is_ajax()`,
improve the docs, add unit tests and few examples.
> Someone can look on that steps?
Do you have the link to the Slack conversation by chance? Because earlier
the consensus seemed to be `is_wp_ajax_request()` or `is_wp_ajax()`.
Replying to [comment:22 Mte90]:
[attachment:25669.4.patch] improves the docs already quite a bit (thanks
@sebastian.pisula!). However, the filter needs to be documented and a
description added to the `@return`.
There's a detailed page about the WordPress PHP documentation standards:
https://make.wordpress.org/core/handbook/best-practices/inline-
documentation-standards/php/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25669#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list