The following column WordPress Tutorial will introduce to you the solution to the invalid reply button in WordPress 5.5. I hope it will be helpful to friends in need!
Some children found that the reply button failed after upgrading to WordPress 5.5. This happened in WordPress 5.1. Most of the problems occurred in themes that customized comment functions or used Ajax comments. middle.
The symptoms are: clicking the reply button refreshes the page, and the comment form cannot be nested.
The cause of the problem is that the WordPress developer modified the comment core file. After testing, it seems that the comment-reply.js file in the wp-includes\js directory was modified. After replacing it with the file of version 5.4.2, the problem disappeared.
The same problem appeared twice. I was a little too careless about thousands of theme users. There was no clear documentation and I just messed with the block editor....
Solution, You can try adding the following code to theme functions.php:
add_filter( 'comment_reply_link', 'mytheme_replace_comment_reply_link', 10, 4 ); function mytheme_replace_comment_reply_link( $link, $args, $comment, $post ){ if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) { $link = sprintf( '<a rel="nofollow" class="comment-reply-login" href="%s">%s</a>', esc_url( wp_login_url( get_permalink() ) ), $args['login_text'] ); } else { $onclick = sprintf( 'return addComment.moveForm( "%1$s-%2$s", "%2$s", "%3$s", "%4$s" )', $args['add_below'], $comment->comment_ID, $args['respond_id'], $post->ID ); $link = sprintf( "<span class='comment-reply-link' data-href='%s' onclick='%s' aria-label='%s'>%s</span>", esc_url( add_query_arg( 'replytocom', $comment->comment_ID, get_permalink( $post->ID ) ) ) . "#" . $args['respond_id'], $onclick, esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ), $args['reply_text'] ); } return $link; }
This method was previously used in WP5.1 and is also applicable to W5.5. You can appropriately modify the classes to adapt to your own theme structure.
The code that comes with the program is located in comment-template.php in the wp-includes directory, about line 1817
Code source: https://wp-kama.ru/function/get_comment_reply_link
In addition, there are many incompatibility issues between WordPress 5.5 and themes and plug-ins, which appear endlessly on the official website.
Because there is no security update for WordPress 5.5, and there is no Chinese version. Using the previous language files, there are a lot of foreign characters in the background. I have not upgraded myself at the moment. I estimate that the Chinese version will be far away this time. .
The focus of the WordPress 5.5 update is just to toss the block editor. It is a thankless effort to develop new block editor features despite the opposition of most people. If developers read the "Classic Editor" "Server" switch plug-in, 5 million downloads and installations, I don’t know what it will be like.
The official said that the classic editor will be completely removed after 2022. If there is no replacement by then, it will be a disaster for the majority of users and a great loss for WordPress. Some people will abandon WordPress and switch to other places. program.
The above is the detailed content of Regarding the problem of invalid reply button in WordPress 5.5. For more information, please follow other related articles on the PHP Chinese website!

wordpress后台乱码的解决办法:1、在wordpress的“wp-admin”文件夹下找到“admin.header.php”文件;2、将“charset”属性值设置为“UTF-8”格式即可恢复正常。

wordpress标签错误的解决办法:1、找到并打开wordpress的“wp-includes”目录下的“class-wp.php”文件;2、修改内容为“$pathinfo = isset( $_SERVER['PATH_INFO'] )?mb_convert_encoding($_SERVER['PATH_INFO'],'utf-8','GBK') : '';”即可。

你下载的WordPress主题提供的keywords和description这两个meta标签一般都做得很差,或者根本就不提供,这样不利于SEO。本文将指导你如何给主页、分类、页面以及文章页添加单独的Description 和 Keywords。

wordpress乱码的解决办法:1、修改“wp-config.php”文件里的“define(’DB_CHARSET’, ‘utf8′);”为“define(’DB_CHARSET’, ”);”;2、把新数据库的编码设置成“latin1_swedish_ci”;3、以uft8的格式导入备份的数据库文件即可。

wordpress进不去的解决办法:1、把地址栏“wp-login.php”后面的参数删掉,然后重新输入密码登录;2、登录FTP,下载“pluggable.php”文件,然后找到“ADMIN_COOKIE_PATH”并将它替换为“SITECOOKIEPATH”即可。

wordpress不是saas。SaaS是一种软件销售模式,它主要针对云端应用软件,而WordPress是一款CMS系统,它主要针对网站构建和管理。虽然WordPress可以作为SaaS提供服务,但它本质上不是一种SaaS应用。

本次PHP中文网整合了相关的视频教程,中文手册,以及相关的精选文章安利给大家,统统免费!!!通过我们分享的视频,可随时随地免费观看教程视频,也不需要迅雷或者百度网盘下载了。

wordpress是2003年发布的;Matt于2003年5月27日宣布推出第一版WordPress,受到了社区的欢迎,它基于b2 Cafelog并有显著改进;WordPress的第一个版本包括全新的管理界面、模板、XHTML 1.1兼容模板、内容编辑器。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1
Powerful PHP integrated development environment

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
