Plugin Directory

Changeset 2290329


Ignore:
Timestamp:
04/23/2020 05:26:21 PM (6 years ago)
Author:
matto3c
Message:

compatibility with wordpress 5.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extrawatch-pro/trunk/components/com_extrawatch/includes.php

    r1866424 r2290329  
    106106        } else {    //not ajax calls..
    107107            require_once dirname(__FILE__) . '/../../../../../wp-load.php';
    108             require( ABSPATH . WPINC . '/formatting.php' );
    109             require( ABSPATH . WPINC . '/meta.php' );
    110             require( ABSPATH . WPINC . '/post.php' );
     108        require( ABSPATH . WPINC . '/formatting.php' );
     109
     110            if (!function_exists("maybe_hash_hex_color")) {
     111                require(ABSPATH . WPINC . '/formatting.php');
     112            }
     113            if (!function_exists("get_object_subtype")) {
     114                require(ABSPATH . WPINC . '/meta.php');
     115            }
     116
     117
    111118            require( ABSPATH . WPINC . '/widgets.php' );
    112119            wp_plugin_directory_constants();
Note: See TracChangeset for help on using the changeset viewer.