Docs: Remove inline @see tags from function, class, and method references in inline docs.
Known functions, classes, and methods are now auto-linked in Code Reference pages following #meta1483. Note: Hook references are still linked via inline `@see` tags due to the unlikelihood of reliably matching for known hooks based on a RegEx pattern. See #32246. Built from https://develop.svn.wordpress.org/trunk@37342 git-svn-id: http://core.svn.wordpress.org/trunk@37308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -903,7 +903,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||
* Default is value of $labels['name'].
|
||||
* @type array $labels An array of labels for this post type. If not set, post
|
||||
* labels are inherited for non-hierarchical types and page
|
||||
* labels for hierarchical ones. {@see get_post_type_labels()}.
|
||||
* labels for hierarchical ones. get_post_type_labels().
|
||||
* @type string $description A short descriptive summary of what the post type is.
|
||||
* Default empty.
|
||||
* @type bool $public Whether a post type is intended for use publicly either via
|
||||
@@ -916,7 +916,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||
* @type bool $exclude_from_search Whether to exclude posts with this post type from front end search
|
||||
* results. Default is the opposite value of $public.
|
||||
* @type bool $publicly_queryable Whether queries can be performed on the front end for the post type
|
||||
* as part of {@see parse_request()}. Endpoints would include:
|
||||
* as part of parse_request(). Endpoints would include:
|
||||
* * ?post_type={post_type_key}
|
||||
* * ?{post_type_key}={single_post_slug}
|
||||
* * ?{post_type_query_var}={single_post_slug}
|
||||
@@ -947,17 +947,17 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||
* array('story', 'stories'). Default 'post'.
|
||||
* @type array $capabilities Array of capabilities for this post type. $capability_type is used
|
||||
* as a base to construct capabilities by default.
|
||||
* {@see get_post_type_capabilities()}.
|
||||
* See get_post_type_capabilities().
|
||||
* @type bool $map_meta_cap Whether to use the internal default meta capability handling.
|
||||
* Default false.
|
||||
* @type array $supports An alias for calling {@see add_post_type_support()} directly.
|
||||
* Defaults to array containing 'title' & 'editor'.
|
||||
* @type array $supports An alias for calling add_post_type_support() directly. Defaults to array
|
||||
* containing 'title' & 'editor'.
|
||||
* @type callable $register_meta_box_cb Provide a callback function that sets up the meta boxes for the
|
||||
* edit form. Do remove_meta_box() and add_meta_box() calls in the
|
||||
* callback. Default null.
|
||||
* @type array $taxonomies An array of taxonomy identifiers that will be registered for the
|
||||
* post type. Taxonomies can be registered later with
|
||||
* {@see register_taxonomy()} or {@see register_taxonomy_for_object_type()}.
|
||||
* post type. Taxonomies can be registered later with register_taxonomy()
|
||||
* or register_taxonomy_for_object_type().
|
||||
* Default empty array.
|
||||
* @type bool|string $has_archive Whether there should be post type archives, or if a string, the
|
||||
* archive slug to use. Will generate the proper rewrite rules if
|
||||
@@ -5488,7 +5488,7 @@ function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) {
|
||||
*
|
||||
* @param string $date Date the last post was published.
|
||||
* @param string $timezone Location to use for getting the post published date.
|
||||
* See {@see get_lastpostdate()} for accepted `$timezone` values.
|
||||
* See get_lastpostdate() for accepted `$timezone` values.
|
||||
*/
|
||||
return apply_filters( 'get_lastpostdate', _get_last_post_time( $timezone, 'date', $post_type ), $timezone );
|
||||
}
|
||||
@@ -5503,7 +5503,7 @@ function get_lastpostdate( $timezone = 'server', $post_type = 'any' ) {
|
||||
* @since 1.2.0
|
||||
* @since 4.4.0 The `$post_type` argument was added.
|
||||
*
|
||||
* @param string $timezone Optional. The timezone for the timestamp. See {@see get_lastpostdate()}
|
||||
* @param string $timezone Optional. The timezone for the timestamp. See get_lastpostdate()
|
||||
* for information on accepted values.
|
||||
* Default 'server'.
|
||||
* @param string $post_type Optional. The post type to check. Default 'any'.
|
||||
@@ -5518,7 +5518,7 @@ function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) {
|
||||
* @param string $lastpostmodified Date the last post was modified.
|
||||
* Returning anything other than false will short-circuit the function.
|
||||
* @param string $timezone Location to use for getting the post modified date.
|
||||
* See {@see get_lastpostdate()} for accepted `$timezone` values.
|
||||
* See get_lastpostdate() for accepted `$timezone` values.
|
||||
* @param string $post_type The post type to check.
|
||||
*/
|
||||
$lastpostmodified = apply_filters( 'pre_get_lastpostmodified', false, $timezone, $post_type );
|
||||
@@ -5540,7 +5540,7 @@ function get_lastpostmodified( $timezone = 'server', $post_type = 'any' ) {
|
||||
*
|
||||
* @param string $lastpostmodified Date the last post was modified.
|
||||
* @param string $timezone Location to use for getting the post modified date.
|
||||
* See {@see get_lastpostdate()} for accepted `$timezone` values.
|
||||
* See get_lastpostdate() for accepted `$timezone` values.
|
||||
*/
|
||||
return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone );
|
||||
}
|
||||
@@ -5845,8 +5845,7 @@ function _transition_post_status( $new_status, $old_status, $post ) {
|
||||
*
|
||||
* @param int $deprecated Not used. Can be set to null. Never implemented. Not marked
|
||||
* as deprecated with _deprecated_argument() as it conflicts with
|
||||
* wp_transition_post_status() and the default filter for
|
||||
* {@see _future_post_hook()}.
|
||||
* wp_transition_post_status() and the default filter for _future_post_hook().
|
||||
* @param WP_Post $post Post object.
|
||||
*/
|
||||
function _future_post_hook( $deprecated, $post ) {
|
||||
|
||||
Reference in New Issue
Block a user