Changeset 3051678
- Timestamp:
- 03/15/2024 12:06:30 PM (2 years ago)
- Location:
- stockpack/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (2 diffs)
-
src/class-stockpackadmin.php (modified) (1 diff)
-
src/class-stockpackquery.php (modified) (2 diffs)
-
src/class-stockpacksettings.php (modified) (2 diffs)
-
stockpack.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
stockpack/trunk/readme.txt
r2966444 r3051678 3 3 Tags: stock images, adobe stock, unsplash, getty, istock, pixabay, pexels 4 4 Requires at least: 4.6 5 Tested up to: 6. 3.16 Stable tag: 3.3. 75 Tested up to: 6.4.3 6 Stable tag: 3.3.8 7 7 License: GPL 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 134 134 == Changelog == 135 135 136 = 3.3.8 = 137 Add Url debugging support 138 Updated WordPress compatibility 139 136 140 = 3.3.7 = 137 141 Add Bricks builder compatibility -
stockpack/trunk/src/class-stockpackadmin.php
r2966444 r3051678 391 391 'default' => 30, 392 392 ), 393 array( 394 'name' => 'url_debugging', 395 'label' => __( 'Enable URL debugging', 'stockpack' ), 396 'desc' => __( 'This will log all external calls made and add them to wp-content/debug.log. Make sure you have space on the disk (a few hundred megabytes) and only keep this enabled for short periods of time', 'stockpack' ), 397 'options' => array( 398 'yes' => __( 'Yes', 'stockpack' ), 399 'no' => __( 'No', 'stockpack' ) 400 ), 401 'type' => 'radio', 402 'default' => 'no', 403 ), 393 404 ) 394 405 ); -
stockpack/trunk/src/class-stockpackquery.php
r2966444 r3051678 77 77 add_action( 'wp_ajax_terms-stockpack', array( $this, 'terms' ) ); // executed when logged in 78 78 add_action( 'wp_ajax_token-stockpack', array( $this, 'token' ) ); // executed when logged in 79 80 if($this->settings->get_url_debugging_setting() ==='yes') { 81 add_action('http_api_debug', array($this, 'debug_wp_remote_post_and_get_request'), 10, 5); 82 } 79 83 } 80 84 … … 578 582 579 583 return $filename; 584 } 585 586 public function debug_wp_remote_post_and_get_request( $response, $context, $class, $r, $url ) { 587 error_log( '------------------------------' ); 588 error_log( $url ); 589 error_log( json_encode( $response ) ); 590 error_log( $class ); 591 error_log( $context ); 592 error_log( json_encode( $r ) ); 580 593 } 581 594 -
stockpack/trunk/src/class-stockpacksettings.php
r2966444 r3051678 49 49 } 50 50 51 51 52 public function get_file_name_change_setting() { 52 53 return $this->get_option( 'file_name_change', 'stockpack_basics' ); … … 63 64 public function get_featured_caption_setting() { 64 65 return $this->get_option( 'caption_featured_image', 'stockpack_advanced' ); 66 } 67 68 public function get_url_debugging_setting() { 69 return $this->get_option( 'url_debugging', 'stockpack_debug' ); 65 70 } 66 71 -
stockpack/trunk/stockpack.php
r2966444 r3051678 6 6 * Author: Derikon Development 7 7 * Author URI: https://derikon.com/ 8 * Version: 3.3. 78 * Version: 3.3.8 9 9 * Text Domain: stockpack 10 10 * Domain Path: /languages
Note: See TracChangeset
for help on using the changeset viewer.