“Deprecated: ltrim()…” warnings on manage subscription user page
-
Testing on new WordPress 6.6.2 install with PHP 8.2. No other plugins activated. When I purchase a subscription from a test user with no administrative privileges and then go to the Manage Subscription page, e.g.
/gp-subscriptions/?subscription=2
, there are multiple PHP deprecated warnings regarding passing null toltrim
orpreg_replace
:It seems to be coming from
WPInv_Subscriptions_List_Table::generate_item_markup
on line 394 inadmin/class-wpinv-subscriptions-list-table.php
which tries to get the link to the edit page for an item or invoice and then passes that toesc_url
without checking if it’s null.
- You must be logged in to reply to this topic.