Ticket #20189: 20189.diff
File 20189.diff, 3.5 KB (added by , 13 years ago) |
---|
-
wp-includes/general-template.php
361 361 } 362 362 363 363 /** 364 * Display information about the blog.364 * Display information about the site. 365 365 * 366 * @see get_ bloginfo() For possible values for the parameter.366 * @see get_siteinfo() For possible values for the parameter. 367 367 * @since 0.71 368 368 * 369 369 * @param string $show What to display. 370 370 */ 371 function bloginfo( $show='' ) {372 echo get_ bloginfo( $show, 'display' );371 function siteinfo( $show='' ) { 372 echo get_siteinfo( $show, 'display' ); 373 373 } 374 374 375 375 /** 376 * Retrieve information about the blog.376 * Retrieve information about the site. 377 377 * 378 378 * Some show parameter values are deprecated and will be removed in future 379 379 * versions. These options will trigger the _deprecated_argument() function. … … 381 381 * 382 382 * The possible values for the 'show' parameter are listed below. 383 383 * <ol> 384 * <li><strong>url</strong> - BlogURI to homepage.</li>385 * <li><strong>wpurl</strong> - BlogURI path to WordPress.</li>384 * <li><strong>url</strong> - Site URI to homepage.</li> 385 * <li><strong>wpurl</strong> - Site URI path to WordPress.</li> 386 386 * <li><strong>description</strong> - Secondary title</li> 387 387 * </ol> 388 388 * … … 393 393 * 394 394 * @since 0.71 395 395 * 396 * @param string $show Bloginfo to retrieve.396 * @param string $show site info to retrieve. 397 397 * @param string $filter How to filter what is retrieved. 398 398 * @return string Mostly string values, might be empty. 399 399 */ 400 function get_ bloginfo( $show = '', $filter = 'raw' ) {400 function get_siteinfo( $show = '', $filter = 'raw' ) { 401 401 402 402 switch( $show ) { 403 403 case 'home' : // DEPRECATED -
wp-includes/deprecated.php
2952 2952 if ( is_array( $themes ) && array_key_exists( $theme, $themes ) ) 2953 2953 return $themes[$theme]; 2954 2954 return null; 2955 } 2956 2957 /** 2958 * Display information about the site. 2959 * 2960 * @see get_siteinfo() For possible values for the parameter. 2961 * @since 0.71 2962 * 2963 * @param string $show What to display. 2964 */ 2965 function bloginfo( $show='' ) { 2966 _deprecated_function( __FUNCTION__, '3.4', 'siteinfo' ); 2967 siteinfo( $show ); 2968 } 2969 2970 /** 2971 * Retrieve information about the site. 2972 * 2973 * Some show parameter values are deprecated and will be removed in future 2974 * versions. These options will trigger the _deprecated_argument() function. 2975 * The deprecated blog info options are listed in the function contents. 2976 * 2977 * The possible values for the 'show' parameter are listed below. 2978 * <ol> 2979 * <li><strong>url</strong> - Site URI to homepage.</li> 2980 * <li><strong>wpurl</strong> - Site URI path to WordPress.</li> 2981 * <li><strong>description</strong> - Secondary title</li> 2982 * </ol> 2983 * 2984 * The feed URL options can be retrieved from 'rdf_url' (RSS 0.91), 2985 * 'rss_url' (RSS 1.0), 'rss2_url' (RSS 2.0), or 'atom_url' (Atom feed). The 2986 * comment feeds can be retrieved from the 'comments_atom_url' (Atom comment 2987 * feed) or 'comments_rss2_url' (RSS 2.0 comment feed). 2988 * 2989 * @since 0.71 2990 * 2991 * @param string $show site info to retrieve. 2992 * @param string $filter How to filter what is retrieved. 2993 * @return string Mostly string values, might be empty. 2994 */ 2995 function get_bloginfo( $show = '', $filter = 'raw' ) { 2996 _deprecated_function( __FUNCTION__, '3.4', 'siteinfo()' ); 2997 return get_siteinfo( $show, $filter ); 2955 2998 } 2999 No newline at end of file