m8hL6ENf=|LPzzz6q_)`xP
z@+|Zc=6i<-c>z8Ge;Mw;IXs3x1OFX<0KN@B49`DG$m{Sn9I40?&?Ar@2qAb)9)})-
z^w52v)L=|BxI0H{VN6?5l}RqhbQp8$1$fnD(hCF1X2X`Gc|j@-u0IJHgw$=Ypw9iU
zPT4&3d^YQIlN<@=g0LOzq(TgG^Oy?BWJ}QDyci}&J>I5OF0n=s+2AztTXip>(vv?Y+5Q5_Zx+>QQSw1WxG&*
zrLezHK%nsfpZ9cg4~#38`f*cCNTU+7K=@3Cu}vkLqX%#+mrMKJtT(ZFrW-cj$W7rV
zv{;=R70#L<*`3?;IGcIb$xR=co*aM{%|dP>3?vVbeK7*2U0m0JT0h
z!V+FH^0^^o>_yzDWB1!^(Q;aD&hc9@^NoWz$ik)p7GNsIilh2C;c=`mI)HtTFX}R4
z$`jJ2Gc%(z3wH6)_zu}XeWNoRX?eQRTlbkA>em)ACb{=R#4LnYT#lB)ESN^Ys-yh^`RODR#=
z7dlz`tI95^Y<*B9>GX4}*TvxWhZ*s
ze#7(MH_zQ(`X(=MBYhn3Zh!aV*2)d=(q1F0DqU0QiY}aVx)+uJdoNJ(`CZgsYh=AR
y=?qBkY{yP0=y0v7\n"
+"Language-Team: \n"
+"Language: ja_JP\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.2.3\n"
+"X-Poedit-Basepath: ../../../../../../Applications/XAMPP/xamppfiles/htdocs/"
+"kisagai/wordpress/wp-content/plugins/simple-stripe-gateway/Puc\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Poedit-KeywordsList: __;_x:1,2c\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: v4p7/Plugin/Ui.php:54
+msgid "View details"
+msgstr "詳細を表示"
+
+#: v4p7/Plugin/Ui.php:77
+#, php-format
+msgid "More information about %s"
+msgstr "%sについての詳細"
+
+#: v4p7/Plugin/Ui.php:128
+msgid "Check for updates"
+msgstr "アップデートを確認"
+
+#: v4p7/Plugin/Ui.php:213
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "%s プラグインは、最新バージョンです。"
+
+#: v4p7/Plugin/Ui.php:215
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "%s プラグインの最新バージョンがあります。"
+
+#: v4p7/Plugin/Ui.php:217
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "%s のアップデートがあるかどうかを判断できませんでした。"
+
+#: v4p7/Plugin/Ui.php:223
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "バージョンアップの確認で想定外の状態になりました。ステータス:”%s”"
+
+#: v4p7/Vcs/PluginUpdateChecker.php:98
+msgid "There is no changelog available."
+msgstr "更新履歴はありません。"
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-nl_BE.mo b/lib/plugin-update-checker/languages/plugin-update-checker-nl_BE.mo
new file mode 100644
index 0000000000000000000000000000000000000000..1cea26dda30ca887087e965d5b494716e48d8416
GIT binary patch
literal 1211
zcmah|&59F25N>rQ;T9t9u4ClK@z{3ericUi%PFW*e3e!i-y`f+yUy}&sMoC5~HDc}uIo=?CT;4?tL
zH((9;33PzdM}+8sx4;to4*U!F0+jJS9ur~}{2hE1{2P1`yuKnt8~g}d`n?6iWpR$;
z7iI!i;`ri5h!aaLbuLbK%E^qz)=`nCDzF!WDLW?Z$yiFJ%1k)36H?nsXKIvjB%Yd?
zu{&nz02@SLM?R=fcv@TcYa&dU@~oI>LqUg(S8kKx9olB+wKZhNR9dY2T_a@Mm*9|h
z*A`g{J%LgV?B?1);CNRtDd_#{zNls0M~5|_u!AX!oPwpY>PYmReZfhP_fz?-QW-DB
z$*M7OS!b>Pa3H&mRX`>3E}Ua()*CHZzapF0sL_fW*DltZ^*RjYW8T(f#s9Rs(yZ(@
z(c?l*SPodtW2$Z4-|Fp&Xhii|*P6g4$ib@|*#f@|m-9?%(=I=d^Bg))2OF}rXXljh
zV|KD<5}Rr>iK#Wxq4r$fW5Z4b>tgC#PIaJ0)QYZ04g6PK$UDk&uEI2?D5~|d!l_Jd
zSU2}E8GKW``cAW5HV2QL^M+PC)VR>z3-H7iF5zyaET&4@-|!Fk)sA(k-_$MZqVmCOx1&*+}D-m~#^V_d%9vU$*R{TijsRlrF2D6#XK@UB`3
zsoC&OZ=WVsE}8aGmaL<&nkZZ9Y{nQ|o0HL8>~J-oSb?4^=YPU%_HDq3eKOUvky0)a
z53v?AHYx9p{Ybx{WEt~N#JJjuDr_0`Kt9@5rX0)z2_9fgU=?tis|+sK8EE~VBXmdN
gF4LUZ2XdTXY!*|$SiQwsPx$KxgJsRi;?qd{0TG{S#Q*>R
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-nl_BE.po b/lib/plugin-update-checker/languages/plugin-update-checker-nl_BE.po
new file mode 100644
index 0000000..e1734bb
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-nl_BE.po
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2018-03-25 18:15+0200\n"
+"PO-Revision-Date: 2018-03-25 18:32+0200\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.7.1\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: Frank Goossens \n"
+"Language: nl_BE\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:395
+msgid "Check for updates"
+msgstr "Controleer op nieuwe versies"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:548
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "De meest recente %s versie is geïnstalleerd."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:550
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Er is een nieuwe versie van %s beschikbaar."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:552
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "Kon niet bepalen of er nieuwe versie van %s beschikbaar is."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:558
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Ongekende status bij controle op nieuwe versie: \"%s\""
+
+#: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
+msgid "There is no changelog available."
+msgstr "Er is geen changelog beschikbaar."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-nl_NL.mo b/lib/plugin-update-checker/languages/plugin-update-checker-nl_NL.mo
new file mode 100644
index 0000000000000000000000000000000000000000..16dde622ba6040399cc911e0d5ef1c970a541b88
GIT binary patch
literal 1211
zcmah|&59F25N>rYShMgp(iFTo-2
zt}U_@dIF^!*v+(oz|pQ^QqcR?eO}9oj}B`FtAI-6JvhhItT$S+epNQFQ==6(u3xG*>vb5)r@X1livMYMwOQG%
zqsN6Bv+T2)#Z=pPu(7%)q7l_=U26iHAp1KxvIX7_SMp40(=I=d^Bg+Q`)jhbXXljh
zBX)AtBsSG%98+tkL+z!!&xV}}*2UDboa#W0s1@Ca8u+iekav~mT!l$YQB>6P~&2IFTgWfxP-fvvY0Aqf5SiIoh|E9zpj0VX)tIH
zxINg88<(32xVEl5>MZqVmCQ9fPwBq3-m~#^b5y?Hwt3Jq{TijsRKQ61D6z9!@UB`3
zsoCJs`aVspTr%mQELlfkHBq+I*^Du`HYcOG*y3tFu>z~Eoc}Si*|z~h_Q^y~hf29f
zJjPl~*`&NX_Cx)Ol10oz5#wqrs<36$1NmrEnQ|}>BzTB5fmOh5t}?h_XQ1_ej?f*6
gdrUKCAINcnv6)Z(eD&sQJ?5_;43;%3i%%o*2Pb`M*Z=?k
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-nl_NL.po b/lib/plugin-update-checker/languages/plugin-update-checker-nl_NL.po
new file mode 100644
index 0000000..7f57a89
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-nl_NL.po
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2018-03-25 18:15+0200\n"
+"PO-Revision-Date: 2018-03-25 18:32+0200\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.7.1\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: Frank Goossens \n"
+"Language: nl_NL\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:395
+msgid "Check for updates"
+msgstr "Controleer op nieuwe versies"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:548
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "De meest recente %s versie is geïnstalleerd."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:550
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Er is een nieuwe versie van %s beschikbaar."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:552
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "Kon niet bepalen of er nieuwe versie van %s beschikbaar is."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:558
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Ongekende status bij controle op nieuwe versie: \"%s\""
+
+#: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
+msgid "There is no changelog available."
+msgstr "Er is geen changelog beschikbaar."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-pt_BR.mo b/lib/plugin-update-checker/languages/plugin-update-checker-pt_BR.mo
new file mode 100644
index 0000000000000000000000000000000000000000..d1c0f283287da07c7060255756947399fde75ca6
GIT binary patch
literal 1014
zcmZuv!EVz)6f{scgcF=V;_y_d5=dPW2P%rAAllGEMM|SKMcksreu>>WyVmYHZ4oE_
zfe%0&fCEQPT#)h`h+lzm97qtXGJgB)+1bhN{J6UG*2B02+yFYjW#BbXj*q|<;1fW=
zS6~_V4zz%ufGFqZJntKD3|vFMdZFTNpgW5oypn^Ib=kY}AEddv&Zz?~t
zX;s<@N5?eKhKf9vj;+^A*f6D*l%^<=YRH)$k{ru4lP@#&y+d`Z^og1+00#ed~o)yDXkxO01OB=CIb?>xs5u>EJ;;!s3t`_28bUuZiG31#98mK-BNl>mZ7K
z9;c<(|MMCZuOqD!JtLLPq|+v(S_kJ<$RUd!%h5s)ORm4UU)$Z;-J07B{Ccgem16~&
zvmAaLpSs(5CR5cc58qgJt;627SfBIC?FMYbmWp(os$od$FH={0As(}0Q~Bs>j#Ed0
zzwWQ&OVx@^X*riJ3CZ_s-K;P&6WiL1Y)A^Xh1Rwj&GPUtZQWG#fP!1i`T7H0n26hz
zt&l2Tf7GAy*@-r>?WER))bBU@-0Yv?7Y3`1XhDUgiIOgSh&r6qJltA3NF!-z!xb`1
zU&+ab$rmK?+2p;ZWb%%R(LxgA)aF`EK94!`y@Pq^C}taJg*2wI_Pr<5brLBa%W3dR
uv0NHSC{;9(zXh@CV~k{HTE@P&w?I3B7+Z&@l4Ogy;7B66h9le{qWB9G2Q7U7
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-pt_BR.po b/lib/plugin-update-checker/languages/plugin-update-checker-pt_BR.po
new file mode 100644
index 0000000..70a0f62
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-pt_BR.po
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2017-05-19 15:41-0300\n"
+"PO-Revision-Date: 2017-05-19 15:42-0300\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: pt_BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 1.8.8\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x;_x:1,2c\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:358
+msgid "Check for updates"
+msgstr "Verificar Atualizações"
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:401 Puc/v4p1/Plugin/UpdateChecker.php:406
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "O plugin %s já está na sua versão mais recente."
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:408
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Há uma nova versão para o plugin %s disponível para download."
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:410
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Status \"%s\" desconhecido."
+
+#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
+msgid "There is no changelog available."
+msgstr "Não há um changelog disponível."
+
+#~ msgid "The %s plugin is up to date."
+#~ msgstr "O plugin %s já está na sua versão mais recente."
+
+#~ msgid "A new version of the %s plugin is available."
+#~ msgstr "Há uma nova versão para o plugin %s disponível para download."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-ru_RU.mo b/lib/plugin-update-checker/languages/plugin-update-checker-ru_RU.mo
new file mode 100644
index 0000000000000000000000000000000000000000..50b330e9332d5024e9bf5f931e5b1e76dca7cd7a
GIT binary patch
literal 1337
zcmZuw&u<$=6dq`R${Y|}xNvxlltO7{+1&&h*4}=9X
zJv7OUR;mz!8|uGcN~*d9Q*njM>_5O?z=^+rZ+7zw+L52Xc{|@X?|X0Uzuubpo?*R)
zcn8rzypFh!aBG5i6Y&&5h(8gth`$jr;*FOWTL!KGIq*B+$(I@X9r!NtKTa@q4)_nS
z3w(cuv3cM(K$kxOo&vu83S*E|3vvcJ!x6*dYQ4IT&S$k+L)p7YYni5E)E7qPtTU8a
zQj(L(s5ca9Ak%C>VnZaUxRFYat*VQ+{yefTldmqzOKM8V+NfnyTzdnm7ZnajQB
zJ)p7wmMlhOGICvetgW-JWzX;{eSW=m8SR_n^bm`takk(D{w4m~kNnl6Rz7kEpS7Wo7xu
zMBw?2R;G+phIej{P|e6&=7Uix64i7sNaxbTtDVby>4>L=%Gadk%c__46E%ov=|*B2
zU-8eRl3JKdN7T+_KQR<~A)eO>|3u_+B+M`(&ug^PLW`7N&h&a7k;3~#n#T)GHyCW=
z_taeA$8kWXPm|mFr{W->i{umN$S=gQVxl>Q<%W>fy&lduB3*Q^
ztsbi*h3*a8=$ZTIy20$j@~-{OKC+L2lXAPfPe^~V)9T@#eT?0te8B7vDv)KQ13o-9)+N{JLMh-GwQXgq3H`cx{G|?z%3j!>U_X4doGg
p^$6zwr!DW1J9>c)S9aI#RRwYXL(s|fZP{fYnp
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-ru_RU.po b/lib/plugin-update-checker/languages/plugin-update-checker-ru_RU.po
new file mode 100644
index 0000000..33a1199
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-ru_RU.po
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2020-08-08 14:36+0300\n"
+"PO-Revision-Date: 2021-12-20 17:59+0200\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.2\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: \n"
+"Language: ru_RU\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p11/Plugin/Ui.php:128
+msgid "Check for updates"
+msgstr "Проверить обновления"
+
+#: Puc/v4p11/Plugin/Ui.php:213
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "Плагин %s обновлён."
+
+#: Puc/v4p11/Plugin/Ui.php:215
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Новая версия %s доступна."
+
+#: Puc/v4p11/Plugin/Ui.php:217
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "Не удалось определить, доступны ли обновления для %s."
+
+#: Puc/v4p11/Plugin/Ui.php:223
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Неизвестный статус средства проверки обновлений \"%s\""
+
+#: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
+msgid "There is no changelog available."
+msgstr "Журнал изменений отсутствует."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-sl_SI.mo b/lib/plugin-update-checker/languages/plugin-update-checker-sl_SI.mo
new file mode 100644
index 0000000000000000000000000000000000000000..df47ca7c0a01cff815ffe3965ee4918e72a600fd
GIT binary patch
literal 1203
zcmZWoO>YxN7@k5(CHH_@u9bL+6a=EP>~5kaT4SnW5)?I|RxzkIYhu5#$63#;W@a}b
zzoDEE|E0YkRe}?@{($}hjvRaFvtApg%1F;X`|iA7&pWgKe7p8WV0{IA2lRojf!~38
z{Q-Of{0R{70ayn<0v+J`7eefU55W@r8vHNt7jOgi+p9v{0{;!J_dhLoeNBi*uzTQ}
z;MZV;%-0n>;U@4&d^!Ij#I*(2ea=^R!ow3fwvNhTqyl@A$>eqDqKQ<0ZrZ7ArF^V&~j_>?MkURy)u~>Ychy7^#jUP2flZM8mj$W?J`4AYTxrv;
z56F2Ao#*{MxwGnW=3 && n%100<=4 ? 2 : 3);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: Igor Funa\n"
+"Language: sl_SI\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:395
+msgid "Check for updates"
+msgstr "Preveri posodobitve"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:548
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "Vtičnik %s je že posodobljen."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:550
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Nova različica vtičnika %s je na razpolago."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:552
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "Ne morem ugotoviti če se za vtičnik %s na razpolago posodobitve."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:558
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Neznan status preverjanja posodobitev za \"%s\""
+
+#: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
+msgid "There is no changelog available."
+msgstr "Dnevnik sprememb ni na razpolago."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-sv_SE.mo b/lib/plugin-update-checker/languages/plugin-update-checker-sv_SE.mo
new file mode 100644
index 0000000000000000000000000000000000000000..4d06fc14f5bb99ac14bc019543e9edacfb457e36
GIT binary patch
literal 1006
zcmZWn!EO^V5H(OZgcF=NfHYK!L{+@(rWC4;a)7i&6|EZ46mg5(WU^VZwIkb`wi1W_
z1UI-<2!5a!PAEUX2Otjp5qR58+aN5xeIEOH{5(6q@6LS`7`K4?z$S1T_y82+D{u$+
z1`zNam1R4EsX5^8kov|_KI$pYPP7MXnNmmEPaDa
zh?X_)x$EUdPrfbl$J4a3e3G0xthBbFNsTPF6
zQ|y$Xe5o9dlpn+t1eI2nTb0RmWA|N58vg>JYt-sRX)tX(()6%F(L((y!H&somz$-p
zm`Y=p>0k5Ffw4WenK~a+r&I56y>l2xk852pO5yOz!hKenyev*kZrs^fo4JRT?G9S7
zDnpp9h@Hvlkht&BMEU5v3oTx*tXO4F{Zwm5h*{I*ME8m!Zv5guX~VIY|;YsJcM3XG8e7a;khF
F{sQ>&EFS;>
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-sv_SE.po b/lib/plugin-update-checker/languages/plugin-update-checker-sv_SE.po
new file mode 100644
index 0000000..b894814
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-sv_SE.po
@@ -0,0 +1,42 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2017-05-20 10:53+0300\n"
+"PO-Revision-Date: 2017-10-16 15:02+0200\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.0.4\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: \n"
+"Language: sv_SE\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:358
+msgid "Check for updates"
+msgstr "Sök efter uppdateringar"
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:405
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "Tillägget %s är uppdaterat."
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:407
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Det finns en ny version av tillägget %s."
+
+#: Puc/v4p1/Plugin/UpdateChecker.php:409
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Okänd status för kontroll av uppdatering “%s”"
+
+#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
+msgid "There is no changelog available."
+msgstr "Det finns ingen ändringslogg tillgänglig."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-tr_TR.mo b/lib/plugin-update-checker/languages/plugin-update-checker-tr_TR.mo
new file mode 100644
index 0000000000000000000000000000000000000000..58be2f9306dd0e01aa725c03d583ca53bdd536a0
GIT binary patch
literal 1118
zcmZWn&uA(EYi8EL
z|3fcT#W_dLkt#u@Tq?V#{trF(&_ANz+WCbT?YG~~&U@c{@6G)4+0q+RH
zH>2~*AyOlH>8_q_yQT8Vzs6>7pAB>FBwq5t#2acVW{Y|-k9_N(}
z`|M@cW-ixukka~|j*T6;#g@H_&ZpFKoa;zy(BF}ZiF~XAk5n9{lq8Lwsk}0B)A=%_
zWN}QGhR$lct{0!3FD!lDq1N5@xxfoo`HVLfu2NdqI+K6KlLP1T@LY$O((Z11m)pCq
z)7F=(85oTSsIm5L78biD4y@}7W$9s|y!x(w8C3#4u^bN+aE;g<#7Y2uh1&iB_Og+~Q(_=q9E~m#-@;IwvA`q&lZxM4*
h*%@3qXG)dNj%J6mBiduQgCI)C^*rfJ|1>cX{{#HHSPlRH
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-tr_TR.po b/lib/plugin-update-checker/languages/plugin-update-checker-tr_TR.po
new file mode 100644
index 0000000..ba5e291
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-tr_TR.po
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2017-11-24 17:02+0200\n"
+"PO-Revision-Date: 2021-11-15 19:07+0300\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 3.0\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: Emre Erkan \n"
+"Language: tr\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:395
+msgid "Check for updates"
+msgstr "Güncellemeleri kontrol et"
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:548
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "%s eklentisi güncel."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:550
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "%s eklentisinin yeni bir sürümü mevcut."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:552
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "%s için güncelleme olup olmadığı belirlenemedi."
+
+#: Puc/v4p3/Plugin/UpdateChecker.php:558
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Bilinmeyen güncelleme denetleyicisi durumu \"%s\""
+
+#: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
+msgid "There is no changelog available."
+msgstr "Kullanılabilir bir değişiklik yok."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-uk_UA.mo b/lib/plugin-update-checker/languages/plugin-update-checker-uk_UA.mo
new file mode 100644
index 0000000000000000000000000000000000000000..79494e524ebd28dcba540d54c7f4949d5a436508
GIT binary patch
literal 1309
zcmZuwO>YxN7#`a6L*`J?a}O_(LZM-{yPHs=HA@94(heN%>IG?f}VQqrO)i<3(}EaKQpuM^S;mXuKm}?6TdL5
z4-lUqT8QI_M+mz{h!cpH2txdcm_+=I2oWD0V{9I{0OY`*fFHiY*zdqkasK07#^!+k
z0KW!KPcZfwPy>GiZUIjM{{@0lF3=g$8LrrS7n+;~Zn09Ae7m55^u^L;)2YDX%eD1sCoe$2Pn+DIVUB`^`s3&+!L@NQ+7OpMK
zABgZAx7J9d7E<%podLROaa(^rNTOKQ?F&+w(BWe13ZFa3Q<2P;gyQqElXhd-3ux|U
ztZP5;t3nDD=~M;OOhq@=YbLph5`HCBD_KAi?-R!?oT=Nv
zU>ly6Q=S`!9-TTxcI%!DJ&(R5mynM0#n9h-bRnFz+mhj4@O-*^x1wD1X3v1)f#RR3
zA1L`Q%~eMhzoN%w4#yF|%c!7x&C_^Q71Wj*16nL}tf~5l_rE9*oVn*kI-{wy(^v
z_?gTzvs2tJ9u({5b(#0n?2!4jSOhGx51C-cI*DmKm7sfZ|UStu|vFUgWo2?dJ#
zgc^qh{C1>$@u>QfL4lPtBz%E^BAdmA{e{1!XIS;LY0s>hQtXC3j-Uzxi-(oXvt)N~
e(TmOhac^_B%Vwy(g_1+_)VeFXzd5TNhy4cu&FZoM
literal 0
HcmV?d00001
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-uk_UA.po b/lib/plugin-update-checker/languages/plugin-update-checker-uk_UA.po
new file mode 100644
index 0000000..b84b16e
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker-uk_UA.po
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2020-08-08 14:36+0300\n"
+"PO-Revision-Date: 2021-12-20 17:55+0200\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.2\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"Last-Translator: \n"
+"Language: uk_UA\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p11/Plugin/Ui.php:128
+msgid "Check for updates"
+msgstr "Перевірити оновлення"
+
+#: Puc/v4p11/Plugin/Ui.php:213
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "Плагін %s оновлено."
+
+#: Puc/v4p11/Plugin/Ui.php:215
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "Нова версія %s доступна."
+
+#: Puc/v4p11/Plugin/Ui.php:217
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "Не вдалося визначити, чи доступні оновлення для %s."
+
+#: Puc/v4p11/Plugin/Ui.php:223
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "Невідомий статус перевірки оновлень \"%s\""
+
+#: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
+msgid "There is no changelog available."
+msgstr "Немає доступного журналу змін."
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker-zh_CN.mo b/lib/plugin-update-checker/languages/plugin-update-checker-zh_CN.mo
new file mode 100644
index 0000000000000000000000000000000000000000..86d114472907c99814f248ed3e063f8bd0ce5819
GIT binary patch
literal 1174
zcmZ`&U2hXd6dfQGu!_|3hCt{lC@;Wl*DeoXO%Py0#Ye!DfOx{1*b{qUGh^+{Ccsnp
zsMHjpBDD|{EI|Z8RfXaT5KkZ;`Um(06$QNJjR*b!XT2c?MT~TGcIMuD?zywO|E=q}
z!LZf<8-WV27I+9G>lN@l@ISB~_y7>Fb{S*6UT9mZh$%XHTV(m-SRZ=
z-xZ9l!}&|_Ch!|DftUBB@y+1m+y!p|9|dm!UjRdftp-riSvX=VfmOgaos)D9wCb)x
zO_tBns17NrSA>;@4e3yluW&RbtgjV`5gl3TGi
zN;3M)rzEugtlN_6f{ua;%-N)Y499#0x1*m1BLVY^<(-lHjI-1Oru?#HR41z`xg3WT
zLw!b;Ek97-3yvNW;J8)unKkx76C4NR_$OlzfSA13V
zsDH$_nN$2HsbrWMEoxcuE#;i;&X0(sTfSEqSr@kEk>g~FK@^IB@5i@fJW_bq*qVWC
zKDjhJ4!HSl<#8Q_Wm!lKd6YU@)IB86Pw22>4*SM>R4V05GG999Ww+(Z;LlW~2+Or1
z9B>yNGAzC~8Q+&5h&$xAG5{N27Y*9~;k+P^)GCojH#HiN$c;_b%Ocg+X!\n"
+"Language-Team: \n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Poedit 2.4.3\n"
+"X-Poedit-Basepath: ..\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v4p11/Plugin/Ui.php:54
+msgid "View details"
+msgstr "查看详情"
+
+#: Puc/v4p11/Plugin/Ui.php:77
+#, php-format
+msgid "More information about %s"
+msgstr "%s 的更多信息"
+
+#: Puc/v4p11/Plugin/Ui.php:128
+msgid "Check for updates"
+msgstr "检查更新"
+
+#: Puc/v4p11/Plugin/Ui.php:214
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr "%s 目前是最新版本。"
+
+#: Puc/v4p11/Plugin/Ui.php:216
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr "%s 当前有可用的更新。"
+
+#: Puc/v4p11/Plugin/Ui.php:218
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr "%s 无法确定是否有可用的更新。"
+
+#: Puc/v4p11/Plugin/Ui.php:224
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr "未知的更新检查状态:%s"
+
+#: Puc/v4p11/Vcs/PluginUpdateChecker.php:100
+msgid "There is no changelog available."
+msgstr "没有可用的更新日志。"
diff --git a/lib/plugin-update-checker/languages/plugin-update-checker.pot b/lib/plugin-update-checker/languages/plugin-update-checker.pot
new file mode 100644
index 0000000..4985307
--- /dev/null
+++ b/lib/plugin-update-checker/languages/plugin-update-checker.pot
@@ -0,0 +1,49 @@
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: plugin-update-checker\n"
+"POT-Creation-Date: 2022-07-29 15:34+0300\n"
+"PO-Revision-Date: 2016-01-10 20:59+0100\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: en_US\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.1.1\n"
+"X-Poedit-Basepath: ..\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: Puc/v5p3/Plugin/Ui.php:128
+msgid "Check for updates"
+msgstr ""
+
+#: Puc/v5p3/Plugin/Ui.php:214
+#, php-format
+msgctxt "the plugin title"
+msgid "The %s plugin is up to date."
+msgstr ""
+
+#: Puc/v5p3/Plugin/Ui.php:216
+#, php-format
+msgctxt "the plugin title"
+msgid "A new version of the %s plugin is available."
+msgstr ""
+
+#: Puc/v5p3/Plugin/Ui.php:218
+#, php-format
+msgctxt "the plugin title"
+msgid "Could not determine if updates are available for %s."
+msgstr ""
+
+#: Puc/v5p3/Plugin/Ui.php:224
+#, php-format
+msgid "Unknown update checker status \"%s\""
+msgstr ""
+
+#: Puc/v5p3/Vcs/PluginUpdateChecker.php:100
+msgid "There is no changelog available."
+msgstr ""
diff --git a/lib/plugin-update-checker/license.txt b/lib/plugin-update-checker/license.txt
new file mode 100644
index 0000000..7fff536
--- /dev/null
+++ b/lib/plugin-update-checker/license.txt
@@ -0,0 +1,7 @@
+Copyright (c) 2023 Jānis Elsts
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/lib/plugin-update-checker/load-v5p3.php b/lib/plugin-update-checker/load-v5p3.php
new file mode 100644
index 0000000..1de3d58
--- /dev/null
+++ b/lib/plugin-update-checker/load-v5p3.php
@@ -0,0 +1,34 @@
+ Plugin\UpdateChecker::class,
+ 'Theme\\UpdateChecker' => Theme\UpdateChecker::class,
+
+ 'Vcs\\PluginUpdateChecker' => Vcs\PluginUpdateChecker::class,
+ 'Vcs\\ThemeUpdateChecker' => Vcs\ThemeUpdateChecker::class,
+
+ 'GitHubApi' => Vcs\GitHubApi::class,
+ 'BitBucketApi' => Vcs\BitBucketApi::class,
+ 'GitLabApi' => Vcs\GitLabApi::class,
+ )
+ as $pucGeneralClass => $pucVersionedClass
+) {
+ MajorFactory::addVersion($pucGeneralClass, $pucVersionedClass, '5.3');
+ //Also add it to the minor-version factory in case the major-version factory
+ //was already defined by another, older version of the update checker.
+ MinorFactory::addVersion($pucGeneralClass, $pucVersionedClass, '5.3');
+}
+
diff --git a/lib/plugin-update-checker/plugin-update-checker.php b/lib/plugin-update-checker/plugin-update-checker.php
new file mode 100644
index 0000000..7a9268c
--- /dev/null
+++ b/lib/plugin-update-checker/plugin-update-checker.php
@@ -0,0 +1,10 @@
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/lib/updatepulse-updater/README.md b/lib/updatepulse-updater/README.md
new file mode 100644
index 0000000..9a1a62c
--- /dev/null
+++ b/lib/updatepulse-updater/README.md
@@ -0,0 +1,46 @@
+# UpdatePulse Updater - Plugins and themes update library
+
+### Description
+
+Used to enable updates for plugins and themes distributed via UpdatePulse Server.
+
+### Requirements
+
+The library must sit in a `lib` folder at the root of the plugin or theme directory.
+A file `updatepulse.json` must be present in the root of the plugin or theme directory.
+
+
+Before deploying the plugin or theme, make sure to:
+- change the `$prefix_updater` with your plugin or theme prefix.
+- change the `server` value in `updatepulse.json` to the URL where your UpdatePulse Server is installed.
+- Optionally add headers to the main plugin file or to your theme's `style.css` file to enable license checks:
+ - The "Require License" header can be `yes`, `true`, or `1`: all other values are considered as `false`; it is used to enable license checks for your package.
+ - The "Licensed With" header is used to link packages together (for example, in the case of an extension to a main plugin the user already has a license for, if this header is present in the extension, the license check will be made against the main plugin). It must be the slug of another plugin or theme that is already present in your UpdatePulse Server.
+
+
+### Code to include in main plugin file or functions.php
+
+```php
+use Anyape\UpdatePulse\Updater\v2_0\UpdatePulse_Updater;
+require_once __DIR__ . '/lib/updatepulse-updater/class-updatepulse-updater.php';
+
+$prefix_updater = new UpdatePulse_Updater(
+ wp_normalize_path( __FILE__ ),
+ 0 === strpos( __DIR__, WP_PLUGIN_DIR ) ? wp_normalize_path( __DIR__ ) : get_stylesheet_directory()
+);
+```
+
+### Content of `updatepulse.json`
+
+```json
+{
+ "server": "https://server.domain.tld/"
+}
+```
+
+### License headers
+
+```text
+Require License: yes
+Licensed With: another-plugin-or-theme-slug
+```
\ No newline at end of file
diff --git a/lib/updatepulse-updater/class-updatepulse-updater.php b/lib/updatepulse-updater/class-updatepulse-updater.php
new file mode 100644
index 0000000..6977f60
--- /dev/null
+++ b/lib/updatepulse-updater/class-updatepulse-updater.php
@@ -0,0 +1,1009 @@
+package_path = trailingslashit( $package_path );
+
+ if ( ! $wp_filesystem->exists( $this->package_path . 'updatepulse.json' ) ) {
+ throw new RuntimeException(
+ sprintf(
+ 'The package updater cannot find the updatepulse.json file in "%s". ',
+ esc_html( htmlentities( $this->package_path ) )
+ )
+ );
+ }
+
+ $info = array();
+ $update_server_url = $this->get_option( 'server' );
+ $file_path = '';
+ $package_path_parts = explode( '/', untrailingslashit( $this->package_path ) );
+ $package_slug = $package_path_parts[ count( $package_path_parts ) - 1 ];
+
+ $this->set_type();
+
+ if ( 'Plugin' === $this->type ) {
+ $this->package_url = plugin_dir_url( $package_file_path );
+ $file_path = $package_file_path;
+ } elseif ( 'Theme' === $this->type ) {
+ $this->package_url = trailingslashit( get_theme_root_uri() ) . $package_slug;
+ $file_path = dirname( $package_file_path ) . '/style.css';
+ }
+
+ if ( function_exists( 'get_file_data' ) ) {
+ $info = get_file_data(
+ $file_path,
+ array(
+ 'licensed_with' => 'Licensed With',
+ 'require_license' => 'Require License',
+ )
+ );
+ }
+
+ $require_license = (
+ isset( $info['require_license'] ) &&
+ (
+ strtolower( $info['require_license'] ) === 'yes' ||
+ strtolower( $info['require_license'] ) === 'true'
+ )
+ );
+ $package_file_path_parts = explode( '/', $package_file_path );
+ $package_id_parts = array_slice( $package_file_path_parts, -2, 2 );
+ $package_id = implode( '/', $package_id_parts );
+ $this->package_id = $package_id;
+ $this->update_server_url = trailingslashit( $update_server_url ) . 'updatepulse-server-update-api/';
+ $this->package_slug = $package_slug;
+ $this->require_license = $require_license;
+ $metadata_url = trailingslashit( $this->update_server_url )
+ . '?action=get_metadata&package_id=';
+ $metadata_url .= rawurlencode( $this->package_slug );
+
+ if ( ! class_exists( 'YahnisElsts\PluginUpdateChecker\v5p3\PucFactory' ) ) {
+ require $this->package_path . 'lib/plugin-update-checker/plugin-update-checker.php';
+ }
+
+ $this->update_checker = PucFactory::buildUpdateChecker( $metadata_url, $package_file_path );
+
+ $this->update_checker->addQueryArgFilter( array( $this, 'filter_update_checks' ) );
+
+ if ( $this->require_license ) {
+ $this->license_server_url = trailingslashit( $update_server_url )
+ . 'updatepulse-server-license-api/';
+
+ $this->update_checker->addResultFilter( array( $this, 'set_license_error_notice_content' ) );
+
+ if ( ! isset( $info['licensed_with'] ) || empty( $info['licensed_with'] ) ) {
+
+ if ( 'Plugin' === $this->type ) {
+ add_action( 'after_plugin_row_' . $this->package_id, array( $this, 'print_license_under_plugin' ), 10, 3 );
+ } elseif ( 'Theme' === $this->type ) {
+ add_action( 'admin_menu', array( $this, 'setup_theme_admin_menus' ), 10, 0 );
+
+ add_filter( 'custom_menu_order', array( $this, 'alter_admin_appearence_submenu_order' ), 10, 1 );
+ add_filter( 'wp_prepare_themes_for_js', array( $this, 'wp_prepare_themes_for_js' ), 10, 1 );
+ }
+
+ if ( ! $this->get_option( 'licenseKey' ) || ! $this->get_option( 'licenseSignature' ) ) {
+ $suffix_type = strtolower( $this->type );
+
+ add_filter( "auto_update_{$suffix_type}", array( $this, 'auto_update_package' ), 10, 2 );
+ add_filter( "site_transient_update_{$suffix_type}s", array( $this, 'site_transient_update_packages' ), 10, 1 );
+ }
+
+ add_action( 'wp_ajax_upupdater_' . $this->package_id . '_activate_license', array( $this, 'activate_license' ), 10, 0 );
+ add_action( 'wp_ajax_upupdater_' . $this->package_id . '_deactivate_license', array( $this, 'deactivate_license' ), 10, 0 );
+ add_action( 'admin_enqueue_scripts', array( $this, 'add_admin_scripts' ), 99, 1 );
+ add_action( 'admin_notices', array( $this, 'show_license_error_notice' ), 10, 0 );
+ add_action( 'init', array( $this, 'load_textdomain' ), 10, 0 );
+ } else {
+ $this->update_option( 'licensed_with', $info['licensed_with'] );
+ }
+
+ add_action( 'upgrader_process_complete', array( $this, 'upgrader_process_complete' ), 10, 2 );
+
+ add_filter( 'upgrader_pre_install', array( $this, 'upgrader_pre_install' ), 10, 2 );
+ }
+ }
+
+ /*******************************************************************
+ * Public methods
+ *******************************************************************/
+
+ // WordPress hooks ---------------------------------------------
+
+ public function wp_prepare_themes_for_js( $prepared_themes ) {
+
+ if ( isset( $prepared_themes[ $this->package_slug ] ) ) {
+ $prepared_themes[ $this->package_slug ]['description'] .= ''
+ . $this->get_license_form()
+ . '
';
+ }
+
+ return $prepared_themes;
+ }
+
+ public function load_textdomain() {
+ $i10n_path = trailingslashit( basename( $this->package_path ) ) . 'lib/updatepulse-updater/languages';
+
+ if ( 'Plugin' === $this->type ) {
+ load_plugin_textdomain( 'updatepulse-updater', false, $i10n_path );
+ } else {
+ load_theme_textdomain( 'updatepulse-updater', $i10n_path );
+ }
+ }
+
+ public function setup_theme_admin_menus() {
+ add_submenu_page(
+ 'themes.php',
+ 'Theme License',
+ 'Theme License',
+ 'manage_options',
+ 'theme-license',
+ array( $this, 'theme_license_settings' )
+ );
+ }
+
+ public function alter_admin_appearence_submenu_order( $menu_ord ) {
+ global $submenu;
+
+ $theme_menu = $submenu['themes.php'];
+ $reordered_menu = array();
+ $first_key = 0;
+ $license_menu = null;
+
+ foreach ( $theme_menu as $key => $menu ) {
+
+ if ( 'themes.php' === $menu[2] ) {
+ $reordered_menu[ $key ] = $menu;
+ $first_key = $key;
+ } elseif ( 'theme-license' === $menu[2] ) {
+ $license_menu = $menu;
+ } else {
+ $reordered_menu[ $key + 1 ] = $menu;
+ }
+ }
+
+ $reordered_menu[ $first_key + 1 ] = $license_menu;
+
+ ksort( $reordered_menu );
+
+ $submenu['themes.php'] = $reordered_menu; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
+
+ return $menu_ord;
+ }
+
+ public function add_admin_scripts( $hook ) {
+ $debug = (bool) ( constant( 'WP_DEBUG' ) );
+
+ $condition = 'plugins.php' === $hook ||
+ 'themes.php' === $hook ||
+ 'appearance_page_theme-license' === $hook ||
+ 'appearance_page_parent-theme-license' === $hook &&
+ ! wp_script_is( 'updatepulse-updater-script' );
+
+ if ( $condition ) {
+ $js_ext = ( $debug ) ? '.js' : '.min.js';
+ $ver_js = filemtime( $this->package_path . 'lib/updatepulse-updater/js/main' . $js_ext );
+ $params = array(
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
+ );
+
+ wp_enqueue_script(
+ 'updatepulse-updater-script',
+ $this->package_url . '/lib/updatepulse-updater/js/main' . $js_ext,
+ array( 'jquery' ),
+ $ver_js,
+ true
+ );
+ wp_localize_script( 'updatepulse-updater-script', 'UPupdater', $params );
+
+ if ( ! wp_style_is( 'updatepulse-updater-style' ) ) {
+ wp_register_style( 'updatepulse-updater-style', false, array(), '1.0' );
+ wp_enqueue_style( 'updatepulse-updater-style' );
+
+ $css = '
+ .appearance_page_theme-license .license-error.notice {
+ display: none;
+ }
+
+ .appearance_page_theme-license .postbox {
+ max-width: 500px;
+ margin: 0 auto;
+ }
+
+ .appearance_page_theme-license .wrap-license label {
+ margin-bottom: 10px;
+ }
+
+ .appearance_page_theme-license .wrap-license input[type="text"],
+ .theme-about .wrap-license input[type="text"] {
+ width: 100%;
+ }
+
+ .appearance_page_theme-license .inside {
+ margin: 2em;
+ }
+
+ .license-change {
+ display: flex;
+ flex-direction: column;
+ gap: 1em;
+ margin: 2em;
+ }
+
+ .plugin-update .license-change {
+ flex-direction: row;
+ align-items: center;
+ margin: 1em 0;
+ }
+
+ .license-message {
+ font-weight: bold;
+ }
+
+ .current-license-error {
+ background: #a00;
+ color: white;
+ padding: 0.25em;
+ }
+ ';
+
+ wp_add_inline_style( 'updatepulse-updater-style', $css );
+ }
+ }
+ }
+
+ public function filter_update_checks( $query_args ) {
+ $licensed_with = $this->get_option( 'licensed_with' );
+ $license = null;
+
+ if ( ! empty( $licensed_with ) ) {
+ $query_args['licensed_with'] = $licensed_with;
+ $license = $this->get_option( 'licenseKey', $licensed_with );
+ $license_signature = $this->get_option( 'licenseSignature', $licensed_with );
+ } elseif ( $this->require_license ) {
+ $license = $this->get_option( 'licenseKey' );
+ $license_signature = $this->get_option( 'licenseSignature' );
+ }
+
+ if ( $license && $license_signature ) {
+ $query_args['license_key'] = rawurlencode( $license );
+ $query_args['license_signature'] = rawurlencode( $license_signature );
+ }
+
+ $query_args['update_type'] = $this->type;
+
+ return $query_args;
+ }
+
+ public function print_license_under_plugin( $plugin_file = null, $plugin_data = null, $status = null ) {
+ $this->get_template(
+ 'plugin-page-license-row.php',
+ array(
+ 'form' => $this->get_license_form(),
+ 'plugin_file' => $plugin_file,
+ 'plugin_data' => $plugin_data,
+ 'slug' => $this->package_slug,
+ 'status' => $status,
+ )
+ );
+ }
+
+ public function activate_license() {
+ $license_data = $this->do_query_license( 'activate' );
+
+ if ( isset( $license_data->package_slug, $license_data->license_key ) ) {
+ $this->update_option( 'licenseKey', $license_data->license_key );
+
+ if ( isset( $license_data->license_signature ) ) {
+ $this->update_option( 'licenseSignature', $license_data->license_signature );
+ } else {
+ $this->delete_option( 'licenseSignature' );
+ }
+
+ $license_data->may_deactivate = true;
+ $license_data->deactivate_text = __( 'Deactivate', 'updatepulse-updater' );
+
+ if ( isset( $license_data->next_deactivate ) ) {
+ $this->update_option( 'licenseNextDeactivate', $license_data->next_deactivate );
+
+ if ( time() < $license_data->next_deactivate ) {
+ $license_data->may_deactivate = false;
+ $license_data->deactivate_text = __( 'Deactivation is possible after:', 'updatepulse-updater' );
+ $license_data->date_format = get_option( 'date_format' ) . ' H:i:s';
+ }
+ } else {
+ $this->delete_option( 'licenseNextDeactivate' );
+ }
+ } else {
+ $error = new WP_Error( 'License', $license_data->message );
+
+ if ( property_exists( $license_data, 'clear_key' ) && $license_data->clear_key ) {
+ $this->delete_option( 'licenseSignature' );
+ $this->delete_option( 'licenseKey' );
+ }
+
+ wp_send_json_error( $error );
+ }
+
+ if ( 'Theme' === $this->type ) {
+ wp_update_themes();
+ } else {
+ wp_update_plugins();
+ }
+
+ $this->delete_option( 'licenseError' );
+ wp_send_json_success( $license_data );
+ }
+
+ public function deactivate_license() {
+ $license_data = $this->do_query_license( 'deactivate' );
+
+ if ( isset( $license_data->package_slug, $license_data->license_key ) ) {
+ $this->update_option( 'licenseKey', '' );
+
+ if ( isset( $license_data->license_signature ) ) {
+ $this->update_option( 'licenseSignature', '' );
+ } else {
+ $this->delete_option( 'licenseSignature' );
+ }
+
+ if ( isset( $license_data->next_deactivate ) ) {
+ $this->update_option( 'licenseNextDeactivate', $license_data->next_deactivate );
+ } else {
+ $this->delete_option( 'licenseNextDeactivate' );
+ }
+ } else {
+ $error = new WP_Error( 'License', $license_data->message );
+
+ if ( $license_data->clear_key ) {
+ $this->delete_option( 'licenseSignature' );
+ $this->delete_option( 'licenseKey' );
+ }
+
+ wp_send_json_error( $error );
+ }
+
+ $transient_name = 'Theme' === $this->type ? 'update_themes' : 'update_plugins';
+ $update_packages = get_site_transient( $transient_name );
+
+ if ( 'Theme' === $this->type ) {
+ unset( $update_packages->response[ $this->package_slug ] );
+ } else {
+ unset( $update_packages->response[ $this->package_id ] );
+ }
+
+ set_site_transient( $transient_name, $update_packages );
+
+ if ( 'Theme' === $this->type ) {
+ wp_update_themes();
+ } else {
+ wp_update_plugins();
+ }
+
+ wp_send_json_success( $license_data );
+ }
+
+ public function set_license_error_notice_content( $package_info, $result ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
+
+ if (
+ isset( $package_info->license_error ) &&
+ is_object( $package_info->license_error )
+ ) {
+ $license_data = $this->handle_license_errors( $package_info->license_error );
+
+ $this->update_option( 'licenseError', $package_info->name . ': ' . $license_data->message );
+ } else {
+ $this->delete_option( 'licenseError' );
+ }
+
+ return $package_info;
+ }
+
+ public function show_license_error_notice() {
+ $error = $this->get_option( 'licenseError' );
+
+ if ( $error ) {
+ $class = 'license-error license-error-' . $this->package_slug . ' notice notice-error is-dismissible';
+
+ printf( '', $class, $error ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ }
+ }
+
+ public function upgrader_process_complete( $upgrader_object, $options ) {
+
+ if ( 'update' === $options['action'] ) {
+
+ if (
+ 'plugin' === $options['type'] &&
+ isset( $options['plugins'] ) &&
+ is_array( $options['plugins'] )
+ ) {
+
+ foreach ( $options['plugins'] as $plugin ) {
+
+ if ( $plugin === $this->package_id ) {
+ $this->restore_updatepulse_options();
+ }
+ }
+ }
+
+ if (
+ 'theme' === $options['type'] &&
+ isset( $options['themes'] ) &&
+ is_array( $options['themes'] )
+ ) {
+
+ foreach ( $options['themes'] as $theme ) {
+
+ if ( $theme === $this->package_slug ) {
+ $this->restore_updatepulse_options();
+ }
+ }
+ }
+ }
+ }
+
+ public function upgrader_pre_install( $_true, $hook_extra ) {
+
+ if ( isset( $hook_extra['plugin'] ) ) {
+ $plugin_to_update = $hook_extra['plugin'];
+
+ if ( $plugin_to_update === $this->package_id ) {
+ $this->save_updatepulse_options();
+ }
+ }
+
+ if ( isset( $hook_extra['theme'] ) ) {
+ $theme_to_update = $hook_extra['theme'];
+
+ if ( $theme_to_update === $this->package_slug ) {
+ $this->save_updatepulse_options();
+ }
+ }
+
+ return $_true;
+ }
+
+ public function auto_update_package( $update, $info ) {
+
+ if ( 'Theme' === $this->type && $this->package_slug === $info->theme ) {
+ return false;
+ } elseif ( 'Plugin' === $this->type && $this->package_id === $info->plugin ) {
+ return false;
+ }
+
+ return $update;
+ }
+
+ public function site_transient_update_packages( $transient ) {
+
+ if ( 'Theme' === $this->type ) {
+ unset( $transient->response[ $this->package_slug ] );
+ } else {
+ unset( $transient->response[ $this->package_id ] );
+ }
+
+ return $transient;
+ }
+
+ // Misc. -------------------------------------------------------
+
+ public function locate_template( $template_name, $load = false, $required_once = true ) {
+ $template = apply_filters(
+ 'upupdater_' . $this->package_id . '_locate_template',
+ $this->package_path . 'lib/updatepulse-updater/templates/' . $template_name,
+ $template_name,
+ str_replace( $template_name, '', $this->package_path . 'lib/updatepulse-updater/templates/' )
+ );
+
+ if ( $load && '' !== $template ) {
+ load_template( $template, $required_once );
+ }
+
+ return $template;
+ }
+
+ public function get_template( $template_name, $args = array(), $load = true, $required_once = false ) {
+ $template_name = apply_filters(
+ 'upupdater_' . $this->package_id . '_get_template_name',
+ $template_name,
+ $args
+ );
+ $template_args = apply_filters(
+ 'upupdater_' . $this->package_id . '_get_template_args',
+ $args,
+ $template_name
+ );
+
+ if ( ! empty( $template_args ) ) {
+
+ foreach ( $template_args as $key => $arg ) {
+ $key = is_numeric( $key ) ? 'var_' . $key : $key;
+
+ set_query_var( $key, $arg );
+ }
+ }
+
+ return $this->locate_template( $template_name, $load, $required_once );
+ }
+
+ public function theme_license_settings() {
+
+ if ( ! current_user_can( 'manage_options' ) ) {
+ wp_die( __( 'Sorry, you are not allowed to access this page.' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ }
+
+ $theme = wp_get_theme();
+ $title = __( 'Theme License - ', 'updatepulse-updater' ) . $theme->get( 'Name' );
+
+ $this->get_template(
+ 'theme-page-license.php',
+ array(
+ 'form' => $this->get_license_form(),
+ 'title' => $title,
+ 'theme' => $theme,
+ )
+ );
+ }
+
+ /*******************************************************************
+ * Protected methods
+ *******************************************************************/
+
+ protected static function is_plugin_file( $absolute_path ) {
+ $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
+ $mu_plugin_dir = wp_normalize_path( WPMU_PLUGIN_DIR );
+
+ if (
+ ( 0 === strpos( $absolute_path, $plugin_dir ) ) ||
+ ( 0 === strpos( $absolute_path, $mu_plugin_dir ) )
+ ) {
+ return true;
+ }
+
+ if ( ! is_file( $absolute_path ) ) {
+ return false;
+ }
+
+ if ( function_exists( 'get_file_data' ) ) {
+ $headers = get_file_data( $absolute_path, array( 'Name' => 'Plugin Name' ), 'plugin' );
+
+ return ! empty( $headers['Name'] );
+ }
+
+ return false;
+ }
+
+ protected static function get_theme_directory_name( $absolute_path ) {
+
+ if ( is_file( $absolute_path ) ) {
+ $absolute_path = dirname( $absolute_path );
+ }
+
+ if ( file_exists( $absolute_path . '/style.css' ) ) {
+ return basename( $absolute_path );
+ }
+
+ return null;
+ }
+
+ protected function get_option( $option, $other_package_slug = false ) {
+ global $wp_filesystem;
+
+ if ( ! isset( $wp_filesystem ) ) {
+ include_once ABSPATH . 'wp-admin/includes/file.php';
+
+ WP_Filesystem();
+ }
+
+ if ( $other_package_slug && $this->package_path ) {
+ $parts = explode( '/', untrailingslashit( $this->package_path ) );
+ $index = count( $parts ) - 1;
+ $parts[ $index ] = $other_package_slug;
+ $package_path = trailingslashit( implode( '/', $package_path ) );
+
+ if ( $wp_filesystem->exists( $package_path . 'updatepulse.json' ) ) {
+ $updatepulse_json = $wp_filesystem->get_contents( $package_path . 'updatepulse.json' );
+ }
+
+ if ( $updatepulse_json ) {
+ $json_options = json_decode( $updatepulse_json, true );
+
+ if ( isset( $json_options[ $option ] ) ) {
+ return $json_options[ $option ];
+ }
+ }
+ } else {
+
+ if (
+ $this->package_path &&
+ ! isset( $this->json_options ) &&
+ $wp_filesystem->exists( $this->package_path . 'updatepulse.json' )
+ ) {
+ $updatepulse_json = $wp_filesystem->get_contents( $this->package_path . 'updatepulse.json' );
+
+ if ( $updatepulse_json ) {
+ $this->json_options = json_decode( $updatepulse_json, true );
+ }
+ }
+
+ if ( isset( $this->json_options[ $option ] ) ) {
+ return $this->json_options[ $option ];
+ }
+ }
+
+ return '';
+ }
+
+ protected function update_option( $option, $value ) {
+ global $wp_filesystem;
+
+ if ( ! isset( $wp_filesystem ) ) {
+ include_once ABSPATH . 'wp-admin/includes/file.php';
+
+ WP_Filesystem();
+ }
+
+ if ( ! isset( $this->json_options ) ) {
+ $updatepulse_json = $wp_filesystem->get_contents( $this->package_path . 'updatepulse.json' );
+
+ if ( $updatepulse_json ) {
+ $this->json_options = json_decode( $updatepulse_json, true );
+ }
+ }
+
+ $this->json_options[ $option ] = $value;
+ $updatepulse_json = wp_json_encode(
+ $this->json_options,
+ JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES
+ );
+
+ $wp_filesystem->put_contents( $this->package_path . 'updatepulse.json', $updatepulse_json, FS_CHMOD_FILE );
+ }
+
+ protected function delete_option( $option ) {
+ global $wp_filesystem;
+
+ if ( ! isset( $wp_filesystem ) ) {
+ include_once ABSPATH . 'wp-admin/includes/file.php';
+
+ WP_Filesystem();
+ }
+
+ if ( ! isset( $this->json_options ) ) {
+ $updatepulse_json = $wp_filesystem->get_contents( $this->package_path . 'updatepulse.json' );
+
+ if ( $updatepulse_json ) {
+ $this->json_options = json_decode( $updatepulse_json, true );
+ }
+ }
+
+ if ( isset( $this->json_options[ $option ] ) ) {
+ unset( $this->json_options[ $option ] );
+
+ $updatepulse_json = wp_json_encode(
+ $this->json_options,
+ JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES
+ );
+
+ $wp_filesystem->put_contents(
+ $this->package_path . 'updatepulse.json',
+ $updatepulse_json,
+ FS_CHMOD_FILE
+ );
+ }
+ }
+
+ protected function save_updatepulse_options() {
+ global $wp_filesystem;
+
+ if ( ! isset( $wp_filesystem ) ) {
+ include_once ABSPATH . 'wp-admin/includes/file.php';
+
+ WP_Filesystem();
+ }
+
+ if ( ! isset( $this->json_options ) ) {
+ $updatepulse_json = $wp_filesystem->get_contents( $this->package_path . 'updatepulse.json' );
+
+ if ( $updatepulse_json ) {
+ $this->json_options = json_decode( $updatepulse_json, true );
+ }
+ }
+
+ update_option( 'updatepulse_' . $this->package_slug . '_options', $this->json_options );
+ }
+
+ protected function restore_updatepulse_options() {
+ $updatepulse_options = get_option( 'updatepulse_' . $this->package_slug . '_options' );
+
+ if ( $updatepulse_options ) {
+ global $wp_filesystem;
+
+ if ( ! isset( $wp_filesystem ) ) {
+ include_once ABSPATH . 'wp-admin/includes/file.php';
+
+ WP_Filesystem();
+ }
+
+ $server = $this->get_option( 'server' );
+ $updatepulse_options['server'] = $server;
+ $updatepulse_json = wp_json_encode(
+ $updatepulse_options,
+ JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES
+ );
+
+ $wp_filesystem->put_contents(
+ $this->package_path . 'updatepulse.json',
+ $updatepulse_json,
+ FS_CHMOD_FILE
+ );
+ delete_option( 'updatepulse_' . $this->package_slug . '_options' );
+ }
+ }
+
+ protected function do_query_license( $query_type ) {
+
+ if ( ! wp_verify_nonce( $_REQUEST['nonce'], 'license_nonce' ) ) {
+ $error = new WP_Error( 'License', 'Unauthorised access.' );
+
+ wp_send_json_error( $error );
+ }
+
+ $license_key = $_REQUEST['license_key'];
+ $this->package_slug = $_REQUEST['package_slug'];
+
+ if ( empty( $license_key ) ) {
+ $error = new WP_Error( 'License', 'A license key is required.' );
+
+ wp_send_json_error( $error );
+ }
+
+ $api_params = array(
+ 'action' => $query_type,
+ 'license_key' => $license_key,
+ 'allowed_domains' => $_SERVER['SERVER_NAME'],
+ 'package_slug' => rawurlencode( $this->package_slug ),
+ 'locale' => get_locale(),
+ );
+ $query = esc_url_raw( add_query_arg( $api_params, $this->license_server_url ) );
+ $response = wp_remote_get(
+ $query,
+ array(
+ 'timeout' => 20,
+ 'sslverify' => true,
+ )
+ );
+
+ if ( is_wp_error( $response ) ) {
+ $license_data = new stdClass();
+ $license_data->clear_key = true;
+ $license_data->message = $response->get_error_message();
+
+ return $license_data;
+ }
+
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
+
+ if ( JSON_ERROR_NONE !== json_last_error() ) {
+ $license_data = new stdClass();
+ $license_data->message = __( 'Unexpected Error! The query to retrieve the license data returned a malformed response.', 'updatepulse-updater' );
+
+ return $license_data;
+ }
+
+ if ( 200 !== wp_remote_retrieve_response_code( $response ) ) {
+ $license_data = $this->handle_license_errors( $license_data );
+ }
+
+ return $license_data;
+ }
+
+ protected function handle_license_errors( $license_data ) {
+ $timezone = new DateTimeZone( wp_timezone_string() );
+ $return = array( 'clear_key' => false );
+ $error_code = ( isset( $license_data->code ) ) ? $license_data->code : 'unknown';
+ $error_data = ( isset( $license_data->data ) ) ? $license_data->data : (object) array();
+
+ switch ( $error_code ) {
+ case 'license_already_activated':
+ $return['message'] = __( 'The license is already in use for this domain.', 'updatepulse-updater' );
+
+ break;
+ case 'max_domains_reached':
+ $return['clear_key'] = true;
+ $return['message'] = __( 'The license has reached the maximum number of activations and cannot be activated for this domain.', 'updatepulse-updater' );
+
+ break;
+ case 'license_already_deactivated':
+ $return['clear_key'] = true;
+ $return['message'] = __( 'The license is already inactive for this domain.', 'updatepulse-updater' );
+
+ break;
+ case 'too_early_deactivation':
+ $return['message'] = __( 'The license may not be deactivated yet.', 'updatepulse-updater' );
+
+ break;
+ case 'illegal_license_status':
+ $status = ( isset( $error_data->status ) ) ? $error_data->status : 'unknown';
+
+ if ( 'blocked' === $status ) {
+ $return['message'] = __( 'The license is blocked and cannot be updated anymore. Please use another license key.', 'updatepulse-updater' );
+ } elseif ( 'pending' === $status ) {
+ $return['clear_key'] = true;
+ $return['message'] = __( 'The license has not been activated and its status is still pending. Please try again or use another license key.', 'updatepulse-updater' );
+ } elseif ( 'invalid' === $status ) {
+ $return['clear_key'] = true;
+ $return['message'] = __( 'The provided license key is invalid. Please use another license key.', 'updatepulse-updater' );
+ } elseif ( 'expired' === $status ) {
+
+ if ( isset( $error_data->date_expiry ) ) {
+ $date = new DateTime( 'now', $timezone );
+
+ $date->setTimestamp( intval( $license_data->date_expiry ) );
+
+ $return['message'] = sprintf(
+ // translators: the license expiry date
+ __( 'The license expired on %s and needs to be renewed to be updated.', 'updatepulse-updater' ),
+ $date->format( get_option( 'date_format' ) )
+ );
+ } else {
+ $return['message'] = __( 'The license expired and needs to be renewed to be updated.', 'updatepulse-updater' );
+ }
+ }
+
+ break;
+ case 'invalid_license_key':
+ $return['clear_key'] = true;
+ $return['message'] = __( 'The provided license key does not appear to be valid. Please use another license key.', 'updatepulse-updater' );
+
+ break;
+ case 'invalid_license':
+ if ( 'Plugin' === $this->type ) {
+ $return['message'] = __( 'An active license is required to update the plugin. Please provide a valid license key in Plugins > Installed Plugins.', 'updatepulse-updater' );
+ } else {
+ $return['message'] = __( 'An active license is required to update the theme. Please provide a valid license key in Appearence > Theme License.', 'updatepulse-updater' );
+ }
+
+ break;
+ case 'license_error':
+ $return['message'] = __( 'An unexpected error has occured.', 'updatepulse-updater' );
+ $return['message'] .= '
' . $error_data->message;
+
+ break;
+ case 'unexpected_error':
+ default:
+ $return['message'] = __( 'An unexpected error has occured. Please try again. If the problem persists, please contact support.', 'updatepulse-updater' );
+
+ break;
+ }
+
+ return (object) $return;
+ }
+
+ protected function get_license_form() {
+ $license = $this->get_option( 'licenseKey' );
+ $next_deactivate = $this->get_option( 'licenseNextDeactivate' );
+ $may_deactivate = false;
+ $deactivate_text = '';
+
+ if ( time() < $next_deactivate ) {
+ $deactivate_text = __( 'Deactivation is possible after:', 'updatepulse-updater' );
+ } else {
+ $may_deactivate = true;
+ $deactivate_text = __( 'Deactivate', 'updatepulse-updater' );
+ }
+
+ ob_start();
+
+ $this->get_template(
+ 'license-form.php',
+ array(
+ 'license' => $license,
+ 'package_id' => $this->package_id,
+ 'package_slug' => $this->package_slug,
+ 'show_license' => ( ! empty( $license ) ),
+ 'may_deactivate' => $may_deactivate,
+ 'deactivate_text' => $deactivate_text,
+ 'next_deactivate' => intval( $next_deactivate ),
+ 'date_format' => get_option( 'date_format' ) . ' H:i:s',
+ )
+ );
+
+ return ob_get_clean();
+ }
+
+ protected function set_type() {
+ $theme_directory = self::get_theme_directory_name( $this->package_path );
+
+ if ( self::is_plugin_file( $this->package_path ) ) {
+ $this->type = 'Plugin';
+ } elseif ( null !== $theme_directory ) {
+ $this->type = 'Theme';
+ } else {
+ throw new RuntimeException(
+ sprintf(
+ 'The package updater cannot determine if "%s" is a plugin or a theme. ',
+ esc_html( htmlentities( $this->package_path ) )
+ )
+ );
+ }
+ }
+ }
+}
diff --git a/lib/updatepulse-updater/js/main.js b/lib/updatepulse-updater/js/main.js
new file mode 100644
index 0000000..6e54c52
--- /dev/null
+++ b/lib/updatepulse-updater/js/main.js
@@ -0,0 +1,310 @@
+/* global UPupdater */
+
+let P = function(global) {
+
+ let P = {lang: 'en-GB'};
+
+ // Format tokens and functions
+ let tokens = {
+ // DAY
+ // day of month, pad to 2 digits
+ d: d => pad(d.getDate()),
+ // Day name, first 3 letters
+ D: d => getDayName(d).substr(0,3),
+ // day of month, no padding
+ j: d => d.getDate(),
+ // Full day name
+ l: d => getDayName(d),
+ // ISO weekday number (1 = Monday ... 7 = Sunday)
+ N: d => d.getDay() || 7,
+ // Ordinal suffix for day of the month
+ S: d => getOrdinal(d.getDate()),
+ // Weekday number (0 = Sunday, 6 = Saturday)
+ w: d => d.getDay(),
+ // Day of year, 1 Jan is 0
+ z: d => {
+ let Y = d.getFullYear(),
+ M = d.getMonth(),
+ D = d.getDate();
+ return Math.floor((Date.UTC(Y, M, D) - Date.UTC(Y, 0, 1)) / 8.64e7);
+ },
+ // ISO week number of year
+ W: d => getWeekNumber(d)[1],
+ // Full month name
+ F: d => getMonthName(d),
+ // Month number, padded
+ m: d => pad(d.getMonth() + 1),
+ // 3 letter month name
+ M: d => getMonthName(d).substr(0, 3),
+ // Month number, no pading
+ n: d => d.getMonth() + 1,
+ // Days in month
+ t: d => new Date(d.getFullYear(), d.getMonth() + 1, 0).getDate(),
+ // Return 1 if d is a leap year, otherwise 0
+ L: d => new Date(d.getFullYear(), 1, 29).getDate() == 29? 1 : 0,
+ // ISO week numbering year
+ o: d => getWeekNumber(d)[0],
+ // 4 digit year
+ Y: d => {
+ let year = d.getFullYear();
+ if (year < 0) {
+ year = '-' + ('000' + Math.abs(year)).slice(-4);
+ }
+ return year;
+ },
+ // 2 digit year
+ y: d => {
+ let year = d.getFullYear();
+ if (year >= 0) {
+ return ('0' + year).slice(-2);
+ } else {
+ year = Math.abs(year);
+ return - + ('0' + year).slice(-2);
+ }
+ },
+ // Lowercase am or pm
+ a: d => d.getHours() < 12? 'am' : 'pm',
+ // Uppercase AM or PM
+ A: d => d.getHours() < 12? 'AM' : 'PM',
+ // Swatch internet time
+ B: d => (((+d + 3.6e6) % 8.64e7) / 8.64e4).toFixed(0),
+ // 12 hour hour no padding
+ g: d => (d.getHours() % 12) || 12,
+ // 24 hour hour no padding
+ G: d => d.getHours(),
+ // 12 hour hour padded
+ h: d => pad((d.getHours() % 12) || 12),
+ // 24 hour hour padded
+ H: d => pad(d.getHours()),
+ // Minutes padded
+ i: d => pad(d.getMinutes()),
+ // Seconds padded
+ s: d => pad(d.getSeconds()),
+ // Microseconds padded - always returns 000000
+ u: d => '000000',
+ // Milliseconds
+ v: d => padd(d.getMilliseconds()),
+ // Timezone identifier: UTC, GMT or IANA Tz database identifier - Not supported
+ e: d => void 0,
+ // If in daylight saving: 1 yes, 0 no
+ I: d => d.getTimezoneOffset() == getOffsets(d)[0]? 0 : 1,
+ // Difference to GMT in hours, e.g. +0200
+ O: d => minsToHours(-d.getTimezoneOffset(), false),
+ // Difference to GMT in hours with colon, e.g. +02:00
+ P: d => minsToHours(-d.getTimezoneOffset(), true),
+ // Timezone abbreviation, e.g. AEST. Dodgy but may work…
+ T: d => d.toLocaleString('en',{year:'numeric',timeZoneName:'long'}).replace(/[^A-Z]/g, ''),
+ // Timezone offset in seconds, +ve east
+ Z: d => d.getTimezoneOffset() * -60,
+ // ISO 8601 format - local
+ c: d => P.format(d, 'Y-m-d\\TH:i:sP'),
+ // RFC 2822 formatted date, local timezone
+ r: d => P.format(d, 'D, d M Y H:i:s O'),
+ // Seconds since UNIX epoch (same as ECMAScript epoch)
+ U: d => d.getTime() / 1000 | 0
+ };
+
+ // Helpers
+ // Return day name for date
+ let getDayName = d => d.toLocaleString(P.lang, {weekday:'long'});
+ // Return month name for date
+ let getMonthName = d => d.toLocaleString(P.lang, {month:'long'});
+ // Return [std offest, DST offset]. If no DST, same offset for both
+ let getOffsets = d => {
+ let y = d.getFullYear();
+ let offsets = [0, 2, 5, 9].map(m => new Date(y, m).getTimezoneOffset());
+ return [Math.max(...offsets), Math.min(...offsets)];
+ }
+ // Return ordinal for positive integer
+ let getOrdinal = n => {
+ n = n % 100;
+ let ords = ['th','st','nd','rd'];
+ return (n < 10 || n > 13) ? ords[n%10] || 'th' : 'th';
+ };
+ // Return ISO week number and year
+ let getWeekNumber = d => {
+ let e = new Date(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate()));
+ e.setUTCDate(e.getUTCDate() + 4 - (e.getUTCDay()||7));
+ var yearStart = new Date(Date.UTC(e.getUTCFullYear(),0,1));
+ var weekNo = Math.ceil(( ( (e - yearStart) / 86400000) + 1)/7);
+ return [e.getUTCFullYear(), weekNo];
+ };
+ // Return true if o is a Date, otherwise false
+ let isDate = o => Object.prototype.toString.call(o) == '[object Date]';
+ // Convert numeric minutes to +/-HHMM or +/-HH:MM
+ let minsToHours = (mins, colon) => {
+ let sign = mins < 0? '-' : '+';
+ mins = Math.abs(mins);
+ let H = pad(mins / 60 | 0);
+ let M = pad(mins % 60);
+ return sign + H + (colon? ':' : '') + M;
+ };
+ // Pad single digits with a leading zero
+ let pad = n => (n < 10? '0' : '') + n;
+ // Pad single digits with two leading zeros, double digits with one leading zero
+ let padd = n => (n < 10? '00' : n < 100? '0' : '') + n;
+ // To be completed...
+ let parse = s => 'not complete';
+
+ P.parse = parse;
+
+ // Format date using token string s
+ function format(date, s) {
+
+ // Minimal input validation
+ if (!isDate(date) || typeof s != 'string') {
+ return; // undefined
+ }
+
+ return s.split('').reduce((acc, c, i, chars) => {
+ // Add quoted characters to output
+ if (c == '\\') {
+ acc += chars.splice(i+1, 1);
+ // If character matches a token, use it
+ } else if (c in tokens) {
+ acc += tokens[c](date);
+ // Otherwise, just add character to output
+ } else {
+ acc += c;
+ }
+ return acc;
+ }, '');
+ }
+ P.format = format;
+
+ return P;
+}(this);
+
+jQuery(document).ready(function ($) {
+
+ $('.wrap-license').each(function () {
+ var licenseContainer = $(this);
+
+ if (licenseContainer.find('.deactivate-license').is(':disabled')) {
+ var nextDeactivate = licenseContainer.find('.deactivate-license').data('next_deactivate');
+ var dateFormat = licenseContainer.find('.deactivate-license').data('date_format');
+ var date = new Date(nextDeactivate * 1000);
+ console.log(date, nextDeactivate);
+
+ P.lang = { lang: document.documentElement.lang };
+
+ licenseContainer.find('.deactivate-license').val(licenseContainer.find('.deactivate-license').val() + ' ' + P.format(date, dateFormat));
+ }
+ });
+
+ $('body').on('click', '.wrap-license .activate-license', function (e) {
+ e.preventDefault();
+
+ var licenseContainer = $(this).closest('.wrap-license');
+ var packageID = licenseContainer.attr('id').replace('wrap_license_', '');
+ var data = {
+ 'nonce' : licenseContainer.data('nonce'),
+ 'license_key' : licenseContainer.find('.license').val(),
+ 'package_slug' : licenseContainer.data('package_slug'),
+ 'action' : 'upupdater_' + packageID + '_activate_license'
+ };
+
+ $.ajax({
+ url: UPupdater.ajax_url,
+ data: data,
+ type: 'POST',
+ success: function (response) {
+
+ if (response.success) {
+ licenseContainer.find('.current-license').html(licenseContainer.find('.license').val());
+ licenseContainer.find('.current-license-error').addClass('hidden');
+ licenseContainer.find('.license-message').removeClass('hidden');
+ licenseContainer.find('.deactivate-license-container').removeClass('hidden');
+ licenseContainer.find('.activate-license-container').addClass('hidden');
+ $('.license-error-' + licenseContainer.data('package_slug') + '.notice').addClass('hidden');
+
+ if (response.data.may_deactivate) {
+ licenseContainer.find('.deactivate-license').prop('disabled', false);
+ } else {
+ licenseContainer.find('.deactivate-license').prop('disabled', true);
+ }
+
+ licenseContainer.find('.deactivate-license').val(response.data.deactivate_text);
+
+ if (licenseContainer.find('.deactivate-license').is(':disabled')) {
+ var nextDeactivate = response.data.next_deactivate;
+ var dateFormat = response.data.date_format;
+ var date = new Date(nextDeactivate * 1000);
+ console.log(date, nextDeactivate);
+
+ P.lang = { lang: document.documentElement.lang };
+
+ licenseContainer.find('.deactivate-license').val(licenseContainer.find('.deactivate-license').val() + ' ' + P.format(date, dateFormat));
+ }
+
+ $('tr[data-plugin="' + packageID + '"] .column-auto-updates a').removeClass('hidden');
+ $('tr.plugin-update-tr:not(.updatepulse)[data-plugin="' + packageID + '"]').removeClass('hidden');
+ licenseContainer.closest('.theme-info').find('.theme-autoupdate').removeClass('hidden');
+ $('#update-theme').closest('.notice').removeClass('hidden');
+ } else {
+ var errorContainer = licenseContainer.find('.current-license-error');
+
+ errorContainer.html(response.data[0].message + '
');
+ errorContainer.removeClass('hidden');
+ licenseContainer.find('.license-message').removeClass('hidden');
+ }
+
+ if ('' === licenseContainer.find('.current-license').html()) {
+ licenseContainer.find('.current-license-label').addClass('hidden');
+ licenseContainer.find('.current-license').addClass('hidden');
+ } else {
+ licenseContainer.find('.current-license-label').removeClass('hidden');
+ licenseContainer.find('.current-license').removeClass('hidden');
+ }
+ }
+ });
+ });
+
+ $('body').on('click', '.wrap-license .deactivate-license', function (e) {
+ e.preventDefault();
+
+ var licenseContainer = $(this).closest('.wrap-license');
+ var packageID = licenseContainer.attr('id').replace('wrap_license_', '');
+ var data = {
+ 'nonce' : licenseContainer.data('nonce'),
+ 'license_key' : licenseContainer.find('.license').val(),
+ 'package_slug' : licenseContainer.data('package_slug'),
+ 'action' : 'upupdater_' + packageID + '_deactivate_license'
+ };
+
+ $.ajax({
+ url: UPupdater.ajax_url,
+ data: data,
+ type: 'POST',
+ success: function (response) {
+
+ if (response.success) {
+ licenseContainer.find('.current-license').html('');
+ licenseContainer.find('.current-license-error').addClass('hidden');
+ licenseContainer.find('.license-message').addClass('hidden');
+ licenseContainer.find('.deactivate-license-container').addClass('hidden');
+ licenseContainer.find('.activate-license-container').removeClass('hidden');
+
+ $('tr[data-plugin="' + packageID + '"] .column-auto-updates a').addClass('hidden');
+ $('tr.plugin-update-tr:not(.updatepulse)[data-plugin="' + packageID + '"]').addClass('hidden');
+ licenseContainer.closest('.theme-info').find('.theme-autoupdate').addClass('hidden');
+ $('#update-theme').closest('.notice').addClass('hidden');
+ } else {
+ var errorContainer = licenseContainer.find('.current-license-error');
+
+ errorContainer.html(response.data[0].message + '
');
+ errorContainer.removeClass('hidden');
+ licenseContainer.find('.license-message').removeClass('hidden');
+ }
+
+ if ('' === licenseContainer.find('.current-license').html()) {
+ licenseContainer.find('.current-license-label').addClass('hidden');
+ licenseContainer.find('.current-license').addClass('hidden');
+ } else {
+ licenseContainer.find('.current-license-label').removeClass('hidden');
+ licenseContainer.find('.current-license').removeClass('hidden');
+ }
+ }
+ });
+ });
+});
\ No newline at end of file
diff --git a/lib/updatepulse-updater/js/main.min.js b/lib/updatepulse-updater/js/main.min.js
new file mode 100644
index 0000000..c02821d
--- /dev/null
+++ b/lib/updatepulse-updater/js/main.min.js
@@ -0,0 +1 @@
+let P=function(e){function t(e,t){if(r(e)&&"string"==typeof t)return t.split("").reduce((t,a,i,d)=>(t+="\\"==a?d.splice(i+1,1):a in n?n[a](e):a,t),"")}let a={lang:"en-GB"},n={d:e=>u(e.getDate()),D:e=>i(e).substr(0,3),j:e=>e.getDate(),l:e=>i(e),N:e=>e.getDay()||7,S:e=>s(e.getDate()),w:e=>e.getDay(),z:e=>{let t=e.getFullYear(),a=e.getMonth(),n=e.getDate();return Math.floor((Date.UTC(t,a,n)-Date.UTC(t,0,1))/864e5)},W:e=>c(e)[1],F:e=>d(e),m:e=>u(e.getMonth()+1),M:e=>d(e).substr(0,3),n:e=>e.getMonth()+1,t:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),L:e=>29==new Date(e.getFullYear(),1,29).getDate()?1:0,o:e=>c(e)[0],Y:e=>{let t=e.getFullYear();return t<0&&(t="-"+("000"+Math.abs(t)).slice(-4)),t},y:e=>{let t=e.getFullYear();return t>=0?("0"+t).slice(-2):(t=Math.abs(t),-+("0"+t).slice(-2))},a:e=>e.getHours()<12?"am":"pm",A:e=>e.getHours()<12?"AM":"PM",B:e=>((+e+36e5)%864e5/86400).toFixed(0),g:e=>e.getHours()%12||12,G:e=>e.getHours(),h:e=>u(e.getHours()%12||12),H:e=>u(e.getHours()),i:e=>u(e.getMinutes()),s:e=>u(e.getSeconds()),u:e=>"000000",v:e=>g(e.getMilliseconds()),e:e=>void 0,I:e=>e.getTimezoneOffset()==l(e)[0]?0:1,O:e=>o(-e.getTimezoneOffset(),!1),P:e=>o(-e.getTimezoneOffset(),!0),T:e=>e.toLocaleString("en",{year:"numeric",timeZoneName:"long"}).replace(/[^A-Z]/g,""),Z:e=>-60*e.getTimezoneOffset(),c:e=>a.format(e,"Y-m-d\\TH:i:sP"),r:e=>a.format(e,"D, d M Y H:i:s O"),U:e=>e.getTime()/1e3|0},i=e=>e.toLocaleString(a.lang,{weekday:"long"}),d=e=>e.toLocaleString(a.lang,{month:"long"}),l=e=>{let t=e.getFullYear(),a=[0,2,5,9].map(e=>new Date(t,e).getTimezoneOffset());return[Math.max(...a),Math.min(...a)]},s=e=>{e%=100;let t=["th","st","nd","rd"];return(e<10||e>13)&&t[e%10]||"th"},c=e=>{let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));var a=new Date(Date.UTC(t.getUTCFullYear(),0,1)),n=Math.ceil(((t-a)/864e5+1)/7);return[t.getUTCFullYear(),n]},r=e=>"[object Date]"==Object.prototype.toString.call(e),o=(e,t)=>{let a=e<0?"-":"+";e=Math.abs(e);let n=u(e/60|0),i=u(e%60);return a+n+(t?":":"")+i},u=e=>(e<10?"0":"")+e,g=e=>(e<10?"00":e<100?"0":"")+e,f=e=>"not complete";return a.parse=f,a.format=t,a}();jQuery(document).ready(function(e){e(".wrap-license").each(function(){var t=e(this);if(t.find(".deactivate-license").is(":disabled")){var a=t.find(".deactivate-license").data("next_deactivate"),n=t.find(".deactivate-license").data("date_format"),i=new Date(1e3*a);console.log(i,a),P.lang={lang:document.documentElement.lang},t.find(".deactivate-license").val(t.find(".deactivate-license").val()+" "+P.format(i,n))}}),e("body").on("click",".wrap-license .activate-license",function(t){t.preventDefault();var a=e(this).closest(".wrap-license"),n=a.attr("id").replace("wrap_license_",""),i={nonce:a.data("nonce"),license_key:a.find(".license").val(),package_slug:a.data("package_slug"),action:"upupdater_"+n+"_activate_license"};e.ajax({url:UPupdater.ajax_url,data:i,type:"POST",success:function(t){if(t.success){if(a.find(".current-license").html(a.find(".license").val()),a.find(".current-license-error").addClass("hidden"),a.find(".license-message").removeClass("hidden"),a.find(".deactivate-license-container").removeClass("hidden"),a.find(".activate-license-container").addClass("hidden"),e(".license-error-"+a.data("package_slug")+".notice").addClass("hidden"),t.data.may_deactivate?a.find(".deactivate-license").prop("disabled",!1):a.find(".deactivate-license").prop("disabled",!0),a.find(".deactivate-license").val(t.data.deactivate_text),a.find(".deactivate-license").is(":disabled")){var i=t.data.next_deactivate,d=t.data.date_format,l=new Date(1e3*i);console.log(l,i),P.lang={lang:document.documentElement.lang},a.find(".deactivate-license").val(a.find(".deactivate-license").val()+" "+P.format(l,d))}e('tr[data-plugin="'+n+'"] .column-auto-updates a').removeClass("hidden"),e('tr.plugin-update-tr:not(.updatepulse)[data-plugin="'+n+'"]').removeClass("hidden"),a.closest(".theme-info").find(".theme-autoupdate").removeClass("hidden"),e("#update-theme").closest(".notice").removeClass("hidden")}else{var s=a.find(".current-license-error");s.html(t.data[0].message+"
"),s.removeClass("hidden"),a.find(".license-message").removeClass("hidden")}""===a.find(".current-license").html()?(a.find(".current-license-label").addClass("hidden"),a.find(".current-license").addClass("hidden")):(a.find(".current-license-label").removeClass("hidden"),a.find(".current-license").removeClass("hidden"))}})}),e("body").on("click",".wrap-license .deactivate-license",function(t){t.preventDefault();var a=e(this).closest(".wrap-license"),n=a.attr("id").replace("wrap_license_",""),i={nonce:a.data("nonce"),license_key:a.find(".license").val(),package_slug:a.data("package_slug"),action:"upupdater_"+n+"_deactivate_license"};e.ajax({url:UPupdater.ajax_url,data:i,type:"POST",success:function(t){if(t.success)a.find(".current-license").html(""),a.find(".current-license-error").addClass("hidden"),a.find(".license-message").addClass("hidden"),a.find(".deactivate-license-container").addClass("hidden"),a.find(".activate-license-container").removeClass("hidden"),e('tr[data-plugin="'+n+'"] .column-auto-updates a').addClass("hidden"),e('tr.plugin-update-tr:not(.updatepulse)[data-plugin="'+n+'"]').addClass("hidden"),a.closest(".theme-info").find(".theme-autoupdate").addClass("hidden"),e("#update-theme").closest(".notice").addClass("hidden");else{var i=a.find(".current-license-error");i.html(t.data[0].message+"
"),i.removeClass("hidden"),a.find(".license-message").removeClass("hidden")}""===a.find(".current-license").html()?(a.find(".current-license-label").addClass("hidden"),a.find(".current-license").addClass("hidden")):(a.find(".current-license-label").removeClass("hidden"),a.find(".current-license").removeClass("hidden"))}})})});
\ No newline at end of file
diff --git a/lib/updatepulse-updater/languages/updatepulse-updater.pot b/lib/updatepulse-updater/languages/updatepulse-updater.pot
new file mode 100644
index 0000000..2c14891
--- /dev/null
+++ b/lib/updatepulse-updater/languages/updatepulse-updater.pot
@@ -0,0 +1,123 @@
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: UpdatePulse Updater\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2025-01-06 06:26+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: \n"
+"Language: \n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Loco https://localise.biz/\n"
+"X-Loco-Version: 2.6.14; wp-6.7.1\n"
+"X-Domain: updatepulse-updater"
+
+#: lib/updatepulse-updater/templates/license-form.php:11
+msgid "Activate"
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:844
+msgid ""
+"An active license is required to update the plugin. Please provide a valid "
+"license key in Plugins > Installed Plugins."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:846
+msgid ""
+"An active license is required to update the theme. Please provide a valid "
+"license key in Appearence > Theme License."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:852
+msgid ""
+"An unexpected error has occured. Please try again. If the problem persists, "
+"please contact the author of the plugin."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:854
+msgid ""
+"An unexpected error has occured. Please try again. If the problem persists, "
+"please contact the author of the theme."
+msgstr ""
+
+#: lib/updatepulse-updater/templates/license-form.php:6
+msgid "Current license key:"
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:356
+#: lib/updatepulse-updater/class-updatepulse-updater.php:871
+msgid "Deactivate"
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:363
+#: lib/updatepulse-updater/class-updatepulse-updater.php:868
+msgid "Deactivation is possible after:"
+msgstr ""
+
+#: lib/updatepulse-updater/templates/license-form.php:9
+msgid "License key:"
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:828
+msgid "The license expired and needs to be renewed to be updated."
+msgstr ""
+
+#. the license expiry date
+#: lib/updatepulse-updater/class-updatepulse-updater.php:824
+#, php-format
+msgid "The license expired on %s and needs to be renewed to be updated."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:834
+msgid ""
+"The license has not been activated and its status is still pending. Please "
+"try again or use another license key."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:803
+msgid ""
+"The license has reached the maximum number of activations and cannot be "
+"activated for this domain."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:800
+msgid "The license is already in use for this domain."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:809
+msgid "The license is already inactive for this domain."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:831
+msgid ""
+"The license is blocked and cannot be updated anymore. Please use another "
+"license key."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:811
+msgid "The license may not be deactivated yet."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:840
+msgid ""
+"The provided license key does not appear to be valid. Please use another "
+"license key."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:837
+msgid "The provided license key is invalid. Please use another license key."
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:528
+msgid "Theme License - "
+msgstr ""
+
+#: lib/updatepulse-updater/class-updatepulse-updater.php:781
+msgid ""
+"Unexpected Error! The query to retrieve the license data returned a "
+"malformed response."
+msgstr ""
diff --git a/lib/updatepulse-updater/templates/license-form.php b/lib/updatepulse-updater/templates/license-form.php
new file mode 100644
index 0000000..e6f445f
--- /dev/null
+++ b/lib/updatepulse-updater/templates/license-form.php
@@ -0,0 +1,17 @@
+
+
diff --git a/lib/updatepulse-updater/templates/plugin-page-license-row.php b/lib/updatepulse-updater/templates/plugin-page-license-row.php
new file mode 100644
index 0000000..9c6997e
--- /dev/null
+++ b/lib/updatepulse-updater/templates/plugin-page-license-row.php
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+ |
+
diff --git a/lib/updatepulse-updater/templates/theme-page-license.php b/lib/updatepulse-updater/templates/theme-page-license.php
new file mode 100644
index 0000000..621fee6
--- /dev/null
+++ b/lib/updatepulse-updater/templates/theme-page-license.php
@@ -0,0 +1,11 @@
+
+
diff --git a/readme.txt b/readme.txt
index 5937af1..55d2f8f 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,10 +1,10 @@
=== Mind - AI Page Builder ===
-Contributors: nko
+Contributors: WenPai.org
Tags: ai, gpt, ai page builder, ai editor, copilot
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.2
-Stable tag: 0.3.0
+Stable tag: 0.5.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -25,7 +25,7 @@ Mind is not just an AI writing assistant - it's a full-featured page builder tha
=== 🚀 Community-Driven Development ===
-This plugin was created as an experiment in the hope that the community will influence the course of its development. Any wishes, feature requests, or bug reports are welcome and will be the motivation for developing the functionality of the plugin in [GitHub Discussions](https://github.com/nk-crew/mind/discussions).
+This plugin was created as an experiment in the hope that the community will influence the course of its development. Any wishes, feature requests, or bug reports are welcome and will be the motivation for developing the functionality of the plugin in [GitHub Document](https://sharecms.com/document/wp-mind).
=== ✍️ Writing Assistance ===
@@ -163,7 +163,7 @@ Select the section you want to enhance, click the Mind button in the toolbar, an
= 0.3.0 - Mar 16, 2025 =
- rewrite code from simple text generation to block building
-- added support for Claude 3.7 Sonnet, Claude 3.5 Haiku, OpenAI GPT-4o and OpenAI GPT-4o mini
+- added support for Claude 3.7 Sonnet, Claude 3.5 Haiku, OpenAI GPT-4o and OpenAI DeepSeek v3
= 0.2.0 - Dec 9, 2024 =
diff --git a/mind.php b/wpmind.php
similarity index 77%
rename from mind.php
rename to wpmind.php
index f21a7e6..fb993e1 100644
--- a/mind.php
+++ b/wpmind.php
@@ -1,12 +1,13 @@