Plugin Directory

Changeset 3477205


Ignore:
Timestamp:
03/07/2026 11:04:29 PM (4 weeks ago)
Author:
danielmilner
Message:

Update to version 1.0.18 from GitHub

Location:
ft-rockpress
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ft-rockpress/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • ft-rockpress/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • ft-rockpress/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • ft-rockpress/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • ft-rockpress/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • ft-rockpress/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • ft-rockpress/tags/1.0.18/ft-rockpress.php

    r2568394 r3477205  
    44 * Plugin URI: https://rockpresswp.com/
    55 * Description: Display information from Rock RMS on your WordPress site.
    6  * Version: 1.0.17
     6 * Version: 1.0.18
    77 * Author: RockPress <support@rockpresswp.com>
    88 * Author URI: https://rockpresswp.com/
     
    6767         * @since 1.0.0
    6868         */
    69         public $version = '1.0.17';
     69        public $version = '1.0.18';
    7070
    7171        /**
  • ft-rockpress/tags/1.0.18/includes/admin/admin-ajax.php

    r1718985 r3477205  
    3232     */
    3333    public function check_services() {
     34        if ( ! current_user_can( 'manage_options' ) ) {
     35            wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) );
     36        }
    3437
    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 ) );
    3740        }
    3841
  • ft-rockpress/tags/1.0.18/includes/admin/admin-scripts.php

    r2289647 r3477205  
    4747     */
    4848    private function enqueue() {
    49 
    50         wp_enqueue_script( 'rockpress-admin', ROCKPRESS_PLUGIN_URL . 'assets/js/admin/admin.js' );
    51 
    5249        if ( ! isset( $_GET['page'] ) ) {
    5350            return;
    5451        }
    55         if ( ! isset( $_GET['tab'] ) ) {
     52        if ( 'rockpress-settings' !== $_GET['page'] ) {
    5653            return;
    5754        }
    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'] ) ) {
    5958            return;
    6059        }
     
    8685    private function localize() {
    8786
    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        }
    100101
    101102        $current_user = wp_get_current_user();
  • ft-rockpress/tags/1.0.18/includes/class-rockpress-import.php

    r2377474 r3477205  
    124124     */
    125125    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 ) );
    129132        }
    130133
     
    144147     */
    145148    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 ) );
    149155        }
    150156
     
    183189     */
    184190    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 ) );
    188197        }
    189198
     
    205214     */
    206215    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 ) );
    209222        }
    210223
     
    212225        delete_option( 'rockpress_current_import' );
    213226        delete_option( 'rockpress_last_import' );
    214         esc_html_e( 'Never', 'rockpress' );
     227        esc_html_e( 'Never', 'ft-rockpress' );
    215228        wp_die();
    216229    }
  • ft-rockpress/tags/1.0.18/readme.txt

    r2568394 r3477205  
    33Tags: church, rockrms, chms, rock rms
    44Requires at least: 4.3
    5 Tested up to: 5.8
    6 Requires PHP: 5.3
    7 Stable tag: 1.0.17
     5Tested up to: 6.9
     6Requires PHP: 8.0
     7Stable tag: 1.0.18
    88License: GPLv2 or later
    99License URI: http://ww.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 1.0.18 =
     45* Security updates.
    4346
    4447= 1.0.17 =
  • ft-rockpress/trunk/ft-rockpress.php

    r2568394 r3477205  
    44 * Plugin URI: https://rockpresswp.com/
    55 * Description: Display information from Rock RMS on your WordPress site.
    6  * Version: 1.0.17
     6 * Version: 1.0.18
    77 * Author: RockPress <support@rockpresswp.com>
    88 * Author URI: https://rockpresswp.com/
     
    6767         * @since 1.0.0
    6868         */
    69         public $version = '1.0.17';
     69        public $version = '1.0.18';
    7070
    7171        /**
  • ft-rockpress/trunk/includes/admin/admin-ajax.php

    r1718985 r3477205  
    3232     */
    3333    public function check_services() {
     34        if ( ! current_user_can( 'manage_options' ) ) {
     35            wp_die( esc_html__( 'Insufficient Permissions', 'ft-rockpress' ), '', array( 'response' => 403 ) );
     36        }
    3437
    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 ) );
    3740        }
    3841
  • ft-rockpress/trunk/includes/admin/admin-scripts.php

    r2289647 r3477205  
    4747     */
    4848    private function enqueue() {
    49 
    50         wp_enqueue_script( 'rockpress-admin', ROCKPRESS_PLUGIN_URL . 'assets/js/admin/admin.js' );
    51 
    5249        if ( ! isset( $_GET['page'] ) ) {
    5350            return;
    5451        }
    55         if ( ! isset( $_GET['tab'] ) ) {
     52        if ( 'rockpress-settings' !== $_GET['page'] ) {
    5653            return;
    5754        }
    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'] ) ) {
    5958            return;
    6059        }
     
    8685    private function localize() {
    8786
    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        }
    100101
    101102        $current_user = wp_get_current_user();
  • ft-rockpress/trunk/includes/class-rockpress-import.php

    r2377474 r3477205  
    124124     */
    125125    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 ) );
    129132        }
    130133
     
    144147     */
    145148    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 ) );
    149155        }
    150156
     
    183189     */
    184190    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 ) );
    188197        }
    189198
     
    205214     */
    206215    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 ) );
    209222        }
    210223
     
    212225        delete_option( 'rockpress_current_import' );
    213226        delete_option( 'rockpress_last_import' );
    214         esc_html_e( 'Never', 'rockpress' );
     227        esc_html_e( 'Never', 'ft-rockpress' );
    215228        wp_die();
    216229    }
  • ft-rockpress/trunk/readme.txt

    r2568394 r3477205  
    33Tags: church, rockrms, chms, rock rms
    44Requires at least: 4.3
    5 Tested up to: 5.8
    6 Requires PHP: 5.3
    7 Stable tag: 1.0.17
     5Tested up to: 6.9
     6Requires PHP: 8.0
     7Stable tag: 1.0.18
    88License: GPLv2 or later
    99License URI: http://ww.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 1.0.18 =
     45* Security updates.
    4346
    4447= 1.0.17 =
Note: See TracChangeset for help on using the changeset viewer.