Loading README.md +10 −10 Original line number Diff line number Diff line Loading @@ -7,27 +7,27 @@ posts and pages, and to show reports on that counting. Counting words --------------   Statistics ----------   Tables ------   Bar charts ----------   Pie charts ----------   The charts in the reports are created using the [apexcharts](https://apexcharts.com/) library, available under the MIT license. Loading @@ -36,11 +36,11 @@ The charts in the reports are created using the Installation ------------ Put the `word-count` directory in `${WPDIR}/wp-content/plugins` and activate it in the plugins section of the admin page. The first time you visit the "Word count" section, the plugin will start to automatically count the words of all the published posts and pages. How long will it take depends on the server machine and the number of posts and pages. Put the `free-word-count` directory in `${WPDIR}/wp-content/plugins` and activate it in the plugins section of the admin page. The first time you visit the "Word count" section, the plugin will start to automatically count the words of all the published posts and pages. How long will it take depends on the server machine and the number of posts and pages. After that, the word count will be automatically updated when you publish posts and pages; but if you feel is necessary you can trigger the count manually Loading page.php +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ class WordCounter { this.intervalId = -1; this.progressValue = 0; this.baseUrl = siteUrl + '/wp-content/plugins/word-count/word-count-progress.php?' + '/wp-content/plugins/free-word-count/free-word-count-progress.php?' + 'key=' + key + '&total=' + total; this.relocateUrl = siteUrl + '/wp-admin/admin.php?page=free-word-count'; } Loading tab-stats.php +1 −1 Original line number Diff line number Diff line <?php $base_url = get_site_url() . '/wp-content/plugins/word-count'; $base_url = get_site_url() . '/wp-content/plugins/free-word-count'; $sql = $wpdb->prepare("SELECT SUM(CAST({$wpdb->postmeta}.meta_value AS UNSIGNED)) AS total FROM {$wpdb->posts}, {$wpdb->postmeta} Loading top-20-barcharts.php +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ if ($wc_filter == '') { $results = $wpdb->get_results($sql); $n = $wpdb->num_rows; $base_url = get_site_url() . '/wp-content/plugins/word-count'; $base_url = get_site_url() . '/wp-content/plugins/free-word-count'; ?> <script src="<?php echo $base_url; ?>/apexcharts/apexcharts.js"></script> <div class="wc_section"> Loading top-20-piecharts.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ $wc_page = !empty($_GET["wc-$post_type-page"]) ? $wc_filter = !empty($_GET["wc-$post_type-filter"]) ? $_GET["wc-$post_type-filter"] : ''; $base_url = get_site_url() . '/wp-content/plugins/word-count'; $base_url = get_site_url() . '/wp-content/plugins/free-word-count'; $sql = ''; if ($wc_filter == '') { Loading Loading
README.md +10 −10 Original line number Diff line number Diff line Loading @@ -7,27 +7,27 @@ posts and pages, and to show reports on that counting. Counting words --------------   Statistics ----------   Tables ------   Bar charts ----------   Pie charts ----------   The charts in the reports are created using the [apexcharts](https://apexcharts.com/) library, available under the MIT license. Loading @@ -36,11 +36,11 @@ The charts in the reports are created using the Installation ------------ Put the `word-count` directory in `${WPDIR}/wp-content/plugins` and activate it in the plugins section of the admin page. The first time you visit the "Word count" section, the plugin will start to automatically count the words of all the published posts and pages. How long will it take depends on the server machine and the number of posts and pages. Put the `free-word-count` directory in `${WPDIR}/wp-content/plugins` and activate it in the plugins section of the admin page. The first time you visit the "Word count" section, the plugin will start to automatically count the words of all the published posts and pages. How long will it take depends on the server machine and the number of posts and pages. After that, the word count will be automatically updated when you publish posts and pages; but if you feel is necessary you can trigger the count manually Loading
page.php +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ class WordCounter { this.intervalId = -1; this.progressValue = 0; this.baseUrl = siteUrl + '/wp-content/plugins/word-count/word-count-progress.php?' + '/wp-content/plugins/free-word-count/free-word-count-progress.php?' + 'key=' + key + '&total=' + total; this.relocateUrl = siteUrl + '/wp-admin/admin.php?page=free-word-count'; } Loading
tab-stats.php +1 −1 Original line number Diff line number Diff line <?php $base_url = get_site_url() . '/wp-content/plugins/word-count'; $base_url = get_site_url() . '/wp-content/plugins/free-word-count'; $sql = $wpdb->prepare("SELECT SUM(CAST({$wpdb->postmeta}.meta_value AS UNSIGNED)) AS total FROM {$wpdb->posts}, {$wpdb->postmeta} Loading
top-20-barcharts.php +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ if ($wc_filter == '') { $results = $wpdb->get_results($sql); $n = $wpdb->num_rows; $base_url = get_site_url() . '/wp-content/plugins/word-count'; $base_url = get_site_url() . '/wp-content/plugins/free-word-count'; ?> <script src="<?php echo $base_url; ?>/apexcharts/apexcharts.js"></script> <div class="wc_section"> Loading
top-20-piecharts.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ $wc_page = !empty($_GET["wc-$post_type-page"]) ? $wc_filter = !empty($_GET["wc-$post_type-filter"]) ? $_GET["wc-$post_type-filter"] : ''; $base_url = get_site_url() . '/wp-content/plugins/word-count'; $base_url = get_site_url() . '/wp-content/plugins/free-word-count'; $sql = ''; if ($wc_filter == '') { Loading