Functions Deprecated in WordPress 3.4
Here’s a list of functions that are now deprecated in WordPress 3.4:
- debug_fopen, debug_fwrite, debug_fclose, substituted by PHP’s native error_log
- get_themes, substituted for wp_get_themes, whereas get_theme and get_current_theme functions are replaced by wp_get_theme
- clean_pre is not replaced by anything, its relevant use inside the core has been replaced with good code, outside use is discouraged from now on. You can construct your own replacement by copying the body of the original
- add_custom_image_header, replaced by add_theme_support. As of version 3.4
add_theme_support
accepts multiple arguments for some features. remove_custom_image_header has been deprecated in favor of remove_theme_support. Same goes foradd_custom_background
andremove_custom_background
. - get_theme_data is deprecated in WordPress 3.4 in favor of
wp_get_theme
, mentioned above update_page_cache
and clean_page_cache are replaced by update_post_cache and clean_post_cache
That’s it for deprecated functions. Check out a comprehensive list of changes here. Although WordPress is known to be highly back-compatible and the deprecated functions will be available for a long long time, developers are highly discouraged from using these in the future.