[wp-trac] [WordPress Trac] #62075: Deprication on every page load.
WordPress Trac
noreply at wordpress.org
Wed Sep 18 15:10:05 UTC 2024
#62075: Deprication on every page load.
--------------------------+-----------------------------
Reporter: mrDollar4444 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 6.6.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi, please confirm an issue.
Path to recreate.
1. Create a new plugin, go to the wp-conten/plugins folder and create a
new file there wpcli-demo-plugin.php
2. Add the following content to the newly created file
{{{
<?php
/**
* Plugin Name: WP-CLI Demo Plugin
* Plugin URI: https://plugins.wp-cli.org/demo-plugin
* Description: This is a wp-cli demo plugin
* Author: wp-cli
* Author URI: https://wp-cli.org
* Text Domain: wpcli-demo-plugin
* Domain Path: /languages
* Version: 0.1.0
*
* @package Wpcli_Demo_Plugin
*/
add_action('init', 'foo');
function foo() {
wp_footer();
}
}}}
3. Activate the newly created plugin with wpcli 'wp plugin activate wpcli-
demo-plugin' or admin dashboard.
4. Enable debug.log
5. Observe issue. On every page load, we can see depreciation Deprecated:
Function the_block_template_skip_link is deprecated since version 6.4.0!
Use wp_enqueue_block_template_skip_link() instead. in /var/www/html/wp-
includes/functions.php on line 6085
It's a demo code that can look some useless but I see the same issue on
others quite popular plugins.
I think the issue started from here
https://core.trac.wordpress.org/ticket/59505
Tested on latest Prodaction 6.6.2 and dev version of wordpress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62075>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list