WordPress.org

Make WordPress Core

Ticket #15438: t15438-post-php-since.diff

File t15438-post-php-since.diff, 2.9 KB (added by demetris, 8 years ago)
  • wp-includes/post.php

     
    1313
    1414/**
    1515 * Creates the initial post types when 'init' action is fired.
     16 *
     17 * @since 2.9.0
    1618 */
    1719function create_initial_post_types() {
    1820        register_post_type( 'post', array(
     
    476478/**
    477479 * Retrieve the format for a post
    478480 *
     481 * @since 3.1.0
     482 *
    479483 * @param int|object $post A post
    480484 *
    481485 * @return mixed The format if successful. False if no format is set.  WP_Error if errors.
     
    494498}
    495499
    496500/**
    497  *  Check if a post has a particular format
     501 * Check if a post has a particular format
    498502 *
    499503 * @since 3.1.0
    500504 * @uses has_term()
     
    510514/**
    511515 * Assign a format to a post
    512516 *
     517 * @since 3.1.0
     518 *
    513519 * @param int|object $post The post for which to assign a format
    514520 * @param string $format  A format to assign.  Use an empty string or array to remove all formats from the post.
    515521 * @return mixed WP_Error on error. Array of affected term IDs on success.
     
    14211427 *
    14221428 * If the meta field for the post does not exist, it will be added.
    14231429 *
    1424  * @since 1.5
     1430 * @since 1.5.0
    14251431 * @uses $wpdb
    14261432 * @link http://codex.wordpress.org/Function_Reference/update_post_meta
    14271433 *
     
    27372743/**
    27382744 * Computes a unique slug for the post, when given the desired slug and some post details.
    27392745 *
     2746 * @since 2.8.0
     2747 *
    27402748 * @global wpdb $wpdb
    27412749 * @global WP_Rewrite $wp_rewrite
    27422750 * @param string $slug the desired slug (post_name)
     
    32213229 * function to traverse and return all the nested children post names of a root page.
    32223230 * $children contains parent-chilren relations
    32233231 *
     3232 * @since 2.9.0
    32243233 */
    32253234function _page_traverse_name( $page_id, &$children, &$result ){
    32263235        if ( isset( $children[ $page_id ] ) ){
     
    45454554 * complete. The post parent will be an ancestor and the parent of the post
    45464555 * parent will be an ancestor. There will only be two ancestors at the most.
    45474556 *
    4548  * @since unknown
     4557 * @since 2.5.0
    45494558 * @access private
    45504559 * @uses $wpdb
    45514560 *
     
    50305039/**
    50315040 * Default post information to use when populating the "Write Post" form.
    50325041 *
    5033  * @since unknown
     5042 * @since 2.0.0
    50345043 *
    5035  *@param string A post type string, defaults to 'post'.
     5044 * @param string A post type string, defaults to 'post'.
    50365045 * @return object stdClass object containing all the default post data as attributes
    50375046 */
    50385047function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) {
     
    52285237
    52295238/**
    52305239 * Returns an array of post format slugs to their translated and pretty display versions
    5231  *
     5240 *
     5241 * @since 3.1.0
     5242 *
    52325243 * @return array The array of translations
    52335244 */
    52345245function get_post_format_strings() {
     
    52495260/**
    52505261 * Returns a pretty, translated version of a post format slug
    52515262 *
     5263 * @since 3.1.0
     5264 *
    52525265 * @param string $slug A post format slug
    52535266 * @return string The translated post format name
    52545267 */