“Предупреждение: Параметр 2 на search_by_title (), как ожидается, будет ссылкой, значение приведено в” Ответ

Предупреждение: Параметр 2 на search_by_title (), как ожидается, станет ссылкой, данное значение inwp-includes class-wp-hook.php в строке 287

#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 -> <your-theme> -> functions.php -> search the code and remove the &
__search_by_title_only( $search, $wp_query ) {
CodeAsian

Предупреждение: Параметр 2 на search_by_title (), как ожидается, будет ссылкой, значение приведено в

#plugin version
#PHP 7.1+ doesn’t like & in front of $query parameters in functions remove it and you should be fine.
Example in the source

#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 -> <your-theme> -> functions.php -> search the code and remove the &
__search_by_title_only( $search, $wp_query ) {

#source: https://generatepress.com/forums/topic/search-function-error/
CodeAsian

Ответы похожие на “Предупреждение: Параметр 2 на search_by_title (), как ожидается, будет ссылкой, значение приведено в”

Вопросы похожие на “Предупреждение: Параметр 2 на search_by_title (), как ожидается, будет ссылкой, значение приведено в”

Смотреть популярные ответы по языку

Смотреть другие языки программирования