Changeset 20029 for trunk/wp-admin/includes/deprecated.php
- Timestamp:
- 02/28/2012 09:24:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r19684 r20029 881 881 WP_Screen::add_old_compat_help( $screen, $help ); 882 882 } 883 884 /** 885 * Get the allowed themes for the current blog. 886 * 887 * @since 3.0.0 888 * @deprecated 3.4.0 889 * @deprecated Use wp_get_themes() 890 * @see wp_get_themes() 891 * 892 * @return array $themes Array of allowed themes. 893 */ 894 function get_allowed_themes() { 895 _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'allowed' => true ) )" ); 896 897 $themes = wp_get_themes( array( 'allowed' => true ) ); 898 899 $wp_themes = array(); 900 foreach ( $themes as $theme ) { 901 $wp_themes[ $theme->get('Name') ] = $theme; 902 } 903 904 return $wp_themes; 905 } 906 907 /** 908 * {@internal Missing Short Description}} 909 * 910 * @since 1.5.0 911 * 912 * @return unknown 913 */ 914 function get_broken_themes() { 915 _deprecated_function( __FUNCTION__, '3.4', "wp_get_themes( array( 'errors' => true )" ); 916 917 $themes = wp_get_themes( array( 'errors' => true ) ); 918 $broken = array(); 919 foreach ( $themes as $theme ) { 920 $broken[ $theme->get('Name') ] = array( 921 'Title' => $theme->get('Name'), 922 'Description' => $theme->errors()->get_error_message(), 923 ); 924 } 925 return $broken; 926 } 927 928 /** 929 * {@internal Missing Short Description}} 930 * 931 * @since 2.0.0 932 * 933 * @return unknown 934 */ 935 function current_theme_info() { 936 _deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' ); 937 938 return wp_get_theme(); 939 }
Note: See TracChangeset
for help on using the changeset viewer.