• I am managing a WP site using a custom theme which was developed by a 3rd party.

    I recently noticed from the function reference pages on this site that get_page() has been deprecated. This function is used on the home page of my site so I am keen to fix this, but I also want to understand if my theme is using any other deprecated functions.

    I enabled WP_DEBUG on my sandbox site to check if my custom theme was using any other deprecated functions. I am seeing some error message now that this is enabled (for example “Use of undefined constant” and “Undefined offset”) but I don’t see anything about any deprecated functions. I don’t see anything about get_page, even though this is still used on my site, I haven’t fixed it yet.

    I notice that on the function reference page for get_page() it says see also wp-includes/deprecated.php.

    Should get_page() be listed in wp-includes/deprecated.php? I downloaded this as a text file and searched for get_page but I found only 1 reference, in the comment relating to clean_page_cache(). If get_page() isn’t included in this file does that mean it is not deprecated after all?

    I’m sure I must be missing something obvious but I’m not sure what at this stage.

    I’ve tried searching for “WP_DEBUG not showing deprecated functions” but haven’t managed to find any answer. I have only found instances where someone wasn’t seeing error messages because they didn’t have the debugging turned on. That’s not the case for me, it’s definitely turned on and showing other types of error.

    Thanks in advance for any help.

  • The topic ‘WP_DEBUG not showing deprecated function get_page’ is closed to new replies.