Changeset 2182821
- Timestamp:
- 10/30/2019 07:27:25 AM (5 years ago)
- 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 49 49 jQuery("select[name=apaiu_status]").val(prefs.custom_post_status); 50 50 jQuery("select[name=custom_post_format]").val(prefs.custom_post_format); 51 51 52 } 52 53 }) -
auto-post-after-image-upload/trunk/auto_post_after_image_upload.php
r2181275 r2182821 4 4 Plugin URI: http://wordpress.org/extend/plugins/auto-post-after-image-upload 5 5 Description: 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. 36 Version: 1. 7 7 Author: Shaharia Azam <mail@shaharia.com> 8 8 Author URI: http://www.shaharia.com?utm_source=auto-post-after-image-upload -
auto-post-after-image-upload/trunk/lib/APAIU_Functions.php
r2181274 r2182821 43 43 $largeImage = wp_get_attachment_image_src( $attachmentId, 'large' ); 44 44 $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]; 47 47 48 48 $imageThumb = wp_get_attachment_image_src( $attachmentId, 'thumbnail' ); 49 49 $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]; 52 52 return $finalData; 53 53 } … … 235 235 <textarea class="form-control" id="customPostContent" rows="4" 236 236 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> 238 238 </div> 239 239 <div class="form-group"> … … 299 299 300 300 {{media_src_large}} 301 {{media_large_width}}302 {{media_large_height}}303 301 304 302 {{media_src_thumb}} 305 {{media_thumb_width}}306 {{media_thumb_height}}307 303 </code> 308 304 </pre> … … 335 331 336 332 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'] = ; 338 334 }else{ 339 335 $preferences['custom_post_content'] = $prfs['custom_post_content']; -
auto-post-after-image-upload/trunk/readme.txt
r2181275 r2182821 5 5 Requires at least: 4.0 6 6 Tested up to: 5.3 7 Stable tag: 1. 37 Stable tag: 1. 8 8 Requires PHP: 5.5 9 9 License: GPLv2 or later … … 47 47 == Changelog == 48 48 49 50 51 49 52 = 1.3 = 50 53 * Post format can be pre set from settings page
Note: See TracChangeset
for help on using the changeset viewer.