Skip to content

Commit b43aa65

Browse files
grunt
1 parent c682b34 commit b43aa65

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

classes/Visualizer/Render/Library.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private function _renderChartBox( $placeholder_id, $chart_id ) {
221221
admin_url( 'admin-ajax.php' )
222222
);
223223

224-
$chart_status = array( 'date' => get_the_modified_date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $chart_id ), 'error' => get_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, true ), 'icon' => 'dashicons-yes-alt', 'title' => '' );
224+
$chart_status = array( 'date' => get_the_modified_date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $chart_id ), 'error' => get_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, true ), 'icon' => 'dashicons-yes-alt', 'title' => '' );
225225
if ( ! empty( $chart_status['error'] ) ) {
226226
$chart_status['icon'] = 'error dashicons-dismiss';
227227
$chart_status['title'] = __( 'Click to view the error', 'visualizer' );
@@ -239,7 +239,7 @@ private function _renderChartBox( $placeholder_id, $chart_id ) {
239239
echo '<span class="visualizer-chart-shortcode" title="', esc_attr__( 'Click to select', 'visualizer' ), '">';
240240
echo '&nbsp;[visualizer id=&quot;', $chart_id, '&quot;]&nbsp;';
241241
echo '</span>';
242-
echo '<hr><div class="visualizer-chart-status"><span class="visualizer-date" title="' . __( 'Last Updated', 'visualizer' ) . '">' . $chart_status['date'] . '</span><span class="visualizer-error"><i class="dashicons ' . $chart_status['icon'] . '" data-viz-error="'. esc_attr( str_replace( '"', "'", $chart_status['error'] ) ) . '" title="' . esc_attr( $chart_status['title'] ) . '"></i></span></div>';
242+
echo '<hr><div class="visualizer-chart-status"><span class="visualizer-date" title="' . __( 'Last Updated', 'visualizer' ) . '">' . $chart_status['date'] . '</span><span class="visualizer-error"><i class="dashicons ' . $chart_status['icon'] . '" data-viz-error="' . esc_attr( str_replace( '"', "'", $chart_status['error'] ) ) . '" title="' . esc_attr( $chart_status['title'] ) . '"></i></span></div>';
243243
echo '</div>';
244244
echo '</div>';
245245
}

js/library.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/* global visualizer */
2+
/* global alert */
3+
24
(function (wpmv) {
35
var vm, vmv;
46

0 commit comments

Comments
 (0)