Plugin Directory

Changeset 2793139


Ignore:
Timestamp:
10/02/2022 07:21:21 PM (3 years ago)
Author:
teatreeman
Message:

Bug Fix

Location:
api-fetch-twitter
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • api-fetch-twitter/tags/1.0.0/admin/class-api-fetch-twitter-admin-twitter.php

    r2695050 r2793139  
    391391                'test_size' => true,
    392392            );
    393 
     393           
     394            if ( ! is_admin() ) {
     395                require_once( ABSPATH . 'wp-admin/includes/post.php' );
     396            }
     397
     398           
    394399            $attachment_id = post_exists( basename( $url ) );
    395400
  • api-fetch-twitter/trunk/README.txt

    r2787217 r2793139  
    55Requires at least: 5.0.0
    66Tested up to: 6.0.2
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • api-fetch-twitter/trunk/admin/class-api-fetch-twitter-admin-twitter.php

    r2695053 r2793139  
    358358    /**
    359359     *  Import images into WP Media library.
    360      *
     360     * 
     361     *  @since 1.0.1 Inclusion of file for when the task is executed asynchronously.
    361362     *  @since 1.0.0
    362363     *
     
    391392                'test_size' => true,
    392393            );
    393 
     394           
     395            if ( ! is_admin() ) {
     396                require_once( ABSPATH . 'wp-admin/includes/post.php' );
     397            }
     398           
    394399            $attachment_id = post_exists( basename( $url ) );
    395400
Note: See TracChangeset for help on using the changeset viewer.