Closed mogmarsh closed 2 years ago
It seems that https://github.com/alleyinteractive/ad-layers/blob/feature/version-2/inc/class-ad-layers-post-type.php#L266-L306 is not working, and my guess is that it is trying to compare a string and an int on line 292.
We're going to have the same issue here in the delete function: https://github.com/alleyinteractive/ad-layers/blob/feature/version-2/inc/class-ad-layers-post-type.php#L324
Fixed in #97
The
ad_layers
option can somehow get duplicate entries of the Ad Layer posts. When determining the priority, only the first entry matters, but the second entry can be confusing for users. There is no way to delete the second entry through the GUI, unless you mess with the CSS or DOM in your browser.Example (note duplicate entries for 1000488, 1000491, 1000608 and others):