Plugin Directory

Changeset 2182821

Timestamp:
10/30/2019 07:27:25 AM (5 years ago)
Author:
shaharia.azam
Message:

Few bug fixed

Location:
auto-post-after-image-upload/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • auto-post-after-image-upload/trunk/assets/js/main.js

    r2181274 r2182821  
    4949                jQuery("select[name=apaiu_status]").val(prefs.custom_post_status);
    5050                jQuery("select[name=custom_post_format]").val(prefs.custom_post_format);
     51
    5152            }
    5253        })
  • auto-post-after-image-upload/trunk/auto_post_after_image_upload.php

    r2181275 r2182821  
    44Plugin URI:   http://wordpress.org/extend/plugins/auto-post-after-image-upload
    55Description:  This plugin will provide you the facility to create automated post when you will upload an image to your wordpress media gallery. Each time after uploading one media file upload one post will be created with attached this uploaded image automatically
    6 Version:      1.3
     6Version:      1.
    77Author:       Shaharia Azam <mail@shaharia.com>
    88Author URI:   http://www.shaharia.com?utm_source=auto-post-after-image-upload
  • auto-post-after-image-upload/trunk/lib/APAIU_Functions.php

    r2181274 r2182821  
    4343        $largeImage      = wp_get_attachment_image_src( $attachmentId, 'large' );
    4444        $finalData['media_src_large'] = $largeImage[0];
    45         $finalData['media_large_width'] = $largeImage[1];
    46         $finalData['media_large_height'] = $largeImage[2];
     45        $finalData['media_large_width'] = $largeImage[1];
     46        $finalData['media_large_height'] = $largeImage[2];
    4747
    4848        $imageThumb      = wp_get_attachment_image_src( $attachmentId, 'thumbnail' );
    4949        $finalData['media_src_thumb'] = $imageThumb[0];
    50         $finalData['media_thumb_width'] = $imageThumb[1];
    51         $finalData['media_thumb_height'] = $imageThumb[2];
     50        $finalData['media_thumb_width'] = $imageThumb[1];
     51        $finalData['media_thumb_height'] = $imageThumb[2];
    5252        return $finalData;
    5353    }
     
    235235                            <textarea class="form-control" id="customPostContent" rows="4"
    236236                                      placeholder="Preset your contents" aria-describedby="customTextArea" name="apaiu_custom_textarea"></textarea>
    237                             <small id="customTextArea" class="form-text text-muted">HTML tags [strong, br, p] are supported</small>
     237                            <small id="customTextArea" class="form-text text-muted">HTML tags are supported</small>
    238238                        </div>
    239239                        <div class="form-group">
     
    299299
    300300{{media_src_large}}
    301 {{media_large_width}}
    302 {{media_large_height}}
    303301
    304302{{media_src_thumb}}
    305 {{media_thumb_width}}
    306 {{media_thumb_height}}
    307303</code>
    308304                        </pre>
     
    335331
    336332        if(!empty($pConfigs['custom_post_content'])){
    337             $preferences['custom_post_content'] = strip_tags($pConfigs['custom_post_content'], 'strong,p,a,br');
     333            $preferences['custom_post_content'] = ;
    338334        }else{
    339335            $preferences['custom_post_content'] = $prfs['custom_post_content'];
  • auto-post-after-image-upload/trunk/readme.txt

    r2181275 r2182821  
    55Requires at least: 4.0
    66Tested up to: 5.3
    7 Stable tag: 1.3
     7Stable tag: 1.
    88Requires PHP: 5.5
    99License: GPLv2 or later
     
    4747== Changelog ==
    4848
     49
     50
     51
    4952= 1.3 =
    5053* Post format can be pre set from settings page
Note: See TracChangeset for help on using the changeset viewer.