Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
Modify the handle names of wp_enqueue_script.
  • Loading branch information
takashi-matsuyama committed Apr 24, 2021
1 parent 8e8fb3b commit b555ca6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion browsing-history.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Browsing History
* Plugin URI: https://wordpress.org/plugins/browsing-history
* Description: Save user’s browsing history and list them.
* Version: 1.2.0
* Version: 1.2.1
* Requires at least: 4.8
* Requires PHP: 5.4.0
* Author: Takashi Matsuyama
Expand Down
17 changes: 3 additions & 14 deletions function.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function save_scripts() {
global $post;
$post_id = $post->ID;
}
$handle = 'ccc_browsing_history-save-js';
$handle = 'ccc_browsing_history-save';
$file = 'save.js';
wp_register_script( $handle, CCCBROWSINGHISTORY_PLUGIN_URL.'/assets/'.$file, array( 'jquery' ), CCCBROWSINGHISTORY_PLUGIN_VERSION, true );
wp_enqueue_script( $handle );
Expand Down Expand Up @@ -90,11 +90,11 @@ public function usermeta_browsing_history_get() {


public function list_styles() {
wp_enqueue_style( 'ccc_browsing_history-list-css', CCCBROWSINGHISTORY_PLUGIN_URL.'/assets/list.css', array(), CCCBROWSINGHISTORY_PLUGIN_VERSION, 'all');
wp_enqueue_style( 'ccc_browsing_history-list', CCCBROWSINGHISTORY_PLUGIN_URL.'/assets/list.css', array(), CCCBROWSINGHISTORY_PLUGIN_VERSION, 'all');
} //endfunction

public function list_scripts() {
$handle = 'ccc_browsing_history-list-js';
$handle = 'ccc_browsing_history-list';
$file = 'list.js';
wp_register_script( $handle, CCCBROWSINGHISTORY_PLUGIN_URL.'/assets/'.$file, array( 'jquery' ), CCCBROWSINGHISTORY_PLUGIN_VERSION, true );
wp_enqueue_script( $handle );
Expand Down Expand Up @@ -122,14 +122,3 @@ public function list_posts_action() {


} //endclass











9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: takashimatsuyama
Donate link:
Tags: browsing history, accessibility, design
Requires at least: 4.8
Tested up to: 5.6
Tested up to: 5.7
Requires PHP: 5.4.0
Stable tag: 1.2.0
Stable tag: 1.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -23,6 +23,8 @@ The logged-in user's data is saved in the user meta. Other user's data is saved

* **Shortcode:** `[ccc_browsing_history_list_results title="" posts_per_page="" class="" style=""]`

Detailed usage is under preparation.

== Installation ==

1. Upload `browsing-history` to the `/wp-content/plugins/` directory.
Expand All @@ -33,6 +35,9 @@ The logged-in user's data is saved in the user meta. Other user's data is saved

== Changelog ==

= 1.2.1 =
Modify the handle names of wp_enqueue_script.

= 1.2.0 =
Modify markup of thumbnails and modify CSS.

Expand Down

0 comments on commit b555ca6

Please sign in to comment.