Changeset 1702158
- Timestamp:
- 07/25/2017 06:19:34 AM (9 years ago)
- Location:
- amd
- Files:
-
- 32 added
- 4 edited
-
assets/screenshot-2.jpg (modified) (previous)
-
tags/1.05 (added)
-
tags/1.05/LICENSE.txt (added)
-
tags/1.05/README.txt (added)
-
tags/1.05/admin (added)
-
tags/1.05/admin/class-amd-admin.php (added)
-
tags/1.05/admin/css (added)
-
tags/1.05/admin/css/amd-admin.css (added)
-
tags/1.05/admin/index.php (added)
-
tags/1.05/admin/js (added)
-
tags/1.05/admin/js/amd-admin.js (added)
-
tags/1.05/admin/partials (added)
-
tags/1.05/admin/partials/amd_create_metadescription_metabox.php (added)
-
tags/1.05/admin/partials/amd_create_metatitle_metabox.php (added)
-
tags/1.05/admin/partials/amd_create_scan_meta_content.php (added)
-
tags/1.05/admin/partials/amd_scan_meta_content_pages.php (added)
-
tags/1.05/admin/partials/amd_scan_meta_content_posts.php (added)
-
tags/1.05/amd.php (added)
-
tags/1.05/includes (added)
-
tags/1.05/includes/class-amd-activator.php (added)
-
tags/1.05/includes/class-amd-deactivator.php (added)
-
tags/1.05/includes/class-amd-i18n.php (added)
-
tags/1.05/includes/class-amd-loader.php (added)
-
tags/1.05/includes/class-amd.php (added)
-
tags/1.05/includes/index.php (added)
-
tags/1.05/index.php (added)
-
tags/1.05/languages (added)
-
tags/1.05/languages/amd.pot (added)
-
tags/1.05/public (added)
-
tags/1.05/public/class-amd-public.php (added)
-
tags/1.05/public/index.php (added)
-
tags/1.05/public/partials (added)
-
tags/1.05/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-amd-admin.php (modified) (4 diffs)
-
trunk/includes/class-amd.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amd/trunk/README.txt
r1684024 r1702158 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.75 7 Stable tag: 1.0 47 Stable tag: 1.05 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 == Changelog == 33 33 34 = 1.05 = 35 * Added a new feature inside "Scan Meta tags tools" that detect duplicate content inisde meta description and title tag field. 36 34 37 = 1.04 = 35 38 * Fixed error "Headers already sent" when activate after deactivate. -
amd/trunk/admin/class-amd-admin.php
r1684024 r1702158 164 164 /* Title tag with less of 60 characters */ 165 165 $amd_title_tag_lenght_optimal=($count_posts->publish)-$amd_title_tag_lenght_exceed-$amd_title_tag_empty; 166 /* Duplicate title tags */ 167 $amd_title_tag_no_duplicated=$wpdb->get_var( "SELECT COUNT(distinct meta_value) FROM $wpdb->postmeta as postmeta JOIN $wpdb->posts as posts ON postmeta.post_id = posts.id WHERE postmeta.meta_key='_amd_metatitle' AND postmeta.meta_value != '' AND posts.post_type ='post' AND posts.post_status ='publish' "); 168 $amd_title_tag_duplicated=$amd_title_tag_filled - $amd_title_tag_no_duplicated; 166 169 167 170 /* Meta description */ … … 174 177 /* Meta description with less of 160 characters */ 175 178 $amd_meta_description_lenght_optimal=($count_posts->publish)-$amd_meta_description_lenght_exceed-$amd_meta_description_empty; 179 180 /* Duplicate meta description */ 181 $amd_meta_description_no_duplicated=$wpdb->get_var( "SELECT COUNT(distinct meta_value) FROM $wpdb->postmeta as postmeta JOIN $wpdb->posts as posts ON postmeta.post_id = posts.id WHERE postmeta.meta_key='_amd_metadescription' AND postmeta.meta_value != '' AND posts.post_type ='post' AND posts.post_status ='publish' "); 182 $amd_meta_description_duplicated=$amd_meta_description_filled - $amd_meta_description_no_duplicated; 176 183 177 184 /* *** PAGES ** */ … … 185 192 /* Title tag with less of 60 characters */ 186 193 $amd_page_title_tag_lenght_optimal=($count_pages->publish)-$amd_page_title_tag_lenght_exceed-$amd_page_title_tag_empty; 194 /* Duplicate title tags */ 195 $amd_page_title_tag_no_duplicated=$wpdb->get_var( "SELECT COUNT(distinct meta_value) FROM $wpdb->postmeta as postmeta JOIN $wpdb->posts as posts ON postmeta.post_id = posts.id WHERE postmeta.meta_key='_amd_metatitle' AND postmeta.meta_value != '' AND posts.post_type ='page' AND posts.post_status ='publish' "); 196 $amd_page_title_tag_duplicated=$amd_page_title_tag_filled - $amd_page_title_tag_no_duplicated; 187 197 188 198 /* Meta description */ … … 196 206 $amd_page_meta_description_lenght_optimal=($count_pages->publish)-$amd_page_meta_description_lenght_exceed-$amd_page_meta_description_empty; 197 207 208 /* Duplicate meta description */ 209 $amd_page_meta_description_no_duplicated=$wpdb->get_var( "SELECT COUNT(distinct meta_value) FROM $wpdb->postmeta as postmeta JOIN $wpdb->posts as posts ON postmeta.post_id = posts.id WHERE postmeta.meta_key='_amd_metadescription' AND postmeta.meta_value != '' AND posts.post_type ='page' AND posts.post_status ='publish' "); 210 $amd_page_meta_description_duplicated=$amd_page_meta_description_filled - $amd_page_meta_description_no_duplicated; 211 198 212 199 213 /* ceil Returns the next highest integer value by rounding up value */ -
amd/trunk/includes/class-amd.php
r1684024 r1702158 69 69 70 70 $this->plugin_name = 'amd'; 71 $this->version = '1.0. 4';71 $this->version = '1.0.5'; 72 72 73 73 $this->load_dependencies();
Note: See TracChangeset
for help on using the changeset viewer.