Schema - Version 1.7.8.8

Version Description

  • Update: More clean backend and plugin settings.
  • Update: Pumped tested WordPress version to 5.6.2 release.
Download this release

Release Info

Developer hishaman
Plugin Icon 128x128 Schema
Version 1.7.8.8
Comparing to
See all releases

Code changes from version 1.7.8.7 to 1.7.8.8

includes/admin/settings/register-settings.php CHANGED
@@ -484,58 +484,7 @@ function schema_wp_get_registered_settings() {
484
  )
485
  ),
486
 
487
- /** Content Settings */
488
-
489
- /*
490
- 'schemas' => apply_filters( 'schema_wp_settings_schemas',
491
- array(
492
- 'about_page' => array(
493
- 'id' => 'about_page',
494
- 'name' => __( 'About Page', 'schema-wp' ),
495
- 'desc' => __( '', 'schema-wp' ),
496
- 'type' => 'post_select',
497
- 'post_type' => 'page'
498
- ),
499
- 'contact_page' => array(
500
- 'id' => 'contact_page',
501
- 'name' => __( 'Contact Page', 'schema-wp' ),
502
- 'desc' => __( '', 'schema-wp' ),
503
- 'type' => 'post_select',
504
- 'post_type' => 'page'
505
- ),
506
- 'web_page_element' => array(
507
- 'id' => 'web_page_element_enable',
508
- 'name' => __( 'WPHeader and WPFooter', 'schema-wp' ),
509
- 'desc' => __( 'enable?', 'schema-wp' ),
510
- 'type' => 'checkbox'
511
- ),
512
- 'breadcrumbs' => array(
513
- 'id' => 'breadcrumbs_enable',
514
- 'name' => __( 'Breadcrumbs', 'schema-wp' ),
515
- 'desc' => __( 'enable?', 'schema-wp' ),
516
- 'type' => 'checkbox'
517
- ),
518
- 'comments' => array(
519
- 'id' => 'comments_enable',
520
- 'name' => __( 'Comments', 'schema-wp' ),
521
- 'desc' => __( 'enable?', 'schema-wp' ),
522
- 'type' => 'checkbox'
523
- ),
524
- 'video' => array(
525
- 'id' => 'video_object_enable',
526
- 'name' => __( 'VideoObject', 'schema-wp' ),
527
- 'desc' => __( 'enable?', 'schema-wp' ),
528
- 'type' => 'checkbox'
529
- ),
530
- 'audio' => array(
531
- 'id' => 'audio_object_enable',
532
- 'name' => __( 'AudioObject', 'schema-wp' ),
533
- 'desc' => __( 'enable?', 'schema-wp' ),
534
- 'type' => 'checkbox'
535
- )
536
- )
537
- ),
538
- */
539
  /** Schemas Settings */
