Version Description
- Improvement: Updated schema exiting action and enqueue files function.
Download this release
Release Info
Developer | Nikschavan |
Plugin | All In One Schema Rich Snippets |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.3
- functions.php +8 -10
- index.php +1 -1
- readme.txt +6 -6
functions.php
CHANGED
@@ -23,8 +23,8 @@ add_action( 'wp_head', 'add_ajax_library' );
|
|
23 |
* Initialize the metabox class.
|
24 |
*/
|
25 |
/* FUNCTION to check for posts having snippets */
|
26 |
-
add_action('wp','
|
27 |
-
function
|
28 |
global $post;
|
29 |
|
30 |
if( !isset( $post->ID ) ) {
|
@@ -33,19 +33,17 @@ function check_snippet_existence(){
|
|
33 |
|
34 |
$type = get_post_meta($post->ID, '_bsf_post_type', true);
|
35 |
if($type){
|
36 |
-
add_action(
|
37 |
-
add_action('wp_enqueue_scripts', 'enque');
|
38 |
}
|
39 |
|
40 |
}
|
41 |
-
function
|
42 |
wp_enqueue_style('rating_style', plugin_dir_url(__FILE__) . 'css/jquery.rating.css');
|
43 |
wp_enqueue_script('jquery_rating', plugin_dir_url(__FILE__) . 'js/jquery.rating.min.js', array('jquery'));
|
|
|
|
|
44 |
}
|
45 |
-
|
46 |
-
wp_register_style( 'bsf_style', plugins_url('/css/style.css', __FILE__) );
|
47 |
-
wp_enqueue_style('bsf_style');
|
48 |
-
}
|
49 |
function bsf_initialize_bsf_meta_boxes() {
|
50 |
if ( ! class_exists( 'bsf_Meta_Box' ) )
|
51 |
require_once plugin_dir_path( __FILE__ ).'init.php';
|
@@ -1153,7 +1151,7 @@ function get_previous_rating($needle, $haystack, $strict = false) {
|
|
1153 |
function add_ajax_library() {
|
1154 |
|
1155 |
$html = '<script type="text/javascript">';
|
1156 |
-
$html .= 'var ajaxurl = "' . admin_url( 'admin-ajax.php' ) . '"';
|
1157 |
$html .= '</script>';
|
1158 |
|
1159 |
echo $html;
|
23 |
* Initialize the metabox class.
|
24 |
*/
|
25 |
/* FUNCTION to check for posts having snippets */
|
26 |
+
add_action( 'wp','aiosrs_check_snippet_existence' );
|
27 |
+
function aiosrs_check_snippet_existence(){
|
28 |
global $post;
|
29 |
|
30 |
if( !isset( $post->ID ) ) {
|
33 |
|
34 |
$type = get_post_meta($post->ID, '_bsf_post_type', true);
|
35 |
if($type){
|
36 |
+
add_action('wp_enqueue_scripts', 'aiosrs_enque');
|
|
|
37 |
}
|
38 |
|
39 |
}
|
40 |
+
function aiosrs_enque( ) {
|
41 |
wp_enqueue_style('rating_style', plugin_dir_url(__FILE__) . 'css/jquery.rating.css');
|
42 |
wp_enqueue_script('jquery_rating', plugin_dir_url(__FILE__) . 'js/jquery.rating.min.js', array('jquery'));
|
43 |
+
wp_register_style( 'bsf_style', plugins_url('/css/style.css', __FILE__) );
|
44 |
+
wp_enqueue_style('bsf_style');
|
45 |
}
|
46 |
+
|
|
|
|
|
|
|
47 |
function bsf_initialize_bsf_meta_boxes() {
|
48 |
if ( ! class_exists( 'bsf_Meta_Box' ) )
|
49 |
require_once plugin_dir_path( __FILE__ ).'init.php';
|
1151 |
function add_ajax_library() {
|
1152 |
|
1153 |
$html = '<script type="text/javascript">';
|
1154 |
+
$html .= 'var ajaxurl = "' . admin_url( 'admin-ajax.php' ) . '";';
|
1155 |
$html .= '</script>';
|
1156 |
|
1157 |
echo $html;
|
index.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.brainstormforce.com
|
|
5 |
Author: Brainstorm Force
|
6 |
Author URI: https://www.brainstormforce.com
|
7 |
Description: The All in One Rich Snippets gives the power to the blog author to control the rich snippets to be shown in the search results by the search engines.
|
8 |
-
Version: 1.5.
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
5 |
Author: Brainstorm Force
|
6 |
Author URI: https://www.brainstormforce.com
|
7 |
Description: The All in One Rich Snippets gives the power to the blog author to control the rich snippets to be shown in the search results by the search engines.
|
8 |
+
Version: 1.5.3
|
9 |
Text Domain: rich-snippets
|
10 |
License: GPL2
|
11 |
*/
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce, yawalkarm
|
|
3 |
Donate link: https://www.brainstormforce.com
|
4 |
Tags: Review, Event, People, Product, Recipe, Software Application, Video, Article, rdfa, rich snippet, schema.org, schema, microdata, microformat, SERP, Google, Yahoo, Bing
|
5 |
Requires at least: 3.7
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perfectly with Google, Bing, Yahoo & Facebook.
|
@@ -13,7 +13,7 @@ Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perf
|
|
13 |
|
14 |
= What is a Rich Snippet? =
|
15 |
It is basically a short summary of your page in the search results of Google, Yahoo, Bing and sometimes in the News feed of Facebook in nice format with star ratings, author photo, image, etc.
|
16 |
-
[See Examples of Rich Snippets Here.](https://
|
17 |
|
18 |
= How does a Rich Snippet help? =
|
19 |
- It gives search engines only the important & precise information to display in search result snippets.
|
@@ -78,6 +78,9 @@ Review, Event, People, Product, Recipe, Software Application, Video, Articles et
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 1.5.2 =
|
82 |
* Fix: Frontend Summary box structure validation issue.
|
83 |
* Fix: Editor object undefined issue lead js issue in the page.
|
@@ -188,6 +191,3 @@ Review, Event, People, Product, Recipe, Software Application, Video, Articles et
|
|
188 |
|
189 |
= 1.0 =
|
190 |
* Initial Release.
|
191 |
-
|
192 |
-
== Upgrade Notice ==
|
193 |
-
Note: Minor bug fixes. Update the plugin to enjoy bug free blogging!
|
3 |
Donate link: https://www.brainstormforce.com
|
4 |
Tags: Review, Event, People, Product, Recipe, Software Application, Video, Article, rdfa, rich snippet, schema.org, schema, microdata, microformat, SERP, Google, Yahoo, Bing
|
5 |
Requires at least: 3.7
|
6 |
+
Tested up to: 4.9.7
|
7 |
+
Stable tag: 1.5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Boost CTR. Improve SEO & Rankings. Supports most of the content type. Works perfectly with Google, Bing, Yahoo & Facebook.
|
13 |
|
14 |
= What is a Rich Snippet? =
|
15 |
It is basically a short summary of your page in the search results of Google, Yahoo, Bing and sometimes in the News feed of Facebook in nice format with star ratings, author photo, image, etc.
|
16 |
+
[See Examples of Rich Snippets Here.](https://wpschema.com/free-rich-snippets-schema-plugin-for-wordpress/?utm_source=wp-org-readme&utm_medium=rich-snippet-example "Rich Snippets Examples")
|
17 |
|
18 |
= How does a Rich Snippet help? =
|
19 |
- It gives search engines only the important & precise information to display in search result snippets.
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.5.3 =
|
82 |
+
* Improvement: Updated schema exiting action and enqueue files function.
|
83 |
+
|
84 |
= 1.5.2 =
|
85 |
* Fix: Frontend Summary box structure validation issue.
|
86 |
* Fix: Editor object undefined issue lead js issue in the page.
|
191 |
|
192 |
= 1.0 =
|
193 |
* Initial Release.
|
|
|
|
|
|