Making WordPress.org


Ignore:
Timestamp:
02/23/2023 08:59:25 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: API: Switch from using the custom 'WPORGAPIPATH' constant in preference for the standard 'API_WPORGPATH'.

File:
1 edited

Legend:

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

    r11914 r12421  
    311311            case 'json':
    312312            case 'jsonp':
    313                 if ( ! function_exists( 'wp_json_encode' ) && defined( 'WPORGAPIPATH' ) ) {
    314                     require WPORGAPIPATH . '/includes/wp-json-encode.php';
     313                if ( ! function_exists( 'wp_json_encode' ) && defined( 'API_WPORGPATH' ) ) {
     314                    require API_WPORGPATH . '/includes/wp-json-encode.php';
    315315                }
    316316                $json = function_exists( 'wp_json_encode' ) ? wp_json_encode( $response ) : json_encode( $response );
Note: See TracChangeset for help on using the changeset viewer.