540
  'schemas' => apply_filters( 'schema_wp_settings_schemas',
541
  array(
@@ -551,46 +500,6 @@ function schema_wp_get_registered_settings() {
551
  'name' => __( 'Comments', 'schema-premium' ),
552
  'desc' => __( 'enable?', 'schema-premium' ),
553
  'type' => 'checkbox'
554
- ),
555
- 'default_image' => array(
556
- 'id' => 'default_image',
557
- 'class' => 'tr_field_logo',
558
- 'name' => __( 'Default image', 'schema-premium' ),
559
- 'desc' => __('Specify a default image to be a fallback for missing Featured Images. (should be at least 1200 pixels wide)', 'schema-premium'),
560
- 'type' => 'image_upload',
561
- 'std' => '',
562
- 'readonly' => true,
563
- 'premium_feature' => true
564
- )
565
- ),
566
- 'author' => array(
567
- 'author_archive' => array(
568
- 'id' => 'author_archive_enable',
569
- 'name' => __( 'Author Archives', 'schema-premium' ),
570
- 'desc' => __( 'enable?', 'schema-premium' ),
571
- 'type' => 'checkbox',
572
- 'readonly' => true,
573
- 'premium_feature' => true
574
- ),
575
- 'author_url' => array(
576
- 'id' => 'author_url_enable',
577
- 'name' => __( 'Author URL', 'schema-premium' ),
578
- 'desc' => __( 'enable?', 'schema-premium' ),
579
- 'type' => 'checkbox',
580
- 'tooltip_title' => __('Keep disabled', 'schema-premium'),
581
- 'tooltip_desc' => __('if you don\'t want to expose author profile url.', 'schema-premium' ),
582
- 'readonly' => true,
583
- 'premium_feature' => true
584
- ),
585
- 'gravatar_image' => array(
586
- 'id' => 'gravatar_image_enable',
587
- 'name' => __( 'Gravatar ImageObject', 'schema-premium' ),
588
- 'desc' => __( 'enable?', 'schema-premium' ),
589
- 'type' => 'checkbox',
590
- 'tooltip_title' => __('When enabled', 'schema-premium' ),
591
- 'tooltip_desc' => __('User gravatar.com image will be used in author markup.', 'schema-premium' ),
592
- 'readonly' => true,
593
- 'premium_feature' => true
594
  )
595
  ),
596
  'breadcrumbs' => array(
@@ -599,76 +508,7 @@ function schema_wp_get_registered_settings() {
599
  'name' => __( 'Breadcrumbs', 'schema-premium' ),
600
  'desc' => __( 'enable?', 'schema-premium' ),
601
  'type' => 'checkbox'
602
- ),
603
- 'breadcrumbs_home_enable' => array(
604
- 'id' => 'breadcrumbs_home_enable',
605
- 'name' => __( 'Show Homepage', 'schema-premium' ),
606
- 'desc' => __( 'enable?', 'schema-premium' ),
607
- 'type' => 'checkbox',
608
- 'readonly' => true,
609
- 'premium_feature' => true
610
- ),
611
- 'breadcrumbs_home_text' => array(
612
- 'id' => 'breadcrumbs_home_text',
613
- 'name' => __( 'Homepage Text', 'schema-premium' ),
614
- 'desc' => '',
615
- 'type' => 'text',
616
- 'std' => __( 'Home', 'schema-premium' ),
617
- 'tooltip_title' => __('Change', 'schema-premium'),
618
- 'tooltip_desc' => __('Text for the Homepage. Default is Home', 'schema-premium' ),
619
- 'readonly' => true,
620
- 'premium_feature' => true
621
- ),
622
- ),
623
- 'blog' => array(
624
- 'blog_markup' => array(
625
- 'id' => 'blog_markup',
626
- 'name' => __( 'Blog Markup', 'schema-premium' ),
627
- 'desc' => __( '', 'schema-premium' ),
628
- 'type' => 'select',
629
- 'options' => array(
630
- '' => __('Select Markup Type', 'schema-premium'),
631
- 'Blog' => __( 'Blog', 'schema-premium'),
632
- 'ItemList' => __( 'ItemList', 'schema-premium')
633
- ),
634
- 'std' => '',
635
- 'readonly' => true,
636
- 'premium_feature' => true
637
- ),
638
- 'category' => array(
639
- 'id' => 'category_enable',
640
- 'name' => __( 'Categories', 'schema-premium' ),
641
- 'desc' => __( 'enable?', 'schema-premium' ),
642
- 'type' => 'checkbox',
643
- 'readonly' => true,
644
- 'premium_feature' => true
645
- ),
646
- 'tag' => array(
647
- 'id' => 'tag_enable',
648
- 'name' => __( 'Tags', 'schema-premium' ),
649
- 'desc' => __( 'enable?', 'schema-premium' ),
650
- 'type' => 'checkbox',
651
- 'readonly' => true,
652
- 'premium_feature' => true
653
- ),
654
- ),
655
- 'post_types' => array(
656
- 'post_type_archive' => array(
657
- 'id' => 'post_type_archive_enable',
658
- 'name' => __( 'Post Type Archives', 'schema-premium' ),
659
- 'desc' => __( 'enable?', 'schema-premium' ),
660
- 'type' => 'checkbox',
661
- 'readonly' => true,
662
- 'premium_feature' => true
663
- ),
664
- 'taxonomy' => array(
665
- 'id' => 'taxonomy_enable',
666
- 'name' => __( 'Taxonomies', 'schema-premium' ),
667
- 'desc' => __( 'enable?', 'schema-premium' ),
668
- 'type' => 'checkbox',
669
- 'readonly' => true,
670
- 'premium_feature' => true
671
- ),
672
  ),
673
  'special_pages' => array(
674
  'about_page' => array(
@@ -695,16 +535,6 @@ function schema_wp_get_registered_settings() {
695
  'tooltip_title' => __('When enabled', 'schema-premium'),
696
  'tooltip_desc' => __('Schema plugin will fetch video data automatically from embedded video. (configure it under Schema > Types)', 'schema-premium'),
697
  ),
698
- 'video_meta' => array(
699
- 'id' => 'video_object_meta_enable',
700
- 'name' => __( 'VideoObject meta', 'schema-premium' ),
701
- 'desc' => __( 'enable?', 'schema-premium' ),
702
- 'type' => 'checkbox',
703
- 'tooltip_title' => __('When enabled', 'schema-premium'),
704
- 'tooltip_desc' => __('Schema plugin will show new post meta feilds to allow you insert video details in page editor.', 'schema-premium'),
705
- 'readonly' => true,
706
- 'premium_feature' => true
707
- ),
708
  'audio' => array(
709
  'id' => 'audio_object_enable',
710
  'name' => __( 'AudioObject', 'schema-premium' ),
@@ -712,17 +542,6 @@ function schema_wp_get_registered_settings() {
712
  'type' => 'checkbox',
713
  'tooltip_title' => __('When enabled', 'schema-premium'),
714
  'tooltip_desc' => __('Schema plugin will fetch audio data automatically from embedded audio. (configure it under Schema > Types)', 'schema-premium'),
715
- ),
716
- 'youtube_api_key' => array(
717
- 'id' => 'youtube_api_key',
718
- 'name' => __( 'YouTube API Key', 'schema-premium' ),
719
- 'desc' => '<br><br>' . __('Obtain a YouTube API Key from your Google Developer console.', 'schema-premium'),
720
- 'type' => 'text',
721
- 'std' => '',
722
- 'tooltip_title' => __('When used', 'schema-premium'),
723
- 'tooltip_desc' => __('Schema plugin will use YoouTube API to fetch video data automatically.', 'schema-premium'),
724
- 'readonly' => true,
725
- 'premium_feature' => true
726
  )
727
  )
728
  )
@@ -745,81 +564,6 @@ function schema_wp_get_registered_settings() {
745
  'name' => __( 'Delete Data on Uninstall?', 'schema-premium' ),
746
  'desc' => __( 'Check this box if you would like Schema to completely remove all of its data when uninstalling via Plugins > Delete.', 'schema-premium' ),
747
  'type' => 'checkbox'
748
- ),
749
- 'schema_output_location' => array(
750
- 'id' => 'schema_output_location',
751
- 'name' => __( 'Schema Markup Output', 'schema-premium' ),
752
- 'desc' => '',
753
- 'type' => 'select',
754
- 'options' => array(
755
- 'head' => __( 'Head', 'schema-premium'),
756
- 'footer' => __( 'Footer', 'schema-premium')
757
- ),
758
- 'std' => 'head',
759
- 'tooltip_title' => __('Schema markup script output', 'schema-premium'),
760
- 'tooltip_desc' => __('Choose where to output the schema.org json-ld markup.', 'schema-premium'),
761
- 'readonly' => true,
762
- 'premium_feature' => true
763
- ),
764
- 'json_ld_output_format' => array(
765
- 'id' => 'json_ld_output_format',
766
- 'name' => __( 'JSON-LD Output Format', 'schema-premium' ),
767
- 'desc' => '',
768
- 'type' => 'select',
769
- 'options' => array(
770
- 'minified' => __( 'Minified', 'schema-premium'),
771
- 'pretty_print' => __( 'Pretty Print', 'schema-premium')
772
- ),
773
- 'std' => 'minified',
774
- 'tooltip_title' => __('Schema markup script output', 'schema-premium'),
775
- 'tooltip_desc' => __('Choose the output format of the schema.org json-ld markup.', 'schema-premium'),
776
- 'readonly' => true,
777
- 'premium_feature' => true
778
- ),
779
- 'schema_test_link' => array(
780
- 'id' => 'schema_test_link',
781
- 'name' => __( 'Enable Test Schema Link in Admin Top Toolbar?', 'schema-premium' ),
782
- 'desc' => '',
783
- 'type' => 'select',
784
- 'options' => array(
785
- 'yes' => __( 'Yes', 'schema-premium'),
786
- 'no' => __( 'No', 'schema-premium')
787
- ),
788
- 'std' => 'yes',
789
- 'tooltip_title' => __('When enabled', 'schema-premium'),
790
- 'tooltip_desc' => __('Schema plugin will show a Test link in admin toolbar. Clicking on that link will take you directly to Google Rich Snippets Testing Tool.', 'schema-premium'),
791
- 'readonly' => true,
792
- 'premium_feature' => true
793
- ),
794
- 'properties_instructions' => array(
795
- 'id' => 'properties_instructions_enable',
796
- 'name' => __( 'Enable Properties Instructions?', 'schema-premium' ),
797
- 'desc' => '',
798
- 'type' => 'select',
799
- 'options' => array(
800
- 'yes' => __( 'Yes', 'schema-premium'),
801
- 'no' => __( 'No', 'schema-premium')
802
- ),
803
- 'std' => 'no',
804
- 'tooltip_title' => __('When enabled', 'schema-premium'),
805
- 'tooltip_desc' => __('Instructions will show under each property post meta field.', 'schema-premium'),
806
- 'readonly' => true,
807
- 'premium_feature' => true
808
- ),
809
- 'acf_admin_menu_show' => array(
810
- 'id' => 'acf_admin_menu_show',
811
- 'name' => __( 'Enable ACF PRO admin menu?', 'schema-premium' ),
812
- 'desc' => '',
813
- 'type' => 'select',
814
- 'options' => array(
815
- 'yes' => __( 'Yes', 'schema-premium'),
816
- 'no' => __( 'No', 'schema-premium')
817
- ),
818
- 'std' => 'no',
819
- 'tooltip_title' => __('When enabled', 'schema-premium'),
820
- 'tooltip_desc' => __('Schema Premium plugin will show Advanced Custom Fields (ACF) admin menu item.', 'schema-premium'),
821
- 'readonly' => true,
822
- 'premium_feature' => true
823
  )
824
  )
825
  )
