外掛說明
這個外掛會檢查文章/頁面或其他自訂內容類型的新內容的標題是否在網站中獨一無二,並提供能讓使用者修改用於尋找重複標題的 WP_Query 引數的 unique_title_checker_arguments 篩選器,因此使用者可以使用外掛搜尋全站各種不同內容類型的重複標題。
這個外掛是由 ketanajani 開發的 Duplicate Title Checker 的加強版本,但 Duplicate Title Checker 僅支援 [文章] 內容類型,不支援 [頁面] 內容類型及自訂內容類型。
常見問題集
-
網站應該使用這個外掛的原因
-
某些 SEO 專家表示,網站不應該有相同標題的多個頁面。如果在網站中想要避免重複的標題,這個外掛可以協助使用者達成這項工作,因為它為在使用者儲存或發佈內容前,檢查內容標題的唯一性。
-
這個外掛是否可用於自訂內容類型?
-
可以,這個外掛在實作時已將自訂內容類型納入考量。依照預設設定,這個外掛會檢查相同內容類型中的重複標題。
-
這個外掛會檢查哪些標題?
-
依照預設設定,除了 draft、auto-draft、inherit 及 trash 等狀態外,無論是何種狀態的全部內容 (包含自訂內容類型) 均會納入檢查。
-
如果出現重複標題,會無法儲存內容嗎?
-
不會,使用者一定能儲存內容,因為網站可能有使用重複標題的原因。這個外掛僅使用某些 AJAX,不會使用任何方式影響儲存內容。
-
檢查標題的唯一性的時機為何?
-
每當使用者離開標題輸入欄位,這個外掛就會檢查新標題是否具備唯一性,因此使用者可以在儲存內容前就知道標題是否獨一無二。
-
是否可以自訂檢查的預設值?
-
可以。這個外掛提供了名為
unique_title_checker_arguments的篩選器,使用這個篩選器,使用者可以變更外掛用於取得內容重複標題的WP_Query引數。 -
這個外掛是否能檢查不同內容類型間的重複標題?
-
不可以。這個外掛僅能檢查相同內容類型中的重複標題,但使用者可以使用前一個問題中提到的篩選器自訂
WP_Query引數。如需跨內容類型檢查標題,請使用這個外掛以實作能達成這種檢查的篩選器。 -
如果出現重複標題,是否可以僅顯示訊息?
-
可以,使用
unique_title_checker_only_unique_error篩選器、設定值為__return_true便能停用,或使用實作這個篩選器的外掛。 -
如何回報安全性程式碼錯誤?
-
使用者可以透過 Patchstack 的漏洞揭露計畫回報安全性問題。Patchstack 團隊會協助驗證、分類及處理任何安全性漏洞。點擊這裡回報安全性漏洞。
使用者評論
參與者及開發者
變更記錄
2.0.0
- Remove the jQuery dependency
- Time invested for this release: 3h
1.9.0
- Improve JavaScript code security
- Time invested for this release: 60min
1.8.0
- Fix the
post_titleinput selection for iframed Block Editor - Time invested for this release: 60min
1.7.1
- Add blueprint.json file for live demo
- Time invested for this release: 30min
1.7.0
- Fixing the detection of Classic editor in WordPress 6.2
- Time invested for this release: 60min
1.6.0
- Fixing the check for the Block Editor in new WordPress versions.
- Time invested for this release: 90min
1.5.1
- Load the correct JavaScript with Classic Editor activate (props to @elvismdev for the issue and PR!)
- Time invested for this release: 30min
1.5.0
- Improve the translation for languages having “multiple singulars” (e.g. RU)
- Time invested for this release: 45min
1.4.1
- Fix jQuery noConflict issue with Gutenberg block editor
- Time invested for this release: 15min
1.4.0
- Add support for Gutenberg block editor
- Time invested for this release: 90min
1.3.0
- Adding a filter
unique_title_checker_only_unique_errorto hide the success message if a title is unique - Time invested for this release: 30min
1.2.3
- Apply WordPress Coding Standards
- Time invested for this release: 20min
1.2.2
- Fixing German translation and tag as tested up to 4.5
- Time invested for this release: 10min
1.2.1
- Fixing query arguments for admin notices
- Time invested for this release: 10min
1.2
- Show warning when editing a post that has a duplicate title
- Time invested for this release: 30min
1.1
- Show no warning on empty titles
- Time invested for this release: 10min
1.0
- First stable version to be deployed in the official WordPress Plugin Repository
- Writing a readme file
- Making some screenshots
- Submitting the plugin request form
- Adding plugin to the official SVN repository
- Time invested for this release: 2h
0.1
- First version of the plugin including a German translation
- Time invested for this release: 3h



