Changeset 3477205
- Timestamp:
- 03/07/2026 11:04:29 PM (4 weeks ago)
- Location:
- ft-rockpress
- Files:
-
- 16 edited
- 1 copied
-
assets/banner-1544x500.png (modified) (1 prop) (previous)
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
tags/1.0.18 (copied) (copied from ft-rockpress/trunk)
-
tags/1.0.18/ft-rockpress.php (modified) (2 diffs)
-
tags/1.0.18/includes/admin/admin-ajax.php (modified) (1 diff)
-
tags/1.0.18/includes/admin/admin-scripts.php (modified) (2 diffs)
-
tags/1.0.18/includes/class-rockpress-import.php (modified) (5 diffs)
-
tags/1.0.18/readme.txt (modified) (2 diffs)
-
trunk/ft-rockpress.php (modified) (2 diffs)
-
trunk/includes/admin/admin-ajax.php (modified) (1 diff)
-
trunk/includes/admin/admin-scripts.php (modified) (2 diffs)
-
trunk/includes/class-rockpress-import.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ft-rockpress/assets/banner-1544x500.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
ft-rockpress/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
ft-rockpress/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
ft-rockpress/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
ft-rockpress/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
ft-rockpress/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
ft-rockpress/tags/1.0.18/ft-rockpress.php
r2568394 r3477205 4 4 * Plugin URI: https://rockpresswp.com/ 5 5 * Description: Display information from Rock RMS on your WordPress site. 6 * Version: 1.0.1 76 * Version: 1.0.18 7 7 * Author: RockPress <support@rockpresswp.com> 8 8 * Author URI: https://rockpresswp.com/ … … 67 67 * @since 1.0.0 68 68 */ 69 public $version = '1.0.1 7';69 public $version = '1.0.18'; 70 70 71 71 /** -
ft-rockpress/tags/1.0.18/includes/admin/admin-ajax.php
r1718985 r3477205 32 32 */ 33 33 public function check_services() { 34 if ( ! current_user_can( 'manage_options' ) ) { 35 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 36 } 34 37 35 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'rockpress-nonce' ) ) {36 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress') );38 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 39 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 37 40 } 38 41 -
ft-rockpress/tags/1.0.18/includes/admin/admin-scripts.php
r2289647 r3477205 47 47 */ 48 48 private function enqueue() { 49 50 wp_enqueue_script( 'rockpress-admin', ROCKPRESS_PLUGIN_URL . 'assets/js/admin/admin.js' );51 52 49 if ( ! isset( $_GET['page'] ) ) { 53 50 return; 54 51 } 55 if ( ! isset( $_GET['tab'] )) {52 if ( 'rockpress-settings' !== $_GET['page'] ) { 56 53 return; 57 54 } 58 if ( 'rockpress-settings' !== $_GET['page'] ) { 55 wp_enqueue_script( 'rockpress-admin', ROCKPRESS_PLUGIN_URL . 'assets/js/admin/admin.js' ); 56 57 if ( ! isset( $_GET['tab'] ) ) { 59 58 return; 60 59 } … … 86 85 private function localize() { 87 86 88 wp_localize_script( 'rockpress-admin', 'rockpress_vars', array( 89 'nonce' => wp_create_nonce( 'rockpress-nonce' ), 90 'messages' => array( 91 'done' => __( 'Done', 'ft-rockpress' ), 92 'running' => __( 'Running...', 'ft-rockpress' ), 93 'manual_import_button' => __( 'Import Now', 'ft-rockpress' ), 94 'reset_import_button' => __( 'Reset', 'ft-rockpress' ), 95 'connection_test_button' => __( 'Run Test Now', 'ft-rockpress' ), 96 'process_running' => __( 'Process is running...', 'ft-rockpress' ), 97 'reset_import_confirmation' => __( 'Are you sure that you want to reset the last import time?', 'ft-rockpress' ), 98 ), 99 ) ); 87 if ( wp_script_is( 'rockpress-admin', 'enqueued' ) ) { 88 wp_localize_script( 'rockpress-admin', 'rockpress_vars', array( 89 'nonce' => wp_create_nonce( 'rockpress-nonce' ), 90 'messages' => array( 91 'done' => __( 'Done', 'ft-rockpress' ), 92 'running' => __( 'Running...', 'ft-rockpress' ), 93 'manual_import_button' => __( 'Import Now', 'ft-rockpress' ), 94 'reset_import_button' => __( 'Reset', 'ft-rockpress' ), 95 'connection_test_button' => __( 'Run Test Now', 'ft-rockpress' ), 96 'process_running' => __( 'Process is running...', 'ft-rockpress' ), 97 'reset_import_confirmation' => __( 'Are you sure that you want to reset the last import time?', 'ft-rockpress' ), 98 ), 99 ) ); 100 } 100 101 101 102 $current_user = wp_get_current_user(); -
ft-rockpress/tags/1.0.18/includes/class-rockpress-import.php
r2377474 r3477205 124 124 */ 125 125 public static function ajax_run() { 126 127 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 128 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 126 if ( ! current_user_can( 'manage_options' ) ) { 127 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 128 } 129 130 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 131 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 129 132 } 130 133 … … 144 147 */ 145 148 public static function ajax_status() { 146 147 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 148 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 149 if ( ! current_user_can( 'manage_options' ) ) { 150 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 151 } 152 153 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 154 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 149 155 } 150 156 … … 183 189 */ 184 190 public static function ajax_last_import() { 185 186 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 187 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 191 if ( ! current_user_can( 'manage_options' ) ) { 192 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 193 } 194 195 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 196 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 188 197 } 189 198 … … 205 214 */ 206 215 public static function ajax_reset_import() { 207 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 208 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 216 if ( ! current_user_can( 'manage_options' ) ) { 217 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 218 } 219 220 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 221 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 209 222 } 210 223 … … 212 225 delete_option( 'rockpress_current_import' ); 213 226 delete_option( 'rockpress_last_import' ); 214 esc_html_e( 'Never', ' rockpress' );227 esc_html_e( 'Never', 'ft-rockpress' ); 215 228 wp_die(); 216 229 } -
ft-rockpress/tags/1.0.18/readme.txt
r2568394 r3477205 3 3 Tags: church, rockrms, chms, rock rms 4 4 Requires at least: 4.3 5 Tested up to: 5.86 Requires PHP: 5.37 Stable tag: 1.0.1 75 Tested up to: 6.9 6 Requires PHP: 8.0 7 Stable tag: 1.0.18 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 == Changelog == 43 44 = 1.0.18 = 45 * Security updates. 43 46 44 47 = 1.0.17 = -
ft-rockpress/trunk/ft-rockpress.php
r2568394 r3477205 4 4 * Plugin URI: https://rockpresswp.com/ 5 5 * Description: Display information from Rock RMS on your WordPress site. 6 * Version: 1.0.1 76 * Version: 1.0.18 7 7 * Author: RockPress <support@rockpresswp.com> 8 8 * Author URI: https://rockpresswp.com/ … … 67 67 * @since 1.0.0 68 68 */ 69 public $version = '1.0.1 7';69 public $version = '1.0.18'; 70 70 71 71 /** -
ft-rockpress/trunk/includes/admin/admin-ajax.php
r1718985 r3477205 32 32 */ 33 33 public function check_services() { 34 if ( ! current_user_can( 'manage_options' ) ) { 35 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 36 } 34 37 35 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'rockpress-nonce' ) ) {36 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress') );38 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 39 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 37 40 } 38 41 -
ft-rockpress/trunk/includes/admin/admin-scripts.php
r2289647 r3477205 47 47 */ 48 48 private function enqueue() { 49 50 wp_enqueue_script( 'rockpress-admin', ROCKPRESS_PLUGIN_URL . 'assets/js/admin/admin.js' );51 52 49 if ( ! isset( $_GET['page'] ) ) { 53 50 return; 54 51 } 55 if ( ! isset( $_GET['tab'] )) {52 if ( 'rockpress-settings' !== $_GET['page'] ) { 56 53 return; 57 54 } 58 if ( 'rockpress-settings' !== $_GET['page'] ) { 55 wp_enqueue_script( 'rockpress-admin', ROCKPRESS_PLUGIN_URL . 'assets/js/admin/admin.js' ); 56 57 if ( ! isset( $_GET['tab'] ) ) { 59 58 return; 60 59 } … … 86 85 private function localize() { 87 86 88 wp_localize_script( 'rockpress-admin', 'rockpress_vars', array( 89 'nonce' => wp_create_nonce( 'rockpress-nonce' ), 90 'messages' => array( 91 'done' => __( 'Done', 'ft-rockpress' ), 92 'running' => __( 'Running...', 'ft-rockpress' ), 93 'manual_import_button' => __( 'Import Now', 'ft-rockpress' ), 94 'reset_import_button' => __( 'Reset', 'ft-rockpress' ), 95 'connection_test_button' => __( 'Run Test Now', 'ft-rockpress' ), 96 'process_running' => __( 'Process is running...', 'ft-rockpress' ), 97 'reset_import_confirmation' => __( 'Are you sure that you want to reset the last import time?', 'ft-rockpress' ), 98 ), 99 ) ); 87 if ( wp_script_is( 'rockpress-admin', 'enqueued' ) ) { 88 wp_localize_script( 'rockpress-admin', 'rockpress_vars', array( 89 'nonce' => wp_create_nonce( 'rockpress-nonce' ), 90 'messages' => array( 91 'done' => __( 'Done', 'ft-rockpress' ), 92 'running' => __( 'Running...', 'ft-rockpress' ), 93 'manual_import_button' => __( 'Import Now', 'ft-rockpress' ), 94 'reset_import_button' => __( 'Reset', 'ft-rockpress' ), 95 'connection_test_button' => __( 'Run Test Now', 'ft-rockpress' ), 96 'process_running' => __( 'Process is running...', 'ft-rockpress' ), 97 'reset_import_confirmation' => __( 'Are you sure that you want to reset the last import time?', 'ft-rockpress' ), 98 ), 99 ) ); 100 } 100 101 101 102 $current_user = wp_get_current_user(); -
ft-rockpress/trunk/includes/class-rockpress-import.php
r2377474 r3477205 124 124 */ 125 125 public static function ajax_run() { 126 127 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 128 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 126 if ( ! current_user_can( 'manage_options' ) ) { 127 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 128 } 129 130 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 131 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 129 132 } 130 133 … … 144 147 */ 145 148 public static function ajax_status() { 146 147 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 148 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 149 if ( ! current_user_can( 'manage_options' ) ) { 150 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 151 } 152 153 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 154 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 149 155 } 150 156 … … 183 189 */ 184 190 public static function ajax_last_import() { 185 186 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 187 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 191 if ( ! current_user_can( 'manage_options' ) ) { 192 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 193 } 194 195 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 196 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 188 197 } 189 198 … … 205 214 */ 206 215 public static function ajax_reset_import() { 207 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 208 die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ) ); 216 if ( ! current_user_can( 'manage_options' ) ) { 217 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 218 } 219 220 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'rockpress-nonce' ) ) { 221 wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) ); 209 222 } 210 223 … … 212 225 delete_option( 'rockpress_current_import' ); 213 226 delete_option( 'rockpress_last_import' ); 214 esc_html_e( 'Never', ' rockpress' );227 esc_html_e( 'Never', 'ft-rockpress' ); 215 228 wp_die(); 216 229 } -
ft-rockpress/trunk/readme.txt
r2568394 r3477205 3 3 Tags: church, rockrms, chms, rock rms 4 4 Requires at least: 4.3 5 Tested up to: 5.86 Requires PHP: 5.37 Stable tag: 1.0.1 75 Tested up to: 6.9 6 Requires PHP: 8.0 7 Stable tag: 1.0.18 8 8 License: GPLv2 or later 9 9 License URI: http://ww.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 == Changelog == 43 44 = 1.0.18 = 45 * Security updates. 43 46 44 47 = 1.0.17 =
Note: See TracChangeset
for help on using the changeset viewer.