Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9126241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:59:36+00:00 2026-06-17T06:59:36+00:00

As a WordPress/PHP newbie, I’m confused. When I try to do some things in

  • 0

As a WordPress/PHP newbie, I’m confused. When I try to do some things in my WP admin, for instance, when I go into my W3 Total Cache settings and check off the minify / enable button, then save the settings, I get the following error (7 of them, all the same):

Notice: get_theme is deprecated since version 3.4! Use wp_get_theme( $stylesheet )  
instead. in /home/jpweber/public_html/wp-includes/functions.php on line 2824

Notice: get_themes is deprecated since version 3.4! Use wp_get_themes() instead. in 
/home/jpweber/public_html/wp-includes/functions.php on line 2824

I get this error doing other things while in admin, as well. I’m running WP 3.5, and it’s just a vanilla install, so it’s just the functions.php that came with the installation, and W3 Total Cache comes with the 1-click installation the shared host I’m with provides.

Here’s my line 2824 in functions.php:

trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! 
Use %3$s instead.'), $function, $version, $replacement ) );

The complete block of code for that is as follows:

function _deprecated_function( $function, $version, $replacement = null ) {

do_action( 'deprecated_function_run', $function, $replacement, $version );

// Allow plugin to filter the output error trigger
if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) {
    if ( ! is_null($replacement) )
        trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> 
since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) );
    else
        trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> 
since version %2$s with no alternative available.'), $function, $version ) );
    }
}

Any guidance would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:59:37+00:00Added an answer on June 17, 2026 at 6:59 am

    you have a plugin or template which use the “get_theme” function as stated above, whereas it should not use it anymore.

    You can set “wp_debug” to false to “hide” the error, see how to do that here :
    http://codex.wordpress.org/WP_DEBUG

    But the best thing to do would be to update all your plugins/templates, or tell the authors that you got this mistake if they did not update their code since then ;).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newbie in php and Wordpress. I'm trying to create a script that
I am a newbie to both PHP and Wordpress (but do ok in C#),
In wordpress's function.php the functions are written to check validate fields, return errors and
I am a newbie in PHP & wordpress. I wanted to know how to
I am newbie to php, just starting learning it, while working with wordpress. I
Creating my WordPress author.php template page and ran into a little roadblock. I want
I have been reading some WordPress PHP code on GitHub and I found that
I need to copy a menu from this wordpress installation http://bit.ly/rrWFMH into some non-wordpress
I am trying to integrate a few non-wordpress PHP pages into an existing Wordpress
Quick question about Wordpress PHP: I am writing a theme and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.