Changeset 3435420
- Timestamp:
- 01/08/2026 06:32:15 PM (6 weeks ago)
- Location:
- constellation-client-portal
- Files:
-
- 134 added
- 1 deleted
- 6 edited
-
tags/2.5.0 (deleted)
-
tags/2.6.0 (added)
-
tags/2.6.0/LICENSE.txt (added)
-
tags/2.6.0/README.txt (added)
-
tags/2.6.0/admin (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-admin.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-client-pages.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-company.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-core-authorization.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-core-file-checks.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-data-management.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-file.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-invoice.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-settings.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-users.php (added)
-
tags/2.6.0/admin/class-ars-constellation-client-portal-wizards.php (added)
-
tags/2.6.0/admin/css (added)
-
tags/2.6.0/admin/css/ars-constellation-client-portal-admin.css (added)
-
tags/2.6.0/admin/css/jquery-ui (added)
-
tags/2.6.0/admin/css/jquery-ui/1.11.1 (added)
-
tags/2.6.0/admin/css/jquery-ui/1.11.1/themes (added)
-
tags/2.6.0/admin/css/jquery-ui/1.11.1/themes/cupertino (added)
-
tags/2.6.0/admin/css/jquery-ui/1.11.1/themes/cupertino/jquery-ui.css (added)
-
tags/2.6.0/admin/css/select2.min.css (added)
-
tags/2.6.0/admin/index.php (added)
-
tags/2.6.0/admin/js (added)
-
tags/2.6.0/admin/js/ars-constellation-client-portal-admin-wizard.js (added)
-
tags/2.6.0/admin/js/ars-constellation-client-portal-admin.js (added)
-
tags/2.6.0/admin/js/i18n (added)
-
tags/2.6.0/admin/js/i18n/af.js (added)
-
tags/2.6.0/admin/js/i18n/ar.js (added)
-
tags/2.6.0/admin/js/i18n/az.js (added)
-
tags/2.6.0/admin/js/i18n/bg.js (added)
-
tags/2.6.0/admin/js/i18n/bs.js (added)
-
tags/2.6.0/admin/js/i18n/ca.js (added)
-
tags/2.6.0/admin/js/i18n/cs.js (added)
-
tags/2.6.0/admin/js/i18n/da.js (added)
-
tags/2.6.0/admin/js/i18n/de.js (added)
-
tags/2.6.0/admin/js/i18n/dsb.js (added)
-
tags/2.6.0/admin/js/i18n/el.js (added)
-
tags/2.6.0/admin/js/i18n/en.js (added)
-
tags/2.6.0/admin/js/i18n/es.js (added)
-
tags/2.6.0/admin/js/i18n/et.js (added)
-
tags/2.6.0/admin/js/i18n/eu.js (added)
-
tags/2.6.0/admin/js/i18n/fa.js (added)
-
tags/2.6.0/admin/js/i18n/fi.js (added)
-
tags/2.6.0/admin/js/i18n/fr.js (added)
-
tags/2.6.0/admin/js/i18n/gl.js (added)
-
tags/2.6.0/admin/js/i18n/he.js (added)
-
tags/2.6.0/admin/js/i18n/hi.js (added)
-
tags/2.6.0/admin/js/i18n/hr.js (added)
-
tags/2.6.0/admin/js/i18n/hsb.js (added)
-
tags/2.6.0/admin/js/i18n/hu.js (added)
-
tags/2.6.0/admin/js/i18n/hy.js (added)
-
tags/2.6.0/admin/js/i18n/id.js (added)
-
tags/2.6.0/admin/js/i18n/is.js (added)
-
tags/2.6.0/admin/js/i18n/it.js (added)
-
tags/2.6.0/admin/js/i18n/ja.js (added)
-
tags/2.6.0/admin/js/i18n/km.js (added)
-
tags/2.6.0/admin/js/i18n/ko.js (added)
-
tags/2.6.0/admin/js/i18n/lt.js (added)
-
tags/2.6.0/admin/js/i18n/lv.js (added)
-
tags/2.6.0/admin/js/i18n/mk.js (added)
-
tags/2.6.0/admin/js/i18n/ms.js (added)
-
tags/2.6.0/admin/js/i18n/nb.js (added)
-
tags/2.6.0/admin/js/i18n/nl.js (added)
-
tags/2.6.0/admin/js/i18n/pl.js (added)
-
tags/2.6.0/admin/js/i18n/ps.js (added)
-
tags/2.6.0/admin/js/i18n/pt-BR.js (added)
-
tags/2.6.0/admin/js/i18n/pt.js (added)
-
tags/2.6.0/admin/js/i18n/ro.js (added)
-
tags/2.6.0/admin/js/i18n/ru.js (added)
-
tags/2.6.0/admin/js/i18n/sk.js (added)
-
tags/2.6.0/admin/js/i18n/sl.js (added)
-
tags/2.6.0/admin/js/i18n/sr-Cyrl.js (added)
-
tags/2.6.0/admin/js/i18n/sr.js (added)
-
tags/2.6.0/admin/js/i18n/sv.js (added)
-
tags/2.6.0/admin/js/i18n/th.js (added)
-
tags/2.6.0/admin/js/i18n/tr.js (added)
-
tags/2.6.0/admin/js/i18n/uk.js (added)
-
tags/2.6.0/admin/js/i18n/vi.js (added)
-
tags/2.6.0/admin/js/i18n/zh-CN.js (added)
-
tags/2.6.0/admin/js/i18n/zh-TW.js (added)
-
tags/2.6.0/admin/js/select2.full.min.js (added)
-
tags/2.6.0/admin/js/select2.min.js (added)
-
tags/2.6.0/ars-constellation-client-portal.php (added)
-
tags/2.6.0/assets (added)
-
tags/2.6.0/assets/css (added)
-
tags/2.6.0/assets/css/font-awesome (added)
-
tags/2.6.0/assets/css/font-awesome/css (added)
-
tags/2.6.0/assets/css/font-awesome/css/all.css (added)
-
tags/2.6.0/assets/css/font-awesome/css/all.min.css (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-brands-400.eot (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-brands-400.svg (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-brands-400.ttf (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-brands-400.woff (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-brands-400.woff2 (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-regular-400.eot (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-regular-400.svg (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-regular-400.ttf (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-regular-400.woff (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-regular-400.woff2 (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-solid-900.eot (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-solid-900.svg (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-solid-900.ttf (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-solid-900.woff (added)
-
tags/2.6.0/assets/css/font-awesome/webfonts/fa-solid-900.woff2 (added)
-
tags/2.6.0/assets/img (added)
-
tags/2.6.0/assets/img/accp-full-logo.png (added)
-
tags/2.6.0/includes (added)
-
tags/2.6.0/includes/ars-constellation-client-portal-install-uninstall.php (added)
-
tags/2.6.0/includes/class-ars-constellation-client-portal-activator.php (added)
-
tags/2.6.0/includes/class-ars-constellation-client-portal-deactivator.php (added)
-
tags/2.6.0/includes/class-ars-constellation-client-portal-i18n.php (added)
-
tags/2.6.0/includes/class-ars-constellation-client-portal-loader.php (added)
-
tags/2.6.0/includes/class-ars-constellation-client-portal-utility-functions.php (added)
-
tags/2.6.0/includes/class-ars-constellation-client-portal.php (added)
-
tags/2.6.0/includes/index.php (added)
-
tags/2.6.0/index.php (added)
-
tags/2.6.0/languages (added)
-
tags/2.6.0/languages/ars-constellation-client-portal.pot (added)
-
tags/2.6.0/public (added)
-
tags/2.6.0/public/assets (added)
-
tags/2.6.0/public/assets/index.php (added)
-
tags/2.6.0/public/class-ars-constellation-client-portal-public.php (added)
-
tags/2.6.0/public/css (added)
-
tags/2.6.0/public/css/ars-constellation-client-portal-list-shortcode-styles.css (added)
-
tags/2.6.0/public/css/ars-constellation-client-portal-public.css (added)
-
tags/2.6.0/public/index.php (added)
-
tags/2.6.0/public/js (added)
-
tags/2.6.0/public/js/ars-constellation-client-portal-public.js (added)
-
tags/2.6.0/public/shortcodes (added)
-
tags/2.6.0/public/shortcodes/class-ars-constellation-client-portal-list-shortcodes.php (added)
-
tags/2.6.0/uninstall.php (added)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/admin/class-ars-constellation-client-portal-admin.php (modified) (1 diff)
-
trunk/admin/js/ars-constellation-client-portal-admin.js (modified) (2 diffs)
-
trunk/ars-constellation-client-portal.php (modified) (2 diffs)
-
trunk/includes/class-ars-constellation-client-portal-activator.php (modified) (1 diff)
-
trunk/includes/class-ars-constellation-client-portal.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
constellation-client-portal/trunk/README.txt
r3412221 r3435420 5 5 Requires at least: 6.0.0 6 6 Tested up to: 6.9 7 Stable tag: 2. 5.17 Stable tag: 2.6.0 8 8 Requires PHP: 7.4 9 9 License: GPLv3 or later … … 168 168 169 169 = Can I automatically change an invoice status to paid when an order is paid in WooCommerce? = 170 Yes. The Pro version allows you to enable functionality that automatically changes an invoice status to paid when it is paid in WooCommerce, or when the WooCommerce order status changes to "com mpleted" (depending on your preference).170 Yes. The Pro version allows you to enable functionality that automatically changes an invoice status to paid when it is paid in WooCommerce, or when the WooCommerce order status changes to "completed" (depending on your preference). 171 171 172 172 = Can I restrict access to specific documents and pages for specific users or roles? = … … 210 210 211 211 == Changelog == 212 = 2.6.0 (Pro) - 2026-1-8 = 213 * Fix: Fixed issue where the accp-item-container link color css rule overrode individual a.accp-pay-link text color within invoice list items. 214 * Update: Added pro plugin review request notice functionality. 215 216 = 2.6.0 (Core) - 2026-1-8 = 217 * Update: Added core plugin review request notice functionality. 218 212 219 = 2.5.1 (Pro) - 2025-12-5 = 213 220 * Update: All core updates. … … 216 223 = 2.5.1 (Core) - 2025-12-5 = 217 224 * Compatibility: Tested the plugin with WP 6.9. 218 219 225 * Update: Updated the file and invoice reassign functionality to allow the posts to be reassigned to another company even if there is no file attached to the post. 220 226 -
constellation-client-portal/trunk/admin/class-ars-constellation-client-portal-admin.php
r3412221 r3435420 3818 3818 return wp_kses_post( $html ); 3819 3819 } 3820 } //End ARS_Constellation_Client_Portal_Admin Class 3820 3821 /** 3822 * Display review request admin notice. 3823 * Shows a dismissible notice asking users to leave a 5-star review. 3824 * 3825 * @since 2.6.0 3826 * @return void 3827 */ 3828 public function display_review_notice() { 3829 3830 if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) || ! is_admin() ) { 3831 return; 3832 } 3833 3834 /** 3835 * Check if the notice has been dismissed. 3836 */ 3837 if ( get_option( 'accp_review_notice_dismissed' ) ) { 3838 return; 3839 } 3840 3841 /** 3842 * Check if plugin has been active for at least 2 months. 3843 * 3844 * Also make this backwards compatible for installs that 3845 * were activated before an activation time option was added. 3846 */ 3847 $time_delay = 60 * 60 * 24 * 60; // Two months. 3848 3849 /** 3850 * If the activation time option is not set, we assume 3851 * this a legacy version of the plugin. In that case, 3852 * we'll just set the activation time to two months ago. 3853 */ 3854 if ( ! get_option( 'accp_plugin_activation_time' ) ) { 3855 update_option( 'accp_plugin_activation_time', time() - $time_delay ); 3856 } 3857 3858 $activation_time = get_option( 'accp_plugin_activation_time' ); 3859 3860 if ( ! $activation_time || ( time() - intval( $activation_time ) ) < $time_delay ) { 3861 return; 3862 } 3863 3864 /** 3865 * Only show once per week. 3866 */ 3867 $last_shown = get_option( 'accp_review_notice_last_shown' ); 3868 3869 if ( $last_shown && ( time() - intval( $last_shown ) ) < WEEK_IN_SECONDS ) { 3870 return; 3871 } 3872 3873 /** 3874 * Update the last shown timestamp. 3875 */ 3876 update_option( 'accp_review_notice_last_shown', time() ); 3877 3878 $review_url = $this->get_plugin_review_link(); 3879 $nonce = wp_create_nonce( 'accp_dismiss_review_nonce' ); 3880 ?> 3881 <div class="notice notice-info is-dismissible accp-review-notice" data-notice="accp_review" data-nonce="<?php echo esc_attr( $nonce ); ?>"> 3882 <p> 3883 <strong><?php esc_html_e( 'Love Constellation Client Portal?', 'constellation-client-portal' ); ?></strong><br> 3884 <?php 3885 printf( 3886 wp_kses_post( 3887 /* translators: %s is the plugin review URL on WordPress.org. */ 3888 __( 'If you have found Constellation Client Portal useful, we\'d be grateful if you could take a moment to <a href="%s" target="_blank">leave a 5-star review</a>. Your feedback helps us improve the plugin and helps others discover it. We appreciate your support!', 'constellation-client-portal' ) 3889 ), 3890 esc_url( $review_url ) 3891 ); 3892 ?> 3893 </p> 3894 </div> 3895 <?php 3896 } 3897 3898 /** 3899 * Handle the dismissal of the review notice via AJAX. 3900 * 3901 * @since 2.6.0 3902 * @return void 3903 */ 3904 public function handle_dismiss_review_notice() { 3905 3906 /** 3907 * Verify nonce. 3908 */ 3909 if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'accp_dismiss_review_nonce' ) ) { 3910 3911 wp_die(); 3912 } 3913 3914 if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) || ! is_admin() ) { 3915 wp_die(); 3916 } 3917 3918 /** 3919 * Mark the notice as dismissed. 3920 */ 3921 update_option( 'accp_review_notice_dismissed', true ); 3922 3923 wp_die(); 3924 } 3925 3926 3927 /** 3928 * Get plugin review link. 3929 * 3930 * @return string $review_link - The plugin review link. 3931 */ 3932 public function get_plugin_review_link() { 3933 3934 $is_pro = $this->is_pro; 3935 $review_link = 'https://wordpress.org/support/plugin/constellation-client-portal/reviews/'; 3936 3937 if ( $is_pro ) { 3938 3939 $review_link = 'https://constellationclientportal.com/wp-login.php?ars_review_redirect_to=https%3A%2F%2Fconstellationclientportal.com%2Fmy-account%2Fars-myacct-product-reviews%2F'; 3940 3941 return esc_url( $review_link ); 3942 } 3943 3944 return esc_url( $review_link ); 3945 } 3946 } //End ARS_Constellation_Client_Portal_Admin Class. -
constellation-client-portal/trunk/admin/js/ars-constellation-client-portal-admin.js
r3288605 r3435420 34 34 35 35 accp_save_bulk_edit_post_data(); 36 37 accp_dismiss_plugin_review_request(); 36 38 37 39 }); // End document ready. … … 1016 1018 } 1017 1019 1020 1021 function accp_dismiss_plugin_review_request(){ 1022 1023 if ( $('.accp-review-notice').length === 0 ) { 1024 return; 1025 } 1026 1027 $('body.wp-admin').click('.accp-review-notice .notice-dismiss', function () { 1028 1029 var nonce = $('.accp-review-notice').attr('data-nonce'); 1030 1031 $.ajax({ 1032 type: 'POST', 1033 url: ajaxurl, 1034 cache: false, 1035 data: { 1036 action:'accp_dismiss_review_notice', 1037 nonce: nonce 1038 }, 1039 success: function(data){ 1040 1041 }, 1042 error: function(jqXHR, textStatus, errorThrown){ 1043 console.log(textStatus, errorThrown); 1044 console.log(jqXHR); 1045 }, 1046 1047 }); 1048 1049 }); 1050 1051 } 1052 1018 1053 })( jQuery ); -
constellation-client-portal/trunk/ars-constellation-client-portal.php
r3412221 r3435420 7 7 * Plugin URI: https://adrianrodriguezstudios.com/constellation-client-portal/ 8 8 * Description: Create private pages for each of your clients, post private files, and protect your client files from unauthorized users and search engines. <strong>Important:</strong> All Site-level File Protection features will cease to function if the plugin is disabled or uninstalled. 9 * Version: 2. 5.19 * Version: 2.6.0 10 10 * Author: ARS 11 11 * Author URI: https://adrianrodriguezstudios.com … … 57 57 */ 58 58 define('ACCP_PLUGIN_NAME', 'ARS_CONSTELLATION_CLIENT_PORTAL'); 59 define('ACCP_PLUGIN_VERSION', '2. 5.1'); // Change the version in the header as well.59 define('ACCP_PLUGIN_VERSION', '2.6.0'); // Change the version in the header as well. 60 60 define( ACCP_PLUGIN_NAME, ACCP_PLUGIN_VERSION ); 61 61 define( 'ACCP_PLUGIN_FILE_NAME', __FILE__ ); -
constellation-client-portal/trunk/includes/class-ars-constellation-client-portal-activator.php
r3088740 r3435420 35 35 */ 36 36 update_option( 'accp_plugin_activation', 'just-activated' ); 37 38 /** 39 * Store the plugin activation time for review notice tracking. 40 */ 41 if ( ! get_option( 'accp_plugin_activation_time' ) ) { 42 update_option( 'accp_plugin_activation_time', time() ); 43 } 37 44 38 45 /** -
constellation-client-portal/trunk/includes/class-ars-constellation-client-portal.php
r3363221 r3435420 201 201 202 202 /** 203 * Display plugin review request notice. 204 */ 205 $this->loader->add_action( 'admin_notices', $plugin_admin, 'display_review_notice' ); 206 $this->loader->add_action( 'wp_ajax_accp_dismiss_review_notice', $plugin_admin, 'handle_dismiss_review_notice' ); 207 208 /** 203 209 * WP user list. 204 210 */
Note: See TracChangeset
for help on using the changeset viewer.