Commit d6baab6
wpcomsh: Mirror POSTS_TO_PODCAST tier features from wpcom (#48776)
* wpcomsh: Mirror POSTS_TO_PODCAST tier features from wpcom
Mirrors the wpcom-side change (Automattic/wpcom#217049) that introduces
plan-tiered monthly quotas for the Posts to Podcast endpoint:
POSTS_TO_PODCAST_TIER_1 → Personal+ (5 generations / month)
POSTS_TO_PODCAST_TIER_2 → Premium+ (10)
POSTS_TO_PODCAST_TIER_3 → Business+ (20)
Sites accumulate tiers through the existing _AND_HIGHER plan cascades;
the lib's quota helper on the wpcom side reads from the highest tier
down and returns on the first hit.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* wpcomsh: Drop comment that broke phpcs alignment cascade
The three-line comment above POSTS_TO_PODCAST_TIER_1 split the
existing const-declarations alignment block in two, which made phpcs
demand re-padding for the 60+ unmodified constants that follow. The
constant names are self-documenting and the tier→quota mapping is
documented at the FEATURES_MAP entries below; drop the constants-block
comment to restore the prior alignment.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dd99ac3 commit d6baab6
2 files changed
Lines changed: 20 additions & 0 deletions
File tree
- projects/plugins/wpcomsh
- changelog
- wpcom-features
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
| |||
1093 | 1096 | | |
1094 | 1097 | | |
1095 | 1098 | | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1096 | 1112 | | |
1097 | 1113 | | |
1098 | 1114 | | |
| |||
0 commit comments