Plugin Directory

Changeset 3258845


Ignore:
Timestamp:
03/20/2025 02:49:18 AM (11 months ago)
Author:
wplingua
Message:

2.5.1

Location:
wplingua
Files:
472 added
4 edited

Legend:

Unmodified
Added
Removed
  • wplingua/trunk/inc/translation.php

    r3258836 r3258845  
    1616function wplng_get_translated_text_from_translations( $text, $translations ) {
    1717
    18     if ( empty( rtrim( $text ) ) ) {
     18    if ( empty( trim( $text ) ) ) {
    1919        return $text;
    2020    }
  • wplingua/trunk/inc/util.php

    r3258836 r3258845  
    157157    $text = str_replace( '\\', '', $text );
    158158    $text = preg_replace( '/\s+/u', ' ', $text );
    159     $text = rtrim( $text );
     159    $text = trim( $text );
    160160
    161161    return $text;
  • wplingua/trunk/readme.txt

    r3258836 r3258845  
    55Requires at least: 6.0
    66Tested up to: 6.7
    7 Stable tag: 2.5.0
     7Stable tag: 2.5.1
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    191191
    192192== Changelog ==
     193
     194= 2.5.1 =
     195
     196* Fix bad trimming
    193197
    194198= 2.5.0 =
  • wplingua/trunk/wplingua.php

    r3258836 r3258845  
    88 * Text Domain: wplingua
    99 * Domain Path: /languages/
    10  * Version: 2.5.0
     10 * Version: 2.5.1
    1111 * Requires PHP: 7.4
    1212 * License: GPL v2 or later
     
    2525define( 'WPLNG_API_VERSION', '2.0' );
    2626define( 'WPLNG_API_SSLVERIFY', true );
    27 define( 'WPLNG_PLUGIN_VERSION', '2.5.0' );
     27define( 'WPLNG_PLUGIN_VERSION', '2.5.1' );
    2828define( 'WPLNG_PLUGIN_FILE', plugin_basename( __FILE__ ) );
    2929define( 'WPLNG_PLUGIN_PATH', dirname( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.