Changeset 2868782
- Timestamp:
- 02/21/2023 02:27:32 PM (3 years ago)
- Location:
- thron/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
admin/class-thron-admin.php (modified) (7 diffs)
-
admin/class-thron-setting.php (modified) (1 diff)
-
admin/class-thron-wp-rest-attachments-controller.php (modified) (2 diffs)
-
includes/class-thron-api.php (modified) (1 diff)
-
includes/class-thron.php (modified) (2 diffs)
-
thron.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
thron/trunk/README.txt
r2750821 r2868782 2 2 Contributors: thronspa, websolutedev 3 3 Tags: DAM 4 Stable tag: 1. 2.24 Stable tag: 1.3.0 5 5 Requires at least: 5.9 6 Tested up to: 5.9.27 Requires PHP: 7. 06 Tested up to: 6.1 7 Requires PHP: 7.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 85 85 == Changelog == 86 86 87 = 1.3.0 = 88 - Extended support to PHP 8 89 87 90 = 1.2.2 = 88 91 - Fix for WordPress.com Hosting -
thron/trunk/admin/class-thron-admin.php
r2750821 r2868782 420 420 $query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array(); 421 421 422 422 423 $source = sanitize_text_field( $query['thron_source'] ); 423 424 … … 531 532 532 533 $infinite = true; 533 //print_r($infinite);534 534 return $infinite; 535 535 } … … 661 661 662 662 $list_files = $thron_api->search( $term, $categories, $tag, $mime_type, $per_page, $pageToken ); 663 //print_r($list_files); 663 664 664 665 $_SESSION['pageToken'] = $list_files->nextPageToken; 665 666 … … 743 744 $height = null; 744 745 } 745 //print_r( $file->detail ->locales[0]);746 746 //print_r( $file->details); 747 //die(); 747 748 //print_r( $file->detail->locales[0]->name); 748 749 $url = 'https://' . $clientId . '-cdn.thron.com/delivery/public/image/' . $clientId . '/' . $file->id . '/' . $pkey . '/std/' . $width . 'x' . $height . '/' . $file->details->source->fileName; … … 1549 1550 <input type="text" id="attachment-details-two-column-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} /> 1550 1551 </span> 1551 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>1552 1552 <# } #> 1553 1553 <?php if ( post_type_supports( 'attachment', 'title' ) ) : ?> … … 1655 1655 1656 1656 function ws_add_overrides() { 1657 $args = array (1658 'id' => $_GET['item'], // id1659 );1657 $args = array ( 1658 'id' => '', // id 1659 ); 1660 1660 1661 1661 add_action( 'admin_footer-post.php', [$this,'ws_add_media_overrides'] ); … … 1664 1664 add_action( 'admin_footer-upload.php', function() use ( $args ) { 1665 1665 $this->ws_add_media_overrides( $args ); } ); 1666 1667 }1666 1667 } 1668 1668 1669 1669 } -
thron/trunk/admin/class-thron-setting.php
r2741703 r2868782 180 180 $thron_options = get_option( 'thron_option_api_page' ); 181 181 182 if (! array_key_exists('thron_maxImageWidth', $thron_options ) or $thron_options['thron_maxImageWidth'] == '' ) { 183 $thron_options['thron_maxImageWidth'] = 1920; 184 185 update_option( 'thron_option_api_page', $thron_options ); 182 if ( is_array( $thron_options ) ) { 183 184 if (! array_key_exists('thron_maxImageWidth', $thron_options ) or $thron_options['thron_maxImageWidth'] == '' ) { 185 $thron_options['thron_maxImageWidth'] = 1920; 186 187 update_option( 'thron_option_api_page', $thron_options ); 188 } 189 186 190 } 187 191 -
thron/trunk/admin/class-thron-wp-rest-attachments-controller.php
r2741714 r2868782 15 15 * @see WP_REST_Attachments_Controller 16 16 */ 17 17 18 class THRON_WP_REST_Attachments_Controller extends WP_REST_Attachments_Controller { 18 19 … … 37 38 $thron_api = new ThronAPI( $appId, $clientId, $appKey ); 38 39 $detail = $thron_api->get_content_detail( $thron_id ); 40 39 41 40 42 $mime = null; -
thron/trunk/includes/class-thron-api.php
r2750821 r2868782 179 179 ); 180 180 181 182 183 181 if ( is_wp_error( $response ) ) { 184 182 thron_write_log($response->get_error_message); 185 183 } else { 186 184 $result = json_decode( $response['body'] ); 185 186 187 187 188 188 return $result; -
thron/trunk/includes/class-thron.php
r2750821 r2868782 71 71 $this->version = THRON_VERSION; 72 72 } else { 73 $this->version = '1. 2.2';73 $this->version = '1.3.0'; 74 74 } 75 75 $this->plugin_name = 'thron'; … … 174 174 175 175 $plugin_admin = new Thron_Admin( $this->get_plugin_name(), $this->get_version() ); 176 $plugin_wp_rest_attachments_controller = new THRON_WP_REST_Attachments_Controller('attachment s');176 $plugin_wp_rest_attachments_controller = new THRON_WP_REST_Attachments_Controller('attachment'); 177 177 $plugin_setting = new Thron_Setting( ); 178 178 $plugin_cron = new Thron_Cron( ); -
thron/trunk/thron.php
r2750821 r2868782 17 17 * Plugin URI: 18 18 * Description: Select the assets to insert within your pages directly from the DAM library 19 * Version: 1. 2.219 * Version: 1.3.0 20 20 * Author: THRON 21 21 * Author URI: https://www.thron.com … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'THRON_VERSION', '1. 2.2' );38 define( 'THRON_VERSION', '1.3.0' ); 39 39 define( 'THRON_PLUGIN_URL', plugin_dir_url(__FILE__) ); 40 40 define( 'THRON_PLUGIN_PATH', plugin_dir_path(__FILE__) );
Note: See TracChangeset
for help on using the changeset viewer.