=== N2H Nice to Have ===
Contributors: zouinc
Tags: category, categories, media, breadcrumb, suite
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.3
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Nice to have: small tweaks (Media / Category) you can toggle on or off.

== Description ==

N2H Nice to Have bundles the following features into a single plugin, each of which can be turned on or off independently from one settings screen:

* **N2H Media New Window** — opens the admin "Media" menu in a separate window.
* **N2H Category Single Selector** — limits category selection on the post editor to a single category.
* **N2H Category Parent Lock** — prevents selecting a parent category and its descendant categories at the same time.
* **N2H Category Order Keeper** — keeps selected categories from jumping to the top of the category list.
* **N2H Primary Category** — selects a primary category per post and reflects it in Breadcrumb NavXT breadcrumbs and the `%category%` permalink.

Because Category Single Selector only ever allows one category to be selected, it cannot be combined with Category Parent Lock or Primary Category; enabling it automatically disables and locks those two. Category Order Keeper can remain enabled because it only controls display order.

== Changelog ==

= 1.1.3 =
* Updated the plugin description shown on the Plugins screen.

= 1.1.2 =
* N2H Primary Category now also reflects the primary category in the `%category%` permalink (including its ancestor categories).

= 1.1.1 =
* Improved compatibility with other plugins and WordPress admin asset loading.

= 1.1.0 =
* Added English as the base language with a Japanese translation.

= 1.0.0 =
* Initial release.

== 日本語 (Japanese) ==

= 概要 =

N2H Nice to Have は、ちょっと便利な小技（メディア / カテゴリー周り）を1つのプラグインにまとめ、1つの設定画面から機能ごとに個別にON/OFFを切り替えられるようにします。

* **N2H Media New Window** — 管理画面の「メディア」メニューを別ウィンドウで開きます。
* **N2H Category Single Selector** — 投稿編集画面のカテゴリー選択を1つだけに制限します。
* **N2H Category Parent Lock** — 親カテゴリーと子孫カテゴリーの同時選択を防ぎます。
* **N2H Category Order Keeper** — 選択済みカテゴリーがカテゴリー一覧の先頭に移動しないようにします。
* **N2H Primary Category** — 投稿ごとにメインカテゴリーを選択し、Breadcrumb NavXT のパンくずと `%category%` パーマリンクに反映します。

Category Single Selector は常に1つのカテゴリーしか選択できないため、Category Parent Lock・Primary Category とは併用できません。Category Single Selector を有効にすると、この2つは自動的に無効化されロックされます。Category Order Keeper は表示順だけを制御するため、同時に使用できます。

= 変更履歴 =

**1.1.3**
* プラグイン一覧に表示される説明文を更新しました。

**1.1.2**
* N2H Primary Category が、メインカテゴリーを `%category%` パーマリンク（先祖カテゴリーを含む）にも反映するようになりました。

**1.1.1**
* 他のプラグインとの互換性と、WordPress管理画面でのアセット読み込み方法を改善しました。

**1.1.0**
* ソース言語を英語にし、日本語翻訳を追加しました。

**1.0.0**
* 初回リリース。
