Plugin Directory

Changeset 3273577


Ignore:
Timestamp:
04/15/2025 12:49:03 PM (12 months ago)
Author:
PressLabs
Message:

Version 1.2.3

  • tested up to WP 6.8
  • fix PHP warning undefined array key "query"
Location:
mapping-of-image-posts
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • mapping-of-image-posts/trunk/mapping-of-image-posts.php

    r3127399 r3273577  
    55 * Description: Generate a mapping of image - article it belongs, by scanning all attachments.
    66 * Author: PressLabs
    7  * Version: 1.2.2
     7 * Version: 1.2.3
    88 * Author URI: http://www.presslabs.com/
    99 */
     
    133133                $attachment_image = wp_get_attachment_image_src( $attachment_id->ID, $image_type_string[ $key ] );
    134134                $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'] : '');
    136136
    137137                if ( ( '' < $image_out ) && ( '' < $post_out ) && ( ! in_array( $image_out, $array_image_out ) ) ) {
  • mapping-of-image-posts/trunk/readme.txt

    r3127399 r3273577  
    22Contributors: PressLabs, olarmarius
    33Donate link: http://www.presslabs.com/
    4 Tags: mapping, posts, image, apache, htaccess, nginx, rewrite, php5, scan, redirect, attachment, presslabs
     4Tags: mapping posts image, rewrite, scan, attachment, presslabs
    55Requires at least: 4.7
    66Requires PHP: 5.6.40
    7 Tested up to: 6.6
    8 Stable tag: 1.2.2
     7Tested up to: 6.8
     8Stable tag: 1.2.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040
    4141== Changelog ==
     42= 1.2.3 =
     43* tested up to WP 6.8
     44* fix PHP warning undefined array key "query"
     45
    4246= 1.2.2 =
    4347* fix a deprecation warning on PHP 8.3
Note: See TracChangeset for help on using the changeset viewer.