Making WordPress.org

Changeset 12505


Ignore:
Timestamp:
03/28/2023 06:12:04 AM (22 months ago)
Author:
dd32
Message:

Plugin Directory: Jetpack has removed it's helper jetpack_require_lib() in preference for direct file inclusions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-tools.php

    r10803 r12505  
    2525     */
    2626    public static function get_image_average_color( $file_location ) {
    27         if ( ! class_exists( 'Tonesque' ) && function_exists( 'jetpack_require_lib' ) ) {
    28             jetpack_require_lib( 'tonesque' );
     27        if ( ! class_exists( 'Tonesque' ) && defined( 'JETPACK__PLUGIN_DIR' ) ) {
     28            include JETPACK__PLUGIN_DIR . '/_inc/lib/tonesque.php';
    2929        }
    3030
Note: See TracChangeset for help on using the changeset viewer.