Plugin Directory

Changeset 2753799


Ignore:
Timestamp:
07/08/2022 02:42:40 PM (4 years ago)
Author:
pratikkry
Message:

Update to version 1.1.3 from GitHub

Location:
chl-change-html-lang
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • chl-change-html-lang/tags/1.1.3/README.txt

    r2246936 r2753799  
    22Contributors: pratikkry
    33Tags: SEO, HTML lang, SEO Plugin, Language Attributes, pratikkry
    4 Requires at least: 4.6
    5 Tested up to: 5.3
    6 Requires PHP: 5.2
    7 Stable tag: 1.1.2
     4Requires at least: 4.0
     5Tested up to: 6.0
     6Requires PHP: 5.3
     7Stable tag: 1.1.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4545
    4646== Changelog ==
     47= 1.1.3 =
     48* tested up to WordPress 6.0
     49* fixed Yoast og locale tag issue
     50
    4751= 1.1.2 =
    4852* security fix
  • chl-change-html-lang/tags/1.1.3/chl-change-html-lang.php

    r2246938 r2753799  
    1111 * Plugin URI:        https://wordpress.org/plugins/chl-change-html-lang/
    1212 * Description:       A simple and very lightweight WordPress SEO plugin for changing HTML language attribute value in the header.
    13  * Version:           1.1.2
    14  * Author:            pratik k. yadav
    15  * Author URI:        https://pratikkry.github.io
     13 * Version:           1.1.3
     14 * Requires at least: 4.0
     15 * Requires PHP:      5.3
     16 * Author:            Indus Deck
     17 * Author URI:        https://indusdeck.com/
    1618 * License:           GPL v3
     19 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
    1720 * Text Domain:       chl-change-html-lang
    1821 */
     
    8487// Suport for Yoast SEO Open Graph
    8588function chl_ystwpseo_change_og_locale( $locale ) {
    86     if ( class_exists( 'WPSEO_OpenGraph' ) ) {
    87     $locale = get_option( 'chl_custom_lang' );
    88     if (strpos($locale,'-') !== false) { // First check if the locale contains the string '-'
    89         $locale = str_replace('-', '_', $locale); //if yes, simply replace it with _ for open graph og:locale tag
    90     }
    91     return $locale;
    92     }
     89   
     90    $locale = get_option( 'chl_custom_lang' );
     91    if (strpos($locale,'-') !== false) { // First check if the locale contains the string '-'
     92        $locale = str_replace('-', '_', $locale); //if yes, simply replace it with _ for open graph og:locale tag
     93    }
     94   
     95    return $locale;
     96
    9397}
    9498
  • chl-change-html-lang/trunk/README.txt

    r2246936 r2753799  
    22Contributors: pratikkry
    33Tags: SEO, HTML lang, SEO Plugin, Language Attributes, pratikkry
    4 Requires at least: 4.6
    5 Tested up to: 5.3
    6 Requires PHP: 5.2
    7 Stable tag: 1.1.2
     4Requires at least: 4.0
     5Tested up to: 6.0
     6Requires PHP: 5.3
     7Stable tag: 1.1.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4545
    4646== Changelog ==
     47= 1.1.3 =
     48* tested up to WordPress 6.0
     49* fixed Yoast og locale tag issue
     50
    4751= 1.1.2 =
    4852* security fix
  • chl-change-html-lang/trunk/chl-change-html-lang.php

    r2246938 r2753799  
    1111 * Plugin URI:        https://wordpress.org/plugins/chl-change-html-lang/
    1212 * Description:       A simple and very lightweight WordPress SEO plugin for changing HTML language attribute value in the header.
    13  * Version:           1.1.2
    14  * Author:            pratik k. yadav
    15  * Author URI:        https://pratikkry.github.io
     13 * Version:           1.1.3
     14 * Requires at least: 4.0
     15 * Requires PHP:      5.3
     16 * Author:            Indus Deck
     17 * Author URI:        https://indusdeck.com/
    1618 * License:           GPL v3
     19 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
    1720 * Text Domain:       chl-change-html-lang
    1821 */
     
    8487// Suport for Yoast SEO Open Graph
    8588function chl_ystwpseo_change_og_locale( $locale ) {
    86     if ( class_exists( 'WPSEO_OpenGraph' ) ) {
    87     $locale = get_option( 'chl_custom_lang' );
    88     if (strpos($locale,'-') !== false) { // First check if the locale contains the string '-'
    89         $locale = str_replace('-', '_', $locale); //if yes, simply replace it with _ for open graph og:locale tag
    90     }
    91     return $locale;
    92     }
     89   
     90    $locale = get_option( 'chl_custom_lang' );
     91    if (strpos($locale,'-') !== false) { // First check if the locale contains the string '-'
     92        $locale = str_replace('-', '_', $locale); //if yes, simply replace it with _ for open graph og:locale tag
     93    }
     94   
     95    return $locale;
     96
    9397}
    9498
Note: See TracChangeset for help on using the changeset viewer.