Title: Deprecated function
Last modified: May 23, 2025

---

# Deprecated function

 *  Resolved [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [12 months ago](https://wordpress.org/support/topic/deprecated-function-62/)
 * Use of deprecated function reported with the following arguments:
    - “Simple_History\Loggers\Logger::__get”,
    - “get_slug()”,
    - 4.5.1
 * Traceback:
 *     ```wp-block-code
       require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Simple_History\WP_REST_Events_Controller->get_items, Simple_History\Log_Query->query, Simple_History\Log_Query->query_overview, Simple_History\Log_Query->query_overview_mysql, Simple_History\Log_Query->get_inner_where, Simple_History\Log_Query->add_search_to_inner_where_query, Simple_History\Log_Query->match_logger_messages_with_search, Simple_History\Loggers\Logger->__get
       ```
   
 * So it looks like the call is made from Log_Query::match_logger_messages_with_search
   presumably this line:
 *     ```wp-block-code
       $one_logger_slug = $one_logger['instance']->slug;
       ```
   
 * Which I assume should be:
 *     ```wp-block-code
       $one_logger_slug = $one_logger['instance']->get_slug();
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [12 months ago](https://wordpress.org/support/topic/deprecated-function-62/#post-18483438)
 * Thanks for the bug report! I will fix this in the next version. Don’t quite understand
   why this does not show up on my local test site (with Query Monitor + debug.log
   enabled)…
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [12 months ago](https://wordpress.org/support/topic/deprecated-function-62/#post-18483676)
 * Its odd. I only see it when I’m logged in as administrator and I’m searching 
   the event log for a particular word.
 * ps: on my debug test site I connect to the [deprecated_function_run](https://developer.wordpress.org/reference/hooks/deprecated_function_run/)
   hook and write to my Simple History log with traceback. Hence, pick up the occasional
   oddity like this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Deprecated function’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)

 * 2 replies
 * 2 participants
 * Last reply from: [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * Last activity: [12 months ago](https://wordpress.org/support/topic/deprecated-function-62/#post-18483676)
 * Status: resolved