This commit is contained in:
Javier Casares 2026-08-17 18:51:45 +00:00
commit 7f89e98bbc
18 changed files with 2227 additions and 1853 deletions

View file

@ -398,9 +398,16 @@ class ToolsPage {
if ( is_array( $cached ) ) {
$typed = array();
foreach ( $cached as $k => $v ) {
if ( is_int( $k ) && is_array( $v ) ) {
$typed[ $k ] = $v;
if ( ! is_int( $k ) || ! is_array( $v ) ) {
continue;
}
$row = array();
foreach ( $v as $row_key => $row_value ) {
if ( is_string( $row_key ) ) {
$row[ $row_key ] = $row_value;
}
}
$typed[ $k ] = $row;
}
return $typed;
}