Opened 2 years ago
Closed 10 months ago
#57020 closed enhancement (wontfix)
Twenty Eleven: replace deprecated functions
Reported by: | krunal265 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | 2nd-opinion close |
Focuses: | Cc: |
Description (last modified by )
Deprecated functions are used in the functions.php file of Twenty Eleven theme.
1) add_custom_background()
2) add_custom_image_header()
We need to use the add_theme_support()
function instead of that.
Attachments (1)
Change History (5)
#1
@
2 years ago
- Component changed from General to Bundled Theme
- Focuses performance coding-standards added
- Severity changed from normal to major
#2
@
2 years ago
- Description modified (diff)
- Focuses performance coding-standards removed
- Keywords 2nd-opinion added
- Severity changed from major to normal
- Summary changed from Twenty Eleven Theme: The deprecated function has been used in the twenty-eleven theme. to Twenty Eleven: replace deprecated functions
Hi and thanks for the report!
This is not a bug because the theme uses add_theme_support()
for both custom-header
and custom-background
in twentyeleven_setup()
. The deprecated functions were added in changeset:20983 to support WordPress versions before 3.4. Anyone who might still have a very old, unsupported version of WordPress likely will not update the theme either, but I think this is fine to keep in functions.php.
Note: See
TracTickets for help on using
tickets.
patch added.