📜  警告:search_by_title() 的参数 2 应为参考,在第 287 行的 inwp-includes\class-wp-hook.php 中给出的值 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:10.448000             🧑  作者: Mango

代码示例2
#Custom theme (old themes that does not support the new PHP 7.1+ version)
#PHP 7.1 doesn’t like & in front of $query parameters in functions.
#In the Themes ->  -> functions.php -> search the code and remove the &
__search_by_title_only( $search, $wp_query ) {