WordPress.org

Plugin Directory

Changeset 625345


Ignore:
Timestamp:
11/14/12 20:20:25 (18 months ago)
Author:
mordauk
Message:

Uploading v1.3.2

Location:
font-uploader
Files:
6 added
3 deleted
4 edited
6 copied

Legend:

Unmodified
Added
Removed
  • font-uploader/tags/1.3.2/font-uploader-free.php

    r580060 r625345  
    44Plugin URI: http://wordpress.org/extend/plugins/font-uploader/ 
    55Description: A custom font upload plugin for Wordpress allowing you to use any font anywhere you wish. 
    6 Version: 1.3.1 
     6Version: 1.3.2 
    77Author: Pippin Williamson 
    88Contributors: mordauk 
     
    2929// fonts folder path 
    3030if(!defined('FU_FONT_DIR')) { 
    31     define('FU_FONT_DIR', $fu_upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR ); 
     31    define('FU_FONT_DIR', $fu_upload_dir['basedir'] . '/fonts/' ); 
    3232} 
    3333// fonts folder path 
    3434if(!defined('FU_FONT_URL')) { 
    35     define('FU_FONT_URL', content_url() . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR ); 
     35    define('FU_FONT_URL', content_url() . '/uploads/fonts/' ); 
    3636} 
    3737// old fonts folder path for backwards compatibility 
    3838if(!defined('FU_OLD_FONT_DIR')) { 
    39     define('FU_OLD_FONT_DIR', FU_PLUGIN_DIR . 'fonts' . DIRECTORY_SEPARATOR ); 
     39    define('FU_OLD_FONT_DIR', FU_PLUGIN_DIR . 'fonts/' ); 
    4040} 
    4141// old fonts folder url for backwards compatibility 
    4242if(!defined('FU_OLD_FONT_URL')) { 
    43     define('FU_OLD_FONT_URL', FU_PLUGIN_URL . 'fonts' . DIRECTORY_SEPARATOR ); 
     43    define('FU_OLD_FONT_URL', FU_PLUGIN_URL . 'fonts/' ); 
    4444} 
    4545 
  • font-uploader/tags/1.3.2/includes/admin.php

    r579885 r625345  
    1212    $i=0; 
    1313 
    14     if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Font Uploader settings saved.</strong></p></div>'; 
     14    if ( isset( $_REQUEST['saved'] ) && $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Font Uploader settings saved.</strong></p></div>'; 
    1515    ?> 
    1616    <div class="wrap"> 
     
    4848                            </th> 
    4949                            <td class="fu_input fu_text"> 
    50                                 <input name="<?php echo $value['id']; ?>" class="<?php echo $value['class']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != ""){ echo htmlentities(stripslashes(get_option( $value['id']))); } else { echo htmlentities($value['std']); } ?>" /> 
     50                                <input name="<?php echo $value['id']; ?>" class="<?php echo $value['class']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != ""){ echo htmlentities(stripslashes(get_option( $value['id']))); } ?>" /> 
     51                                <?php if( isset( $value['desc'] ) ) : ?> 
    5152                                <p class="description"><?php echo $value['desc']; ?></p> 
     53                            <?php endif; ?> 
    5254                            </td> 
    5355                        </tr> 
     
    6668                                <?php } ?> 
    6769                                </select> 
     70                                <?php if( isset( $value['desc'] ) ) : ?> 
    6871                                <span class="description"><?php echo $value['desc']; ?></span> 
     72                                <?php endif; ?> 
    6973                            </td> 
    7074                        </tr> 
     
    226230    if ( isset( $_GET['page'] ) && $_GET['page'] == 'font-uploader'  && $pagenow == 'themes.php') { 
    227231 
    228         if ( 'save' == $_REQUEST['action'] ) { 
     232        if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) { 
    229233 
    230234            foreach ($options as $value) { 
    231                 update_option( $value['id'], $_REQUEST[ $value['id'] ] ); 
    232             } 
    233  
    234             foreach ($options as $value) { 
    235  
    236                 if( isset( $_REQUEST[ $value['id'] ] ) ) { 
     235 
     236                if( isset( $value['id'] ) && isset( $_REQUEST[ $value['id'] ] ) ) { 
    237237 
    238238                    update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); 
     
    240240                } else { 
    241241 
    242                     delete_option( $value['id'] ); 
     242                    if( isset( $value['id'] ) ) 
     243                        delete_option( $value['id'] ); 
    243244 
    244245                } 
  • font-uploader/tags/1.3.2/readme.txt

    r580060 r625345  
    66Tags: font, upload, custom fonts 
    77Requires at least: 3.0 
    8 Tested up to: 3.4.1 
    9 Stable tag: 1.3.1 
     8Tested up to: 3.4.2 
     9Stable tag: 1.3.2 
    1010 
    1111This plugin lets you upload your own font files and apply them to any element of your website. 
  • font-uploader/trunk/font-uploader-free.php

    r580060 r625345  
    44Plugin URI: http://wordpress.org/extend/plugins/font-uploader/ 
    55Description: A custom font upload plugin for Wordpress allowing you to use any font anywhere you wish. 
    6 Version: 1.3.1 
     6Version: 1.3.2 
    77Author: Pippin Williamson 
    88Contributors: mordauk 
     
    2929// fonts folder path 
    3030if(!defined('FU_FONT_DIR')) { 
    31     define('FU_FONT_DIR', $fu_upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR ); 
     31    define('FU_FONT_DIR', $fu_upload_dir['basedir'] . '/fonts/' ); 
    3232} 
    3333// fonts folder path 
    3434if(!defined('FU_FONT_URL')) { 
    35     define('FU_FONT_URL', content_url() . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . 'fonts' . DIRECTORY_SEPARATOR ); 
     35    define('FU_FONT_URL', content_url() . '/uploads/fonts/' ); 
    3636} 
    3737// old fonts folder path for backwards compatibility 
    3838if(!defined('FU_OLD_FONT_DIR')) { 
    39     define('FU_OLD_FONT_DIR', FU_PLUGIN_DIR . 'fonts' . DIRECTORY_SEPARATOR ); 
     39    define('FU_OLD_FONT_DIR', FU_PLUGIN_DIR . 'fonts/' ); 
    4040} 
    4141// old fonts folder url for backwards compatibility 
    4242if(!defined('FU_OLD_FONT_URL')) { 
    43     define('FU_OLD_FONT_URL', FU_PLUGIN_URL . 'fonts' . DIRECTORY_SEPARATOR ); 
     43    define('FU_OLD_FONT_URL', FU_PLUGIN_URL . 'fonts/' ); 
    4444} 
    4545 
  • font-uploader/trunk/includes/admin.php

    r579885 r625345  
    1212    $i=0; 
    1313 
    14     if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Font Uploader settings saved.</strong></p></div>'; 
     14    if ( isset( $_REQUEST['saved'] ) && $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Font Uploader settings saved.</strong></p></div>'; 
    1515    ?> 
    1616    <div class="wrap"> 
     
    4848                            </th> 
    4949                            <td class="fu_input fu_text"> 
    50                                 <input name="<?php echo $value['id']; ?>" class="<?php echo $value['class']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != ""){ echo htmlentities(stripslashes(get_option( $value['id']))); } else { echo htmlentities($value['std']); } ?>" /> 
     50                                <input name="<?php echo $value['id']; ?>" class="<?php echo $value['class']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_option( $value['id'] ) != ""){ echo htmlentities(stripslashes(get_option( $value['id']))); } ?>" /> 
     51                                <?php if( isset( $value['desc'] ) ) : ?> 
    5152                                <p class="description"><?php echo $value['desc']; ?></p> 
     53                            <?php endif; ?> 
    5254                            </td> 
    5355                        </tr> 
     
    6668                                <?php } ?> 
    6769                                </select> 
     70                                <?php if( isset( $value['desc'] ) ) : ?> 
    6871                                <span class="description"><?php echo $value['desc']; ?></span> 
     72                                <?php endif; ?> 
    6973                            </td> 
    7074                        </tr> 
     
    226230    if ( isset( $_GET['page'] ) && $_GET['page'] == 'font-uploader'  && $pagenow == 'themes.php') { 
    227231 
    228         if ( 'save' == $_REQUEST['action'] ) { 
     232        if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) { 
    229233 
    230234            foreach ($options as $value) { 
    231                 update_option( $value['id'], $_REQUEST[ $value['id'] ] ); 
    232             } 
    233  
    234             foreach ($options as $value) { 
    235  
    236                 if( isset( $_REQUEST[ $value['id'] ] ) ) { 
     235 
     236                if( isset( $value['id'] ) && isset( $_REQUEST[ $value['id'] ] ) ) { 
    237237 
    238238                    update_option( $value['id'], $_REQUEST[ $value['id'] ]  ); 
     
    240240                } else { 
    241241 
    242                     delete_option( $value['id'] ); 
     242                    if( isset( $value['id'] ) ) 
     243                        delete_option( $value['id'] ); 
    243244 
    244245                } 
  • font-uploader/trunk/readme.txt

    r580060 r625345  
    66Tags: font, upload, custom fonts 
    77Requires at least: 3.0 
    8 Tested up to: 3.4.1 
    9 Stable tag: 1.3.1 
     8Tested up to: 3.4.2 
     9Stable tag: 1.3.2 
    1010 
    1111This plugin lets you upload your own font files and apply them to any element of your website. 
Note: See TracChangeset for help on using the changeset viewer.