Make WordPress Core


Ignore:
Timestamp:
12/13/2011 11:45:31 PM (14 years ago)
Author:
ryan
Message:

Use one space, not two, after trailing punctuation. fixes #19537

File:
1 edited

Legend:

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

    r19444 r19593  
    494494 * @param int|object $post A post
    495495 *
    496  * @return mixed The format if successful. False if no format is set.  WP_Error if errors.
     496 * @return mixed The format if successful. False if no format is set. WP_Error if errors.
    497497 */
    498498function get_post_format( $post = null ) {
     
    532532 *
    533533 * @param int|object $post The post for which to assign a format
    534  * @param string $format  A format to assign.  Use an empty string or array to remove all formats from the post.
     534 * @param string $format  A format to assign. Use an empty string or array to remove all formats from the post.
    535535 * @return mixed WP_Error on error. Array of affected term IDs on success.
    536536 */
     
    888888 *     for documentation. Defaults to none.
    889889 * - register_meta_box_cb - Provide a callback function that will be called when setting up the
    890  *     meta boxes for the edit form.  Do remove_meta_box() and add_meta_box() calls in the callback.
     890 *     meta boxes for the edit form. Do remove_meta_box() and add_meta_box() calls in the callback.
    891891 * - taxonomies - An array of taxonomy identifiers that will be registered for the post type.
    892892 *     Default is no taxonomies. Taxonomies can be registered later with register_taxonomy() or
     
    953953        $args->show_in_admin_bar = true === $args->show_in_menu;
    954954
    955     // Whether to show this type in nav-menus.php.  Defaults to the setting for public.
     955    // Whether to show this type in nav-menus.php. Defaults to the setting for public.
    956956    if ( null === $args->show_in_nav_menus )
    957957        $args->show_in_nav_menus = $args->public;
     
    20062006    }
    20072007
    2008     // Do raw query.  wp_get_post_revisions() is filtered
     2008    // Do raw query. wp_get_post_revisions() is filtered
    20092009    $revision_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'revision'", $postid ) );
    2010     // Use wp_delete_post (via wp_delete_post_revision) again.  Ensures any meta/misplaced data gets cleaned up.
     2010    // Use wp_delete_post (via wp_delete_post_revision) again. Ensures any meta/misplaced data gets cleaned up.
    20112011    foreach ( $revision_ids as $revision_id )
    20122012        wp_delete_post_revision( $revision_id );
     
    24832483        $post_name = '';
    24842484
    2485     // Create a valid post name.  Drafts and pending posts are allowed to have an empty
     2485    // Create a valid post name. Drafts and pending posts are allowed to have an empty
    24862486    // post name.
    24872487    if ( empty($post_name) ) {
     
    41514151 * @since 3.0.0
    41524152 * @param string $post_type Post type.
    4153  * @param bool $full Optional.  Returns a full WHERE statement instead of just an 'andalso' term.
    4154  * @param int $post_author Optional.  Query posts having a single author ID.
     4153 * @param bool $full Optional. Returns a full WHERE statement instead of just an 'andalso' term.
     4154 * @param int $post_author Optional. Query posts having a single author ID.
    41554155 * @return string SQL WHERE code that can be added to a query.
    41564156 */
     
    49034903 * @param int|object $post Post ID or post object
    49044904 * @param string $output Optional. OBJECT, ARRAY_A, or ARRAY_N.
    4905  * @param string $filter Optional sanitation filter.  @see sanitize_post()
     4905 * @param string $filter Optional sanitation filter. @see sanitize_post()
    49064906 * @return mixed Null if error or post object if success
    49074907 */
     
    51115111        return 0;
    51125112
    5113     // There's a loop, but it doesn't contain $post_ID.  Break the loop.
     5113    // There's a loop, but it doesn't contain $post_ID. Break the loop.
    51145114    foreach ( array_keys( $loop ) as $loop_member )
    51155115        wp_update_post( array( 'ID' => $loop_member, 'post_parent' => 0 ) );
Note: See TracChangeset for help on using the changeset viewer.