Plugin Directory

Changeset 1814078


Ignore:
Timestamp:
02/02/2018 12:05:01 PM (8 years ago)
Author:
odude
Message:

Code Optimized

Location:
wp-upg
Files:
117 added
5 edited

Legend:

Unmodified
Added
Removed
  • wp-upg/trunk/layout/media/header.php

    r1688694 r1814078  
    44      $options = get_option( 'upg_settings','' );
    55      if(isset($options['upg_textarea_shortcode_1']))
    6           return do_shortcode( stripslashes($options['upg_textarea_shortcode_1']))."<br>" ;
     6          return do_shortcode( stripslashes($options['upg_textarea_shortcode_1']));
    77      else
    88          return "" ;
     
    1212      $options = get_option( 'upg_settings','' );
    1313      if(isset($options['upg_textarea_shortcode_2']))
    14           return do_shortcode( stripslashes($options['upg_textarea_shortcode_2']))."<br>" ;
     14          return do_shortcode( stripslashes($options['upg_textarea_shortcode_2']));
    1515      else
    1616          return "" ;
  • wp-upg/trunk/layout/media/personal/personal.php

    r1772155 r1814078  
    1212    ob_start ();
    1313    $image=upg_image_src('large',$post);
     14    $image_medium=upg_image_src('medium',$post);
     15    $image_full=upg_image_src('full',$post);
    1416   
    1517    $author = get_user_by('id', get_the_author_meta( 'ID' ));
  • wp-upg/trunk/libs/functions.php

    r1807834 r1814078  
    112112    if (empty($title))    $newPost['error'][] = 'required-title';
    113113    if (empty($category)) $newPost['error'][] = 'required-category';
    114     if (empty($content))  $newPost['error'][] = 'required-description';
     114    //if (empty($content))  $newPost['error'][] = 'required-description';
    115115    if (empty($url))  $newPost['error'][] = 'required-url';
    116116    if ($category=='-1') $newPost['error'][] = 'required-category';
     
    164164    if (empty($title))    $newPost['error'][] = 'required-title';
    165165    if (empty($category)) $newPost['error'][] = 'required-category';
    166     if (empty($content))  $newPost['error'][] = 'required-description';
     166    //if (empty($content))  $newPost['error'][] = 'required-description';
    167167   
    168168    $newPost['error'][]=apply_filters('upg_verify_submit', "");
     
    300300 
    301301    if(has_filter('upg_add_icon_grid')) {
    302         $list .= '<br>';
    303302        $icon = apply_filters('upg_add_icon_grid', $icon);
    304303    }
    305304 
     305if(count($icon)>0)
     306    $list .= '<br>';
     307
    306308 for($r=0;$r<count($icon);$r++)
    307309{
  • wp-upg/trunk/readme.txt

    r1807834 r1814078  
    55Requires at least: 3.8
    66Tested up to: 4.9.1
    7 Stable tag: 1.41
     7Stable tag: 1.42
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5656For further questions feel free to drop a line at <a href="mailto:navneet@odude.com">navneet@odude.com</a>.
    5757or
    58 Go to our site to read full updated documentations and features at <a href="http://odude.com/demo/faq/">UPG FAQ</a>. The FAQ Knowledgebase system is also powered by UPG plugin.
     58Go to our site to read full updated documentations and features at <a href="http://odude.com/demo/faq/">UPG FAQ</a>.
    5959
    6060= Live Demo =
    6161
    62 Click on the link to see the <a href="http://odude.com/demo/" target="_blank">Basic Demo built to display products</a>.
     62Used WP-UPG Plugin : <a href="http://odude.com/demo/photo/users-post-gallery/" target="_blank">Built for Photographers</a>
     63
     64Used WP-UPG Plugin : <a href="http://odude.com/demo/faq/" target="_blank">FAQ System</a>
    6365
    6466
     
    116118== Changelog ==
    117119
     120=1.42=
     121* Code optimized and added basic layout
     122
    118123=1.41=
    119124* Logged in users can delete own uploded post.
  • wp-upg/trunk/wp-upg.php

    r1807834 r1814078  
    44Plugin URI: http://odude.com/
    55Description: UPG - User Post Gallery. User can post content/images from frontend.
    6 Version: 1.41
     6Version: 1.42
    77Author: ODude Network
    88Author URI: http://odude.com/
     
    1111*/
    1212
    13     define('UPG_PLUGIN_VERSION', '1.41');
     13    define('UPG_PLUGIN_VERSION', '1.42');
    1414   
    1515    define('upg_ROOT_URL', plugin_dir_url( __FILE__ ) );
     
    154154        for ($x = 1; $x <= 5; $x++)
    155155        {
    156             if(isset($_POST["upg_custom_field_".$x]) && $_POST["upg_custom_field_".$x]!="")
    157             {
     156            //if(isset($_POST["upg_custom_field_".$x]) && $_POST["upg_custom_field_".$x]!="")
     157            //{
    158158            update_post_meta($post->ID, "upg_custom_field_".$x, sanitize_text_field($_POST["upg_custom_field_".$x]));
    159             }
     159            //}
    160160        }
    161161       
Note: See TracChangeset for help on using the changeset viewer.