Changeset 3273577
- Timestamp:
- 04/15/2025 12:49:03 PM (12 months ago)
- Location:
- mapping-of-image-posts
- Files:
-
- 8 added
- 2 edited
-
tags/1.2.3 (added)
-
tags/1.2.3/LICENSE (added)
-
tags/1.2.3/README.md (added)
-
tags/1.2.3/ajax-loader.gif (added)
-
tags/1.2.3/mapping-of-image-posts.css (added)
-
tags/1.2.3/mapping-of-image-posts.js (added)
-
tags/1.2.3/mapping-of-image-posts.php (added)
-
tags/1.2.3/readme.txt (added)
-
trunk/mapping-of-image-posts.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mapping-of-image-posts/trunk/mapping-of-image-posts.php
r3127399 r3273577 5 5 * Description: Generate a mapping of image - article it belongs, by scanning all attachments. 6 6 * Author: PressLabs 7 * Version: 1.2. 27 * Version: 1.2.3 8 8 * Author URI: http://www.presslabs.com/ 9 9 */ … … 133 133 $attachment_image = wp_get_attachment_image_src( $attachment_id->ID, $image_type_string[ $key ] ); 134 134 $image_parsed = parse_url( $attachment_image[0] ); 135 $image_out = $image_parsed['path'] . $image_parsed['query'];135 $image_out = $image_parsed['path'] . (isset($image_parsed['query']) ? $image_parsed['query'] : ''); 136 136 137 137 if ( ( '' < $image_out ) && ( '' < $post_out ) && ( ! in_array( $image_out, $array_image_out ) ) ) { -
mapping-of-image-posts/trunk/readme.txt
r3127399 r3273577 2 2 Contributors: PressLabs, olarmarius 3 3 Donate link: http://www.presslabs.com/ 4 Tags: mapping , posts, image, apache, htaccess, nginx, rewrite, php5, scan, redirect, attachment, presslabs4 Tags: mapping posts image, rewrite, scan, attachment, presslabs 5 5 Requires at least: 4.7 6 6 Requires PHP: 5.6.40 7 Tested up to: 6. 68 Stable tag: 1.2. 27 Tested up to: 6.8 8 Stable tag: 1.2.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 = 1.2.3 = 43 * tested up to WP 6.8 44 * fix PHP warning undefined array key "query" 45 42 46 = 1.2.2 = 43 47 * fix a deprecation warning on PHP 8.3
Note: See TracChangeset
for help on using the changeset viewer.