![](/img/trans.png)
[英]Wordpress function cache_users not found after update to 6.1
在我的自定義插件中運行 function get_users() 時出現錯誤 PHP 致命錯誤:未捕獲錯誤:調用 /Users/priyankgohil/sites/upw-new/wp-includes/class-wp-user-query.php:843 中未定義的 function cac ...
[英]Wordpress function cache_users not found after update to 6.1
在我的自定義插件中運行 function get_users() 時出現錯誤 PHP 致命錯誤:未捕獲錯誤:調用 /Users/priyankgohil/sites/upw-new/wp-includes/class-wp-user-query.php:843 中未定義的 function cac ...
[英]Adding editor styles to the Astra theme
我正在使用 Astra 主題(帶有 Astra Pro 插件)。 我正在嘗試為我創建的一些塊模式加入一些自定義編輯器 styles。 我首先嘗試了這個: add_theme_support('editor-styles'); 但是在我做的那一刻——甚至在進入add_editor_style之前——發 ...
[英]Can't create new post. rest_cookie_invalid_nonce no matter what I do
[" {"code":"rest_cookie_invalid_nonce","message":"A verifica\u00e7\u00e3o cookie falhou","data":{"status":403}} ...
[英]How to get current page URL in Wordpress 6.0?
在 Wordpress 6.0 之前嘗試使用以下代碼獲取頁面 url,但在更新到 Wordpress 6.0 之后, $wp->request在所有頁面上都作為空字符串出現。 如果這很重要,我在通用設置下的永久鏈接中設置了帖子名稱。 自 Wordpress 6.0 起,以下代碼不再適用於在瀏 ...
[英]WordPress 6.0 and _s theme posts and pages are not found
WordPress 到 6.0 的自動更新導致現在沒有顯示任何內容的問題。 所有頁面、帖子等都顯示“未找到”,因為帖子和頁面不再存在。 恢復到 5.9 時它工作正常。 這是我的 index.php 主題: 6.0 中是否有模板不起作用或發布查詢已更改的重大更新? ...