Changeset 1919971
- Timestamp:
- 08/05/2018 09:48:50 AM (8 years ago)
- Location:
- cenchat-comments/trunk
- Files:
-
- 2 added
- 4 edited
-
README.txt (modified) (2 diffs)
-
cenchat-comments.php (modified) (2 diffs)
-
includes/class-cenchat-comments.php (modified) (1 diff)
-
public/class-cenchat-comments-public.php (modified) (1 diff)
-
public/partials (added)
-
public/partials/cenchat-comments-public-display.php (added)
Legend:
- Unmodified
- Added
- Removed
-
cenchat-comments/trunk/README.txt
r1918903 r1919971 4 4 Requires at least: 4.9 5 5 Tested up to: 4.9 6 Stable tag: 0.0. 16 Stable tag: 0.0.2 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 85 85 == Changelog == 86 86 87 = 0.0.2 = 88 * Fix bug that loads WordPress built-in comments along with Cenchat comments 89 87 90 = 0.0.1 = 88 91 * Initial launch -
cenchat-comments/trunk/cenchat-comments.php
r1918901 r1919971 16 16 * Plugin URI: https://cenchat.com 17 17 * Description: Civilized commenting service. 18 * Version: 0.0. 118 * Version: 0.0.2 19 19 * Author: Cenchat 20 20 * Author URI: http://cenchat.com … … 33 33 * Rename this for your plugin and update it as you release new versions. 34 34 */ 35 define( 'CENCHAT_COMMENTS_VERSION', '0.0. 1' );35 define( 'CENCHAT_COMMENTS_VERSION', '0.0.2' ); 36 36 37 37 /** -
cenchat-comments/trunk/includes/class-cenchat-comments.php
r1882911 r1919971 140 140 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 141 141 $this->loader->add_action( 'wp_head', $plugin_public, 'add_cenchat_meta' ); 142 $this->loader->add_ action( 'comments_template', $plugin_public, 'add_cenchat_comments' );142 $this->loader->add_filter( 'comments_template', $plugin_public, 'add_cenchat_comments' ); 143 143 } 144 144 -
cenchat-comments/trunk/public/class-cenchat-comments-public.php
r1882911 r1919971 95 95 public function add_cenchat_comments() { 96 96 if ( comments_open() ) { 97 $page_id = get_the_ID(); 98 $value = isset( $page_id ) ? esc_attr( $page_id ) : ''; 99 100 $template = sprintf( '<div id="cenchat-comments" data-page-id="%1$s"></div>', esc_attr( $value ) ); 101 102 echo $template; 97 return plugin_dir_path( dirname( __FILE__ ) ) . 'public/partials/cenchat-comments-public-display.php'; 103 98 } 104 99 }
Note: See TracChangeset
for help on using the changeset viewer.