Changeset 3241539
- Timestamp:
- 02/16/2025 11:00:47 PM (13 months ago)
- Location:
- simple-photo-feed
- Files:
-
- 34 added
- 4 edited
-
tags/1.4.1 (added)
-
tags/1.4.1/LICENSE.txt (added)
-
tags/1.4.1/README.txt (added)
-
tags/1.4.1/admin (added)
-
tags/1.4.1/admin/class-simple-photo-feed-admin.php (added)
-
tags/1.4.1/admin/css (added)
-
tags/1.4.1/admin/css/simple-photo-feed-admin.css (added)
-
tags/1.4.1/admin/index.php (added)
-
tags/1.4.1/admin/js (added)
-
tags/1.4.1/admin/js/simple-photo-feed-admin.js (added)
-
tags/1.4.1/admin/partials (added)
-
tags/1.4.1/admin/partials/simple-photo-feed-admin-display.php (added)
-
tags/1.4.1/includes (added)
-
tags/1.4.1/includes/class-simple-photo-feed-activator.php (added)
-
tags/1.4.1/includes/class-simple-photo-feed-api.php (added)
-
tags/1.4.1/includes/class-simple-photo-feed-deactivator.php (added)
-
tags/1.4.1/includes/class-simple-photo-feed-i18n.php (added)
-
tags/1.4.1/includes/class-simple-photo-feed-loader.php (added)
-
tags/1.4.1/includes/class-simple-photo-feed.php (added)
-
tags/1.4.1/includes/index.php (added)
-
tags/1.4.1/index.php (added)
-
tags/1.4.1/languages (added)
-
tags/1.4.1/languages/simple-photo-feed.pot (added)
-
tags/1.4.1/public (added)
-
tags/1.4.1/public/class-simple-photo-feed-public.php (added)
-
tags/1.4.1/public/css (added)
-
tags/1.4.1/public/css/simple-photo-feed-public.css (added)
-
tags/1.4.1/public/index.php (added)
-
tags/1.4.1/public/js (added)
-
tags/1.4.1/public/js/simple-photo-feed-public.js (added)
-
tags/1.4.1/public/partials (added)
-
tags/1.4.1/public/partials/simple-photo-feed-public-display.php (added)
-
tags/1.4.1/simple-photo-feed.php (added)
-
tags/1.4.1/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-simple-photo-feed-admin.php (modified) (3 diffs)
-
trunk/admin/js/simple-photo-feed-admin.js (modified) (2 diffs)
-
trunk/simple-photo-feed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-photo-feed/trunk/README.txt
r3211228 r3241539 4 4 Tags: photo gallery, instagram, feed, social, embed 5 5 Requires at least: 5.3.0 6 Tested up to: 6.7. 16 Tested up to: 6.7.2 7 7 Requires PHP: 7.2 8 Stable tag: 1.4. 08 Stable tag: 1.4.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 95 95 == Changelog == 96 96 97 = 1.4.1 = 98 * Compatibility with WordPress 6.7.2 99 * Add nonce to Ajax calls for improved security 100 97 101 = 1.4.0 = 98 102 * Update to Business API after Basic API deprecation -
simple-photo-feed/trunk/admin/class-simple-photo-feed-admin.php
r3211228 r3241539 77 77 'ajax_url' => admin_url( 'admin-ajax.php' ), 78 78 'theme_uri' => get_stylesheet_directory_uri(), 79 'nonce' => wp_create_nonce( 'simple-photo-feed-nonce' ), 79 80 ) 80 81 ); … … 195 196 */ 196 197 public function spf_disconnect_user() { 198 $nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : ''; 199 if ( ! current_user_can('edit_posts') || ! wp_verify_nonce( $nonce, 'simple-photo-feed-nonce' ) ) { 200 wp_send_json_error( esc_html__( 'Unauthorized!', 'simple-photo-feed' ), 403 ); 201 return; 202 } 203 197 204 $options = get_option( 'spf_main_settings', array() ); 198 205 … … 218 225 */ 219 226 public function spf_clear_feed_cache() { 227 $nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : ''; 228 if ( ! current_user_can('edit_posts') || ! wp_verify_nonce( $nonce, 'simple-photo-feed-nonce' ) ) { 229 wp_send_json_error( esc_html__( 'Unauthorized!', 'simple-photo-feed' ), 403 ); 230 return; 231 } 220 232 221 233 if ( $this->spf_delete_transients() ) { -
simple-photo-feed/trunk/admin/js/simple-photo-feed-admin.js
r3013593 r3241539 14 14 data = new FormData(); 15 15 data.append('action', 'spf_disconnect_user'); 16 data.append('nonce', window.spf.nonce); 16 17 xhr.open('POST', window.spf.ajax_url, true); 17 18 xhr.onreadystatechange = function () { … … 52 53 data = new FormData(); 53 54 data.append('action', 'spf_clear_feed_cache'); 55 data.append('nonce', window.spf.nonce); 54 56 xhr.open('POST', window.spf.ajax_url, true); 55 57 xhr.onreadystatechange = function () { -
simple-photo-feed/trunk/simple-photo-feed.php
r3211228 r3241539 14 14 * Plugin URI: https://wordpress.org/plugins/simple-photo-feed/ 15 15 * Description: Simple Photo Feed provides an easy way to connect to your Instagram account and display your photos in your WordPress site. 16 * Version: 1.4. 016 * Version: 1.4.1 17 17 * Requires at least: 5.3.0 18 * Tested up to: 6.7. 118 * Tested up to: 6.7.2 19 19 * Requires PHP: 7.2 20 20 * Author: George Pattichis … … 34 34 * Current plugin version 35 35 */ 36 define( 'SPF_VERSION', '1.4. 0' );36 define( 'SPF_VERSION', '1.4.1' ); 37 37 38 38 /**
Note: See TracChangeset
for help on using the changeset viewer.