Changeset 2215002
- Timestamp:
- 12/19/2019 10:59:49 AM (6 years ago)
- Location:
- remove-schema/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
admin/class-remove-schema-post-editor.php (modified) (2 diffs)
-
admin/partials/remove-schema-admin-display.php (modified) (1 diff)
-
admin/partials/remove-schema-post-editor-display.php (modified) (1 diff)
-
remove-schema.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
remove-schema/trunk/README.txt
r2214506 r2215002 41 41 == Frequently Asked Questions == 42 42 43 = Can you make a n exceptionfor a plugin =43 = Can you make add support for a plugin = 44 44 45 No, you'll have to select the schema that you want gone. If we have missed a plugin please create an issue on [Github](https://github.com/Websitescanner/remove-schema "Remove Schema Github").45 Yes we can. If we have missed a plugin please create an issue on [Github](https://github.com/Plugin-nl/remove-schema "Remove Schema Github"). 46 46 47 47 … … 52 52 53 53 == Changelog == 54 55 = 1.3 = 56 * Improved security 57 * Add page specific support on all page types 54 58 55 59 = 1.2 = -
remove-schema/trunk/admin/class-remove-schema-post-editor.php
r2200104 r2215002 56 56 57 57 public function add_meta_box() { 58 $screens = array( 'post', 'page');58 $screens = get_post_types(); 59 59 60 60 foreach ( $screens as $screen ) { … … 85 85 86 86 public function validate($input) { 87 //var_dump($input);88 89 87 // check if this isn't an auto save 90 88 if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) -
remove-schema/trunk/admin/partials/remove-schema-admin-display.php
r2200104 r2215002 33 33 //Grab all options 34 34 $options = get_option($this->plugin_name); 35 36 if (empty($options)) { 37 $options = array(); 38 $options['rm_jsonld'] = false; 39 $options['yoast_jsonld'] = false; 40 $options['woocommerce_jsonld'] = false; 41 $options['woocommerce_mail_jsonld'] = false; 42 $options['schema_pro'] = false; 43 $options['microdata'] = false; 44 $options['rdfa'] = false; 45 $options['generatepress_schema'] = false; 46 $options['remove_hentry_schema'] = false; 47 } 35 48 36 49 // Schema -
remove-schema/trunk/admin/partials/remove-schema-post-editor-display.php
r2200104 r2215002 29 29 $options['rdfa'] = false; 30 30 } 31 foreach ($options as $key => $option) { 32 ${$key} = $option; 33 } 31 $keep_schema = $option['keep_schema']; 32 $rm_jsonld = $options['rm_jsonld']; 33 $yoast_jsonld = $options['yoast_jsonld']; 34 $woocommerce_jsonld = $options['woocommerce_jsonld']; 35 $schema_pro = $options['schema_pro']; 36 $microdata = $options['microdata']; 37 $rdfa = $options['rdfa']; 34 38 ?> 35 39 <input type="checkbox" id="<?php echo $this->plugin_name; ?>-keep-schema" name="<?php echo $this->plugin_name; ?>[keep_schema]" value="1" <?php checked($keep_schema, 1); ?> /> -
remove-schema/trunk/remove-schema.php
r2200104 r2215002 17 17 * Plugin URI: https://plugin.nl/en/remove-schema-plugin/ 18 18 * Description: Remove all Microdata, RDFa and/or JSON-ld that you don’t want on your page. 19 * Version: 1. 2.019 * Version: 1.3.0 20 20 * Author: Plugin.nl 21 21 * Author URI: https://plugin.nl/en/remove-schema-plugin/ … … 34 34 * Currently plugin version. 35 35 */ 36 define( 'REMOVE_SCHEMA_VERSION', '1. 2.0' );36 define( 'REMOVE_SCHEMA_VERSION', '1.3.0' ); 37 37 38 38 /**
Note: See TracChangeset
for help on using the changeset viewer.