Changeset 2753884
- Timestamp:
- 07/08/2022 07:55:34 PM (4 years ago)
- Location:
- chl-change-html-lang
- Files:
-
- 2 added
- 2 deleted
- 2 edited
- 1 copied
-
tags/1.1.4 (copied) (copied from chl-change-html-lang/trunk)
-
tags/1.1.4/README.txt (deleted)
-
tags/1.1.4/chl-change-html-lang.php (modified) (2 diffs)
-
tags/1.1.4/readme.txt (added)
-
trunk/README.txt (deleted)
-
trunk/chl-change-html-lang.php (modified) (2 diffs)
-
trunk/readme.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
chl-change-html-lang/tags/1.1.4/chl-change-html-lang.php
r2753799 r2753884 10 10 * Plugin Name: CHL-Change HTML Lang 11 11 * Plugin URI: https://wordpress.org/plugins/chl-change-html-lang/ 12 * Description: A simple and very lightweight WordPress SEO plugin for changing HTML language attribute value in the header. 13 * Version: 1.1. 312 * Description: A simple and very lightweight WordPress SEO plugin for changing HTML language attribute value in the header. Navigate to Settings → General for changing HTML lang attributes. 13 * Version: 1.1.4 14 14 * Requires at least: 4.0 15 15 * Requires PHP: 5.3 … … 99 99 // If your locale is not supported by the facebook, Yoast plugin will output the best match for your language. 100 100 add_filter( 'wpseo_locale', 'chl_ystwpseo_change_og_locale' ); 101 102 add_filter( 'wpseo_schema_piece_language', 'chl_ystwpseo_change_schema_lang' ); 103 // Suport for Yoast SEO Schema piece inLanguage 104 function chl_ystwpseo_change_schema_lang( $data ) { 105 106 $data = get_option( 'chl_custom_lang' ); 107 if (strpos($data,'"') !== false) { // First check if the locale contains the string '"' 108 $data = str_replace('"', '', $data); //if yes, simply remove it from the open graph og:locale tag 109 } 110 111 return $data; 112 113 } -
chl-change-html-lang/trunk/chl-change-html-lang.php
r2753799 r2753884 10 10 * Plugin Name: CHL-Change HTML Lang 11 11 * Plugin URI: https://wordpress.org/plugins/chl-change-html-lang/ 12 * Description: A simple and very lightweight WordPress SEO plugin for changing HTML language attribute value in the header. 13 * Version: 1.1. 312 * Description: A simple and very lightweight WordPress SEO plugin for changing HTML language attribute value in the header. Navigate to Settings → General for changing HTML lang attributes. 13 * Version: 1.1.4 14 14 * Requires at least: 4.0 15 15 * Requires PHP: 5.3 … … 99 99 // If your locale is not supported by the facebook, Yoast plugin will output the best match for your language. 100 100 add_filter( 'wpseo_locale', 'chl_ystwpseo_change_og_locale' ); 101 102 add_filter( 'wpseo_schema_piece_language', 'chl_ystwpseo_change_schema_lang' ); 103 // Suport for Yoast SEO Schema piece inLanguage 104 function chl_ystwpseo_change_schema_lang( $data ) { 105 106 $data = get_option( 'chl_custom_lang' ); 107 if (strpos($data,'"') !== false) { // First check if the locale contains the string '"' 108 $data = str_replace('"', '', $data); //if yes, simply remove it from the open graph og:locale tag 109 } 110 111 return $data; 112 113 }
Note: See TracChangeset
for help on using the changeset viewer.