Hook docs spacing and standards fixes for wp-admin/includes/ajax-actions.php.

See #25374.


git-svn-id: https://develop.svn.wordpress.org/trunk@26981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2014-01-18 17:05:38 +00:00
parent f1bfee89f9
commit f2d4a6aa36
1 changed files with 9 additions and 4 deletions

View File

@ -1230,7 +1230,8 @@ function wp_ajax_menu_get_metabox() {
*
* @since 3.0.0
*
* @param object $menus_meta_box_object A nav menu meta box object, such as Page, Post, Category, Tag, etc.
* @param object $menus_meta_box_object A nav menu meta box object, such as Page,
* Post, Category, Tag, etc.
*/
$item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object );
ob_start();
@ -1830,7 +1831,8 @@ function wp_ajax_wp_remove_post_lock() {
*
* @since 3.3.0
*
* @param int $interval The interval in seconds the post lock duration should last, plus 5 seconds. Default 150.
* @param int $interval The interval in seconds the post lock duration
* should last, plus 5 seconds. Default 150.
*/
$new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1];
update_post_meta( $post_id, '_edit_lock', $new_lock, implode( ':', $active_lock ) );
@ -1904,11 +1906,14 @@ function wp_ajax_query_attachments() {
$query['post_status'] .= ',private';
/**
* Filter the arguments passed to WP_Query during an AJAX call for querying attachments.
* Filter the arguments passed to WP_Query during an AJAX
* call for querying attachments.
*
* @since 3.7.0
*
* @param array $query An array of query variables. @see WP_Query::parse_query()
* @see WP_Query::parse_query()
*
* @param array $query An array of query variables.
*/
$query = apply_filters( 'ajax_query_attachments_args', $query );
$query = new WP_Query( $query );