Make WordPress Core


Ignore:
Timestamp:
11/26/2009 11:29:54 AM (15 years ago)
Author:
azaozz
Message:

Fix notices and phpdoc, props hakre, fixes #10758

File:
1 edited

Legend:

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

    r12246 r12284  
    934934 * @since unknown
    935935 *
    936  * @param unknown_type $id
    937  * @param unknown_type $title
    938  * @param unknown_type $name
    939  * @return unknown
     936 * @param int|object $id    Post ID or post object.
     937 * @param string $title (optional) Title
     938 * @param string $name (optional) Name
     939 * @return array With two entries of type string
    940940 */
    941941function get_sample_permalink($id, $title = null, $name = null) {
     
    952952    if (in_array($post->post_status, array('draft', 'pending'))) {
    953953        $post->post_status = 'publish';
    954         $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
     954        $post->post_name = sanitize_title($post->post_name ? $post->post_name : $post->post_title, $post->ID);
    955955    }
    956956
     
    960960    // Note: if empty name is supplied -- use the title instead, see #6072
    961961    if (!is_null($name)) {
    962         $post->post_name = sanitize_title($name? $name : $title, $post->ID);
     962        $post->post_name = sanitize_title($name ? $name : $title, $post->ID);
    963963    }
    964964
     
    988988
    989989/**
    990  * {@internal Missing Short Description}}
    991  *
    992  * @since unknown
    993  *
    994  * @param unknown_type $id
    995  * @param unknown_type $new_title
    996  * @param unknown_type $new_slug
    997  * @return unknown
     990 * sample permalink html
     991 *
     992 * intended to be used for the inplace editor of the permalink post slug on in the post (and page?) editor.
     993 *
     994 * @since unknown
     995 *
     996 * @param int|object $id Post ID or post object.
     997 * @param string $new_title (optional) New title 
     998 * @param string $new_slug (optional) New slug
     999 * @return string intended to be used for the inplace editor of the permalink post slug on in the post (and page?) editor.
    9981000 */
    9991001function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
Note: See TracChangeset for help on using the changeset viewer.