@@ -1078,10 +822,7 @@ function schema_wp_get_registered_settings_sections() {
1078
  ) ),
1079
  'schemas' => apply_filters( 'schema_wp_settings_sections_schemas', array(
1080
  'general' => __( 'General', 'schema-premium' ),
1081
- 'author' => __( 'Author', 'schema-premium' ),
1082
  'breadcrumbs' => __( 'Breadcrumbs', 'schema-premium' ),
1083
- 'blog' => __( 'Blog', 'schema-premium' ),
1084
- 'post_types' => __( 'Post Types', 'schema-premium' ),
1085
  'special_pages' => __( 'Special Pages', 'schema-premium' ),
1086
  'embeds' => __( 'Embeds', 'schema-premium' ),
1087
  ) ),
484
  )
485
  ),
486
 
487
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
488
  /** Schemas Settings */
489
  'schemas' => apply_filters( 'schema_wp_settings_schemas',
490
  array(
500
  'name' => __( 'Comments', 'schema-premium' ),
501
  'desc' => __( 'enable?', 'schema-premium' ),
502
  'type' => 'checkbox'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  )
504
  ),
505
  'breadcrumbs' => array(
508
  'name' => __( 'Breadcrumbs', 'schema-premium' ),
509
  'desc' => __( 'enable?', 'schema-premium' ),
510
  'type' => 'checkbox'
511
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
  ),
