Where…
The following files hold the deprecated functions:
~/wp-includes/deprectated.php
~/wp-includes/pluggable-deprectated.php
- …
Take a look at them and then through their replacement functions, where the calls to _deprecated_function()
happen.
Why…
Normally a crash shouldn’t happen. In the “real” PHP world, you’d get an E_DEPRECATED
Warning. In WordPress you’ll get a trigger_error()
return caused by _deprecated_function()
calls. The second trigger_error()
argument isn’t used, so it defaults to E_USER_NOTICE
and won’t stop your application from running.
How to turn it off…
You can turn this off either by using define( 'WP_DEBUG', false );
or by using a MU-Plugin that sets the filter to false:
<?php
defined('ABSPATH') or exit;
/** Plugin Name: (#105686) Turn off deprecated Warnings */
add_filter( 'deprecated_function_trigger_error', '__return_false' );
Related Posts:
- WordPress Update Plugin Hook/Action? Since 3.9
- Update exisiting site to 3.5 release candidate
- How to debug WordPress correctly?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- Which themes do you use to test compatibilities with your plugin [closed]
- Plugin Upgrade Strategy
- How to update an existing table while updating plugin?
- Can a plugin be used to contain all custom functions to extend other plugins
- Does WordPress run install/uninstall functions on plugin upgrade?
- Upgrade private plugin without deleting files?
- Plugin development: delete options when updating to a new version
- wp_get_theme Warning: Illegal offset type
- WP Plugin with Upgrade option
- dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
- How to receive notification of deprecated API elements and functions?
- Rewrite not working since upgrade to 5.9
- Upgrade routine: Interaction with user confirmation
- How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?
- How do I create a custom role capability?
- What is the advantage of using wp_mail?
- Export data as CSV in back end with proper HTTP headers
- Calling the widget id of a mult-instance widget from inside the widget?
- Do I need to call do_action in my plugin?
- Fatal error: Call to undefined function wp_mail()
- Does WordPress have an Browser Agent?
- How Do I Load My Action Earlier Enough?
- WooCommerce get Shipping Class of product from either the product id or the order after order is completed
- Dequeue script, but still use wp_localize_script to pass vars
- I can’t find where a hook is being defined in a plugin – Easy Digital Downloads
- Filter on the_content ignores shortcodes
- Can I add pages to my custom menu via script?
- Replacing WordPress menu functionality with a plugin
- Programmatically Selecting Theme Based on URL
- Why is print_r returning $classObj->userObj in several places on site
- Is it possible to load plugin from console with core ?
- Plugin development: is adding empty index.php files necessary?
- Plugin base URL
- Database for development
- Customize multisite site creation with user data
- Adding plugin settings link upon activation
- How to create multiple Gutenberg blocks in one plugin
- How to disable reCaptcha v3 except on Contact Form 7 pages?
- Fetching the value of forms in WordPress AJAX
- Cannot redeclare function error on the same line
- How to prevent UNDO on guternberg block editor
- do_action and add_action on two different installed plugins won’t work
- How to override gutenberg paragraph block edit property
- How can I get the selected string when using a toolbar button in Gutenberg?
- woocommerce_checkout_order_processed hook executing function twice
- Authorizing a plugin to call Google Analytics v4 API on wp_cron
- WordPress pre_get_posts with combined results of two queries (OR)
- Plugin directory says that my plugin it’s not availabe in Spanish, but it is
- How to analyze wordpress plugin performance
- how to use shortinit in wordpress
- Using ob_get_content to get_search_form puts into infinite loop
- Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins
- Declare plugin dependency [duplicate]
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- Jquery was not found on this server
- Is there an admin hook that will let me read GET variable before it’s too late to set the header Location
- WordPress plugin development OOP style
- Let plugin check if taxonomy is already registered by another plugin
- How to add custom post widgets as tags into wordpress
- Working of foreach loop with array
- Submit form to a different PHP file in the same plugin folder
- What might be the reason of Couldn’t fetch mysqli_result on another domain?
- $wpdb->update Issue
- wp_insert_post generated mixed permalinks
- Adjust query on single
- Is there any way to pass messages from a script to a redirect target in a hidden fashion?
- What should I pass for $needed_dirs when calling _unzip_file_pclzip (aka PclZip)?
- Custom Path for a Plugin
- Plugin could not be activated because it triggered a fatal error?
- How to determine primary editor for a page/post
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- WPGut – Updating failed and shortcode?
- How the add_action is included in the plugin development
- Fatal error: Uncaught Error: Using $this when not in object context
- do I need to sanitize a shortcode’s function input?
- Email content as comment
- WordPress use template
- Warning: Illegal string offset – on homepage
- Organising and completing posts (mark as read and hide)
- Query only title/field/featured media of posts [closed]
- To remove rendering of menus and header, plugin or theme?
- When using an options array the Settings API isn’t creating the database record
- Displaying External Data – Not Posts
- the correct way to use options from settings page [closed]
- I want to add post meta for picture thum during submit for revision
- How to synchronize an e-commerce site and a pharmacy management software?
- woocommerce features to add product along with link
- Help interpreting @wordpress/create-block-tutorial-template usage error
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- React Plugin Settings Page Localization
- Is it within WordPress guidelines to update another plugin’s database fields from my own plugin? [closed]
- Block Development: hamburger module throwing error in save function
- How can I chanage the user for the composer container in wp-env?
- Adding a navigation with wp_nav_menu() to a custom block in the site editor
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?
- Ninja Forms: Front-End Forms, Post ID?