Plugin Directory

Changeset 205365


Ignore:
Timestamp:
02/14/2010 03:54:36 PM (16 years ago)
Author:
holooli
Message:

Checked it on WP 2.9.1 and it is working well

Location:
wp-yamli/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-yamli/trunk/readme.txt

    r89067 r205365  
    33Contributors: Khaled Al Hourani
    44Requires at least: 2.1
    5 Tested up to: 2.7
    6 Stable tag: trunk
     5Tested up to: 2.9
     6Stable tag: 1.1
    77
    88WP Yamli allows blog editors and commenters to write Arabic spelling text in English or French and Yamli will convert them.
  • wp-yamli/trunk/yamli.php

    r89057 r205365  
    22/*
    33Plugin Name: WP Yamli
    4 Version: 1.0
     4Version: 1.1
    55Plugin URI: http://dev.holooli.com/2009/01/22/wp-yamli
    66Description: WP Yamli allows blog editors and commenters to write Arabic spelling text in English or French and Yamli will convert them.
     
    196196
    197197            // Save the new settings to option table's record
    198             update_option( 'yamli', $update );
     198            update_option('yamli', $update);
    199199
    200200            // Display success message
     
    206206        // Execute the selected options
    207207        function execute() {
    208 
    209208            // Get options from option table
    210             $yamli = get_option( 'yamli' );
     209            $yamli = get_option('yamli');
    211210
    212211            // Read language and placement
     
    216215            $selected_fields = array();
    217216            // Get all the selected fields from settings page
    218             foreach ( $yamli as $key => $value ) {
    219                 if ( $value ) {
     217            foreach ($yamli as $key => $value) {
     218                if ($value) {
    220219                    array_push($selected_fields, $key);
    221220                }
Note: See TracChangeset for help on using the changeset viewer.