513
  'special_pages' => array(
514
  'about_page' => array(
535
  'tooltip_title' => __('When enabled', 'schema-premium'),
536
  'tooltip_desc' => __('Schema plugin will fetch video data automatically from embedded video. (configure it under Schema > Types)', 'schema-premium'),
537
  ),
 
 
 
 
 
 
 
 
 
 
538
  'audio' => array(
539
  'id' => 'audio_object_enable',
540
  'name' => __( 'AudioObject', 'schema-premium' ),
542
  'type' => 'checkbox',
543
  'tooltip_title' => __('When enabled', 'schema-premium'),
544
  'tooltip_desc' => __('Schema plugin will fetch audio data automatically from embedded audio. (configure it under Schema > Types)', 'schema-premium'),
 
 
 
 
 
 
 
 
 
 
 
545
  )
546
  )
547
  )
564
  'name' => __( 'Delete Data on Uninstall?', 'schema-premium' ),
565
  'desc' => __( 'Check this box if you would like Schema to completely remove all of its data when uninstalling via Plugins > Delete.', 'schema-premium' ),
566
  'type' => 'checkbox'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
  )
568
  )
569
  )
822
  ) ),
823
  'schemas' => apply_filters( 'schema_wp_settings_sections_schemas', array(
824
  'general' => __( 'General', 'schema-premium' ),
 
825
  'breadcrumbs' => __( 'Breadcrumbs', 'schema-premium' ),
 
 
826
  'special_pages' => __( 'Special Pages', 'schema-premium' ),
827
  'embeds' => __( 'Embeds', 'schema-premium' ),
828
  ) ),
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: hishaman, schemapress
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NGVUBT2QXN7YL
4
  Tags: schema, schema.org, rich snippets, structured data, json-ld, json, google, seo, markup, search engine, search, breadcrumbs, social, post, page, plugin, wordpress, content, article, news, search results, site name, knowledge graph, social, social profiles, keywords, meta-tags, metadata, tags, categories, optimize, ranking, search engine optimization, search engines, serp, sitelinks, google sitelinks, sitelinks search box, google sitelinks search box, semantic, structured, canonical, custom post types, post type, title, terms, media, images, thumb, featured, url, video, video markup, video object, VideoObject, video schema, audio object, AudioObject, audio schema, audio, sameAs, about, contact, amp, mobile, taxonomy
