Make WordPress Core

Ticket #31008: 31008.patch

File 31008.patch, 5.0 KB (added by ipm-frommen, 10 years ago)
  • wp-includes/wp-diff.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    4242        public $_trailing_context_lines = 10000;
    4343
    4444        /**
    45          * {@internal Missing Description}}
     45         * Threshold for when a diff should be saved or omitted.
    4646         *
    4747         * @var float
    4848         * @access protected
  • wp-admin/includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    733733//
    734734
    735735/**
    736  * {@internal Missing Short Description}}
     736 * Add post meta data defined in $_POST superglobal for post with given ID.
    737737 *
    738738 * @since 1.2.0
    739739 *
     
    772772} // add_meta
    773773
    774774/**
    775  * {@internal Missing Short Description}}
     775 * Delete post meta data by meta ID.
    776776 *
    777777 * @since 1.2.0
    778778 *
     
    803803}
    804804
    805805/**
    806  * {@internal Missing Short Description}}
     806 * Get post meta data by meta ID.
    807807 *
    808808 * @since 2.1.0
    809809 *
     
    815815}
    816816
    817817/**
    818  * {@internal Missing Short Description}}
     818 * Get meta data for given post ID.
    819819 *
    820  * Some postmeta stuff.
    821  *
    822820 * @since 1.2.0
    823821 *
    824822 * @param int $postid
     
    833831}
    834832
    835833/**
    836  * {@internal Missing Short Description}}
     834 * Update post meta data by meta ID.
    837835 *
    838836 * @since 1.2.0
    839837 *
     
    10061004}
    10071005
    10081006/**
    1009  * {@internal Missing Short Description}}
     1007 * Get all available post MIME types for given post type (default is attachment).
    10101008 *
    10111009 * @since 2.5.0
    10121010 *
  • wp-includes/wp-db.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    230230        var $ready = false;
    231231
    232232        /**
    233          * {@internal Missing Description}}
     233         * Blog ID.
    234234         *
    235235         * @since 3.0.0
    236236         * @access public
     
    239239        public $blogid = 0;
    240240
    241241        /**
    242          * {@internal Missing Description}}
     242         * Site ID.
    243243         *
    244244         * @since 3.0.0
    245245         * @access public
  • wp-admin/includes/taxonomy.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    2929}
    3030
    3131/**
    32  * {@internal Missing Short Description}}
     32 * Get category object for given ID and 'edit' context.
    3333 *
    3434 * @since 2.0.0
    3535 *
     
    4343}
    4444
    4545/**
    46  * {@internal Missing Short Description}}
     46 * Add a new category to the database, if it does not already exist.
    4747 *
    4848 * @since 2.0.0
    4949 *
     
    6464 * @since 2.0.0
    6565 *
    6666 * @param array $categories List of categories to create.
    67  * @param int   $post_id    Optional. The post ID. Default empty.
    68  * @return List of categories to create for the given post.
     67 * @param int   $post_id    Optional. The post ID. Default 0.
     68 * @return array
    6969 */
    70 function wp_create_categories( $categories, $post_id = '' ) {
     70function wp_create_categories( $categories, $post_id = 0 ) {
    7171        $cat_ids = array ();
    7272        foreach ( $categories as $category ) {
    7373                if ( $id = category_exists( $category ) ) {
     
    189189//
    190190
    191191/**
    192  * {@internal Missing Short Description}}
     192 * Check whether post tag with given name exists.
    193193 *
    194194 * @since 2.3.0
    195195 *
     
    201201}
    202202
    203203/**
    204  * {@internal Missing Short Description}}
     204 * Add a new tag to the database, if it does not already exist.
    205205 *
    206206 * @since 2.3.0
    207207 *
     
    213213}
    214214
    215215/**
    216  * {@internal Missing Short Description}}
     216 * Get comma-separated list of tags available to edit.
    217217 *
    218218 * @since 2.3.0
    219219 *
    220  * @param int $post_id
     220 * @param int    $post_id
     221 * @param string $taxonomy The taxonomy for which to retrieve terms. Default 'post_tag'.
    221222 * @return string|bool|WP_Error
    222223 */
    223224function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
     
    225226}
    226227
    227228/**
    228  * {@internal Missing Short Description}}
     229 * Get comma-separated list of terms available to edit.
    229230 *
    230231 * @since 2.8.0
    231232 *
    232  * @param int $post_id
     233 * @param int    $post_id
     234 * @param string $taxonomy The taxonomy for which to retrieve terms. Default 'post_tag'.
    233235 * @return string|bool|WP_Error
    234236 */
    235237function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
     
    272274}
    273275
    274276/**
    275  * {@internal Missing Short Description}}
     277 * Add a new term to the database, if it does not already exist.
    276278 *
    277279 * @since 2.8.0
    278280 *
    279281 * @param int|string $tag_name
     282 * @param string $taxonomy The taxonomy for which to retrieve terms. Default 'post_tag'.
    280283 * @return array|WP_Error
    281284 */
    282285function wp_create_term($tag_name, $taxonomy = 'post_tag') {