Plugin Directory

Changeset 2246936


Ignore:
Timestamp:
02/19/2020 03:05:33 PM (6 years ago)
Author:
pratikkry
Message:

security fix

Location:
chl-change-html-lang/trunk
Files:
2 edited

Legend:

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

    r2152193 r2246936  
    55Tested up to: 5.3
    66Requires PHP: 5.2
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4545
    4646== Changelog ==
     47= 1.1.2 =
     48* security fix
     49
    4750= 1.1.1 =
    4851* Tested up to WordPress 5.3
  • chl-change-html-lang/trunk/chl-change-html-lang.php

    r2152193 r2246936  
    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.1
     13 * Version:           1.1.2
    1414 * Author:            pratik k. yadav
    15  * Author URI:        https://pratikkry.com
     15 * Author URI:        https://pratikkry.github.io
    1616 * License:           GPL v3
    1717 * Text Domain:       chl-change-html-lang
     
    6969function chltag_setting_function(){
    7070        ?>
    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">
    7272    <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>
    7373    <p class="description" id="chl-tag-description"><?php _e( 'Do not use &quot; &quot; before and after. It will be automatically added.', 'chl-change-html-lang' ) ?></p>
     
    7777// This function change language_attributes
    7878function 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' ) ) . '"';
    8080    return $chl_tag;
    8181}
Note: See TracChangeset for help on using the changeset viewer.