Make WordPress Core


Ignore:
Timestamp:
12/06/2014 09:23:52 PM (10 years ago)
Author:
DrewAPicture
Message:

Convert various uses of (optional) in core parameter descriptions to use the style prescribed in the inline documentation standards for PHP.

The style for marking parameters optional in inline PHP docs is: @param type $var Optional. Description. Accepts. Default., where Accepts can be omitted on a case-by-case basis.

Props coffee2code.
Fixes #30591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r30680 r30753  
    11171117
    11181118/**
    1119  * {@internal Missing Short Description}}
     1119 * Get a sample permalink based off of the post name.
    11201120 *
    11211121 * @since 2.5.0
    11221122 *
    1123  * @param integer $id    Post ID or post object.
    1124  * @param string $title (optional) Title
    1125  * @param string $name (optional) Name
    1126  * @return array With two entries of type string
     1123 * @param int    $id    Post ID or post object.
     1124 * @param string $title Optional. Title. Default null.
     1125 * @param string $name  Optional. Name. Default null.
     1126 * @return array Arra yith two entries of type string.
    11271127 */
    11281128function get_sample_permalink($id, $title = null, $name = null) {
     
    11861186 * @since 2.5.0
    11871187 *
    1188  * @param integer $id Post ID or post object.
    1189  * @param string $new_title Optional. New title.
    1190  * @param string $new_slug Optional. New slug.
     1188 * @param int    $id        Post ID or post object.
     1189 * @param string $new_title Optional. New title. Default null.
     1190 * @param string $new_slug  Optional. New slug. Default null.
    11911191 * @return string The HTML of the sample permalink slug editor.
    11921192 */
Note: See TracChangeset for help on using the changeset viewer.