Make WordPress Core


Ignore:
Timestamp:
09/10/2019 07:22:07 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix placement of some duplicate hook references.

Hook documentation should be on the line directly above the line containing the do_action() or apply_filters() call. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of duplicate hook references.

Includes minor code layout fixes.

See #47110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php

    r45811 r46088  
    359359                        }
    360360
    361                         /**
    362                          * This filter is documented in wp-admin/post.php.
    363                          */
     361                        /** This filter is documented in wp-admin/post.php */
    364362                        do_action( 'wp_creating_autosave', $new_autosave );
    365363
Note: See TracChangeset for help on using the changeset viewer.