Plugin Directory

Changeset 1702158


Ignore:
Timestamp:
07/25/2017 06:19:34 AM (9 years ago)
Author:
adpu
Message:

tagging version 1.05

Location:
amd
Files:
32 added
4 edited

Legend:

Unmodified
Added
Removed
  • amd/trunk/README.txt

    r1684024 r1702158  
    55Requires at least: 3.0.1
    66Tested up to: 4.75
    7 Stable tag: 1.04
     7Stable tag: 1.05
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232== Changelog ==
    3333
     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
    3437= 1.04 =
    3538* Fixed error  "Headers already sent" when activate after deactivate.
  • amd/trunk/admin/class-amd-admin.php

    r1684024 r1702158  
    164164  /* Title tag with less of 60 characters */
    165165  $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;
    166169
    167170  /* Meta description */
     
    174177  /* Meta description with less of 160 characters */
    175178  $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;
    176183
    177184/* *** PAGES ** */
     
    185192  /* Title tag with less of 60 characters */
    186193  $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;
    187197
    188198  /* Meta description */
     
    196206  $amd_page_meta_description_lenght_optimal=($count_pages->publish)-$amd_page_meta_description_lenght_exceed-$amd_page_meta_description_empty;
    197207
     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
    198212 
    199213  /* ceil Returns the next highest integer value by rounding up value */
  • amd/trunk/includes/class-amd.php

    r1684024 r1702158  
    6969
    7070        $this->plugin_name = 'amd';
    71         $this->version = '1.0.4';
     71        $this->version = '1.0.5';
    7272
    7373        $this->load_dependencies();
Note: See TracChangeset for help on using the changeset viewer.