Plugin Directory

Changeset 427961


Ignore:
Timestamp:
08/24/2011 06:09:22 AM (15 years ago)
Author:
taehan
Message:

upmr 1.0.2

Location:
u-paragraph-margin-remover
Files:
2 deleted
2 edited
10 copied

Legend:

Unmodified
Added
Removed
  • u-paragraph-margin-remover/tags/1.0.2/readme.txt

    r425722 r427961  
    55Requires at least: 3.2.0
    66Tested up to: 3.2.0
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88
    99Remove paragraph tags' margin of post entry.
     
    2828== Changelog ==
    2929
     30= 1.0.2 =
     31* Fixed: AJAX saving, bug fix
     32
     33= 1.0.1 =
     34* Removed: Paragraph border in Editor
     35
    3036= 1.0 =
    3137* Initial release.
  • u-paragraph-margin-remover/tags/1.0.2/u-p-margin-remover.php

    r425722 r427961  
    66Author: Taehan Lee
    77Author URI: http://urlless.com
    8 Version: 1.0.1
     8Version: 1.0.2
    99*/
    1010
    1111class UParagraphMarginRemover {
    1212var $id = 'upmremover';
    13 var $ver = '1.0.1';
     13var $ver = '1.0.2';
    1414var $url, $editor_state, $defined_post_class;
    1515
     
    144144
    145145function save_meta($post_id){
    146     if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
     146    if ( defined('DOING_AUTOSAVE') )
    147147        return $post_id;
    148148   
    149     if( isset($_POST[$this->id.'_editor_state']) AND $_POST[$this->id.'_editor_state']=='on' ){
    150         update_post_meta( $post_id, '_'.$this->id, '1' );
    151     }else{
    152         delete_post_meta( $post_id, '_'.$this->id );
     149    if( isset($_POST[$this->id.'_editor_state']) ){
     150   
     151        if( $_POST[$this->id.'_editor_state']=='on' )
     152            update_post_meta( $post_id, '_'.$this->id, '1' );
     153       
     154        if( $_POST[$this->id.'_editor_state']=='off' )
     155            delete_post_meta( $post_id, '_'.$this->id );
    153156    }
    154157}
  • u-paragraph-margin-remover/trunk/readme.txt

    r425722 r427961  
    55Requires at least: 3.2.0
    66Tested up to: 3.2.0
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88
    99Remove paragraph tags' margin of post entry.
     
    2828== Changelog ==
    2929
     30= 1.0.2 =
     31* Fixed: AJAX saving, bug fix
     32
     33= 1.0.1 =
     34* Removed: Paragraph border in Editor
     35
    3036= 1.0 =
    3137* Initial release.
  • u-paragraph-margin-remover/trunk/u-p-margin-remover.php

    r425722 r427961  
    66Author: Taehan Lee
    77Author URI: http://urlless.com
    8 Version: 1.0.1
     8Version: 1.0.2
    99*/
    1010
    1111class UParagraphMarginRemover {
    1212var $id = 'upmremover';
    13 var $ver = '1.0.1';
     13var $ver = '1.0.2';
    1414var $url, $editor_state, $defined_post_class;
    1515
     
    144144
    145145function save_meta($post_id){
    146     if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE )
     146    if ( defined('DOING_AUTOSAVE') )
    147147        return $post_id;
    148148   
    149     if( isset($_POST[$this->id.'_editor_state']) AND $_POST[$this->id.'_editor_state']=='on' ){
    150         update_post_meta( $post_id, '_'.$this->id, '1' );
    151     }else{
    152         delete_post_meta( $post_id, '_'.$this->id );
     149    if( isset($_POST[$this->id.'_editor_state']) ){
     150   
     151        if( $_POST[$this->id.'_editor_state']=='on' )
     152            update_post_meta( $post_id, '_'.$this->id, '1' );
     153       
     154        if( $_POST[$this->id.'_editor_state']=='off' )
     155            delete_post_meta( $post_id, '_'.$this->id );
    153156    }
    154157}
Note: See TracChangeset for help on using the changeset viewer.