Ticket #11386: 11386.8.diff
File 11386.8.diff, 9.3 KB (added by , 15 years ago) |
---|
-
wp-includes/post-template.php
903 903 */ 904 904 function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) { 905 905 if ( !empty( $deprecated ) ) 906 _deprecated_argument( __FUNCTION__, ' 0.0' );906 _deprecated_argument( __FUNCTION__, '2.5' ); 907 907 908 908 if ( $fullsize ) 909 909 echo wp_get_attachment_link($id, 'full', $permalink); -
wp-includes/post.php
3582 3582 * @since 2.3.0 3583 3583 * @access private 3584 3584 * 3585 * @param int $deprecated N ot Used. Can be set to null.3585 * @param int $deprecated Never used. Can be set to null. 3586 3586 * @param object $post Object type containing the post information 3587 3587 */ 3588 3588 function _future_post_hook( $deprecated = '', $post ) { 3589 3589 if ( !empty( $deprecated ) ) 3590 _deprecated_argument( __FUNCTION__, ' 0.0' );3590 _deprecated_argument( __FUNCTION__, '2.3' ); 3591 3591 wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) ); 3592 3592 wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) ); 3593 3593 } -
wp-includes/comment.php
1513 1513 */ 1514 1514 function discover_pingback_server_uri( $url, $deprecated = '' ) { 1515 1515 if ( !empty( $deprecated ) ) 1516 _deprecated_argument( __FUNCTION__, ' 0.0' );1516 _deprecated_argument( __FUNCTION__, '2.7' ); 1517 1517 1518 1518 $pingback_str_dquote = 'rel="pingback"'; 1519 1519 $pingback_str_squote = 'rel=\'pingback\''; -
wp-includes/functions.php
1207 1207 */ 1208 1208 function wp_get_http( $url, $file_path = false, $deprecated = false ) { 1209 1209 if ( !empty( $deprecated ) ) 1210 _deprecated_argument( __FUNCTION__, ' 0.0' );1210 _deprecated_argument( __FUNCTION__, '2.7' ); 1211 1211 1212 1212 @set_time_limit( 60 ); 1213 1213 … … 1252 1252 */ 1253 1253 function wp_get_http_headers( $url, $deprecated = false ) { 1254 1254 if ( !empty( $deprecated ) ) 1255 _deprecated_argument( __FUNCTION__, ' 0.0' );1255 _deprecated_argument( __FUNCTION__, '2.7' ); 1256 1256 1257 1257 $response = wp_remote_head( $url ); 1258 1258 … … 2190 2190 * @since 2.0.0 2191 2191 * 2192 2192 * @param string $name 2193 * @param null $deprecated N otused. Set to null.2193 * @param null $deprecated Never used. Set to null. 2194 2194 * @param mixed $bits File content 2195 2195 * @param string $time Optional. Time formatted in 'yyyy/mm'. 2196 2196 * @return array 2197 2197 */ 2198 2198 function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { 2199 2199 if ( !empty( $deprecated ) ) 2200 _deprecated_argument( __FUNCTION__, ' 0.0' );2200 _deprecated_argument( __FUNCTION__, '2.0' ); 2201 2201 2202 2202 if ( empty( $name ) ) 2203 2203 return array( 'error' => __( 'Empty filename' ) ); … … 3051 3051 * For example: 3052 3052 * <code> 3053 3053 * if ( !empty($deprecated) ) 3054 * _deprecated_argument( __FUNCTION__, ' 0.0' );3054 * _deprecated_argument( __FUNCTION__, '3.0' ); 3055 3055 * </code> 3056 3056 * 3057 3057 * There is a hook deprecated_argument_run that will be called that can be used -
wp-includes/comment-template.php
504 504 * @since 0.71 505 505 * 506 506 * @param string $deprecated Not Used 507 * @param bool $deprecated Not Used507 * @param bool $deprecated_2 Not Used 508 508 */ 509 function comments_link( $deprecated = '', $deprecated = '' ) {509 function comments_link( $deprecated = '', $deprecated_2 = '' ) { 510 510 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' ); 512 514 echo get_comments_link(); 513 515 } 514 516 … … 553 555 global $id; 554 556 555 557 if ( !empty( $deprecated ) ) 556 _deprecated_argument( __FUNCTION__, ' 0.0' );558 _deprecated_argument( __FUNCTION__, '1.3' ); 557 559 558 560 $number = get_comments_number($id); 559 561 -
wp-includes/link-template.php
170 170 */ 171 171 function post_permalink( $post_id = 0, $deprecated = '' ) { 172 172 if ( !empty( $deprecated ) ) 173 _deprecated_argument( __FUNCTION__, ' 0.0' );173 _deprecated_argument( __FUNCTION__, '1.3' ); 174 174 175 175 return get_permalink($post_id); 176 176 } -
wp-includes/formatting.php
867 867 */ 868 868 function convert_chars($content, $deprecated = '') { 869 869 if ( !empty( $deprecated ) ) 870 _deprecated_argument( __FUNCTION__, '0. 0' );870 _deprecated_argument( __FUNCTION__, '0.71' ); 871 871 872 872 // Translation of invalid Unicode references range to valid range 873 873 $wp_htmltranswinuni = array( -
wp-includes/author-template.php
24 24 global $authordata; 25 25 26 26 if ( !empty( $deprecated ) ) 27 _deprecated_argument( __FUNCTION__, ' 0.0' );27 _deprecated_argument( __FUNCTION__, '2.1' ); 28 28 29 29 return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null); 30 30 } … … 49 49 * @return string The author's display name, from get_the_author(). 50 50 */ 51 51 function 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.') ); 54 56 if ( $deprecated_echo ) 55 57 echo get_the_author(); 56 58 return get_the_author(); … … 184 186 */ 185 187 function the_author_posts_link($deprecated = '') { 186 188 if ( !empty( $deprecated ) ) 187 _deprecated_argument( __FUNCTION__, ' 0.0' );189 _deprecated_argument( __FUNCTION__, '2.1' ); 188 190 189 191 global $authordata; 190 192 $link = sprintf( -
wp-includes/kses.php
1196 1196 add_action('init', 'kses_init'); 1197 1197 add_action('set_current_user', 'kses_init'); 1198 1198 1199 /** 1200 * Inline CSS filter 1201 * 1202 * @since 2.8.1 1203 */ 1199 1204 function safecss_filter_attr( $css, $deprecated = '' ) { 1200 1205 if ( !empty( $deprecated ) ) 1201 _deprecated_argument( __FUNCTION__, ' 0.0' );1206 _deprecated_argument( __FUNCTION__, '2.8.1' ); // Never implemented 1202 1207 1203 1208 $css = wp_kses_no_null($css); 1204 1209 $css = str_replace(array("\n","\r","\t"), '', $css); -
wp-includes/widgets.php
985 985 */ 986 986 function wp_get_sidebars_widgets($deprecated = true) { 987 987 if ( $deprecated !== true ) 988 _deprecated_argument( __FUNCTION__, ' 0.0' );988 _deprecated_argument( __FUNCTION__, '2.8.1' ); 989 989 990 990 global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets; 991 991 -
wp-admin/includes/meta-boxes.php
636 636 * 637 637 * @param string $class 638 638 * @param string $value 639 * @param mixed $deprecated N otused.639 * @param mixed $deprecated Never used. 640 640 */ 641 function xfn_check( $class, $value = '', $deprecated = '') {641 function xfn_check( $class, $value = '', $deprecated = '' ) { 642 642 global $link; 643 643 644 644 if ( !empty( $deprecated ) ) 645 _deprecated_argument( __FUNCTION__, '0.0' ); 645 _deprecated_argument( __FUNCTION__, '0.0' ); // Never implemented 646 646 647 647 $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; 648 648 $rels = preg_split('/\s+/', $link_rel); -
wp-admin/includes/image.php
17 17 * 18 18 * @param mixed $file Filename of the original image, Or attachment id. 19 19 * @param int $max_side Maximum length of a single side for the thumbnail. 20 * @param mixed $deprecated N otused.20 * @param mixed $deprecated Never used. 21 21 * @return string Thumbnail path on success, Error string on failure. 22 22 */ 23 23 function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { 24 24 if ( !empty( $deprecated ) ) 25 _deprecated_argument( __FUNCTION__, ' 0.0' );25 _deprecated_argument( __FUNCTION__, '1.2' ); 26 26 $thumbpath = image_resize( $file, $max_side, $max_side ); 27 27 return apply_filters( 'wp_create_thumbnail', $thumbpath ); 28 28 }