v1.8.3
This commit is contained in:
parent
6c6a7fca00
commit
7f89e98bbc
18 changed files with 2227 additions and 1853 deletions
|
|
@ -210,6 +210,8 @@ class Settings {
|
|||
<div class="wrap">
|
||||
<h1><?php esc_html_e( 'Media Audit — Network Settings', 'robotstxt-mediaaudit' ); ?></h1>
|
||||
|
||||
<?php \MediaRightsAudit\Admin\ManagerNotice::render_settings_notice(); ?>
|
||||
|
||||
<?php if ( $updated ) : ?>
|
||||
<div class="notice notice-success is-dismissible"><p><?php esc_html_e( 'Settings saved.', 'robotstxt-mediaaudit' ); ?></p></div>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue