Changeset 3241925
- Timestamp:
- 02/17/2025 01:28:59 PM (13 months ago)
- Location:
- restricted-content/trunk
- Files:
-
- 2 deleted
- 3 edited
-
freemius/assets/img/restricted-content.png (deleted)
-
freemius/templates/powered-by.php (deleted)
-
index.php (modified) (4 diffs)
-
languages/rsc.pot (modified) (19 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
restricted-content/trunk/index.php
r3229253 r3241925 7 7 * Author: Restrict 8 8 * Author URI: https://restrict.io/ 9 * Version: 2.3. 19 * Version: 2.3.2 10 10 * Text Domain: rsc 11 11 * Domain Path: languages … … 191 191 function restrict_search( $query ) { 192 192 if ( $query->is_search && !is_admin() && $query->is_main_query() || defined( 'REST_REQUEST' ) && REST_REQUEST && isset( $query->query_vars['s'] ) ) { 193 $query->set( 'meta_query', [ 193 $meta_query = $query->get( 'meta_query' ); 194 $meta_query = ( $meta_query ? $meta_query : [] ); 195 $meta_query[] = [ 194 196 'relation' => 'OR', 195 197 [ … … 201 203 'value' => 'everyone', 202 204 ], 203 ] ); 205 ]; 206 $query->set( 'meta_query', $meta_query ); 204 207 } 205 208 } … … 963 966 'minutes' => 0, 964 967 ) ) { 968 // Guest User 969 if ( !$user_id ) { 970 return false; 971 } 965 972 $valid_limited_purchases = 0; 966 973 foreach ( $products_ids as $product_id ) { -
restricted-content/trunk/languages/rsc.pot
r3229253 r3241925 3 3 msgstr "" 4 4 "Project-Id-Version: Restricted Content\n" 5 "POT-Creation-Date: 2025-0 1-27 10:09+0100\n"5 "POT-Creation-Date: 2025-02-17 14:16+0100\n" 6 6 "PO-Revision-Date: 2018-07-27 11:20+0200\n" 7 7 "Last-Translator: \n" … … 299 299 300 300 #: includes/addons/restricted-shortcode/restricted-shortcode.php:76 301 #: index.php:1 598301 #: index.php:1608 302 302 msgid "WooCommerce Users" 303 303 msgstr "" … … 308 308 309 309 #: includes/addons/restricted-shortcode/restricted-shortcode.php:88 310 #: index.php:16 02310 #: index.php:1612 311 311 msgid "Easy Digital Downloads Users" 312 312 msgstr "" … … 592 592 593 593 #: includes/admin-functions.php:335 includes/admin-functions.php:447 594 #: includes/admin-functions.php:528 index.php:17 79 index.php:1859595 #: index.php:19 36594 #: includes/admin-functions.php:528 index.php:1789 index.php:1869 595 #: index.php:1946 596 596 msgid "Who Purchased" 597 597 msgstr "" 598 598 599 #: includes/admin-functions.php:338 index.php:17 80599 #: includes/admin-functions.php:338 index.php:1790 600 600 msgid "Any ticket type" 601 601 msgstr "" 602 602 603 #: includes/admin-functions.php:351 index.php:17 83603 #: includes/admin-functions.php:351 index.php:1793 604 604 msgid "Any ticket type for a specific event" 605 605 msgstr "" 606 606 607 #: includes/admin-functions.php:373 index.php:17 85607 #: includes/admin-functions.php:373 index.php:1795 608 608 msgid "Specific ticket type" 609 609 msgstr "" … … 619 619 #. translators: %s: Event id. 620 620 #. translators: %s: Event ID 621 #: includes/admin-functions.php:414 index.php:18 30621 #: includes/admin-functions.php:414 index.php:1840 622 622 #, php-format 623 623 msgid "Event ID: %s" 624 624 msgstr "" 625 625 626 #: includes/admin-functions.php:433 index.php:17 53 index.php:1761626 #: includes/admin-functions.php:433 index.php:1763 index.php:1771 627 627 msgid "User Capability" 628 628 msgstr "" … … 649 649 650 650 #: includes/admin-functions.php:481 includes/admin-functions.php:562 651 #: index.php:18 80 index.php:1957651 #: index.php:1890 index.php:1967 652 652 msgid "Duration" 653 653 msgstr "" 654 654 655 655 #: includes/admin-functions.php:484 includes/admin-functions.php:565 656 #: index.php:18 81 index.php:1958656 #: index.php:1891 index.php:1968 657 657 msgid "Indefinitely" 658 658 msgstr "" 659 659 660 660 #: includes/admin-functions.php:488 includes/admin-functions.php:569 661 #: index.php:18 82 index.php:1959661 #: index.php:1892 index.php:1969 662 662 msgid "Limited time after purchase" 663 663 msgstr "" 664 664 665 665 #: includes/admin-functions.php:493 includes/admin-functions.php:574 666 #: index.php:18 85 index.php:1962666 #: index.php:1895 index.php:1972 667 667 msgid "Days:" 668 668 msgstr "" 669 669 670 670 #: includes/admin-functions.php:501 includes/admin-functions.php:582 671 #: index.php:1 895 index.php:1972671 #: index.php:1905 index.php:1982 672 672 msgid "Hours:" 673 673 msgstr "" 674 674 675 675 #: includes/admin-functions.php:509 includes/admin-functions.php:590 676 #: index.php:19 05 index.php:1982676 #: index.php:1915 index.php:1992 677 677 msgid "Minutes:" 678 678 msgstr "" … … 776 776 777 777 #: includes/classes/class-settings-general.php:156 778 #: includes/classes/class-settings-general.php:164 index.php:3 36 index.php:340778 #: includes/classes/class-settings-general.php:164 index.php:341 index.php:345 779 779 msgid "You don't have required permissions to view this content." 780 780 msgstr "" … … 800 800 msgstr "" 801 801 802 #: includes/classes/class-settings-general.php:172 index.php:34 4802 #: includes/classes/class-settings-general.php:172 index.php:349 803 803 msgid "This content is available only to it's author." 804 804 msgstr "" … … 812 812 msgstr "" 813 813 814 #: includes/classes/class-settings-general.php:184 index.php:3 48814 #: includes/classes/class-settings-general.php:184 index.php:353 815 815 msgid "" 816 816 "This content is restricted to the attendees only. Please purchase ticket(s) " … … 834 834 msgstr "" 835 835 836 #: includes/classes/class-settings-general.php:194 index.php:38 0836 #: includes/classes/class-settings-general.php:194 index.php:385 837 837 msgid "" 838 838 "Only attendees who purchased following ticket type(s): [rsc_tc_ticket_type] " … … 857 857 msgstr "" 858 858 859 #: includes/classes/class-settings-general.php:207 index.php:35 4859 #: includes/classes/class-settings-general.php:207 index.php:359 860 860 msgid "" 861 861 "Only attendees who purchased ticket(s) for following event(s): " … … 870 870 871 871 #: includes/classes/class-settings-general.php:220 872 #: includes/classes/class-settings-general.php:252 index.php:41 0 index.php:467872 #: includes/classes/class-settings-general.php:252 index.php:415 index.php:472 873 873 msgid "" 874 874 "This content is restricted to the clients only. Please purchase any product " … … 892 892 msgstr "" 893 893 894 #: includes/classes/class-settings-general.php:230 index.php:4 17894 #: includes/classes/class-settings-general.php:230 index.php:422 895 895 msgid "" 896 896 "Only clients who purchased following product(s): [rsc_woo_product] can " … … 909 909 msgstr "" 910 910 911 #: includes/classes/class-settings-general.php:240 index.php:44 3911 #: includes/classes/class-settings-general.php:240 index.php:448 912 912 msgid "" 913 913 "The access to this content is invalid or has expired. Please (re)purchase " … … 929 929 msgstr "" 930 930 931 #: includes/classes/class-settings-general.php:262 index.php:47 4931 #: includes/classes/class-settings-general.php:262 index.php:479 932 932 msgid "" 933 933 "Only clients who purchased following product(s): [rsc_edd_product] can " … … 935 935 msgstr "" 936 936 937 #: includes/classes/class-settings-general.php:272 index.php:50 0937 #: includes/classes/class-settings-general.php:272 index.php:505 938 938 msgid "" 939 939 "The access to this content is invalid or has expired. Please (re)purchase " … … 1062 1062 msgstr "" 1063 1063 1064 #: index.php:211 index.php:10 151064 #: index.php:211 index.php:1020 1065 1065 msgid "Settings" 1066 1066 msgstr "" 1067 1067 1068 #: index.php:33 21068 #: index.php:337 1069 1069 msgid "You must log in to view this content" 1070 1070 msgstr "" 1071 1071 1072 #: index.php:39 41072 #: index.php:399 1073 1073 msgid "event" 1074 1074 msgstr "" 1075 1075 1076 1076 #. translators: %s: Current page. 1077 #: index.php:100 21077 #: index.php:1007 1078 1078 #, php-format 1079 1079 msgid "%s" 1080 1080 msgstr "" 1081 1081 1082 #: index.php:14 791082 #: index.php:1489 1083 1083 msgid "Content Restrictions" 1084 1084 msgstr "" 1085 1085 1086 #: index.php:14 82 index.php:14861086 #: index.php:1492 index.php:1496 1087 1087 msgid "Content Available To" 1088 1088 msgstr "" 1089 1089 1090 #: index.php:15 721090 #: index.php:1582 1091 1091 msgid "Everyone" 1092 1092 msgstr "" 1093 1093 1094 #: index.php:15 731094 #: index.php:1583 1095 1095 msgid "Logged in users" 1096 1096 msgstr "" 1097 1097 1098 #: index.php:15 741098 #: index.php:1584 1099 1099 msgid "Users with specific role" 1100 1100 msgstr "" 1101 1101 1102 #: index.php:15 751102 #: index.php:1585 1103 1103 msgid "Users with specific capability" 1104 1104 msgstr "" 1105 1105 1106 #: index.php:15 761106 #: index.php:1586 1107 1107 msgid "Author" 1108 1108 msgstr "" 1109 1109 1110 1110 #. translators: %s: Tickera name. 1111 #: index.php:1 5941111 #: index.php:1604 1112 1112 #, php-format 1113 1113 msgid "%s Users" … … 1115 1115 1116 1116 #. translators: %s: Restrict content setting page url. 1117 #: index.php:16 091117 #: index.php:1619 1118 1118 #, php-format 1119 1119 msgid "" … … 1122 1122 msgstr "" 1123 1123 1124 #: index.php:17 15 index.php:17371124 #: index.php:1725 index.php:1747 1125 1125 msgid "Select a User Role" 1126 1126 msgstr "" 1127 1127 1128 #: index.php:18 60 index.php:19371128 #: index.php:1870 index.php:1947 1129 1129 msgid "Any product" 1130 1130 msgstr "" 1131 1131 1132 #: index.php:18 61 index.php:19381132 #: index.php:1871 index.php:1948 1133 1133 msgid "Specific product" 1134 1134 msgstr "" -
restricted-content/trunk/readme.txt
r3229256 r3241925 4 4 Tags: restricted content, restrict content, restrict access, protect content, restrict site 5 5 Requires at least: 4.3 6 Tested up to: 6.7. 17 Stable tag: 2.3. 16 Tested up to: 6.7.2 7 Stable tag: 2.3.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 79 = 2.3.2 17/02/2025 = 80 * Additional patch applied to hide restricted content from search queries. 81 * Restrict guest user from accessing the content if it is configured with "WooCommerce Users > Specific product > Limited time after purchase". 82 79 83 = 2.3.1 27/01/2025 = 80 84 * Freemius SDK updated to v2.11
Note: See TracChangeset
for help on using the changeset viewer.