Changeset 1224052
- Timestamp:
- 08/18/2015 07:49:39 PM (10 years ago)
- Location:
- simple-image-grabber/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
simple-image-grabber.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-image-grabber/trunk/readme.txt
r607951 r1224052 1 1 === Simple Image Grabber === 2 Contributors: c.bavota2 Contributors: tinkerpriest 3 3 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4W58JWNBHWKK4 4 4 Tags: posts, images from posts, retrieve images, get images, grab images, post images, pictures, photos 5 5 Requires at least: 2.7 6 Tested up to: 3.47 Stable tag: 1.0. 36 Tested up to: 4.3 7 Stable tag: 1.0.5 8 8 9 9 == Description == … … 75 75 == Change Log == 76 76 77 1.0.5 (2015-8-18) 78 <ul> 79 <li>Added validation</li> 80 <li>Updated contributor username</li> 81 <li>Updated version and stable tag</li> 82 </ul> 83 77 84 1.0.4 (2012-10-04) 78 85 <ul> -
simple-image-grabber/trunk/simple-image-grabber.php
r607909 r1224052 5 5 Description: Display one or all images from a post's content. 6 6 Author: c.bavota 7 Version: 1.0. 47 Version: 1.0.5 8 8 Author URI: http://bavotasan.com 9 9 License: GPL2 10 10 */ 11 11 12 /* Copyright 201 2c.bavota (email : [email protected])12 /* Copyright 2015 c.bavota (email : [email protected]) 13 13 14 14 This program is free software; you can redistribute it and/or modify … … 70 70 71 71 // Setup variables according to passed parameters 72 $size = empty( $width ) ? '' : ' width="' . $width. 'px"';73 $size = empty( $height ) ? $size : $size . ' height="' . $height. 'px"';74 $class = empty( $class ) ? '' : ' class="' . $class. '"';75 $link = empty( $permalink ) ? '' : '<a href="' . get_permalink() . '">';72 $size = empty( $width ) ? '' : ' width="' . esc_attr( $width ) . 'px"'; 73 $size = empty( $height ) ? $size : $size . ' height="' . esc_attr( $height ) . 'px"'; 74 $class = empty( $class ) ? '' : ' class="' . esc_attr( $class ) . '"'; 75 $link = empty( $permalink ) ? '' : '<a href="' . esc_url( get_permalink() ) . '">'; 76 76 $linkend = empty( $permalink ) ? '' : '</a>'; 77 77
Note: See TracChangeset
for help on using the changeset viewer.