Version Description
- Fixed issue with global site access not correctly working.
- Added success color to registration form notice.
- Fixed bug admin bar control wasn't working.
- Fixed bug where specifying custom roles for registration forms didn't work.
- Improved sanitization and escaping of data in settings pages.
- Auto paragraphed form custom messages.
Download this release
Release Info
Developer | Collizo4sky |
Plugin | WP User Avatar |
Version | 3.1.8 |
Comparing to | |
See all releases |
Code changes from version 3.1.7 to 3.1.8
- changelog.txt +9 -1
- deprecated/wp-user-avatar/includes/class-wp-user-avatar.php +1 -1
- languages/wp-user-avatar.pot +125 -125
- readme.txt +14 -6
- src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php +1 -1
- src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php +11 -0
- src/Admin/SettingsPages/GeneralSettings.php +36 -0
- src/AdminBarDashboardAccess/Init.php +25 -17
- src/Classes/GlobalSiteAccess.php +15 -5
- src/Classes/RegistrationAuth.php +3 -1
- src/Classes/UserAvatar.php +2 -2
- src/ContentProtection/Frontend/PostContent.php +1 -1
- src/Functions/custom-settings-api.php +3 -3
- src/ShortcodeParser/FrontendProfileTag.php +2 -2
- src/ShortcodeParser/MyAccount/MyAccountTag.php +3 -3
- src/Themes/DragDrop/Registration/PerfectoLite.php +5 -0
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +2 -2
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +2 -2
- wp-user-avatar.php +2 -2
changelog.txt
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
-
= 3.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
* Enhancement: JS scripts are now conditionally loaded.
|
3 |
* Fixed display issue in perfecto lite themes.
|
4 |
* Added custom message when logged in users view a login and signup page.
|
1 |
+
= 3.1.8 =
|
2 |
+
* Fixed issue with global site access not correctly working.
|
3 |
+
* Added success color to registration form notice.
|
4 |
+
* Fixed bug admin bar control wasn't working.
|
5 |
+
* Fixed bug where specifying custom roles for registration forms didn't work.
|
6 |
+
* Improved sanitization and escaping of data in settings pages.
|
7 |
+
* Auto paragraphed form custom messages.
|
8 |
+
|
9 |
+
= 3.1.7 =
|
10 |
* Enhancement: JS scripts are now conditionally loaded.
|
11 |
* Fixed display issue in perfecto lite themes.
|
12 |
* Added custom message when logged in users view a login and signup page.
|
deprecated/wp-user-avatar/includes/class-wp-user-avatar.php
CHANGED
@@ -36,7 +36,7 @@ class WP_User_Avatar
|
|
36 |
|
37 |
return ob_get_clean();
|
38 |
|
39 |
-
},
|
40 |
// Admin scripts
|
41 |
$pages = array('profile.php', 'options-discussion.php', 'user-edit.php', 'user-new.php');
|
42 |
|
36 |
|
37 |
return ob_get_clean();
|
38 |
|
39 |
+
}, PHP_INT_MAX - 1, 2);
|
40 |
// Admin scripts
|
41 |
$pages = array('profile.php', 'options-discussion.php', 'user-edit.php', 'user-new.php');
|
42 |
|
languages/wp-user-avatar.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the ProfilePress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: ProfilePress 3.1.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
|
7 |
-
"POT-Creation-Date: 2021-06-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -403,7 +403,7 @@ msgstr ""
|
|
403 |
|
404 |
#: src/Admin/SettingsPages/AbstractSettingsPage.php:55
|
405 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:87
|
406 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
407 |
#: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:28
|
408 |
msgid "General"
|
409 |
msgstr ""
|
@@ -451,7 +451,7 @@ msgstr ""
|
|
451 |
#: src/Admin/SettingsPages/AbstractSettingsPage.php:147
|
452 |
#: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
|
453 |
#: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
|
454 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
455 |
#: src/Functions/GlobalFunctions.php:1236
|
456 |
#: src/Functions/GlobalFunctions.php:1264
|
457 |
#: src/Functions/GlobalFunctions.php:1286
|
@@ -609,7 +609,7 @@ msgid ""
|
|
609 |
msgstr ""
|
610 |
|
611 |
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1369
|
612 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
613 |
msgid "Registration Settings"
|
614 |
msgstr ""
|
615 |
|
@@ -627,7 +627,7 @@ msgid "Check to make this a passwordless login form."
|
|
627 |
msgstr ""
|
628 |
|
629 |
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1416
|
630 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
631 |
msgid "Login Settings"
|
632 |
msgstr ""
|
633 |
|
@@ -686,8 +686,8 @@ msgstr ""
|
|
686 |
|
687 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:89
|
688 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:232
|
689 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
690 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
691 |
#: src/Classes/Miscellaneous.php:17
|
692 |
msgid "Settings"
|
693 |
msgstr ""
|
@@ -707,7 +707,7 @@ msgstr ""
|
|
707 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:235
|
708 |
#: src/Admin/SettingsPages/FormList.php:239
|
709 |
#: src/Admin/SettingsPages/FormList.php:315
|
710 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
711 |
#: src/ContentProtection/WPListTable.php:96
|
712 |
#: src/ContentProtection/WPListTable.php:291
|
713 |
#: src/ContentProtection/views/include.view-sidebar.php:12
|
@@ -1569,32 +1569,32 @@ msgstr ""
|
|
1569 |
msgid "Customize Default Template"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1573 |
msgid "Preview Email"
|
1574 |
msgstr ""
|
1575 |
|
1576 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1577 |
msgid "Enable Notification"
|
1578 |
msgstr ""
|
1579 |
|
1580 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1581 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1582 |
msgid "Enable"
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1586 |
msgid "Check to enable this email notification."
|
1587 |
msgstr ""
|
1588 |
|
1589 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1590 |
msgid "Subject Line"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1594 |
msgid "Enter the subject or title for the welcome message email."
|
1595 |
msgstr ""
|
1596 |
|
1597 |
-
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:
|
1598 |
msgid "Message Body"
|
1599 |
msgstr ""
|
1600 |
|
@@ -1725,8 +1725,8 @@ msgid "Filter by Type"
|
|
1725 |
msgstr ""
|
1726 |
|
1727 |
#: src/Admin/SettingsPages/Forms.php:99
|
1728 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1729 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1730 |
#: src/Classes/AjaxHandler.php:53 src/NavigationMenuLinks/Backend.php:34
|
1731 |
#: src/ShortcodeParser/Builder/GlobalShortcodes.php:235
|
1732 |
#: src/Themes/DragDrop/AbstractBuildScratch.php:180
|
@@ -1735,13 +1735,13 @@ msgid "Login"
|
|
1735 |
msgstr ""
|
1736 |
|
1737 |
#: src/Admin/SettingsPages/Forms.php:104
|
1738 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1739 |
#: src/Classes/AjaxHandler.php:58
|
1740 |
msgid "Registration"
|
1741 |
msgstr ""
|
1742 |
|
1743 |
#: src/Admin/SettingsPages/Forms.php:110
|
1744 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1745 |
#: src/Classes/AjaxHandler.php:63
|
1746 |
msgid "Password Reset"
|
1747 |
msgstr ""
|
@@ -1774,288 +1774,288 @@ msgstr ""
|
|
1774 |
msgid "Add New"
|
1775 |
msgstr ""
|
1776 |
|
1777 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1778 |
msgid "My Account edit profile form (default)"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1782 |
msgid "Global"
|
1783 |
msgstr ""
|
1784 |
|
1785 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1786 |
msgid "Global Settings"
|
1787 |
msgstr ""
|
1788 |
|
1789 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1790 |
msgid "Password-reset Page"
|
1791 |
msgstr ""
|
1792 |
|
1793 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1794 |
msgid ""
|
1795 |
"Select the page you wish to make WordPress default \"Lost Password page\". "
|
1796 |
"%3$s This should be the page that contains a %1$spassword reset form "
|
1797 |
"shortcode%2$s."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1801 |
msgid "Login Page"
|
1802 |
msgstr ""
|
1803 |
|
1804 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1805 |
msgid ""
|
1806 |
"Select the page you wish to make WordPress default Login page. %3$s This "
|
1807 |
"should be the page that contains a %1$slogin form shortcode%2$s."
|
1808 |
msgstr ""
|
1809 |
|
1810 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1811 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1812 |
msgid "Registration Page"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1816 |
msgid ""
|
1817 |
"Select the page you wish to make WordPress default Registration page. %3$s "
|
1818 |
"This should be the page that contains a %1$sregistration form shortcode%2$s."
|
1819 |
msgstr ""
|
1820 |
|
1821 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1822 |
msgid "My Account Page"
|
1823 |
msgstr ""
|
1824 |
|
1825 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1826 |
msgid ""
|
1827 |
"Select a page that contains %3$s shortcode. You can also use an %1$sedit "
|
1828 |
"profile shortcode%2$s on the My Account page in case you want something "
|
1829 |
"custom."
|
1830 |
msgstr ""
|
1831 |
|
1832 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1833 |
msgid "Disable Ajax Mode"
|
1834 |
msgstr ""
|
1835 |
|
1836 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1837 |
msgid "Disable"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1841 |
msgid ""
|
1842 |
"Check this box to disable ajax behaviour(whereby forms do not require page "
|
1843 |
"reload when submitted) in forms."
|
1844 |
msgstr ""
|
1845 |
|
1846 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1847 |
msgid "Remove Data on Uninstall?"
|
1848 |
msgstr ""
|
1849 |
|
1850 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1851 |
msgid ""
|
1852 |
"Check this box if you would like ProfilePress to completely remove all of "
|
1853 |
"its data when the plugin is deleted."
|
1854 |
msgstr ""
|
1855 |
|
1856 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1857 |
msgid "Auto-login after registration"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1861 |
msgid "Enable auto-login"
|
1862 |
msgstr ""
|
1863 |
|
1864 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1865 |
msgid ""
|
1866 |
"Check this option to automatically login users after successful registration."
|
1867 |
msgstr ""
|
1868 |
|
1869 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1870 |
msgid "Email Address and Username (default)"
|
1871 |
msgstr ""
|
1872 |
|
1873 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1874 |
msgid "Email Address Only"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1878 |
msgid "Username Only"
|
1879 |
msgstr ""
|
1880 |
|
1881 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1882 |
msgid "Login with Email or Username"
|
1883 |
msgstr ""
|
1884 |
|
1885 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1886 |
msgid ""
|
1887 |
"By default, WordPress allows users to log in using either an email address "
|
1888 |
"or username. This setting allows you to restrict logins to only accept email "
|
1889 |
"addresses or usernames."
|
1890 |
msgstr ""
|
1891 |
|
1892 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1893 |
#: src/RegisterActivation/Base.php:167
|
1894 |
msgid "My Account"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1898 |
msgid "My Account Settings"
|
1899 |
msgstr ""
|
1900 |
|
1901 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1902 |
msgid "Redirect Default Edit Profile"
|
1903 |
msgstr ""
|
1904 |
|
1905 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1906 |
#: src/ContentProtection/WPListTable.php:93
|
1907 |
#: src/Functions/custom-settings-api.php:1007
|
1908 |
msgid "Activate"
|
1909 |
msgstr ""
|
1910 |
|
1911 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1912 |
msgid ""
|
1913 |
"Redirect <a target=\"_blank\" href=\"%s\">default WordPress profile</a> to "
|
1914 |
"My Account page."
|
1915 |
msgstr ""
|
1916 |
|
1917 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1918 |
msgid "Edit Account Endpoint"
|
1919 |
msgstr ""
|
1920 |
|
1921 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1922 |
msgid "Endpoint for the \"My Account → Account Details\" page."
|
1923 |
msgstr ""
|
1924 |
|
1925 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1926 |
msgid "Change Password Endpoint"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1930 |
msgid "Endpoint for the \"My Account → Change Password\" page."
|
1931 |
msgstr ""
|
1932 |
|
1933 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1934 |
msgid "Account Details Form"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1938 |
msgid ""
|
1939 |
"Do you want to replace the default form in \"My Account → Account Details\" "
|
1940 |
"page? select an Edit Profile form that will replace it."
|
1941 |
msgstr ""
|
1942 |
|
1943 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1944 |
msgid "Frontend Profile"
|
1945 |
msgstr ""
|
1946 |
|
1947 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1948 |
msgid "Frontend Profile Settings"
|
1949 |
msgstr ""
|
1950 |
|
1951 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1952 |
msgid "Page with Profile Shortcode"
|
1953 |
msgstr ""
|
1954 |
|
1955 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1956 |
msgid ""
|
1957 |
"Select the page that contains your <a href=\"%s\">Frontend user profile "
|
1958 |
"shortcode</a>."
|
1959 |
msgstr ""
|
1960 |
|
1961 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1962 |
msgid "Profile Slug"
|
1963 |
msgstr ""
|
1964 |
|
1965 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1966 |
msgid ""
|
1967 |
"Enter your preferred profile URL slug. Default to \"profile\" if empty. If "
|
1968 |
"slug is \"profile\", URL becomes %s where \"john\" is a user's username."
|
1969 |
msgstr ""
|
1970 |
|
1971 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1972 |
msgid "Disable Guests from Viewing Profiles"
|
1973 |
msgstr ""
|
1974 |
|
1975 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1976 |
msgid ""
|
1977 |
"Enable this option to stop disable guests or non-registered users from "
|
1978 |
"viewing users profiles."
|
1979 |
msgstr ""
|
1980 |
|
1981 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1982 |
msgid "Disable Members from Viewing Profiles"
|
1983 |
msgstr ""
|
1984 |
|
1985 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1986 |
msgid ""
|
1987 |
"Enable this option to stop members from viewing other users profiles. If "
|
1988 |
"enabled, users can only see their own profile."
|
1989 |
msgstr ""
|
1990 |
|
1991 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1992 |
msgid "Comment Author URL to Profile"
|
1993 |
msgstr ""
|
1994 |
|
1995 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1996 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
1997 |
msgid "Enable option"
|
1998 |
msgstr ""
|
1999 |
|
2000 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2001 |
msgid "Change URL of comment authors to their ProfilePress front-end profile."
|
2002 |
msgstr ""
|
2003 |
|
2004 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2005 |
msgid "Authors Page to Profile"
|
2006 |
msgstr ""
|
2007 |
|
2008 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2009 |
msgid "Change and redirect authors pages %s to their front-end profiles %s."
|
2010 |
msgstr ""
|
2011 |
|
2012 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2013 |
msgid "Redirection"
|
2014 |
msgstr ""
|
2015 |
|
2016 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2017 |
msgid "Redirection Settings"
|
2018 |
msgstr ""
|
2019 |
|
2020 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2021 |
#: src/Widgets/TabbedWidget.php:214
|
2022 |
msgid "Log out"
|
2023 |
msgstr ""
|
2024 |
|
2025 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2026 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2027 |
msgid "Currently viewed page"
|
2028 |
msgstr ""
|
2029 |
|
2030 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2031 |
msgid ""
|
2032 |
"Select the page users will be redirected to after logout. To redirect to a "
|
2033 |
"custom URL instead of a selected page, enter the URL in input field directly "
|
2034 |
"above this description."
|
2035 |
msgstr ""
|
2036 |
|
2037 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2038 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2039 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2040 |
msgid "Leave the \"custom URL\" field empty to fallback to the selected page."
|
2041 |
msgstr ""
|
2042 |
|
2043 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2044 |
msgid "WordPress Dashboard"
|
2045 |
msgstr ""
|
2046 |
|
2047 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2048 |
msgid ""
|
2049 |
"Select the page or custom URL users will be redirected to after login. To "
|
2050 |
"redirect to a custom URL instead of a selected page, enter the URL in input "
|
2051 |
"field directly above this description"
|
2052 |
msgstr ""
|
2053 |
|
2054 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2055 |
msgid "Default.."
|
2056 |
msgstr ""
|
2057 |
|
2058 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2059 |
msgid ""
|
2060 |
"Select the page or custom URL users will be redirected to after they "
|
2061 |
"successfully reset or change their password. To redirect to a custom URL "
|
@@ -2063,123 +2063,123 @@ msgid ""
|
|
2063 |
"description."
|
2064 |
msgstr ""
|
2065 |
|
2066 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2067 |
#: src/ContentProtection/WPListTable.php:30
|
2068 |
msgid "Access"
|
2069 |
msgstr ""
|
2070 |
|
2071 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2072 |
msgid "Access Settings"
|
2073 |
msgstr ""
|
2074 |
|
2075 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2076 |
msgid ""
|
2077 |
"%sNote:%s Access setting takes precedence over %sContent Protection rules%s."
|
2078 |
msgstr ""
|
2079 |
|
2080 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2081 |
msgid "Global Site Access"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2085 |
msgid "Accessible to Everyone"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2089 |
msgid "Accessible to Logged-in Users"
|
2090 |
msgstr ""
|
2091 |
|
2092 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2093 |
msgid "Redirect Page"
|
2094 |
msgstr ""
|
2095 |
|
2096 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2097 |
msgid ""
|
2098 |
"Select the page or custom URL to redirect users that are not logged in to."
|
2099 |
msgstr ""
|
2100 |
|
2101 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2102 |
msgid "Pages to Exclude"
|
2103 |
msgstr ""
|
2104 |
|
2105 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2106 |
msgid ""
|
2107 |
"Select the pages to exclude beside the redirect page that will be accessible "
|
2108 |
"by everyone."
|
2109 |
msgstr ""
|
2110 |
|
2111 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2112 |
msgid "Accessible Homepage"
|
2113 |
msgstr ""
|
2114 |
|
2115 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2116 |
msgid "Check to allow homepage to be accessible by everyone."
|
2117 |
msgstr ""
|
2118 |
|
2119 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2120 |
#: src/ContentProtection/Frontend/PostContent.php:62
|
2121 |
msgid "You are unauthorized to view this page."
|
2122 |
msgstr ""
|
2123 |
|
2124 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2125 |
msgid "Global Restricted Access Message"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2129 |
msgid ""
|
2130 |
"This is the message shown to users that do not have permission to view the "
|
2131 |
"content."
|
2132 |
msgstr ""
|
2133 |
|
2134 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2135 |
msgid "BuddyPress"
|
2136 |
msgstr ""
|
2137 |
|
2138 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2139 |
msgid "BuddyPress Settings"
|
2140 |
msgstr ""
|
2141 |
|
2142 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2143 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2144 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2145 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2146 |
msgid "Check to enable"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2150 |
msgid "Check to redirect BuddyPress registration page to your selected %s"
|
2151 |
msgstr ""
|
2152 |
|
2153 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2154 |
msgid "Override Avatar"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2158 |
msgid ""
|
2159 |
"Check to override BuddyPress users uploaded avatars with that of "
|
2160 |
"ProfilePress."
|
2161 |
msgstr ""
|
2162 |
|
2163 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2164 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2165 |
msgid "Override Profile URL"
|
2166 |
msgstr ""
|
2167 |
|
2168 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2169 |
msgid ""
|
2170 |
"Check to change the profile URL of BuddyPress users to ProfilePress front-"
|
2171 |
"end profile."
|
2172 |
msgstr ""
|
2173 |
|
2174 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2175 |
msgid "bbPress"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2179 |
msgid "bbPress Settings"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
-
#: src/Admin/SettingsPages/GeneralSettings.php:
|
2183 |
msgid "Check to change bbPress profile URL to ProfilePress front-end profile."
|
2184 |
msgstr ""
|
2185 |
|
@@ -2863,33 +2863,33 @@ msgstr ""
|
|
2863 |
msgid "Log in"
|
2864 |
msgstr ""
|
2865 |
|
2866 |
-
#: src/Classes/RegistrationAuth.php:
|
2867 |
msgid "%s field is required"
|
2868 |
msgstr ""
|
2869 |
|
2870 |
-
#: src/Classes/RegistrationAuth.php:
|
2871 |
msgid ""
|
2872 |
"<strong>ERROR</strong>: This username is invalid because it uses illegal "
|
2873 |
"characters. Please enter a valid username."
|
2874 |
msgstr ""
|
2875 |
|
2876 |
-
#: src/Classes/RegistrationAuth.php:
|
2877 |
msgid "Email address is not valid"
|
2878 |
msgstr ""
|
2879 |
|
2880 |
-
#: src/Classes/RegistrationAuth.php:
|
2881 |
msgid "Passwords do not match"
|
2882 |
msgstr ""
|
2883 |
|
2884 |
-
#: src/Classes/RegistrationAuth.php:
|
2885 |
msgid "Email addresses do not match"
|
2886 |
msgstr ""
|
2887 |
|
2888 |
-
#: src/Classes/RegistrationAuth.php:
|
2889 |
msgid "Password is not strong"
|
2890 |
msgstr ""
|
2891 |
|
2892 |
-
#: src/Classes/RegistrationAuth.php:
|
2893 |
#: src/Themes/DragDrop/AbstractTheme.php:110
|
2894 |
msgid "Registration successful."
|
2895 |
msgstr ""
|
@@ -5419,9 +5419,9 @@ msgstr ""
|
|
5419 |
msgid "ProfilePress"
|
5420 |
msgstr ""
|
5421 |
|
5422 |
-
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.
|
5423 |
#. Plugin URI of the plugin/theme
|
5424 |
-
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.
|
5425 |
#. Author URI of the plugin/theme
|
5426 |
msgid "https://profilepress.net"
|
5427 |
msgstr ""
|
2 |
# This file is distributed under the same license as the ProfilePress package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: ProfilePress 3.1.8\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-user-avatar\n"
|
7 |
+
"POT-Creation-Date: 2021-06-23 12:57:31+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
403 |
|
404 |
#: src/Admin/SettingsPages/AbstractSettingsPage.php:55
|
405 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:87
|
406 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:380
|
407 |
#: src/ShortcodeParser/MyAccount/edit-profile.tmpl.php:28
|
408 |
msgid "General"
|
409 |
msgstr ""
|
451 |
#: src/Admin/SettingsPages/AbstractSettingsPage.php:147
|
452 |
#: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:162
|
453 |
#: src/Admin/SettingsPages/DragDropBuilder/Metabox.php:223
|
454 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:236
|
455 |
#: src/Functions/GlobalFunctions.php:1236
|
456 |
#: src/Functions/GlobalFunctions.php:1264
|
457 |
#: src/Functions/GlobalFunctions.php:1286
|
609 |
msgstr ""
|
610 |
|
611 |
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1369
|
612 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:122
|
613 |
msgid "Registration Settings"
|
614 |
msgstr ""
|
615 |
|
627 |
msgstr ""
|
628 |
|
629 |
#: src/Admin/SettingsPages/DragDropBuilder/DragDropBuilder.php:1416
|
630 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:136
|
631 |
msgid "Login Settings"
|
632 |
msgstr ""
|
633 |
|
686 |
|
687 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:89
|
688 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:232
|
689 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:28
|
690 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:29
|
691 |
#: src/Classes/Miscellaneous.php:17
|
692 |
msgid "Settings"
|
693 |
msgstr ""
|
707 |
#: src/Admin/SettingsPages/DragDropBuilder/FieldBase.php:235
|
708 |
#: src/Admin/SettingsPages/FormList.php:239
|
709 |
#: src/Admin/SettingsPages/FormList.php:315
|
710 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:113
|
711 |
#: src/ContentProtection/WPListTable.php:96
|
712 |
#: src/ContentProtection/WPListTable.php:291
|
713 |
#: src/ContentProtection/views/include.view-sidebar.php:12
|
1569 |
msgid "Customize Default Template"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:212
|
1573 |
msgid "Preview Email"
|
1574 |
msgstr ""
|
1575 |
|
1576 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:233
|
1577 |
msgid "Enable Notification"
|
1578 |
msgstr ""
|
1579 |
|
1580 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:234
|
1581 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:320
|
1582 |
msgid "Enable"
|
1583 |
msgstr ""
|
1584 |
|
1585 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:237
|
1586 |
msgid "Check to enable this email notification."
|
1587 |
msgstr ""
|
1588 |
|
1589 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:242
|
1590 |
msgid "Subject Line"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:243
|
1594 |
msgid "Enter the subject or title for the welcome message email."
|
1595 |
msgstr ""
|
1596 |
|
1597 |
+
#: src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php:248
|
1598 |
msgid "Message Body"
|
1599 |
msgstr ""
|
1600 |
|
1725 |
msgstr ""
|
1726 |
|
1727 |
#: src/Admin/SettingsPages/Forms.php:99
|
1728 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:133
|
1729 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:248
|
1730 |
#: src/Classes/AjaxHandler.php:53 src/NavigationMenuLinks/Backend.php:34
|
1731 |
#: src/ShortcodeParser/Builder/GlobalShortcodes.php:235
|
1732 |
#: src/Themes/DragDrop/AbstractBuildScratch.php:180
|
1735 |
msgstr ""
|
1736 |
|
1737 |
#: src/Admin/SettingsPages/Forms.php:104
|
1738 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:119
|
1739 |
#: src/Classes/AjaxHandler.php:58
|
1740 |
msgid "Registration"
|
1741 |
msgstr ""
|
1742 |
|
1743 |
#: src/Admin/SettingsPages/Forms.php:110
|
1744 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:265
|
1745 |
#: src/Classes/AjaxHandler.php:63
|
1746 |
msgid "Password Reset"
|
1747 |
msgstr ""
|
1774 |
msgid "Add New"
|
1775 |
msgstr ""
|
1776 |
|
1777 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:62
|
1778 |
msgid "My Account edit profile form (default)"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:66
|
1782 |
msgid "Global"
|
1783 |
msgstr ""
|
1784 |
|
1785 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:69
|
1786 |
msgid "Global Settings"
|
1787 |
msgstr ""
|
1788 |
|
1789 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:72
|
1790 |
msgid "Password-reset Page"
|
1791 |
msgstr ""
|
1792 |
|
1793 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:75
|
1794 |
msgid ""
|
1795 |
"Select the page you wish to make WordPress default \"Lost Password page\". "
|
1796 |
"%3$s This should be the page that contains a %1$spassword reset form "
|
1797 |
"shortcode%2$s."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:80
|
1801 |
msgid "Login Page"
|
1802 |
msgstr ""
|
1803 |
|
1804 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:83
|
1805 |
msgid ""
|
1806 |
"Select the page you wish to make WordPress default Login page. %3$s This "
|
1807 |
"should be the page that contains a %1$slogin form shortcode%2$s."
|
1808 |
msgstr ""
|
1809 |
|
1810 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:88
|
1811 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:341
|
1812 |
msgid "Registration Page"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:91
|
1816 |
msgid ""
|
1817 |
"Select the page you wish to make WordPress default Registration page. %3$s "
|
1818 |
"This should be the page that contains a %1$sregistration form shortcode%2$s."
|
1819 |
msgstr ""
|
1820 |
|
1821 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:96
|
1822 |
msgid "My Account Page"
|
1823 |
msgstr ""
|
1824 |
|
1825 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:99
|
1826 |
msgid ""
|
1827 |
"Select a page that contains %3$s shortcode. You can also use an %1$sedit "
|
1828 |
"profile shortcode%2$s on the My Account page in case you want something "
|
1829 |
"custom."
|
1830 |
msgstr ""
|
1831 |
|
1832 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:104
|
1833 |
msgid "Disable Ajax Mode"
|
1834 |
msgstr ""
|
1835 |
|
1836 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:106
|
1837 |
msgid "Disable"
|
1838 |
msgstr ""
|
1839 |
|
1840 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:107
|
1841 |
msgid ""
|
1842 |
"Check this box to disable ajax behaviour(whereby forms do not require page "
|
1843 |
"reload when submitted) in forms."
|
1844 |
msgstr ""
|
1845 |
|
1846 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:112
|
1847 |
msgid "Remove Data on Uninstall?"
|
1848 |
msgstr ""
|
1849 |
|
1850 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:114
|
1851 |
msgid ""
|
1852 |
"Check this box if you would like ProfilePress to completely remove all of "
|
1853 |
"its data when the plugin is deleted."
|
1854 |
msgstr ""
|
1855 |
|
1856 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:125
|
1857 |
msgid "Auto-login after registration"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:126
|
1861 |
msgid "Enable auto-login"
|
1862 |
msgstr ""
|
1863 |
|
1864 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:128
|
1865 |
msgid ""
|
1866 |
"Check this option to automatically login users after successful registration."
|
1867 |
msgstr ""
|
1868 |
|
1869 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:140
|
1870 |
msgid "Email Address and Username (default)"
|
1871 |
msgstr ""
|
1872 |
|
1873 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:141
|
1874 |
msgid "Email Address Only"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:142
|
1878 |
msgid "Username Only"
|
1879 |
msgstr ""
|
1880 |
|
1881 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:145
|
1882 |
msgid "Login with Email or Username"
|
1883 |
msgstr ""
|
1884 |
|
1885 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:146
|
1886 |
msgid ""
|
1887 |
"By default, WordPress allows users to log in using either an email address "
|
1888 |
"or username. This setting allows you to restrict logins to only accept email "
|
1889 |
"addresses or usernames."
|
1890 |
msgstr ""
|
1891 |
|
1892 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:151
|
1893 |
#: src/RegisterActivation/Base.php:167
|
1894 |
msgid "My Account"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:152
|
1898 |
msgid "My Account Settings"
|
1899 |
msgstr ""
|
1900 |
|
1901 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:156
|
1902 |
msgid "Redirect Default Edit Profile"
|
1903 |
msgstr ""
|
1904 |
|
1905 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:157
|
1906 |
#: src/ContentProtection/WPListTable.php:93
|
1907 |
#: src/Functions/custom-settings-api.php:1007
|
1908 |
msgid "Activate"
|
1909 |
msgstr ""
|
1910 |
|
1911 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:160
|
1912 |
msgid ""
|
1913 |
"Redirect <a target=\"_blank\" href=\"%s\">default WordPress profile</a> to "
|
1914 |
"My Account page."
|
1915 |
msgstr ""
|
1916 |
|
1917 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:167
|
1918 |
msgid "Edit Account Endpoint"
|
1919 |
msgstr ""
|
1920 |
|
1921 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:168
|
1922 |
msgid "Endpoint for the \"My Account → Account Details\" page."
|
1923 |
msgstr ""
|
1924 |
|
1925 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:173
|
1926 |
msgid "Change Password Endpoint"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:174
|
1930 |
msgid "Endpoint for the \"My Account → Change Password\" page."
|
1931 |
msgstr ""
|
1932 |
|
1933 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:179
|
1934 |
msgid "Account Details Form"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:180
|
1938 |
msgid ""
|
1939 |
"Do you want to replace the default form in \"My Account → Account Details\" "
|
1940 |
"page? select an Edit Profile form that will replace it."
|
1941 |
msgstr ""
|
1942 |
|
1943 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:184
|
1944 |
msgid "Frontend Profile"
|
1945 |
msgstr ""
|
1946 |
|
1947 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:185
|
1948 |
msgid "Frontend Profile Settings"
|
1949 |
msgstr ""
|
1950 |
|
1951 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:189
|
1952 |
msgid "Page with Profile Shortcode"
|
1953 |
msgstr ""
|
1954 |
|
1955 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:191
|
1956 |
msgid ""
|
1957 |
"Select the page that contains your <a href=\"%s\">Frontend user profile "
|
1958 |
"shortcode</a>."
|
1959 |
msgstr ""
|
1960 |
|
1961 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:196
|
1962 |
msgid "Profile Slug"
|
1963 |
msgstr ""
|
1964 |
|
1965 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:197
|
1966 |
msgid ""
|
1967 |
"Enter your preferred profile URL slug. Default to \"profile\" if empty. If "
|
1968 |
"slug is \"profile\", URL becomes %s where \"john\" is a user's username."
|
1969 |
msgstr ""
|
1970 |
|
1971 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:201
|
1972 |
msgid "Disable Guests from Viewing Profiles"
|
1973 |
msgstr ""
|
1974 |
|
1975 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:202
|
1976 |
msgid ""
|
1977 |
"Enable this option to stop disable guests or non-registered users from "
|
1978 |
"viewing users profiles."
|
1979 |
msgstr ""
|
1980 |
|
1981 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:207
|
1982 |
msgid "Disable Members from Viewing Profiles"
|
1983 |
msgstr ""
|
1984 |
|
1985 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:208
|
1986 |
msgid ""
|
1987 |
"Enable this option to stop members from viewing other users profiles. If "
|
1988 |
"enabled, users can only see their own profile."
|
1989 |
msgstr ""
|
1990 |
|
1991 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:213
|
1992 |
msgid "Comment Author URL to Profile"
|
1993 |
msgstr ""
|
1994 |
|
1995 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:214
|
1996 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:221
|
1997 |
msgid "Enable option"
|
1998 |
msgstr ""
|
1999 |
|
2000 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:216
|
2001 |
msgid "Change URL of comment authors to their ProfilePress front-end profile."
|
2002 |
msgstr ""
|
2003 |
|
2004 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:220
|
2005 |
msgid "Authors Page to Profile"
|
2006 |
msgstr ""
|
2007 |
|
2008 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:223
|
2009 |
msgid "Change and redirect authors pages %s to their front-end profiles %s."
|
2010 |
msgstr ""
|
2011 |
|
2012 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:228
|
2013 |
msgid "Redirection"
|
2014 |
msgstr ""
|
2015 |
|
2016 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:229
|
2017 |
msgid "Redirection Settings"
|
2018 |
msgstr ""
|
2019 |
|
2020 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:233
|
2021 |
#: src/Widgets/TabbedWidget.php:214
|
2022 |
msgid "Log out"
|
2023 |
msgstr ""
|
2024 |
|
2025 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:237
|
2026 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:252
|
2027 |
msgid "Currently viewed page"
|
2028 |
msgstr ""
|
2029 |
|
2030 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:241
|
2031 |
msgid ""
|
2032 |
"Select the page users will be redirected to after logout. To redirect to a "
|
2033 |
"custom URL instead of a selected page, enter the URL in input field directly "
|
2034 |
"above this description."
|
2035 |
msgstr ""
|
2036 |
|
2037 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:242
|
2038 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:259
|
2039 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:276
|
2040 |
msgid "Leave the \"custom URL\" field empty to fallback to the selected page."
|
2041 |
msgstr ""
|
2042 |
|
2043 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:253
|
2044 |
msgid "WordPress Dashboard"
|
2045 |
msgstr ""
|
2046 |
|
2047 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:258
|
2048 |
msgid ""
|
2049 |
"Select the page or custom URL users will be redirected to after login. To "
|
2050 |
"redirect to a custom URL instead of a selected page, enter the URL in input "
|
2051 |
"field directly above this description"
|
2052 |
msgstr ""
|
2053 |
|
2054 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:270
|
2055 |
msgid "Default.."
|
2056 |
msgstr ""
|
2057 |
|
2058 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:275
|
2059 |
msgid ""
|
2060 |
"Select the page or custom URL users will be redirected to after they "
|
2061 |
"successfully reset or change their password. To redirect to a custom URL "
|
2063 |
"description."
|
2064 |
msgstr ""
|
2065 |
|
2066 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:282
|
2067 |
#: src/ContentProtection/WPListTable.php:30
|
2068 |
msgid "Access"
|
2069 |
msgstr ""
|
2070 |
|
2071 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:283
|
2072 |
msgid "Access Settings"
|
2073 |
msgstr ""
|
2074 |
|
2075 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:289
|
2076 |
msgid ""
|
2077 |
"%sNote:%s Access setting takes precedence over %sContent Protection rules%s."
|
2078 |
msgstr ""
|
2079 |
|
2080 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:295
|
2081 |
msgid "Global Site Access"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:297
|
2085 |
msgid "Accessible to Everyone"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:298
|
2089 |
msgid "Accessible to Logged-in Users"
|
2090 |
msgstr ""
|
2091 |
|
2092 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:303
|
2093 |
msgid "Redirect Page"
|
2094 |
msgstr ""
|
2095 |
|
2096 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:305
|
2097 |
msgid ""
|
2098 |
"Select the page or custom URL to redirect users that are not logged in to."
|
2099 |
msgstr ""
|
2100 |
|
2101 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:309
|
2102 |
msgid "Pages to Exclude"
|
2103 |
msgstr ""
|
2104 |
|
2105 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:315
|
2106 |
msgid ""
|
2107 |
"Select the pages to exclude beside the redirect page that will be accessible "
|
2108 |
"by everyone."
|
2109 |
msgstr ""
|
2110 |
|
2111 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:321
|
2112 |
msgid "Accessible Homepage"
|
2113 |
msgstr ""
|
2114 |
|
2115 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:322
|
2116 |
msgid "Check to allow homepage to be accessible by everyone."
|
2117 |
msgstr ""
|
2118 |
|
2119 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:326
|
2120 |
#: src/ContentProtection/Frontend/PostContent.php:62
|
2121 |
msgid "You are unauthorized to view this page."
|
2122 |
msgstr ""
|
2123 |
|
2124 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:327
|
2125 |
msgid "Global Restricted Access Message"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:328
|
2129 |
msgid ""
|
2130 |
"This is the message shown to users that do not have permission to view the "
|
2131 |
"content."
|
2132 |
msgstr ""
|
2133 |
|
2134 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:335
|
2135 |
msgid "BuddyPress"
|
2136 |
msgstr ""
|
2137 |
|
2138 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:336
|
2139 |
msgid "BuddyPress Settings"
|
2140 |
msgstr ""
|
2141 |
|
2142 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:342
|
2143 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:349
|
2144 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:356
|
2145 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:372
|
2146 |
msgid "Check to enable"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:343
|
2150 |
msgid "Check to redirect BuddyPress registration page to your selected %s"
|
2151 |
msgstr ""
|
2152 |
|
2153 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:347
|
2154 |
msgid "Override Avatar"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:350
|
2158 |
msgid ""
|
2159 |
"Check to override BuddyPress users uploaded avatars with that of "
|
2160 |
"ProfilePress."
|
2161 |
msgstr ""
|
2162 |
|
2163 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:355
|
2164 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:371
|
2165 |
msgid "Override Profile URL"
|
2166 |
msgstr ""
|
2167 |
|
2168 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:357
|
2169 |
msgid ""
|
2170 |
"Check to change the profile URL of BuddyPress users to ProfilePress front-"
|
2171 |
"end profile."
|
2172 |
msgstr ""
|
2173 |
|
2174 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:365
|
2175 |
msgid "bbPress"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:366
|
2179 |
msgid "bbPress Settings"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
+
#: src/Admin/SettingsPages/GeneralSettings.php:373
|
2183 |
msgid "Check to change bbPress profile URL to ProfilePress front-end profile."
|
2184 |
msgstr ""
|
2185 |
|
2863 |
msgid "Log in"
|
2864 |
msgstr ""
|
2865 |
|
2866 |
+
#: src/Classes/RegistrationAuth.php:213
|
2867 |
msgid "%s field is required"
|
2868 |
msgstr ""
|
2869 |
|
2870 |
+
#: src/Classes/RegistrationAuth.php:222
|
2871 |
msgid ""
|
2872 |
"<strong>ERROR</strong>: This username is invalid because it uses illegal "
|
2873 |
"characters. Please enter a valid username."
|
2874 |
msgstr ""
|
2875 |
|
2876 |
+
#: src/Classes/RegistrationAuth.php:226
|
2877 |
msgid "Email address is not valid"
|
2878 |
msgstr ""
|
2879 |
|
2880 |
+
#: src/Classes/RegistrationAuth.php:230
|
2881 |
msgid "Passwords do not match"
|
2882 |
msgstr ""
|
2883 |
|
2884 |
+
#: src/Classes/RegistrationAuth.php:234
|
2885 |
msgid "Email addresses do not match"
|
2886 |
msgstr ""
|
2887 |
|
2888 |
+
#: src/Classes/RegistrationAuth.php:238
|
2889 |
msgid "Password is not strong"
|
2890 |
msgstr ""
|
2891 |
|
2892 |
+
#: src/Classes/RegistrationAuth.php:404
|
2893 |
#: src/Themes/DragDrop/AbstractTheme.php:110
|
2894 |
msgid "Registration successful."
|
2895 |
msgstr ""
|
5419 |
msgid "ProfilePress"
|
5420 |
msgstr ""
|
5421 |
|
5422 |
+
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.8) #-#-#-#-#
|
5423 |
#. Plugin URI of the plugin/theme
|
5424 |
+
#. #-#-#-#-# wp-user-avatar.pot (ProfilePress 3.1.8) #-#-#-#-#
|
5425 |
#. Author URI of the plugin/theme
|
5426 |
msgid "https://profilepress.net"
|
5427 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: user registration, user profile, registration form, membership, login form
|
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.7
|
8 |
-
Stable tag: 3.1.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
|
@@ -109,14 +109,22 @@ No. You can create and manage your forms, user profiles and member directories w
|
|
109 |
3. User Registration Form
|
110 |
4. Custom Login Form
|
111 |
5. Drag and Drop Form builder
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
= 3.1.7 =
|
121 |
* Enhancement: JS scripts are now conditionally loaded.
|
122 |
* Fixed display issue in perfecto lite themes.
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.7
|
8 |
+
Stable tag: 3.1.8
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Modern membership plugin for user registration, login form, user profile, member directories & content restriction.
|
109 |
3. User Registration Form
|
110 |
4. Custom Login Form
|
111 |
5. Drag and Drop Form builder
|
112 |
+
6. Email Customizer and Settings
|
113 |
+
7. My Account Page
|
114 |
+
8. Content Protection
|
115 |
+
9. WP User Avatar and Cover Image Settings
|
116 |
+
10. Admin Bar and Dashboard Access
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= 3.1.8 =
|
121 |
+
* Fixed issue with global site access not correctly working.
|
122 |
+
* Added success color to registration form notice.
|
123 |
+
* Fixed bug admin bar control wasn't working.
|
124 |
+
* Fixed bug where specifying custom roles for registration forms didn't work.
|
125 |
+
* Improved sanitization and escaping of data in settings pages.
|
126 |
+
* Auto paragraphed form custom messages.
|
127 |
+
|
128 |
= 3.1.7 =
|
129 |
* Enhancement: JS scripts are now conditionally loaded.
|
130 |
* Fixed display issue in perfecto lite themes.
|
src/Admin/SettingsPages/EmailSettings/CustomizerTrait.php
CHANGED
@@ -78,6 +78,6 @@ trait CustomizerTrait
|
|
78 |
remove_action('customize_register', [\EGF_Customize_Manager::get_instance(), 'register_font_control_type']);
|
79 |
}
|
80 |
|
81 |
-
},
|
82 |
}
|
83 |
}
|
78 |
remove_action('customize_register', [\EGF_Customize_Manager::get_instance(), 'register_font_control_type']);
|
79 |
}
|
80 |
|
81 |
+
}, 999999999);
|
82 |
}
|
83 |
}
|
src/Admin/SettingsPages/EmailSettings/EmailSettingsPage.php
CHANGED
@@ -163,6 +163,7 @@ class EmailSettingsPage extends AbstractSettingsPage
|
|
163 |
];
|
164 |
|
165 |
if (isset($_GET['type'])) {
|
|
|
166 |
$key = sanitize_text_field($_GET['type']);
|
167 |
$data = wp_list_filter($this->email_notifications(), ['key' => $key]);
|
168 |
|
@@ -173,6 +174,16 @@ class EmailSettingsPage extends AbstractSettingsPage
|
|
173 |
exit;
|
174 |
}
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
$page_header = $data['title'];
|
177 |
|
178 |
$email_content_field_type = 'email_editor';
|
163 |
];
|
164 |
|
165 |
if (isset($_GET['type'])) {
|
166 |
+
|
167 |
$key = sanitize_text_field($_GET['type']);
|
168 |
$data = wp_list_filter($this->email_notifications(), ['key' => $key]);
|
169 |
|
174 |
exit;
|
175 |
}
|
176 |
|
177 |
+
|
178 |
+
add_filter('wp_cspa_sanitize_skip', function ($return, $fieldkey, $value) use ($key) {
|
179 |
+
if ($fieldkey == $key . '_email_content') {
|
180 |
+
return stripslashes($value);
|
181 |
+
}
|
182 |
+
|
183 |
+
return $return;
|
184 |
+
|
185 |
+
}, 10, 3);
|
186 |
+
|
187 |
$page_header = $data['title'];
|
188 |
|
189 |
$email_content_field_type = 'email_editor';
|
src/Admin/SettingsPages/GeneralSettings.php
CHANGED
@@ -17,6 +17,8 @@ class GeneralSettings extends AbstractSettingsPage
|
|
17 |
add_action('wp_cspa_persist_settings', function () {
|
18 |
flush_rewrite_rules();
|
19 |
});
|
|
|
|
|
20 |
}
|
21 |
|
22 |
public function register_settings_page()
|
@@ -381,6 +383,40 @@ class GeneralSettings extends AbstractSettingsPage
|
|
381 |
$instance->build_sidebar_tab_style();
|
382 |
}
|
383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
public static function get_instance()
|
385 |
{
|
386 |
static $instance = null;
|
17 |
add_action('wp_cspa_persist_settings', function () {
|
18 |
flush_rewrite_rules();
|
19 |
});
|
20 |
+
|
21 |
+
$this->custom_sanitize();
|
22 |
}
|
23 |
|
24 |
public function register_settings_page()
|
383 |
$instance->build_sidebar_tab_style();
|
384 |
}
|
385 |
|
386 |
+
public function custom_sanitize()
|
387 |
+
{
|
388 |
+
$config = apply_filters('ppress_settings_custom_sanitize', [
|
389 |
+
'global_restricted_access_message' => function ($val) {
|
390 |
+
return wp_kses_post($val);
|
391 |
+
},
|
392 |
+
'uec_unactivated_error' => function ($val) {
|
393 |
+
return wp_kses_post($val);
|
394 |
+
},
|
395 |
+
'uec_invalid_error' => function ($val) {
|
396 |
+
return wp_kses_post($val);
|
397 |
+
},
|
398 |
+
'uec_success_message' => function ($val) {
|
399 |
+
return wp_kses_post($val);
|
400 |
+
},
|
401 |
+
'uec_activation_resent' => function ($val) {
|
402 |
+
return wp_kses_post($val);
|
403 |
+
},
|
404 |
+
'uec_already_confirm_message' => function ($val) {
|
405 |
+
return wp_kses_post($val);
|
406 |
+
}
|
407 |
+
]);
|
408 |
+
|
409 |
+
foreach ($config as $fieldKey => $callback) {
|
410 |
+
add_filter('wp_cspa_sanitize_skip', function ($return, $key, $value) use ($fieldKey, $callback) {
|
411 |
+
if ($key == $fieldKey) {
|
412 |
+
return call_user_func($callback, $value);
|
413 |
+
}
|
414 |
+
|
415 |
+
return $return;
|
416 |
+
}, 10, 3);
|
417 |
+
}
|
418 |
+
}
|
419 |
+
|
420 |
public static function get_instance()
|
421 |
{
|
422 |
static $instance = null;
|
src/AdminBarDashboardAccess/Init.php
CHANGED
@@ -9,8 +9,8 @@ class Init extends AbstractSettingsPage
|
|
9 |
{
|
10 |
public function __construct()
|
11 |
{
|
12 |
-
add_filter('show_admin_bar', [$this, 'admin_bar_control'],
|
13 |
-
|
14 |
|
15 |
add_filter('ppress_settings_page_tabs', [$this, 'menu_tab']);
|
16 |
|
@@ -112,31 +112,39 @@ class Init extends AbstractSettingsPage
|
|
112 |
/**
|
113 |
* Callback to disable admin bar.
|
114 |
*
|
|
|
|
|
115 |
* @return bool
|
116 |
*/
|
117 |
-
public function admin_bar_control()
|
118 |
{
|
119 |
-
$
|
120 |
-
$current_user_roles = $current_user->roles;
|
121 |
|
122 |
-
|
123 |
-
|
124 |
|
125 |
-
|
126 |
-
// if value is true, $user_option will has a boolen true value or false otherwise.
|
127 |
-
$user_option = get_user_option('show_admin_bar_front', $current_user->ID) == 'true';
|
128 |
|
129 |
-
|
130 |
-
if ($is_admin_bar_disabled != 'yes') return $user_option;
|
131 |
|
132 |
-
|
|
|
133 |
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
-
|
|
|
|
|
|
|
138 |
|
139 |
-
return
|
140 |
}
|
141 |
|
142 |
/**
|
9 |
{
|
10 |
public function __construct()
|
11 |
{
|
12 |
+
add_filter('show_admin_bar', [$this, 'admin_bar_control'], PHP_INT_MAX - 1);
|
13 |
+
add_action('admin_init', [$this, 'dashboard_access_control'], 1);
|
14 |
|
15 |
add_filter('ppress_settings_page_tabs', [$this, 'menu_tab']);
|
16 |
|
112 |
/**
|
113 |
* Callback to disable admin bar.
|
114 |
*
|
115 |
+
* @param $show_admin_bar
|
116 |
+
*
|
117 |
* @return bool
|
118 |
*/
|
119 |
+
public function admin_bar_control($show_admin_bar)
|
120 |
{
|
121 |
+
$is_admin_bar_disabled = ppress_var($this->db_options(), 'disable_admin_bar', '', true);
|
|
|
122 |
|
123 |
+
// bail if the disable admin bar checkbox isn't checked.
|
124 |
+
if ($is_admin_bar_disabled != 'yes') return $show_admin_bar;
|
125 |
|
126 |
+
if (is_user_logged_in()) {
|
|
|
|
|
127 |
|
128 |
+
$disable_admin_bar_roles = ppress_var($this->db_options(), 'disable_admin_bar_roles', [], true);
|
|
|
129 |
|
130 |
+
$current_user = wp_get_current_user();
|
131 |
+
$current_user_roles = $current_user->roles;
|
132 |
|
133 |
+
// get current user's admin_bar_front preference
|
134 |
+
// if value is true, $user_option will has a boolen true value or false otherwise.
|
135 |
+
$user_option = (get_user_option('show_admin_bar_front', $current_user->ID) == 'true');
|
136 |
+
|
137 |
+
if (is_super_admin($current_user->ID)) return $user_option;
|
138 |
+
|
139 |
+
// if no role is selected, disable for everyone by return false.
|
140 |
+
if (empty($disable_admin_bar_roles)) return false;
|
141 |
|
142 |
+
$intersect = array_intersect($current_user_roles, $disable_admin_bar_roles);
|
143 |
+
|
144 |
+
return empty($intersect);
|
145 |
+
}
|
146 |
|
147 |
+
return false;
|
148 |
}
|
149 |
|
150 |
/**
|
src/Classes/GlobalSiteAccess.php
CHANGED
@@ -10,6 +10,20 @@ class GlobalSiteAccess
|
|
10 |
add_action('wp', array(__CLASS__, 'global_redirect'), -1);
|
11 |
}
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
public static function global_redirect()
|
14 |
{
|
15 |
if (is_admin()) return;
|
@@ -49,11 +63,7 @@ class GlobalSiteAccess
|
|
49 |
// skip all wp-login urls.
|
50 |
if (strpos($current_url, 'wp-login.php') !== false) return;
|
51 |
|
52 |
-
|
53 |
-
* Exclude the redirect URL.
|
54 |
-
* strtok() remove all query strings and trailing slash. @see https://stackoverflow.com/a/6975045/2648410
|
55 |
-
*/
|
56 |
-
if (strpos($current_url, untrailingslashit(strtok($redirect_url, '?'))) !== false) return;
|
57 |
|
58 |
if ($allow_homepage == 'yes' && is_front_page()) return;
|
59 |
|
10 |
add_action('wp', array(__CLASS__, 'global_redirect'), -1);
|
11 |
}
|
12 |
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Exclude the redirect URL.
|
16 |
+
* strtok() remove all query strings and trailing slash. @see https://stackoverflow.com/a/6975045/2648410
|
17 |
+
*
|
18 |
+
* @param $val
|
19 |
+
*
|
20 |
+
* @return string
|
21 |
+
*/
|
22 |
+
public static function remove_query_string_trailing_slash($val)
|
23 |
+
{
|
24 |
+
return untrailingslashit(strtok($val, '?'));
|
25 |
+
}
|
26 |
+
|
27 |
public static function global_redirect()
|
28 |
{
|
29 |
if (is_admin()) return;
|
63 |
// skip all wp-login urls.
|
64 |
if (strpos($current_url, 'wp-login.php') !== false) return;
|
65 |
|
66 |
+
if (self::remove_query_string_trailing_slash($current_url) == self::remove_query_string_trailing_slash($redirect_url)) return;
|
|
|
|
|
|
|
|
|
67 |
|
68 |
if ($allow_homepage == 'yes' && is_front_page()) return;
|
69 |
|
src/Classes/RegistrationAuth.php
CHANGED
@@ -191,8 +191,10 @@ class RegistrationAuth
|
|
191 |
$real_userdata['role'] = $role;
|
192 |
}
|
193 |
} else {
|
|
|
|
|
|
|
194 |
if ( ! empty($builder_role)) {
|
195 |
-
$builder_role = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::REGISTRATION_USER_ROLE);
|
196 |
// only set user role if the registration form has one set
|
197 |
// otherwise no role is set for the user thus wp_insert_user will use the default user role set in Settings > General
|
198 |
$real_userdata['role'] = $builder_role;
|
191 |
$real_userdata['role'] = $role;
|
192 |
}
|
193 |
} else {
|
194 |
+
|
195 |
+
$builder_role = FormRepository::get_form_meta($form_id, FormRepository::REGISTRATION_TYPE, FormRepository::REGISTRATION_USER_ROLE);
|
196 |
+
|
197 |
if ( ! empty($builder_role)) {
|
|
|
198 |
// only set user role if the registration form has one set
|
199 |
// otherwise no role is set for the user thus wp_insert_user will use the default user role set in Settings > General
|
200 |
$real_userdata['role'] = $builder_role;
|
src/Classes/UserAvatar.php
CHANGED
@@ -38,7 +38,7 @@ class UserAvatar
|
|
38 |
|
39 |
return $args;
|
40 |
|
41 |
-
},
|
42 |
|
43 |
add_filter('get_avatar', function ($avatar, $id_or_email, $size, $default, $alt, $args) {
|
44 |
|
@@ -61,7 +61,7 @@ class UserAvatar
|
|
61 |
|
62 |
return $avatar;
|
63 |
|
64 |
-
},
|
65 |
}
|
66 |
|
67 |
public static function user_has_pp_avatar($id_or_email)
|
38 |
|
39 |
return $args;
|
40 |
|
41 |
+
}, PHP_INT_MAX - 1, 2);
|
42 |
|
43 |
add_filter('get_avatar', function ($avatar, $id_or_email, $size, $default, $alt, $args) {
|
44 |
|
61 |
|
62 |
return $avatar;
|
63 |
|
64 |
+
}, PHP_INT_MAX - 1, 6);
|
65 |
}
|
66 |
|
67 |
public static function user_has_pp_avatar($id_or_email)
|
src/ContentProtection/Frontend/PostContent.php
CHANGED
@@ -10,7 +10,7 @@ class PostContent
|
|
10 |
{
|
11 |
public function __construct()
|
12 |
{
|
13 |
-
add_filter('the_content', [$this, 'the_content'],
|
14 |
}
|
15 |
|
16 |
public function the_content($content)
|
10 |
{
|
11 |
public function __construct()
|
12 |
{
|
13 |
+
add_filter('the_content', [$this, 'the_content'], PHP_INT_MAX - 1);
|
14 |
}
|
15 |
|
16 |
public function the_content($content)
|
src/Functions/custom-settings-api.php
CHANGED
@@ -218,15 +218,15 @@ class Custom_Settings_Page_Api
|
|
218 |
$sanitized_data = [];
|
219 |
foreach ($data as $key => $value) {
|
220 |
// skip sanitation. useful for fields that expects html
|
221 |
-
if (apply_filters('wp_cspa_sanitize_skip', false, $key, $value)) {
|
222 |
-
$sanitized_data[$key] = stripslashes($
|
223 |
continue;
|
224 |
}
|
225 |
|
226 |
if (is_array($data[$key])) {
|
227 |
$sanitized_data[$key] = self::sanitize_data($data[$key]);
|
228 |
} else {
|
229 |
-
$sanitized_data[$key] = stripslashes($data[$key]);
|
230 |
}
|
231 |
}
|
232 |
|
218 |
$sanitized_data = [];
|
219 |
foreach ($data as $key => $value) {
|
220 |
// skip sanitation. useful for fields that expects html
|
221 |
+
if (($cValue = apply_filters('wp_cspa_sanitize_skip', false, $key, $value))) {
|
222 |
+
$sanitized_data[$key] = stripslashes($cValue);
|
223 |
continue;
|
224 |
}
|
225 |
|
226 |
if (is_array($data[$key])) {
|
227 |
$sanitized_data[$key] = self::sanitize_data($data[$key]);
|
228 |
} else {
|
229 |
+
$sanitized_data[$key] = esc_html(stripslashes($data[$key]));
|
230 |
}
|
231 |
}
|
232 |
|
src/ShortcodeParser/FrontendProfileTag.php
CHANGED
@@ -16,8 +16,8 @@ class FrontendProfileTag
|
|
16 |
|
17 |
add_action('wp', array($this, 'set_up_detected_profile'));
|
18 |
|
19 |
-
add_filter('pre_get_document_title', array($this, 'rewrite_profile_title'),
|
20 |
-
add_filter('wp_title', array($this, 'rewrite_profile_title'),
|
21 |
}
|
22 |
|
23 |
/**
|
16 |
|
17 |
add_action('wp', array($this, 'set_up_detected_profile'));
|
18 |
|
19 |
+
add_filter('pre_get_document_title', array($this, 'rewrite_profile_title'), 999999999, 1);
|
20 |
+
add_filter('wp_title', array($this, 'rewrite_profile_title'), 999999999, 1);
|
21 |
}
|
22 |
|
23 |
/**
|
src/ShortcodeParser/MyAccount/MyAccountTag.php
CHANGED
@@ -54,14 +54,14 @@ class MyAccountTag extends FormProcessor
|
|
54 |
],
|
55 |
'edit-profile' => [
|
56 |
'title' => esc_html__('Account Details', 'wp-user-avatar'),
|
57 |
-
'endpoint' => ppress_settings_by_key('myac_edit_account_endpoint', 'edit-profile', true),
|
58 |
'priority' => 20,
|
59 |
'icon' => 'account_box',
|
60 |
'callback' => [__CLASS__, 'edit_profile_callback']
|
61 |
],
|
62 |
'change-password' => [
|
63 |
'title' => esc_html__('Change Password', 'wp-user-avatar'),
|
64 |
-
'endpoint' => ppress_settings_by_key('myac_change_password_endpoint', 'change-password', true),
|
65 |
'priority' => 30,
|
66 |
'icon' => 'vpn_key',
|
67 |
'callback' => [__CLASS__, 'change_password_callback']
|
@@ -77,7 +77,7 @@ class MyAccountTag extends FormProcessor
|
|
77 |
|
78 |
$tabs['email-notifications'] = [
|
79 |
'title' => esc_html__('Email Notifications', 'wp-user-avatar'),
|
80 |
-
'endpoint' => ppress_settings_by_key('myac_email_notifications_endpoint', 'email-notifications', true),
|
81 |
'priority' => 35,
|
82 |
'icon' => 'email',
|
83 |
'callback' => [__CLASS__, 'email_notification_callback']
|
54 |
],
|
55 |
'edit-profile' => [
|
56 |
'title' => esc_html__('Account Details', 'wp-user-avatar'),
|
57 |
+
'endpoint' => esc_html(ppress_settings_by_key('myac_edit_account_endpoint', 'edit-profile', true)),
|
58 |
'priority' => 20,
|
59 |
'icon' => 'account_box',
|
60 |
'callback' => [__CLASS__, 'edit_profile_callback']
|
61 |
],
|
62 |
'change-password' => [
|
63 |
'title' => esc_html__('Change Password', 'wp-user-avatar'),
|
64 |
+
'endpoint' => esc_html(ppress_settings_by_key('myac_change_password_endpoint', 'change-password', true)),
|
65 |
'priority' => 30,
|
66 |
'icon' => 'vpn_key',
|
67 |
'callback' => [__CLASS__, 'change_password_callback']
|
77 |
|
78 |
$tabs['email-notifications'] = [
|
79 |
'title' => esc_html__('Email Notifications', 'wp-user-avatar'),
|
80 |
+
'endpoint' => esc_html(ppress_settings_by_key('myac_email_notifications_endpoint', 'email-notifications', true)),
|
81 |
'priority' => 35,
|
82 |
'icon' => 'email',
|
83 |
'callback' => [__CLASS__, 'email_notification_callback']
|
src/Themes/DragDrop/Registration/PerfectoLite.php
CHANGED
@@ -133,6 +133,11 @@ HTML;
|
|
133 |
max-width: 450px;
|
134 |
}
|
135 |
|
|
|
|
|
|
|
|
|
|
|
136 |
#pp-$form_type-$form_id-wrap .profilepress-reg-status a {
|
137 |
color: #fff;
|
138 |
text-decoration: underline;
|
133 |
max-width: 450px;
|
134 |
}
|
135 |
|
136 |
+
#pp-$form_type-$form_id-wrap .profilepress-reg-status.success {
|
137 |
+
background-color: #2ecc71;
|
138 |
+
color: #fff;
|
139 |
+
}
|
140 |
+
|
141 |
#pp-$form_type-$form_id-wrap .profilepress-reg-status a {
|
142 |
color: #fff;
|
143 |
text-decoration: underline;
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitc340867a2b798d549ce71fca3e3b82ba::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
|
|
29 |
'aliases' =>
|
30 |
array (
|
31 |
),
|
32 |
-
'reference' => '
|
33 |
'name' => '__root__',
|
34 |
),
|
35 |
'versions' =>
|
@@ -41,7 +41,7 @@ private static $installed = array (
|
|
41 |
'aliases' =>
|
42 |
array (
|
43 |
),
|
44 |
-
'reference' => '
|
45 |
),
|
46 |
'collizo4sky/persist-admin-notices-dismissal' =>
|
47 |
array (
|
29 |
'aliases' =>
|
30 |
array (
|
31 |
),
|
32 |
+
'reference' => '4f0c3976c72f377530f47c02351f5d5119d25c78',
|
33 |
'name' => '__root__',
|
34 |
),
|
35 |
'versions' =>
|
41 |
'aliases' =>
|
42 |
array (
|
43 |
),
|
44 |
+
'reference' => '4f0c3976c72f377530f47c02351f5d5119d25c78',
|
45 |
),
|
46 |
'collizo4sky/persist-admin-notices-dismissal' =>
|
47 |
array (
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitb8ccebde2f0f0c5c17c736d9547cc8a5
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitb8ccebde2f0f0c5c17c736d9547cc8a5
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitc340867a2b798d549ce71fca3e3b82ba
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInitc340867a2b798d549ce71fca3e3b82ba', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc340867a2b798d549ce71fca3e3b82ba', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitc340867a2b798d549ce71fca3e3b82ba::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitc340867a2b798d549ce71fca3e3b82ba::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequirec340867a2b798d549ce71fca3e3b82ba($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequirec340867a2b798d549ce71fca3e3b82ba($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
|
@@ -286,9 +286,9 @@ class ComposerStaticInitb8ccebde2f0f0c5c17c736d9547cc8a5
|
|
286 |
public static function getInitializer(ClassLoader $loader)
|
287 |
{
|
288 |
return \Closure::bind(function () use ($loader) {
|
289 |
-
$loader->prefixLengthsPsr4 =
|
290 |
-
$loader->prefixDirsPsr4 =
|
291 |
-
$loader->classMap =
|
292 |
|
293 |
}, null, ClassLoader::class);
|
294 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitc340867a2b798d549ce71fca3e3b82ba
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'fda73876e8be17735f680f484cec1679' => __DIR__ . '/../..' . '/src/Functions/custom-settings-api.php',
|
286 |
public static function getInitializer(ClassLoader $loader)
|
287 |
{
|
288 |
return \Closure::bind(function () use ($loader) {
|
289 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitc340867a2b798d549ce71fca3e3b82ba::$prefixLengthsPsr4;
|
290 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitc340867a2b798d549ce71fca3e3b82ba::$prefixDirsPsr4;
|
291 |
+
$loader->classMap = ComposerStaticInitc340867a2b798d549ce71fca3e3b82ba::$classMap;
|
292 |
|
293 |
}, null, ClassLoader::class);
|
294 |
}
|
vendor/composer/installed.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => '__root__',
|
11 |
),
|
12 |
'versions' =>
|
@@ -18,7 +18,7 @@
|
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
-
'reference' => '
|
22 |
),
|
23 |
'collizo4sky/persist-admin-notices-dismissal' =>
|
24 |
array (
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '4f0c3976c72f377530f47c02351f5d5119d25c78',
|
10 |
'name' => '__root__',
|
11 |
),
|
12 |
'versions' =>
|
18 |
'aliases' =>
|
19 |
array (
|
20 |
),
|
21 |
+
'reference' => '4f0c3976c72f377530f47c02351f5d5119d25c78',
|
22 |
),
|
23 |
'collizo4sky/persist-admin-notices-dismissal' =>
|
24 |
array (
|
wp-user-avatar.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: ProfilePress
|
4 |
* Plugin URI: https://profilepress.net
|
5 |
* Description: The modern WordPress membership and user profile plugin.
|
6 |
-
* Version: 3.1.
|
7 |
* Author: ProfilePress Team
|
8 |
* Author URI: https://profilepress.net
|
9 |
* Text Domain: wp-user-avatar
|
@@ -14,7 +14,7 @@
|
|
14 |
defined('ABSPATH') or die("No script kiddies please!");
|
15 |
|
16 |
define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
|
17 |
-
define('PPRESS_VERSION_NUMBER', '3.1.
|
18 |
|
19 |
require __DIR__ . '/vendor/autoload.php';
|
20 |
|
3 |
* Plugin Name: ProfilePress
|
4 |
* Plugin URI: https://profilepress.net
|
5 |
* Description: The modern WordPress membership and user profile plugin.
|
6 |
+
* Version: 3.1.8
|
7 |
* Author: ProfilePress Team
|
8 |
* Author URI: https://profilepress.net
|
9 |
* Text Domain: wp-user-avatar
|
14 |
defined('ABSPATH') or die("No script kiddies please!");
|
15 |
|
16 |
define('PROFILEPRESS_SYSTEM_FILE_PATH', __FILE__);
|
17 |
+
define('PPRESS_VERSION_NUMBER', '3.1.8');
|
18 |
|
19 |
require __DIR__ . '/vendor/autoload.php';
|
20 |
|