Ticket #11386: 11386-deprecated-args.diff
| File 11386-deprecated-args.diff, 10.1 KB (added by nacin, 3 years ago) |
|---|
-
wp-admin/includes/image.php
19 19 * @param int $max_side Maximum length of a single side for the thumbnail. 20 20 * @return string Thumbnail path on success, Error string on failure. 21 21 */ 22 function wp_create_thumbnail( $file, $max_side , $deprecated = '') {22 function wp_create_thumbnail( $file, $max_side ) { 23 23 $thumbpath = image_resize( $file, $max_side, $max_side ); 24 24 return apply_filters( 'wp_create_thumbnail', $thumbpath ); 25 25 } -
wp-admin/includes/meta-boxes.php
634 634 * 635 635 * @param string $class 636 636 * @param string $value 637 * @param mixed $deprecated Not used.638 637 */ 639 function xfn_check($class, $value = '' , $deprecated = '') {638 function xfn_check($class, $value = '') { 640 639 global $link; 641 640 642 641 $link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; -
wp-admin/includes/upgrade.php
30 30 * @param string $user_name User's username. 31 31 * @param string $user_email User's email. 32 32 * @param bool $public Whether blog is public. 33 * @param null $deprecated Optional. Not used.34 33 * @return array Array keys 'url', 'user_id', 'password', 'password_message'. 35 34 */ 36 function wp_install($blog_title, $user_name, $user_email, $public , $deprecated='') {35 function wp_install($blog_title, $user_name, $user_email, $public) { 37 36 global $wp_rewrite; 38 37 39 38 wp_check_mysql_version(); -
wp-app.php
884 884 * 885 885 * @since 2.2.0 886 886 * 887 * @param mixed $deprecated Optional, not used.888 887 * @return string 889 888 */ 890 function get_categories_url( $deprecated = '') {889 function get_categories_url() { 891 890 return $this->app_base . $this->CATEGORIES_PATH; 892 891 } 893 892 -
wp-includes/author-template.php
17 17 * @uses $authordata The current author's DB object. 18 18 * @uses apply_filters() Calls 'the_author' hook on the author display name. 19 19 * 20 * @param string $deprecated Deprecated.21 20 * @return string The author's display name. 22 21 */ 23 function get_the_author( $deprecated = '') {22 function get_the_author() { 24 23 global $authordata; 25 24 return apply_filters('the_author', is_object($authordata) ? $authordata->display_name : null); 26 25 } … … 47 46 function the_author($deprecated = '', $deprecated_echo = true) { 48 47 if ( $deprecated_echo ) 49 48 echo get_the_author(); 50 return get_the_author(); 49 else 50 return get_the_author(); 51 51 } 52 52 53 53 /** … … 174 174 * @uses $authordata The current author's DB object. 175 175 * @uses get_author_posts_url() 176 176 * @uses get_the_author() 177 * @param string $deprecated Deprecated.178 177 */ 179 function the_author_posts_link( $deprecated = '') {178 function the_author_posts_link() { 180 179 global $authordata; 181 180 $link = sprintf( 182 181 '<a href="%1$s" title="%2$s">%3$s</a>', -
wp-includes/comment-template.php
503 503 * 504 504 * @since 0.71 505 505 * 506 * @param string $deprecated Not Used507 * @param bool $deprecated Not Used508 506 */ 509 function comments_link( $deprecated = '', $deprecated = '') {507 function comments_link() { 510 508 echo get_comments_link(); 511 509 } 512 510 … … 545 543 * @param string $zero Text for no comments 546 544 * @param string $one Text for one comment 547 545 * @param string $more Text for more than one comment 548 * @param string $deprecated Not used.549 546 */ 550 function comments_number( $zero = false, $one = false, $more = false , $deprecated = '') {547 function comments_number( $zero = false, $one = false, $more = false ) { 551 548 global $id; 552 549 $number = get_comments_number($id); 553 550 … … 691 688 * @since 0.71 692 689 * @uses get_trackback_url() Gets the trackback url for the current post 693 690 * 694 * @param bool $deprecated Remove backwards compat in 2.5691 * @param bool $deprecated_echo Remove backwards compat in 2.5 695 692 * @return void|string Should only be used to echo the trackback URL, use get_trackback_url() for the result instead. 696 693 */ 697 function trackback_url($deprecated = true) { 698 if ($deprecated) echo get_trackback_url(); 699 else return get_trackback_url(); 694 function trackback_url($deprecated_echo = true) { 695 if ( $deprecated_echo ) 696 echo get_trackback_url(); 697 else 698 return get_trackback_url(); 700 699 } 701 700 702 701 /** … … 704 703 * 705 704 * @since 0.71 706 705 * 707 * @param int $deprecated Not used (Was $timezone = 0)708 706 */ 709 function trackback_rdf( $deprecated = '') {707 function trackback_rdf() { 710 708 if (stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') === false) { 711 709 echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 712 710 xmlns:dc="http://purl.org/dc/elements/1.1/" -
wp-includes/comment.php
1450 1450 * @since 1.5.0 1451 1451 * 1452 1452 * @param string $url URL to ping. 1453 * @param int $deprecated Not Used.1454 1453 * @return bool|string False on failure, string containing URI on success. 1455 1454 */ 1456 function discover_pingback_server_uri($url , $deprecated = 2048) {1455 function discover_pingback_server_uri($url) { 1457 1456 1458 1457 $pingback_str_dquote = 'rel="pingback"'; 1459 1458 $pingback_str_squote = 'rel=\'pingback\''; -
wp-includes/formatting.php
862 862 * @since 0.71 863 863 * 864 864 * @param string $content String of characters to be converted. 865 * @param string $deprecated Not used.866 865 * @return string Converted string. 867 866 */ 868 function convert_chars($content , $deprecated = '') {867 function convert_chars($content) { 869 868 // Translation of invalid Unicode references range to valid range 870 869 $wp_htmltranswinuni = array( 871 870 '€' => '€', // the Euro sign -
wp-includes/functions.php
1184 1184 * 1185 1185 * @param string $url URL to fetch. 1186 1186 * @param string|bool $file_path Optional. File path to write request to. 1187 * @param bool $deprecated Deprecated. Not used.1188 1187 * @return bool|string False on failure and string of headers if HEAD request. 1189 1188 */ 1190 function wp_get_http( $url, $file_path = false , $deprecated = false) {1189 function wp_get_http( $url, $file_path = false ) { 1191 1190 @set_time_limit( 60 ); 1192 1191 1193 1192 $options = array(); … … 1226 1225 * @since 1.5.1 1227 1226 * 1228 1227 * @param string $url 1229 * @param bool $deprecated Not Used.1230 1228 * @return bool|string False on failure, headers on success. 1231 1229 */ 1232 function wp_get_http_headers( $url , $deprecated = false) {1230 function wp_get_http_headers( $url ) { 1233 1231 $response = wp_remote_head( $url ); 1234 1232 1235 1233 if ( is_wp_error( $response ) ) -
wp-includes/kses.php
1196 1196 add_action('init', 'kses_init'); 1197 1197 add_action('set_current_user', 'kses_init'); 1198 1198 1199 function safecss_filter_attr( $css , $deprecated = '') {1199 function safecss_filter_attr( $css ) { 1200 1200 $css = wp_kses_no_null($css); 1201 1201 $css = str_replace(array("\n","\r","\t"), '', $css); 1202 1202 -
wp-includes/link-template.php
165 165 * @since 1.0.0 166 166 * 167 167 * @param int $post_id Optional. Post ID. 168 * @param mixed $deprecated Not used.169 168 * @return string 170 169 */ 171 function post_permalink($post_id = 0 , $deprecated = '') {170 function post_permalink($post_id = 0) { 172 171 return get_permalink($post_id); 173 172 } 174 173 -
wp-includes/pluggable.php
1684 1685 * 1685 1686 * @param string $username User's username 1686 1687 * @param string $password User's password 1687 * @param bool $deprecated Not used1688 1688 * @return bool False on login failure, true on successful check 1689 1689 */ 1690 function wp_login($username, $password , $deprecated = '') {1690 function wp_login($username, $password) { 1691 1691 global $error; 1692 1692 1693 1693 $user = wp_authenticate($username, $password); -
wp-includes/post-template.php
242 242 * 243 243 * @since 0.71 244 244 * 245 * @param mixed $deprecated Not used.246 245 * @return string 247 246 */ 248 function get_the_excerpt( $deprecated = '') {247 function get_the_excerpt() { 249 248 global $post; 250 249 $output = $post->post_excerpt; 251 250 if ( post_password_required($post) ) { -
wp-includes/widgets.php
980 980 * @since 2.2.0 981 981 * @access private 982 982 * 983 * @param bool $update Optional, deprecated.984 983 * @return array Upgraded list of widgets to version 3 array format when called from the admin. 985 984 */ 986 function wp_get_sidebars_widgets( $deprecated = true) {985 function wp_get_sidebars_widgets() { 987 986 global $wp_registered_widgets, $wp_registered_sidebars, $_wp_sidebars_widgets; 988 987 989 988 // If loading from front page, consult $_wp_sidebars_widgets rather than options
