Make WordPress Core

Ticket #11386: 11386.8.diff

File 11386.8.diff, 9.3 KB (added by nacin, 15 years ago)

All remaining missing version numbers

  • wp-includes/post-template.php

     
    903903 */
    904904function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
    905905        if ( !empty( $deprecated ) )
    906                 _deprecated_argument( __FUNCTION__, '0.0' );
     906                _deprecated_argument( __FUNCTION__, '2.5' );
    907907
    908908        if ( $fullsize )
    909909                echo wp_get_attachment_link($id, 'full', $permalink);
  • wp-includes/post.php

     
    35823582 * @since 2.3.0
    35833583 * @access private
    35843584 *
    3585  * @param int $deprecated Not Used. Can be set to null.
     3585 * @param int $deprecated Never used. Can be set to null.
    35863586 * @param object $post Object type containing the post information
    35873587 */
    35883588function _future_post_hook( $deprecated = '', $post ) {
    35893589        if ( !empty( $deprecated ) )
    3590                 _deprecated_argument( __FUNCTION__, '0.0' );
     3590                _deprecated_argument( __FUNCTION__, '2.3' );
    35913591        wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
    35923592        wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) );
    35933593}
  • wp-includes/comment.php

     
    15131513 */
    15141514function discover_pingback_server_uri( $url, $deprecated = '' ) {
    15151515        if ( !empty( $deprecated ) )
    1516                 _deprecated_argument( __FUNCTION__, '0.0' );
     1516                _deprecated_argument( __FUNCTION__, '2.7' );
    15171517
    15181518        $pingback_str_dquote = 'rel="pingback"';
    15191519        $pingback_str_squote = 'rel=\'pingback\'';
  • wp-includes/functions.php

     
    12071207 */
    12081208function wp_get_http( $url, $file_path = false, $deprecated = false ) {
    12091209        if ( !empty( $deprecated ) )
    1210                 _deprecated_argument( __FUNCTION__, '0.0' );
     1210                _deprecated_argument( __FUNCTION__, '2.7' );
    12111211
    12121212        @set_time_limit( 60 );
    12131213
     
    12521252 */
    12531253function wp_get_http_headers( $url, $deprecated = false ) {
    12541254        if ( !empty( $deprecated ) )
    1255                 _deprecated_argument( __FUNCTION__, '0.0' );
     1255                _deprecated_argument( __FUNCTION__, '2.7' );
    12561256
    12571257        $response = wp_remote_head( $url );
    12581258
     
    21902190 * @since 2.0.0
    21912191 *
    21922192 * @param string $name
    2193  * @param null $deprecated Not used. Set to null.
     2193 * @param null $deprecated Never used. Set to null.
    21942194 * @param mixed $bits File content
    21952195 * @param string $time Optional. Time formatted in 'yyyy/mm'.
    21962196 * @return array
    21972197 */
    21982198function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
    21992199        if ( !empty( $deprecated ) )
    2200                 _deprecated_argument( __FUNCTION__, '0.0' );
     2200                _deprecated_argument( __FUNCTION__, '2.0' );
    22012201
    22022202        if ( empty( $name ) )
    22032203                return array( 'error' => __( 'Empty filename' ) );
     
    30513051 * For example:
    30523052 * <code>
    30533053 * if ( !empty($deprecated) )
    3054  *      _deprecated_argument( __FUNCTION__, '0.0' );
     3054 *      _deprecated_argument( __FUNCTION__, '3.0' );
    30553055 * </code>
    30563056 *
    30573057 * There is a hook deprecated_argument_run that will be called that can be used
  • wp-includes/comment-template.php

     
    504504 * @since 0.71
    505505 *
    506506 * @param string $deprecated Not Used
    507  * @param bool $deprecated Not Used
     507 * @param bool $deprecated_2 Not Used
    508508 */
    509 function comments_link( $deprecated = '', $deprecated = '' ) {
     509function comments_link( $deprecated = '', $deprecated_2 = '' ) {
    510510        if ( !empty( $deprecated ) )
    511                 _deprecated_argument( __FUNCTION__, '0.0' );
     511                _deprecated_argument( __FUNCTION__, '0.72' );
     512        if ( !empty( $deprecated_2 ) )
     513                _deprecated_argument( __FUNCTION__, '1.3' );
    512514        echo get_comments_link();
    513515}
    514516
     
    553555        global $id;
    554556
    555557        if ( !empty( $deprecated ) )
    556                 _deprecated_argument( __FUNCTION__, '0.0' );
     558                _deprecated_argument( __FUNCTION__, '1.3' );
    557559
    558560        $number = get_comments_number($id);
    559561
  • wp-includes/link-template.php

     
    170170 */
    171171function post_permalink( $post_id = 0, $deprecated = '' ) {
    172172        if ( !empty( $deprecated ) )
    173                 _deprecated_argument( __FUNCTION__, '0.0' );
     173                _deprecated_argument( __FUNCTION__, '1.3' );
    174174
    175175        return get_permalink($post_id);
    176176}
  • wp-includes/formatting.php

     
    867867 */
    868868function convert_chars($content, $deprecated = '') {
    869869        if ( !empty( $deprecated ) )
    870                 _deprecated_argument( __FUNCTION__, '0.0' );
     870                _deprecated_argument( __FUNCTION__, '0.71' );
    871871
    872872        // Translation of invalid Unicode references range to valid range
    873873        $wp_htmltranswinuni = array(
  • wp-includes/author-template.php

     
    2424        global $authordata;
    2525
    2626        if ( !empty( $deprecated ) )
    27                 _deprecated_argument( __FUNCTION__, '0.0' );
     27                _deprecated_argument( __FUNCTION__, '2.1' );
    2828
    2929        return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null);
    3030}
     
    4949 * @return string The author's display name, from get_the_author().
    5050 */
    5151function the_author( $deprecated = '', $deprecated_echo = true ) {
    52         if ( !empty( $deprecated ) || $deprecated_echo !== true )
    53                 _deprecated_argument( __FUNCTION__, '1.5', $deprecated_echo !== true ? __('Use get_the_author() instead if you do not want the value echoed.') : null );
     52        if ( !empty( $deprecated ) )
     53                _deprecated_argument( __FUNCTION__, '2.1' );
     54        if ( $deprecated_echo !== true )
     55                _deprecated_argument( __FUNCTION__, '1.5', __('Use get_the_author() instead if you do not want the value echoed.') );
    5456        if ( $deprecated_echo )
    5557                echo get_the_author();
    5658        return get_the_author();
     
    184186 */
    185187function the_author_posts_link($deprecated = '') {
    186188        if ( !empty( $deprecated ) )
    187                 _deprecated_argument( __FUNCTION__, '0.0' );
     189                _deprecated_argument( __FUNCTION__, '2.1' );
    188190
    189191        global $authordata;
    190192        $link = sprintf(
  • wp-includes/kses.php

     
    11961196add_action('init', 'kses_init');
    11971197add_action('set_current_user', 'kses_init');
    11981198
     1199/**
     1200 * Inline CSS filter
     1201 *
     1202 * @since 2.8.1
     1203 */
    11991204function safecss_filter_attr( $css, $deprecated = '' ) {
    12001205        if ( !empty( $deprecated ) )
    1201                 _deprecated_argument( __FUNCTION__, '0.0' );
     1206                _deprecated_argument( __FUNCTION__, '2.8.1' ); // Never implemented
    12021207
    12031208        $css = wp_kses_no_null($css);
    12041209        $css = str_replace(array("\n","\r","\t"), '', $css);
  • wp-includes/widgets.php

     
    985985 */
    986986function wp_get_sidebars_widgets($deprecated = true) {
    987987        if ( $deprecated !== true )
    988                 _deprecated_argument( __FUNCTION__, '0.0' );
     988                _deprecated_argument( __FUNCTION__, '2.8.1' );
    989989
    990990        global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets;
    991991
  • wp-admin/includes/meta-boxes.php

     
    636636 *
    637637 * @param string $class
    638638 * @param string $value
    639  * @param mixed $deprecated Not used.
     639 * @param mixed $deprecated Never used.
    640640 */
    641 function xfn_check($class, $value = '', $deprecated = '') {
     641function xfn_check( $class, $value = '', $deprecated = '' ) {
    642642        global $link;
    643643
    644644        if ( !empty( $deprecated ) )
    645                 _deprecated_argument( __FUNCTION__, '0.0' );
     645                _deprecated_argument( __FUNCTION__, '0.0' ); // Never implemented
    646646
    647647        $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
    648648        $rels = preg_split('/\s+/', $link_rel);
  • wp-admin/includes/image.php

     
    1717 *
    1818 * @param mixed $file Filename of the original image, Or attachment id.
    1919 * @param int $max_side Maximum length of a single side for the thumbnail.
    20  * @param mixed $deprecated Not used.
     20 * @param mixed $deprecated Never used.
    2121 * @return string Thumbnail path on success, Error string on failure.
    2222 */
    2323function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
    2424        if ( !empty( $deprecated ) )
    25                 _deprecated_argument( __FUNCTION__, '0.0' );
     25                _deprecated_argument( __FUNCTION__, '1.2' );
    2626        $thumbpath = image_resize( $file, $max_side, $max_side );
    2727        return apply_filters( 'wp_create_thumbnail', $thumbpath );
    2828}