5
  Requires at least: 4.0
6
- Tested up to: 5.6.1
7
  Requires PHP: 5.4
8
- Stable tag: 1.7.8.7
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -223,6 +223,10 @@ Yes, Schema plugin will detect AMP plugin and output a more complete and valid s
223
 
224
  == Changelog ==
225
 
 
 
 
 
226
  = 1.7.8.7 =
227
  * Fixed: Truncate headline.
228
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NGVUBT2QXN7YL
4
  Tags: schema, schema.org, rich snippets, structured data, json-ld, json, google, seo, markup, search engine, search, breadcrumbs, social, post, page, plugin, wordpress, content, article, news, search results, site name, knowledge graph, social, social profiles, keywords, meta-tags, metadata, tags, categories, optimize, ranking, search engine optimization, search engines, serp, sitelinks, google sitelinks, sitelinks search box, google sitelinks search box, semantic, structured, canonical, custom post types, post type, title, terms, media, images, thumb, featured, url, video, video markup, video object, VideoObject, video schema, audio object, AudioObject, audio schema, audio, sameAs, about, contact, amp, mobile, taxonomy
5
  Requires at least: 4.0
6
+ Tested up to: 5.6.2
7
  Requires PHP: 5.4
8
+ Stable tag: 1.7.8.8
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
223
 
224
  == Changelog ==
225
 
226
+ = 1.7.8.8 =
227
+ * Update: More clean backend and plugin settings.
228
+ * Update: Pumped tested WordPress version to 5.6.2 release.
229
+
230
  = 1.7.8.7 =
231
  * Fixed: Truncate headline.
232
 
schema.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The next generation of Structured Data.
6
  * Author: Hesham
7
  * Author URI: http://zebida.com
8
- * Version: 1.7.8.7
9
  * Text Domain: schema-wp
10
  * Domain Path: /languages
11
  * License: GPLv2 or later
@@ -52,7 +52,7 @@ final class Schema_WP {
52
  *
53
  * @since 1.0
54
  */
55
- private $version = '1.7.8.7';
56
 
57
  /**
58
  * The settings instance variable
5
  * Description: The next generation of Structured Data.
6
  * Author: Hesham
7
  * Author URI: http://zebida.com
8
+ * Version: 1.7.8.8
9
  * Text Domain: schema-wp
10
  * Domain Path: /languages
11
  * License: GPLv2 or later
52
  *
53
  * @since 1.0
54
  */
55
+ private $version = '1.7.8.8';
56
 
57
  /**
58
  * The settings instance variable