Commit f012728
fix: don't reject WordPress 7.0 prereleases (v0.9.1)
The previous version_compare against '7.0' rejected any prerelease
string like '7.0-RC1' or '7.0-beta3', because version_compare sorts
prereleases below the bare version. Drop the WP version check entirely
and rely on function_exists('wp_ai_client_prompt') as the actual signal
the AI Client API is available, regardless of the WordPress version
label. The PHP version check is preserved.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2878044 commit f012728
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
47 | 46 | | |
48 | | - | |
49 | | - | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
0 commit comments