Changeset 2246936
- Timestamp:
- 02/19/2020 03:05:33 PM (6 years ago)
- Location:
- chl-change-html-lang/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
chl-change-html-lang.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chl-change-html-lang/trunk/README.txt
r2152193 r2246936 5 5 Tested up to: 5.3 6 6 Requires PHP: 5.2 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 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.2 = 48 * security fix 49 47 50 = 1.1.1 = 48 51 * Tested up to WordPress 5.3 -
chl-change-html-lang/trunk/chl-change-html-lang.php
r2152193 r2246936 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. 113 * Version: 1.1.2 14 14 * Author: pratik k. yadav 15 * Author URI: https://pratikkry. com15 * Author URI: https://pratikkry.github.io 16 16 * License: GPL v3 17 17 * Text Domain: chl-change-html-lang … … 69 69 function chltag_setting_function(){ 70 70 ?> 71 <input name="chl_custom_lang" id="chl-tag-sid" value="<?php echo get_option( 'chl_custom_lang' ); ?>" class="chl-tag-sclass" type="text" maxlength="12 ">71 <input name="chl_custom_lang" id="chl-tag-sid" value="<?php echo get_option( 'chl_custom_lang' ); ?>" class="chl-tag-sclass" type="text" maxlength="120"> 72 72 <p class="description" id="chl-tag-description"><?php _e( 'Add your custom html language attribute. eg. en, en-US, en-GB, hi, hi-IN etc.', 'chl-change-html-lang' ) ?></p> 73 73 <p class="description" id="chl-tag-description"><?php _e( 'Do not use " " before and after. It will be automatically added.', 'chl-change-html-lang' ) ?></p> … … 77 77 // This function change language_attributes 78 78 function chl_change_html_lang_tag( $chl_tag ) { 79 $chl_tag = 'lang="' . get_option( 'chl_custom_lang') . '"';79 $chl_tag = 'lang="' . esc_attr( get_option( 'chl_custom_lang' ) ) . '"'; 80 80 return $chl_tag; 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.