File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## Version 2.x
9
9
10
+ ### Version 2.6.2
11
+ * Bugfix: Error in most popular posts diagram showing multiple pages with the same title
12
+
10
13
### Version 2.6.1
11
14
* Update tooltip library (switch to more recent fork)
12
15
* Fix issues on WordPress multisite installations (set capabilities and links on the content page)
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class="<?php eefstatify_echo_tab_class( $selected_post_type === $post_type ); ?>
78
78
</form>
79
79
<?php if ( count ( $ views_per_post ) === 0 ) { ?>
80
80
<p><?php esc_html_e ( 'No data available. ' , 'extended-evaluation-for-statify ' ); ?> </p>
81
- <?php } else { ?>
81
+ <?php } else { ?>
82
82
<section>
83
83
<?php
84
84
$ legend = [];
@@ -98,8 +98,8 @@ class="<?php eefstatify_echo_tab_class( $selected_post_type === $post_type ); ?>
98
98
'#chart-popular-content',
99
99
[
100
100
<?php
101
- foreach ( $ views_per_post_for_diagram as $ post ) {
102
- echo "[' " . esc_js ( eefstatify_get_post_title_from_url ( $ post [ ' url ' ] ) ) . "', " . esc_js ( $ post ['count ' ] ) . '], ' ;
101
+ foreach ( $ views_per_post_for_diagram as $ index => $ post ) {
102
+ echo "[' " . esc_js ( $ index ) . "', " . esc_js ( $ post ['count ' ] ) . '], ' ;
103
103
}
104
104
?>
105
105
]
You can’t perform that action at this time.
0 commit comments