Changeset 12680
- Timestamp:
- 01/09/2010 10:03:55 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r12659 r12680 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 ); -
trunk/wp-admin/includes/meta-boxes.php
r12597 r12680 637 637 * @param string $class 638 638 * @param string $value 639 * @param mixed $deprecated N otused.640 */ 641 function xfn_check( $class, $value = '', $deprecated = '') {639 * @param mixed $deprecated Never used. 640 */ 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 ?: ''; … … 690 690 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend> 691 691 <label for="contact"> 692 <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact' , 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label>692 <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label> 693 693 <label for="acquaintance"> 694 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance' , 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label>694 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label> 695 695 <label for="friend"> 696 <input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend' , 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?></label>696 <input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?></label> 697 697 <label for="friendship"> 698 <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship' , '', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>698 <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 699 699 </fieldset></td> 700 700 </tr> … … 722 722 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend> 723 723 <label for="co-resident"> 724 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident' , 'radio'); ?> />724 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident'); ?> /> 725 725 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?></label> 726 726 <label for="neighbor"> 727 <input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor' , 'radio'); ?> />727 <input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor'); ?> /> 728 728 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('neighbor') ?></label> 729 729 <label for="geographical"> 730 <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical' , '', 'radio'); ?> />730 <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical'); ?> /> 731 731 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 732 732 </fieldset></td> … … 736 736 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend> 737 737 <label for="child"> 738 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child' , 'radio'); ?> />738 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> /> 739 739 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label> 740 740 <label for="kin"> 741 <input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin' , 'radio'); ?> />741 <input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin'); ?> /> 742 742 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?></label> 743 743 <label for="parent"> 744 <input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent' , 'radio'); ?> />744 <input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent'); ?> /> 745 745 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('parent') ?></label> 746 746 <label for="sibling"> 747 <input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling' , 'radio'); ?> />747 <input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling'); ?> /> 748 748 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sibling') ?></label> 749 749 <label for="spouse"> 750 <input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse' , 'radio'); ?> />750 <input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse'); ?> /> 751 751 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('spouse') ?></label> 752 752 <label for="family"> 753 <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family' , '', 'radio'); ?> />753 <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family'); ?> /> 754 754 <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label> 755 755 </fieldset></td> -
trunk/wp-includes/author-template.php
r12598 r12680 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); … … 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(); … … 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; -
trunk/wp-includes/comment-template.php
r12657 r12680 505 505 * 506 506 * @param string $deprecated Not Used 507 * @param bool $deprecated Not Used508 */ 509 function comments_link( $deprecated = '', $deprecated = '' ) {507 * @param bool $deprecated_2 Not Used 508 */ 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 } … … 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); -
trunk/wp-includes/comment.php
r12598 r12680 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"'; -
trunk/wp-includes/formatting.php
r12584 r12680 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 -
trunk/wp-includes/functions.php
r12669 r12680 1171 1171 function wp_get_http( $url, $file_path = false, $deprecated = false ) { 1172 1172 if ( !empty( $deprecated ) ) 1173 _deprecated_argument( __FUNCTION__, ' 0.0' );1173 _deprecated_argument( __FUNCTION__, '2.7' ); 1174 1174 1175 1175 @set_time_limit( 60 ); … … 1216 1216 function wp_get_http_headers( $url, $deprecated = false ) { 1217 1217 if ( !empty( $deprecated ) ) 1218 _deprecated_argument( __FUNCTION__, ' 0.0' );1218 _deprecated_argument( __FUNCTION__, '2.7' ); 1219 1219 1220 1220 $response = wp_remote_head( $url ); … … 2154 2154 * 2155 2155 * @param string $name 2156 * @param null $deprecated N otused. Set to null.2156 * @param null $deprecated Never used. Set to null. 2157 2157 * @param mixed $bits File content 2158 2158 * @param string $time Optional. Time formatted in 'yyyy/mm'. … … 2161 2161 function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { 2162 2162 if ( !empty( $deprecated ) ) 2163 _deprecated_argument( __FUNCTION__, ' 0.0' );2163 _deprecated_argument( __FUNCTION__, '2.0' ); 2164 2164 2165 2165 if ( empty( $name ) ) … … 2962 2962 * 2963 2963 * @package WordPress 2964 * @ package Debug2964 * @subpackage Debug 2965 2965 * @since 2.5.0 2966 2966 * @access private 2967 2967 * 2968 * @uses do_action() Calls 'deprecated_function_run' and passes the function name and what to use instead. 2969 * @uses apply_filters() Calls 'deprecated_function_trigger_error' and expects boolean value of true to do trigger or false to not trigger error. 2968 * @uses do_action() Calls 'deprecated_function_run' and passes the function name, what to use instead, 2969 * and the version the function was deprecated in. 2970 * @uses apply_filters() Calls 'deprecated_function_trigger_error' and expects boolean value of true to do 2971 * trigger or false to not trigger error. 2970 2972 * 2971 2973 * @param string $function The function that was called … … 2973 2975 * @param string $replacement Optional. The function that should have been called 2974 2976 */ 2975 function _deprecated_function( $function, $version, $replacement=null) {2976 2977 do_action( 'deprecated_function_run', $function, $replacement);2977 function _deprecated_function( $function, $version, $replacement=null ) { 2978 2979 do_action( 'deprecated_function_run', $function, $replacement, $version ); 2978 2980 2979 2981 // Allow plugin to filter the output error trigger 2980 if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true )) {2981 if ( !is_null($replacement) )2982 if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) { 2983 if ( ! is_null($replacement) ) 2982 2984 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); 2983 2985 else … … 2998 3000 * 2999 3001 * @package WordPress 3000 * @ package Debug3002 * @subpackage Debug 3001 3003 * @since 2.5.0 3002 3004 * @access private 3003 3005 * 3004 * @uses do_action() Calls 'deprecated_file_included' and passes the file name and what to use instead. 3005 * @uses apply_filters() Calls 'deprecated_file_trigger_error' and expects boolean value of true to do trigger or false to not trigger error. 3006 * @uses do_action() Calls 'deprecated_file_included' and passes the file name, what to use instead, 3007 * and the version in which the file was deprecated. 3008 * @uses apply_filters() Calls 'deprecated_file_trigger_error' and expects boolean value of true to do 3009 * trigger or false to not trigger error. 3006 3010 * 3007 3011 * @param string $file The file that was included … … 3009 3013 * @param string $replacement Optional. The file that should have been included based on ABSPATH 3010 3014 */ 3011 function _deprecated_file( $file, $version, $replacement=null) {3012 3013 do_action( 'deprecated_file_included', $file, $replacement);3015 function _deprecated_file( $file, $version, $replacement = null ) { 3016 3017 do_action( 'deprecated_file_included', $file, $replacement, $version ); 3014 3018 3015 3019 // Allow plugin to filter the output error trigger 3016 if ( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) {3017 if ( !is_null($replacement) )3020 if ( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) { 3021 if ( ! is_null( $replacement ) ) 3018 3022 trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $file, $version, $replacement ) ); 3019 3023 else … … 3030 3034 * <code> 3031 3035 * if ( !empty($deprecated) ) 3032 * _deprecated_argument( __FUNCTION__, ' 0.0' );3036 * _deprecated_argument( __FUNCTION__, '3.0' ); 3033 3037 * </code> 3034 3038 * … … 3040 3044 * 3041 3045 * @package WordPress 3042 * @ package Debug3046 * @subpackage Debug 3043 3047 * @since 3.0.0 3044 3048 * @access private 3045 3049 * 3046 * @uses do_action() Calls 'deprecated_argument_run' and passes the function name and what to use instead. 3047 * @uses apply_filters() Calls 'deprecated_argument_trigger_error' and expects boolean value of true to do trigger or false to not trigger error. 3050 * @uses do_action() Calls 'deprecated_argument_run' and passes the function name, a message on the change, 3051 * and the version in which the argument was deprecated. 3052 * @uses apply_filters() Calls 'deprecated_argument_trigger_error' and expects boolean value of true to do 3053 * trigger or false to not trigger error. 3048 3054 * 3049 3055 * @param string $function The function that was called … … 3051 3057 * @param string $message Optional. A message regarding the change. 3052 3058 */ 3053 function _deprecated_argument( $function, $version, $message = null) {3054 3055 do_action( 'deprecated_argument_run', $function, $message);3059 function _deprecated_argument( $function, $version, $message = null ) { 3060 3061 do_action( 'deprecated_argument_run', $function, $message ); 3056 3062 3057 3063 // Allow plugin to filter the output error trigger 3058 if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) {3059 if ( !is_null($message) )3064 if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) { 3065 if ( ! is_null( $message ) ) 3060 3066 trigger_error( sprintf( __('%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s'), $function, $version, $message ) ); 3061 3067 else -
trunk/wp-includes/kses.php
r12584 r12680 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); -
trunk/wp-includes/link-template.php
r12598 r12680 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); -
trunk/wp-includes/post-template.php
r12664 r12680 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 ) -
trunk/wp-includes/widgets.php
r12584 r12680 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;
Note: See TracChangeset
for help on using the changeset viewer.