Repository navigation
Commit b517efb
Fix --exclude_revisions test and apply the filter to any posts table
- The scenario lacked 'Given a WP install', so it failed on every CI job.
Use --format=count/ids on wp_posts so the test asserts the revision is gone.
- Build the revision filter once per table, for any *posts table that has a
post_type column (covers other sites' tables in a network), and use it in
both the LIKE and --regex queries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWTd5pwpi2xQfDA6mUYkkx1 parent fdfae59 commit b517efb
2 files changed
Lines changed: 29 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
987 | | - | |
988 | | - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
989 | 989 | | |
990 | | - | |
991 | | - | |
992 | 990 | | |
993 | | - | |
994 | | - | |
| 991 | + | |
| 992 | + | |
995 | 993 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
1000 | 1001 | | |
1001 | 1002 | | |
1002 | 1003 | | |
1003 | 1004 | | |
1004 | 1005 | | |
1005 | | - | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1010 | 1016 | | |
1011 | 1017 | | |
1012 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
1810 | 1816 | | |
1811 | | - | |
1812 | | - | |
| 1817 | + | |
1813 | 1818 | | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
| 1819 | + | |
1822 | 1820 | | |
1823 | | - | |
| 1821 | + | |
1824 | 1822 | | |
| 1823 | + | |
1825 | 1824 | | |
1826 | | - | |
| 1825 | + | |
1827 | 1826 | | |
1828 | 1827 | | |
1829 | 1828 | | |
| |||
0 commit comments