Changeset 12537
- Timestamp:
- 12/24/2009 11:12:04 AM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r12284 r12537 42 42 * 43 43 * @param string $deprecated Deprecated. 44 * @param string $deprecated_echo Echo the string or return it.44 * @param string $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it. 45 45 * @return string The author's display name, from get_the_author(). 46 46 */ 47 47 function the_author($deprecated = '', $deprecated_echo = true) { 48 if ( !empty($deprecated) ) 49 _deprecated_argument(__FUNCTION__, 'deprecated', '1.5'); 50 if ( $deprecated_echo !== true ) 51 _deprecated_argument(__FUNCTION__, 'deprecated_echo', '1.5', __('Use get_the_author() instead if you do not want the value echoed.')); 48 52 if ( $deprecated_echo ) 49 53 echo get_the_author(); … … 178 182 */ 179 183 function the_author_posts_link($deprecated = '') { 184 if ( !empty( $deprecated ) ) 185 _deprecated_argument(__FUNCTION__, 'deprecated', '0.0'); 186 180 187 global $authordata; 181 188 $link = sprintf( -
trunk/wp-includes/comment-template.php
r12396 r12537 504 504 * @since 0.71 505 505 * 506 * @param string $deprecated Not Used 507 * @param bool $deprecated Not Used 508 */ 509 function comments_link( $deprecated = '', $deprecated = '' ) { 506 * @param string $deprecated_1 Not Used 507 * @param bool $deprecated_2 Not Used 508 */ 509 function comments_link( $deprecated_1 = '', $deprecated_2 = '' ) { 510 if ( !empty( $deprecated_1 ) ) 511 _deprecated_argument(__FUNCTION__, 'deprecated_1', '0.0'); 512 if ( !empty( $deprecated_2 ) ) 513 _deprecated_argument(__FUNCTION__, 'deprecated_2', '0.0'); 514 510 515 echo get_comments_link(); 511 516 } -
trunk/wp-includes/comment.php
r12518 r12537 1512 1512 * @return bool|string False on failure, string containing URI on success. 1513 1513 */ 1514 function discover_pingback_server_uri($url, $deprecated = 2048) { 1514 function discover_pingback_server_uri($url, $deprecated = '') { 1515 if ( !empty($deprecated) ) 1516 _deprecated_argument(__FUNCTION__, 'deprecated', '0.0'); 1515 1517 1516 1518 $pingback_str_dquote = 'rel="pingback"'; -
trunk/wp-includes/cron.php
r12462 r12537 136 136 // Backward compatibility 137 137 // Previously this function took the arguments as discrete vars rather than an array like the rest of the API 138 if ( !is_array($args) ) 138 if ( !is_array($args) ) { 139 _deprecated_argument(__FUNCTION__, 'args', '3.0.0', __('This argument has changed to an array so as to match with the behaviour of all the other cron functions.') ); 139 140 $args = array_slice( func_get_args(), 1 ); 141 } 140 142 141 143 while ( $timestamp = wp_next_scheduled( $hook, $args ) ) -
trunk/wp-includes/functions.php
r12536 r12537 3046 3046 // Allow plugin to filter the output error trigger 3047 3047 if( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) { 3048 if( !is_null($ replacement) )3048 if( !is_null($message) ) 3049 3049 trigger_error( sprintf( __('The %1$s argument of %2$s is <strong>deprecated</strong> since version %3$s! %4$s'), $function, $argument, $version, $message ) ); 3050 3050 else -
trunk/wp-includes/post-template.php
r12513 r12537 247 247 */ 248 248 function get_the_excerpt($deprecated = '') { 249 if ( !empty( $deprecated ) ) 250 _deprecated_argument(__FUNCTION__, 'deprecated', '2.3'); 251 249 252 global $post; 250 253 $output = $post->post_excerpt; -
trunk/wp-includes/widgets.php
r12249 r12537 981 981 * @access private 982 982 * 983 * @param bool $ update Optional, deprecated.983 * @param bool $deprecated. Not used. 984 984 * @return array Upgraded list of widgets to version 3 array format when called from the admin. 985 985 */ 986 986 function wp_get_sidebars_widgets($deprecated = true) { 987 if ( $deprecated !== true ) 988 _deprecated_argument(__FUNCTION__, 'deprecated', '0.0'); 989 987 990 global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets; 988 991
Note: See TracChangeset
for help on using the changeset viewer.