[There is another open ticket, and this might relate to that.
That problem is that with Toolset Types activated, opening Pages to Edit is very slow, but when Toolset Types deactivated, speed is fine - support is still working on that. ]
As part of troubleshooting, with all except security and cache plugins deactivated (i.e. all Toolset plugins deactivated too), when opening a page for edit, it takes a while and this message is repeated before the page eventually loads:
Deprecated: ctype_digit(): Argument of type WP_Post will be interpreted as string in the future in /home/golden/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/factory.php on line 134
Edit Page
The code relevant code snippet in factory.php is:
if ( ! $force_query_by_name && ( ctype_digit( $field_group ) || is_int( $field_group ) ) && (int) $field_group > 0 ) {
// query by post id
When Toolset is activated, another deprecated message slows down page loading for editing - it is annoying, and time consuming. That message is about FILTER_SANITIZE_STRING being deprecated (see screenshot).
When Toolset WooCommerce Blocks is deactivate the message does not show.
Although deprecated items should not have an impact, it does slow down editing time as pages do not load immediately. The system tries is held up for 15+ times.
Is it possible to stop those messages? Or is there another solution to prevent these from interfering with editing?