Changeset 2753799
- Timestamp:
- 07/08/2022 02:42:40 PM (4 years ago)
- Location:
- chl-change-html-lang
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.3 (copied) (copied from chl-change-html-lang/trunk)
-
tags/1.1.3/README.txt (modified) (2 diffs)
-
tags/1.1.3/chl-change-html-lang.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/chl-change-html-lang.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chl-change-html-lang/tags/1.1.3/README.txt
r2246936 r2753799 2 2 Contributors: pratikkry 3 3 Tags: SEO, HTML lang, SEO Plugin, Language Attributes, pratikkry 4 Requires at least: 4. 65 Tested up to: 5.36 Requires PHP: 5. 27 Stable tag: 1.1. 24 Requires at least: 4.0 5 Tested up to: 6.0 6 Requires PHP: 5.3 7 Stable tag: 1.1.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 45 45 46 46 == Changelog == 47 = 1.1.3 = 48 * tested up to WordPress 6.0 49 * fixed Yoast og locale tag issue 50 47 51 = 1.1.2 = 48 52 * security fix -
chl-change-html-lang/tags/1.1.3/chl-change-html-lang.php
r2246938 r2753799 11 11 * Plugin URI: https://wordpress.org/plugins/chl-change-html-lang/ 12 12 * 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/ 16 18 * License: GPL v3 19 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 17 20 * Text Domain: chl-change-html-lang 18 21 */ … … 84 87 // Suport for Yoast SEO Open Graph 85 88 function 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 93 97 } 94 98 -
chl-change-html-lang/trunk/README.txt
r2246936 r2753799 2 2 Contributors: pratikkry 3 3 Tags: SEO, HTML lang, SEO Plugin, Language Attributes, pratikkry 4 Requires at least: 4. 65 Tested up to: 5.36 Requires PHP: 5. 27 Stable tag: 1.1. 24 Requires at least: 4.0 5 Tested up to: 6.0 6 Requires PHP: 5.3 7 Stable tag: 1.1.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 45 45 46 46 == Changelog == 47 = 1.1.3 = 48 * tested up to WordPress 6.0 49 * fixed Yoast og locale tag issue 50 47 51 = 1.1.2 = 48 52 * security fix -
chl-change-html-lang/trunk/chl-change-html-lang.php
r2246938 r2753799 11 11 * Plugin URI: https://wordpress.org/plugins/chl-change-html-lang/ 12 12 * 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/ 16 18 * License: GPL v3 19 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 17 20 * Text Domain: chl-change-html-lang 18 21 */ … … 84 87 // Suport for Yoast SEO Open Graph 85 88 function 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 93 97 } 94 98
Note: See TracChangeset
for help on using the changeset viewer.