소재지 ₍₍◝(・'ω'・)◟⁾⁾ 🐟️?看XM(^_−)☆哈先看看刚看过卡卡国看过了回来冷藏柜好极过估计 PNG %k25u25%fgd5n!edit-tag-form.php000064400000024651152213653150007727 0ustar00

labels->edit_item; ?>

' . $message . '

'; if ( $wp_http_referer ) { $message .= sprintf( '

%2$s

', esc_url( wp_validate_redirect( sanitize_url( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ), esc_html( $tax->labels->back_to_items ) ); } wp_admin_notice( $message, array( 'type' => $class, 'id' => 'message', 'paragraph_wrap' => false, ) ); } ?>
> name ) ) { $tag_name_value = esc_attr( $tag->name ); } ?> slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : ''; ?>
MKF)]2 '] ܯ; "-T UJ..?3LKi׀t쀿}߲6A;ƭ@؋̀˹j:7Ey|%fSS~1 fjNߕc:IDATxy|ם-ŶR߷c;vb;nӍvqI4mMm>8!I@ mm~y {#x,Z4K^._4sj 3T.n/k Ōgju"/00i4fyT8P a /!rQno+] W&T3uF$+{y!ZkjeTSW_[SBg?'i@ "=LFAQ83@OLZP ?A=!ӂ#U+R~ʟ \IkS^*T24_// ̩Խ#EyGԔI!eP~V1>\s 9 ϗYҪ3\(cs.3SfU5;~5knu-w-(QT$22F @m9b'#dAQhQ?WW.Nt3B`nE8H$:F@ƚclrt鐁 QT#AO c6X-ITj'pG uΩ)'U  ssK9W= ȡZ.?JP\,H4, oREn  daѦɆ.`&hyB{PVh(+TE`30;+woZumvۚ5w5;1mn|˪Mw~ K(G׍ յbH 1Ų~gdSgK\.V(犆Y`+ X`*4ȃ4B>W$3BaD --@"*)PiS9Baa0F c%J30#o'm<[s}jRޫ8GώzP:&Y8'+0@M"Wr C%WhNPScùBҏqgu惄 +KcQ=F QLWyQZbz ̘4 Ii&8q[ocJm`lXc` `7Sn=d0촀&@[Qth"2&@K@7%)E >X,8-xmT&°8 ?6I(V k2A|6rZ!=-E=#A/U&΂6b _ #)FbRYTF$DIP.Wȿn߲…4еY{Þ`a/]j[6[}+_տqo|k7o pM7Ƃ7)6(QbVϻg;o>']|{3{VR6)]VC4@55nw{Ww G]Cj kuu]yp/^# sj{I@X"vjr9ŒR k>>T"Up$N@^P+ؒ~?1 R_V#"X&i4dJ0X!3 SHjCEICISĞ GLɐS[ըWEW+tAv3,G"v0EMTQ %!8펇Ԋz"Y_WnNu &Y9 P(}U۳g^ ¼=Ӳ~_'v-;c;gk۳+[<ĀOcDE & #."Ժ ] SMrn#1bds3W~""9,Bk' ~=3kZg OA*,\&UT1]gNv{ wv?G :aOts&9@d)BbFb{#{Y i#umm& ;y0F*%Z8Z1ndQ&p:VuQndGժ?@[=Ȳp7H-2<fJ͠[Ȫr p#k'!R2d[!Cllޭ$(59EUa'2F  p#`M>Ƭz| Hڝl_ ͕͏)<ηyW?ż(zZ%ZVkݺV(2HT8rn |'ʡyQ-<(4_U|J.§ӗp\lƊg:(;x6$SQxW*6c+腺 {zR\AƸr׫# 7&b=ۃW<< 6Љ7%Ē6+4 NCbKT#Kq膹)ǯ_毨{RKw9գ{=fOkl~?޺mF K>˯?~cT DSU4'I)t: ȟeiw]  (0W"3wao*^;9 5]h 0f4u%?C뇨|Ȃ $=[QvxxNhOԗC)i[ٯ@P)oP5 U".ƥ[/*@Ӆ.򍇟=[[7߬8tȑ3>u7)/_X<~ZIENDB`images/arrows-2x.png000064400000001537152213653150010374 0ustar00PNG  IHDR&PLTErrrsssjjjooo___|||MMMQQQyyyqqqXXX~~~xxx|||[[[bbbqqqoooxxxzzz{[StRNS\AY V@+FX-/1POZRϧ#ܴ KţL 쫂9ϧ򥌶Q78%[$ޣg9=IDATx^r@n)e0If%e9NYdV{_Sw@}CXOy)ڟ 5b FQBW!m}nOxҏ K F̧Q7_R$}Ă( !no}&'2\w»0Uu LYg~ J w\WpJuPֲ寧򴟖ڞֿsB!N(\ͽ4$ ͫ #3=?M|)'/x[өrbX43 gf /!r-3y7rzoSȃA^*) T7sE])$36?vu ]]^]pQ~HIENDB`images/resize-rtl.gif000064400000000106152213653150010600 0ustar00GIF89a !, @)asX\AHHS;images/contribute-no-code.svg000064400000021362152213653150012241 0ustar00 images/date-button.gif000064400000000620152213653150010727 0ustar00GIF89a;lll[[[~~~ssspppmmmyyyccc|||iii^^^vvveee]]]fff```uuuˎ!;,@pg( 2j!PCQ4"nπ.(BbrPzDN ~-B-P41-B-J; W  BG-"2P0/6Q-I;n$P+P"-B-,(*5(#-B)-3%8#-)B;A;images/browser-rtl.png000064400000116352152213653150011014 0ustar00PNG  IHDRl,QoIDATx콉e]&_03=11CCb- lc0`M"fccU-}ec#[/xd={޷T}&%{U.I%{d뼈޽ɓ'~<߷9Ne*STǟWx.}߶qa2Le*{SŪ,qmm =eyE]GvDq*ST)m7x߿O=Le*Os뎠 2L廠'T2BnfT2<ST2T2LeLe*S{*ST캮ǩLe*SӻL=Le*`Oe*ST&T2g*`WU5Ne*STeLe*S{*ST2T25W^9^wuW1˲1U< GGo?;4z4ݡG7GÇxf{sY?hp<0Wy!_&==ſc}8uo:7ubngÏkpMw9ʣڳyc}<<b}n֡UWؖGI?kjtPjyΣ6JǸ_RWz|ߪq>quq9axw\px嗏>=Tv>nlIJ6o^[ۈm3qDzߛLmmkox&W}:o x=zukm]osaY?Mcm}n]m@87'j'ۈs6ڽ{\=x yk|\3umshyC}v_o~&c}W߯uM=uݿ7>=?^k>ۆnG(X7j<"[wZ<>~6xL[>XZ x^l[[xW`Duur˵q$/ka w&Xu-,c,q﨣e=Ķ|cݨ5Yo>go|p̞-~w<<,;gcbʼnvm@};HL8QmHx̀ 08?t&L^ d(ZE,“/Mx\0-&n'1f=Ƕ_ć`zw) 0p-ASW|vw6^c6>\ Vhڀ>zwA'w|?qo%. hscq 3 kˍ _Šif о7wy__\8og?}|r\_`qUw sNVnGNq%qegXs /  8i0Y=n P ҢOzǿp`'&Vl&07A#}L# f{;1N`5ZsvuaxgԂu08cE;jV l2x̮_4ph"  %BX|F h\n7w'le\T<V@ͅs|߃ m[&?лaA׾{+}3Kd:~nsp3~i/78x 98wSyώ/׼rO81 XsO$D`x4YjZט|`L]Jnh{N\B/8"xM}M&\L<{K8 dN6'2Xtޓ:`UXLH4b KBo= ZUv^}G)dp;,1u: {A3]Pm^p-j.KOYcI0"prZ\(h!,4  \O쏅Y,$z>Hʹ0z#Z8p|vSnޟ=fYw<\Ա[qq3_#(ۀ\Ա[{|ѩ_>_k.ہ;sQx4Q8إQ[䵤ΡyL$6KV$HPKƉB9D&A* 4~XidЭXLޒUo@[^BC&C[d~KX. &5=`N{l@#)0ͩw3ضA V$ ۅfKIdzⳔ$z.\h ZHd"X!9Z:Brt=~A:12D˵^7~K_~#ӥC}s{ln:P׎g #zGT#??X׎udkHWU\v6.JS}Ɋ,i ۑ50y$N :!)ʼnK)ҲH@`EۓU.& 1[JtgJ 0G^kQE'v6I%0ә9duxx.v!CYtmR-x3FPod p[{i+le1~iDzMt&Y cc6@]sk7ҙ`}4PXB;ַFg"wu~yԅ:wtk*ڨ u[n>Yző@;:Q6%pX*TLN4 əZI N0♻tU/4 y.r^ r*4L?NȅµU]mrwi./|?F(4y6֬\`Pr ԎuAS p_F' d iRڲ}x:ke+6ʀZs(2pCHr2p&t{V<=Gb<8k~q>{}ap"iS+`x^xACJC.傚/cy 0*Her rQ11qA}JCV]4to)f H'wT$U 7Y)[,gj>lmMVcٮbh6l%h F՘IbQG{Ormeo_5LAvޫ _xc`֏f٨uhWSz;X'> ۥX'>>|銳ή Xvus^e&[z )ȚzHse8]x[g*كQ E3zP`F-HZ ɹ&Vˤ g(0dk 8A/Vث4W9KK f-"/]d1c)=;KeNRv 㖝ce}0_XWRE;^%EpV0VY;eaeNr,qQtO0M AZN';``o8|>_LJzj k0G`?}`N}C"aV;[v'>d-2;Q`fR9hogٱNԽHVa[^toNNE/9 )f`/i(Z%\Y'ِ2f9_&K2`gS dI]*;g&).3.X75`&tq``^P*`]`aHH!YVvstwF.;'u ĈA 0ދ?sS϶|K ^c5`?qV67/`ee%`#ًG8Oc]uhB؏G;hBv1{waۜu6;X\=17[>Or2a /K8 ,W:R -\:!/JVQ@ni9mH)J+W GidPy$^2b.9)9xўSGا}wo|cLLdmno{S;;k*ClPD"&KЌ14(֫x_q* O=UfRx`l}@@#3]:J K 7-R0FCb̌hQ26zz3"l vh[:X JU'@R7 Rb, ::a;Z-.lr)Yɉ.r v@F}HWּ%8p a.:8G]cc`ٓCЮ}.F 3~2؆{#"i Bbl@=~( [@;EP&'oy`!‹>?q׀QDƳ>{W}2ևO鮅moPn=w%Ҧj5 G 0AI c&J @ x2 h`v@ G#1)[Z獗Qҙ;2,PyX A5 ZK mFRfBC}?.{d 2Y]p ԛ`6X%,R;ʽy%'  pn~"=D[o $*S1qh!]/eaDAU'g2"8ўk'0rk]ip@lWٵ}{kv-quhxî%Π]l&FޑM;4{];vg &>&v`\'Fh|n;fvҀ6% d@E&YҠ#2:VeD7Aʂ d WvqrBP]8y;m$5Ȫ0ˤtKH"P_X@ z. Xx>F vInA󖟓Y_zmJ:78DVβ Sc{;X.W`t~Eٞ,n h}/P{w׾,׿OMG;ƫ^swOMGW {еlz^,T[},Zu v{)͡uX[pؚordź7T;x{M' mCXaOi`4 :mKxd'.I\ap%`{ϒ6ꠔw:]yȲ9)3^HY,Z9~F6mUکߵaRZG|~-,jN}ҙujHDv8?8{ ^>;`\vJILd/ uT;ܱ> u3^"2ew#hT9jRof,A ѡ&'Tk3zAPـ9t/(\x.8%3wFa?0ɣCOّu+> !Tʽ5 ` [$g`4O'0 \n:O{(Sѷ:씋|t֓D餳3_|Ҷp'Hޠw#NNJ_$]x1_mF ɚrA2-A/ >xkYx̌ 6Y-ͥB Ӝ2cHҔFhPYϽ)~}Z(`1PnvKFVlARz=q癎'8 Od8)EIDAIio֍놠%R뷨CNbXᘢZuaCIYd/̰W@4u2ѡc2zqIY֩k]AO4wbMx'>ꫯ^EeCN,}?^+p6t'~Eݾ?z N}ү98d=ga+tb+Œ@=-B}2;L/i觵*9{j ^C2{׽~fwȈF }/w1⍋'uX3o3cOAOYn9Cw`GZcyO (X )ĬRMKmzh }㡗Pà(!`>/7P$ haPy^QHiA;qNGbm(J*Rکe;̲C az CA~k$]xVD\hq:3c:[o]im/~o~/Y+ gUkd|Y}Y7>w8fu׍{ǃox>9,`g;mS "8Y-XwzްJ֦l=RrH ke vc0:.d2%`#w~Y#*i`wyC~N=.Z-З;i KfovI0xQ>xB%֎|u=oDW6]z2H"s$%;$;څӨĕ2H;g4TcΒ&Ӛrh~pߌ>ݝ*X=DvhE9~+K.dŲK#SNI"Am bPytfcb`\x(&,*m]&}↉6)0~4>b+Z }^N>lE0McDg4iVZd7dHM;[lIqkg(Y$^na;GK72mP~!sGۯ2A31(Z ۣ":(͠= #y8RՆM!{ՏgG1֊di(fgy##?{GDL2]lLYxB%%ets Fac̤o5<JFFNELJRs =;MF5d-! 4v^:f"WF94C;[.(}R PCoEl VKgu3 F%-fY^σBgs%Do(H&IimZv:UQoPǦt-|>pϝX|(D3nC>8s {ڸ\n/~GhhOe9Xfop ~ݔYYkA@=W!ۢ6,?}k;Gɭ ,JuC煥!mBS>h.p:~[bKŦ!qaJ0mܪh_R;M.I2?޻}BXhȦ| s:_!xj,^ C/:JœQMtv-o yh?[MZav|u+AG0CqPއ8N|;fuB #*T D,h9Bs4A0Rd}}p|"5 f3- 5bqdfC MЮuͧ4u [J'UL7m@gFJp*7%ß^so`O}ڴfsX~ hb]Ɂ{{(5VH7^fǶYo}<]!V  `ŲYIdQ6x#,Wu9݈;4c=g;<66'9|dوˆ42TvCJ]ɝڕZ0N߷  ̰FZv#0I%:Kw `3'mջw+6&O3,N@*Cc6Kvahw# Q+ۮ:4l2i:ZHc|[1xHO4a8>xwSNiA@%0up @ꗫЄV`Y4ԯi^zc gCou^;i s뜉  (`a3]u X$۠2ᤕ&Ȉ&v[ۖM5 nѯEU8l3A{w3LM/}Z8")ө$JSbi5'2 EK(&_Ś8{Ώ#8u7wvxwuJ˞XTvkLڑ(jFT,뱯cq4Enj2+]k};[1N9bܱԽ A&Ɋj^ ٢"L~;L0zbPu\ױuڷZR 6&?Q~ckzO%VnW]D,ĺ6#lLmϠS@}>%;qC,}4:VNWoZ/5맃8(ϩb3QRZ ,=ԍk!"bM))xo }uu㼹XԮ#_@0f_:b%Լ&c vR6Aoc9`8BxW>_Ի]˞f*;؎p86d'.ΐkx<㏃OiFZ L4/-&Lo@6 ]+>W^ctVX '&.ň7ZtQu,`"&:,@[ZPoiu~o wzfh@}~Hԥ8aq"![7|PkĂ&_ډaEiO֞N7+۲v(b=qߝ.zn}q.#zh|7~O-;I#LeG{I60ZN0.S*dg/o9;Vʝ͆s]G 9NSD-Բ()#b5@;3t&pҢu>e"ȤNr=-N@*dk~wN(j+监S0;SD o Y6l:ydE0crFZbojg5`8Z-E,}xUWQ~xXLDv 8%.)@;4\I8V+EI#f]-HPhhvҼ_ %uNY7;2Azov5vC`"Q_j͜Cp,3dt 4Wa(dQ_؞'x+"БY9oFcd=K^؈֒FE'@ZڐO@**ZVNa ~9V)c5+ڝ|#@6F KS9Y 4*?6x'.)bd쩜8`f"Z'#@ʂ%[kI^u2E$d#!㬭j3yŀRv:6!#k 4&2ScyvN1*;9]r8V 6Z1TanGf C!r%5. :z1`d=T~^ԯ;qZrXjr#@#7)< I-t@w$_kGl7^g{n6lTd$Z`'H: bf12@ f{)%Zsb3-'pI] <`ꯜֹhEITacp&_^lK2240(d+eރEQ*= Mβ)eb2VuI Wڲ&s r@lgɧɁI_ⳲWD@L׶ AY9c7lVK/qĒFZYv"KGwhlɐ*Wr d@LJ5a!*RVJl6W,儣Vmq+kU8G2Nw|`ܷo_{|6I4I 4@iy\e% ͗ 6tAmA2tGSޯ',+F!od\ ЧmN=Ys-0B#^g0}yL<yԖi=8c_.ÇFdL[5~lx_ߌdVⳍf;&ӹZ:os}cŲ>vl8f3vmdmkg^9_߭7\Kv-*/vmx=Ի66Ss5ՃmM~uU}\666 8wmu5?~k] FQQSqCߠ7lwoPӛM=mt؆Vovi[+Żիξ[hz {m-xl{ Un\m<×buu/4x|Cz[u~%1x_ۺ/YowDv~v}?xC 0B 5WIAf hݑYՊܨ9hk330 Mh"7dIm`)Ȯhךe\8*h#eJNQ+h(lI>4+( b`Y[ Z NȦ`CD]2yWlC!81ckh6RϭLc\<BhaY0HE{ `ւ`D]$ .*f 5/Mc&<Goq@Y\~>], ?|~^?gq3o܋zߪzGVǩ}ƻ{ҋKbg킡cZ19vA3N۬  *8qیrbK\v!ՍCȶdj.jdKd%10fUQ7 dUJ\9YhVȅX։yLI:}V؄v@ꘐG/6i4yk~GPT4VzۂB zmg0dz,_ҸW~J;'魅IGl,62 Ï<<^/\Eɚ70x*:B)rU8,+5fKu.gt@?k;:uj36嵙 V!,'ۈ(K95[Qh|=Px/L<x¤䩬-fYShKj9'Y^']2 8\[ + \A iy%'+mmr<Ϩ`EsZ"4Cs.\s;!bT\%a^:X+ѢD6[x䀫mr־v{) qmMeҽKi,,'}U`XI4'bdU-sZn9Okdޅ"6F2Ge+S/Wl3+sސm '`,ԕR4N8u1z2L2i/Q! 1!VQ%B&('%—EDR!jbkM )5q+Q=.sǵ ՄS`m5_(+@Sڱ Qlr'o^jys0+ 1쪬Vqυ-H׍y:*r3#lgYMsrtG?):,QRV *Ei(1b8:yhg/r؂1P Xi`ԅ6NBYi o_aV[ W&~N8f÷ĺj$(|Hk5eN0#3c*dz97 Jf8y#th}"R,1hVYGJE}@礤ј~9MZtegva^9:1\/AsyUZw&][`rrXL^ņ!KaG'oM K.d '[f s62Z -2Ot{siuy) )Iv l8Rx3F=yܻrElG&/sT-6INL/51A7tU/i8b?d,s/VJ}ߣZ.RL.Ӝۄ2[,7J.pXiq43.^J,a !%7Q4`(L`;9`0 OX<Ymo{. YN9 w&30^f~!Lq DxN08N2r\H[grj_<W/1 KO"'ugM']f=5X[pLh Xx$\ ϶1vTgҥ B8:Yhg"`_z_Ȑ VEf}z3MRsB>B`n`2Un &<a&C180@/2}!2G+3ĔPUfG_I[uebhĜ Xm8FRX.|5CYP,NX'D."JJҗ'OB` cH;4J%ڶbS(7&blR&{\S} `x?iq43aCNi*QSÄ`\p&s69lf&reqޡ.+YUh2 hyۛyUJy[^POJfV0ŌjV(,fn>ŬLSA)ƪb9Ĥxs^' as2_+1N$ ngV9YdrpݢK3lԧld.>*xr7ALl1 WUI2v<K9R'lJ;oFV;Ѭu.07LR LqrBaұSf+fW29:][͹#$n+MW&uCL\frFg\U(㮶nZA@3瑶 Vʯ;1C}S]7HZȶK+éLԹ fGdiKG9P"2 ek6KzW3yvei(Q(Z#>^m(8⋧!gY;Ɍ[H:Ѣt8B(^VrWso`#x ~>sGS.dlN$b`Vf`I3Oi<3"ҠW ˏzֳ[V~@YsU`N2Ѷ 21YdS،;cl0ww|fiv#gJR_L(3 7\*`!XoK/`0-k4*i5?cQx1Iq@qB56!/zWz|Q]{'4NB1ww[U9Κ!&cd44Ow/ƂT:M\ΝTٜ+^/ N5/-3+~wTI񴕷=Wykǟɟg~f;d|~|7>9'~b|K_2~粽3sJs9| Ϧ4#U !Z)"D׹'|.`IfDT)`s9?sGn0${5׌]?xg7vzf純(Sx!wlUIƨ줫NxUK-o/xWb|_>v1z#?ey\r9_Z8VD^Y뙓L/K0&s"('6@o4iWW38K߰t'?SOO9}Rb2beG04yi.bHd\^0Ixd~$57]soC>GRlaur`QIe5b9QlFKk>6Қ-6~3WFP{{Ȭw5~w7$8"3Ixr 8}c3['jX=u_[>3d!@z_0䧤Gef<㙤φgyf36Rw+U:O/42Pϝ$) g\P v4]9B 4+2wy|]wI7 +KGWH=LcgB@y[۴ B/m/\GHwǐ7˕ŹL^Bo׹^E*0q3 Șk!㎻`p0>pC[o&[8S3 z_h.beB .K'H/B NHq9v05w&Hz@?ybb}J}׏?CG;TMR|pw=^v̶lTpߍߛvu`_zɥc:Nl&*,L2B6s|.,D€4 x%PIW`׿b, *#0w4Y$1vxA[@>=7';s@=~6rF->gt&Ț1-c<鐝˱fK KH@ ŝw=^~Eo@Qnnb.#jָ\t cf-YlQ!s f8bDvыdq#J;KG aw_mdVcs )G#.)t@ō$cyv&œ3' ؏ M`X,8=Ǹk^v);ؗ@@§$fک 'X<9!`2OɌȮ1OhEdDt^iV@LGOky~д)2LLI0s 錓"gR5RU8T=sJFfa3eXrQ"bgvj7^vwSen=W;10^&AVOrXο"U 뢥K.2vL>\ e , acI;.M<2=^ό7|sdw<ད]G}-@i feh].ިd0V=iZ88;Y.bi选Cyg-_[roPr==2Uj: oE{ 鹟D RO~Tt0qtH ںz1 Cw4;g``ۿ>Xr4Ŵcџf7{G6vu>U^[[/ Lf%̙&4O:tN \)̦\>Wl^Y:1GVŖ(bO@h|vfZ`J\N,R o#lK-"UdrG3s`ao띱R):]h%Yh c|2=ַd煵"s3vfE~!vbag 6f_Vˮ|P=`dn /0 ?>ӟ`_ Ͽp(r%ܠM1CMJVQ%q;~3%e19f=m&.ɓݛ',I2s>]@y>;Y}?嗻oQ-qBb0x|F$q 3G2[ͥos6yfU2b`ߍhbb۪`R^vfhU'W`^c JJr-,W(4?, `Db*=!OkziljT4ɜ2Bqܳƒ=,k~f ~sa*on~yzw}o 9XrϪFbp6VCwH>Q'/SlVgM*J0 eJz髱#20=vwρQ"BKYgKe$#W /YK.rre|RR^>?|ގTA"mLVQgT"5Vlh`Vٿ[Hm[U -2-<%Lir3n5$\j6r{д{_FKK/aJPaiz15rp,n(ۛY%"&sleYLq 6pg Y#`J;WG. X-m~ n6PkM"@"Wq*a6 ~z MJOFJ"^«(KZMha켬e>Q}JtEfVbkhT\VQg*"=CjƔ#Ν9OF%JK$pmr,//X ~ {rʥ K% |Rwv\waM7;,2I)FcUyg*֠٪iTb}sc{ܞNp綁V8QMs_Lb^ 7 ˪-6*UB9'۬ջIMXL`;0u`?̳V|cO6b7.]X'Vk3ڡZnTa_׈2?S/7><1&c O^Wj'^6ynAlUsfhl sۆ3Oj$ 98{`mmTmcg {ZͪĘTyX%ӟD'C{ % KVYZ5n2ѼʨUEA9Z5LԶP>FTN:ٽ}10/^\.@b{L W TX9/.\Ϝ^{;gBBjȎ)A?e'<ٔ@'oaƖCfssOކmsSRtg/=uO=sZ}jzN QlLk9!---u6F2Aa[N 8gmy 쭕#56iA!C哪x嗻* Pbyִˆ\٫-:fc$ K r<"HY~S4v,yl2F)"ibDV]/:*%FC_MbǔJ]!:s {p_=Q\i֔BXmLrL dmC2dm`c' h]> C <]\ r^TmcYu@_P@|٤:.}~YrO{0q$툃QR|n3g=ǡ_QF6n}V9uoOR;?7-O87 lh Ɇ'WmBPZ; gRLrd%~78XR !1SzM:>Pܪ #4|uyb 5l#i-H!YZJZa܊Uy=kp$BF6s}[cG#hЧ9Ŝy&{E_dQ^3HC 8i$mU=L`{^2` ʅCQ\Uu7ʊy8k,[odOwN(VBS''Ntx9yLTN<^;ҁ%sBD96AFI%>k' 7ACD+oϧ;` fN{Xwe*嫝85Ύ:`ߍ20K"O?'~pf؅I3!/w48J%I[teFhJr$g;~Ds+ŖQtt1PŽwW]jٮmߍ=wx(;z|uiݝv6ɪ ~Ie܏- PMc܇@ {uɦwNH92Fΰyh=p&H:>, *`>Rw,LEd,hjښ7ŵY%Xgc?^'1hmRkӡ%p&1)ܗ䐅~g?^/, +˔A \,ž_;z"q}ScϗrGv ga렴" @f:k;bS&ٕd&# X$!a?MZA 6]=)t1Ev93mGw ӕ;U]pz&L-aklxcO6K/q̰GJ4tfT`IHnfHGϔ' az E`#5- ^VnD4K*Plq(-1 نe [%r?Oאקu,#Ͷ}P SOuԧXoO~{/S _-D93q8yEjo~}3k- ufJae֪J#p Z"^&(uiJ3Hҷ{Tߍs*+}Np.6k >{{_WVű?vz$Z [?Zi&FƯ wiG.or$B2^l9c&dG)'}D,4؇>=m|Ta_*Fx?I-=fAN}ߞ(3s+W\ߓ ?86z 0[11~pL FRE3p]JddMƅi0;i )k9vPi96d*6!M'06Ў@<$c!m 3?C;`'FĹCpC70r>o} Ԝ>v %q> 76Y[}O~@ npz$~wIC>K[q-2#>C9x26dl,Us$`B&QĒ|2;otgh4YDo9߽v+ҽt#& (M/po"ǰd$}R7n%wƖBxͷqg.3;^bvԦvTd,$GFv gp{Q>5}n'elc~е:pnBG o`d M {e3ƙp(/M&f=šBZV[t vV( g#2|_Z;pkkTC3^UعZH Ldesc[LNr"Š,~p4Sٙ +_lu*L!zj} ǵ'V"܎< N3ICr=0M:8Ya"8dQC,I Pf:UbH9 "8|t_8 o;^CO|7k|eR'Yc{3UA5@ڎbkeI)!sHf"g"%2Zٟ8DjGj~Q4{!s+h.IE-u`r|E sgA{;[xwҷw[]oUq;6}mOla 6f:񓘦չ2|JĬZk8~ʪĠ#R0[c4IEbfmg:đ6k0d83Y f  3,L tbL%Cӫ[^h=#iM6I kcXc"oAb?E ;ͪD871׈YfՏGY#wm4FJ]9IbVLfLI2EI9X `cQ(LY@̰Yʵ0k{=24AZehȁ`,h4Ȱ|;>Ԡq>[ db&?+`?nm|U35xb `j|0u Ώ~NAlge.ᗾ8V9'g&XgC+A6L^9xwn,5e{ݱ()r/3 Iux+ }mMI#E_l?jلmqUǎr Ͳ>c %g6?`~Ͼa}uO6İ_X"#( `?\*ԎL(d(f"GC)ٕlQvˉ7H"j V0l8,M+$~\r_m0Jpb0(4VR ~pșZqU sr`xz~ʳ> 狵̚$(ci!4L0Wyژ-G p [ Hqi-`Mǡi};wLwmgXjMpE:-I~~( EӵF24qW;K2Q!#iLb v`K6#Z vlf{/uOWXVleh YꏡmÈ9 'csIB¡N1[YV34L3X]5tU;lf;fJZIPB,)2jhV:C v`8 :V1`#Vkψ:Ux%״<"&կ~8w/J$_$ZC  @}N5TY ` RM:r?Xj3bI4>"%9|ԑ!KF%V>M֍YFVk%x<74{'#z6Lr!  nv Z`|T70]./gZR;bEot3g׾}+_O>`c1u5QF1F$Q4ھ^kQ8-mMwb.XY^vd%V6۸ݸ*/323ͮ=n^:1!Apa0 a6䤒*UNȡ áTEo VDV/%}:+Wz{6opU$|1D^L X/AϩIJ@ %97GZnP<:< ݠPkVf]"\`k!rbʃUZO&0-avޅqስFyJTvϑGLBfSCB{?2FE=s ؋Z%7&iw"Gz$$ ٟLQL-&l8ei)Ul1_"m?+BiS2% 0$%T-4diP6I!3<7U-Rvʲ/JfX2, Td-ce4{M;.%ddb5敲iz;+y %N@E8جC\|l"6J>wChvYTc% cey`d0y[ _ 6E^nf%jWm<>Qshg?/d{8||pAΓ|1 {2+ 0ɜFɨiW8sy $,Ofz2B$ !{Lֆ\>!ѴO&p|@=/ PJq|̅%{8oI5 '}7C}r&<ډ8]$/+4/IɗuS\ ۗ6{aR},gmO˨NHS- +>Q~Y:Z_7;hefG͎f1!`/*:ZVbZ$eOXދAzfLMc4^ÙlI9p0 V6NJ;bv^U4]C@dyB- b#~hEbGJ,9-J9lIR˄T2~D">{++;n*ПtQzL"xg{>^٬3b 6fvhC~0lt `Q04}6‌CeWcC!yQ(&eڈ z: 1T eUA8x1*0NbdYcF:skHI!AL)H'$2IkbOSi4˞,%e/JZ5-zp8mJ5&3/s@z鴍 J_C<<$=/%$() ` SQld .EdYһ8hG382C/pK LWh6E"YUK(a奥f}BfN XC0}X`szXgҒz:gLRߟ'<"Zg4X72(M ?n?.I4GpN0;89_! Of9iyKĂCsȺ}t4:q/Z 9#W06PyK )'#q42Ġe:M;ċrnwEÐ\otv/Ɯv!4uY/ ;GG L3l?eүx>`T}ONa#; ɕc'^<{V~zsi bh+ p %c3;zXv4J^\|˧ }0 A8aJJ1)-D2$@P\f ʒ5<'@lFTx+Gq8t^#IjNέST H #/F;=~"@P2P'X$8F q9& =A<[Fcә}u&5R ~yLb~9\ߑa@8f 4 afGˎf1կ~ս_=+2 crْEd l)P8" *:sE$cF!XHg.禞 c.I#xV 8@l%oKI dv(%>!Xx8$XЎڲ7&%V㭲-YD9L/NHZI@/,, ]t ǓMaf- v~4-+&p>'08QʕTy̎T~fwȫ{7 C.&aDE>nNI#nv}H#dWR)(wr68s )SHfY PAl P IYPim XȺ$V^r\8v K .93S ?((_noa9Cu, N()ejK/smi2:p[2}2QI>c2\%~јEVF̎c¬o'Gu׮\T'CAMe]NL3!{P)P>H_oMvS;9 Bީ6狵Α!F?|^3jJr-g H-Tpf4K1hix5AVҩ_pʈP#3thtNɚiBb@AQp?(cyQgCt*=?J:c"}~[wY6zSgv숀_mmƍݠt)`}/*W j5Wb\5BbpZ <.Щ^|ӇΒ2 pJr!$t:D]U?;GL(a_\ ;{bJ_sA ms),kW"L|qY㞍]REj^naB }R_Z G:?4_SY*](_еrL]9~aqlXǢl!},Zl;yC</ߕvZ|ib1Kr-s̗=^qgο{dX,m+KwϗpτǢqپNY_Py/) #u^wu| LL $vfٔx BFñ7lI *.fjs+O$  7#'~I8w-' Jk1rB{ 2$f |o !$+ C?bSΙQ 8} $8'2bD`{Թ}fB:>$` :e⋌ݴg2kGdAA$U'=(V=|;"`7ncF ů\|6>c-P:6:fsc-:o|[_sn|grߍ1^6hXmnc7oٰmq&]^6vr11wo˺Kܴ:7>۴~__gƅ6677u|cc7eߖM5k#Z5Sf$̫v2^ 9YόD2KynY=P'tn)`|L$1ߵJf*`Ltr8F0p D~2̮:ҙ/td& .Φ?cgAɤ2[06)T&j+|U l j&4Ps5y:#S5cɞRV!R-}X }@d (@ѿYhaҘ^wYZDA#OmsF IEv6^mK!l?vb,4C-{M{IL=JG&3ayB$&,T(,#[B$uR¨8 *@#n@;x34uFZځ^)= RkM$Y_݉0O'P%X04Z>G1hfGgG 5:5ԕEzh5–Z#}m:\]VWF}Um3AsqR"yUTΐG%SunP[רU_q2AM& PbW9cXKG}¦|{rg)lWP%I®_¦&3JПU݇Y}rh}+h/gz-ȡؗAU)%]`Tu+GЯA|4f{ Ww{h%їW9hH a%GltTC؉ Yb1kDEBAx>$_"3 }i\d̰ãnr:5J.gS)) qzLA0ރ{0F|e%~%Y1p->dgNc3Wh/& b0v:/[U?T8Wm VR~F@e1zF(`(I޴.|[9iDp #&[Ee1ңSpOT5EjKV4@ƣsst8a!}]!0d+NB`z%bL}D[-㚎B>QUX(12A^G'yP1dQqpxcfu'3s _^fH8gv4`HƃvDGaQ[P5uesA̬GF{$#pCµTq4R1RGcx?4JYkstՙVWapV3lL3bG1%w"R:VNfBS)\V, |跊J r,CEmѴBI )>5'3˵Ȗ*ga5G~oUykoa-!hfG3;_;"`ZnsPN2 ]yp\ o~amt dxJL@h *iaեb h>0˵ ,HwBGU @>vxhu? =^̎fvv#bN.B!jIҐ8f~+FlxPxcB`$tPV3J@:Äp-`$Ym2&CÁ: k _:~NNwJaTJ0PGd*.8%my} 㪁7\atT}6ZyvgC b~*2eAzHr8ZxOrb8$ܚv@ 6?!n=%>0)$Hy "{qE2[ք ˔D4Avxg$s2JVoD)Z=PaDmċ3YvrUoF<,bjJA#^kpyu9cY_BI󭛐ؔ P{x=Ώ06T ҹt]bi !]h/ xlt@!tW:zd\za-<)ezs7%sdO&/xӺLjn_D]\9NcH"k FL %XZS wḬl' &2gKuV$&B @RaPT5J9fUא} hdNiN7+ V s]}:/o>J :D%MfG?lyD& ش7E 8昞 #sqc!~uWgopat +By 큝Z^J5IZ =y`YCQN@4js|q=kWxnϑ`T ={)I{$ܗva#aEl{S9M B1 j"A]QY-Ob-Haz3K ̜>5D97ޜ+VPOJpB 54B28*K&Y>h_K5Hl@aӚcIje8@dWIHȡuS X9s !!ۈN@Q$܃)`N$HOXᑐ9Į9Z-Ar_BB fխŲ=$Q}i+(kho*Abp27DZM@B%$$: !dz $p#I@1p83^<6@բZ=4"%X&H>H hbV"鹯Qrz͡<,[bfLb{s$aߧ+|ޜ7qe}HH Bt:>5,0IB+K1d([ena58ޠ97%Z]$j BY1KNGqiֶ)0dԫ,r1 h  n_lk FS (UUMfc#zc>$7hxzROB"UKu䳎B)AJ=U:[7̦ +"3As55Ϛ%_! { @Mx@fSL"5qbTGbT3_ R\d )obC(dHy=op*9&!^@ UkHzw*W򆎐1>BZ#m>i`<6Z3DXU"qU1F&XORh`U@"51 oz_jk>b%%r5^F<7@>VٚNMV*GrJc[׾uShit3rR'Cimf_ +FD;t73>6:۸z_o꬘ש#YuM MC3 ng~*@HVjda \ [Z s6 &Nl # Ɠ oU*7Yŗ` ^-&!h(~FD|s*_ $ȡ5fhمQ I6Rl"?d3ʍT`6ye ,|7: {sL)s0H3+7IENDB`images/stars-2x.png000064400000002351152213653150010206 0ustar00PNG  IHDR*J7IDATxmh[UDž? 8ND0( Dt*Y B6B,"臵qMnNeuM%m}N-ɖܛI5<'{zs# ڢmQE- 颤ѵӐo@嗑_~E%1.x]'Dv$? %+?Q灛{1V}f, 6o@|EvȌ+*%_7۬hᖕ@M9KRoJB(8G4{ԯzX~]VX՟_9@z[L3XzE9O hS ^l8[S?[ IAyфǁwsuC9=-Ɏ({n(GZI/K;'<sN4=i@0glݠpDgAG`y?L]3OB'l#N[#!Kӏ&(NDJFJmW{Y8X0:n&rsJSmE#n;#SЫM}1Ia/k_ƹ=J9vMz(h'9U1edmhdl-Zt j"@."PSF2~ӫ@vS/.x$H߲D؈bAH2Et K1p䖝,:>uI>hˬgpwdƢDuC }0EdQpNt4"F(fP+2ܮ::x_ pV/42uaIdcY)8+KUog|lj4-OwkvjQ'!ZE͂?Y_7 ikM'|\_GYkf44}/< %AEk-;%A7ɲF-EqMUvj%@$J b=?F1e.B섪 fm> Ynץ&(+F(s21(IU}Q[D qZBNtۻzj-#cࠛlRSTlDN 9[ef?1SB4e<Ğ:lV MϮ۸cUH.j% cB= ,kUb1 J4YA[IENDB`images/browser.png000064400000117262152213653150010216 0ustar00PNG  IHDRl,QoyIDATx콋%]&`'6&vwfc؀ag,bo0`-, ^lղ%[~ec#ze=֣9̬s61=ܖԒZ{e:">*+++~g<mmmST2[g\p?QU ǍqZr]aT2B޻w?~ @/ccbST2P!`'~#STlST=SGLe*S`m;Ne*STeLe*S{*ST2T2L=Le*SyJv4T2L]&T2 2Le*`Oe*S2Le*O2T2L=Le*S{*ST23Ne*STeLe*S{*ST2Tv,˩Li_SGLVXb1~_.=c}h*SyZ k;^r%y7~K_8qkָuxxnL9pPu>oldxqhK|nC8!\A[;p,͸O϶^mй:u-֙^֖r~}\u辷n¹[ZC:66m֮Cj:v@C u{jg3Sʉ,|>۷o+Ǐ?75<X7OSlSIo͍tqscLd?۟~߿:o[3}E[z[uvcS{ؠ>֑ڿ-}ks?=M?յn[&a{}s=m /q&tV} }~uln~6ԏ[_w;>o-?>3lamBnlf~ זn8:q}bq~~|w ǜ(q~[٧^6>gX7sw?\3_e?7 >;c/rre6 TO7RYO~5vqխ8~\vt0.S}K.XϨkJ7?tjX l~[.t0vtl:c1.Q~Km~舘!mXnOOx:u7Tܥ{o#aHu Czy>!]KV2k, qq GľfouGhGDϫ%4tѣ^>un{mR]8w5{<y+ׇqϹgC?|tސq#}^/t, =:;`/ni2>ܟ^q|ٯ8ossPqٓ>K8~j|N7cqj߼n|h/g?tώ3o8fkf}n\%6'qIȉ Zo$8c.x&i&@Iu)MЉH&}`a:T8&2< ߧkuG qS]s^xN@E͊='5 h =nk.?%u{sp]+߯hÐc6>@>vz->&\uᢐ~'=/}6|ohےhIB]/+/3(7CT ؋}d|E??~^2q<G)-cquw.r3戅cp,ݾ38{O>sw4{~aw~18;^ 6=q&Y\pbHd)`3L"}p`8'" &ձN `P"Ť .f[dFK(#\0 o (UQ ^y?1Myt>=$Pb ="О- q`F"^ɞA@ چgkXzKq .YX8hɅwx~q-JXF+18"`cvqP~o:v}k2./o~(P_(098uV3Wo߷:X98ugEj0k ַƏ~t<]l+(ufL'mIiBa 2m=t>&#l˞&/`A[ibF| xs₅W Y6AmYg'6#l'Ydo`=1_O&s:E6މ 5[A[G/- 8G ;i(7ytfauK%U0MPb}hpbWd@%e`1 .\:,'S{ht.A;յ{K~(P80ƹu=/W]u5=p|8!hZi2uլ)tb/˕eKA$sX/@2RrDgPc]^i- 8;i>5N2N`Y,nEs,s%!PaRj2= , צ=4Y3ekϽBѓ! ,,s`KNt`2c`vM)ːwY;, !w%J-,t| HcQb}Gh{~t&Y?8Á;@]skљ~8Pکԅ:w}|z:ɬ_##6@]Ʈa?dJRm̎(}zRle')$$+0{ F3*J*fXGbyQBK=u"ueNSY<KXb.`xø>XZ Q'>f5o<|Lc6BXw7?(ݏַ>@n9"Q'>рot4~+_ebÝ̦8r2mx2),MDv;rq `I9:_ie_ANi>J : b4ma3&<f'+ZA5xCnh:N#: #\rH=332|@#l"&.g(_/lW pH ''4Yl0E;5s,#(1\r`s"# ϐ#piYC8]NNB=]?X?heN}̀}gv`}3U ͲQ'>I5>~ ,u 뮻s9g\D)9w%AK UfSQ˴V,R9%. js^J/)K" uV7RQL,}pJNN86apԟm0fͶ* .;f]0TLh6^:XpL̶! (-Zƈ } #[5(ћG.l8ˑ,Ð(~t9ElƣGprT?] X?heNԽkh`$\yN`K)).=Xn6QQyHId)gn;;-)9Ԧ ̵9E9mh#Rs8'2٥ȨH kJL ȩ+qWi[~ v۱͌ KHx{e`vn-qNRJgK GL(owҡsB CV:(, 5rJ NNnPІqjHa{^X1+i myˡ3vDG뇁uNH}8Nucm̖Ĭ}S̈6`s1uv4~H;}|{Pt㖙 -,oOnz[)ܽӲer^(Yae)1a%ӼL@*T%>氻n;E| N W+htB (ӧWbY2enŒI3T99bzЙw^Z9b) e*sR!x/öT3XnY:U~iЌTb}GduW }uePy?rwfy-x#Y}'ht$}̀5Iuky$OXg)5K=쳹{Mei@DƆ1h'a:C3D[02jLv~B阍̲>3ޱN 7D\<>o-fA(nJKZP0zms`eOȾGѫVYZ?κ@gr *ov3AW\=S" 8R6qK&(i%;4ٯgc4u,zHNFW)2q܎yqNc]v:kvx5&_Fp=JXUtB&c7rp9 dS bh1<(L[cpX38%@m+9h&N<,Ȁku!jc(˾POQ(2[&ILQ\k: g )G[ xe2[о.c;fQQOvXiKԟWN`S̃@7g{vYD`E? S5o.h[#|v{v-us] Cھx[v-usY_WƳ:kܗ4mDh'N [:܋ihx/ ?Zdо^p&)}$ĬFH vCf;Z/FcOpbr)mw . ~ ㋃"b` ^(*8z', d0㚳< brͭRÎ 0vqp3YG,@'9;Pgsî)]sJ=UQ"M+Oeώb*`?xݵ8@%ΰcl]KAUW]5rlJME4c"Ɖd^hDc̔;m כUH ! (xå5f׊ӹ 9Ȟ+`%V %av wٱ6~F<8]5zbTߠ>^ dArN윅hSqb9Iq׷zl1d}qIwrq;Ἇ2oH ۦ?جTT \9sp)l8/:3BE` 8oIW/*}&;mI4^L'Yo^2 W ˥iŀYt>P `8t`ly#:-aqCtT &5tyt:3%R$o,iԝ`p_3;h )Np#rk( |UьTwl{UԵm^ut}{wl{UuqF)lkS/ ߒSpa㐑}ZzӦ, /F@ pc@ ֦:A{S潗Ԫ[e䌄OL@ZK Gco]03 q:25Zѽd!gdPt ͛!8#9Hɞ"~&.eXk4R?+&9/o<8:.'᱾uڢr_ PnNc}8`=Cv=KQ# ^!v̉#6/{y̼\|*H"rJ)~د{w\9h0cwr󶩒 0潘re N>q )ʃy!7g NxXR{bR @Ґ5 w!t5yyW 5J6SU㈱ $AFm`s{We}X0.:R\(٧S::q\6Yw~ܗ9nmL|?%8ǦsWW\qO.} /8Du]{Xߑf$9ۡ1홧4kM! +vx(n'Tsn ߁9 +:=q΁rC&2+VGd A3Y݆vQlA'18l4-&)XOn̳k2 z/eޅ{Ncщ:(-&tm[rȦ^H:}X/l[֍_ O9%pAtv%K1Li{8:w^f->g0ߥp M)2k >;cNT>+ƿ/d-,9Q`#C]tM={P foV֓1'xa,:YO8lKN9++.]gɀیvJ އ@z6XY6`:ݷ~G%Ү 2K;cm#g%r|v.GqL'ɹG=* AԮ}o=W ?}.AuS#vQ!;⎍#J3r{$qAoFX!*ig$JP(H_@LQj/5p"C&KCwzG38ĚTvd)$.hTnDfcb!-($ F+L3䗦@v[20W&_01BMfg .9$8@)$!aXK'~}/:JY:#/Ĝ>}N\T(9(#oîKi\7's.w:OU| Woia7R ϋ#pG<8(B79(ceo鴠)P{6@9\ ڽvS4Ԧ8,[wK8{*`wywRھ>痩L%v&TX!x ر0 mU\KdtF7#$Z v2[|ߊ]]N*Ҧ>j;%N2bG͘h.i>LmhIёȃ⬕( 5K: Q8E%4;0ݶזNU)僞6t{@ANG@O6=NکqzP ( BgN7m/Ei1u93h`<;q4Tv ׮?ϧ~(!)Q&9{^} usi9 Z\7tn[v/Y:کqԱ.'[G|6wmIE"=9ϲmo.uq$_^'N5]]p ߒUOGh !'zOֻEG(6yS OiՎ;n(0luH0H6; !H vŭu6B %t 17mއ' mu3#aȼ ήϡB)UxZ7Ba Ժ{-_>)+ģ vv(mEޏw8eɠdD %uO=]cЮ/x鸙zc$/mXͨ3WGM8N18$d3C'Km+=@B\;! m( | `6e,`Ӌd2{=.]p8ZJ24 WBc1/,, d?\O Zm 01y.zNL紝g8RZ JAt.8 {xض3sB!ɷz;V@k-<8tq$KD"02*]vmם6Vї'bRQ{!$aG)8NN.'~N&v4jZm@o:B( @wF$xAdKp.*BKͦ t / >%ޡhQZ6&,]zVY,VB^)Ը)ԋg7tCf;=,iji6j@6~n t9VJ?2#}q4Tv@ 9]cϐ}2e7fZLALiO3߷zxbA3Zx v QK ;u9P>Q]_jG"eWmo&'w&f}/Hׯ"9RaE{R+db W$J6)0Rc0|7ifh@e ܼ VGQ4_@ b9FxXn@ótKKb.4|{b|fM=gYs9g[R'Xk3LzoOMdp-'>F,Z+tM:̍!kvL{MA'[0PWfO?RFMhz:o7rlZAψޗ=0N0aJ9X'5~ %pZʉ Z߸C:|1dǜ"aΏ6(B~M[KY1$|ț{Gtr$ XMm>u:"XTr%K! A5ވwq3 6 uHiK,gNKTX jN6}n  66HnZ`]mj_cm&m fr`o#@]b,6+ 34lMԯ`q6ySȭm׎kXCsomH|f7EsnbAB{x!w5f&98d:*UMcCo+bѧMۯ_B-i=إu(Z968{*;`x;^z)zS{A05QPCj%051N(  ح#P s95pJhE[Eӹnڰo ,;:; G7J N7f8qͮ>t* /6ؙ(`n"pkL:ƭ;G_16kݚ Q c` )w=r-ޕMI4`4I1Z٣SS&HV  - PAc}6}N4VA cp]/4.Dgv:lg# v wMhǍuF*؊yva ^Z*z96%i40ԦsaFI1k |A,U︿I~>S9vȐ;cFDpY:u+V%@ip 5*d5uGS'&H[kT_\ZGRϵC+6"rn5Φ_kҥibvr Z~gq76ĭXE_t@mV؄m5 55VK{yQ:4 EĶ&h5$vkš{g-4Q l$qtvFrAhmYojji!M8jΔLX!HC;?2_mh5L)uǨZ5rpz $pP3(]-EfV-pnjO19kJٙ8&icRŘȜA4#DQk4eטvb8<[)!GcM['2ȴ[:`\ylj?"֖KjdoK/Yk[xmiqd Fsf k(q"Qٶfz6y A/*%[]W{県ҨOw-oBȣu~7# Fh7|xYgQ\A\2+5LMvMp}')3'}cS], k퐓IJ\P[I =5N>H Di6ҌFRuk-j9.&9@L2o/9 @E6ITEQ fv\6GnF)5(X%tt9P9u.7&8B%pЍ#$:3Y2e? XP X8SkPF= 5BFOxLćV(1 %yi~:Z+omm>x iun9-~?swHnQ}]m7x ֝Aqh:Kd!Dpb-40@¤3 J'Xb2 OuT vPg# 5+m-&K fjW3\1tZ}W[S05ൣ쨫Ull&>ʓ=ȩGu^{*kBRDB(~IZR@>Fd**kdSQ dۡ F Аe9䰿JUkq`QPYBP2,hAc#6hխR*#+4B8H h)npj0]**A/.z _5z+Gd ̞蕩bj6``kij;Aj^+ RuV&UˁNW+:/heSF!7|8:+lTŨU{̃všIwL:TQ\m}ZC+N!WbL rL.ʹ] HL$,Z&:#d̤瞃>{嶁a=iMhG:yM ;|1 Wsi VF&0ʋ;1馦SZ3eUkPT1Y v|-3z(6pNS$s9j j{SŴN+oxu#vDNzQmx/o8ݸcj̢=+pAm-G%`ֵZ#Ï/Npucx9U>h 15l)`CiMhG;@+jSgrZd3տ`{hëVRJ+ 6"Q"3?\`vǕbծ8I̔'IRinKUtՊY;Y]v05vЄ _.*veyֶf8qDk&a]E1ieʙiA q4i8"`7y-*u@Y˔+˖MRYf*}˱JJWӠGFf3 J&X]ʌH7W\jU M8(y+aunڄM4%ͶTY'68)uN[N/X'r/ G'^gjR!zP+8Y:RN*7MmdV@'H72Vi*< gNR+R:kA0RfS6r/q4i8"`쌲+2#蹶g4HjwVŒDf_SjH#'VƲkih)KL1K{J2pR7Zr@)u6Ѱ"⺸'NFN J 4t͗WjԕVT6b1ԧjM nx>)h3̼J;^5%·T::ګ~UA6 R}W[1&X'!gA IgS*"Nd#miqG8#1l9h\Tt\a u'VW8neOw`@`5`|0JKCm80KA߫SD}SqumO<枮_zIw@VHI:W+%}KfkU!@'F-vfPBA^0TZ߯uZGt >d_h⑉͚dO8tiP`Q d0puZIkfnW+4jG'fWoy3Wqz9wċeXcb^uoU_vK}^v/j2|)/ z9sց/$r{,/zc66_w8QSѹ} naXcިޫ}_Wv{}x"u~c ^wΗ?{ޮ _淥w~%_~x^) ZpȤ6U?HiXć V&4N;  44`´ .P5MmFsa2}jN+*VRk*(T٢N^UQWJ_TU+s|u<,)N[ee gܫXA3FYM2 0J*meF1JgQU*!EM 1ATnYˉD%s+=JLm=VqtQN[ /`|ozϞ={={g<3̟y={R }'П7=3}~q'=c^}?g:w3Rl3U/{po{;{ۿGuy^֍X=8n/ s/۲7e=L}g{9&Wmڣ띹Gv=}=~ثhto=nCo_xV~T_cZD#ĸ~%6)-WJC dI:5p4 Cm=Đ&i#q:Yd6Eb3ZMJZX &[VkF'w=ArL)M0J&)2ob#cV[oklՍѰ*{KeR&]ޥs L6YlU&c\fS*y=JCfvM] EiVcvr^ S=mu߷wb*߇EQ"Y.MafU8% +ٜiX$3t)] (2a֌&2K:(UE^-USjMI+*e. )Ӣ%fEkJ:D4N ;%m(h6֧J9KΥ][%K+Z+H- L~.09@OUSHjWd@̫$2*2 V8*s!0O :FX H~EQ8:\r/\1>lאLk8"#uSZw* #96Y~JHW$P,0q=iPR-,Z&(4@Jز6slk=ld3ĄYbR6mK1 6aKiXO:DȾ @ ՙEr6/4ˇYykf3 ڀ,xuv -=e-'|!YtQF 3"fo=W"j|GmA'O}j>fNh '7#FQx&[É\4# 'I^ISgǜ R&?X&'jQ=i&oXc\du+ V7bhVU{jǜ&mQ?0Q1)R,m.vXUfeQLV&\'@Ϣ ]^w72{)^I<yE-$l*;sUͱR?iq>J%yMF]Wm Dv*^ [8D4{#;OAe!),Ld17NV08S+@a4br !(S:l ׆I^edl2[ڼY_my/8NVfAv}7d6x=:*JAnx3ȸ 뻩iC>iQf]0dtNuЌoVaMZ؏eD̛SH*ZcLiq+^|I8!ӊag`%V0wX,WJ{U2kE/b}u#^B]c'[X1,@-UrLv氭:1_fL>Z@V+g0" `Ȭ.rӍuo“Z@CG`G])d@"θ@a,3!p"N+[Mx2t2(8:^!b^r18{vtTr~fr$;raUdp|eQOfA Ӿ&8o%ؘ@FhQh ld]@k:Z6Kiv܈Ѷ *qM;*;jk~9n x%(kf&V̔NB`@7akU@ʎuZӖ+iN 8;P+\ш۹zqm Z Z2SRϝv5b͐TqtR?="8`N.&&)&B'Ll Xj Ť.+(*3K5u]̨ZH"0[,j_.AvNZQhߢi-h* AF(Cb5*'.Me FT,p ԓBrB/Bmez-B6E@I((+6=RB׫ЎҚpU?š4GxP)[RkQV,doLqLqߌ(3O:. X`biDi,ҀPk BYAv0&9|^E)i1l\{D"hdt6iRPK\ }Wdx4jQޅϘ\;h&0@_=eBߣhWx ځ{ݑeJ.l B`zԞ%1&):->Wiq7\rE)Pi' 0Y di| S^0;ciҴ_3XI/2Fc⤶ιDj2`Mp9\apZNDi|٦1]-{Q)]qyٮA(l'r4֓stGڣ֑u֢6 s#T|9T #Zo3(KgŽ+2ysta^t|IXԖy*Xm(MSuy:n.O|I]W}A7'7%Wd.V[ք#SL_ūnj]xxI)[0d׵tM8 fĨ!be<|uXJ d?w/y믿)^vO?_O~ o?_7aὗS91o7˺'4wx6 9+$'=SGHU~JXOg=)#-< />麉Y_|EO?#hJ|hhƀ&s&ZPV&2 b!֚?@ ,ukM2v( ??/{Ɨ ^ o3U#q!&jA$]sPZ=еɈdF#t6yGM̂$'˼P6p#=Om#k:J N\}?=^wu5.x(R!=6 - Sbeji %o իtd Wb c$B!ll\␸~&_:Og?{|?%8/_ gvɟUz+bm%~[O@}h^x s@*Okq\[a}|w*vv2;Kt߯|+yM^vxiQ;F?y;)'2N⤝4OK靥Nk;MN|f:cip,o^4_5SSNy~qb1`s;ދͰ,f`nnVBtaĪ 99sy^8|m! 7^bB8g[8aaU옿o;L[4^~gkZ`H $+kB™٢ub^- s8CTO8 ih;92 X5W_iʯ|yk׾,Abܿ[E :o}xI'iUY8*"d@;}^QeH;}~䣒ASO_m 8,fj}/KOsTe@D8c*ΤRLe!%@.F89L.rؿ˿_'|׿~rx7%g޻{|xg|m7u7ܨ]JR+#!sssET0 당" Ih@^q>vU +D?N^X|N`lJWM|ꩯHƳ{x9S8Q0;XPk1})& !' Kv7E,"n~~cmhnP>Ln;9 [.N{ `: ؏m),Sgl̺>T q6'{Ӕgu@c| ^HS ?(zM3$3. m"+Jf86]wnXx/B@:c8匓w6+l[8鸙um4P,( eיѢX(-7pxM7wsxwwޛ;oJ`O]6ޘ~"W<rj\6)l>l9B;1ڇ>AX"9slr ?w¯3{M:қNnpu׏w~GVkka> 9U]Ŭ6hk1:עD67y @sJ+xOtQ=$X LV33h3{Ɍΰ.kgoSK_7X0əYBz,53jgYAOcfQYJ[BNT`4̂'sO;KWbJʼn lAoqhߛ{}xwn/jvvL`^k.'of Һ~y>r63sO̬J,hL)*b^Z )oFVWwÿy׽ud,fM;qJwf(Sx7²[~S1j=,jl. tTȊY)&^9Y扌EߴS&~`-v5ϰи|~>k߭qE t`؟|//`=uP]l:f iL$LyLnL y%aAv-@y44rH9sX6)Pw}j7.tb^+7tjBQ3J2CssG+;MP`z'b^ .)#9 .s9dIX̔6Ĵo@rϽww$!iٗ\ۿLL 9xbQQC_7(@a;g8 xf~fO?=͘( 0lm!ƚ38sƙ`>m اQ$S-$i0" @[INP.;i%$bZq\ ;q^ МfX_{xy7@;jkq1''/:6>ց):wo,#{ -Sŷǯfu`l9Z}>1y+m6&‰3fr,rPcuDŽq'K`ӱG8!p )|UwH ZxR]=NAjW;%S7~ƎDžz%#_rJBک]Ր)[Wyqw󖡵!f`ju7H δhݛ{#KyxYzOߗ2༘oޤN)o Z!8r82 `A Q 3.ENV#8:׌' ׫ us, SR\o{kCsώaBc8Z@B2)X)igRgQ'/Wh*s0JEX#h/8}g+x31) 8I{y ksmnaMemgDKQF,2f֑g^ıc_D5 i|A73b0M83sZ56ל;g63aYʉ)2D.LciccI޽g):kO}Ӹxgp8#҇+ǓǤL>i7]Z;^< 1~#ֿإ>$o@ٌ|Yi7@s|.Ɂ1ipqV;; zrN!`B?ق\oϞwkR,s>"5Yž2(_=X&{tHl&pK`tͷ&ꫮOAxCb7&`oJ7]Oz7Tp 7Sm1A4{&۾}L.-_|/`=K{5LZ,3R 2U,n R?NF1mJr7_y>Gw!6HGob4jƿ9oRslXwv蟿#`{JW.5挜اn>sܧʼnLzc(ςv>>t=ik>̹ze=~ʹC^`+;! SE߂ AƲQ ` 8cy$>3fXN,R#h~`K{Ml%!G\k}_`jPU{ιŇzHgx(œUOI'➭ujZ ^yc?S?˗iG^C,nur}z|e[*6<>>qό>|d;|Ol)Ϋ1wN~ *^@S<:ajfdtM{/+wN %$)#3-Ygwﶠ/xܰ= _N3>aRF4 oW庯ɿlG2ׄ+\tC_M,c U^テwu~e0i_6T&|L'vqȉ# 2֪ @5Z`wf{{Þ7Ϳl~Skі}2d+ uI RI7 .~C؏?lyˀmlgr "lcdr}cH6ϝ0dOώٳryzc>)*0\X1g>y_}`{hl l4m>Kұtz ROA`ڰuhkW SJ#L^=W S0V<\=i}F}X#^=3h,_{eerG9Iz r@'7Pu{ ߙ0d uy}:~m}7LA*-6Bg=c|Vۤ[k>5f1έdOb)+)6dJZe9^އ}lNpWԇ{9d|KxpL}~R^x< 㹩̕8Ly Vr|ոcfTԡ9#c^ޑPi αO~r w>2Lɾ)@q,z}oVdL&Cb+䬓uӠ0H@@PGVݙq۷2@èWޫX޽[!3! NStTug|: ^L_-'oAn1b`IZ?~)/ W^̖a7_e0SO!Jy8c ,e?|_~ BDbH>& ^tkq aJݚqto͎ƾ*PU`6{"$dʵt VMdMri;Vn {q\yy&Ư)Mj2X} $IkOe{Gw (s'{rdLOL{`36^4'}<ؕ>?힥7fLxЦM>qbL랲M7>KTtSr*]ɎF* T|̅;tuK51r-=p^Z~60H_sdfVP羒]Ԙ@V?E`cXƜ_8NPg^X2$ ;}V" kUA*9)V 'O)~g+AM/H@.p;]eѓ`1!;0Z0ޣ:t>$uwsp/_y)ؿbיo=33S*_SU>#ibGQkeU\Ӭi1LP{as_8awS^Οr4QYSErTI?&E˃LJ@~dl#mt ?lzlՔfÉ<@~b.k1L|:੦lZ N]aO hz@H@γ޶}@}Yap0դˉ@| H='ZWـ/r0@YůEm/r`z}rc/?ZP_Zq,h yJ>Խ_xBbc/NeyO@VpNZP vh,zٱ/s%H&)ӽo1(8/prIq hkؑVy z;"C60.3aiic(0`'0=F9&Y1_@e垣NXR~-;ELx9fG9kQ_ώpƘI}D\cR#z;Ɯf۫V?wv?35gʶ,}Ԡ[c3 8ybLV߻Q=fi; =[{O̘ce@mhkfpVaɖ4PhXtRG~6yg.edj'̛ B Awn&T|MxDJ`O^t:ǘ0BЂnO&@T*0!dqZɁg·+q" g]p db6|~h2@ɕUN1 Mپoig_](k>090}|ea-,1770JQNW呀V1mv};Heu$)u`vb\R6+fl"k߭=W0frcT{IFn N=]ώJ_w Gu> }k>0yÎna 1掼2w ',wLiiŗWlol;#wNߛ{bw8댕wOqs{:vڀ F]dt1{gtIdz7χte=dM@QzG-xo}y~Ux`` WUM`ݷ~`g~gŨ<՚&ރWe69؞r1[ݢ?oc] 03\໸ժANfqA$wߊg_!ׁA_mda_W5w7 zO+k"f\C\\f˵s9.p5g%U)QJ?cYzg$3(f[!;c=ۆ [㧓{~rDIrhrʯ&3^gV>W߰"+.-:*D]\opT|Є}Ewm"$!؋}ncݯaE45=ӟ4?LЎ$Qlwl=c[ bq?!+<$[έ\P}u ۫rQӹ]#+ָpCO`cMmXt'^C;[33]dS{d=ː̸ɝXVw4x籕[k3lLV*bp΂rL`XK0A1YF۲_5k?͐Nh3m;[Ny>;cj àb'mpV^s4W1 u?uY*꣙m"ٮhN bdYi\s[o[XgͬxiK_ܽT(Q@Y(.6X@m9ڐ}1ڍ>gZo3YvVz[+$x  9HYs8?Ťa%s;w\DxRjC#{ojG5gqIc%>poʘmƋ62lz6תKC"nx<ώwŎ9, 䓇!G쿲ǞC؉PN4bˢΆ{&7V,^;z1ϥP+cofʶ>G ʤPfBk@3kA,甪52COC/{~/iC9@pM, @TbSU Ssp J=& [-L$!-=E͇+ɫG5)OzY-e]`K'`:eӎ&?3>O^]yEY"A Y kZ $k`l^(B¤4F@&\s&(o`f1J^(,/~Y+L?xo OWB▵Mggxf'G;bs&v)+ʮV~@*/ x 7<>vs3swW;Q6-x]n6wjk/`JXylpq6=2,߹-)UU2 9+E+;1!c fgOv޶'DM{W nnsb %b=@3dQbp;9ުAq6%2CU\+]P,Xtt<Ϯ?? %/vm{ ) 0hCv[^@ צ,ـC/9;h<]xKGuf'Tˬi ,2yG'~yv߆gpaԧ>Ž]P]<Odb-=pUy戯\v W^eN}E3%bTfvͱn̘{_M:0e|3F}ћWznEm/̝쭩o'>xcw0 jˮusXU9he>gd6cY.XZ`;)pjp!J́:Ҍt>/M{Ax1]ުA\5xs7͹ҡcհHC+X%՛]V {B[ၵJNKNt cފ-s.d5M =On3&2,01iTQ$I= H%U6}~H#p;M}Qdvinx0K?x*3,/=&i[Q^ŽQ9E^i7ArvM/o b}z |n" ;^qܱ$a?5}y`o]6~~?|- -{\&ݯ6޳ S c3H2cJVړH$;wY.v g#m_?b`afrT DMILbK4dׄz 6NΥ: ²sL]vT}G3UNdoha[8/!yWM>ESӏMN,§8&;}Vf2Է,ۄMj+k[B'Ɂd]Ůy 6S]g86kM{q7Q ; ^vhRtҰIwE~3klB{l>a̫ -ؤ܊a򪬯IV_⤅U_9ycm_wq|;;mGd㝧ZXٶq>#/`2` B&sf}"IzBIeBs6/⌇C__41$D&K,dRt%;g W <I '3KE>Y%d׸+,+3^ |@eujV#-d>U 33}|edѫ7U0ڳ&ĸ2KqR/f~/&-^PvT3T̽mɎ:DN6qԂ&%y@c[܁~b#f~`M=a5/s|- dvLM';mGJ]? `owoط1SI@x;+ ٗ|3͎`Sb4Jhg]%{+rܿyLƄ*e2r^ĜsMuKZ}G@T>nX钲 .dx&1<=k|uXw:zr;>ႁׅzY2'1[) F8sզkʸ'\ з7>Q< m 8#{I%]/GV=}±"|a;K\ h+R7^0ݛ uI;lGrZDoq;b;XY՛M[yw|[Xc1l䭾XK\Vr xW숱c[={͸?;7]gؽ3, lMܸnMbO`P쩓f ; VfoU]Fr8H WrF! J@ t]AAIxd~@|u YNRs tI0ꖉQȒObǹ:VwkJQq^Zhv 9g%sHLR4rSљ9S_jq뫤$qX}c#뾓_mG%m+CQWWe?8ןģ~-▨·J]ʮ>*`c?x!k(kְmFVΙip+Jf(#3I g:Xe3Y_AHʔ@; Og/YRMؒUűXҔI@j/0 \do]T.KE+jcGJ>ITϤ{L]f}I nzT.Ueg ;=vtV♡ȳ3 x!*bC0"2 1J` 3AĄ5vpX<RIMRL1NT9,.Zբ|9"x+FU N P’YV^0<ؑ/0O0h3.3Q}O^ f ٔ#1Y\Lr+]}pY&HJL{՗Qufg_xzv2(eaG͎`,3 1557ۑ& @.X#2eLwuuK+wNA>&VL982"&ϖpmFU툔"AeXNૠz%sL]tՖB[=<;QLy\r)OJKS)zz\Ycr`標3.M)O`zi4ifN%HPZ#l{h`,%0leU9WЍñ`ft1f`p!=ӎ(+v, CALGA 9C9Y!YWK/⇘*V5UPoW|&l/g=#Ȓ\fʠ,&e P)6ZQo^p؟^EYdY.~SKrkO֢ W$& {IA: PzDQ"8kBT ZNޗ6;Kɐ,`eX.&wGCQz F r#A#lS%T:# k%lI Iӹ[H,7p0JF2] A-{2PR{M=bMՙ\4uKT P='x%1DQA}GRr pGuq B:G\A&7T)vPB$c0hw_"I gGxO2pqX=% +VH.ULFL'H8hj$@#J|E 5X (m4r݁5Xg *E3bQY!麕.i ?33k_  f-sbPnf>8пYw`& i(`=ٯ ~e݁<>EIQgDR?yT>mDlRJŽn\U[[ $Xid2d9;^J_gVzSKiKƊ dhbErM3]J Q&pE^S# :Yw6yjHƀPl/gX@щABr26X_u%i`oSg DPV@C4S1/;cP bҟy k3ާ"AIg700(y}{pHdž P@;“p~'G|O// ,'V6]jaWX 3cuBMp&ɐZ (;NjͰ[韹d1KnؔZ~7h]Lי+rAX0 ׂ V4+Xk>kvzҠv9<ki]sB dh/J[碗V45b+-Xir~ùd:RTJ mk)Ndn(TmE2օ.;`[<~i DGZh`ml`m1tAk` P 0`p[i{Eᵬ l.0e;j%Aa$;,Ю垒mt=+eaͭ\6H lGde綶8/0&:(*>#hd`l(lu6:m: R @ lnm)eab@[1pӢ ;vxѣL}GwA_y,^4L ,mȳ- hu0RU{6hhIEc6gHeP+ T΂YEnj !R 9mT $){ELb+l6K $gcQEls [n+@F 7PgpRiɜ,}kaHɀezk ;bG(Y&/xKxac5{a86躴&~isz,7c6?nem:"{I⻍KM]aoL9m]8-eM;峌c6^om6 }FTEz\qQg-ϻk^dS7/ |ۋ_viZ]Pח\m8Ŏt5 Qxgq|ぜIdpX] t5[5ʧ;hydj6ZkZkrSW]VJ8C Ip|T^4SfOr@OC# ~'c;~m[n3>JkהP-BkHZ9{6Z4<} ;< x Y,xaG ;ZnڑK"f6rۢQ1Fd+[֤{fÓW7Y5NܬFK`:"&PC87JXbhO2=lS, ǀ1NVAiMMJ^7~;abNM_M6qu'[`A9}&pds="ۂzV~ jgccZ_ KgNe/Z!~. ~aG ;Znڑ E떍ۆ нf 7[g2ѬP;v :#ghǨyt6ѨЎA;b[e# n:oUL6vũg eݔQbǷq*A_q 9i k nPg xfI7 d=E#'"ڈ#3SslOk-hw툀|1Q؀JK4g݉F8u*3 !:^֤QxY;RX~`Gafjxn:gŦ H#Q1(Mecmdt5   3$v`7nx91jŢm0PFH.Ka uOeFF#Tr% T'#MriuL+qވmMvMIFj* #b 軔TYFu[qsȊcGy"t-*ҳ=XeGãVQR[^D9C|qcP˜9ϚMf3YN#vكc_CtPelE0XjW$3f:[0Tf&8AߩFo<{$v6 Xjn4Ymf|S{ .G-haGjGX-?2/HԔIENDB`images/post-formats32.png000064400000012026152213653150011326 0ustar00PNG  IHDR `cPLTELiquuuaaavvvbbbIIIdddzzzsssxxxyyyyyy ~~~xxxxxxssssssyyysssyyy yyysss{{{xxxsss{{{yyyxxxnnnyyy~~~tttssswwwxxx{{{zzz~~~dddxxx|||ފyyy```rrrΏuuu玎Ŋzzzaaaxxxmmmbbbrrr|||kjjcbbbbb```nnnxxx<<<>>>@>>???噙ﱱ쐐󩨨䉉㾽Ѧtttتݥã֌ϧyyyİͻkkkἻXtRNS ,L =%*!.@' -KhՇv:`>1UJHE3K%S[Y_54}A܀j@~SSw'1f{.Nj2ߐhH$9?C?xwy޻ѭ)Xɑ#G)N14'&He2~d2)%Z\^&ZɰT6y IR6&tjYH:Z%u : 7MЂȮƱH4tQBeġqH* Tc]JZ2MTy F2$1'HK%'CA %)x0B -KpH!o`>VFQh&z^b)S5|ZZ3mm3a_L|_,0GY`d!YY`gaܳpᅭ㎻GyGC.'w̑#엯[J*x/ъeirhxȡecT!;noՒWl 9Y4XyRV#"I-")ؤ uI #IET!>SM; A07tLӄ2j~o]~x*m7=NVCSml~?Mv\bdQ϶odEM7Y~_ KIΛ B5Sm5JXGK:Jԁ>Tb!J()QIA5eb`Ael[JZq8{A?,\jՅ [^(`[/\X Fr1>؆K{Y5k-Eˢ zM_] j@+RoA %Pa\zA Oh>2!Ea>0@@X8 nD=KCQji†Z#jR]s2]IG>b#4\lAP- [d6xW;mX)+5Vu1vQhTm )tiX[a6 @oT72ve8ROh@,#uj2-To^"1:)ŏ2H5񮫂WD-L/\?cQZT]qv^mTmff&rnsyC ?ۖ,7/X_]dW6ȑc^8!#;wmiF, Ҽ<&-Am'^=<  "[ʷY^WRUʝK aRƗVVRːp$*tU)TLbi!||j7ס!}H VŋW. _0|*q ^m %C#%?yGQ|j5X͏Dm=qf&bxlbUP5*_F@Qc#}b,mB%xSe*nnA6ªnqRN Q)EQ!,mEO!܇L} EM<;I s@n"ȑ#Ǘ@BATZ(#,0* tGT[[[wuCۦT[&[;B#,APPُ"\´\ղw mE35~%D;:ʾަ`.1ј ۏ~0kb րT6sl@~%dbláBK!0(|C\.f"0[Pb`Ŋh+* L.Q8= &}%Ti1`|A!*("L(—!Z>1mzmFGz'[`ؖaJ>D,ևDhA$&1Iu2:\ܤP@ws5*ęK׵<%ȑ#=Y+;So bF=;W8;<L48W⡆D|y={"y2ú+\Nrw5g_tA*^DP+H5^S 0{|kbFOf,0rKVKXsLg6@ߣ.5a IeDӥϞFH['Se:mm=Y3/cH浩njvdS^lXqX*/;")wPs.q?;ݨI#[Ay.+µ ;rR_k+UUACr"{Tx;-!t2`EWԗ;6IXH.IjUN?OϨ<'aH7xuK)ڷ_x嗿 . /kk9rbYKk׾lCOwK,X\t1u<5!X(\6cە^pz|V>oc7u^뫇Y;ק*N/^@|5y!cis1W},M^?;;~l,҄J[h6+!Kڀ7t;Lq`]/U-dgbl,}<(c/gEM:2_\20Ym=L?fbbkL78>8d)XWX#gyYa_ӹf D:nh2wS1wΪ??hr*(Ύ/&W]K/WP|V{Μ;Upz]WWY<`bSEMz7@("7,ESyRDe*q淉K?ː>m}+_|~ԩC=p۶m?\#mnIENDB`images/post-formats.png000064400000004155152213653150011165 0ustar00PNG  IHDR0!9h4IDAThklOժ4@ 8]6@JQy-Ajf|]EDmS&WMNCHر]{?ⵝήw T֝4s{=sfYXvഖ5D9W:2w4@|a$Q} pv}@7Q ~G^9 4+:\ ŇtASX?gt܃}`[ G-Xû! GJ! +dFx$X AkYdYWkfȦ6En:FEPΓɧ} !fp9zMM즧Hg`~褓&裏:l&`N06660N(YCCm@ʧ.ifNm rL9يُȦ̒e Q_}ƤѢ\c5l,1vҋdH #fz1b$hX ϐ&Ë/5b%}p1f2+F1e((?7 e߷SObHz`cfkOպE@pI?HY ~DYK9CD!2e:VQ WCcޠk+Đil|+ 1@fUM,0BҕI1/jW8ݍqθFka<L1QVSy%Kd,d*w]r*Y(sj]T@/ֽzbD9c9G (1ib&FI7 {iZ%&ĉӅNvjHoЈ6ty(k4cۍG]44=e?D=ɑ&E4IR=^qhѢӟѢx4nNPP]XOv uzxOV3Cu79GΓ9r|Y. 2G$˥y9W>uQJ]"#Jе:ylOu褮uH2jqrDHg99:z&H,:[ <*NqUkHg须D=!"Q&颇I_ t2:mQtR//TLBetD~\'~b& Gtnu{)ۃnm3,|UxQw^‹WXQ.7jG*r#Dif;[v'9TmQv&0YĈ~#ql`'i}NEXY"8Ҍ&9:hfG1u7Hu\wCdq"5 Dfr\! ::Nr\ uQ;@][[TZ== 2:U_> jk uﳈEQ/wb,#FeTD]Pb?8_uIEΐ #-|CETMEԱ㜠%Q܇L0ԓ%ARծFՐ;Q壳vv~oyw-n`_d U`MfLs~\T|8R4thίO2`n,"[y#<fH%f]1dŘE?=4ƖǷ3R|V.DiUS2k}[1a$M\{7pݹcfƌ D.vHnh%H Yo!Ŋ1ҙ"fz̺%F̤̔iBASfm)P[le1Z݉Qt 6t쎶y[r(B+52G.Υ IENDB`images/bubble_bg.gif000064400000000616152213653150010411 0ustar00GIF89ad)iN!%꧐𿿿d=3̡jgΠ4SkȺY/@A^u&GauャwN!),d@pH,H`)Ш~"vE.p`HRN~:xq@ <6yLK iKZ"ZVU RVZ'ut#RuZ!F{d RYbjL [W US[Ϛ&uSt[r$}S[IA;images/icons32-vs-2x.png000064400000051624152213653150010767 0ustar00PNG  IHDRZ"FvPLTELiqQH['kED4HeHPtTxM=;DITG]JJ>M[Q=E:L3[9JI5鍹_1voBهȨٻk⎹yĤܭܷ՞כӷNgRtRNSK *0-4!&u[LAThu7؋I=2VŮkgBަ"kahotOIDATx |Sm\1 [HIҴY˒ղjYdYX%[5q 6aBKh0iB6KNgy={%[LG/W޴=?wRJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)Tk7m"7mZ{VH)RӢUCVk^jQI)RJ/h~qz='GtMJ_SJ鿪21g_/Z=g^WV R;:'Q {SCJs{M3<Ɩjll|y# ny%}֪&+hVc0҄^N֌qdž?mz,1%~%_s+yںss[/~+7~~xÇ/}hS}Y@#EFv,6?Bel]/wlV;/ߵb9O"'-TRڤj^o }k@OͻrsI«܂XH{9Ji^3)IgѢ+G|\od|'3233vp@R{M{%u\ޞWl 5 15luk%"_ݵp9?_DRd56m8OO E*BxN*ssLm7O!dЏb@x0yv5[׍~UW%s0#3AԸ/Ф7X?B{(=|w t23?I׆նG~0+^ L&Z 8E?W/>| QȢ9'=m#0]KT6CtT'dٗ8}zr~HD#yt^o:!ұ=prZ, }2@W]\_8yR]Y)}߸,^FՕ[W:'U4E'D"ǙYVf,vuly{ )ʤoSPvL.jڰ쥩u4ȱVN-2ʞ[?'/bGN lN?|݄nW4|X eWM2h7iUy3M)5/M)ѰJ)WG޿+S,BN*"~9 ^ҭbGR#&P (3*Dnʯ*Tdq^Q~c=Ft.tar l_{ { -+0:ɠ'de]~-_ߒ>`!JBU}mA_*ԉ P2d0uB)=s=>qSN err<}=Do2wQY<(Xecv%`g--yi|qb5'a֦Pv^}x2BLXD\Ȓn+rmI[1'qJ*"X)i(^G y:ר\},/qeETQoU+chW/@yXJ zBV+ټQ1WY)ذ= lt I\n)K4`AVHSKNO=2p@-OП8r!J&]dʵ3bKnڪ T'+:@h؟@8r%0ܼ,+-3;R nQ&bQJnM jbd8MFJ5:*D JxУx^d\eܺ8[ŹV(EU H-EU X72NAx IM8ѷE 8'@hTv/X;V^?EWTH"%Cw<5̀da=*}(^:xٳ'?y?ON§(?޹Z* ,,B>{ H@W|Q7QERvnSy( ;|z+Xfuɮ3Z"i#-_ormt:γj_1?Noz~e% 2-\W&/jE19u{ }E~yΌ`*gHTзXF]\pT2!zw^23huJyV17tv4 B2P5E,ut400ܹSw<~ FEu+*M _#lK?Z15aQ7ʢ"`fp+OHyǶ0Q-񳩳NJ]u\ 2=j.S6 POh 3TbH_O7D*깄;`zفg8 jUW(Yڇ $2ag ;#6w;/IHrDE4o(s ŻOEY2UTJW&a4#AIMl]uup P'㪭&ժBmM:8uLFI-">uר4E|Cs8%HBzvZ<.Eejj_v;í(֝ZMcg99 #c3JNTgPIFs mY[l$[Nܼ^s厲Y- 7xj1$^d޽K4tRb5S1"fpԹΞ8}cNCNdzWGB3-Euܧ2ك>eA9zJkkѠ_߉8x"-OgN *2d7m#5HA='J#z@(MTXo:uNUnu@]]u5l=T#ןWOy|o,t:A!=/ v! 7;G1RXHq!G=`9^dU3 */3Iؤ&fl&|v.']L+o%Ҥ8yRwmh BQiZ)` wͅ?9|h ҋ Twb)Np.Aq^X?=O=0Z7{w#]6Z L>xU*v)j t9BU.ۦ2 :SX!%8_k|PŜ68O`lZ}Xye!CF [Mg@qY+ mR1XM?Ζ=A]@ȹ*"z.Dv>.# 8/-&~8Ov}L[<'L2g#Xh{I@04 OjKik4.$T5EGh B;UCW0Ӑ .H HT]ynjߛvOZ*z!JmAd]=٩#j?3q" $&hH5y?[ү̫t*ɤY& +F{*]UJ5zB%:HR0BHrZfZ)ݧ㯔uWCRC:E?\Y~w[UR$r,lH=`Nz,'+|*EqqA)QYW&RMB&ʉ@Atld1vd>1%uJ(pWy m`MۜBjGB)+ʻ6K 0T@z(xVk(v f9B}o2C^ īLpXj#U.%r9B=yc=&ĉ,BO{K($GF.O&3!U8o;O%rʎWI)D}|6H̍Xyuωx&@рa 8M3 ُ0{m:} >r#~飳'$Ʋ|تijeF)+JY rg8 {`Ѕ% J8$ak̦-;ըOV-b&0E&1)ށw=A?Dt:v`<- mYPKK`@źbR k5c9}\8UWm H/?l`qGIO#@dxkӐmiYɷЗ!y!}1oћLrLdXl({I<v 1]M#|X ShN7E10kuaPpsp?[O_׽p(~SG\:~ ~kHw %1wX]f+qп,Y*'/[r8_ mm8z{ }7B P"Kc%c,04"ѠgC̍ wS78S738} ܏?w훳GukJ< VPryĕ>L@[>c+Dn3g)}sI⼳=&۝8;v"3R@:zMe*y*&?A≥hrap4 "jh9y$Qm5yU108 \c6ADwSpv*\!\EA6+ IQ8tJJDE>({|/~cVG6O|瑄=z: D IOnDWuc4u @g^Oߟ4g-;"&qq\;bXl*Փd$ajBFg"m=%qPFWVsq'QS8~{]p8x!fw$ zk )uhsҚ0Q3 gVbi y_mm` ^鬭E;?%#a&80 6_E׉*>+gxq kY(ה5$kp$M oo wJوȨKBŵmAz*G$ɨFTe&hFXrΒ5.- X3!W#`􏑾LO-OͅJ 3=:@Gn%.0;J$ʓ8;z w\.Au料h<_bVqkófl_2Hђndt6cuVw;a U@CXT櫮xmYУ2鱐U_'pـJbAlVֲūm>)Hݸ}9r~%[ r|8#稈`Sq:+JF1 l6{̌]>qd q9{-x6z3 h_y@EQջ`"i8nUQEp`nt܌_ryI|CP]gdPGÊuC 'd>E>9+YmzwH`j5;-˛<LumnNʷ3tWO49/ʔtf.y &Rs*,K#&$#NT#r7^`9š憡΋zj@-? mDL" LMR!zk0 CzDK6IpuM{CQ -[~b4yDQ'ޅ\QMt ykICӘ}O1*w!:M_;3i~X6cKum奿. //7毋]ZuYtVT:RWrAcLoTS\UnKڱBW>z:# G秾^ k|&](Kƃ -ǀTJS g"Hyh(`eG8-fsCe4 )٨Aْ0JhPZjɡ,Wx)@A>֙[CTU_7!Hgk+Շ jԦ+; NL=J3g_j~d;wfď|qm2I6N 2^(F8MD·\崣o }@Dz>X)Eaa'^]gA믫r믋 "|9*Px>?uav1挓0#=@M="@Ԇ@o8+](^'ň@o[J0獡PWk;xvi?ә[B!c"_mrL|E/bF&yƩM=|$F}=D%*]3y,( h~RT!<Ρ~8"nt-IqUTQˈ'!Y,j-_UP|ЀސɠoÄjJa& ER>@ݣߋ}٫gۿ'L_LԥcӉRc=S]Q6Ӄ%ZGú4{ŏ3RO_=q0S~涏[N}r*0x'====S$wFQo?ae~+){\8УHV lWjamkU$s}V|z=Ûy*yNEiĀ2Nm2A'B، AP5ozѐN(+suhmny oB/$ &i>vNCvN`Ԋ):V+AMٷ"緺ڍj+$d7&rhØPrr(nwuBÒ&at<9tV|49믋ao>s.ǯYMH$ozMZ2fG.[ L<|Y| Nc8e}XK a_p"QaT~hbDꫧCDL[n@B,Z!` R`#zX핖 BpJ|ק8?:,BbL8os%Ky@y`*k鋳{"wQ(D60c^q٤NX&"ewնuw]\B=Pt#ON)x*X|h}&>îɤ1Nz`1憀|ozWG z&SIcji}^D_(!Fӳ*›d%dSN#{<nH#ؤ;KyqG P9_0o_4\[LjK?Kzvи}AG|WWzd Mhُ}4Z _{:XK^ =ZM`fN"6kU zԌ\>[#k)E Jn)TZTQA+%hu.x ԣ MHwEDCSXw{tܣr/bԆpm5=~1`//4rw`Ox8ڪBLL![ l^XE;A="1ɼ*z rdzm]k)hL(ïiGQ(E`2+iaBmУ* B+sHkXnk s<[ZU|LF>s5Q+yZ,Io3|q71ð`;.MNܘ)uޝXgXO=>Re)n |l6*T 87ԕ} I3 jZ/|}#Iz&r:=/@j ̽ay b,:uqas? {wԍFi8*".S#R᠘}悕Ϥ/Z-W&KrA&PB2zJ{%R w6 a;XF$8mԎ(ǞRHʟ|>&LeR9kh ^ @N x0SxB,x|)_ϐFDz88ߛ40ΥD^oʠ6KX,{Q"=dZ 9ȸCYzyTGFojp~0 cΫBcs(il_~7|/on\ݘ˽UPjC-6IWpp,ğGx0isWqr{wQe.|v'8ٌm<8M+ >qЧen/\R*.=ߒx $Gהo'xd`dKqskɤ^>X"SmrW!4ʅR|&B8!*%{VωZ tYMF7VQ*2iAU|eS^"ю0rѦ#8̳2d2d eك~ˏ/9pY݉UYVuGΞ8r-^E!Lҕ+S\SU~=GI ؄8To6" ?E',"`TvSAusJ,dm**0=Kvl0$8]7AZ( v!ocFOTRpٹ*#5(1dޔ/0 *o&(fO370\D"v4}/>s-ڥ5j?_\O=y&sXd6C'.3fa#>vE#/>v2N Uutç_ر7AЫu{7}gnb)aqMqUoMCWX K @ڞУW4h@/婐֜@(TA-L (Z̅2.;@nkp@?I,Vr09 MkaB7c<0P*呪6=*a#aR9|F3â9R8_nEzA!%zt-U:5|~_ `*dU `{TvGXȨ BbAˢP[wg-5{p3aof?/o|dAw|x@_>)A碢3"R{ƥI1З|r zStoΎ~rS~xA{Ӂk!`'0 |?=2m~qsMH-H_MWUIQxm@>ײOq h76qMѣXf@̀=h }b9r-]o4 |EO%e/ ΂hDۑeZW#JC'V[l!Զ HLR!(%G'u,I7Nԫ[$p+]`dG^IJW\,3&8ՙq = >ɣumT^3-V `)n~ 8q0Ob+f;0We>Px g!<}+8|c8_80?8vrÐ)!b6_h+g~"=l06dsw5Զ]jm*)@--*3e0^[T6zh5A~a:Ńyj'+T쯠$\[da,-lm:)w{:[.l@k'.x̍tdwd%c˒n>lWxff8~*l_)D6Tem_"O?Q7B=y$?!1alt/?h֠_c>sH\,?ox3Ql[[-}k4=}.c&?o@^S")[Qԁ)˘)k߷>3))QЏ6LM z%Pg m Z {L0㌻刍<:D"b1 k5C,ƫT^@ϔJD^RsV87roEz6WzMR8vvH6QΑ+@//d%C+w"YO9$E s;`XcmG@WCX_lC;w~ )nz}tϊ)vNt)N"ɛ@z|3F9:7@'Lt88?_f8턁Hbw㥺UI,T) uawHqЫܘoDǜ|aAÒh: ';qs02% K6myies/% V꺃bæS(V:]gJY GÂyZLWE稬 ﶓnMzpGCyC䨤P`_ADh<7=lł+8<@dk4I5|~9GK]AwF$&ಙf~{ɛ|x{緟}ln_x ?ER}{&6/gDn_5s9#}|7< 7SV:(`/f2=Bݯ YMyqCp}o*9v!&}3ViV[us5QO3:Srb+ dž mp,E7j1_bd>cO%D~n! ]fBWdD#4l<ɘ^&ϛC3ޔh,"$q>PBw:$ދʹDvdG\68@27:8yD>뵰ޥ(>TyЖՃ!K"0>~hDQ7-7 d:-'?9ÓgT`':z!?;pjk>>pӝq$胀@g mPH 1g<Zh:)_{6#i^\GqM}0*6R5嚇p¥>󟗬J[tyڷ4$ *Yw׸*d<Ӆe"3.]6Rꠈ~O{ts#b60/iO;$ȯwANF9<>?"`$٠>< =ӢΕ1+h0&z G]>p ΏjW,wC70!c 5M #@e)sO|qxiGXb/&:.e0Fyn+ "z!ҟd\"K  &? ܹ~^㝏 ?W Uldv-KU孤nIXjy<6a 錜C((lNN^._p_'GTI|!m$ -ɠ{zTFq8! <g;:}YEqu!4793JbGǤIhDg:"(w:;SCz׹xݬyh~ʯriu 4ZDztM=MzM l:, TS5tj>5>:JD蚹mZjOy0*HU̫n腑0I?ФR5՘z^ΕJprXl&|4 d nAz@}29vH*nJH2tRl4uA 91tъvbҁ?ߦ'· <s%7pĿWHAOq(&beO'J -㇞X놩-1>s17/^IRX0Q^o۠['%9L/h gS b9z?J,C3Jd׳F9O1,r6_Pɵ A#y[=xn"zSL7XJzp3F5mƮ[s^i|u+&UrIJ zMg;xogGHavgyC,7|XW#|;n {^TQ#; cdu7˟LzݩNQZ҃M^xxjh+HM`v2(7&I=dPx\m O@or~Gv^A>`4t_b`P-xC Э+s+!yUs[x$}3x+q?/C%]%0v3ɠg# =4 hEGy-}ƒ2ӤZWX{'Fs}kӆ^?vbm{ɍg&#_=DAccaȳĂ>v:Ѓ%G4B_am+}'B T45P_nOh |*7fί{ِkaԡ[3,"âtT5*Ϸ] `8O;$1VG z&ԉrPK9p)Ӎe R/J!qЃ' lQ.>%/]* zoW8EzV60g{z)_Ik^8r!N8v/3\K)Bx RB%+hC nm~9?m>x>mU3GhM#%=2x eJ:TrJކM֓AubCcG0o㗪hZEѡ%m|f9[*%}vcMK2R &脴I=3 EUXlEˤi5`Ng106rx&w$`5xm{$CQ3@{z%#؉z} `L}~`oN9|>9vM$*0'ff稘ăʛZ1^ZG6^F`*$7QN[dX6tzTA~qG=z"@Kwr]R$䐷|J$"2@zEp&zHR?2P_U=%zm Q^ +OHY:aR5`WhG!`mH\5J6.UaΌU9t6'اa$Az(ys}rCCN&sì-|fbLLg!=f!,ypF4kIgg.. )[Eu0@|_{tަ]^\١H} US^mjCGTD6!砸fXzAE}FGmOvz>z3~^ЬX+"$n<RAo`?q5ZL ̿ɇ{WEpj%p+d?0<A?6BԀ=+@lѣyةSci%m&chm kG>(ʹ9rT|\0P CH!EJKJZO g,G:A+P2 irfF\3c7"ac55vY~ q~w֮{*6ի 3~ܯPZ%e@U6BlHK9C2V@ ߋf$Ca[JO$מޒcQM y{Ʋ]LAF(f}fNGs,1Eѣ9Lg`=8sTllueƙ>;0> 5@,y8{_kC`P{{d*SoLyFi ES^b{ej^'xYmQM(sa4?pr@8׀^P96Wvr;pV&V5#,&t Ч\zv@v47us=5mr aQ 7ޮF)@X`+h@OVV]"w;͗ru@<"~mۤCprɡN+&v5 u-aF_c/.Q]zNBTvF67m8}\@ ^m{u/2} o_yh{YOaH+&z.~{;Dlj'|۳~7h NUšpӔJF5XcI]`yy˜ 5To*GYR2Px~)HOAxڑq:;Ž~IrgD#\Z(Ÿ ϧkѪ!8/f ]L_u|(T[af\7;}+0^JCƉN'YjKp~; 3}@@ahZ]x[O9`.z=e_oww_;+RH7K$'@u/ǭҳ }o{^}YWu߾;ݯ~^̬,w܉O^ FO #r>agn/qзvCwϸQ``0 70?֨~)zN¾#Nbg#!RGėOn>#?@aaSf.aJwJuK-mh~4m ?r BۏCygȣ~nH b#dv 0R(F.d͏mvw~~w&d߈BʟWrwL6;qpЧ=]\^e.)?9_P, ryuV8;ݳ60i'/Me'Qlj~R )WؗYI$kn}4ٯ,V8+8e# 6bN^-x~izYFɒH\ܚy"aɎͷ>+j"Ђ|Ϭ߻{~ܟ`u+RW3߾;zȷ?wv?э?[Sth,k{_ef-u~ hߞbm_U{?toݛzSJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)RJ)R"TrIENDB`images/dashboard-background.svg000064400000006420152213653150012603 0ustar00 images/spinner.gif000064400000007110152213653150010160 0ustar00GIF89aݞ뀀! NETSCAPE2.0! ,@\x.&I`V)@+ZD($˰kbLw,H @G\e7S(C*8q|%L{(t'! ,Px0"& )C F0gH5M#$l:5̧`LJDE`X! ,Px0"F )C $PJ!n g ậ}ۭ42l:m'G"LCZw9*e9(=4$! ,Px0"F )CE$PJ!rqwd1,CwІFO3m*lnN3n(f  d. =EC$!+! ,Nx0"F )Cč" ٨njq<*&g"SZSLxI! ,Nx0"F )Cč=wdFYpFG3Uqܤf"3'pݶ$XvĒ! ,Px0"F )CčH~GnnB@ͭ-'ARC2#'g"PLj\Nɂy,HT$! ,Ox0"F )CčH~G\h7#|0R#'g"P\O!)`ɜ$CX cbI! ,Px0"F )CčH~G]dnw$@=f"P\إId\iy,1$! ,Nx0"F )CčH~GԯAdAA_C1a"h"P\d\N}AĒ! ,Ox0"& )CčH~Gԯo`NQ<̄ȡK&`ɶCX cbI! ,Ox0"F )CčH~Gԯ)!-f&@Bq %`ɶ#CXDH! ,Ox0"F )CčH~Gԯs( 2Lp֬! %`ɶCX H! ,Lx0"F )CčH~Gԯ\Hf\l]z$%ÒL cq:K! ,Mx0"F )CčH~GԯWOR dItQ\*5%rJ cY4 %! ,Lx0"F )CčH~Gԯ=6p&ekF#K&"K! ,Px0"F )CčH~Gԯ> p'ڇP#z %nx,1$! ,Ox0"F )CčH~Gԯ> p' n&90'v KLCX cbI! ,Px0"F )CčH~GԯHp#j&P0]zȒt4r(Me XJxn images/about-texture.png000064400000310610152213653150011333 0ustar00PNG  IHDR0ptRNSppppg'IDAT1mg+k/YFG FycP'RNSu?`SEu 0.2L9Les Ur(A軇鮒3`UUȇ\3adJ&@ք- `ĤW!%a#w9vV6l$܋Q→,C QFt=}6+]̈́Q}0TP=֞ Bw%{ .N%aDu KN@̽+ ӗ`Z5aLtf/qӫ 92n#Q4$wWV=up׳=TU!ϿND D1't SX 0kj4˖&6DDŽ&58=60cF/ $a/O_!'@56 Y`;v|QOZU 'RHhQDa9VXa4@:(`|F2 Y9I640\I"t /",h)$u&1#P {=ZņxB6B8l΢ FWj]{Y p u d 5 xhX!+mTՆhtc:%lXQ,@2*`}Hp : (,k+(rm;$a3LFѨ@:; q CA@,m 0,D*s !֙Q+W/;ØdڇYY^F/+DAr5 Aڬ j,/f,)C's1ֹ+ZQa@=\ Myz mƌ6ba赳y|ơX@qBS=_߾zTP6;R11=S'@N@̜b rWXm5@O_Cλ }??jLcdŲz~9 TUK(h2TJjXFέ65 jP@R V oX+,q차'ߛ_?nd8γ Tz&CڤsKL&ȡ Sr.lpj3*ãpBU,s<`͘^/` o?hu42TgLؘ@z~4hCpl+aLWFљy`CᮺGe]wGQX -XȜ :!>CHG f[6\5L'tl6چ'=_ۯCgw< 'D+QAZi0lȂ֪ caۢ+쁓PP9 '0`Z@3f~/,h+2T1WUO˝o ݧj rK$Й$>4[BA MM `/@g/у &@-9Bݰz?}һuAM,F hIv0 zth;"H +6b7?TL*0W& $(H==)^z"MPmFmimD)  ,5 MNp8CǘpWxN 1aWcWe-󓯶Q֘P-iI\K+kWoV|wNCU˨ z"=6s `쨌cUe@4$@L zl>?j~yy>j#;hHkۘ9XOSC/ӆQ{Pˀ&x$5 `Bڝ* ΅*Y: kOF ]?zX0lbag0LϪӫ;zLe2I{:}&@1ami5 `EE+b lkQcB/=O^g4\SVmԨh`q0f ճs7}Ԏ:I&pN5 1TsNNa$VX.L& Q c_>_dp-XY;Eh/a%Гz:^F 5+а wGc.,R DeRvxy׹zc 0`R `4?k }V:3{4EWbK=}Q,:c. b+ CS ` &K:`LXap,b}%gfIC"tca`F|rVJ*cLk,G,E{bTѐ3ѩ. U;,0f̄h`5ܛ`^<8 ^#'Q?"&|RG?YU+ɊZ|xU PN2ý˘ŰCe40jӽu.Q ,m`%٢zebF g rz>%O^ԫڡM7}LEةnd_s\4vWsRJD;$C!h,8i3ܣpq|UTACNԟ_~{^C'=^GBhScW1Xn4Y:u,;8{5"dAC/K< 8 F1FGD:N fqz>6OL_^<{yz^xmp1!9R@jbc@0w9fXv:-ʌÆ0/_aGS ОQecߛ4_ $T8/C}R?|xM&Z9Ҡ Qh4ݳbndӨڲH@n`0\& ܋? ( K j@eѹkP@&phb=<|uRG*FZC=$&C`Pz̲F&0{QY~Ͼ=!j4hư`"1! $tbzUOULzƁ9 *d٩  !l 00&:h$#)`&g>6P{EVXc&@.าQZw:UU;U1Ǽ+kv 2'97` '2,rd[3"Mdd%@i-,V/'UzT4ljĹ6\B`-@!dc z`t/lb9xt=4c%`Xw)@Dv((M+ZB颪jJtNiG75jlа; M!u33|Lզ琬( m蠶qM EC@ɐ!FNx:+7zlɇYIX԰ rP uFy(yTUU;MXPtnl*ia#ЂGӆ!i&lpb0Yp$UVciRyԙ``CuBTH!YUUP 6@F@LF ñ1AfiF  dr`i0h iW-D P zKKӋ꣪g݅{kX!& 0~z\/v̇׋V13&˺:`UdXpN=w ؁(v䎰 =T'tG mp,F) =lxxVϪr]fV3?`ñO`V[ұĆU ,W'5[=`iN fŖ6{=.>^鹇^/]ef'~fz#&Dgoc7bļs6 D:( ~ :+;YaOr,O,y0`k2L2QDqÇ߽zY=}UU#f2 E~ïR X ;9"m؄b E6Dn NNֵ68=&<ȡqң$p9B!sXc'O7媦WT o2I@&3`( 3jea Pwѣ jکm O6Eú sY9+9C=UTx$ џ`Y r\RU^FH ^ V8td96<.pT5 eMgoOt{/WЧg6X#Q=>j@B@&Y N-Q'](F]7 $F-T&Ԓ{ 5UA"E}{:,OOdًS=_=di,b:Çqn4kLF CQsf̋]* u+@TT  =k̄ ,0JV[<|m,>\ P^}zm=tG`t6{cVu_z~zE(:;pU1M Q@6'#3C; Xb@ǝ '@/sBz,½,V@4 `ܵTU^NzQtUu g :Trd+D6Y Xd(h@X 3:s ^)7Ą,k#`!=8T=z84=+T=|P @f MI 'C% u+R Qz|%&*&lTO_F Y CXQX塆\TOgUϪEe1cS LjqL{ln`hmg M)g/= FF5@~#dXᩛb48ӆDXYW k tғj^WTz0Ӥ6ayNa'&ȆGFڄ7k,P@6hO^|UϏ:#!?|ëspr ɖzB {O[YPP0'3&1|*7Ŧ*,-AcXV+N W=y{UI*?<}xUu-l0jM0fDưq a  L@6h $?b1G XWL5WFo^?=] }糝G٬5+<}3;u\G wVA+0(̎ hfDD  Ѓ%bx sLb;ؗ k7zVaNuP *! @V0e7S+Qw=??p5Vz5 qm\'1S;'0y,VCFsLH@(@4pßoǙ=}T2\Q||!K `!hF_N/TF7O?\}MM{QUITq 3{!9GFDC@hnŸ}o+'j=:t{,J/@Nb\veQDzGϪB=ϏO?\}mUǥ!IDFGƘ gN`BFnŸ}xM0<0RM֒MZLݠҋ.˳'MY oo?yUQ 0D{fI8B6 霰@A¶@OVwax0t9_9̱g5,y_h5`U?xQקC %}|zyMwUuAtB4tf1vtdž aCz, qhۗn8y9b(zUjgÀ@UUU?m%ooϷ7UO qf -@Ue`->X$,@hYX/&0?zR-=8,( ^;@t9=/ɧcT >wooU+Tae22zԂPw 8ƘL.̀ >6 l^>}9 l^ F6dAZ l vCUUtQU^MՓڨ*D4d/PPOPw'V̬"uB4Hun978?l?}}6hUT;bB@1`x?}9u"z>:CU{3ͻw^/Ϫ>\ӯ&tcN1ԇMݝӚXD@L OZd|o,t2c?sG ( '1C7=}Cd'x=i UϝD==]T}xTصApvP}xYՋv2dE@L W?cb{cGo> 5R?+P&Ë&1CS LTOonY=_zC`G %B߼جҫ‡߬y, -Y(rzPHۯ>v1FQyo{mHzzx񬪪6Y8r|{i3>{B*c >304PO 0aE s2}@HfCiy,{CG YkTiVzp_g5GX!?uHΏo/zyv֨8Ts o޽>n:T:tcGd灩z~ӕEZ =ѣTaq:~v҃1'k}$N SXVQcR۵O/Wթ90K<_oo/MM?N M2aΨze݋AYKÒ`֕Ț|X3aO^~" VغR7q ѣ&7G/z>Mgn &vSga2CS7B[g Z,:X 6dAjdAAD:XauףxoL`NN ֟ ny^?v{гG xϯWUUUUUwգËŖ !Kjn 8VX-4/jxx9Ndd1}i $ Ci?v{y^TNh&8[UUa\o?|US ?\ͦEk+rKN``YS'a_u:9"!Man6+h4|?s?ߙ_@zݞGtr=Z+By}qSUo?|VU[' gPá#=c`hHE,++pg4|x9@ʰߞ~WD|UrD#v{9y}Rth &kGUjzィz9;m:a9B8Sǝ((&@ذQ'_饳` Č 27'0݋ 㯲׿`ޮ[Oj>,coo<ÿ Uwn.6tԌ9:;YN XqW5Q @2 |K~ `dd`<^& OO pO7 5߼y~.g>_U{}W=SX&veM1i (/ Qqu ܝa9Fo{l?{OWab|-%0C>7Y(O/޼=_ UGu=1Ƥ^:#f-_d\T Ϟn`_'@ӻI/_ljr^޽}|>>}hE߽ msF^H90bY0jj `̄K>%>>:$'ݷ?}]UONUU=Tsuh&yBX6 +@dM6& tN>rW0E@@6O (``qz>TGm#YG;on9mOz]Ku:aKk]k=ÃjYad}H՟wvzЊNUOZLuZYhv/dG'l+Y>2?60 (sj @<=YSA zթCOMNTO~t{}y]MNS°qf=ڣ@5fb0 %'6,Ch1b`d 06h + @ĭIUwOdz׷O<ݞUgTI=cncn T'L6(yy7;܇L,FaNQB@ xD@Jn@ =T^uGw' 9lt]E[hH:!_ <拓zUR]gO7j;HYNu_Tgt0ԩ9&d* ``h2aO_Yco;! &Qz{i e`=t|pBxHr\t<;_6t>}q;YP/p'B-zLFԙ3{Lq 1c2S^Yֻ::P|dg;!4@>_T}U?b ϗ||V=9TY'cFյl1cm,W'\ 6&qfllf#+k)>}tB{Ջ7x)ɧ'q~^sF%{49Cm Ih;-0&$D-4@A14NjϬ¦:0cE1S!+iV.ެ!:Mc8kWw kZDŽ[sxX&jbH4" Q6N `4Eg8?zg5;~TAdC4$bE ǣ^.7'JGڪFg:DpJLp&9ս X`0jěWB3f aGIqj`N b2`YXrE_؎S}UI%^jIb {4IztGu4^tQCv{szU1mORXÃc"P69`7V`X߼66yZ|r~yzK+ 碞.WyA{ţtQ==^ }Tz 0b8Ìb@*HU`2-N<饀jL3% l3ՓևP'5Уon/׋ UU<9Ycl̬a3QX:vA w +<}6~ Ѕ-"Xt.V- *l$=>T{߫POדNt9;HFK:° ,`,, ,P@<}+ZmL%:!'q#G'>=n:׎_qbqzz]N/gU['+M +f#sK!;a4,90lAY~'=+]]5ШI}gؓZ[VAARqЃ< r}rA#Xr2m5i(AJ@4MerI9A_ o l#ZҲzVI_Mrr{{~~1I}~}wMPvޗ$z6AEVV1@?@{}<~I3a>}Hkp,ʴZ?M^:g߀v2gI$ T~_{量ǯuIwO$7&%$hsYLŨbu ^-ɇ+?~Вhc6Z>#4Y8gl&?}z{͏ɺ$|zMz5ᔜRZǠ!'m˂Y@ ofw?mXmA G+zwvZF. MR_w?$yVt6v-dM,hþu8Ov -}ғ|(SͦZB 4lSmXZho6)zq\__^2>?cɏ?sVs^?_o<%iɴEˢ]S#ѓ?/m56pLͦ@8t~g׌>};K}ͧǯZ 4F977Ll-K_?ߒ\~S=V?&?o% FJs\9#-Xoi{$ɟzaphScLЦQ;\ik>}M@Q؀%?L]W?ݯI/?}^nϹ}tL\k 8iCϹ'==gIN9wK_&P` (gAz) @}=И|ݧhM~/: LgٞzӇ~Mb<}}xݿcn${z?=&)`T$EF2'5'sCYS%ɂ627zr9ހOW[UVFofzfg{>S>{6I9w~t'=W,=9Y=e\fn&7]uLH@HvƹaOޔgSO >eX#s8sKr/w^K[{Iwv=$I7sA$#edqkhM6@B`Ȩv^ Ў&㡿P5z'& 4i[iq+In}{~x-O_nIÿ}I|cC;sjIVOh}kgӱ$%ܳJOh@/l[ MTO|ݨR oۡ/KK$+>$<&$_޽<}v%&Qpdv;-sVISN>{ s x*ZhؠӐӯ0hցxZ"Ym9#+{/M$y?fe&}~%IZ;vfnLu`ԑs 6˭M.3{8x}-|ovFÛ}$^ZzK\c%$I$d$?׷_|.TTƹh=%39SҲ hAc<\Ceڢ_}}{^22ԖgoЂvE" F'k$rIw>>럾ϻk6fQ^֘i/ۈ tT&h-GFIn-`Gw>?*'+=TciK9DniI8'o>IInܒ$ׯo_߽?'+9heO}h(z&3/t$IjŁLh@h| m2?ҿoߋ֓:_jeV$֓Ne&{/c5o<&Y#襗̑e{fo22lj1v{kЫKwXpO[93ԧ4[? k%5wZiz2LZ.F}\-y|KϿn?:0;}bYp &d$z8@?upOPF1)&8 qԮʶ<Fv~O_~o{&MO(=6k`@;PZ7񞠭cYӘo,le3lw_39q*Z2HB{m?Jr}{.y|?&_gL- ,l6}Lyj ?ʇ{27fbsfԡ{l~WsaIzxlY-?{os$$y(Z09 9<`~޴^FA[|G?e>yYhs27Go'@`pa,%=[+ft-Y}zx޲皷ycryz~&I߾O2ajYySrNЪ 0ɨM?gVFA@k'@@{YR:][ Hi.VO!zmxoo5<=9>9OCDvɥ{8,ogQ6 dG 6@{YS1J4:Nud9ϿbT9<88ZtN.9yܞ=[krNrM*?bs)65;sTvm$Yme:ր.e[KV}F-($+ K$O߾v}}KoIrN$ɩPhclYE cZ_ 3Y9zs@2VO_1,yU&mjBoSěDrFI$/1OϹ?_o2r{L$ILvV[s,ڄR2u0ВslVK׀x}Ha,(x[ޡ14,})ZT[yLٳr%蓣F&[{mi^t?f$ɆVҞֳZNu%ɺf:ڧY۸?>>~$'ڮO1\/%YIZZO|'Ih-sǏ)/Z 쓖 $y ?Z#d%26LҒwy&<閕{szzboLG;#(>j:ݏdܓ$ɇ{[g?(׏f^^/V`l@lF?)s[<9yd~#y\__ғdd͖82.\u#Z$yz<&yI{^R Aq' C{lۨD~K$ZT=@/A֒VF9F]{#%INPo{!dQ<1B$y~{LnqN2<Р@=p}9z(,Te/\{Sf1M=$I)$~9kK2gR33ɤdOD,=I޾O93Y4x,K`P0hk~KenSlՁ K$Ӎ~3[nWVeXIɒ$L&1򐼽'kJ& uϹ 1=ח6g3`i3h7)Ӿj hEuNU-斋\/=I\qJ͖2N,#I$'I&$IϾSwGiAOARɩP5HV[;-T[Ǟ\J;s,@_suN%ߧsZ{\oϞ$tJY%y$n=?xKsF;6F ;"_qFŻFnjW-h +IRjI˒x{omn-Id^j96G\k$^kI2;:/``v <[_i 9nY)/1V^l'mMکpKnI}^"$I.-5*IIR-z{$cIM,ۢaSf@O-`TV>` &cA,w_2&mT/2n䬵&Z)q}IܒxI$'50M˘#a$'Id&Ym+ef甩L4/;iv ux{/MӇ_̞7#Â6ْ:FdSu]9$zNT˦OZFq$k&VOjK0 3 1- dM#yp耖Փ/[lyJd3{VKrɛSs够VKzb{9IfO$$KI/#S_LPi@L/jr?OGOb*ye̖f/ z&KK'$-4R-jS_riek2$-U$9[mvm,@`jxd}希-}Z9[FB 㿽FjYh !IKN̴[)\2{]e9eomkk\*sN"e*v48dfWe/ ^#߁l,'#-ÏwlT%}C-5 ,s$ IK%Ehn&=鲷v:7Ԗcl,=MSkaS v=4OOw)^P],?x̾A6JLk\HOE뙰r &m҃MdL$=Y.=en75`1-6 1kq31ic$ÏwˬN2Xh._gOr\_'IÏadAJЦV 'ɤz0cfjl`4yYyawz+ƴ^nn#9Mޜ&w];'{_ ܒ$?x˖t*CrI`ZA\͑m$iG+jk6 }btzޗ- wЗ6N9Oz&Aež_s$??eemϗ˚=Y@KZoLD,@ /w>}/O^.E:>RmdSN_ חI2lڦ8 q<>,&@KT.쌉-p4l И`(4yԾۯ̼.~ײ0*4ey,bO?v}I޾Ol(iC mO@+im \3)=F|Rhח{޾Oc.[NzZЌ#>AOГ̶ &(oCWݠO~=×Za/q(n_ުhח{h+Kdu6`dr^$sBIMVx+EؠM@zWoO|wl- WQzK5~~l+.#K2FpH4sma iLiX5O_ZO,?Ťe6VB%IPRYc2}i}d\.f,k)Va9IhK/@ /ve@ -(8-eA )_bz.IJ%JN< ICI*LO̾kd= m$]6;Hhފ& k'-6ɨ}2 Q86ZoW$kd3+sNzråZz2R_Η1{hT`ldfޖanvJ,n."}jU0SoV&&ÎV5e z9%KSK\~NX}ԦOgϘ}JLfZ mA6 |ivў*^0TFNeTj*oinhGrJ1JU4s%SjkIfKmҪMmLs쇓6=?egf@o)Z7`O*}~%k0}~v#Y.=I2lI2{e}dJzR園rmnLqsiqX --I>{m$Y-G+R `Fv2Vs˦ACp>LZz=%}JV\gLӘNI {IRs$}Wcv##5γlfٓ{F2IRQ AI^،Se,T Zjhާ@)%ZzffΙzZ.ZzfsF 3#CKZrY-s۳Hj|>qWЖ}b'L4Mi#sz|XI={ҒZZ4z K.:z5%ItVOTz3Ȭ$2B2li8X=ӱشmk7iG@=^R| yMcZZ017Kڜ}VL$zIf5 #z,%9ˬfV+hgjS]6[kkTL럶/|~vIcI/Qԣ-e[.E/͘#Owhv0,aE_eI}?GҰr}dH$פJ>{&`;,Ns۬&Hm<}LۗL}#E&z -ק9~%l0Yh,GOIr}?t;-S'I$9ճ$I[=W`$If؁`72'#޾LV@ }}/i#I%GY钕K5e?|$Iz$kd$X#w&l0̹1]^Fm{YV/%wܖҠUoKF P97ms*H\.$5jU<{D6$InywK$IyNr'A/b$g.S+`G/dtsse:OG$I ~Ɯ}iKiaZ2!ZFJ$-`d$ 19ޒ$I=I`Tm`J.ӘoV[G~_19mk+I vnIF#DŽURҵ$K $<[n$I=ɥ602۾vL=IJРO$(mٵѯ?yO)5V.1ԤOSX)fZ'I$fNu\2'Ir1y'IՓ2m䔖s氁~'ɏ~_7g3WaL'FBu)),-,K$$%YsuI?$O[rޏ4edHqI^ֲuz4=||)k&-;E G=,چ4RmIbg$+2df25Ы'I[˪֎ǰ%$sS]31) qNh/k/~jkb^o4@ٴ}QlYZ8e$F"딜Ԩ ZILsdY$ xLι6(ƘU 6 8hb>.{}Q`tYyz ŘʨS/_3zvH+6mik?g KvN=ωd)jKOrJqI6G m$ӔV_l@:M{%/6Om%u<|jK2mVik&3q>o{~.IVIiE?'sy撀^-2j'ao_R#},:vmj\ ٗ~qW zrٱQ.u`;^_SM+$E}k\*OzMR`c$Gg/ 2L'}IS2IZ@mh$S{}Nei_xNKOϘ@/$O]z6攖,ZYéڲmIfAbO*O#Qk >{2Z13ArJ۴IM{_hil/q>O_i#Ͽk-=O~MW6)=f;쒖I+6j52I.DFrIn2yw?S'M)` `heMFG&erWGQ?}slGqI}[jY Hi83|͒dI$2?}|8f@{L`tcOvl--!`Ҿu(&}ZIK7inHr^vIS9Yζ%Ij0>:Z9R@콠gL hmv??~ h )8Pqښ6z*ezvIFҒsNz$+=r}ӟ>BO^p@X`Z ~&-?5nѴ]snw0*m)fA?Zd? x7XG7q.oHzs$IRi3Gb=b77'~j̽OSu$$I$]֮!Ӈ_Ҿ}0`7Wh P&=3ڻHmII294=?uc{QXX쎖IaK%IrפƹWI5G1:`}GM]o,x@/hsm sF6~̈́>ɿuh`92RM`CyY+%IwIN+Ii`Ҧ6R?%}ҦRe --唔<$-s_2RDܖ7˥)Q3NkIO&I"I2k$ɑ$E=ɚh[eAQ0Fߡh=;Z@'/}|6M"FN4߶/z{6 KoYLbrM=ɲ!99-$O-Ϲd1T/Pc^Zehs0 pZl(,0Jo.S_md(mNoV7u$IRId%e'v}KҢ(^zycv(nkblFIys߾YJdm[sZ̖vٓ{*IrNF/XƸdI&}9#ٙ腩nՏ^$ Fѫ%Kz.s$iKg/ezQA gII.}e--a*mJhѦVi^I#1 Ai+ Rj7֓Ւ$Ic7HSgV-sFVedP`-ԓ$AOe>^fHuHS\&~hLMϒ{K9c6휤e$\²)ŦezF%IҭޓK$IR}$u cZ610*9,V( Nybie`j{bK\־L2q>){.vJN j#I=I%7c$6df{j_g/;l ֓SwLTYEL=eDmF#1ZЪғXI>d$-eVJ$[ck'.R_8TK@Jv[v0/vx|Y>o-neN9&89{9`sY)̴dI$3-dFF'{?{8Zvbef^Օc]GlЉ\(͸L컍ůxȫz({A$K?&NciK)8@J9@$I!Зv$5dKʞ^Z<e3{y;l'ïʫZnQ+/뽠w~NX,ӈ$Ok,@9uГ$ژ#%IR+2e열h {=@0өx_/ɋZ1dmˤwkѳFZb/h$GkۆS٫ْ͖ӲrNf1$sFޒ.I\ ʹےpЦMY#}8]-y$O?1b=IRIV?U4|͔$9' -:,%IR /5GA_2{ HV2.%&FJieUz[zLc'+D΁Ő:۪<-o{;E[,I*I$ZBoL&֊ =}:GuŸ$=j~%1*-Y#&I`@[-#uiG6Y֧>}7?'9Bp=Ɖ$=VV%s#7Ilnz96]eF9%ɜ-5ICblkN`vQt,%5R-sj|Q-O>'yRڶs%IK䒬] m5@/-ZD#2s22-9vH.Y[f^uL)jRik?GmփYRV_$5~}I/ծ}e<ݑKfҗ^|? t{e5gF寞 Όy#=LcƁV@SaL}6szyH\}}> P٧̖0Tj̙$9M9[O6Ț)x}/3۟g <׸yԘ9`ZRFKɠEON3IK-8eҁ/S9Ϝ~-Sy3 =1 h}2^_$̨W/:6%o+7$Oѓ,=G??ZhV]MZ\VZViej$I'mO_9s;T;_&E-V4EmA3Ij_ٛOBRdMzRX#+I/'IJ5EAeB?gW0rL#}7(;COFHr'x3ZVIrj)6lLV+qNe=% Pؠ`Ւ k'6|I6>-ݨ6- \DiEK%IaEV}pNK}/=I:j#e5W/ulK2ڤvo=v}ۏ6Y2O#AҍI (`#5R}bvUDKN:^s{}#$Iud|$Vr$Ϛ 7g)Ibڵ55@aM~pIqRNJ2sz$/9kW%?$Nrt>Ǔd ܀TEN%Sk5yc W-wWm y $Tf?ktʑOO+$J2'*?>~wsYO΃$]?ɖMM'*1X@KJXʬZHl+Qf\j2] X ];`>+|(o?^$'JgKN(| [N$y'I̽sKϙ5"9Y$:AdWT\%~OW SG?'l l+yez%g]+koWm+`[|$_+IO>ygO}+9_$s\'Ir*XW'U5Ix^d ƽΚ5d֏@eI'd*ӿqW=nl$$5J*ؑS֗$$Q,DMNMܹ@*^vDg?_ce_~_[d%$Y]Nze3sݴWrj|QS?(W:kxZ c2c(9zҔ: N'9ݯV9݉5:f TN֖dYI:{v{9gI\^=9$<ȅ> WA%V:(Xt J5@ p3\ͅ{[{/;9V˚tvoT֑V^N+IÊF בo$G gEz2;puw: }_gݯQS]{[&9ZjwNwϊ*I$θz{ 7G.5O{-_:{f鱸xkMʠgPݯ複zok$9mkְrzWg[$/WJlؙX9VrNJ\Qkh.֞r; ܠ` /u԰z_xV-wݷ{3Co:5ZWn}s*$#Ijv_Ykj:Jdp>;IPzve:f;&ɸQZ=) 8:]sۊ:7pvڵr4m畼+EY5FߒN2hPHOvg~}KY (cmp $Tًzmy';;9.Y|*:/ɾ5N2\Fnu4W>yY{ ֮׍ Р̩\QSy=NZS;!93IFj8GN]\GMܞY齟l+|_k z۵v6}:Ԯus׷|Ij5$? E ɮ:{fjͮ_k:+IVuJj|W?8[͊ks:I$T$ٵi֛oSCrROyr5߲SVuLwo@H-w~=$IN! :vcxdX9+[K:zXaPY+?䕧6xpY.{$1wvqש]PsA~$I$ l+]1V:rNdKcCzV2Z +[ SIu%۲I}SݕާNOUΓǹk{KQWu|{\XWO}'hԸOJ_:&4Pm/d1_Nz[gM-['tNk=u|ceXWQVm)z^M@  ꓌W3اqYX}]?%3W}T6ZBu>5v'to*ZAe܀^?lP T\?]j~ggJRIҙzת)n2t5+sM3ږ }nkT >NR$`e@ڬAf $PC}{`mJ$yU:=n:έ w~D'wkR S[o{eTtVlZyi5hl.vWBg×yn{-mʍ>zV~z?ץڋWWml_ؖkm}`|^=4sae*YQ}^YWOpSPc_ʭݬpc3%^lk畂 6N$@ZfVc9 kwN5+>*9ҩ̭1zط5zSή:>I \\]'c6 ʦﴬ[N[Ifdrt ]O S} :-9v2.Uض(gSש# {w+douH&NOs@Lv``[%Y[r@d@}ЅX6}d,A ZrӧޡߪsadWWZt$e\5}^>$I~Lo÷ :'@.| `.X?VupVƗ]3pQ{Wr:=;2OΠr/.(]d/e$o?$c}?΁u~O[oW6= x9e϶Q}|(J+ܕ:w'Be.S粆ڨqOoZ>';jsW߼=6 ~6gzSlf%J]өI;IO\+P6jcͳV'I>ɷ|Ϩ$ ,>ȯG?~׀WFo@sVf|5Iԩ{%O =O~MO?ezo,u>[/~3:\JiXӸYouV${Irt>'*I2B+$ʟ~۷P=w:x?_='fз<2P[h{L+ɰ5S@rVα_C&Ú:@GeVOI}OI~$ʕ|=W׹ Pux\+g1qs=(Ԩ߾Yޝo}TNǩ$!v^#ٿ HI6l_߾\kkn@G쪜5MG dToΖ=ۯ8|Y'|$)??|o'INL5.+Yj60;ܠ6l7}UɋTv}]#kۃΩd^+oZT+y/[J-|^@bFks=;˜E[p`0=uA.u.$T$%9+YoW%K}m>_˯I$I$I'ooJZY}\t:s9pM\cEps˓s\Lۿd~$WkC5~S=-?%ɟ~~ 3[T( ڒWw+ksrS6lp~pdo5$EAmEN@ȿےPz˯ɷ?$S$?Kd,as럶ch=6*x`9}4En8/Y+˻E3|/[~$?ۯ-[~5R*야2^V畜z6)yg?}5_\ۯI~o?&I$kɸpNl< O4I5A(g@n~z2Ixlۯ?%ɷ?/1I)bdŽڍ:_2MϬ~.P:w'݀P7 +yci ~M$o?&IM>{ү~M7ͽFU6U@u0AAϭڨFn$W&@m_"g%O5&?֬w7jzXz79]9k\U湞ΏfXP>^ElsߊI{O[%c y׀~3ˍKzTe{fP(P{rÅA}5,ʧ8)TNo=(_ Lz:#E@?# 2@'7npeʡCM k82k>.H$?%<épX?OUΑ͡mП?k5ԿW^T\z֞Y[۾Հ~g?l[yg%5QgJ |f=I 桓~ݸ ce[@nPWsU\W"]^Q I~T):?Nɫ;]ɦ3nk?Ay:z e\ѓYF7l0̀ާsxEug`ޗrwfч?ǭ]ls@ެA@ 8wܨ# @%9jT}}˺|K 8V'{s՛]F:X3Tڰ{j}𞧲IpX<[O髒s kY_- zujv';I^l.Tu,p9: Bx4>G s~ЇQI6hkj[6{$'7Pg\p M ۽z97x_me4@|β2xVSUXl$שd>>k?:\r?#,@.:!I/ʸkϳ2+QwwN(rkP2*ɚdd{eaM''qw fpėxʮ p۱x>+$z^I\_ʠWZyes^X;55$wb_Flb…Pڕ@J=)^볧dR 'I2:ke2O6Q+G=jl>4 Q{u^ғ#Oٝu;g 暑^W2|wzm%:VF*70GAqYQz{E%nZ)QGȱw=u:<+L%c<2p7jj{lbP;.a.Qs}rz2n;ǚ *՟p׆K`׿~OVVf;Vzc^Guy?+k<+d5f@} }ZSYjЯ@ Lz_?h[Y[dUZ,j$;9I=2t}U:?m. j|𬣰ppZ(UN 8z<` 5=NYm%$yO'CmmTkY &٨5+PzzXYܨ,=k~:m5֮wUI$+Sy;3$'}*魳t׭f}9T: =ׁk:`mn԰RO`͚~qkR+$Q6Wgj7y'Irdm5NorgO[ߝSԎkTk'/ e7G=M[\7 p\Sn}=$ +kԠKTףup3kV4*s:`%Lp۝W pf<v5LΩwΩm4ZDry$@οc/k ֡Fmp 5}\۵&O=\@:3Id*ُ{ztn[%g<ˣʡS~UT`\7 I> 7lJg$O}9NJH%$^k]Ir ϡTpfVb|W7NWܼrW " 7#ާf}w*={e}xnݠa$I_ʇ|j`d>3u:Y 65<`^}4Ibk7+Ivrv+V/9TzxUJv3+k'yF?rdq_5P;Dmp]^ &c_o~5C'\Ȇ5{GMe$d%ɰ I\tujOr:k-އ$`ЯOװNgWm>? `]ǮPYcrpwgV-qg'G$YjNg['9I~nd|g7ց<l ]>^JJ&MjӇ+mX{S[sQM _nKQz̓%_WL%{>sɁ/X~'ɬ+9aal>`TN~TN(7k_PۥXQy7:^t*  ` p?NڟN`mMj[džO>P>SWౡ ~hu.\ǡ{g5xE Oe:I;z%BjmX6ڞǁWRW\To٨޸r`h*5<ȪYIB&6i'yJO"n=j͍6.ymOwѯ/K1b  74K喜X׳NꕬFKm.$Kg|ZpQX|9/WJ5zzyPWgt2ܵis:Yq;`>\ 6(jJ Ъ<Tr w5p}bmzE5sԮsZz衶:g{zKfdx>䘞@ų L\R_s{:n@f  |}Չp}r& 4^9uz:}]bje pzLDʃ@-5KqPXY*QN'z֠8-yK2X_ћsfs_;p.^3zWrWQS3kHa<+Gz|5K?3'_6:S/a23ڸ_|nlٟxPgKv:N@$`XCdVNCgV5$<6d,5ЮKpMSO ˣi.{S! <:1Tr$ٕLg͚ ~ˡ7 hmq[dM|fSj\# :Q=cjU[=z)f&lls@U йѠppI%4sStf51+gԪ `\eF.]={vzv2@0l] dk*\Z^d3F}{~Os%Snofv ɛ]8܌7E.@D-%ɚ ] oBF:,F#YهuZ=*jWTf-a}̕P js4k.4fH I2$#i7QcΫAcm;Rӯ?<jn>Γ0[e]# 9U[r]nj)\λ je[Y\eՆHQ4.ms?;8r_I_|wLZZtcRl:;U@axjͶQ78ʲsXgsQf(p 3%zŷ2f_NW5LL֛ ',*KK t-FWf@Z7T\ff|< {^]rofFWi$'?޳:-`Uav <1Ъ=Nh+j`40>#o]sƪpcnU=ɚ&7#nɻw?ۑt2G[G6(SHٌb.QP}= jN .ø<Ƃ s*$IŁww* 8A-@֏=ϑ^͸Ѧ56v[W<Y.FZſF%kϥҳ0T5'$yy=)ZwHUIj8ԣه~Z#fFզiGգ{;.@Fukӏ-xdZ ͹ bp1A%F) _d43.kf-Ԃƪ~|J̽LrLH v/>2Gnkj98N1q躵E=h%ICT)4QrUvc㤀jvcz}֡ת,0='?.͙jfjakZئeYj?|ݭXҘ>αh0pTo?fljIPleKk\ι.*,j@jyɮ,p[z]GR ɲkHHs6InJ#v `jd6'RkT-PW'{kY} 'cK̅]fQ먦0ҰOD׭G\lSi`3ijP F+Jr8, |XH^mYa8m[hJ.0!9 '<56qj_{Ohpf.] 59I$ɖ@E55!ic.Rc5B-j0n:(p?m(2u{sޚm^.ȥP%ɸ;a$RȾ$1p1I,fϰ l' @lk6f^cUivukJ9dQg%ffƍȚ@zd;0z\%梡eU ԣj.6pC%(9YKc`3@g[6sO@4,?h \n-2d$&ι<%lK;3*W&c'S2ܮg6T9FU06 (#1We/OCo*`sH+=?-IVe23If޾Y`Fm:F, ، 直?0dy0fQuK?rLv- PǬDrO/.28F3$I:|왭Lm *mQͅ9\ܛ?0Y ֥ɜ$)9wlN$ٕ=f#Ix11{ c&1ۚ}lTFn 8csυ?jSk9@="Mn co]Q9R] Ά9sW*Y5А$HrO9F?z[HLm 0k[|_WT`H3_~Py*gI"Vzqۋ!}j#r@])nfZei1֨7t> 3yI,k<87\m}0s>jՀfB5dSH8)w{iq =nI5%Yg9lf+9{okϨd߲LsT3Rx5֌G+0ۙ`0yd?~ .Ր٠Q02fA/w m]ɾ5f3=z^>!$eLSLsisS"of?h8Oc=m嘺bZ5uk۠ɸ,\$ʞl5I|sAvelmn22aoY^.S;@tnɅ=\rom%Iy}H}ձҗ4Cm,̑1Y+8Bm]o{6i`XG ըgR+dw>ѕ$ٌl>Ι+Xkz7MT14FQ9 dƂܿWp6^COu$589ޚep0kGlF_z&M%t3o94TI Ԇ[d!:. ^ؓLF#MPs4ѥ=87TӅ{$8*G%s&3-%ھFri,0s=jN[j~Ƣp0 cQ*h(cp3;e߳Ծ*5HX6r*yʶ+䱽T ~b]GK}\GcLWQ! Ռey6[ճTZ5FdܳԾnYj#Idk`6kd&6]yp[`:~'5oI91Hl`.ٕ?} i5禺gYX{tߒ$>*;IIt(c-#IP}Ve- {^N ddϤ6iUY`e3 FzÀ<9+Gz$d)l]#ѫ0IRg&Aª\#ɚp1[NŸ5 3͢6 z55.FC9uIqUfrK$kɪ'̴9w~V4ꖆkFe$}Cvqiь08gC5zV9]Y:I̬*?z=rK=k$]3%iF{]0e(zNP zvggljSFp6ŽѣgSWr}=[y빓ʘ#fѪgݲeCGJ$o,@eźm-FqP,0[j_gL3WKØhPmO}ˆ<6n\9{vvq2soJFf>L6^9ڮ[I8@"ԇo7FM=s5T@A`b,Fq.}ΣMˈI{$HZͨufMr_ ai/#>Uoc:r|Zcozf#06?)Xǔʲ-[ڌqORm$ٌB3&ɣFةFtTUɺ `|:nɢ,c Ӆ?jMapu$Yl:Lk=͎9ƪd$a0e; [ =v-fO֥uXG _}3Ze Hu%Itkvm)GŞͼӺ}Na1ڣ'c ?շ/3c9N#Y3al$nWF:]XӼeM5l2ٳ᏶`(?<911ӶJz&dI6Hc%%={TJ@ X\K-g6 p4 ?}qp'0s&Hj,Y#M%cPJ(*kvB;jƤja,P 3^\GYlfW7`${f#2rmNI}', 4MpX`4.hl@_q`lU'FfB=ɢ+n{d6$Q7̚- P hb.صvG`a,eJBn%sju16lT&IF_{X.T ,R4NCTNXh\c>CԞ{q0{߾}[m2Ghp` F%'y h6U &vf:5ښ88InYW#Ҍujq E#jL H  al8(vmYd.3+N$2zl,ZmtW6]F59Us@L8hyΆ_U(XF{u73'G,U#yD-0<&`(TfƁ႙ͱNj[f-`6d( =$dFe3ׄӟڕ2JF^n-h{nN @fVEƪ1.PNcm}xrZ喍 ۲Fz^t%O~:^W)xI˷ju>Wp <TjPY@3 O&Z ּ[鸜爙Mɯgm- U N̴"ƃgu0{:alu'h43eqU{!+}zskαT0`:iHΙuzބb4\'md-po6([}d${l]-I̤sa<-`31gm08G裲 1p g뺜 00UC2qXqKeJs,jhpΌT-6Uu͐, N:FTu,0Fڔܳ59=YrO%3Xc=538F8a&m18F6Sv7 7u;0p0fj .0B$Ǽk:dT =F$ ggjTs1#Y=@HD`p4R- 8y"j3I5 IavU@3d/ojnpo3}~ u7&'P4X@86 f3Hʹz$+_]I]Hrr$ɾ9kɃHԪ}f]fZ(0d{<@s N0$5HVI#y3:ᖑlmf 4ZLrVC'I޽:$y]'_ 8uF$5[um㊗_?1ңGk64,jf3$_K|y>N*qkP=Bt@ ۖ$~ee_YFϞ3YaaV8pM0fd=yI|~y|]M;`;,8Fg8؀J $[q6~uϨ$r*$j2 D=>_>||֐zΆzjhT'N] \PɈ$1z"$+cZj$X$I뻏|>_/_?Ix{OPj턲@A1$YkͥLj&-{Ic,=ve3W%I~o||>|˻$pNS y8fZ-L`z8qpNjǎ[ծ-=-_jSI݌1}{W2cc5w/?~o|>>~%G4aRIZP``,`["ɚI26}$v/~;oW1VUKfԕ}J:$>ϯox>~~>/ח|%I#iK=863 >]B\p60@gmXd?̚={\!$yIǗ||>/|>׏}>%IjeQzu T84u[c=hEݓ=MT0-Yzn$I|?||>_o|>??_}̧O$YIfFFM/S{조025,cp6X (&FC:I-}*-I$y˻/_||>||>ϯ맯fs] '6kdM$ɞI$I$II%Iw?ӧ_z>?}~>|>|ǼK%Ir[棗*IQ(ֵIΉG, f-f|>>?|>=w/|˻5yƚov0*{ s,c>/qX #W`  +U{$k$Iˇϯ_|>Of]{$I$}~>×|~x>o/{_?}c$ɏj(fadX#yLO'Hjs:gz${&>}|/_|Ï|>|$c.IwI$U[39'\@٧zȆƙ$=MP{<(Xy7Id%I#I$#ISy%y?|{$I^$ط}o?LIc]CʞIdJ[;6fl3$^L[ٕ$YIv-+IUǗ׼~LI><|>>/?_޿K^1ɞKLz$9d%=Ngš$/J{{%keV8U'U=d>K>yyݧw>~z|||~><?wI$ V JIIj&3GIel'pe:4G,d$_>U$ʮu-Gs'`lgHV]ˇݧ?]^??<]v2$I2$yY@-frcnIr$=Ea&9{^mB-YkH$Ik>_$IC5$.Ifj$iI$$yy&ɾ"$5$kd$II}\9{L=w%I|$I=6dm#p$̌uVNNTS%W%;Ǜ$k_ϼ|y>?<$k^޽5y͗g1yۑ׏De&|}>'K}~$9Q88fb.LI̳+m{$Y66d66{}1׸M-C>ʚ3魒}޽}>>|x/_~$I3^G^o~ɻ_𸶑|L~xy|c%Ibͥ@eg1d&9Xe$ի"Ik6ID%zHi3fe&AUY3IJyy?w/>c^_v}|7%Y7|J1_%YI˗|K1IҁܒCAݒ\7'髲KTRvKzΣiw?FҒm&N~7噼{SKbU3o#FqJ^uh& ĉl(0vY\lzQJ"=ҰLd,3;6Gfe+$I^>?{y}y}1d/5:$l\̧zMΙ1 ࠮pc H%qKVi&M[>RIbw?a#=$^~믿w㻗>/yFIʚIp\Gϗ`92za{ܒt1қUofn=m$ke<~\s'ɖd$_!yˇ|/yI$s,FIpFUvȆ 8aNpj۲oBmȢ+docYaEL{5+m$K{~y}K1kc~ˏ/}:8>|,`& [Fi@  ,4dHxw?f3ܖyK%3˕ܒf<\3mqo-qݛ=*5u&V-w?悖ؒ$Pɪ=\mvʟ}e9X)c \C仿-Mw/~|*soaj%33i#IȚoXFdQdja}3 3IR}Go:.3>UOfWVm8F%  5{9 EǛƚ=s#fTu3m-q ?i3I9Z/f:]=]仯_uFXf$ٲ꨷tg<.c6ܓ$=;$8{7f&*i 51k_H~Lc^yd(THHךGܰFz&t$=3Fܒd%Y0n] 70p6MV} mfϮ2~qlNF#3Sx=.F&nF5LJ#428=fz$I=s_IsƟ?ZH/`~vNc[(6Wx~̮-׺Gg3d8Wݶ QXom{Ѳu=ǥuOi\l9z&k$I=L?~@⤒ʮ7E74\Txd}I/0zTjјU{ kLjכ^y[cH֨$;I$٘53\pb=|uHԌ[6Z0r6XrxKjM%,Y- =Y$ɚ:=$`6#oOl֡Oz.GFs9T%I>|DzNWӍz1FV&Ifvm`a=e`=<$|LrI$=Y`6QXC-i`WK˻OI^?&bpX̲ d}!=c>0!4=@fid'I$kM$\zmV4s\ ՜'!*_'ԅnSIc&//ٍZn}5=.=̬k0xlxӶ{V[HNƺd%p[ K=TtbDo$ 45 $y5ilL + zFzl1֑M5Geͼ3j PI`,'f=ҬcU!J豓+ɲfyh[Ш; f\xt5J͂QT.S?Ǘܪۙ}nެ2X0V& 3I+ncW؜#ٕ5zWmͬ -P \ip@-V<JS_ECeYeޛIf+*8* nf;Pz4dҕ=gnIj!8'mv-պP׼%_k^u=>0iѹݓP6!=ȫSpMP1A&4[Y5PG7πd1uւXqCF>ofL6 #5+۰Zm z[8$;kl3i:TfSյ5d'cfjcua};_=d;!ya0n[0+wo6gme{ưTH}ϳنd;t́Ҩz܆#+kgW}K%[d~ڭT?=Ж&y9M f={,ſ|ʍZh3==K[ `Cc%nP<({ $JjWz8ؠO@Tk>TޙqB5ٶdŵ]cd%I+I^5FV9zΆs*[71PZ$X`ы$w `9j.Ǽ%iFI0u ǯ`?SXI,[d&0<\aN%Ym|%`Wo0+gt ̀23>$}U &ιdž4@ٕ]t#ڧJ slII`n3=)/]Ϸf0*=- 4`d uk p0;Mm Jf1d_0[ݖT]ooϟo4Xe$G>Md?F\m2י0|s1YͅNc&Y]UKl'LJz-g `H~KQ6NzscUP1`4v5]m&s9250LW>f+euFשml0Fm \2o+qmu3Oƌ$ Ւܒk\A-u$"(}Y=@mj'mXY8 V5,Jno ѳSrd$IeHrO8e r[0FA6U3I@m`P*+ը\yp0a&w XSV<Ir$3.8jɱZ8T?ch#'UY3I7W(cH01jRɵ0,:Zh9\,*$yk$IrόJc_,k'0A5<oP+L\8]_DGk# ǖ]o e$50zh#AKvnuz1왤L$P1\ * )qE%U8W [PN[VϾǿiT%y,KWj7Y=:UV:I3aѰ.ۉtSԻV~*ż%I\|w ;]AWtϾ~74z$I8Y2 O&(eϾ'!#ڣmoe\Q ,'~bg79?$Tm)6Y ٌy1$ںjNX&uӨT[6r{챍K[ˆ CZ3kc$'OyXpQf،_]9yrIro.*RlAsh6O絯Jd-k'+mm,@?ΥTW2PXPL$O?618MN\=\P0Fup{Q'8\x=y#=[$YcXNs[Odۭ˪Em4|pef';˼T?o`'0،$o6n+\eCen,I$m&9U>ͷ׃ Ʈ㞥#fgHom$QϾJQ4EwT7'6͑$w, IX#-=7G$h2OmPqX,ko!7'I~I{Dm>{儃Yl 0niYڀe~P[F^V4$d$Ҽd%I,%[@ɾl'z$Oe=泏_vrKc f6ָ%a9ոe͸a;NܳGF$I0uǬljjm 8B] nѐ|ɧHXlY82N W3@-#I$I䞇J6pV'1Hmqr:<> `6n@nm}r jal8/ޚ8jI$I$ɞ{&=7W/3$cr0_!۸nuOe־ 4z^4lnH-I$*OԒ0RG\We;0_h_!A@+I#KZ] Ee*24[=$I$I,,`RYO&=$I2uc_a.jYY@Ѱ{$IGkWݒ$I$_~|~|o|||~:$Id5jp[ #ɗdF;I7|&rP8AJ2G#A9$$:o|>ϏO~K&I-#Y^y$f0f@p/H j2^'Q0lI$y~~|>|>_I3Iu聱={ۆ燛fRcdm, 'Q~?svm@;ʇ]I^LlՏÈѳ$I|>/?||K$2Vedl\'l.5Y5_2bXfO>-K-P?>eI+0mVNj*I'IFW?|>>|>.I$[:!5V3s% lq۵Sdq7zkmdm}w>-`c.ul_@JrOvӤ|ߌ?<[믳v$٨JU3o_˼tb=vF` q5$ 0~ l:e6NN^7Ϗ_~|>Ϗ|>?O|$I60dIEYc[4coPTVϞ}&?_٠m6Np]^AݒJ4uTS|=}o?=_&oy-$h$L:lV-+޳>HJNG9?1Q;z0<1om-IM }ᤲw\cHsx6I$;dZ䀵u=XsGs_JCm$iLh0rXJH'd6*IZ$IuO4#FfnI-T'smJ%QHn=ṿݳ@Iee?{Lx 0e56sZ$INs?gU9H*$6Wx9PY3IĜ󜩤I6$;Z'}B5w-v,t`1L4%f8xʉVIrjOzf걮$6F$I'{7d'Ie;@# f$|d{,.\%=8a03}`FjrrwyN.vT0+uO96}8pe4LfrO033%3If3`$I~&>N.tٵQ+>H]?-?% rH^٠ %b=2rK$$+>* ZɞM-gݒ=P=k3ijcd]| P& HdRG#pq#=HFly%/IrO-Izz=I瑤Ivŭվf+MMщ #h06@\j?OϿ`31Ҝs{^߲mH;3U9}Qٳ%$Y>I!Ie>BdGmeX>p( p3e646g0/CCclfuKS)ٷd*ڕG>v&I^z1{:%YklbYfәá>v0l=z.)=kl+#J0Q|p>mYǀ`gN`$&[:=ĕd>{j8u=ZOf֚I21s][gt|, 0\Z ݓNÐ>H5,OK Y[:S51SYܦp*`[Wص!Jd$yR73qk5xoAm`6g Y'>};7hc̑RI$ >toX3ٵ6dWi&E,fzu`cU'i۶GC6Pc'{j n\/6Hsp!ԮklRdd@nL*UI[ik$ܥdղa[/*5ffnjõJ$m7Rf.6P 3=zns=\}zL㜚\' nHeP8Vj \#yUfh8}ָ$IvcflT/PYT\@l *}s @jqvQkIz$y~ FTP{1$Iq8?䁵8iÕʢfAClYcA9)sÁ}7P}ds;Hn:IG^_?m€}X(gmXlL{T1?f6\ulYv˜9z<( c}N w􇿁ꁼnp%}V=9sŧ>mIsUq˲:8cZfױOjէԣdS f׸JMWpulelL$kL$}/w_u 4ljZqX@5 IjfjՐNڪvyIGͥ6-L(]Zֹ?kŵ.0V9 8'Y-LF?yn|KHz> Hnɇ$+kcyX9Ohlk6d/MFl0Ve΋{pҀj48C2}6WKm'Irͭҫ4=W# PK32Z35dŁ&*1$Kk` PdQZv;I/˯ߒ9'sPl&k$I<#k N}ds@wfvK2Ԛ:1d[_5jQk.B-l~؜sad۞I#?}z88f#Y03ɧg籧q5%h\zJvFG7-X}[HH3㜭6l>1blӼmoWrc$a4(٫$yM2nY=3ɦ{#e4Dn,ޒT2Rr_}VZjR=k9\*dҠ>1MpE}_i\jգd;5$IsΜ.|]`6MkJC7:jcs%Q!TbUgT^;J] c{_u_*/OdlPZc6'I2$bOX\Y To\if0AO FmXfsQ?d/pbHp/Ԗh,h㥳&T$IdY`ʞ]}0j\urp0gFpRьp N9\lsoi,& .-Ijȩ5j%fk$ٵXNz&|yԜ> p0`(nϴ4 iUI$IjR73i@rߨ*K%I4.}һ^D0E5uƮ.g$E, .@_8Uy$I6sq4vXVl\$FuX+5$xnjrpsk{;3 3yM$4nFHPjl0l![`cds, 5`2nٚ-˞}8P&Ee׼%$mI H^%Y`&y792D25}8[jl`5j[vڛ8qhL/n&IOv5O```\a,`$y}dXo'j V j0XQIYgkPT1UoIF GU@e Pe;)g}a<] #u]|xG^^ڹx 1[7a~$y_~$k-/NncuZ.NCrױe,VR eWc>JN$}8H;acݎ'ZΊ-IVݍ:0 ]ٜd_@-uac_Gb$Վ۬\>u-Jq|m\ 3>=P m cPkL$|J9` } =NWﱎ2 E/vmc60/5W NX` @5u:[HfrOl} c1*\ceEuvQ{km,X}h9ȿ/14`Fv\P lG$^X2SKܒ|H[''?7d380~H_&j0s3; 0t ҶX@^ڎI-`~ZpՌژ5$yM$Ĩ `f//56`t%yM%ɽLs3oupxm.P ~'op:`,pU[o n$I$ ޣu/b^$=!ɞImKe8lPm,8|:Z0,`u0Tj@miIf{> k55GdAՎ$I/ڳf{-YF1ljcD~.h\`,FeѨ/XP `fAIɗIT] pd_%NF$#o>`4Q2*/jX̆zpQ|r4=٨9öصceP *{$II֡@sZ$ܒ$17($u(#b 0`l&P΂,jjbу$ $.Ԯ{p^:P+{$IjѨ#$I$I$I%s\'3$yK!oPQ*\UOo8q@]ͷP><ӂ>+ 7U{wKuIF[M9nIVGH`,$y}!.hڨ R iגF:0Njן~ۜs${n_ s߭0$I6$Y#Iޒ$$j2fn\ܓdw&\ Fp tyWcyuۿ=kƚ=HFcv$8f#ɺ1F55y{}$IT 3kd5`luk d&_/2JC5'8 Ɓ6p^N񏿭3PgiPh\Lfdf$:='IÇ$:FHƦn .h`P 8ఀn onU=Qf5$Jdø$$k'ydϑ${`Hx4P p!;m4Ɔa u{j%"[eͥ@m #sm&=1[7v wh2%0jFU{>~X ,̼~vsc:-5 8ƽv=4J5fژppKM M5gw_|U€.d7ӿv^-z,Ibl] C5pԀJ#*36gv-* GUxAvNFTc,5?GmUK-jqTÉ.IЀ;c[Fj'F=\n.hsdr} տLN'vi @ծyg?6{:m$Wmg`# jU`tWfnSvݚ٨U M=eƶZNlLԮ=^U7jy-GsInèe$IN3>{8QY uVu3.Gۛ$ѹ7.j`66T6fn4@~ih1Ϸw}ULMrO.3/k,0Hc5*:ߧτ)h_jl\h%oidl%II#}go,*IL=11U[ڮό$٘r{\sjF>-)/Nr_/zglo=s.vǚk׆V8Xe,pqg%IQ[kl۞YVFr̤aY;z&Fjf5Gzl6@%dAueRI7uT[`>$ܗ$k#{l*=sܳeI[gdQ{fFZު ;`c4^/Slp hÙp`P c]xu2,>-9YzXqX#} r0rFـePѯ@`OjHj`} fXXnIv>n$=JL_Y/3i]PdA٨Pߘ8i<J_fM;۞i}1Hյ{{e,ΙvGp/X(˩>\, @>XwTȢKvE6&,ɮe$1l{ggm\p`4f6c$"ݜ4>ǷId&IϾJL6vG3@J>a/~  SUMJ:%I-#9d]c'I>,Pm ^Iu=I$:+Ir;,TzoOf0؀85Ym${s$HY=$ɑ$I@ p T8pr<ɗ=I/?$IniWc5ؕct/~{2PnAj8%*;Y=Im$+F=UIPK0zkveMjlԣ\k}_.7wHG3=k4PNɪedT uK] 6:FZ=I`5jNF$oY0zC||>(L=Iֿ')I5ZJVa`P99F^ I٦JzΕd/Tj]N% `,T._L3d?-ٕe6k$ `oUdI6jI0J1k&mRm,T/9 TYҪmQ eZW߫ sȺ'x&ٕencƮ0o1O⠖lj-*LEmr8N ZEUsoO6- KοcnFH'd>`్,rUk pc@dfX'$dd35m8aZG^+Oڵgf֚k-Ig/7|:6rs#/ɡq60T\"Â/ fy3^mj0H`>TBnIkTM3_-$y.k&ߒoO:eiXh g7"^ KGD0@D㷀#LT)Ui]v_WhG\5i04gϽHV}p/p0{ʿ@^pIs}=QYi3`el`$^8GSI&̮dc_oew>~I×̼'_#5'ؑ=}&\. ȁcVɡ;Ia4Ū8YH\*I\έNTs,XLgljDL&/_O`\0$6@2?/1ļgׯ߿I*C3=`r#QY2L[UҳeV<gܤǢJigL5'p8UsU=3`[-U4ׯ߿Zdwe&Ycg dI;hmêcs=3m0wD[+skfT_{F{j`ԇG_z߶4薑,eTIv3f9ls5džjܽfL|$mP禒Ռt:TB[]ijI2Tu569/m3ɽ*>kTr% ٳG=ZCPYLGY25O TF adY뀑`ȮfUgx+0J0,mT3Xj$N85TR f:*.cQ\/0;`~pe 6;pT٪GF2+xۨz.o4RyZ/ 0. j;Ɓ^-\֝6@K=>\fǮ Uu-x.tN@l8 @ @5ف`&ـ*/y-fR'0sWT3{98+XH,P./^mmnm`,>\401 Ʋq1g$JOCq{WTYr$unT\Tئ=޿3`,Ve[ T u.Ǽ?+y_F> p.2cIp1;[YzZ󹷵Ticdg|Ӫ>I0F`4pjÅ6ޗc4Z`v,Wt?7hjs 2o=3eDO,S6#ɠFKϼOk,upε'pTjpCn' s%yHu04*I,#1"Ox =z~!M׷B-= 0Ҁz ,3kq=XdCٖ}5\3۸7Lۑ KSO>>Hvq`$K27ZFw}jd5PTU[7IeC:3 u&BfZ4;k\3 ${-o5uv>+[rxK3dת&.< G͓$?p* zofel $\dx,43v1@ӊ6V0YYε]MlӉ& <7pmV}L^a_6m~#K #ϱ}b2VF*YgH6k, FKh3+npfBdvZZ[͉WA!ͅ(NH/8PI(f;Z9rYjOIBMG62tf=f^܍f 0i`.p*;c&XץͭVEjNxq^pX1yL<ǽGGbl;2׌pe& pNlM$1\sH[٧ H%{fIRd<7sOՒ׷Ua,p<ѠV$ׂ1ƈos5j V_`125g6G{tȪ5b¼c1T-|`9N.P4o= 0cTkέl4 5GFҕUccUv-XI+<ƚ~[8c.Ϡf`7Xf;y}>٠r9@3=@e.ƽi0Y3QգoqQ=X罓ԂT:ݶ$췠'fo~uM?@s;ƽ p3 s4,Y4 cȮ\j$ 'Rs+Yds=Una:?O3ڠ=5 :S'4W6܀ZF `_zkѴCR(dHc-sPyV;F_ Q0M<ӵ]Q z\w$}'Gb. qeé9FCA5d<KPI9lZTC, b6@g׼0@edqsOz&ɇ{ܨvi'*}5׹ӽP&0V{\Zpᘜ)و왍pc_1{ P-'fTAI͍>VY=g# cqTWv[Wr 8k߾6n8ϻ|@؀\++{&Te8&,-Ivm^w edvk].Iƚ3ARjaQjQ.  U`<3IZm4`p>fר.]3w Zc<Ι~-$I홑I"qؕ/k$IK]\uH޿Kl 1>R {&Y{&B=Xo10ǜ皋6c{Li[ƪ}}$aU\vGsGT4nZcO$$=>mJg$iwl3y&Idff?eIFs +?}K21AmP9vj8ͤee,eNI$I̥lqbjI$s>8VgMjΊ]Ib$k:TD_.pjUm~|hY>wɾ.#I=$ǯIuΥa" M٪gȑdU\Kvfz.s劑]ItUǯUm<* iI桲~0H|SOh}^H㑝m$iHL'I2g\P/뭖J3NGE%{dyUj2[R3ZBu61Ǯ&ٕ<=$If$_b&f$_z^^ϯ96DLN0&<Jt^OC% Z8j bͬdlI6w`.FFX$ $i#3yG+I>&ϯo__ϯz^?~y~y}{&wGu'͸wW.44@[%ɝѻO {6c' •ɧZu:Vbdng޷aoyzwzFfq8L85VhX*N9H2m1V-]i֝gpy1Vl3\62zɧן~z_ׯ׷o_>5`$TAhX礝 &y~yO_ׯ?ݿ|z^뗟~|$k>uG1WBG[e4f0J p}0$M9Q=4,Tf$I|Oׯ?|{^_^߽~#$J3$$sq6a<{D]F0@eW: t0#kF`I$?z^o_?鏯x|{+[#tɪ H[$WZ=$I [=cys c d9w&|__?^O뗼~y}S•OW ${dN$`6ƪD שNxP[5LfRٕdD?N6 #YW$$IW~姟^o?^^^I$/ct͌$Izt$|PIj`>\j4(V 3阙#4 b$y$&=k}Q:e͸;u3$IxL<%ɝ1(ݜ6Td/1z |3$Io鑞Ym= A5*u2wIGb5$>$q`,7N.@s:6 Y`> kt Fkٟ~$t=)ǿ:+܉$I:`&IȞIޒ$*4lc5kP=a0V<@o/90ʮJ38X#@I٤UI_u$Cb&I$L$9~IZr>a4jӮˮ*Y޲ V4X-=Y8ԇw'F;=.ΪY9j!k睓JN\#)$il}F Bp/̍ l_IyHGzY*hcubXyʮ4k43>+e&]{q;1st$ɺRIQcAL<Y(.U3X`[NƊN }m,Ze懶6HOp2\̱dIKQ]iF͞9g0$ٕ${fs$s1;>Bm8*>u>.`; ﯑N>63I,մ;s_И|Ԇ8ad_1ϨF$=ң#hf?#1d$TrgŽLc2*ISe]ոgFƣՌd*-y'D=wT5~f=Qy"v5lww#IǾjfihu2Nۨ'Z52TRpY3*dǬGm4kQWW2$MqSzYN k3QIfpg9lsig36#hc8=t%4$d.ZeY;k,#18d]!3i#iijM;5ƞ `0z&w\YgEVz66 4'?'<13G \\S/IUfḁzU2#YZ,# ~mםYss2Y=c,*+IҨ,ٹ3D@k$_kf1-KVɚ FV9N5ʽǾ=Ál8CNt}K'Ϙw6* Y" ' I_dS#!kdcUl*Y=FI'YX#LP9?y`k.fl[x[%v'Y88! 0?4Bn#y0]};+ *kީ>gK=3̳]~{]ugqBmxV2zJ~{0mYn^*x0@`WfvvR*grZgޜVJvgIҰǪKb4Y1rLIOp>8F[kst|{FDv}H=9V5zn`ny'Fx&8 `=񈑤'[58TLfso-:QݠGjԷ`fM9׈D`fHY{;k,#gqHd #*${ X{{L\4=#Y,NZmph*FꉒсJ$Ia$f/9fk.Q̢#fQcS5lVz۞. 0Ɨ'Rۨ~$Ɂxr/@_߽q0f>ƞd٫]k`f#$I${&k$$#/}=Xc{$<8$ɪR{$;f \lTT;üs#9j$Bp[te}G%z&%aȞfvc$1=#k$[֜qX55$yLtum .\68RpqKI5$HfT/3hd 'ʮl%If<5]IɮtFf*!tqٜL[y9 pn`BXj=<=ss S%ҨZTa.cI>iN+i>ҕGɮ$%IdGUYl e}JjtLRa{VvInlo$yҨ *0NCLVj_]d&K;*5dx&{duz皏$o PcN`*{.g-E0j͔$814DzƮ6 ϺdUېl5%f=$IfRyV6,z6`ueGD@5phJ/VY$I3q$IGWdIVƚ # TmX {V3m:j4枝?̪}]`d|$0@i't~sS%;59$Iz&IF$z:#ɭ j1n1?36Nr]`H ֨m3bv7Z%G? pbc.NX`Εd$IX333Zw Nf/Zk$f=f;n3\k~:$m.!3P xKm?їO73jLjWzST%3ɮ̙+H%F|َ>d{)\3sfkNTW҄l3H~N[cg;0jހ0S#~nkrN]ۑk2$칧\V{˳飲l6碍U0Cojﯹpu>0 9羀f9NN,c]U{&n暲-AhFQY)&f{>M̲ lKcihŗoW:ܰY3P)0z$I_&j[nN9d$ad5I ##wSs; ʅ]Zj#5;.-"06huHINL_u$~{<5E]ޒFN𛟻ҨN>$Ud[Y Zs$I;Yjow?+C=\`6.LciT^#ZivlIG3s=7󒰐I5M,uhfY{fϭΝl7Q\_~mQ챰V0lٌ"Q}'y}sc%f+Ir'I#LR3}l05qBIԾFqGI, ok$z7gj*ISN; oI/.oI2H><3Vqc&u$/B=Zd=%ɞIY3}p\jv/X0Nz$yLc| a,PgW$%f1ھ'A;vͼ?02VcW% $01YTc$iT1סx&av`q>'L/Y't}KZlhzZ0$22Ps=څk0u0ȝ]dQMZp2c_#3+q=wE3c- K$I3cy$kG%ׁc?f6P'؆$c `^xYJ6`6 F$O罠r/Sy񶁑>%%I39Ȯg ̞{%?$GT6fW:$LӸƢo~LCwЇ44*Jqbŝ9ƢV-c]sڣ1IH5Q=zmY=$k̬5:T҂1$$ 8f_3y&*Ne~IQXk8*φd}1YY@_W#97ΒMZ%r?8פnv\ s1FX`Js|Mq8o~>]8H6c|ۗR6+Ԛl 5 g;֡Q۞k&^3'2qX9*{>~z}÷?׷ߒ/[~9$?|~^~z^~O]5Ia$=1Lu4`k8I%y1IFR0{ͧUao=7Ƹ_~o镯_/×|_?|̏?^~/I?}$cy^f22FNL@K$H_fZz3Wg9dR.<;R~o?_>o|>K-~~$s>^׷|{_~%1IgՅf`0RYvRYاH㗬vriysg>2$wO_<5?_>맟~J~_~>?})I|ǟz}}~q$IfB$"C8P5Jf'df5V%#RY 6P];3\SJ_%3I>V3{HfK<8=[>w<=:<6UŜT0OP-+I*gdTځs^p$ɞYǰ/d|ꙮ5rIG}?[\Y [ɚQ;y 08M= ,ۓBm#%IS޲$IR#a.0Zm^FÑ${nf-%;,{!=wjd~{XcUwA%c+#O }5]k,fƳ{d?adI#ɮ`/̬q M*88\5HL$Ig$IN`pvrg3}%;#53Ar?챊Je4Ԙ{HF;'yM@븼H= w@J4^^K@r}T9`)$tl+VK2T!B0A p q$ka:AJp?PsS u*[fU`dLg <鳛11I7k=:$Uy?uNm ^c*:I~|?TlGoss kP\Z% O%%gpeڐ >+68JN> Weo$MNTPǚy6-OPԦN'裸`>'Iʁ=\p?KHG\w]SI$ WKCW@ΣI$Orrxr^cw}ਫ਼><ܰ>ouV:Y'G'Yʁ BfK8 Ve :zFr?$ 8:::_9Q;Wg@NGj*એ*5*{#$S~_{*$9T$dy}:5w[Psɷ14y6>J]9yA|O'sUGQ2.ꨃu;g9XڭG9J~"$+Isj> '<XЃC}xͭ ,33t6V6~טkgok[Yɗڟ쾲kPcWNCr>A(wp[S;\5u}lnWSqUۅVO~TN媾@6:%?﫛f̽V?S>5ܔݻ'GN#9ڬR|Re%Kŋ5G'Fss${9pQI\j}LqdW|l[ 99ݛfͳ:9:X $_8 2IPIg/l Yws%+\PCO  W_ʷ7?>V`m?z ??fzmt$O3<'^YW2$`eFnܬ/jS[E+\ksd%Y;PC`w@[YI'ڿq:rg.z#8*ێFm}f͢־XdCi$|{F;5 =$V7t:gX9O{냛5$rg5zg%ɮw_^Jr:c /7We%9+z? SIy+Y>$z[-gUdϨBֶ'T~'82u֑|J"Zk:.㽞QH*u,y2DXC'Y,Otx<5unrY6z> Y5]z%I>㾭hdW u֮ϻZI:+Y:ӟp+H:b͓J?&['<gУ9:aGjY2SM+1g:IOB ͟|U['y NٕW߻3[j\zy%|Ӗ)I—/+Ity> aڼ+۵޹뗿OmsNr?Y?\+Ý@u5+9ꛟ$$Jͣ3j~J;}Y2j-$hWSor5kV^NTA~kF'{ V?oW' JD,d'$?^;'g%/ OlzW65+S:2[`ev$q~sV:](T&jHsŹAbd77_XԱ~L|_䓍JڅlU+pך?_~ޟ }3nYj>I6JY\9$fi7Q硇*Co㖟Jygש45z$=XWI}:NG\K낇 bϸ E9p_등^INsT5U{3<NVdw*Q[o {I_O$~gpk=9ȏT>Cc4j{7*,;$3I<$6zpu>%Ig{gVـCAJ+gI_/?m=H^yogMl=weU0ΗЛX;9Fok{`i(\{e֚2sAm\zA'Wr:U﬽f/6`l Cur8t]5J &Sů7WɀsDZc+ʼNM^sTUͥFLokȆoJ`vZmtsl?\kkm|!zYyJP oԩWvje>$;tVRy2C[?$@Mu;̗$kwnIpѯm j:u$ z}n3|F 9.p.p'=p]*9ysW9 ZI>ž+J^ǣs[ؗ_xXSyݓ;N][pnwYc4u6sjNUʪIr&QCenI{_^;:7.rfMguRۗjǚ*n=5$,,j=H+}Wr`'vG.\\@%ْ]\w'9{So>I6m\N$N {v_=O0ب͏up>nJCm$c5$>'kɶFIgp_:fÅ3;NI$i@՚2IpA l?MYɶSI\=^$HudX!9OZP'ܨOf\$ɶuڀ%_/^PF.4=*f% \w{ k.tv28IQ9kQљ6ٛp$$C 8 t{Ep[}Zw;?'(a-$>篾}0*`vo8kj+ε$;PI~o:VPOvuI$9z}ږ~փ:NsE>\.pQ70`E\ >&IN0_せyK'<$Ya޺^X` 9yP$~}=M sW2T*0׾tRVye6wvۿk4qab%}V f9z7OE@ʷ9Hr}p ze.@qf?Bg*.Xx//@^Xv)ezgׁ⮁.ztM燝$;Cuə:K mTxET2:/~ԉ(vXQc::ovͬ${t~8J'IrU@|wœ5Uګv{I>*蜵o~=H:mQ%0ӯYIvQWFUk+ȏu O 757$/Η]Ioֶ?{} ܬڍDש,UO2S}{X>Mzu)k`[~76(ny8 yur$ɦ\`{QRGْ]I*_yT Oy0q:?f*ǽxhkqk$qwTzx{-];edܸA*pUU/{$!dm2gexo7z:[x?uxo韓7Y@z^{rhMzsYzzh$C *|IdGeSzhBø=[̩͟:kk4YI ƅ+5ְ>Yf,$uT*Jr.XnJtOθP>O^{ب#9Ove|KOrܻpCKNmZ l4ʹ٬xvae8Xe_Vgըkzʮ#Lۥxrg%Q̥r+k$$95nIo@epyʹAT67&ϺjXH:+:+ՃƵ:u}g?&y+3$9ʵreyX;dkW  Ԯ JfK7u.$S+>=_$a$uDO16 ~zI޽rjWw,ܽKl{ŗL^Z}}]N<5%Ot۽V'U#dC ֜m*vgHvP.;IlųN>I=P/U}Lz$󠒬vf3/9ݯ仟Jr`mtO'ʙd:$;:u*$xBoUf@MX\SJ${K/w?YqSlemtӉ$93rt6#fMm[J&`>xVָKgtC1zy|vJr*"I2_7I/w?%~*πfX'z9_YQ3Wg. |I;+ymoZ4_d *<.Ͳa:;j[I>aeXIݿMb<=pok .W2u:pKcure68k߯F%<,uбW2 2}6'[Ǽsv~J>1_N:zQ(LY;Gqg+d_q%g \ G5}c7teY묚F펚N+r5}n*繁OzaWz}SYOͅ>_, o7䝯}M2jq X9=k$27o}XM%{{$C1swQ95cō$b>k%IvKu>5wdw\*vU52NCtfO~gyp˙k F2Wmxzo~=뽟`nJɾPXI*XI7Oϗ PӿoϳGdý~3yJ'|yQ05_9{қ?U&l@<{d%zjwb!.@aa|Y'$8z}Jr]?JXԉھC_I^%k'< L~'VM3OJ֙N; ?t6ϖn2@97<5=kpJ*Df}^'Xcp}E 镳&q?[F'\}Թ͟lj׌$( JV_RI'7<]Gor2z[gʗ>9N$T. x_Z>GB}Wզ-#KCd*i+9i}$k:<@/{!+Im@9%p{WK]uJ2k$ɹ罟q7BI< sT}g j9x|92T.!>z_*$I}<9Qаz4SW>9ԫ@we֑Ig#p:ܟާ5OS{=k蹲o0rvtd%Iމ'C% wVy!ɩ|yV>_w3g+XĪV j{EUV+9yϖs>8'zuG% .OΗo@s{r$I\Ϫ:U}r'ޛ]$k;t^}fܘ~$aV5x&9ԨUdigU6ud'Gm9dܯNJKs֨O:) :3'9q=-{U$y/q_>Vx~?]^IMi%IN{wvm :95d\]mpQN2:$ɦWNUƬ$I6JN:k<ɉ_~5uWP6[+k_6ugn%|$ge^9yr}Q|NyX÷a.Tq)wYq.QY^Id60^I擣%'Mp3o5Hq ѰR1߭|$Ig$s.;$S9.u5S)}Qw k^IFBT+U'ˏ0W/ [_ 58$ݿX6L$oѵl\HUypqSӓA{$3^d :0UN\P p$ ( M2J,Ek_|$G_Ê"tqXkfFUsެdnd~l.$WJ=;`X@亩!SY5WRQ1+Uk-c%;|FWTsjt6@Fo)'ٖ X up^+>bFG'uzr$z Pљ\2'GwS^I>#ݟjWm*A$wc~luTã+Nniֱ>s_a_N~djPwٝ.C۳rj:&)+׾-U?;,&ׅWϚ'UsqaӧNeξN +EQ<0@.ٕ ~%Y:og U:>u^*ɱ\S㿃۽kyuVHTfXvoȍG?PN\{*:ٕR7$Ԩy'tr<㮭5*~UfuެĵY9+SII8[Ũpˆ[6 =b?ԮHtQI+Opvkw*W5$k*{㿃>fg$X^S$d= ו0/qo~~U.m fA_S'.rS6֡΍'5I$O&Pg7uX@Y seWv'=kNg_`S[hs:qujx`]pII;yq}Q$X"zJ2!𸁍Jއ^#G@eއaEɦm>uP7kTgq񫟎z::қϺ#[\+u:kdr,ܸQIWg$7="m15Jpg<,B僮SƯ~*J`_8:f$&x^rf^.+5p-tvϝ}]zy 2~AkV%g΀ lOFU>>_΃Mft3YzI6/[u}tN:yܛ:U+ymM{^9Е865?1^^r~Ιz@tZ;ujߨ Sٛ穜[N?*w錕 ujˆ2k{f<|Đ ^;_Ɯ7<*dͽ>>S*~kbj0w%yV眇:Nr:T nv](ʩr@];UA''d^S]llj.ԼNb_mtNgX/:$\<+5NNrCkIɑ Z@!TNG +$P YI4~g:85\V "A"dsIpOM5+66 X77Z6,IsIvb_P?Cص}a*=l@U#d[yKٙfmPG5ƶVu؝zxXl n"{MSXJz_k۞~[7? : ;]g^=YW%2PyuqoWgt$9j1֑3h:/Vg 3p!g%OzN4\+X8vVq>I}nYXJI&Tkk\S8uXI5::$Pq@O[o|) 9/hNCe=lPtN^o=kn>do>kvU@@0}.X~/*ɻLћ?ҟMbkes1*Id?'ݕSQo= Esc3ze*ҳ6d1$>YstFE6cg}gW6TTv3er*oTf C'u]o>>d{$8jbf)G{SgS{wf%JrK@ޯO֒c2pUGӑ=xL)@tW}lO3v$9Q3M[qyMmWi6= *$kÏ:QDާIr-=+\@z̬ϑYcלV$ٕlrS9:$_}6XX[ ~1٦wejxJ+OݟtNӓdyY澏: 0ud>`mjP9ʬdxgls wڰlXۗ ?lSk9.۞Kr^IrP餞{rЛuux3dfW|:?x-[eV2V~>VXgiɶ2P?djG}[m@S-՟^78'[>M6h9eszsou8${jB*WaYgvzM)kP NvO Pm}oO>>/pj{ooѕOXǦ?&_Kw *>qmt򲢓]ٵuV0cg5n7Y wg3#G^{q6Y+9W#~/!S}Cޠrmt7:N& R@dPzcpj@ez&ٲY+i+t4Fl0z>2lcVX \y,f2@@-f# 8=$~ת]c$$Ix~B-9]N*k~7eF!ΚPQB+N'aJ2y9TcqrdמP?kLf#q$]c˒,Boן=qU3o> lkɶ*8ppQM'sUjdmcQןNߞ`hUyczkJ,Q$4܌=كsi׬ן? (G}\lc7 `%Z_B R |GVkc6J皛Gs%?C1857<_ƨ<1}R3o`rtGI c6p ؠc.1J5Uk?Y|D"qc3ƶg%c伓F;WFzpq<_ԛ4PUiC`ծ689Gs'm^_}zU ?wd062s${5{/#!m$%H<>'X^'Q~J0q`pi`,6 IJcTu}A,:,rEvL5ȞSޥO3O^g_j/3I,#j88ͱ(5؜(:dӌ6b wFdvVYY{u3f}25V?3ɝa6ڛj;I%Yƽlh`@at0.=MݡwCJNsK;'΃` Fz-T׾+4Wu64cgK%`lMl$G?C%#=Yx/fmJG%7@Lp=̮;oV٣X# Z~0%T4&44ڴOI= ЮdvmXI?$n#g̮%9r$?ǿ +J-FpԆj'0 3/?>tT3gLAH?\FOuyv%HǿsQQA*TP TSprj~wOAmFXhF85~1=jTSo+tMFrz䕱ܒA:8*}@ q1v/7o?ak.Şy4_KfoVmC6%?1=Kx$>k>42v2sITW∱ ,F;-/gW4Ʈ ZPUo/rTv`&]lP 1> d4?Jl{.seu%$[s\fG3s,Z1^8]s`]W5Z8>9/>/;{0n陏fc`jZ?kxN:zu~Im3YfW$ٓʩ'X0h hp 6_}ls0أ8&O .I$]@Ilڲƪ֭|]O_s${ffv3' 0Z d}\X=7}8T>2k͑1{#k6Qv6lSwD̬R?0~?oa'͵:#fvX.P ,w1f<snAeOmq1=Z3Aa|Xi6GȦmg"9$k_ߪme̛}K-|9Ezp̞n&VM8{بM*cJ2',7f4$#F /߭\qg.Ka.c1b&{$$kȾxV#mg0'oրgge 3y,98Ys!4|!\x6\/3y+S`g./ p143ـGe)Z$}SxJWM{߀TA&N8ʹjӵ:GS` eK8Vw詺Wg;e՛8 .tDlc,tOIeF|) ;d,?p2rTe FԽ*YGƺ$jxa)Tz{`\~kPrg1~Ìɛ=WR?-c=s}$6呓ռdh IfRk}T^go:8ͱcJV{$hȚ=aܻΗ?5FٵվܒWjH1Y*=740qf'Io/- sX5$lcuU/5e"PXɚqumΟ}Di1QmB$mlwٴX#p$Iwc52=Ұp}Qg:Ils3*_~1Y#I2.rj;땹+FlcV:"ɁcI?yoZƚqW2%_'YTH-I|sm3k++dK61ʗq $#uL/8IVF>'oadc{9*IR]2ѩkdL_0.sk$I$I̞ܮ<מ8 ^#?$$+YLȮ*yvy$ c\c;I㘫27#{O/Yx?FK i/Y jeJ$IٓLSNg=nB^ߘIy' UX\.s?-fsb$K;G_equO8P#+3)LT =W%$ɻN6vI]H>GXu7*r<mT_ds.#e\l5g+2WTz%e3V}]VLjcv}iYg@-TZ%Iwy{&`ݝI\l S=V98М*߭n=Xlcqq$q.}ZFdؒI#<M}.#I0u}vxdd̼$>$W83Ojlby |U *3wIsZsa5_}`T)V"$k5x&g/7?&M%kf%#{0spmd噌ܯ?%I7IsYO>\WЫ9nW[ef&La82o?4~10D.\NҖ̝CÈdvTťg5tNdS|HHd.`Ұ~ҬZbddע-^ <̌U$l#g63Kfl[YI5ֆs#{4c.؎>gW6ֱF'f*I&w_|:Y JfzO Nj^jv`5,{\kVY\3d3Y'̌1>$1k$1ָ٨l$Ie$ZԵqZf$jc6r_%?$I^eU3=B-f^F?y5ծ0N Ƣfc"`;ed\s>ff&{f٭j$=]_fYͬ$=}$I 3yet@ɫmV*8N6Z%۱-f$Ce㨑5o? I:/RYedTk$Iz&=;jl8+*Tu}0gӦ/~ R+j%=7fduZc%IrY$#{=k4êF) ##2jG!3fH7c%_ǩvX4&u,̞ޜ6Ԣj& 1|&//7̽aq?IG[G3g26zWs?ʖZ~>V~`NcU ꕍꍀ9#az<,'Ʈ>e1ߡF҇멒_@^WmMbxfh0۞Z,db8 fKs3V/xދziiLp<߸^Ȫܧ Wq ߍ=)I̱0ח~hƢz\c_~>!u,8Gk.#;鱆+P usՂy46pk̵zt5| ?}ze90,˯~hRIެ}1^3^Qә;ɷgccl Iy1n䘝>Ӝ揿9 v hu`d͚1́st3ΒG)ja,TH53:A$IWVkQ{$f}Z 6_T4mHܹY3#/O|]eaFW,Z2!J`w37xyl^>̿_pas՟lf+\8T暁d=5Q#Yq2\[%IhQF5}qӰ*UyT>{$sO~ܳ>GMӞI^: Q`9fb^6Zs\#I\y{Bz$IVB6zS;$JQe9TԒdv$, ݏ?dgedYY}$!w#tݏe8*J?uWyDq F#];ɺ7T,i\TzPݣ] 4jƚw Nj3YJMcf4u}0'j`~iTv]ΑvFe9{K_gQfqhsc1˵^LHg:iݗr6S[Uוq P =kp\r=$YV(cv-(8Y8ɚcw)տ'<;ڰvꮶ2窾m97'Vm]qJ `TR0%]/OBm$Iيuڤ'*XsAEe^W#y5B^j's뙭r%p*cy\3 @9ǏҔjtqQ]*/G޼'`pX>c<1㤖Nsט?7ꮼ?pȧ}Mh\5wm{Ft3ASkdT603cU60Lm⠀2Sp43srNk7>퓋f0fros QT$@3IXz^68+HzԸ.9 en3 h딜Φ494\>9@TL$Yc^0Ʈ2Oꀑ;٠^pf2M-v@%4dͼ^Fuw5Gb)ٳ 8绹o?o8Ui3^ˏY?M]iHAÂ1۝,PYU#L`ݲ1H4~`޻:kΖ䑵H}9iNZs ls * BD6J,@@Y.+ z,#kic NԪb@-noTvߝ0RϛO>ص,|zq6V{COf+``U68kN N]#LjކO~weBgهY`g-pE:/`7Ň͡4 #itRɻg탂S` u?ǪV邳1a&?T>IvJmOc~EI0uA+T,W=wcdnɁiGy̱8Va`;cXe׶̽P[͞ Jy1H/`Eh.+O7pνX4PZ,,#I)m&[I,chPîXG1ve]6qB9F Y3v8b\W5g4^r7&Y5>$f9f^LGm4ࢦmffQQ8Q07q&M8.G_Fcچ_ї[;c=1N$Id.ƪ$ %Qk *y T35yXv|ؕ8Ī=;[,c)JrHZ'کti#IĮg7}μZHTրsbX+r8x.Ɖٕ3֧]MeL5ZW_}΂l=euh^ڱƝMV3 ȫL=dXc 0Q 8ƈb4M`c>eo F3V}X?OscQ8z|a>Ҩ6r21;P c$>/~̍Jٌydls]S7Z{\8hݳTXcSyiޟ.c7o *Ij'"$_RG Bb %cDpE !RcI!{I&-Zz BP|z$8đAZӖt=\*Sɥ @2#A6\ .fdkaW9 ˃~@V)],ë.%: _ bAf`O<#sJ^DIWSe8. KJ[v֎|2dkKeϴz<3@ysssvWpZ`IqL@H!B 19g GmK6ݷXqҿrN qp7ev0܆Jp+pj8‹&T6K @%bw+\)!ܯȆRehJ >ۘ4xN:)8[.\S"+b̑ y:*Ţ/֎3Zս%@o?MBJ'P:G LvN78%/C @6l3_+T ﵽoG,W'_3yMҺa]>`ppʕ`p250^_Pc D<}Y;.\^4@Kszv}x/?J*թ^Br`u6-r;CC,'kQ;4!\ntG- hT4 -Dž ~ OAlr@%JyA C{tu,Vj` O׆%1Hئ^>|شcB!j| l~2s?jۋZ_u~*Zzmc{}Ub4 @/@ 1b8ɻ!l:t'| %nG!̓z; 6~ʆ PRyS*ew:m(͌8Yt#lsC}`tm1oJyi4C]\R52UMX1HF't^+*_,@@gּ:T3ObQIhsi)A9vk0zf{<O;7nܻ7_|p\eisޫcD%:)D^L˙-$hxI]D-_T6mn-}0)w@G/f p`g_>"kCxpҁ޺4&Um J*Rk>/wR. EwLK}pxA#S`SW$ʭꇋQ,n585Xd"' +`wC @+ Ov/acB۸86UXB6hmч6PC 6]0^>^ ʖm>\IA$vyS0 a RC`-fbp҇M[XB }sg4IsgFfy̜9u~swfyI_ Y\_9xRAЖ/6l<lhe/,!C:cë YdAP, p"z* 7䂸3 0?^@_e`I,Q0J|1 L jt"ɏkgߞ}`8Wq (?{jc|qWu .J/< @x~g ~KdtGZ-_Wޖp^B.M@0\~I>AH ›Fn4uW _"e 4Ei'?'~w qq k}qF;5//3$on4umTPL~{^m׹s.o:]67K'@h:?[:\pï~/zӯŴ>|}@_ zkzͯz~߫I_pSW§K$G(NL.p.]tҥK.]tҥK.]tjM..^ZW޽rE0M?vkj=&DR45VWs|ZνB4(-t4Uk1PI̶k/{R-xK2vkch?Ddr[fQ=j;4rzV=Lfe܋pԕrTRIB`yi(trB- {U=ͪ]n M9`4֠s 4R.vvԑ` ..Fdؚa6eT x d5ٟf3'{A,Bd@P4:l-A(z;4aj[>[t'~B_͜ԉ=cSua-! ׆pmh K3HKPr\Ƃ%8:8I V@08vXEX'v)8S_ RX9=ҝI[LsVɁ ~(~Y| 6 HۚAI~h_6iqtt?_Hg䔧4Zh g' Q*90E0{A-B_qh_u+49Gqz6=-mtwY/14N(RmhJ 3/)حP ̓Ԇ $bmhE>ldZ,'Π]M&=T;0sԶЏ=S%u&nԁ 09)8$GArm $f.NDiġ>NRbM{fN& HJ}p8|gylQ B6t 6h\zOU~f\ˑJuYvԹZ2Qєԁ\p _9MRvޯY93ֆ@ֆPR/-U:ħH@`i) ,Phi)4L :xuw {m_% 3ss TkCSpĮz2ъS6̀INX!=xPǁ?=zU<:h(H$ *6^#\ U/DKR*u2Bk e@zۉ ΃,8ej[WwQ dǴ,XxZqfN8aQV 4Z`xٌA$&!ƎG@z3Rlu؋*O8(U>pf"+[shrT aj.S(?0hEMdT P_0wZk8Z8kRm*׆P[y-jC\y<(s A$/)/a’a{##{a%ꇌ ~` -~]HbJ@DTJ8x7(jCՆ8YBQh7^RrmG5 G. 8:<<0O"p\?0RQ{:Nw%p |ɂfm& TkCNB-\r(NN" lH-!O]E{p mU XK!0׆lFӮ Z$ g@Xd LcD L φk ]k ,h1Y&y^u ܗ wI JR  Bcmh IkC'\mdQqmhj-D8(lg'vg @B"Q"ڱSk9wTf8!ǚ]±(WnJ` wK)nD5 M-1[7|jCvҮWf4+H/WB;Dz4K&V݄dNy #O(1ǜɗ UkCA`'Ba< L(ЙWϴl7XΊ|~;&;*SV)XϙyqM$x+/ x!PuKv0SRL*kCֵ'l6C^ed?ٹӝ\EnXXoKк@EZZCZ@S66_흜y$tAfnD!(c­(p (GƯXsH| ɗR>޹p w1>#{Y(iLV-k,3q5?O1aB ~\ εɩ&&,HL.sƁO'+p_a1?LAB\9kE03f:)⹡pIo)+>i+jnhGOcQO#9SRZVZJs!rvIKuI$UۃϺ:>lXT ڊ`rC Wiy^!;J!:ebEzq.yKC) .ЋSxƽEP*o3*BP,zV @)"5}hEPEG4rtrx,z.7^.D.[>46.S;kQ'f[K" B2q|~.,b;{+=]#^uGIk< $B`8篮L1QGS$caZ#cP8C̤TI9 :p0&5rC'2(qAAAAAx vIENDB`images/arrows.png000064400000000363152213653150010041 0ustar00PNG  IHDR{YKǮ$PLTE" tRNS*CQ}7n5sIDAT8Oc` Ttu޻w;lAfO*2 f ~,|!Cxyw(BΆ0Wޅ*P5  m Pɵ{bT.=m4vwIENDB`images/align-center-2x.png000064400000000223152213653150011416 0ustar00PNG  IHDR*'Fds PLTEN!寯 ZBIDATWc` B ͵jj ƭlt6UlΦz\U0pGH@IENDB`images/list-2x.png000064400000002763152213653150010034 0ustar00PNG  IHDR(NbPLTEMMM MMMLLL]]]^^^^^^222333222MMM}}}KKKzzz{{{HHHIIIMMMooovvv?#tRNS@BC\\^hs`[ IDATXXMGwm׻Dam DТH6qSo$RCqaH{vݽtK{5=ۖ2#RDY͓{ş#~I_ y2z0y]@77_ x=~6J/^@U|y)+vJ< 0[^;_,󳫢|:UK[G<;yeOF\ ,Ո-T ,շ.@^~KB'^{ Va`N ލ]Pq-L.OڌR#F嫍M$|UoɭtGv!F *7=JΘUz=[\ 0.u(v={Z ˳ oIφ8tKn nb*lEi$!/,ȡa L/$ge6GjԂP,,qQbAI.-ΟR9 AɅ,T4dkAvkZwB.:qgPQ<ݪD L)^jr4lLtԸ8S 1!su.0ˍ@'Nwȝ,jVp&qvrpeoߙ`篺wkCr~Ⱦ?'#u/w=dy쌌;bgWɒX/ 4{6lVgī~k=gS؛`LRtqqNmX:KEf1IWZofBa1-tŝiԠS%yn$?mDf! :^a!KVUPA)l0<>bp<*+t|AafޘB&SB>W!$6z.kR5I hu}G>?r $.7I〉>xԤQț(UTG =) &)?l$'qSZKTI^ k qp͠Ua ˏ r6+3ߨ2 ( oxCG V)29]hQ獀lhтUxBY +TF3][7{4ҵ *UF*dŠ+Qb aa F`$Gl ($Y4I iaa ` XqP',HB h0u\(ą A1 g f,ș $HDh0¤|' i 0 ͑@U1 B4A[ @LFo QBd"`h@H(>ABpõ{BE t8lP@hAq~qo|@ t0$H0Q ɂD)ڑ,5$Fee[`  &po4ѵC\p4dPoG>hB,l@R+Fs,q5E6( Gt с`X!~, ~6lvoove6J{eH.ly>|b yk-oq RQPNMKIHGEhvTtVTSHFECB oQK XVUSRIGFDC`_QpG- bZXWB`?ACvXDG-YygI"5 -YEH!_~P;A1c4)RG0PdA>QĆ  R%XXRFŬ{3EREsްQ#  5"*( cm PrAʏ7eҘ1 #2pJcof-% RV1E1bǀ۷YVwo20`Р+(j…s%|p@ur̢;Yȉ|DQ*Vȯ#H0H@ ) uP7`ZZ|C(R '@A1Xp %С HlPdm# 'XU*bp#!Yd<$h!.,hTǗ @ f A"(I ^" W%Z"490aNḁ#(T[!-xo%Ȃ ҠQ0!0d$f 3f 8C C#2h 3ps *4` L4d`E8|rFĎ'bwG=A}D0qE +VXG1*T /w $p )\#h]-AHX(T2! d, H4t(|G %J(0ʜ3"D}A.IpO eKqys;=$Y .\`bK-` O,VPF1#A [VKTD A $m)R@ M9 .3)P8q"Aar޴0!B gTJM0 =(-A=RȲFa*N/Qb@!oXw7T&ZQ$ItN[υ YxB wĂQFBl\6LdFGѡ̥`A S AD.XBE`BB ѣY`Dm`!A.a|`x?X(W j@s7BZ Io<zG;4 9D[qC: oB 8h (dA|EB`å d䖆;)$4 8)P"DFdB 3jyo 1P ! #p cB / C5(P 'k$` ) Es Q r*Ђ poAQhoE$nrLDajL o-,4PLWT`3t,`XfԃRO aQBu0!~, ~7 rtooy 7MrK.}wqw{-om zyXwl|TM |ba J/y޸a]\by.|p |Kk\>.[HfEHa(ǯEs2ѧ% , ƍ /`@I>%\b?8ٰe xɹ4ti l8xE("4UL"%ϛ,t7d'MQ(Q|a@"lpf+?lGBV;ؼÈ"-;y⤴p1Bї@5="w(;ݒK\9R!I<Eḃ7yȑ#H(xc:2dBr|RE1Û2aހP NHq14(r0 b@Q`8YqIHB .P"s U# 'PxF^D4. աÏ' ,B 3`H*DA bV1@ 7CCA^+8 - 3Pwc~`"uTK0|,:= | ,y>Pc! , $E"WQ lñ  GRɹ gg;7s~v(ܱ̤ g !( 3aP b$`0]b2z0.\=$~jES- d#,XbمHhbE!#F|4DP*U#4DZC`Hw C$H(a"/(PDa&NmɓĈ"8"%LXscdxjt&!tz,hLRbI%!ŋ^ !R$ }Y 2hظ/`1KaĘF?RNB^\1 9xD?7hԉz3^'aPuaPbR ! ,  HPI9w(|CG!)J(3RDI@>PP'Le8lА… =(Sf c?;1`IaBoP,PP`> $H`Ga,f B ,#fv< m !CY $DBB91b9"qp0Y# P8E7fDq{2.t3A (Hf! ! oTa# w 0C¼Cr4Ea  8 $JER(`oQS`B fL !0'pˆQ8B `d (BAPHB|c.0Əc(?(Ea!“*&*]B ^ ,>Ph Yhŕ0Z, Y($GV(4Xh1^ - 0ȡdHDBTaXhA ԠP/ :W|ae(SPaŤ[q!q 2@s覐T@Thફ 6k M<Ķfp 9x` AI,ODA E 6CThHW@M PVXVk¦, 8..-,)M;7ă0//,2Qzhؠ1𹠡ɇAk:pР!C2d BA㖎@bpP$QXy2ظa @+P(@ GeN@a))9r萊 &`#h/`yȄlx D/:z`Р\BlH  u (0_BdI$@Z  8#H2"F4i(R$5%K F`/b;&NHb%.a }@#&Hn3i|,Zt#`zHYp#;xb?DQODRʕ,EGI }]L S!t`#\Ȉ! p, Hu(|SJ(31֩`ȑ"DHHC T *Ơ8a$fDE/^\"E >GBaG9" -<Uę37)J7i̐!#Ƌ,V@ѓOE;JjԘFcKOU= 6("B uYym4tɸ ?zN Zt7fB%&Ȁ7vxx<O&6Q-xT<(q&C oD@0jGo]oܡ_ I! сl0BY!2*􅄜iA.bC A ! iAJDQĔ U!ko`%`Fa!nXp\FypH$ YQ AZqFu*L "HgLP L4y(C8JAP8Q}*P\o Dq&F!VLBqt 8FzNAWhE|` ,@<[X1Vd.@o 8[t  WdEa0  XQXv! =x0\h{AΰBtaH I8PJx=Q5s QAH!~, ~5>voov=|4Gj=F,v\MLKJXuf,olX54320/.-+*N>uEQ87651,c)\oNHpN:9Ǵ2.*)('@  @>@҃О ޫ !2dbDb#V ;Rҵ5*䣇${ bcCA_=t 4#jP0qӅmppUI - KȰa O'H;IţJWb B<| z&s-nbPU)Q\Ç#+uddwE8-Fb:tBXXI~o9SEcT e0RdF'*5lb| $A DD)GXtкMQS-GuUr?(;images/generic.png000064400000001317152213653150010140 0ustar00PNG  IHDRaIDATxڍSmHSaiQE_aR(ːB"AY(B`aVҒ$qMmlDjz;k{(M}9<9O&*폠CIwIh\"K#mPo] U*YE>;n6bZxQ٨ (}z030<٦|NN~R 丢LN }vvOߘV7!fݐ/ne)GQu5| ǽJ36$>C=7(!QQ/g}N[LmqrrÌ@m+ҥ{HnFr^w``vB|X],@Q\T@^A[sS(>KXK%#JJ^X1urQAI:]V4'>P)BJzzA!3F0NW`~k^GXE*g1}gNWN.B}con[P-|~~_\/#q‘aa4t|Pr{YҜժbYGٌεܿ^unL渹j%.KЄ[0G̓Š׹鳿∺ꮙԻ칟v⛙ŎB+/[{Īg`@ƣ6^2ݤlתssqĻѵԙnӚ4G1___͓}ڷ;,=`XKP׹ہ}㯪.@m?nhߞj<έtګV`wȧCښc״H|UoʊgM{vޝ7ЁMޒ_7Ō1~{Jq|^ҮoPIJxrځioX~TZШΓoB8W{,GtRNS$1F%Z?s谻K6KikS̀mqS\~Q- IDATxOSYq0][c2%H&0&;k2J!ҡ61m%RE2$ ȊD(y [ bxs[+[wܝ~KKh?=%!uRH*{ESРs8kPh3wI2/[ (H%X##h(4l]Gb.DM! nuih_x rYiHIxLl>@qL'sedhvy%'&E=0J|~M,-ĭ8c&KV[h`X 5Cj)d3ЪS* Vۭ>OQg>ۍ0(PˆVa@VWh :zg0/!Tyޞ''MCM%%|MO݃dFi4:zJY\n'2=j4LGi4,a Uנ*VAw,HMA}M&óaJdv'=2gt=\V)Aۭh .z$. &dz%$T.zWvEȇU{+wmSX{Z,A=hhĠ<0f 9M(s|6ڰkhrpMB }pa4kppIQa^E jα,,kX!Sf! .|VCJyj[8́rt/},lo|Iz,XǗXdWT<^r'Xe4|A8e11CncCm*4;c!{%C${K&PK !4M2<$laiɃ-X[Kh x6X, ũ.Ɛ\ d~|`omnp?!49>!gQ0V*480p1F$jMO8/a@[ؤ6 l1FS"ݾPK7 CC59ݐAod@&R)Һ "$OIAPSz6'-B 2=XX&cv}j-B1a0وIFXF7ca?0f ;4(dZx, o&Ldqo!ʀ[%>d=25CX92 bp4>_ubboOIǰ. "Z.U_|tUnVlJ3^:<ݭD7 :V66ZpDx`(looZZT8&A<0=4 z2/![ o'>gNi҂_H2UfDQ65)Gnqd ѻI0]acn|~넇|O墧QC1h1tuE04ifmk |i\aNc a1^"Z@C Dޱ$4NZ˂5<10L?^M'p{;s$KTdiE]a @M$BL; {6Ӵ˛ڴMgN7gd([ A[=ȞU˗/11ڧjQWN SAnNíet`FF?60ԑlj!*T%Nע?i2x[*Z `ˏR$Nl%avۆ`N W؍bĤW(/ϲ˭Gbq7Vi+` Xrl>[EyCOP NJ1U .PePVCJ>2I,4m͐8?5`L) ҃6Ai#H 2\di 4{H)3dju#4^N5$'Źj2ݯHK$ۥ-a4Y $I8+D3ڠ`P# -YOK87>U͒sO_2"$ / ;t>1<‚%K/ D/YH1$)J62.{%;=R٥LA,mvQ he(_Ie(p֬k>  Aۂ2{lzA >iSn?ޤMʘ0lu.ѤǏyKFS%=sC'Cr;cVD#@+ee֤Jlk%M258gM<ҤL I,2HvU:`©[iTWdB'CX3}޻1 R0c h&D =Ȱ~. aʰ2 -/w1m{66c Ё4Vb1w34C\JJA144dIWWWQp|e4i hd*WM/ɵn>o׸Tt gAeou%I\~ET0TV w I՟ &x~.d0[2ttN`::hdCqy;?# vw~acpqkЪBA ؘUCC|Z-p_wWTn Iy/qy P)2)2'u/w%d-f^iRZ{&AztzSE&IJVF0dYTCXJ}=W'X$ܕ_}̲j(BN9ZIۧ50hդ۞'0$dRr*P\ V Z<pY-ez}kG9ed͖ׅd0spTp eZ[u$ ~ +}Ud 3ph!h&D0RcH qSR˰vO H2lX>y,m`sw pajgi @-S\v5ZTf{rAP|^92Hg]d 8M&bąRDiF\A/0f5p,۩;~ 2ț#Ki #^*+R3CT@Gf\ zӤFndk/4SiP@VM~>uQ,>w4M ,g&I0%=a"÷~ t206a bڛ0І2Nx'4#Yl4j4Գynpa /h(F@WP Ir-IZ"qA/^`2,uuW)ku!*LրKhګ#wA !6T@ pbv8V!UpPoP0.@#е ]U,Sq2$9f0&ha0c@! f1G>|v90; /`0Il/)qnDv_t&8R7[ŐJvta "xX,F)cZ(tf6 NT9^Vy4!66S,~EEahրgeD10h%zχ!nb-8$dko={8o8c6'YXL5v }Zv1mz1z=dd8'漓7ߗf [|"/J (.Fm,5=!Zj hGU/pԆE{,uv%+(+}tuRoX";[D$8 N ᖖ|{Ҹѯ)?CD$f(JeV/b'yLDb=wmʃO=j:]=                      D曛wD^g-!Q$;=c?!y\xGD*=T:ABlem}Mw?<o>|%>p&lzE8jEvBf&H^_ԷkDś A | و>X_*i Hz2SRHv(T/0ό+tM֤ޓ=!؃7_Pkڻ.~k%jp' -0 |gm ɩ|ٱwd!MЛdz^Lʍ lnkxWmcu×?Y]ήrY7$)8"v."td'~A뾦l5Qb mAb%]t; _bΏ<{㌌xIsԊmzE`ё:ЛɜG%ހL' Tk5?CE+%~*GBW,Y̲.ZzCM@Hc9 " /*YV9V|E a`i, 'ZNLP0'ޫ|E`XF@]fږn\Fe\9fT;m^w{b'sa`\ՕMQ0ѥN,,5 Y2pò:W'8_Eiv/0-CLeցʏŠlX)Md]7,'0RNSgr- yu I4'Xg)rئ_T@/ROPβ ßTd_ vcKXG~⸦!}W:jXp Ϲ讶 ۾Br\6'@X bY/m5"eaL  TJOySEOUX߬jKxާ!K"exV:tNGl,eJXhW}@vՃhTzgWaPT; C7X(i c:M\Fj#m!ΕE!<|¤sr(gyBa }1f`SSJmKMp4kuj>0o0qZ:B(˞v7~ M‚Q˺بhaߌm{%Q\٘wS~w59&0x6pu˃҅PPu P S$\ wǩDG:'4 )r_k!"ޔن?"`T; cVڛO,H^r,Aeeͱlo@w0 _r,nF .YX 0 aC=4(py}<F0,ǰnjP;p3śSbt$L 3Q nǃihp0tEV2 Kt+V`$RIhв ,rM-L49͞=`pMeK~yfYNh3 yYÏE2r03h3dԔ6=O/^ELST`Q@  7_I .hAoӪ jΜ{%Ιi y.eb:qF}+Q|2^ x(:70|^>Vs.H7[ 00,(A@iW&󜸃W.*Pif':+hmZ1 ܽ"ema kPהXWA` QPB )j]]"?~JBHd8~#d4[&YtˢxrYQHl8 G?YfL,EWa8*/_(1c; k2x5 ^[v|0X130.JV4Sǖ.h6 %ʬӑaD~0Nm/4,Ԕ Qsq(`H*!(˰n%]/U{?.%d#<'؎d8m6]? A7êqqY='YLD=p$ C/k&]֎/̣ VQb A^Y<;LbA *LJM+TZT dCgbкpRU8"4r>2i֭vM[6eɞ  Q!x'SI hM2P&V ϯ0dXхUyj85 g[*R.ڞ׫jJ(b'C߬IZf8VUݒ#nLC7˜h@8: CM؞\]%0uKv}@hm؆{Ġ`C d 0܃E0qd٧a!Fzi!hh?lC-FWH"70lbbR$D9(r`.r6U= J- \nO^ yN% d@ΘI CI'3M*صq A( )VU0tr e?Kғv/[w/uÈg1Ei5 FA XÚ$RgdR /%Ea$gH f]ʒN`0Mm)E8j`l^M=[t r.iԔr4jYF8&aW$Uvh`PBH4nioV  RHcg4\]S[99Fo 8qtKkh|qPّ1ג!hmhBmkdӘuÚe ƈiqzO 2XXIh),<:%%axY晤܇I< eY2f6/,®x^n̤6x!dԔ@DozOƒ}j*]cqSI I>M ֟X8d1qU\K-I1)`8#5tΈ}[o7KYJO4g#fv ZR1"8>SU7-ƞwiSek㚅S$ęarH` N4 x/v_Ww#v5%/bS`OFAM0X#0XlƔ 2 #rC9"9xA@$0&Nb. ґJeNQd (/cӈ&}&X@>Y-RQ Г@@n@jJ ,T0qp^# E`]`T!ei) oJ)ՙj9@"$Sבͦ D D<}V$xa-}^zIoQ0 ;];4~|3hjdmL c/\- f|1P@e[0$a&7pM4P <0L+m Ȥn3azwEˆن8NټkNy~y#pmK7Se]rR4`  ƘqeY&ui4UO}>nƏ>C "jkUu$*U{>0( xGF8֨s͑a "iTÀ-Spɪ6M'e8Yَ8&3sFr]rS5m9!AxVDpmޤ*v37Guey x۸GYA1v/M7r'2aYp8F_[u%OPT$0icϯ- Cyfz?0>ֈ 6@1{j%`I_e;sCOg-<2f?uz< >HzS'7R!A]E qyx0P0MC{‚:ܣ`; ޼ 73fJ{WN J Jb)h '<2SQFf^[O&BqLDpbY1 #6yWh? < Y) Ͼ묔_-?$i$ QCAc|S%V_C H01 )vҽm.aϚT )eZIGoN?ߴ0hkeNTvcgǾTp;6A3 '{ju=Sr\fڃ oI;[գ1d8zl29+N Kiv )?Ǜ40x!`NAw9]=z8U,l}ףX= )`8@=Sz( ELH6QftI0\RayMWV`0`݇*eE1ihNb(J8Srd 2&l/ɰ l !)E*FnXժ Dү՛{|fV{ Ur^K,%{^kx&ؙ*c4J6ǰB.V,Ë {~2# XOkz.H"Iv&;z~S%iSMWXѵirm\3S7{"žcesbY#.Doz9Ѫ8Q,&Jo?l8f% lʓ1|WΪ}$_)O8zZg+8 W28N4W#dHYlG~Nm*d#pv$6CYؿ5/Y~bs=GRp>Eab-.h 1t'ӞTX~%;s~0j5 [0$ì_SLpJq[GhkمX'y$ ~}G\R1Kq4R1ǼSGYJcX, kh 5& 2IjjeBe51׿ A'|?wu i72Il͖ƙ;˻V_ \{&B/jPDʵgENlejVǮ@#C,<O@"ZO8Hڈa\:_*r\bFhWX*aDډYghQ>o_=<3\yBf dٍ5;x!x{dWek~!kYBS K9o _EdɰOwy0eUQT`cKd2ոu,1~/l74}dw2|Uiun1޳'E,axUD"]^G0 މ~ 3JesoXm5ngGMA4h[Z5'!hB5d6, /? _~㈶6gc4ڑbOu![84c9ǯFo!~I`L}J]7NM!T:H=j*hsM@$;ǚ]e/`ly:>I1 k HOym33RJX#FDa1f7|Avd#mr :VP3w8ƹq:ѱ= 0,~kɶoxV19}\!`ѠͭP%nF>Da7''5Cs.(&i~_f$yq$ QCng#.1ɣ>. D"i2zr2V0Iz }r*c!>;ߗ>]R=(~b\9J_d9` fA7ےE{K]E`U8e+5GG`0ETgc=G}6vh8il;:j r v}pW.-%5/4SnW?;){;kС =?Kua Sx+gXB_PB@Wì -Lk•uwvDPѣ*;ޮA~)יJ|;}=B_!QbΛ؅@9L#I9DFK5%5U =ZE距Ⱥ5C&ηm&!r΢p٦LC#@Gk?8ϓȶjEJH3" - d;!B/(!iYP/ }.Vb> /2*f#9;aQ-L 5ZUTx0=ih 5]u:{C.c2]]#$*_9Xs8 # ,j:MK `e-!CzP-~ɋ:#&'ߌS'۽9הȨyr^z`kV-oq: R]5x; ^. !3@&lRY,٠mP8Syp8 ZA@XZBz1$ J]q(13]2FCMeLǓR1=)3@aXWϢt9{^CD1A/@/vwSd$/s# 6#&y=:w+u*V7dg,g$FI;ѱ˨O #zAJJ#oh4 K"'V_WVM֮"D@i7ʮԔ/Ա0@LD f鄞@Q}ɂ1*Yi@`1Q\*Q(C}GwM4M`lm~.KԴxDͫ d>*ɦ]ـtѐWd*̤|͟eIXt޽?OdO6v5D AHІ&ŎV{1}'4:2|~ѧc,{/zUL`Q=Gi,Cϔ_P/!D/¢ЋQgf eRzeʛ,fn\%4[96̷j'P۝ =lXˡ;.NLwZ}/{d'd7oGR̚b y%?yb)_5lDSDgB/D@@d%_ju[Ҧ$[90ДpD2ce2xL{aޠ_U! +CB%{A.3L>wYR":,2 .*I_?IWJ>qHZ%"Xp7w>y̓;'$ݗgl]`%NLݸ!/$}I B/MLT gqՠT̀/,2Om<&Y#S pK$vK|1ب808#tUoqe:.`s8ɢTʎb'vVB>E磥NM7z%,9сJ?Y-) nG A#d6zFGD͂c$ ϟ-/yګ*?`K59=ju[ޞyԚf ǾmkGff~Z4/l սg3}#g/i.{yZ)Y/Uχ>\C +QцCf%fGz*7Ow\kq_>1!ƙ&uKЇ3sѳ$+ RL$ȟF!43$mm^()toBiY7˵!5>\]^BJN;yxޟLGG2I'`e%IOۇ|Nņ\*w5  1Vi~l[" OL3_ Ze!( klLfٳ-LMGEPx8[H pvـ%wI{e>_7/w-_B<AA=cCwurT>DzZ٠='6|)YLwz;1cvz'_3A tk60<2[J6\KK} =$kcmǝNaUk3q\̣+Z3>yqe%ku8I\0@_)fg̳j HCO}u4A=?v[K/,-Ή"ܖ_/޸rPJ%-+'],[I'>cLZkeNN= f/1ĈU>vUaE5@0 i|ߠ{<_}q\?ˢ'j(v}d#{ 91}x~Xo ިc*75]|+ Q 冊"Qs H֒]ђi,Ko.=(/Θ)?IuS`vEbh@$hek^?G(;ƪݹnp,6 1z%v)7?i.-hU*K+7O 9c/h o<dy5;IkfOpz?. @|~yaևQ"W_R @;in]Fn ŋ,vRbFiAvolc`OnV*#R|t`4gσsl_٥fث-B9}؛wxw]7k>nn5Rbϯ=M6=?+jVo7LckEBOԶY5Oių?tCq*ˣ;dG`3cg,Wvu?uM׮} a'k&#qy<L6o":zteA(~kouyWס3߹al!{owz!ȋv+6;` wڊB@.)z뭷/~ l_7ЎUWD?"L1z?K'8>S"=tw{kef!}~v-TvĨ9Nlz=TlKuEM=]U[/^| vy>o߽u>k,C{7B,}MMo_tu+z;sj5TSM5TSM5TSM5TS*wIENDB`images/w-logo-blue.png000064400000006051152213653150010655 0ustar00PNG  IHDRPPPLTEttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttfJܱtRNS  !"#$%&'()*+,-.012345689:;<=>?@ABCDEFGHIJKLMNOPQRSVWXYZ[\]^`abcdfghmopqstuwxyz{|}~%IDATC7qG$6Qs>Ŋ91DI3Y˵dkltZcSуQ. fO6|8iN%9q>1hZںŵ[t W?sulqʲ=J^J [R2Oqi}Ɣ,YԺ÷:,EkAkRxˮl9EK'CYtOڜckqyQ2trqMj*;-kңuGvc˚QVuq܋43U>hEDBo|0`NO%!rL^=ڕE qem2?qO"FV?qEauCcqj ; @eꦧӁj rZCA_Y ytG[ҁ>u߁g@6ʠmu7cdNm15C#\󅺭1?љ3Vݷd$st7{} HV9c1P-z싈 T T5eaT-F<&/ oF9 PT2pWAl>RmSGNslG4/8RI֑ϰ[=O}WkZ%ɵf-n"'Jv'Fvu8N%m {H(NRJ)q*B:l|b^W( cR~%ո6jqY/dLEs0+ \xmfj0[zH)ڮ$0vQZ?9#;qU1&pFyi:z(mS8N5* 9P"WH)EɶcF$2MU0J%J1IUJ;s\Jq+Fn-xHKY}++qmQlt5i(\+81WΑ38V dyn(G?qw+a\DwxƃJ W$e%AZfv'FRD1*l(=Y 0[*\?$>^Yʁf4Z0TjԡYfBGb9W*a7{^Y/V\ԡ$\+d_0\ !$LV)e,+@Ʃ1fȕe c&G؋kz(1r X 1XkYVc0AǁݲBq1`̐c 1`JπI2z0vV%mBrLaAy1 Ke7 P#PYk1ߪyèrLU@2ec**FfDqm9k9fUdF21~%mYՊ{B3^*amW\6Y*1Q=9VbFcJ5ȌH d: k4P-c BP+jsH 2pz`YFv)v9ŸGZv>|'c#e܂U@Fs/ ٖcc98B\}L?aUv5=WC^m=դ)r#-@:Q&VL/rc*o!mpdL= l]{d!2R»=gTF3"!YWd{0U _SBY:~R܀ZqMSC',` %|sx{VRSUeF08F+a[q/k4߇;u2GN.yUq&OIjHÒ_mA.(ؤYMncfcPHo" :ⲗ 'l,?$n^ rQytS=ꈺxŧq?.!9 WY[/.m clCjel6֫p2pQ/lcJtGyb/ƕ>;KJ~0.-itOV褴<%5KH@P 1Q8#UUq1`2(`2 f!"'OvochSce"3B5#q%K*s>2"S m$s , z#} u"xϲ N5{RG; XZz^` ! ,$$xc(a %"] ,i Q4Y3MGW3p@+!jBυ\LiUhl͗ ! ,$$xc(a %"] ,i Q4YeG.qCEc̈)2XCs%paAQ;s]yI5">,-<54-{ pbhnRV^ iCQjK)2y0Rmgȸ+D&s I ! ,$$xa(a !De[jCn]i=>=65r kbi b t Bn 1}8į60ɷ,(A ! ,$$x#(a !De[jCn]i'` O} ! ,$$xa(a !De[jCn]imkp+"54be}`H>MR1hnFAP)2h70|4/1d')v) ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 \"nE\o-e $@ ]{cgtUM q`N"qF#a-e$`#L" m}~cBJ)2hx0 >')v ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 \"$ޛ6}t[GvhMbUxIn` mnRIn@~#UF e]`H{.M {LnP2h}0 +d')) ! ,$$xa(a !De[jCn]i7` #5/ BoF11,T02[(*" ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#U dun؃d# ~{P"M=ϲ[,$_{4cpMB4f^DM5aHREM=a , n< YC@ h..EKq02i7 +P/ #&Ѷt ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 \"$ޛn;eٷ.~,$^z=b< ]CR  HCM m,L 5e`K# <@N B>4&%GP70 +P/1d')s ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 \"$ޛn;eٷ.~,$#b4& ]d@ H=` M-M mQ$4LB d %KP70 +P/1d')v ! ,$$xa(a !De[jCn]idaH}.Ma o }Loc[0d70 +P/1e')w ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 \",]2zel` zv@ c"^"RSt#Bn6cb{ze]$`H|Mzh}nFAP)yc70 +|')v) ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 >qtĵ]ODMk- { }h%B#o+=<wezMmR1xvFAC)2h70|.p')u) ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G*8 ldMw Blc70 +P/1d')k) ! ,$$xc(a %"] ,i Q4Y<h]ohq;bc̔B#<G]Zp -XojH#v xa#g rs>g2s=4C~-5Y> cH>Mo | LiFAZ)j70 +P/1<&Mr ! ,$$xa(a !De[jCn]i'j ! ,$$xc(a %"] ,i Q4YQ=$>C؍$ 1f.6YhZ7Y*-L*Ƭbl6;Y$tl"=Dwx{6p$-jfhJVf a nHy)270 +>&Vп !,$$xc(a %"] ,i Q4YسMG 0Vl6c̊7ZI{&RUѭ k @>$$h-4554-v~m_dklt |fG DKC)270 +/1R&UP ;images/about-release-badge.svg000064400000010223152213653150012323 0ustar00 images/menu.png000064400000011657152213653150007500 0ustar00PNG  IHDR@) PLTELiq" <58sssqpm ttt tsqxxv0?bsrnxxx);R.=Qlll<ooo<3$nnnttt~x`)*m5KXm*RRGUӕda枵Vٖet IDATxkPI'HAAD彀< yJYj Tx@2V . (. "( <뺷wIPu}R̯wa|o/a˗hOkk>!уmj_4]Z_5,㿇mB P.Rr bXI _"f -ӵ E4pzLLz84w뛺S\37dB7:^?DmQ-*հjH$5g%D4\j/-psssKVb.%%.ƄHp.ӓYvvMz+zhbMH3ݒ٤Cx>=H _|qT ]HXd| k H^HE.cNB7P&dKBZII ,4X^/!) QXx#oEuըT5]Q *BF^tص)ECl Ww0~%iqkHu]T +ǯHp M$EgH\/ˤex7"/y84I)![rB˴&' 1 =Q5TZ]mhh8&zf؝iǁZ %/~v:Ǻ3uu` yPK k&?4FOQhwRt)jzzj(Da-wڎCSP4yø/Be%qUpyy}nB ۅHa >ϻO/qM^)'4XXX>{zvg%s^OkJC0PS#71 44w4P/Kp4;0>(H O"=+U`A٨C< .XC: ;` "/I]i5 V'/,Z?ݺ.`YvBYeoQD;'t3; kb ,X-4|WBg?iPPVA|%*ְR԰O%%0ux3wdн{CmtUsny: LVJ'IC+%1?.TU `[/J}EhPQ8~Je%d- TWAjPI)u6yAXﵢkFie2|Z'a!iS-,Q5Mӕ=}#JRY9hS4Pa WA4T\%5,;EzhhGjj` }8W[[[}-B'|&0Z IZu%Z&&drU=[Fo_4^fx(k'''_kĮOIRկ4$ @jx@F9K)T_j r9Bqq?~Ci  "^Q+%NCFQk򿎠+++|O#jk1a!d;iY{Y ]0!ꜜ[r` C̝Ljˋ phhOLAHɸ WJh ӧ OCeÍJ$Om<;Sr,W,?j ]]Y@lmq%.*P Tii QWU4Jo8 Nv ( |Pd|Ǎ'N/T mmmC(;;ՌjNgJhw8z),*,-*x *q22\gBuؼ`{[5"o t{fp83T_p/p\ng<К +˞(ZK K[y@)ˀ fȌ :a759sw&ޗt90Y}f+=.9:lϐOps+T=l. P9uu h{d ]Ot8ΏHi4,AHR?]=n3yX綁oMkaJ$! պ4>~]j iZ-ܼl١~c+{ɒlftSrR}}?77?K zЍKV%mi+7&F}ô$Sbgh\!qkڂǫ]k !,۾}ͬS.;33՚xqFN1M+w W$%''Q!obaEhs2fQΊH 8TĠExFCxVZf$ ))"6d) Q'`,CfA߾ՠ͛73J5 3FRAJRRV~0Ay@DRRFV/oRo2U+JLLܟai|`!RfdR %mٶmKNC2 *lmת[;VyeE;G׾Da\M"wWko55iZK e!C!ДRh #YXH ¶߅O[wFJ[8!aC4Vyߛes ڼɅUh:2*_܎!ˋS㶀aTU!0ձe&"8a2((/Xwqv'I&L[[_A}U"3'2?L{Ic`0k&oTJDMIt/2դLsc8H,XR/$`=ϲ](0LF6e\G00 L א`QYStjl)$[Eh<کyr'Z ޙ6;SW+/b I1 6>]ăd2}m\ ZN044sFX cF{.b@nc/MD CǬ8ܐN$%X}bÐK0([ӡL`A $ڣli˦n^ ޢ.z/M E}XfG(|ԉ2Mق{4(ZS):,9Z1 n,)axBfP+vzu[Ym?D$18̈́D7kO(N] Ľ!0eg%b8u3u^lpIVĐ2o`I118$@>{V0.7geJ,:%\-ʦ-% nfҼ $K~8" {0@ e'#ǀUW>or똿)b(n) ^ }=loVT`<(L`uG9B749*Uܐ|<ɍo*ۺa(UeJr @َ]0yвHp1lPǰm5-_Jh]apտ{uHkX刱?pĠ^JĠ_Ua;90t5B=\njX˲{M^ ,t? CD'ՔOB7%AZ5IJ,,(TXUo8Ʊa/?PJ)E۷O_~t%RIV`pPC,t',f<{Fй*/tW7|T uwS4gǏO.{R{Jxˡ±T~7 #4۰Qlp"֥b&"*up8k( M;NӔRM?xza3B8@hgdЄ64$K,BIENDB`images/icons32-2x.png000064400000052412152213653150010335 0ustar00PNG  IHDRZ"FvPLTELiqppprrrrrrrrrkkk~~~MMMqqq|||eeekkkqqq!!!xxxnnnrrr}}}sss||| qqqooorrrqqqqqqqqqsssrrrrrrrrr}}}^^^}}}rrrpppttt}}}UUU}}}rrrVVV~~~zzzWWW]]]rrr}}}~~~```\\\}}}ddd~~~aaarrrcccSSSeeeuuuTTTdddcccooodddrrr___qqq}}}TTTddd }}}fffoooXXXaaazzzZZZNNNyyy}}}NNNeeedddkkk:::KKKlll~~~DDD???EEExxxsss۾׼нrrr˴ܿɶƲȷ̡yyy^^^```PPPڒ|||MMMjjjݕ~~~\\\:::ooovvvWWWSSS﾿EEEJmtRNS~J +>13%̓ WkL*%4}t\)NϵhGV.:Dڊ4CwPUgq՝wkq~Sd"nvQLIDATx \[םﱍmԮ7I4{I7lMi:t˴3iHBruj%$!$ab f68$Nuf4;JtEf5܋bE+ZъVhE+ZъVhE+ZъVhE+ZъVhE+ZъVhE+ZъVhE+ZъVhE+ZъHT lBnr 5+gcE+Zъj{htWhE+*>e[*{4S`0\6˰7Uza~YK7J(BX` >v;O-55 lYkZ d~p={֞={v xJ ϷјtճKcFAzǞjymg˿UTB>|=ue0$72^{ݦ-klt2L @~n>~{u 8/?ױi[W;|rV;^KC}`+a 8O,'XRpr!Wu:Mi0yKq.Z~>pwnl'd e}VePT^5A YPyWz/&:p[M4\Ǐ >ҁWi/Ζ1Sn"́녗%o_̜_N_IzP;\8aߐ~vK{LX "x I677?n^QvGzy|E%٩] xhl&W@e'|)OMs>o7o/}+ AܸoUQ-;ۮ !0z]. ;z xb(ł7,9eЍSVȪF7$Waryr QX J`rWa_{u hjo^)/7Nq\:y0rbL HP K%a敘/o?/_yJ;ضroq+Zy2O]*dҜSbf u9zRIzScs . NynX3 \SxPlv_%eY*\bo{IY(EqqTj벗LgO% ːZ8- s$7 2jmTT:(*D%H-nt&Oͤ-GGI蛚>Q̢.vZ()#klq^l9k+=,0x^m-{$OFTrۖ\g9o),D" Țz'.XDžJ<ظ٣kÇ#`- AxGBa`d<ݨMy} Nd:Mtߝ 7uL:FgP9\gO98  qrrWo \Q 6KjX(ytз@a cؗ5ly/µsrp1'`MSݭg4Y d/t,\Koz)< Jڷ#>"UTQy'iDzɐ~_T`E}~YU 'v2q>(=uNAKRˡ"s߳߫ zzD\6JƠڟg z6CR,:3)UK P$`zhKtp?WynlQV"Q tW&l^m 3|L*h|twXOXs(6xH:}'Gyg}K 5 ɔI9jA_QoM&ӑȡ1:gi[G,Oo|p)7wYIXڼoSJhtIs,VbPS7jZRހ w Ł{Y8DfSD1Y Oxitݚ0gT_2ΛhllF\֮@I'FDT7/|DsjFZZc;4XkV\ACP7D}}3u-c%cA.^VW{:W&k8i!L"Jhvqh.ͱl?{KoScol\_y%bz>7 RpA^wR-onIzQɠyoyIϭN4&}?- %<nX d< ?&r"^7J$⇮#|e <̀9PK}%HxMY9oˍ]'9ҏ :zveD~?;Y JsP)3:3֢B5 :E.Ovf7XJGP4Q y>c. H=ĄdЯ;JPDeWzMdž)dLC&dˑX4\ƉC} bGFWcC} H"Z@ң*}a#Hd⽑Լ70sM^?iޑ1+6 FQz AFͥv@vv7khu78&Gt"I-^IRU>?z=&Jxv%|==&ѦRdb ^ .0rko.}NI"}:`_y$-5Ғʕή5ɹ%n C%H];=<*LƝ#=tܓ udtDIcb9(MG?u(mB`kޛ9|X L2\י9sftzQ`.7ˮt*UZ aN\z=S1b{u&:݆)ғ掘>*J5z.5lg z{xwsck0^AG/x*r4R(`ji.]uK5͹I *CdͫMzwΝ.  \ͬ'lcF\&Ƈ&'x!XM[11Anjmu.X&w9Vˡ))y88ruab"#XdW$8 tL<[qcCf \fi)fM2CVzh^lr!qt}p=*waʉIƁJ.5DqD褁1b1x$;f$ G^kXHORޛM8߹P;7q88ҼrA ]7cfZ3@[Vߺ afyVmE~Z/w- o{, Kg3gTŮ\7ghu4ӥvF2:1L GqR(Tّ4N4<]&ptN2@[0c2@YPQ{):rq>p}|H ɠ£f6!|hy) J%R9ݶL[9γ뇻 6Ip=;Gz ~;weAfHY_6]wpzoRýjұ#֪ j(q% _!z (p[!,`gS'+"J8951L؏`8@oZ6}nMimb)7uIjc؞E~{"5tXfk8fE2^9 *5;\4d,Ƹ" t& wtc kϽ1YFFnͨL._zRaԨiE vc8oZf۷/3>nϑ~ɠF "T"7F9׃~"Oz1WbV١hQ.. J(|{v>E<(Љ@%3ihK!th> ,zω0)jqԦ1&1IiWmQ3) }lW>EzWk3D>%s9x} k6}*R0@'4&M&j Vxg{m\N49_?0.>M2o9Zݸ%6&9>2W\CO;\779Y"7¬Xn-Z0#C8E  "+85.xHdiSh'lr[qI`1o Hcb@! & 1lA:=~2cSdzYu>MqŤFLBAgp=[} "{&AQu:w(\n9@&%7vd=SoVZ !=nPي+L(+[餈xmgCU, }pJcwCZ7vYus{WK9j@kΤoUR1{8Z0\PjM:i)INl9ɑ3T꙱\q;bf3+U,˖lf`): KTQ"f!_oGݥKepTh^@,CK`h%/:]Ǒq<nAAt989q8r!}l?X:Ñ95 IuΣ(&lzW̯L.h~Uo0 2BdL&ކG<](p J%J̆H܈Nry~fWq?qj&oġQye{Sq1pDo~on_C!!baGx968B„Cą$k$$Ϫ Yopʃ7:bζ7\+oin,$)`RjԽ]EI͘,+Jj\XJcPmOP@.mW4*zVRQj~eY",yD:.2!9ƆyC,Ԅx㉏_ bI_yT(14U_%32`1DV_QA2軙sRk5}7xHcGHfl+fr ÉL/Ar ԝ- qƙ3!CGZP$O}7_K|Ts桹/CF/*fwIoiWZu`Nwp#冘/4%'1!SM:>\zV7oⱅ՘x˥z%p^ -Oڥp%ޞhb`}` ' 02wvTj+Ba׀I= #j=H=ZςW{C3 zļsm_? A?xl@닦Sj.(:;'=5WJ>o8`yl}㇡WTt3s]J}SI &WB펴9Hf)Vu9Dx{'-N9BKD>088p77:$iL2pt!• 1iC:M'G`y0#ґLQ72yp`T2Wmf<_qʽZJ݄éK@_A8ͤ5E2S8sCd^C?3:tFw v p M~DEbiTWE6)H:36#̒#}}^~BvqC-6  N7_#mHZҋWU?6أvؼlؙιK 6\`~E'8 ~л.Ԍ}`nˀ#ed6_Ybj>{L̶md9BPSM~X.M4". 9ٜw54tNFGM>@ZʑΆWi_FGԑ㺋8?tt 7+)Q=V(atF,銏2:S7 cpR\sO&}:L'}h7ޞPI\._鹶_}ե__X6Ũ RQi̓@BA~=l"k}EDa `嶶a( P/)G# ~Px{})809qa,[sDŽ " %i&WRVeH\J;ܬ+ky[s0q9q<q':.un!^KwlsM$NsUZ啊$o{TV܁%tcHj."7iCݤ\96(w|}z-FM!j.~bO6Vo恘w:9_$2N{gx[7"[>lTZ[?l~;yColeܾ[l$ݞ'Ht{`7M6d'MO7JpXefp޸Ep-DS_u0;pm['?< p7ׇA\;Qpm7adp0j8F@AX6DqAt1#FGcm0:\RY P9qgq^8/n%8p4!5Vx}b퓪4&AOb- kOO'O^PǑPߚm0:^;ጶ" G O@a_qrLMѢ7]~&Gm&劐+Vnaa|pW|} g.ȧ4QͳDF>q8Ds=iJF=3 ijw1\fbt>r@ƛ.Rmۚ$Tx&08)`󨁱ap=7r&=T,XA&xXV3ta QLkǕKD8=yǰ8/ s$΄Me`\qL %^4mD&w"k^$$RT Ag}1Tpj3dH=HdCyobV;! _~Y9@d+e\9szz}]&z>Ow@혥|`=MmwHs }Mc`J 8%Eno}?#=,8_omvǶʡTS֡m;ȯ%ٽ*60t231'2|QȚ\hW\/dfb秋=#@w4*QɅGyBMFd yl$jPԏuE]czO):6w$O !MOqXгG+B@ft3/jbPrHq{jmj rdxN7j$X,R˭zE/ɥzI ؜Z2m~iƄŦ\e[%A׍cQ=oGWŀ>O`VTC8:yE6xwI&JAg#AT۰۩༶`}W&a@ Zs6 a2q~ȉji@5WHCqYWWZ鞛A!>7IX0.J:q%ɠ{J\.G4@Oӥ3|_偃% 7x铧 a5JKQsAlTiDܤfEaMx{Ͽ,Vӓ Cy"C| Mz|-/oאOaOֶXƩWٞ0`!%~~rHsYOn['BkIr?qVͷ*Ni.7|G}1ӓ6馑U :,MQ C)T$#&]͍Pz(12REb }2ƿyop+a2c'I|ѰݡQ *W_Elɠdx uju'jn+eRXN 1Ov[" 떚,n F$HHF#?~P+v?x $@Aʑ|9y]@(f\A{pefŔ)@8v/a b;0,!%OS{NSRZ'U׎pE`pM4:};c=s#u;̘;rmUY@Nyޤ5Ky^Ì[KJScLN9 =n`O~@?3ߠ4/lWzC=KHd,=.u7ԖXW[4ˁ"z.o %\RJ>蟛ğFz7,4U2p>Kqʁ>Z_T"HY6ɱs8dQre\ zHY[-v 2 D a\TH\HD-5zbB8J%OKwg?b(~eӕUaǃGA_}XM>˟$z9H5{Z7[hЯQЁIo)rRĊYTW"306K=[cc3a?Xb`䀾jq)'; ) b_0wT%4%Ss~%&UɨsKJsM@_ɴH}V_Bɣ)$hTBqbhm-dv&:n7HFM kk/h>l^$f:^tz=9 1X:LNu^U3`䁾T}lo;c%ׇ m3Oꛞa5H0.xA櫯'`! ש`heo:ݜ#Hf]|eQ7/Y2PU`BFgru /U*!fX 1Baf^4үY8-l[߄Db˕><ρ^,}!P.^"跺R=Kb'r~|6HdL:\wZE:+3LS9 j;bqfOe*Efp %)dɖ1B1C 63kkϕwS>LQL8jja:0@h3W~Pf |@_X:~/&{< ?笕LFTȟ_zny^"6#ϯ 6]o?ڸ!uFSZM!;Ә;BEn GbM;DӅ:7>G'zY6&T$sGmJ=kV-ҼSYf~*t] WҬJ2wNZBƴD^br~Ve⵮@&w)Fۄ5C+F)-dlO*S2ˌ26/e|#<.$aY@z`Abe|Q_:~̠7p. tTe ([F`|H3dp'[z**CojrJ[2믾p{7_yu'`[pze+-x8ˋv+IN%Ә\R 2R`R'g '|y&MxEɠ7ݖYV;ܠfAO~/ɕ{- 4=ZA-Ћ`ќf>ߌcRA@uD.}mk;w|@o^[zu˜ПSpf1`;2g}DW<WK&.O ҠϪxwJ>P.MzVpbxZehTT^ a^DžFHD>sXR ]gp7_x{}x^`#]z8 zbUřI&n]Q-|*LţȦk>`ܪ-# Qכ6v(%.}.4Y[NrЪ F Y}A%FƒA\[sO2tCg߻Ygz jzFƎ˖h !r2'Of1ettLTRJ}O#=@=|8w7ir^,K0\Y5\.3 A"XL!.{ow_3߻?F秴F1ǯW|Sy&xϣ~W?& c~Rg=b'~6?8WEIx,K˙ M94תfRAZA_)noa L&5ԖdG[#pl.Fc 4.]FW"[@ԑ6g(Bz8 5wI̠yRάIzy`@"FPeGOzBJ4}z_za[ %Lz^Jv~3;F u0ї*J崻a>4z3ۦNdWTf5v ~|1BD/%X}|l,A/%G|li&J"$.y@6ϊN@ r ,}Rj1)C(xN>-Y..5nP&8| ɎH)m-3 r!J5e&QxЁf8+'8`0HuU۲/L7~4ؑ6{W_}Лorfb$Bx tjE usļ :N})lzbuGy)+J\f}P=iDt&32r=!*VBm? AkeO-1 &WS?UpʵωZA!#)L8{`] dhLѝt{rZm&4{t΋tܟFr#|e@P/afG`..!YO;;by@@o8ؙ*F*+֥I x+Aο|^dZ׽丛O$a^x; MzpbEc9E#9U!Mj#0?rfMoMztsƤ/' 9?}&_"wddràA$;S'Qe`=}ygI_Jpߗy)=Oq7s8ihohii8 //$Ng X+*p/'J[ ~gnYMV;s'`O(:l;<1<1p9~; A,/.2h4RA)1䂞h ca~Li{\?t'p/yr@+f {ꁵŌά翁sЁ5` ! |eUfWJ|\5$70ǎ^o90~I@_e P~W\gmCc{XaY@I&V_bS 0e -{mW/Xxڥ~N :nƟAO@8 cϻ䟴c.M~<%Ѹ\XDU z ٫z6S@N5V.`9K=pã6\( 3pR(LTe* U2uLj: LiPc`#M;V?t)E"7Nq>;~ ؁ɝ2ʎ:GFflK z\?@^J gCR<,!O)~h#v{P˹@z>cX+ eĵn>=h%@sJ z2x2yc1xdpj'i'p{w.˔Ӥ#/אzTtm٠٣KaJwi,NH8_q?dI2 A?O9ϳb< hu0=ؑƵِo<&-#︮lg*Ͽw`0 4+)ZyD=:m<̖EϮzvynU oO{Aoť zʿduu"!tsT D4N6zYoM&aI"yM䮳g=jaE|^A?%w+oQVhֱ0>ghҋ,|&KUM&V P,G78fݽ>գv8'nyHw>~GXj.ϓA_._(>~_3 HW.@R8_QΛؠ/|y'ZG~* 66u_"/f{`Y  b*huY u>Y@ ` 8v[FXa:nJ+11W&㊅JKzJ->2UmΆӪ18]Јѩ;u+ХMg6?#Um L5=pXes(YIs]9K*2>H߳eWm 2էa7>Lsp)/Xo0r@O78Ʃ7 8o|VoڋL\ +^we_җs8.>{<ȗE[*l8g2,NHtXh'ܭK;Zq~Cz.gCrM/4(̊.yuw:r ]TP'\f+\\׶tuT]?$mسl|Χa/)o{i:̏Az@ bσ wygHU s oԱ+ 2q߸n)9crg,aF0C j-uDV\` !DWoy#}}l"ohiUI J_\oSY`)oܧu8[٨QG"KA_5Gzr@>3_/"ͷ_z~ػ_}gȗp%ş}'/~xf^S}U_ ~v=v鋏|+_|ַ>誫)w=/sabrKI/s֒@1ߤs?=x`!ß- Џ ;67%}nuBOUĹERy=\#n/ϾI?|Jf=pC߱/C?}H_$UhEK13rXxݔp:{/ݺd;̜#^ qMپC2#.Ѩ7`(#uL/~ע"yڲj}:68>KDOdT~JzȰW&;tS}ҭKЗ #_"8UWOfwg??=Wr}IX2k]  H)P@h ) %ppPxdYAK` CC:Dߐ{`xw? Smy]kϾu/CWqĽ<ЭVrSÙ?T~ajU72,jdpŇbd;ӫUL7rqvoFL6MVdePkklqYFz=&њ^Ͽ$I_,uajר,z &Ľ=`-d:@/~(l&5gwK3ꔬG<KTƨSim۟]a ;ӥ$P>|LIENDB`images/marker.png000064400000000550152213653150010003 0ustar00PNG  IHDRdq/IDAT+qzzB$Vf$RppM.njR;-4r$nB]W&=OOpҿ( oQ`9T)n1Tan 'VvX9-ךV,ժZ闇.jJg(.uUivש<$0)w\YRy#O:R2kOlnjd>{ S}h@&Q6iFi'B<Y!0(qwFIENDB`images/resize.gif000064400000000100152213653150007773 0ustar00GIF89a !, @ajONrѦ9nY;images/sort-2x.gif000064400000000141152213653150010015 0ustar00GIF89a%/2$.1#-0!,@&H20ʨy BXXbل–ȼ$;images/align-center.png000064400000001042152213653150011067 0ustar00PNG  IHDR8<IDAT(RNAKhH eKD>Hmw4MvAJ_uݙ˙֏&wf{!D3FW78%;J! gcxTwFwk떌W^!߶V.~ H_ ? 꿆ʢ0   239927Xo14/- A?FIVZ RWos%)<6N^K]  # #()@KNZnitzUtRNS "*/58:=AgibIDATc`x!47?fq(. Fڄ~Uڮxʶv¬LYRrG|W)"^j0{<܅WP3\ԍ|\F` OH'f "Aݒ۰V =IQi-1԰B h*IENDB`images/wheel.png000064400000013637152213653150007640 0ustar00PNG  IHDRUPLTELiqN&7[;!#N$4, ( E h h$<(s[i ^ Ts}qbbU̼ 6 bK'B|2mU0y\^F67"#P?y(kdѸt kh[+^"DS6rxPn@,H}d?6SJ[c4FtRNSGu\ UN:.obg@63*&z j}5 6)N$ZTww:߂(kQ{T=R6ʐ7Œ{wWٺJLcj頳[[rڷk3IDATx[LgZa;J[UC]% .^Wj0Ývo@ АL  + !1%&$DKy32 m" M$3;/+++W8(9'OEoXܽ[N,"*0tuuZ@`l {ԱdgUgzzo=ܥ@r$48 ix=8BѼ1ك.) }}1H{4E社hveiVKp#]! 0ygI 4gr# .1Yg!K,#/"W=#B S}`@r&@!0Kt]v, %׺it0vqUxTdZ[77t@E{/UG,;Pm4FaK]Wy|@n&1Jƅ5əy-_Ĵ5L{8rϵT"f.VD .׷3AQw!>7ڬ033ӈ@îaRKk}AeQnDmKZt^6O{w]Y:%)”#c[̈6H+a%I^*yT7A@ /'S:6GBarr25(#ԋ"Pj!+"N=H00h~@HEꊼw霼,B5~ qj&AQO_Z2P\Tׄz"/snVZf\W MfZIܯT `h޾K`5!:pa.E!g(^-wEDJZZZb;3`$7v&c%RY(! }wq h 5q`ngnxS6ņ-H.Df J`2$#I\|coi*khhnPfD5]g%=&[$hn̶4T!rɱ8ЇyUh8`otjnhJb PrnJ-K"ީVϑ(n]J7J[EH܎Qe:!ȭū0k-j@V(S iiE Ip+xOC(noh>/]fCOšX A (ӧ!EDA*,I_lY8XR NZ Ǩ ,ۺLEk8$2T$p@Xz@%ambBыa2U@ " :u~G2ʲMմ @oNkq=&.n:څvQj`Ƞlk  ؄CpQ zjP!?CGP2 )\CCLL_:8!7}β'#ׂ%!ȀĪ0 A %PqA0 헌|d!ۀUz k*qzn_;TD5H֊tavpWr4>0kvڵg:[ ̔Mja|X#b͛7t M8 7XZ1 j6mڴBD%b9+Th#wkӱXLTS]X5P&kD;z2* ]+Q4J{dtFRtvvtz#a P@aWWgu.ݸ;pVUP&VpXe`y` =T Uhܿuq###WwP{4T;0`2 Db8>Oeӎ{?(S0 ]D"B MuFm466vG'}xϗ8ˡR# 3N^ z{(;h䐣K ߦBGibE p׎~(<FN.C(Vl4!Mx.3g3 YR*Bg8?Hю_|@ȵE$ ;v옝Pk( !i6C%?o ! ===,ٱ:v PlBN&#C y 8Ga Ʉ΃ '"0x&t}pi8{5. UR˃(GfWQ̰ po0@PC+ gˊda2!}@^~Y\j4 !nDf BğuD<@p#2-o8!1.lS_Ci<}/ !ÑH$fh;998@bA ;@Y9!a&@lAqH :(*R<,} dr*J"$&>1>lgs` 3h T*Px`.-#+yHwi&S(R!4( #$[((oR` ?"`r2S۲H+ `}fH(K}"'zHx UQA̾!jr Uy wzr` SALS} v߅\UKf/lII"`ӯG(\j4MN@)Q ߿Hkk#8kckLA! b&K=DT @  wo >R53t b)$y4|ry A &qx4Y > 5%<6%$lZYV3;PGQ*=SQIE3&D52H|=1$1=9%MMLG,RI4:PvjAq8/bSN##@n~w`T+I"IIfWH==z':Q݁z8"!Yz?ܭw]mxřM7Laǩ̭Qr{4H2V\kΕڟO^>>?uRj{OOFFGaC^”|Q~?pij¼ʰIJ+kۑ˟f؂Gٓvñpwڛ6]qhIf]Ǔp߹sN`u/ξ`|JN]ZdbxCbtRNS>* 3 OA*lK?=J8_q(,WJµŹh\_ܵIcɮxtmZ+IDATx{PSW/(:@x  ped nus ã"T^)!&JE^<EEjΞ{97Ns?n2ܓsw~ɀa femկ_''ٖmn6ylZFSEr/*^6~""TDb.Ѣag P ̴4L,0Lquum Х:k#P L𷴙B7r-?ŃO|ZlD"s" ]u>E0zi,=p9YX܏*goirC6պ,-O)O  r=vCZEt!a1ðTA"QHM]$;so/sAKl~EFm!{ts[Z@T(+fg-|thZ 4;9G^:Fm6XAԓ"Ht3RTwEK>vVsrR}4LOF7LOOGGOOjFz ͙p,` ioT٠Xxa})?Ԛa|Ksɓ8yrgxQ Hޞ٢Za r|BK`zeOGiɪdhhD{ akIcD\yaOQx(|K7BFIr^EHHp.vavVXtOy &3 wv4eŲJl(ÓcKloWJGT4 W?B|sph -9҆2U^yd)«[E###"\ ~rRX ZOx %IR|5 nU+B,w,S[p .-hvTbc,PC8h 7*Wu8VDp^pF79##o JSZjAb4|wT𝤸ؕoESyֿ^DhήZj٘!?aOIX{CTr*ıw%#4\&L2Rm,MM*$h49Iw,=ӠP3']3;86r??9V Xx΢QL_~} DoAal ,7l> [Ӓew՜:Sb|ׁ٫2RDf+(g(Õ3:pU]9jR;a5n7gdZdJWu`ݎehoddFI>y⫾骕̒EK[^3q'I[1lo˶{c/ qf!HАeiiI>=7@}'W}Hů 475VP1x^KB֮Ȑe#&lR݅+K;ˎH]6ǙE|j[hf-5a>:c{邏?}lY`%4U,^9xHҐ*]kt K4}{ࠥazz4j7Yz ;C+ScȲԕЏŃ򳩉 qˠ 5D5+ Qh;iG+D1()ɄhpͨCȾ}GQl♱&4?b9Q ]2c'b\@E$H׳ţG%eDvpi ؽOO: :ف:@F@` iqA/ U= {P>?tv͚#k(HK<;]Cpd>-qomAZHO##q >6UPw' OI6 X4qHvG1f @`Zj`|jgZ@!wcDA,Ǫn, ؊CklZF8ngպuȇxY`B C`ŗC # Y/A|nƾC. ;#%}ьRrGsy]\g#=x1E`/Rzߋ*pIc =`ESF!*QALc-#܉.4s[/eƴ'%( 'uF^Ƀвͤ(CQ6@̨-%T 7jKU  $~<>cIP`Ef⨡mVHW]yn8#zK6|-TT,k$ n ))&ܯԥ!AD822M`6q=7:Su CimAƠiS)rfPY2pM裝XbI(0B5D D+V4y05nLLAk@5HMc֠' 󣘃e{K>^[Vzi4FdG7=f1#i^se*c-u]yVLrzAKvkHnp {|͏ Ns0 'iaqZhyq鄡:hԼRrfk6( 0!לi !9%,Va0بS.jt ; Cؾ5bov B~41PQ]Ҟ\~ikHlc+C!<[`& 0@g00Ά1׮VS糜ROIBq <)? ?VQ5 ht0l6h1Ppn9C''sp:{vy`0 $BR:d`Ϛ&#:'޽jF+ 3ȏ|/"q$= i=G0xN9gUaY8=`ck770Wf\`P w<U!ˠ@衎B*Ո$QP_+l IdJ!!PQ(äFCH4ΔLdޔKzA( 7?(ťON_ )/gYw~?Wʷ|km*q6@ua0j$9G)9,}u;?L'k%B֓Δ>~vz R)pJR+튬 J$rJEVNo"7Z ֛!.J)̿ÇR )q=(ix8|1hvQfb:+t R~mûN]29?uB1>^]}:l2H6&ON^y |1r?{7EHpPx{^{^{ׯV: IENDB`images/menu-2x.png000064400000030600152213653150010014 0ustar00PNG  IHDR ;wPLTELiq}~ !;=9~~~omp$@J}yuda^___omj}{{T[p~ssslfgYN'ENE*>B@TAaEXxnO[[|||[Z[WSC.@NjQ8(@LgZYU1ris1BXEWVnqqq? wtPmIY3F0j1$heV򀀀{YیċuoKrrr߱䷹%.J񣣣𐐐[0Gм?*,uutɇyyxe^=ܬêXΦ+o,cx[ *TPB *TPB *TPB *TPB *TPB=LofrjQ[]m,RjeGq_xs{p9*t i ^q 1oSX,׉dٷ r"L [An ``ǍUo^ii^DkDpDF UEsz'[{i XuZ;A /_ 2;w*V|s󽉾o;ȷJN ꪰIYml2nYk9䏒k6nn\JW <#-xwtg^-*ʛLw>Y t0/TLcc/0o!|f&v1 @$` _o.! rKLt#;~1I 4K,e&a<^Ax:U ܹ}m?5s;2T 9.ܼhsǫ0?ആBe?ߕ񢺺 2˟cL8@-4w||@bVa̮q"~\(nkk|dܨP(FBa4{9z?yy9:w?>w'eajLC1Rՠ/7]l,\ }ޭg`\KKKYԾTjOgI_'D1R?;*":\!`AFåJkkRVZ ҮSz ?5 -6jJŢQ5C ݷ!/C/iLC1\°>Ti-cYނq(nOܶbȴs8 f3'v1P{J3QG?߳ 8#CH LܭWgm19 MOOF5pXaVZxjuZ Vt!s۠GwY1ha[C ; 1E9"ԩ bn23RCײCYYYMM9,kێg5enTjJ¾3+0 G zJSzlr=k:Ģa;!O1>|`n'0ʞ OdJ<1_+ 8N<^Sj\t C#ˊ5||,`` vᘃbʳ,-݂L(Wlnؾ};) Gz;Zm2I11 D˧ꜛ ZLlO AOihquXӑ1'&v ѱN`d01j,1 2x%V=Gz.q .zQ#Ā`W MitG.b 96p9`u0!;$`ڵj_IG[-WLL`C3f/,vN] WѰ%p}B 㿙{H|=Nf8&I&3!`bddd,^o0P0pOUyQ<ú,A@dThARhp!̳lg䜝QD0qHCP6reR sƍkL 0s)$i۶K`I@n\$H0S` {J)q ,{z1vM0)O ChX6o r(r- zJ]KC0W((5De9}¼ a(객]  X@ /4 öRQgp­RL=Pg ^i5tGEe4{J UA< `&Z|}''b!b bm*֡!`{] [0 PJMZbP7@pPuU=2VʹAp>V* srs0`BlR P昩rD]BP4e  0WuFC]s3SKO~*)?|{Dt .1\[W1 F[Fa,xATXJV~7Y:t-jZjwux]@V nG4wX bqc U_\\B{2x)s@f#aj {0$ozp"͏!*ퟚ/B8Yj{=t:S+6.+/…gP'U@X#O;( 膓'!W k \@c$BD8c0J4ϩwuY5hi| Cwt33ҊsSJ9v1@R@m2)t:xaCQџ~<$39H6na (m߳es*0lJC 2XP8"ݎ0I5|M\?t@ѡ@ FcYJX2$ޯlwXݐ .܂ib zEHܛ\Lˏ|H>V sKN2H&e={g×E%=q2%09M"y ق'&wq` Xv#BL69B OVe0$ dG2FN@$2(#dha\~2샴ctWUU5fo— BĔ c^4d(عyNb,] tt!L9g]SBiҪdHd e(Pd#'0zaB6VjRqzJn&<,C^h&8;G#x ȀCC<+-n _ըpB&Naoˆ&yb'.ϱה̎ ^)QGWO4DcP.ʐ֖eS(! X6  BtNoYN 2lW J+4ѪpAH2 2ڪjzIk.tW"fN^90A E'J.C9p@f$@Yt+7ީ۷% lCIa췪x_2ypkJ&&̨nNt"-qҜńi-3/ KYw~DCc⾛wABVDU(VǢ¢[<0BP( BP( BP( BP( BP( BP(VvzmоOnt4eeܪT.v>/3^0 pklsglH'/VuP{9m??yjv۬AZV,֏E}镽3c3Y;eUl'nhY/ ,_X-xe؅DP71'ݝϻeD NE6j6u:b kg Y°nbϫf~O]zNrYggl2.;Se]`ٗPkinm _q,[M,k԰}\ܳ3n%{Gs^lC0%4잽jayAi~$&R c=1,+wo\o,ntfuT ɐP͆J:z! 8ql۲vZ7vuWH"_ީ\HdNiҨpXؐ.1GƌM/7 Ca~I=[sg~eʞi+ ćbڶʀ]'E\kZ TaE2(;EIޮ(CTQc6 C~M%ղri{Ue658),2:HbkU\X. Qi34tsn^S;3-kj4&;*Z26T|@S! hNZSj肕-S8"܆GF29LXED7y o Ήmس!/}Wq`J:)^ YNlxYiگxY"S{'eП\f#~,ȅ  ޡJ2t,n㢇:t[=0+dx_J`WBy 7]Xσ6exHǏ^ε7W@$Iu&ߍ4!ϓ_JYNa2TtOm ia^Va*VƫZwZI32' 2lgbAAFvd S(QrcYc=Ԕ%5+v+dgߪI0 aciBxT5M.}1 {'9jqH~͕1|fOx|JUYj$`A g)?9YGXy†8$õ|/P3YU& 28}0qC%A['g @ dX|D 8J5%%ᮝUv 5 ``Eެv%8# <삆R24el +Q4b Ir")N ע_}_+udǂ 3 *i*&:$2ãϗgA (>ǚkȐָQ9&8d#W9"GX3U;[O0MIŮ ᏶5d\@dKuޯn  6|˗Wa5$%a6$*"Q(zb{a;uliHZHǀ{E$2^gP( NmBt^ɤ%MSjQ+'cȼ[MMpL lbOLX`g/[[naXB1qeFF#3c}lOFhxƕ-Z>x! x80 bYNWpZHP`Fw;4kJ*P>0v#VetX0п,`k$Y tF4J T,IBCOFlaHdR 7{ ́ˤoK1Hf>7/d L#zvۙNN }~bąkk΢$MY:0ؠ(UP@3UF` 2j Ç֔=X`00A7JU& Un) yVjz_dzG`8F8"i&I`s̑@Ԉ5)nb{N9 so`0=ݬX``8hߗe~"v{z04{BQM =t\{ɤ+0 !"K.H@$k1ahtm =Y K0XQCs3N rp ^yΛzNIj}34nmtpLx㻋$;4m9 bFw{RzwC}ԛN~n^+"ZUTɪmEhKRD^-M3X04:,^Ѱ/ D9Na =f 꺴ZJX04z$ Bt"fWf/ˍ&U迴 CHM12٧|_b̴ +3'{r L曯Jca0G +L/UNT$?MS }3MOMPP< /dđQOǜQ'-*s06D/Uz?^e0J8ڿ1Wt{=yJΌ. e٘ʠM,O;U iݸ@@aKebXLECTN>:Sd,^͓r}~`2)dȠtNbJ[^atݰ; ñ z}7쌻by/^1y!_שdtbˀ\՟=,7 kMy*ms$2(B%NH7 *(Dv3^fZLEpŁ@ӫlYx\}Lm%vFW;I\ ƌ 34zrY܌l%eC?Β20V9Ar VcCO2꺎QDMu=UL^X$LFGNǖ}o B$uS[Mq]9¶iBÕ=#ɰKbLAe- images/about-header-credits.webp000064400000120000152213653150012657 0ustar00RIFFWEBPVP8X WALPHm8kj3"&@s3p,p7cZmvvnXm6ʶm۶mٶmQ}3[ ɶЁ !(wr~ sֵ-r \حH֋{]/Av\hsZ:o[mZiiah[ʐr޷(nK-;-7-<-7dR.K*ZDʅT3ovrr#HtZ1h̅0-t;ZnI%;ާ1-0Zb\>\T*ku-7)g=P }*d r]3r BXL\Ch!iH9\e5Zkw -w^6RN)W7쵿@˝{m/hrNGY/rS -w^ Z![V$GYrᄥb/Zn)~Rڟ@]Cʅ@ygyZn`R.qR.cjmE>& )<U5A˵ޅg/rz@] T$\=hRr#b>"\$ܥh'r30zj-')g]>Héb\]hh|H1d-mZB2\o,܉n-BY/`ƝTo ZQܣ\ot!قp-w))睆yQۃhYHH1,-7Z\\ī|՚x-wU.Z?'FD4grևs}g%"^b'텿R|җ#<ĉ%icnz5mRmA7/5Uw[ղ36OFrA`=mnTP8x۹0  ^kߣ9mzt(Oz-yyU=ԫ"qMpFh]M^ɺGo D7π7$!/ 6 a2Յι&ZGYS{*jo|Kl\zrjX[oP:}0EoF+vH< bkq:2])VP8 **X>1C!Xt |h4,1 -Y?34?*d>e??*O6rnQcGoO?71}kM?W/C?;o^?'A?y[=j{x??o{n@hU OӾ*~?oOpA?y6{'\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu<ﭓY}lr;dy['\:w,Ngu< 4i<c#FѦ:4i<c#FѦ:4i<c#FѦ:4i<c#FѦ:4i<c#FѦ:4i<c#FѦ:4P`w vٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lU [`IZ@/˽J|=jC.Nčut\> ,Ngu<ﭓY}lr;dy['\:w,NgC݌*;|p٘ 9 HV} SiMк֥\^1%/+OP .r_5j[(4i<c#FѦ:4i<c#FѦ:4i<c#FѦ:4i<c#FѦ:ʥD2rYRyEvoqeAhPy4TV+\BP)v?3ۗP9@;k&L8-{OĩEz:j6ϒ2j⍰1OyJXp)߸z߱mBʟQ8Мy6FU D#6zc!=/K:ӌ7MdBԜ*D5\c'z9 g4EȵE~ꏨixӒ xyE+*PlivD2\߻V4F@m=>%cj ٭D}xYFMK3:w,Ngu<ﭓY}lr;dy['Vn*+W S|g5VxMjg6 UiNNQ{tg~ɫ`FrpGD66_ ϺO-\x>Pi޼f n*-i?y"heDMzQ]Q;€W-%(ݶZ? ubj6C&}>a :w,Ngu<ﭓY}lr;dy['\E&vq !V{.xh&v>-M2 )()vه\mOfQ~y0O,ȭU]rdf1RGNs,hǡ'V>* *u1.*޽{s rJg,2)ň`A%/@m,ch /dG['\:w,Ngu<ﭓY}lr;dv{Pp?*lqF]P.=/h,K-pJFCRz-_o11{{mSk)iؗ -ae/ռbL,^7JO Ʌ RxMkL.n'X~Yo5k BJV4` |鄚 S%w,Ngu<ﭓY}lr;dy['\:⍅8f%f**k+frVLXε'_4T8FY_ ŝ@,kƄ% tj*;`jt9U3 u8`\Χ:jzhW'h.[x蛇NXEDv5)\Qg@ ++EPOM{#f;4c{dy['\:w,Ngu<ﭓY}ll[dQ_)#h^4Bi(poc̯D'՜tA?i7 s ssߏ)a#JiyCnrwsq~uHm4xZEuWu +zMSB$4p)KJlh>!E`4@틉tPd_<0 UR70xo+j<0m^:w,Ngu<ﭓY}lr;dy['VrT8mQ=M`ٞaU㥨9CȰJ {IƂ^iBF\l0*f*}dZR9`<ɫ7=* ~K鑖Ft LmF[ b/$)wANO!8ފ\{ ڿvifN 6}lr;dy['\:w,Ngu<ﭓxd n2z6' (six=O"3Iy s0p AD77R ^ߪ kXHse%>;%Rڪ,n:>"]}6YkY鉙`77[bf|'.,fM3O#!@{ܹ)>}>A(a;_-4e?ntm)v[Xu3q ~KKL6|XlPaZ^䁪hHٞ'D0a,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,Ka,KOjCE~Ȗę_B9j!dҟVEYn%\[{Az"8,M|y|?+9R0zv6fS=ÊYJ%̔'S }tByT!<_|*~]z/?.O=` D'KOˢX%§ SlBQ91ڢKhˋ+RǷ8C#S7bwI`͟RX_ &lDZ.JnW" A77Ȏ"j@ߛ|"5}dk#_FO~Y>5}dk#_FO~Y>5}dk#_FO~Y>5}dk#_FO~Y>5}dk#_FO~Y>5}dk#_FO~Y>5}dk#_D D@SXM2'x=ZSn񮻍K,1cQυߐKt`fٵL0ðAn~O5 G,bV \ɀ⹘N41d"anDsZqXaX$wˬs5^޶`<z Z4o¿+Jv8y~-% fOs"?1jg7ɟts(Xe%x] $%PJTHKaw+9B)+W=Q!,rRW߰zBX ˿a\DI^?~¹ c,2.s(Xe%x] $%PJTHKaw+9B)+W=Q!,rRW߰zBX 31ѓ"^VWfc=[?áSgophaFb u|OFO ]O%`RUlb<~jWoڿѬr:Vk^/sv:${&f MoNU,ۓ%')Rs tI< ~F\2u\~N_a!Ÿb}K; t#+K؏$(/+6~dg{DG"?gʠ%㬵 T}3r ]!]Soj8y.0iR[zƪs-aB.}܃3>Hgn,#TڎKTޱXPKc7 b۰K6(Ej2-R3;Xt9v5MJ;m̵ T}3r ]!]Soj8y.0iR[ztuTd >jvٞ?&u%"=pyq_ZV"`u[y {;J6*viCԖ:̠e6K! ~ saK0Bu$ r RG.6ᐖ*:,҇ *66F]' ̘ܳRf? )ϸ@ӤZ~p6)@9]>eie;.m= -.X4/;)^8,hTl?4%8 _Qͯ nbы1wyj{Q@X:t'So1 j9,j -s&\SE ,]XFxFc0Ⴭpd)09M.(,܉Gv $&fYJ93=}3ޚTz7W=OM0oI@9_.-MFT-Τ9-yG%EX2*C&SYTVWxã} ҽ.i@ϺJ1ܙ@*1B8/juSX @:8"c[9`{nV{2#f@CtI"@:U_I h|Kޓ4]gp~^'K腭a@֞W(<&h:uRbPG*~udrQC,? DZGKIY^*z擟ub`V9Qϝ)`$%`F6cBXxÊYFɄ0pKe5?bݥ/ /}>֏c4ߍbҁÀ^2r)H*F`?^?v??+X;GRtkDPJ7 1SPÈ]M8AbEF'c8p( $.w BMՐOʹ)9ظW Ao6ʛe'ܪzYƍGuV%F|wM&̔HU*`8ɳkڈXRF1Y]Xz|u" cmjڠ5͛h t:X"#ak͙zRafOD+fɍ ^H|/[ݴ >xT_0x7m9$B`^ H_T0kYi$kxs:8QA\Ƶ\Gh{&Jֵ3/F V/vKY S}6lMDhIB:)u2C~)u!תwsLu+/.lV^\+yجW󳭱Yypg[b_ζe¾7m˅|o;: vuw7Nҁj7~O$PZiHYFdBQE]ތX+8xE8 CщZ-.?  hyJ%~@|8KA}ZA! UX'"pGBʰf g<Bs~M9ԡ~'wWGhFZIێU-3cz}=Bycl ^۩[Z#@^,@v'*_ٺ)^bAQ+@ NF:BUƶЬV^\+yء.GބWH@|^Qs`9tS_OEpsx3st Vsƽ%̚%#BŻUNIVDfop 8CƔΩWOl6a tegM:S2 :gZ^@W^E+kl@*U*':{j*PybbθZ㴷Z& ktk8J1>n(fL j3re+ J%jteԽ+Ծ;jC `= C:OVJ_ mr5m]d`@hO֖F|CdOe8? %nsTG]8"hU@|r Ϊ}ϭWq*+S-1&X@ 81t.^s|r)\}h#^}oszxU*L<=c0 ->op(1C\v|ѨJbfeGǫ`j.1(1;o`.\#M>7 {i6D@t*.zuNǜwȋ\ҬBlj± "ca  q.7CVNNދ Db]o ŧ@!w-\t Isΐ0IS5)ZP[p[ ,&)v hё5|t@[P yUO8M BZؗn=.d"=I3?؛4hÏ%x=-*_fkT|2Td"h3<lݜuH2VL60Qު%&}#6H@fb6ܚ9Ses$Ҋ1s,%xg2g<&$/)jf߿' !_-Q[~-wK )pk"57ц25t59'vH"yT :ڛvoO{߱24h::^\]ɜ&< 'j^<5`c 7nkII=&a †4= =YT>Mp,umĦk~Gafo ϳjAEH ɻ{hohL/W [=wAZ ~/dCD(3bjZZ/_E05/Ddk+^bLN#Z6=g6y&jTJ*@PQCf3-Sr)]nb<Г%_hWI|A:xEm̅[/dh[~K” *g-PK ],W;$(IX;AHr$@n ndńM)qQ.XaCbVÏ3?ɗ饁lĬg#PCN9J>ߖ |~]󼙽)E\cs92JxҰP8>CWdȉ1Vb ]͖2rFc82*GK&PI P ^,-%i=bO _6 ^-AH12.$YGWM!0E>ԩnPB+L<؊1Ͱ E"'F3eqPWe%~&;J98L3 5mk\r~&JRcn%(<jK@CMZ* Ɓ=~X aG".Vԑnf99=B;@(Di}O @ubRWko1.B-~Jw e9r,+Eay7m"R{^@,YTߢBM9)Q1ʇ TǻʹfcGbBvb WURh@Y(Q[UZ2oNj!8$QAS*t:4rΦHdN a+B@>9Y5Q:Hi_mci[=o4$lm{[<#F[YE&^n2\؟Tg %c34Po9LS'5Ʀ]>ugr, !+ʿ+yc Cp8QX{@OŸW&dZ 31:ԦTP}:T]!'`% OSqJ VP=PTc 9?U\ XN2EvJe/w-w20z=+؞Hú>dRc&-ȏxgtFe]3Mo՜1(KBҷǩYO~lMN.v"dO_ ˈH8ц|r}oRS'4~U t}UR5C5TT5C?HTpG}σrp((vpI-.?0JQcP*„e‘4Lݫi:'^Iصh\Sp"~?}TPOy56NJ' }X!eΏny''Q{7}~V;`6b+u}d`F#)Ȳ2姓`TP6. ,DӁ٤Fye|T9>HkJ{8c;xW`qvN`R{$} ~OJTR屏Ц,nk_+7i9H)_(cסK\V]/6l?D쌘#_ʔڔC tr}% &5XF;.-A|e?"smR^TMwgrtJb.Tubn/¾KI96[#}'|F@披gqz5S?N)Lg'Xd$uNʡ9GFQN<7>(/WcRI#B}c/LbO64 vG1˜2en5PPqikHQ[H$J&b][$yć$G(4,֑ X@&6ˑO aB<l'2AiBƨ %ntPq u]!@ k%WhFLn/yi*mk̆b6vwo!ܬU;'8\Zʅqhʗ` $KaE!K: . /P~6NHD>d W <~JN3ïzDX w{.l}@K, rzc Rqs%N%a,ЛX7tBCT:*+ o|sͱ|ʊ,̺}bT :G@="OME*ZU 9`VpM8 9't^TZ,<ˁ"zb'+{6xCcΫ!p?$ 3UvkzR kV4n}|!#G#yso՜i G=q( ޛYBBDed$?b{>;F~vxD3CA6"!e|  FRV#/?ьx"a7@0PwQ{+#U6UYޑCm,}vӑTS.hz?bcO} _>-*/Lˢ/.e/Ċf£`v_dUfΐ/?[l̕^oRrRnMqbeSZ3G[?X@ {=hπauQKi>R˼O2h#-\P/:ӜBu^p+M.D7/Z>?-n,yv=϶S4YVa$h:{,1f FUeʼnV,{gؿ2FN^} Ww2 "s[3ׄ׸-nBSx15Td ~,Y=8k;(iD24M¶0UAܼ&GqʹHAPaMC8=55>Q<_q\&VCvhbɉ TO!yC<^xv0 J}2ET&eטm{ۍ ސ `ji0֟]OQ:T)Sħ!3A" :O 2$VjT;Կ:#MmWoZq7mʒ;1I)8㧬"Ϧ`5M߈R~3rb{.g_Oا~\ ߼z'q;p 1M+f!C x]b\x2j58 Sb B_9U+*nj&c;j7S*BSVWyŃ2@cf^Gz_|M8>YHyxF~;>Xy$5IZ| YrL!seWd{_Jxr"t+N`i<Pe2}CY0uuZҸi4,qpqpܖ+G+rfp|Ŵet Q 2O !J+2:{w9\Fw5Sg% C!Է\.EGٷ~ ]!C*Yj%@-ls )ҳH.7KL+-ZHQ> =,]HH.\7 Nv,e{~w. htcFfޞ:Y8!VC+|`K? \LA/MB擠 GbI:羴MZ!_vWzaS0FQ !%S5j]llu˜ԨL6(Ҝ nufd TFejA_Q)8_;|t^O+h17~P)fHC "i;N'Y{R v uk}0$DSnXP(%#ag ~$r;훰\{Ktɟ^|ô$3F.\\Ss 6bu bLJo\zٞ`O#FF$H2˿~u ˽(o DeBͥt|oP,WZOkPȬ35A~lQ7ЉRwŻ-#kOo&N01|T8^fkE>u5qAr`)ZSA6:iA)%p޻3N6[>@Tvr5~d=%ISE aEQ-cQt; hc وeX"vGȗE7 Jt *.]!QK"en='Q5g-?+/XFӑ׿ X$BkE[P)lX&WJRol a^-LBRGxOH)@֠"TkiblPb&စ [!q "XZhgCn<"Y #i=O#Cx$=4l݇St"<OA96$py/3;9*$IU7^P[j)tyS0ۖN@{2;fݞnMɌe}=Z/y; zB^$ e7szPqT0=,-EU8~æ6pa;e7 ʊQ7߁h>BD.hS]Q[|{a\F(\Z ]nhTS@HWgCfUę1y]Z֯ۃ 5Jbf-w[v4h>yF"5?:,[{yqV,X+JTB,Y hTәl p6G bpz5 ٙhJ-&=ͿqreH3y< Wj b:,朗O?{! @x1Ѕ"~87w/t2̴"k;T3ݱ CܜjnPrViyaOSRvC@ ϕ,Q}b+)pWv $rr#py*89sNgta):@0xFolo`lFwp Kشش|q|u .!d5߅SС ([,.nI+\< * f!~ 50Nbj3b6%tpiT'- Q(X7gGk}ݛ|}rI/ŰB94fReAِ5.kQ(ۣq -go0\'\xޒݹb{}&ׅFb:OU.ࠇW詻#/xl!2HYzpŬ}{h8nDl/R/vn!%V%_]"7C&[;RӍGT>֚"z4iC-a: r% 5>UD V.K9c8:Y%W#1Aq>ՌǶ2*wLL R8%Ozx/Av8qӳ:@l0/ W|+~00+.wJb[3p邉,׳q=a75Bw&C-ƶ'Oƙa?[Q"9f_fbJcڋNlט&sOƄukSŊSvpT·@:ak[Kh[%9'[30agf_xQJ/03Ցc=i,*NT[qg֚^zoӳ ; n,es 0Jpr/ˋ3MYxrm\v{l9jwq7#.;%mYrqۈ6R\GԂLlf;Z]0vs bY@bb~;&ڇ(j( @$ gQuAL)_i'.bqjZn#6L֡u&],s*rzf=>y .:'YdiDkHoftFm 3j_+g:V ۸=crdQOJo"]KJoc^P5f3\K8ʿ iLZͩpn$=UU(UHbZ'xϑ@DSe} b0 9hy[ΦVP5Ec@*%`KU*? LMxe9=wJ+h\xHYT@U [?Go˭ΗI϶P,b_qhYQwvY\Ճc._ErUx/6Sm+!xSҨC`-a!̎iH7Lm]<'mբx@y&+# x\ kX[9x$9ǙL`[!I:|ɦIdV"+}8y xQh TZj区oRE$_߲0@W=Fgs> a!}&+QMLYfeQޡiz`l>MOj6k SP~*5 9#aʰV>Ҥ^UpTqǸ% (oatl~ʒqb4~۫L&qsv[+b'~I ZmkTW|󃪈B/Sۤ*,$J'\~2"0&Kbzؤ2!0d' لtJk|l-,T;lK >`:گTp׻uꔹE xR/zV&*A "@a4#s5k35,C83kG|&> 髂jq^,漙buqg9_-DE5ͭ[9CJw"[ J8x~?w2}7iDPre}E[OP$>;da. aaU٩X4ts L(Yqa(~S}whIWJ:u)DCW[ɴ$ s@)A( \WRF 7Bo6|{Rޙc}wS`>fŘ$ڍ(ὑW5 ZeA2u;`y:KGdP YR3] bR܇/zx?NKTuą8:GV,M,mLG/LM\ʱ7Ikz&sR+2MŃ5c"iyS,@U5Np#) Ǽ@Kۓ929CnՕwh'xg\,|:@.&OQHZ^&gdOj #M@=OǀMckiڤSeE8SU#V͆$F+Iis&UXdIM.,UI+08>ZiZOJ+ &E4?*ljή*v8,z J Iϋ-JX=tlA3Hlkc̴3N=Dz0|3t,ma6Wa`.Bj#d/8Nao&fO\yX}c0f`z+-bJ?x$ȇBk̃n6׉TP: =Ny sU(т-:WG utZrƈloIm-}U[f(AXĜu/A4Q|UfXcx3D؆AiĿKn9e Djf-['"@ܲ~ 5j # 2ЖAwKƏ@d;t}#> 0Eb$9pC*5WfRGT޹٢5!j aX3;QTqx9C Eͨ"~uAUĺJ ]C(:. gRQEþÂ)LԬz]pHSF#9yWybRKVjPIsf߲*{I9: &67m =ˏbedr:Ax7"m!jp|vziilt`W~[m fDKs"4. ߿ 6  _CDӌs3^XNzbHlC]#Fb52x;2[$$91h%J֬bWQq-JY}=s'Uh0V>m"es1MPObE}ҪKԴg-&1m 3 ";elv18vuU)F(vd%-W,z v.P ۺjz{'}qyj,5;BB[ZB=y}Zl,%Ey!wvӬhx ;ͼA *Pw ZAĖ1r>0,s. hoTh\:e?Pf X7(g_ԯ-o44٣..i,Ҫ#ʟbYTM4bl3/uo)YA9Yr1?bo$-A]R| m {첀?E@~t\LKRS1ZtE 8 ctjÈNj')܉@Z4%q4C֯yDϐiې€kѬ˖8#:!|[*)oK 9 #FAg$iLB@\"Y/eFrL.v{sRc xt:D=~)r4oqTbb<;9}5-ds gi"ޓ=he#pv1WK ?ˊ%lђY [2yMajwUz˔8Tm}Ԧޕւe:'`դv*!zy]PN]}alh+  BYCw0Ȧ091v8dğ{yW-DGg>!6{:~&&ku*VNţF oݾ܅t$Qn977dc/tlkfiKJjH*i ]Nbt_F8W68++');Q6(֪wsݑ4L0 "jg7<%*I:`r9af^""^nL$/[Eq\j#zoea.Q`vN6[Cn-0O%|%"N>uչ#8h\u1(6diSǴ,0].rN idA$bOnBDƒ4,x z!00Ld͆U{wTT];X/9^ &WĥXBO0");LUJbN}z&i5VJO~)=.2 ϡ1iKʃnA"4Ӫ'9j6$3ωk:|N6Yj0]C_;ZIu%Cn#'t>Z29wVZe=f? ӂ 3@v="aCCqMzeى^ר_*2orA6nG(JIhwz<Lsܕ;o_xKy84ث6Ă](q\>.λ-u*\yE,6ǁG)ɪU>6 L>+!Iff<;@ґ䅠x\tQgt7RJ7ڽ΋J"N'IjK.2[@Se;$(vMsPKހ;8V9) D7p)*x$񑚏Q%$TMz>0dS4]"&x㜢 RB83 8:Bmܑ"i\'A[du5͓ćڹ} 2D4$&lQȈAAJa(~57pO2ʌ*:0QG 7!"k=KY ϻOu(H=& J M-5 ( r37-gh WE=mF(p T(= KrR,* bi5dOJ{D~o{b0dAz sWVK4?`w[ﰆ$<| 1>}G>m69Ï^٭EPzΜ,\≒9h- ɍ-AЯ9uIG=3$[R&d]+꧈N_z=}BLuasI13Q"g)9rOte 5Bl/l)x«w =t̵@ '{2q4PWܵvAkXr `©ijtի:sxA[cqI467%!kmR\:зzԣ+9퐆2*+ M YyߊyTGLC_Q{ߐrOxM|ES~RUy:RDoeڻݒ nw5uyKc?VH+V VĖǪ.:5!mقL2(Efծ)aw(, ]6..x %a? "~hɤ;w!,x, 2_;I`Ӎ>Aa@y>͎6xoS \G% M:+j-f|x7@`7 ^7vBpаDW'o6kFu^JӣjXˌF!%,8GD%$_֯|^͕ХUVh{,u^"+/u!sԂM#ۛm3Bt} w =PYe f955ќ7p:üh 'XJj\A/v\XML"#J%X˅zs;^|2c. \ CBved{%1BR)L uگ% =ru[:؈fW ȮH )vyԐNa 9ǃǞIoy\67fbcРO=x!qw\{c/x#n I6֏uqt e Ld/V)~OZ@ia~\ eVH9CVWha|]i&#d=}U 6Oץ(֟2HU<68ұ\T:C&N~xp9L?ewKl]#ʃ^{] k+,^pcDGaC0ŝLJYv5$ L=ss+ޝѨL4rr YՑY=#(rI=Tѽ6J8x~1oR<'>>5cM%o[yc⼟;t[|Nė/ `j}@uS8C`Cu(,&{h~d݆N;]f!54.n#)^4': Pqǀ_@bb ^wձKP,V617= 4oeHAbieCR\2DG̞h?ֻ\h$/ Ʃ[Ԛ!;H 9RU1>y9Ggc!I9ǟ#j吻#%Y)]f-H9zs L\Wc<{*j-)[A~>HB'RÑk>Ӹe}윩;vC;A8'5 rATfJ,}n1}^'S"~ǢCmn aJ~!㔣>xC=5Wz>ew35vm,t:,zF&[# Ljp:%^2MvM/z)J]@B^?;؃ Ʋ r{7+T䋵+ { [g\Y.MMO} rjX@@cn֚O.BkKp$L<AL`~݀<[Yx NJٵݢS> OiЈc\1<%%߀\/ E/WC%:%^y:lUD\(%.p%ME"iq. :-^2o l>_ZJ!}PG ~8xxGí\)kD34svF+Ė׹lé $o% ڂ6@Px6X۹ÝFEG,Z@Y5uAkѨ="儳|֘H`;\f^Yه=8:yiO_z=.cośR\Wb.N`kBPyB* uXDzQ)Hv *V 'w^ ;3VW{` ͤL/%#޶;X8:%,Ӯ%۲Q&p˸Y)7lj#nU%  @x< skB|L~s $9UR0_z'{T GRbf{H+,Ń{ j̓TI$QZL'.yHCB41pF=i%I 7tUo #vܭRC |ܰB-Q""(#5e SX~т0#fp&=cc z =xl8nx l0.;c.sEcY?5k&.3`v;sg)=j8 NU)ZGšxa3+y׹Ku0**b f/_-Rђ'sݢS!t3vrϪ˺@IapqGabVX9Ua+ v#vdV'!O'`,(SW$լ >1s@˪am `}-M;`VY*üoyl'Vn[ +Iqke'IUmif7\T7άNB^.żC "1 Ȯh%87=`S? تd,2|`1a&72ƽTͮ,6*ש9i3A2$=z%k4zR1]qIDRsիKh!aJ1_ᱩD&$\j0zzX0LXr-B/\Ƶ,.pDfa@Hn9]Uٝ-O 4iԶ[peQ|kQy!@N6C,gڧwV]kJ\UKCAC{!zxy6#wQqp)l2V2#);\pqNBjVҬaS4jFIԨvM:KyM⊸s 'G?E9)_JU==依Q Vju+pCAc𴭋;a|@f,*>O?Ybq4}-vCAm18MnͻCԈU#3ҧI:GU<1R:&Q|kIG9zwjrRD J? ۢ4g/M×ШV$X[VmQ(6ct%$|4h6N*Cʅ5>jb5z8D^sg'}_ǽMS-\ Zk*gPC1`2ͫƼj?_֨‘BKs+)仓 O!i&tgSM[πb쓧 A\+ոRC5i/-ߛ. Ƌ m=AJ݄ؗGl>`VO@4J(d,&w4)JC[VdM|zYt.ҁO>Q7Qj#`|gyVd*( t@< [!Xᡁ5T95 D.x:L5$@QjʛLʹRU˴X+kL 1KnL 9؄%‚) ].%U7/S?"Wo";Sя>z9NJ62?@x(bUbѓzT*fD[k;l4|y㔕o~%L}u^z )5SZJč<M(h; R!BIBg5"7|U,O*1RZN%?%(85EGeF[ul7z<ζأ͈TqMkW5Z=P>-1#4OuUGP*aCi dQc M3PW΅t>=a?Hh >9XoOΗvy. G"ÖLIZ[gԕiTј{~_N)SL3۝Pu7ԌT{hQ7pC$=K<NѕċW2ݖ62)$F(q ԤGEv?{`@=ALAoZUm]@b0v `VCʡ/T?'|Oz Rvo RM8LO$D*Iwo1WmDKB*V0Ψ4^sK+DnUJK'[lv (C7㌽+l) k7ʲܹUm!rj ##둯 R8ʀ,; ~o8:A`' mK0k[ᓾaT0m4#E,e7`?Y?2Bn2{%CB0 1@sa71$3+ _Gΰ$adjh#Ej- Tw]MWb` =S {n AAt `KXwẙh BDhXV[8\[1tʟ.8o Q4#13tDSv+~9sn4:N),œ3۵kHZ@ͺ񲦩Vٻ +q#W'r1Ũ}8x\|Ӕ4iQ~$OKA`lR,fl bd^Gxv>4=iC lIVZwn y$gbŒ^f܍dž 8_ӈPdrD.he 4l"6QugI/ȘV\bW,ql|H,Q:JPԂ:PbЙ+#rQ .pɱ3lh^ *׷ LSuI{wXNznzn9lݦ},=܋'4$bgLLCl7|Οm~Vs/I&Li3i!gHr,[x6\$+hW\"rY֌PgDf0]o Amݰ E*w'U9$z^h]dAOMZ`vi% Md1=I&PA2\\+tZOJKQij0x03} rg들G5\5CݰSA+ǜmdEM2Vz*p~h*{J݃׈>g I_SV#6h46[$rR "z^R F0 {@I yV8u1 P'N݄ 0:Cqw+qY:PRmrA7.9;(q6Hgz,| zOfԳOZxH|0>6y{$ml:oVþk,tg#/NRb~1 AnqiSɁ)Wjё2qk`{N'^mڽ+$;G5$oɰ9b[7ADmW:SR4yDM;tKpߙZa<|kPAPㆉ-õ5)c23*V猫mKKo&`.Yb;]ߪm2K'q|X]n93JZTn*sID|-XHA[w<5,q9oۇaC~F0LwMup5T F{r q;d 4v<)ǧ9`ӂ\V|4q:F, X$\ {\`2EP}t 6gfZp9'uZ٘ RɦvkK" ٻ!ȿ>,YlIkqQ௖ɾzbݚI+D/g[KpV|+X~-蘒%I?umͦ3|k X'7Gww;a-EZ>0Kl.H-߃nE r[m?غ #d/[[ڟ UԱ_ׇD!u3'AJ/֙ o5K'PDz2G:FÿȢ|8|^@ʃ+)_-q1X֩iĂ=)*˯i>F=rvHu]:5Bj35rch?.?J1GXoKپ`dn`hߓ;yݓa0R̳È(^dE8AKa,'z>N?71: t`Q@rg" D˅M *XH YOk BitZ6q=Eqg2f±2j<2EAZ> ˖i!r6J`S\e$*5!i$lqYl,iS]SVևʰM :rPzPOb7tiLo%!}^@DJ?{no\CRtúGYz6' :p 8O+[fF0A :~/ivKءR R hK-`f6tR}xv5; T/qzŮiGw?"ݝrw? ????????E*VxU3+^y#^y*^\'smaf%*jJVP:>Jw[SvʹsK9Oo' 9j.L睜[0p57t.\=7X z9znVss;5 s5˹05rs)?Ax\QMxn'F97Ṑss'F[圩9Ss+\15כ/x\15wjtjs^ι ϥ$B΍rn+z<O ]Ԝg.9Ey(r.Ԝ(jCΥ sEΙw9r.\9s\Υs9r.v9r.N9r.N97ɹQ_O͢????? VP8 b*X>1D"!" 8@ in{f~1M!ndlIyпl{Mӧ z_kAd[_55Iٙdygiޘy_='P ft]k{#߶WbChO?Մ/7ޯNǎ/ ~_֓D? CPQ|PajU>(Y5M,vOl;MSj 6S⅛TکB͇imTfô6|PajU>(Y5M,vOl;MSj 6S⅛TکB͇imTfô6|PajU>(Y5M,vOl;MSj 6S⅛TکB͇imTfô6|PajU>(Y5M,vOj_aVH8cqZ5# ⵌjFkԌ31gcR0+XƤaVH8cqZ5# ⵌjFkԌ31gcR0+XƤaVH8cqZ V;aW F5SSrSU>(Y5M,vOl;MSj 6S⅛TکB͇ilF#lV +r x:Bt޸7poz{ \޸7poz{ \޸7poz4*fvgLx嘏 ,ZI9tAe2niۄZm-6pME"niۄZm-6pME"niۄZm-6pME"niۄZm&Ub6VqS.Y~KLىL%G!饛Ї*Cp!ʸ\r9WU*Cp!ʸ\r9WU*Cp!ʸ\r9WU*Cp!ʸZZބJqm>C/,{EAE+fP OuLRrS/}N^9{rS/}N^9{rS/}N^|l @-2跰gd誾9h O 2ڼݸm*y`OJ4 P` ؏`NJCژ[S jamL-0ژ[S jamL-0ژ[S jamL-0ژ[S jamL-0ژ[S jamL-0ژ[S jamL-0ژ[S jamGbD7b5+ZPlCs?MStmDҤZ2F.{ \޸7poz{ \޸7poz{7'nD:U!d8~Z4FNb2!qrv ]/#1uj @B" X ,BfX|ۄZm-6pME"niۄZm-6pME"niۄZm-6pME"ni1 6q |HqEW*"ZʺmF%1wa6LX|01!+ȭǺOө2V^~ !8k.X/0)н* 6w M>~RL)&_/I$eI2~RL)&_/I$eI2~RL)&_/I$eI2zlc܉/yӄ6@~1VRXOYl'm+Ʌܗh]ōpȳsIڬCmЫ_m o gpl:x Rd{_S4q Eoz{ \޸7poz{ \޸7poznWZ\{(R7-ᚺ ,=R 8yVnW -AIΆcmAzaG)sS22m'&{o~~dC]XeI2~RL)&_/I$eI2~RL)&_/I$eI2~RL)&_/I!n ع~rH2޳#`iίHJ Dn ._o='<)^C5ȆIk@cX\IT䁕 ՜JT7 Fl-QlY+naHV&Q6[!%ڷaÁOa=D3p!ʸ\r9WU*Cp!ʸ\r9WU*Cp!ʸ\r9WUw'I\@ v',')Pa5XU^ w#B@׷3Z8EKTv7Tt[7@"diuGpKo?\(W=۲4WbqkO2~RL)&_/I$eI2~RL)&_/I$eI2~RL)&_/I$`_T 㻑E=>8a˓}!x{" >vh7 }CA8{5iaS(wIQF &4xo +'ZcH;4w6|EGBS} 7C0> |@,!5U{Ka PkM\޸7poz{ \޸7poz{ \޸6ڨ&G6yHĉaE{].NsqT:j|maK)4GӞ2~V1qw G~ՔE)@(@D&oЧs> rkfc{!:M\޸7poz{ \޸7poz{ XIzV[EaVH뱶~qy`n]ѼY A p2eXJTeI2~RL)&_/I$eI2~RL)&_/I$eI2~RL)&_1cQd);,o&شƥ Í8lW;:ٿLP9 zP; ޤU"4&hv\]+{c3:KusǑHP+1f}x5nw-v&_/I$eI2~RL)&_/I$eI2~RL)&_/I$eI0/a]"&XQv9о ]n?}+3S_g:F@dC)Hi1Ը#Ҩ!, *?B Wbp4_^lqJjH@ hh(d3[\v4nwe^.W/}N^9{rS/}N^9{rSN6L;Mdt}?"y$oyTk,ٙҿ^<\ʸR[˂"͡ H1k{F!=0 _po)^a_ҟTENWH5xi#Y7zAaL{ 7Eq -1"\H LH(oĀĊq -1"\H LH(oĀw;ͩ[ߌK9|mMld֬#)f.9Ҁ2knEs_@uvmxp& k=g%EHS+v+^X 㽧rBDZTFvnՄ[!w>'\I4_ҭ⅛TکB͇imTfô6|PajU>(Y3 þ}Ҡ!)'Ck]*Uqn\iw:hvJ.Jg0@P Xrpxi,%ƊoZ \#)ٓx}Xǝln,'hO[>N!/oyi~YO6Q:M\޸7poz{ \޸7poz{ UB=L33jA qj>PP32ۮj!Bݼ ESsELւ?!~ OΨȷ Z )?')@2+ד JBb\( gEm.sz9ގzG=w]sz9ގzG=w]sz9ގzG=w^cEGëpd>7a1-m> n-뒖/l6+72LC\ "-D-#Բ'.>iRt{~DDGj6b>d>FyyuB;`#.fo2S#_{ ٨rm}hCr^jw;Y L ꭩY&@z&B!HwQ_5E>^<@ u9ZV!x\*9Ѕ4RLWkx~9ΞeB.2VvuBM.q,ٺO8`vMT}Y gD`#5z&ƕPslS3?Htvn6Q&)\ \=81Ԝҥ:aP\(0ѡ~4t4.28׉o-IMui^ͺd E]7%n!U|CrwP= Uutxsó`ą aN,蒯])&i&/Dw,WYOp'o4mR!nEw6ȶEH5L)SSç=sK>=r)/D}lC4\ְEd-gboWv*L^6۠N xK)31Y`ɾ9hٖ%GF\ak;w^PA̗ham *9`-F@~yJ/[Z[F2l')&jc$LNJcE?_KVƕ#<)n +op-=d=흳UL=kKK i0/֩" h*rA0ϛvZ|/qf<̿~6 !5;bK_D܂.Jr54 У' űq[ \gx4ҦCT Sgw8[mM+|%b2uNh=gA(od ߻ @o:Qy!%λ飾 x7zwme*ŊpeuN7|+2wbUm{e KTU`Qp[׻#4r7?& `49@7{Y;z sQg<:} d5 _+ﴒos=ټ/yA,QH.>Ye hg:]e @Pu^=POlpXӥ͞΀3#9!:㗟{ALtk]QݢdYUCaۥs0? Se2ytgWa+ _,F#]àlJaNڍy,H9|A4]-a`xId(3 ^Y$BjEA^ #;d|YcCjȟ]`oo5D6PG]O'w)GP.K[?M/bٌh2)^n@ZX qэOlm, 튅H (+;Xu#sDNl8[N`BELOfKǒ@zn%9K

ӭPP&GYkZb9 "@K Xɭ̆"A_WmZ68'ΞhƺbPKq֚je اUI< yk{ u',Qv}:ğ*~uN $PEFqq'ʂ/6_w>T|x븜@I(ӄv [r)YC<`" 4@ʶ1& &z&(n#ՄEXrGĺG( ;gXԙvp:*A`Y! ɺ; S:ptbr@znBK2]di2[;GG>lcy1@}{RV'2>F<4J6(T?yQy߄q5ؾoFsre[}3^%Qђ<ĎCKWHd {o={Xu *69!:)NP$ڔOߣ-*Ϗ oZMnyL?=/d!F1;q"{Q׈#z+P90s^@» Ιब,TZ YH{i 5ήڕ9w0ӌ>{A rF4.d%Z$*B9- J"8זC򹳝xeqVdKS*=a:H㧳@ &i~VsU |ai0vI"6~c?Jɠ'H+Ȍ rgU˥!8Me]CD3%LݞyI~8@iP k Z/sƤ==e kԠmD: ',QSZ- ȹ yiGw1Us:Ol7h1y ֗E#5ޛL,Ÿ!MYoe#}r?ٺַW+ ~XAHW__w⒫c܇oʇPWZzs^ՠ]oum"WRa@s"[ةnKQTbk.}P\a|zNk90Ӛh5 mcD( "E<{i?[.Lc"yEnBGL 6:| Yj7 5p'씇k0yKcTJSnQgWD5RF\Shm>fmM&(L3][Z$:۫}ƀPt`5;m|`@NSBSCX wEgRd /*JӓY}b4:5oRXtc_ P]FPBِHm" emNG[V= >tҡ㭓lDf%[$pNوԋ?v^?vaYμŒ'(nkk3>]=t/woCDcTYQ>luNAWpDMTZ>..GN^:x7Ug»P: KŽ`OB7Ϫɮn6%3A o=R|)l{ Q tᱭoqnAp Y1 Bazk}>w(wc 9bM*4UUQZsi8GȊ6bP4$7[23Fe]@@SY+UH  WE>7t崳9 ~օ!LDjҍo+s33cI277Fԑ&S"9ؼH8E="p:T>7SXׯTY4`#Mc^;7_$g艤u YJiI|<+̭9Aqf-:(!M.w8IEGԦ3ߺ\>J^V,2ĝxv6޻SCEL%2ٕ~ +?X "]`\`B4Έ.7^ 9&WwcͣZ6.f蘸Pד2D|D+BʼnBX.ȴt0?l<CȮ'K/%e#S6#"D&WS[ѷ| `$OFb[ dF(!*6M2]cPJ69ϙDzr{d<~N XWnHkBz9a[wC֡Zm\hUxVsw0fNOM)\UR`7i\ZÊR4%Dp mЙȞc;']3X{C6|,2\f!jG3OƦkriH%dZfASKMSZ}#eYO)Ph]gz׉JBko=Fe?$7zp,ַT^S;M^S?]'6[# +ˆĎ՟lCmƽ+IkcDQ2ؿ^Odt^sOf#CVE[s=CL4,{l)`$8K3E.;cQܴn(&ވdxTz|4>*1=EdJ\A~1~}H==kn-EގR絊 ͈4!.2ԼlKr~+ fƬdcjb0_=a3&@r'[ד4V/WS8?&˴f2oPa##B+^y?e=-45\;KUbQa+G73vPe,i90v{sDa{eTjH+,w; ]PHGTe=-@uQVL(9(>i$wvkFV*3I:=wvD(*#ٌZs2Bu^+О(hU/zkx-C vUS"XNI NOVj:跥mU"rQ %*,;h!C,DXk\{+7~>}82i177mdhz(n|w/Da|GsBS=+&`̗Ho [RCB$X2a\I-HH?{sNVPq$"M^+Qk @C$%q&ai1F@*3ƴ 4}qj 犓t.uҡ _U{LWpZkusC&JQD~TPp{+0y9 6/w8&yvwΙ<|vȪYþ߹&NvӞ]k63rqlGbS$_I=ė-C=XאrW{d,f A$wp] 62i;MrTQ;N ŀ`$ғ%26Ў~Lmΐ-!%cTVzVeN>2ΫE'k~g<#`-Jc}<$HWR>/Хql!h&_ЌN;@9=V%F*7ՉQJbTo}XĨV%F*7ՉQJbTo}XĨV%F*7ՉQJbTo}XĨ㾁SaD`H)P_4] )+^`;,BlpW0C@hzձGYSnd_ǣݓU(h!c*wG,_!_yi(Umm'yU_Ms3ɉ!@^"l^+Bؤ@29/_}ɐxQ 8nvBܶwMw:_p"䘭 TQmRDPA)fAٙuClr=<-O=76ABT>{22w7(x+h;28*d| MDIN|,U4{Ît_%0 'tyኺsNN̤aa/5A;d޺& [o`5~V'-RWD5s:ݔ8dn+3ܸ`򢷀aTaZ:2 Zl*pf7RÍpZxٰV~ڰVUJS9\ĹJNJ|=kJ0 ZC~ 7uL8(ԡ݋R y8qmKFTTc1O1J#(]~s_]\DFb]4Ӊ7cꤰ0ѸkJA]/["%h~bGb3JX\ 6lro@O0d(7;d4T3pǾ)o TtO,V&W):)֗݌q]&bEvklpo&th/Iމkitv;RKhS%ʂjd *{>5!#'n& KN^'Ml}:=Oo4btlɀv 66q}6 oq4x+E˴1IFauh\շrX)FY_4t ;@@>8f˄Ok*h[}[VYs~`Wi^Gq.]L60IX7$ _W|EepVWxFiC[nKi4;z[\pڞy[PX #M\}qX/cܰw7DІz<ڌSh"Ny(+Hc bոz2DG2E`̄WFykWq'Yx_jT<0:x#pL`4 n"$Be99ۧ~GF=o̒]n):L#LfF"*,, )Y~ k>Tm2'mJ9 3Wa,iƲϪdoh7lWP9+cRej˓tȻŲ6*yu vB?s֭E}+L(ŰY]B4 *$Ti҈)_aLfp__)GM{zfhS B5[o ŊkSr3*S6wQ^y\8PA)W Gt?{\-ʏZ$rB ~ASz}S}tmZј 팴9!4lVƎ$r62}ݚҿnM#Rn ?'YF%md[0V~ rΓeKl[&lN9f jL㞤!p61,0%&$T"[;t󋥾}DԆr#$#N/8qa'2\ GC-sY_رTXg.i=?R0HA8"]e";0{LI8wՋ<(P00ZGlc)*σ=m]I3 Hbf9n倾j{zRB X XyJ3o.EC@>KfMdoa폘o 0vNyΪz4BGS)hR1`yraL@1HƧZtvݶ 8sSY_AjWK칳lL\jf+%y(e$ td^nYc3=Z["rm@C(!_䡠}%p;2Hu&e2pHp쒷QbHlU]0ScK5nbak Q)?̻sb˾o3*]e XՃQt\S7OAӱԄu*P ' ֔fwCKlobcgd6Ȣn!hTŭۤPzڂ_.^ KJwZ%FhRH,)u( ܦ3DW [k#6BV?gtENpT4qNz׍PR@1078yAP*BjScAoI-j]cLZ1*sf n<eswS}qb~;幛-ymR4܃HE\uRfc'ȶ>LD[ƜQmUў+ ʪ8֏BU <4?z-w2[U1F{)BWjuj-SQ3L}wL}וnYDZ.-@>W;9eϼ+i}1t)WOMI1.N6y%5I{V a0N@ gͭßF2{tcV%kt~Cqci4@x'F1"fd$g''&Di>&&U`Qy6%Ke&t!wJ{, w6aW*Y ]~=* @Jْ֤ݜ&u#2b09Nt ľ@'~MvhU'Te=np6rFnftZywA$I";(ԙI}r@}2ޭ{t*9]>liQ[*XYq ^xb=Z*oM]g#Wj"T<0Is))#HiSo?B`sqS#A=Xz ƊO8ۈ}"EX{5iBlg)BΦL6mOn2s~HSo"Yp:Lg}vw1N8wpX3 6շ# .찢4o4p)/rS #<'beǯXŕW#zh쟴χcFسLe3c(+E 1Yߍ/iyQTvY4!-VvXޮXpn&RR#ʮ:HXC}njY]C l.%Ʀ_ X4YW%:ʃTn}jZkq\/4{/l gLúBs ~{Pt!6 ukXj(JC̹BҟW`%>|Hi"t/;͇S t!Dv^>>5wk*cs=u]rACS*A9/z' i-21D6eg5X#;r,~%8's1${_aPv{;8 16n>!أڥeCosR0Vl ͜/`3"e™;!zx5˕F2tfE { X2ns(FGHhM+29R}ZЮ # h ?=bRnYH{AQx2:Źk4/;W̨5kwD08ںy@X6%M"cR#&s*'{!ڍؖC]윣dyd0V 0g͐`bhJ1xTO*;*%b2;_`3"힃?!9QXlK6籪@d˨bo3R6~ϙ>g3|ϙ>g3|ϙ>g3|ϙ>g3|ϙ>g3|ϙ>gJք#("> y#H<$Ҧa+F{LcravxùU {7IHͤ PF/BÞJ>j˄^Eo(r0MaU+D¨z2|5J>r Иx]et\DZۃ'ͰG1J XoK`Kx9XuxRMZws܉oHDB,+P$ xXBʡKCOWD_BDxA9\RMR?s oNi碲lOFTSee+IO [L{u1bnx\N a2ʤ_`BXh~b.Ę|XzWL۫z!(غZw.˅6椃4>B@5܏tYM7;[?֋FH>7*u-_+*F~܂3 1ۚh(zOZJ`:_G |1TE2g˧C+?~pI='QAKyA5TF^~թ a$# l؟(ªGD\Ni B2zz*+j_j| Y (iZk%JݮkN>$`Ip2t9:0`eЭy7fR ;D2>:2bb2x!}*%+B YfĉJaz2{/{JuNwɽ9w(\ݳ_L*{AYё ("SR<mӣy\ݦ;Q"\U9@6_)VD`Dw2P/lf{5}(c" 3(e6L2M{!zln Oa[ Ct-ȫҕl?zډ=V4Y 2`Z?O3pR2$L,5Z vkc0Fۺ&7HO 37^Zǖ;X&8@@'ŝUIˀZFcASA/(1ϋ7*KÈ.Cc!:o >DHJ?u;/lJSw3͍RRźb@a!DeT5Ze=#ICM}[,S[fr K4j.> ć|w]v.ؚ?`fN7sB=Ovy hhK0T|zaH*uts\,y&%RrYmpK?MZsCC"}wƾpys!3{Ӕ"7"@>*Tr敢?0ft` 9C\ܾ^֤?!\>) T9p@tFBP}$IFn*x+𗋷2+^Q 3HOϞ Np씂Fka[~ݞMFMg@3fEi Xn򌜫 o/Gѭ_A (iJX0YTA& vY-!vc&I[=%6򶥫1^A/7F3'֌w&|~5>,wVK7!,LG>V\kIIoWn01Gj%LMxX紱 s+؁5tCVh#  1mn2Zhyl宐6toI3y-388b ?.9S|-ȑ@2*>aK5nc:~]%Y%TjZWʾ d@o{O+ nl)+%V٬P2~ 簆/ ~^#qige*"d#󌎕J<E&JgwZ6 w O42JeHI u/ c>;3B_7 T}]Q 'L%n ٘<w($H|]2+u_bϦ|W:0*HI7ɯ;XhO/7z-;_-,!'r= &sVxjL YwI] ڸhx8dѯ Eu-k2k Z?2n#JJ|'(SK/W7j;? ,8Px/@ՀgRܪ+DNDvp\焊bɋȑ 5CcISldInfstMD.vEo0Vq@tm}|P`jR<iJ|7ƼʑmdBEH ҟN X&ڵ`*`Y#S+Heo6*14 BU峊Lw&Q͞ ƆX=@$h/C!AS Dֻ)4lБZ@ԅ(&l,-3z ă,33x(*cUCWXpr2D X6b'e" Q"IOx 7rhwnh*;P'͝IY2w E]yxĤV&4 zRDPUxF6Yx&2 e1˰ y`?\;uŔޤWbaNO0:"׍|⟴)P^U/Nƪ.ytƽ1ìv JdՌ0ffs {`|^$=`;;b慐#'VˆmfQcGa$-j's-HY󰄾t+& !YFhJ\N4"L3Z%:E;)@h^t7?[/b|TհX~oy_xI9#Ɂ!Rm|z?T;?ͱ ą%po@-`x숬Q [ lt~(Rpsc{M?9FCmJ|⢊?ŸQ 4G"1KSYY5c&)hy(4hl*ht&IJMd}DoI ?Hn-CA4I.6lx@.Ry">D?vȚU]UȄ~)mDHՒt_DtmY.&j=gW ,;SHj%khְpe2.r%Q9{R 6;EG;ZG]g`Q3j 3qtcqqfKc@@t#F C|&N5ZtOZlpHpkLE 9~g+ [=Nn*fongQHes9(mQ#]Km5v QR4rCQ?}3qZU/hbC ]Sw23U0CV7T[c!&_HǰǬ01]FRjvIL|/.,4c%hAorFtp')&! b LAJܤ瞆dVjU\?#=hѬI.h)(e J LEn-L.`Cb•|sD"#QMc5iGUKE>^9i? Kz5盤wǡ}ع יe*  c;h_xLyFflnT9`sMZ [9uスN{yK)a4\˸f#V9pL?ED[Ym)U?P!Rfc&Ahw"khp՜dPS= X+tEb"%ES#P)5x垸$uJi>&i2%qdwkmWG\<6f[YjݮxƄpJ2BqB{[oIO{śbH_?0FeAS _S$JTwcC< t#OO_-\s5_nx}u􅝗X% ;?.sdZ䪋Ӌh! B!FJ/:8td&1,(^&= ѣ [ -nKIv{*ƼN>ӇTդƷl!&M or$6k8F5Ceh&«9p4*EVt?>-kA\nԶ%9v%';}a}Gp!3h=QTwM?U /$ 4ǎ NN9 o%'WGT`˛K& pl ʼn]!s(=gmeBB_zi&:P֝1wš$aMmcrD_#\W-ȅALOXHb1yrr; aw.ܤ*O($WCUv=kv|%=2>J>$*QysW)Ɯ#ܓ$dt3aȶnC%|HF f{jAr4C 2ݱD"DN@-H#,zkyxJqFWXM,p5$_8)4 %>-i7;yKֲ\Vw'1tBgx\wO)GEjN`Zʚ>`_^ko'3"JH)}2vl80C6_iRzJ]{TOg&NEy@y_lPz+޲wǬ%?J1{st^r $$>zg&l k *YҜ8(j1yDZ圑9_E.62yNWnz"0Su35*xHCPLT82L4Ntr6MiXV)n?O*SV?2LLٹ%>K04}RB]JKѫΛ s^)c%.OȌ.ֆj!J>7ߊB#A|t3>^9chn ;rkhۥZD]ͬ_.u0 N>_ L{VNO}:'&v+wQ*wX=JkL]oѧ fԅEt\)҈5t7qKM^c 9(-} mv'i;˯_:M5s_?7$:P V/{?H%$v;ϩmWLA 'jEugcJ? ռ"=D'Q(#l[h4kTpi]ӁWeR&@3#OYv;rŚ0hb?]R)ڻ8k ^OCpAW26_&97w'x$a؝&&!wzR3[j^3QS,B=3xgMNiCȭ2. F52khD,gNm y|c~.P|53=88J ֔J1: tk@`μ뇫d} \G\ȭ$8ХzZ0` 2 mMjT vt?x"3ִWuG2*r_T. eYWMnE{'qv\spHߢ:^<ʆ{nn"\Hb.@_aY"eS:l.[?I~ݲJCF~]]R稑%;޾4%an VĶf?zeYKM,Kꔺouyzt[!jKEQ>i5yB5iSml@jxЗ/\k\|U\D!lG΄:,=RMS60R o]J*0KQN81ݴxu𗥄U4yVjE)!}HytAE!2;ͽd(${dx"h1.r,Se(3Ԋ7b|b*Hƾh!99.z1 O>S1yex<D8N%4:a_KX[ x3zМ ١y.)cn:W;XRLpwߍD,bWTⲏ> 늨5a܊ICe?=q75ܸ5hؓ^_Q-A ~Re$ ѱ\`e-y%^_R=,^}SCcj{b& u>Q,HSd”:˂jZ(n;H6׍5zyF5'|r~h"SFtD#p}WU L-HH-݅>}`N=۵5*b ](GP@Xq225|h0)XzHO%&SyfL1 G=0dJi=,鍊3MiOl5WKP]rk5Vxy@)u+`mbIE!hh/rt-?r>$Rʊ:?D V'Ln؝!A*x% *Ҏ_:==/U>zb: )F zʒp K{eC 9^y(yTv'E<"^q_\V s ufPJf`R6Z_-)-lX&mԗ J|~dK+8"܌$a~^1 h^oC+Cg/@f0("Ks1,2 ߓu?bJDv!RYx%jrUEǵ-UxN&#e␟*nap sj}M"-]?}<~fuT2eiq|V 5rF߂ Z8;åC(fo6}Zesm.w0fäf_}+J~@ vE+~l' P FWdpwg|5M)~qEK>. Lx:0MV,Yg%" *}Z{ƸF9ڻx+oħBSkBP'?,9#gTW ^PnzM*!ЎȱGޠH_g=1^3WW90tޠί˗O͓?R{dV4V0cB7z98,(sI]ިgI=#@ƔT|p2^7!gFEL"%)zbЩVgX0>kn(A[RҸA @ٽrA sނFLu SX)>"橎6Q(!n䲨tLĩԿOn4ԟ a ޡ{tSM@"۽fY-O~jbA'J[bΨB.αU`cwg Ov ;c-ޡjW@?n+S{n/6X⿤ťHWC!Q)v&O01KZgS.zG%fnZ@wܦA? pS2W# ,ˤ)1〣ᙙ"u(C.솈25J׹ hZGV 9ГtPA̦pHoU!gxE^Y)LKː%MDd\NٶG L,2KW[Uk200k=?+W™5̵-G mגL CE5J–iI7֗gf; 0غ#vT/_Ocf!l!{t}OȄTT;>? 5߉BZJDYE绖KĜ&l26àp;~NujPSH~'"-laBK88Gb=αԯA%]N5I0vS~A,PTp3G#hlPq7'_›sK>nH,{U'HR!~DN{̖ o[Lpm#)q艚PSj2?A $V<)݇A`=J*%r^ܚwhm\+>+þ1.HbI? pߌ/ (}[ 9=o~w/EU^}oQFXW՞wgx?-*NinH6-RfVNsGůW,Cv-=j&4KR|MNҘ" 8`DU]vՍmi?ȣS `O`᣼>tdzZ~c90aL;t^½ ~@<%nP:ьdme!f`%%f*,z51L6Y(?>x7ۍDϬ7d8?.]ilU? öͶY_\1BiMky:Zzm*peryfW  ŸɆdw}a(u&_I-I}s|d KL50 Q3+mCc%SR{+v: `E'5_|/*Z;/H_82Rkьwd3%pBxL: w? _d_7&~WN"=RuIt#V\SlseH.eZH1&DdEFIxR^tlVޡmŮxCy *3%O> .빍2UCB!md]*%g{gwՔE4uHr~dzcK- E-m:9!o8 +H]X3o&zOM:nF'V0I*)BFbqeυX~JU@*Ў[C|J>p9_ؒ(\{AH៾ ;Oii:,KS *{ShG_RP|@X:yB3C83r HC8HZbʸ)ύ#A K<ʻ *穫bĩڙ䦞֗( {Q7/ޭ8W7Uk"zɐb:hM |#PRށĽ3xpoDZHH5 6گ{Ro)gor16ø([bȨB:THL5];}V;_Yq'3JYCW9Bo'@u\ B I1 ¥R!ty&HСRtϦ91h]/Z(6@BȖQ]j2$1.#2WL:C:`ϝk?%1>e6 t?V k:+a?5Q;2CIT}FQ}#@bl෣]Y3"ioY $QTwa^f+ҫB -$DqlcH^@|6!Xr$)DrQ$˯s ~tn1Lf( xI4ەģ)[#N"_GS u:KD_/H:`03x˔Q5kCkrH ?JSwX@hʐP E0hּ I)ݱMyX1w@g-AON5%>R/FJKⅦ;k>e ʋO- v6o/2o>|1YhL$62R: i߉HVV.W@0# g6YB}q#V v!>A*JoG!lvBܩw] |N F H#7QzɁ1:@p/@a_.0(X۷UHU8(WN =]U\7B1LhnpYcڰq3.G>SWNJ[Ec%Ws,₢N2ꡣG:[m)INO=/J92:b"sс8ץM?G'.%Aё ".39'1EQˁj_aߍݕ?Ļ)R7b# O"(LǼxINY]MS9c̨FL7H% A[KeaaI'ger@ئ Yw8ɮ$?:RO: o.es׽bхlw5^1p i+7@ڶla/zj0mPXo.WPSZDJfgʶNkxRdI64= ?c Mo« Yg> @V&!%"ڂ3`\z/TǁlW,ʍ&*7>D+e:pf `QiKvlr{\cD ľdMG ^ GUXh3 iAV1w@ȗh@Hcg3J rwKCZ[@C 'Rk UjAIEDI Nמ@d[ ĿH(44gNU*ql! C3o &@$TA>ؘ**Ox2#9WUP:teWYӯ`BKR%0Omk|iW~\X*AY"7]fĨK"{x>+2wy/j99TB!4q4ƶ;)қ`P '߆e%@qpG Z_l=4RJUXJ<@}U _!#g;0H|חW,iG ]>;;|i9wgQoV$$ )͠5Fm;ٜ\=  v)̕X'K^gM dG3ăN8Ts{pVi*3]ǖurދ^VC[ LP} و#Vr{-o`~~aMS|y"@@$1Q!կC\34cYE6V&e:TֈteB2$R]f+0 ]F!TׂGΫ$ߔڨWK4K>|OzHRzKה FU׊qŒ` sr0SΗ0n3)3QT [:T@3+{Lz{\1 UE+VV9 .9B~}J2B+wx)R}*xZ\a,,,P1\ӱŸ)DZ*~hODMWV!JLB).~gM_ϥaS&n>:6,ZAeڑec!u#(k( /䛆H Ew gwBޞZI5)--& 0( =KQr F)zm2i64^nm}h +F|ABLfN|~SfA"qc_Z|ݿMo4M(X*mZrqhO瀮 jh~W#=xi* bʱ뿣)Ê>A n%BF6n.SÿO75~h" G%ߔl=+#({'׶OFsVW| 1FS;Ri1~?^gr E6!V6O0m#1\=јAQw.ho!QwlW$?CYhka!1 J,3j7|s M ތ!E,16eH.GBw;q0tֲR-͵>Ho*Qrhzc0{USx1pҷ|/m0yy| FiiaN7_0zf##Bw;g1RւtB c? $qv (}>D.qB4/[U@ׅJ9@!& at|6~ծYa&V^REE$İr5 O&?†7n._h;Hf!x>Bl*cs&-U z=\zis [`gA="']v}R3Sis`F.,nsH5rՔ81譫!,u58tu7x:Y b]} hM@.ݶ~#|O<8H]SU=+xљD&YxH<0Ik=X;f'mZv8欢<îz@?7 b,{;',r4GӷʠAS͚0r3t!~-3nc 223|7 q1G6vmf#k_U:gEQSO| {or={l'o(i{P`^SxP˭wPE_n"dzz"V+qzG{죍u:L|h-'IDc3z7)*[V'[`=-ر/FFW0EUGW,C\Zpv}7fcO>B~0.Q 89;n cɗ5k/&R]753F.6ŵg*Z 7!^˴Yv6H׎_N)%Cgq\O3yCwX7+;>S}>ӡ mMUFYs8`A#ڵbYШPdORBm7kcyMFY2}]+R`|Q61 DtG<ڬYѳ7JY:J6!xg// d@LT6|KSJ33+f=jBh0saˉc/ìڳbu`J3mX8Ґ^5k_2%._rX*ޢjnk8\jPk4 së`u'vtvUOE2[\=w++#wm~s٤[.t◎Dw E2\Ors,2a,7Nx5)z5Rffaeŝȡ[7/q=L =jBe&<0yrޝri :Tm@uo+AcvBW!S >М;1YH_"@)he4*(Æx; уGq:*KUM3;/N@N@.Oo6WO])ƕkd ~p)^X2C3&RdԿ3#Mc)Ni.QԀH.\bhdҖ)Ҽ(uwdcEFL QR @=`5;XsjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBjP&5 MBd= 7$ͿybUuiݵ]xm`=3F$lTy T]Y= ڛ0-^1B[#2>;<0E\/ Ѡzwkr&kU!PB2_dB35/hAb`S*F_mQ:fLWMz}525k@ Ma!:fARPL Pl@,s藳:/~ӢS˶姦HT)7;J PurIV}pj8g ܈Ũ]ۍ5GG,FHv/8W̺Ad4DRE6 e˃j.\|ٙf~n߲KkK;F<^Z`p8L@@s 0.usőx9m:b0~rL6H)2ЄlM|<~1|]ŐYy!ubuo*X[K0o*Ops6=ns#jT"Tya %T7m!z8uxZz4Ky@?2J>9qӨ hD1pD\7"'/M9r%jrY;."i=5rA y&,|I " k\]$tokuSnr_e AjBW-UI$0 \el-x2KqJgrf{Duv`1)h4skp? 7OEMt!Ps>#U3OfqەgZNDDؙfL4*k<ܦz#>XvT2? &ܣq*;-NC3vC9VeI{>!f ~o<+AڈwCgFC9ͼ/s ثҸb ϭbX₏$wuQ9[^ 鹟2$7+_OIHˏ dN}4sOs=u5 @^=tE2Dek, Cy)qGf.ܠ2bNO]9,5N?<[a+=_kgVݨS -S/u Yc m:#\jvuz酂9-zf!Np,b+G|b.j[g^ao^G#F*n:@ltd9]o䭪=mA. B_@F^ZTxp.zz)^!ΦbC7B tH#8;OI .FH0Έ.!=F 1+{͝=+ٵI?%;|{h;yxhF)iGL@yLPUvhZ\)` 3 G­fͦ%B)J*g3E?sA}&.Jk6_g0 s@ \!- 7qw._d竀ixR^]11+9^WrÕp{+9^WrÕp{+9^WrÕp{+9^WrÕp{+9^WrÕp{+9^WwRg/ n#│x gFƬaDdNƻq;/jKꪁٜ!}j !TF>/j!,SF/fHvC{GQGS,I/goJes➊ EqSb]aZg8 iL,Ou;ik(-˵@LCl(hY|璺GA2)څuc:yjT ;G  zy}ﳒN8!);$5ѤSg8rQqUmB|Uy\5{vZS`oQc 7 Ჴ__GLk1UHXU \Jh|} ۛ{[JѦϢIb8tw Wq$C-UKck9H5d>W6EϹ.`<[Υ,>٥Arr4HkeRP'k ob. 7/ պvHkj.㑭# sA-Av!$i& |\E#ZC|*ټ`%I ;4uKPh/,P-Ps{BZ$W$jb94 ]>z`RƦX>8js/( &n$ P̘XJ5^0z:oQ!)ێQY11fHFS}4`#WvV'&J&!bjҾjP.CwLX+Ww~#t-NaibGү3\\.yfDžB:Y{'GKPazD1Qk'C_Q9x;&xV)rYR[1<Htra+wOuXS;};W7|0/^2?:t# aHvVؕZy>6 W Yc>:xKQ ȉMvǜ3Ͱ$IHå7Hs !9cdǔwBN ejs*nS=|F_0x%JA)*ZxX1̸yUtgzn9u l8 45OAy:IhU^3Brv `,]I ;jg UWaPw`p@l0PQBDhza]>*gS `:~X!)1@м:tQa4\5[f7ӐV@–vZw&:Mnp~TXeaI+Nj/hܵMWlL?̱t#x5@RE=sQ>B ܡSĚ<2.6%?X˧M#@_"2=rWNj@XR3h6njb̬:sQ(894AE5`ܱ0o9]ڻ#:[yƴ0Z`5y|mġnW 2M]tx&4-8NW-@F!d2*J!fpH" RܫN7~(){ugY˭Yܑh!é{SG JoG}XOFnHsڏl^c24cSn *ū}8;AFO3p 2ǫߐb[K#ED84[phN^0Ů΂8k ]ɍӆhc |QU +amdItSZHwnrCWJRϱZ_+қW7naS})?ӊoRjw_wTCEXimages/about-header-get-involved.webp000064400000043370152213653150013643 0ustar00RIFFFWEBPVP8X WALPH O6)lۖSxdfffͬ23u`v`spSB`%"&????????RjɫK= hѢER-BR "$gQB&SLRώO L*[֒JQ2L2ӒΙqɤŵbZ\;li)&NSĄZe+~~vyƙL$[wݺ]jf-NX̖1̬jNq ͍2נ D6%daIVXSVJV[< aKކ[L-IV)djIeE[7NRjy#屬 IP~\Fیy6A16#j1b\.G̠]-FC9M#AC^G̠ܘ;2bm\96VМktnwh26+8spqa892C6DsƭXG6u mܡۈuh3m.hd{LAň9Yq;>. l;fڜm_4bmn{ڈuhsG̠mOsOj֡06>k v:9Oex۞xYAs.b5^|.Vn \ =_)\Հ 36]*i\u`c/H.C7͋cnp n > )\9p9t;\`+`xz7 =Wx\bܸ \ s7o W/ϻ) n }z~3W˓nhaO$[m5ݼnNxen[G{pu4q?8)NFz܅ILB̒:=?2I.7kr5sA.%';3ﳽ'>Iܸ]ι催SLV6j%1!93/{O'foկfNkh-$HҮyyc]wyyO{Aʙ |7 Ey(MEMop㟽1 WX\\\nqOj[RĢB&)|\X{[iOHѢ Nz|S 2\#CP)JRXD-!UXDrѹTkt VМkt[Asx5:gy_/筠9҇9W sEs?)w9.eZff29s}[%&Kf^+x<>=mszw0GW4]\hϻ\|W4gyW4774sEsxW4h&:w1U0wUJCss܀$`~M4ᜡ#8d8>͵MtnBs<`xxoOWx`<Ж*X>1B!$ enA*ԙ'6Zr l>wH悧v݆__\u[Oh.u^AZoGjsӿ:փtg<g]HzMBۘ/I[sEu"!5 ncnD=&mqԈ-"1^7R"P8DCjxHzMBۘ/I[sEu"!5 ncnD=&mqԈ-"1^7R"P8DCjxHzMBۘ/I[sEu"!5 ncnD=&mqԈ-"1^7R"P8DCjxHzMBۘ/I[sEu"!5 ncnD=&mqԈ-"1^7R"P8DCjxHzMBۘ/I[sEu"!5 ncnD=&mqԈ-"1^7R"P8DCjxHzMBۘ/I[sEu"!5 ncnD=&mqԈ-"1^7R"P8DCjxHzMBۘ/I[sEu!oEpϡSWgO{[qᩮ_~e?T:qӗL@xx9[6FWE P< #t΢(p}VMUQhqp8+y*Jw~x`mq \ f..|Z}VMUQhqp8 5ڮJ}GitP.+=MF>q_G-ƚj1] 9hf4Q\WD{1}mVR뮋nbik)Vz~Z((('aaaaaaaaaaaaaaaaaaaaa(c}Qٔb hMWAaaaP.+=MF>q_G-ƚj1] 9hf4Q\WD{1}mW@%⾎Z#ٍ4cj(w 0wث%XWcq|}Y?Va՘~f0Y?VakNw'i;INw'i;INw'i;INw'i;INw'i;INwu_jhF{uvv[ݝge;-nvv[buri[U @cM5ڮJ}GitP.+=MF>q_G-ƚj1] 9hb{\Jrۦ ȅf' ge;-nvv[ݝge;-"\ٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳfٽj_5Fq_G-ƙBYE0ǼHOH%)çG:-t< 1ceCƕC\WD{1}mW@%⾎Z#ٍ4cj(ri[U @cM5ڮJ}Gg|[AaGg]rEvֿXKVӳ6}Z$=\WD{1}mW@%⾎Z#ٍ4cj(ri[U @cM5ڮJ}GisĔw4g\oC̪ O碨?jso}ҥ}PtdF*!k!wdnyZ\%i7J-n._o4^u7 C/rlү:@xx9[6FWE PzS]IN,Wq0sbq~Bfc*wdZa(GJx%кKs($?|%bS\I$[R<j#rUdnyZ\%i7J-n._o4^u7 C/rlү:@xx9[6FWE P; 8U_B\G{fVJui''/`h%sn}/d,/N<Y=i,qaB GZ"6+bB8=0?B|K2\cx4}Yo[6FWE P< #t΢(p}VMUQhqp8+y*JwdnyZ\%%m  `_bz ߌ j=Zr/]b49#esTRVyC%-|mb{O;X@-?"eCٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf˽9ZQc6cq_G-ƚj1] 6vzH%[J߈sf~5ts[dbӧU&q}78<#;l-Xǰ7j`+fXqDsj(ri[U @cM5ڮJ}GitP.+=MF>q_G-ƚi~??~tHO _ME%ZoV(DNVmD Ir&}zع;) d6+`\/9hf4Q\WD{1}mW@%⾎Z#ٍ4cj(ri[U @cM5ڮJ񓍀„mbL%=I~{f<ʟ=8ozsdKb3oid?9TF?6MUQhqp8+y*JwdnyZ\%i7J-n._o4^u7 CHn{p% (b=whT(`EL.B zxÇ߁z8 *W([FL?g*JwdnyZ\%i7J-n._o4^u7 C/rlү:@ufr*{N4R)5vTn݉:0ZZ*PC. Pb h2-F`\WD{1}mW@%⾎Z#ٍ4cj(ri[U @cM5ڮJ}GitP.+Pd3;HSm-8[ԉ1˵1j˒ )OX,B@554-p96lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳfV֚ԋB? Ǫ.Rb^PN vp61S1d to5~jr(rh)${^VF֧L9i"&5))SdmJtP.+=MF>q_G-ƚj1] 9hf4Q\WD{1}mW@%⾎Z#d@85Xx,YsAϦβqMӑ{H\E{"ǝp"eǐ84([MNwR]eJtP.+=MF>q_G-ƚj1] 9hf4Q\WD{1}mW@%⾎Z#h[g@6Nxh P6CLPDLV2ԕۃ$6mQb~TcH1A%&-Bŏ~ʹq*a[U @cM5ڮJ}GitP.+=MF>q_G-ƚj1] 9hf4NDaNF-c\j+'8(Adl׼[U1եy-H.I88888888888888888887|ԥ}2v􃤗j&GGry*(ri[U @cM5ڮJ}GitP.+=MF>q_G-ƚj1\vǏv&PoKׯHG)fR/?Y(ظv+=MF>q_G-ƚj1] 9hf4Q\WD{1}mW@%⾎Z#ٍ4cj% yAjNIs/ ^/Op84R*7-U0(pAx%j޼nD=&mqԈ-"1^7R"P8Awy jR-ZxcPzlD**}^w-٧q `d -Vt߉5жю]Gҏn!V*keF{fww4?QcH˝ײCn 8qeG7dgp _]>o<s/νS}5cI6݌݇,nC23'u1WC W\vOE/"B"IK͛C #ZTK@C0GZbVyB+|G\jT~˨9 Eo,!9.:7Q}Ø%':}@/Tz&^mSI0PC4`R<|=%@_6`3b c i:p:Fc.f:p:Fc.f:p:Fc.f:p:Fc.f:p:Fc.f:p:Fc.Cb3QֹImq/zЌsvpJO$զy\{i껐4/gmDo ^Ϣ?UT5-4u7;r^.Ik7S2!wb3+rd˲.˲.˲.˲.˲.˲.˲`RiFqb9bx-n$ٔCo*(:8HBE<T~_A7, ̏4>>AN` Z6omC(v{+)\Vi!sY559=mTG49h|`ЯD-r NHfj 1gKSJZv”h+oH7]k[;$bO[io> Б/hmN zmUN'w~vR܅Hȸf[ݟl -n,D?9/_Y+(Jd{tmAL0]Dcx}4 ?XXhd0Z:_t{"z+a=9YXM_"8R`(YLvgc0ggҀu"z@>"$t}}52,1Ǯ%T'9 Tzϔ1LÇq3Qt8w#1LÇq3Qt8w#1LÇq3Qt8w#1LÇq3Qt8w#1LÇq3Qt8w#1LÇq3QtI ɀfk71 8*sU܂!ò4U$_Z%8a0Tw%jn.wy~ix&s4FDy[%%D( ,.R~i|Y0J*T+&C QZeڛ 9 r4w x;ׄ4Dǘg|Zփ@ HoS)&~fp=1S%3t *SBUD<NJ`AWBӚw{8o%`^_=$,KM(ufgj @\7r 2̬h!]-LaH4|G 4X̛:û@|{|9r%gh_#;W>)N8{9 JI9cU._bT"K@{kn4)]NZ5Q Pd"M5+Y+; '0q z$2fuqUSɄ屿̵qjs f??+ ]c|7c|7c|7c|7c|7c|7c|7c|7c|7c|7c|7c|7c|7c|NNЊT/E -c~[{݀W(tejW1KDZ1 }~o!2cj-I|jUϰ?K`t(zˆBzqnvg_F 5hE upD>x0th.w͹0ЊH66>dGCˑ.1䦳 굫vLE5}ݞNd^W_At5 g%Mo`H5C0KljD5p` TIsp[ްj;Y͎쬪EF6wa^rڭ8 ah(s%dj灮 ~0yV5=R6ϝ.4GN!im̰zq>>N[V:{~[^w=o.HG_4`)5b?@sӹ!>TrT|04fdёzk.xղp.ꠟq^a B>㧖K,E7x"Uq9D|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|Pӿ};|[)JXDq$ptzP}WS u-Ȳnc=:T s0|zC Yqd\b^jCgk\e4AK.OU.jII!۔> ~x7=T P(gߍ̽j63W _$N˶uL(FضCr)XxY$C֙Xr,('R" Lǩ#eI)U:z̻F5nK3YW4Jb*do5)ܗ<V$9z%!=R)7lllSBP|'ZsUz,ܼ%zLRiQiNl>//aDQ^>;1[OUz54[dQxP =(y;Q+M;IR8Ӂ'c I? ?+ŵ;OŐo @ֻOl)"^ȡr6ߘ>/9k%cqZϺJ I0AxPcCXp{xv[^:R)/R o׼&Q\m$~X7P&8A`=?Ưk 涒ˏg[]w$1ɓQbϏT\wkmB/|C6_*ڒgd.2L6ʒa-WYM.x$h2hUB*ay-dTMdYK+b<ޘwIl8KC39n2FzfJ)VK|Y_ŵ4Ygb.‚F3:{!ܙwlM.i,gAmɑ;J2;RByv!)Xhe KMq i!-7%8pÄruf.x1/!j۫> ݮ qqx!]82 Y| ]X,$^3QFET{x&ծzv*J)JaeZLQ7S3@ҎJnӝ \`q!iZ}xS' Z D+Nr,'HNc[lB(alzs0矅;X\cЄgcXV)<@a=e'"Zo9Q:mR$?<螕*$h.AS5S &Lc}ʹdx0pz w z,Dé+h&e P;ae/ZdoYR:*}'Ѭa|{1Q_&y<zP\e8]5L(R<_=KMoVVm5uS;s:C(zxaD[d[*BJxuf{sAGLv fbk8DؓۥpF+A?J Z5?nX*tcwTksu6X Q6]F]\S qvQ%}Cz}Jk{Yk5cDKڻL(a&8B!G[49eⳝ)uy,@V8rǻ] q ki۷ mutuȢk<(H㵐Kÿ6C7vNe ٵs=.g$#IZpU*=9^ 2ALMrxʋ/tv3V:?`F P h _F P h _F P h _F P h _F"JA0Xt IW!kx7D&s  H}m3XPڬ@7,~'Wx&lxZ+lO׶e Oπབྷ}ZT\p53r1$6/]zhp6jYڸnC2r7G" fhrx,Ikj_ ߻U46GGSdl~3E2g]W> C M"u*8'̜̑tB4; G>(9Ru./2p jO9"Z%hv<|QO33s (  98\^d<ԟ2s2D:K 0-xfgk %JAPskPpx%>defXe1 8kqS]wn$ȱxE^ }GCOp%M[-S5aKߥTn}m9k c92^wЩ"?  b?N43j) 3€;r+01ގSTT?feS|W~Lǎ.Wɀ"_{Ax?n4+~μCWab/߅$8k.>"k5n^e _ܬp[. h 7tW;W`/&C 7ĢtS,KnVw3C\э)S7^B%6yhc"?qSpfqh)6JPj* ?˙Gxr[},529ORu5UjMT<Agh8e4a^^7Qha3drB.+}E<ůS+:q Vvz62lxA@ּF-Bm<ﭲ`$7?57uk3Nۏͨenu.޾4"}yϖJ(wTBAD*9_L&"4OIt=6P.c24"MG(h yYѝlpTKPL$ h+BVacvZץqr݀]5Ư^lbϹ W 3wGB!u@ߧ?^\#^'P_kPעRAp̅&ƍ,bT)i+Vcܗl`ІZ)Io-~X]UlM )CtmNq#mo0q\ d% I>^ ~6:{L#Lqu 4VX>i~ӬE2QHC%ŀYڄi& &a1Q<[V;ts#MtCLo%7BP j&Đ^>l\9on̴z P ޣ%aI AZFu{eꚨ #=#2E,.GUSF,717(U*F\)@tgH\@zG9kF!l4KaydZ\ 얹} 3uLEt+쥺v 5GóGe!K"3=ӣI[PM|{L6{9r.]juhL^ȈND$mw'7] Ϩp+9gª޻ x_S7w8>eT뿋oƉ2 Y!ҭȮ,Y_$V|d^8J"f|h)Ykx*܊śLg=Etr+oƉ2 Y!ҭȮ,Y_$V|d^8J"f|h)Ykx*܊Ńmv\8HeAX M_!@R/bĽ7v>($ JۄWYvR;;k~.奿+HD *n5BQ4 ]Uζ0Mnk\Rr䪯\ E!,CzM[ a| u~Sͭ"VZ$aKCW6n$qöw1w*P/U A8MaQAVa(z_93JVXXb6м*fLDŽ -^?ÅC`@מ^Afq953L 'A苕L8Dbc \/l7tXxz2߭V[ޑa~:,<=ZozGE_c-oHke[ }a#կl7tXxkw1=_l\-n"d[`K5t(~J/.i:qek(H ͠ ;۶}5J%k>[z&k<4ǘ,.̰]"^6o@y{A2o[iKD otȄe;NBmCqfyb%9u;hF(ՇZviR<ի\gKf^9gP<&* = 3dWx46oq)48xLҖxp"5ҒN\特C[όC D棟pxܣBD)@+M=/uQ})$'/$aʥx*8/P(s>ei1tp䟈%.n9Nޖ+2b|>èM_!/QgغErjA z=+ѼM +G4F͂-RѰ"Ntg]e(3vJRrF _Elq'i%тwimages/about-header-privacy-rtl.webp000064400000032454152213653150013515 0ustar00RIFF$5WEBPVP8X WALPHm۱==(Ol[m۶m۶nmQ}m/궜1 -)ǞwsoMW [z-ś旳-V5ό}o蟺8Y_6d.\O|% Jzn{%w=5񳟗?ҼJn)0ჩi6#ъ2s {nW>nos|;Xͱ$#}:ӑY1es;H\9Ͷ9^kesL+9~9t999V9asfs4ls.d23mZ",<6 ͱͱr;c6G6G)6gG6őq]xrNkcZgcvwzͱfwT#uI$sd+9*9fu9+99W}6E66nj ͱ|;#yq}x"SQX=HaspqCdsxosXQ͑69{3dll9%6GewvQ͑: x61ͱtQ͑>x xq1ͱͱfcA6G6GHV6kml m6GcN6G6G|\qewc fKcn6GxuG2lmIe6ǯ]lŽl՛돰96ms$d2cߴ9l sm9^ɰ9mgsX4X͑<x1QX;h<`]so$su JչuGEflsunU\-ѹe:\Vj[έӹ ۠s3lne5\5\S5\RR-l.sqsy:s:RZ\kkst\Ε\Εh[3X3Xͱv{cv6G.6Gߘ#s0KͱQ5ms,px͑ࡄYk6a6džmi67G6DŽ2ͱvT#2KH?Z2cfc0c6G„y6k6םl[K9/9/9&3llI9v99ꎳ9K"GmI%6ǂ66G(cݮ6GÑ6GH戯dδ9ʱ9jms|Zhs|X4:[HO\sA29/9mγ9>.9ft99w9{ZD6:is9ΌdL't99Vnms,??;92d^l6rzͱbsc6G{3mgl:Kzuq6E6mY6KE6ǤN6/]m6mSm䥑}Y6Ǜ676ܞ6G6ǚm3m-6E66w66ǒQ6GӾ6G| l6e6Ǣ6Ǫ16Grw#>dfcWc c6džCmƳ"#3!sL11ds,Xwt] BcAOjͱ~{#}e:ǝ6DŽ6lm6Ǧm6Gu6GH6Ǘm]m5luu&d 92G@+wl_:˶9v9mnl'mwKlzsh8/9#9ɵ9&?w9ѹI:stnέ׹Αs:J\uֹ:Of:s:wΝsܥ:wݨs}:=scu]Tҹ:Wsu>LKf\:\uԹ VP8 H,\*X>1C!m 4@yD @qz6PVOo, (V,||]?{"ӷ'?uG7S?9,~{@u+_Wޖyn~.uO&GǚD$пH?ǰ?];y~ƈzhu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]VHu["5ltU*]Vg܍@ gZ)J3n./byO2O1<'?'dc̟byO2O1<'?'dc̟byO2q\i-Ū~8;z}Wi)V@k FNtY~tn,5; ҕd?Ѹd0x7JU>GFQ)V@k FNtY~tn,5; ҕd?Ѹd0x7JU>GdH NG0WT'lSˈpqRtw.#jNezI߸^Y:; ї5'G~z2=f/F\Gԝˈpi 6LrO$:֬V p ~Ԩ+U6a6Bwi[4fv3 ;kaNFaml#0Ӷi[4fv3 ;kaNFaml#0Ӷi[4fv3 ;kaNFaml#0Ӷi[4o UBF l ؁m)"5'G~z2=f/F\GԝˈpqRtw.#jNezI߸^Y:; ї5'G~z2=fn fQmRqw~x/f'(pF\GԝˈpqRtw.#jNezI߸^Y:; ї5'G~z2=f/F\Gԝˈ@]Fvfq0wZ'GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGHӃALٚ~7@qi L ї5'G~z2=f/F\GԝˈpqRtw.#jNezI߸^Y:; ї5'G~z'|\GO?524f/F\GԝˈpqRtw.#jNezI߸^Y:; ї5'G~z2=f/F\GԜa#]2cj${$3o]2._ Gg{LXp| u="~CzD?zI߸^Y:; ї5'G~z2=f/F\GԝˈpqRtw.#jNezI߸^}ph4 'a&/8T$dc̟byO2O1<'?'dc̟byO2O1<'?'q7􄗘PF3YNJ ї5'G~z2=f/F\GԝˈpqRtw.#jNezI߸^Y:; ї5'G~3iV&bE|,9 `3Nݐ|8G3 BNT^jt~,:b嵐 [R4DE@!upkAw B^NI$˳0ETlWjxNSdz;]c1N?Y, ҕd?Ѹd0x7JU>GFQ)V@k FNtY~tn,5; ҕd?Ѹd0x7JU>GFQ)VbE3Eaa\JD4JzwygZN0\Iҁ7 RE^d%ZՓE[gY(BNT^jt~ 6 @Q 2P;/Aֱ6Ԣ%Wq`n BeF$7a[6DJxY:; ї5'G~z2=f/F\GԝˈpqRtw.#jNezI߸^'όk&fA+ ,Ix]P {mK)it#5Ğd _*"a"Dץ.#jNezI߸^Y:; ї5'G~z2=f/F\GԝˈpqRtp{%! )5w?^"V !'*/5:?CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCD&' [:$]cLe솒Z)9SQufCe6pGY&q(X?g:7J\Xj2w<*#sqa`n |5΍ņ'qR?g:7J\Xj2w<-DB[_#<[8Y/W~GxbYY6 F(Zk鍢z;f]MP_LZN3fo_+˕-1U#vg*i!klf%L܀ 7b6zdi]ss؈#?2!nv(ʿZO&-+?BZtc?{P_^A|j$:\cw{Y@@czaIAGh wNw"'G<^"q,td ?z|ya.]+=UCQG#^-RvG-FA𬰑 = A,LjMDvK+oRe t?w#L AqX E"P8/tլb^.Wcw !d5\0`cz;)S1Ԉ>C)-lA bI2҈Oޘ|% 0,JSRtA-q*)Z<] &d r\(|QTd6Bvߌi>pse8)c{>sEdڱ)ԋ2BIR@Tk ܒCS7?HcfhGe+ZAqgP1c8 p1c8 p1c8 p1c8 p1c8 p1c8 p1c:@ה`sD^=BW ͽ=[<=T_ C004Hާ.+%TTbGC9kd kQN ˫d;VVы`5HM>ڕ՚mHњ}6Z]a>^VQ}9 @ꡑ"h{" s磴H2vJ8؏Uu`'ĺӝVl ۗj#< mhYew gt H_e@,:᝶֗ #Rh,-K@j{C$ G3ETz+-JR{*q81[Q:]oEu!I kIwf·R1RrYBW%uWÞGy>cO<(c\ PS\"pMq @n<5AX` G9Va単{,nQr46(047a=bm9jY[̗,XWNpþ˷C?d|^ܠ۟;ɷX`JBzrn&wM8+费µI).|i^ƃ朗#h"9ؑJ Fzlΰ,{zz $1UV#5>9)"}sS.UF;Ӻi)qcx`(h?e~`a:5pmxz2ɫ]=&9P9?x3/wm hTe43|"Kǂ1.oJ(Z@ls j- kD"T4#xdW$NFisw/_AwJhN(]ݬye_gWIud8QwjA`-}7(5,s3XbCY<1ecB;^ .0ȑ/bsEw*?K9ɑZjS5.nrO3 oǕQh~8f{3c=5Pݤ]6g$>[bN;f/Mlsu/< 4e`u@1nv7;csnv7;csnv7;csnv7;csnv7;csnv7;csnv7;csnv7;csnv7;csnv7;csnv7;csnv7;cs׭dn%QѳRѽ4`_╃h;e4Y_v8vt$:@O~.7XL;~BMLGNKa*p!5RDfQj`jR`yӑifG],^] @O?rǿ:Ɖ#Gyb-%{qT?MoH&?XFgEuւX_ [xߞ2-I:®с)!+5V{@Qb;RσwY!/?qł9 USd_o>RtX]ߑ!sOcBbY vPqВgxi0"y<߶hE{0)..ݱzOڲlM7avQw794egǽ;GA1C[лό^j%EM :GfemkCNQr-Dq=S|Q<$VB]ZNv?ge5TNJP3j^/"~q--56]k7ًǚ-J!vO3x/hr21;E&t!]h[Yl3\&@ggq?# 6zޒzj kѕrM`<#O+(!BLǃ5=V4Y0W{[qdn><DQ. 4^|]3'9MxLCH'_ t=yp0'C`s{$`-\tkK~>_r$VemX1O5.DvLKI[T< i*/YF"h:ãb$W8ڪXOږNp@\dY;'It:vJfyQ&P{<1h rmyKB;a⣓XD5w;l~2L]&[LkıoygeQq"Qci$⠋#CK{k>%@|omwG>D"[]-Ȗt}K{k>%@|omwG>D"[]-Ȗt}K{k>%@|omwG>D"[]-Ȗt}K{k>%@|omwG>D"[]{:!qGN `ΎAE.x|!̨z>)2WõhK*ig[<꼏g}/Ȑڮ-wAě_N_ǏnL?>ȳh%ۮ!!A[>8>:iC|5"SGQU y,ӮL*C)sԃSsÎQJ$[^[5V4!>rX)b^H~oja pV~:~ڹE ѲY-Lil8G.hTAhA_4A}2 @]9G%Di:_IzcRY"ʩ)@X-luU I#CR+owGwi@yV p}}!KQ[Y?A H & ̥gxlkZ P^tSаV}q17r 3Fo-  IjX[?g\z{~ ԓUثNҦD7)[[i`^*^uGu@A{D-4 d`oFk~pzO089Mڐh_r=Ղ -[} iT~c%+mn%=Vc5<%GzGܙIzolXxTVp+ې_ynzi+Z|ˑ`͋s2;/=t@*,@@ld͖K*CcbIMF_̑+n_zgh"*1&l,K'IROLvqJ_Q 2z.r۫wgYٖM# ڏ.=5O3w(% m9RyeATlsZV? F:yyf4g?eԈ>v~hN!`4 K3WʊbT]@̒an*=@oVouof`gbH۩RIV# $꥙DjDn||ETAPI& rb O:z5 H!5h듞~cؗ)].H[$?DbT֏]$ [/Zt l  2{9{.#5kB6WÓ~|txƎFVTCԴ[lVj>5 F1U SՂfpV'].(|c ?Yz${+cXMYay9lfEDnnVb0q1| 1*~ ȊʬQDgi xD] I22V4_{ _%80ͯC{\5?#o{Ŷl5EWR=chB4-VzD.ag|7pg3 pHYs  IDATx՝{U?P*$a@ h 2 4ÊZzXXYkYxAhSK|| {w~73s/[s̙9g}~s؉`0?0G7\n;'xO{uvQ tS97!}=& X'扞zQ8Ⱥ0c4s؆81͡X tʼn}1v 0hN.=pK&Nh#??\۝6Cex-Z-N;M1ԉ9Qo'֞nG X`q- _=ww IDܟDC>-ɏ#`p 0hĉC=}?lF_ ljyo{#d"O_M( &K=yqbd  Bfwu}rҢ~81wn0 3{1s9Bqb^ R3qbX%Fayu81Wf | 8 حj'+b]81/gLG@?D^E#(M( 8 qbV9u_ l=Gqb^/DaQ`1"],C)Fa~D׺8>N:〟Ѩ0p0+N}vaC{c7n`]'Q`c0P/T\bKn@T}X|6N̫iZ4i1=xws[xӁV4b.yP!LJ( "`D wEa^vdb9H%*+/qbf]q#-; kEuv^X>STѼ ʼnʺ6qCoq Oc<{C~X,2K-X[x!@Eu5qe"UPB9-V-*2n&oĉ_ZA @&H\y " n*y*x.ͪ:p 3d ^t$}HA͹m81p.v;Kqb^w=M "0(A4r0Z Å:|Wx~qo M țDa0!纍Ŕ61nPՔl56vt6:<?w<č٨u-,9qF R ؝ιwa"O?pbAKxlGZ*qĂسh; 8sytW7.*A$|A3MII坎0D+r+Ӂdf5d1z$"4K^|7?]s$^N%'`Kи\#O|/do43!)"K]\^HqǗ;~`+)vcT7[s ň?81knW컒vh;pfDaPWBjlGQ QYi> Y`̖Չȸ( mF_} ?Ƞ^eQU~T0~{d"wug Ѫv2QV|SPtx-p3 QH gଢ%ؾ]L*"fq>9} |=G#N7 `(pYB?oa"I jMÿ*[E{5y5ꇿB Smu6ʜ( r881' 'qw X؎Nh!I_NuƼLxg3Ls( ETԤ;N^wEBųV 08 Yxzl}2d'Ƿawt.η۳bŜ'$s*ϡo`r&!!XxPP !vXiZ81?Dۣ7-?T5SC$۹D/ Qe| w'W"SȺ\5lYu]]#m^v"jyg̶Pm3v\<\OgBUEX-0HʹqXw=J3=Wĸ1Xvd%$+~soE{O"{ڬ@EEa03~\ga7t45 p^;ZHF=!Si$]K!f:`Gm܁tq;{WԷAN7X&\uء;+|>aN{JC팣N4Q]dߏ }z Խf֞HV8 YڎSnEvv?#IN dvoCynN4LCІO_iXol[IENDB`images/about-header-default-rtl.webp000064400000044572152213653150013470 0ustar00RIFFrIWEBPVP8X WALPH9 m8kzWDLI9AGH#UzNg^wm۶ڜgm{m6G;hiMr<mی?+wDL?6.gtyպDv' m& cQ,~SYdo#o]%n^+h[ɝwpd1M|-嬷+ɚWcjV&[iZHsS4QxI$zf~eRst93 qYwHk V&U٭ Iαp\H$f20 &fn\ &*\{ttq ;.3EpJcf?0/>]ecnI#rIvm;FW%ηc[))pjZV`Gp- <*N%qC+W*SLl*έT*x#xkxM5қCGWg!PԯВxs-#کShNǞ414뺂3y׹ƘrBJR}D}U<14<$IԻ {㡡GVDC[_)rECsbE1wMH'4oC9v;qSh<(dsi^$ȻDyw $ռ`?"xtc\ y.@~b&=CC.xDS2t|671}q:V~MXDtҍ =|Ishv"YYHC_߫&qKۈMhӳ(|O_*eyP.2u+tfɼ3 @y~ 9o|苨2`"Q9UڋZ 2Z'<1\@Y|qy+^.Ќn&+E0:w0`>bb)DGH Sn~"ջCU#MDq$G2Ӓ q0f7Jl#°M[K2i=o{\90|[$uW`rc"U9cBD_`r|a xbr~H.`rpn#c_ˆ>`LWh{"'U!uq"0#0so`pdžo;0[1DN !DYQR0 C4?˳9z]aDž}Si۫ ]Q(9m1 H;" Lg0{T%;ҭ oZ]U@߆ Qts9#Ntz.8ALv,oI????????? :?n8yոknoy^ݵbm)|sbNϜ>_nYZџ=:y iH-SbgRGHܱ' f9 I:F"dyQHCZXpw a]*nlYڋ}ֽM.Swp_Lŷ[K>_nz<%)cNj kq+Sf1S7[&5y@_ۭh2:3"^y)Ax}q6\_&sUmS3X"r/ffrQ'ferfITgBۇarؘԼ)CrJmfr1Wwoar+3[egrom]br)NbrW~WTJ\6*mgkCj09k{ "n$&vGXf&ױUlLN5򲁅LU~siiLȩ*fzmT*ww+jgrʭJDN5ĺ%&>| s}gLNy=m &S}apɹXZTGIT.S}:sh`Qɩ~>:{v&Su[? rT/,nTcʹ*~WLNUVP8 ?P0*X>1D"#!!"` gnn_7ۃzuz T'a |x!?NAg=yOG/O gpU~9g>x/g?o~޿럃__^G" ?)qpU8iHs`_}{OV#k؇(J}hV>K}Z%Տj։ocDڱ[X-}hV>K}Z%Տjt%Fҹ,Rw){;ŝ^E/qg|QKY(,RTWTkD'$ oVVkE}R~1U}gw"JD܉+Wr$I]Ȓ%w"JD܉+Wr$I]Ȓ%w"JD܉+Wr$I]Ȓ%w"JD܉+Wr$I]Ȓ%w"JDK} ?6P9j<萜Pn(7Zx ּ^uA׀kPn(7Zx ּ^uA(X٩!5c`s#%t׀{坾Տj։ocDڱ[X-}hV>K}Z%Տ=B)(h4K}&|,{dw){;ŝ^E/qg|QKY(,Rw+=hQ NDqL%Տj։ocDڱ[X-}hV>K}Z%Տ *|m+| +E~\"_W+}p=a&jCҧ.)'pu-| ŵ6ਂ4-R坥  ci$a1X)ZSmhāMTkD'$ oVZ!< Sz ծ6ֈO,HޭuH)Byb@kAM7]R mX)ZfM۱(m]a( J \u7CɼL|R޻25>*n ӰRP/s-n-NrWܶ;=[çg^ rt+n[x-aӳܯl:v{-NrWܶ;=[çg^ rt+n[̜&S1F{tVLc./O \C"!q!B:sϮ~6 mX)ZSmhāMTkD'$ oVZ!< Sz ծ6ֈO,HޭuH)Byb@kAM7,sxkl6yKw3C&cytI80E7~ RF۬&\[ >sbzv{-NrWܶ;=[çg^ rt+n[x-aӳܯl:v{-NrWܶ;=[>Lu?EBCۮ5V9lF{-]FQN-;nDw!L뮸a:jؐaӳܯl:v{-NrWܶ;=[çg^ rt+n[x-aӳܯl:v{-Nrӱ,> [Q P#8fBy`ao[+BT3QJ([A7-)Bb@kAM7]R mX)ZSmhāMTkD'$ oVZ!< Sz ծ7Q/(v\rW4rGŮ=^hVr_x#Bra&<%RrJf". UE*9%W3b"_D\㙈U|s1o _Nԛ:HMiSg|w7 G;We rY;E.w}V] DWD\㙈U|s1pJf". UE*9%W3b"_DBzZ Zv?' ME*.xzh2ěls"=I|=%V.>#/ ҧ"/01l4(bc ȡ3L"/01iΗ,6%P[C} 6cDlV)xҊM}ۼ+7o֦ݗkgxø S(bc ȡ3L"/01l4(bc Om׎~~aH?j6nQhMvlpEz%?Av.*N(p/  tޖ$ׄqzZn:oK^ MkA-xH77c̭,_z.1/4y݇i,pcYE v S R@ p[^g5[X-}hV>K}Z%ՏjRKLҺa0-F <@3(Z8boO")a+Qo0K}Z%Տj։ocDڱ9-ug5_i6TƟܫS_c!X 83=~/T'?Zn:oK^ MkA-xH77  tޖ$ׄqzZwD"g׵"ְtg\No&j7E~\"_W(T wC5HXSظβϟSQREw]98e2ƗfE ^ ac1x1idP?Cfhqg)]iUy7~$ef AάNIv7 bdc&2,#@Z=q=f Vt8w0@~`+ ZSqR;0n9o Ф#@B=V.W=2*Xa^sla X CД~2)l>2{jc*[ھ)/}eIp][d..jR!qsR \\ԥB-5)mKlJ[d..jR!qsR \\ԥB-5)msD:&ׇˑԈ9W8\z" .geTjuDbw( d2X9LpTxShk >3ids8!yeQ>: pߖsXhhcOtd:RHxvwO+Il4KWQ<K~ 3ǂTn k  k  k  k  k   m.Bn`:?'9bNbF+K$=M`\^m"I 3ZP21(`HBO1WyCTe<5G|QDQL+;U򄷸֛/S;dA9#!)~+|>(Ծ't4aF3YQ2`U*o(ÿ_sݕ:ӷ3u4svu3T}_Lө{j4 E2X1k?Z-9X/4ljȐ\l{_V|o>5#9/JKqo2˛گ'M۴Yơ!*8jGag0% S̍&Hpji0F\Kh;'`b$4\6|.`zܴeR9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%#R9%+?U&.*_ .?qa-Y~9]?̚_iJ‚ډB[x|yG^|P'Gg^_}Œ.)N+Vqs2%-ҲHHҳ 9jO I=23y X^H~\ W8?pM@,@@cUd¥x]ߚi0UsqFWt6+;T]vFHj^KjF0j`\2͖?X3o(D$-RUNᗴ]?Wt+,Wy6:U/_@+SX\+T[եtw]_hs$w*L5'tJ榰j"k}Wx#ui'jU_0'+yzW/X}4|REFGa -_:CRLcdt?GwvJAXNALI@'!A:cc  md'bɘZW;Jtӵ1ܷܥ:^_"Gf_YxG1>j&%%Գ;對f!>ַA&KP^*v%$\O~bdSd6\g(|%ĘqAԕWTv/ӌKKXH݈a>"dQ-h> y,Cg(a\Zgċ+78}䟌m 9:? B$s[>_aEO?1 m3OpL;yWYЧĸ ȨK"3oޥ3Ps{v2 33!܉.LJ0wVDzk=<@anPщ=Lj+'5\`/E zMTԋo:OFx_rR\\ԥB-5)mKlJ[d..jR!qsR \\ԥB-5)mKlJ[,<۾> p'^_|}p`VQC}^7~ $47t+>3{&o<#ykWAea"!x[Ӻo`.6=-ͦmAؗ5°Ug?'݀Fj8ƣ-:+~ǺfxeYDdQy)ݻR95*ިҹΡBK캬r%=}gjo?J{hu sG,Mk3{ba SĶ{Ti߯&tY%yi.9a鳱{N^ e? %=L#B BZsmu]F.q3-L==r[:H|lQvuC{mT JKz0QknLZRyj\k7rOm(hP *JKQb򠚺C?`% (֝XeAdԘ"wS.a7RT7{Q9>Z¨@mCn ostIU̵OYyVL;zX4#Rkӣi?vġ@,h:w&7hV9 3 J8(a"I7\n7/) Xb<-p`v^u),zZȖYtwMH sFȮ%szJewqP'G}d-w 2`&-(,Yn؆_bZ0hL<zϏ®.,%{#TT/|B%}g|N$5_%)mxpx'V "ij, ypx|wQ~n/W@ٕ;q`#< hN_Z^/Sc[#bD (A' +΂H6>P3G\im7S 3d+r?>]? lo\{fz9i|s~1„/u@ p)P€`FD'eؠ^ҋhH_ϪXtRJ%tL[=LxE )Ѡ[xB5tF$sۻQ;(|Nѱ;IhJ :LFf\+dzKM;\L;TmZ>D{JMS$+dX-VX)Wvl{G-" Z)$nḔ@|<*['G W_gX2@ܜB (-#MD5&bCH/W=e!!AL5m?qesA} | sdɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɺ/c f,&~jH~^1Fyku K@rtEE/H澆-S^v:x!%%r^JEu vW؞&U \:lƙU$6.۰؞UuCZ- 1;qʯH3ފr^?/lOBFhQh!ˑ_xNZ|ePpcue=`jr6B[g䃩y_lx?\O;7](qkO ӱUf'b)[ELg2J@?aehAGgh{xxZ㌿QTd0!QxT^*/EQxT^*/EQxT^*/EQxT^*/EQxT^*/EQxT^*/EQxT^*/EQxT^*/EQxT^*/Eۡ+Pu0Z`9|E"%g7pGpJA&\s|ѕCG5{blrs>|@ВtwA{YAP0wVQP9j*MA`9bX kaIʔ K)l{|3_T$pңhkn8Pz3^9=7s9ꂷƬ| 26:7fEj<"R3/1ߋ!ʹX|NMt~ Ø*:YI̐@'b!8{`v.ЦVA{@xvzVd9Zj=fX kt6GJ!Amae\ȺdܵЛ+l&!3*yD0&W ݒv(`!FLkE;ABz6kq~BN]BLll!Ws8%ki.u~JS6|Ra˄\5AD?Qsp6Nae_*/Q= Y^Q6v4&bBf}3u2!Nh3s3e }rkO}EŞN)Ҩ\,SͭȣZF-#]-N{3Z"SԐSH%7',8;5\T6/xDzKI4fyLV}+^ػQ-XT"%R[3%%d/SG Eɗ2:y9ruY@f#I|@ScN#X7Wb ? -?*1 5 rIk8 q[Dβ}8*i4& @^*)qņUj e^典1HS vE{I駑Cj |KI+6]GN{mQ Ax(Ɇe.|~iys>lGMQJ5>gX:NTE &ǬjdFoDX`ZI&| 21cfc$V`z~U©rnMg_3QELCg]jǙT'PG G3;2sW΄LwG6c[##nKX(KWqioPʜ-6Oe e;_4a]~AW8D{l0.c^]⤘q+hIfM˳5 ڌd?.&$2Cr 2 *|Yaw>붡%l4eߞrgP=&jAjYvBfr6CY#BEf`n  ϕ-|FF+ ˝ݦ+kt=y ;8z XSR$=gS:14ܐpPAxWzO K} ]ϲ c{~Ν&,gɰ+aRYl5,~GPt@'86REW\h1#6cJZV>', /:R'·K tx|H3벡!`hzѓQ,HX(˜ ?*48!%L=P@rqt &X:SNs8=5b7U{E:4.ϑsLC*7sp3}g_i)~iUŚ1v1w߳- T#_嗚fJ$0 ?Q$*1E_nzxfm'B&>i8%1l@ #cU" BM]Pc -Gy@89߄e7դ|s%yD-?^XqG g ~)R)QRê[[W?Qx PVS;]f;}(iǏ> huEodܝ XB-mdsW1չ j48J?m#>In3>XkX8J$.rI4(WL2an+^G[ֈxb0^ AaD6b @I8Q'|΅KNuyg/&JGW:Az=6 1<+:phBטS9JRȩe&D{'Q"h=lϳPn>ޯ"4uvHI.2V8g2{ǥ$i'kK8X*|k/_3x'ckQ + ^KEvLCir6%ć@nfIe([1gY^'Q~LgS4a*&§YwB>BE΃4_1ۿᢧg3>LE-DhµDIֈ_:EgiUA@F`wh 'bWn1Q u2o2_K摬#d'oJx$/,3(M3ktM$IaDfU5YS6-k\#0)IbUI YX1@ƩS#[c[6` DDHؙћZ91{C$ۼLJmq lU5=M#`;t)%9SqןTb?^hۋp\|)(EO G,}DO?vWM=Kg)ohOfcG6@nіf[Wp苽bm,`Y! ֲj]E~FT H+'Qr'PFEٖ/z`AnQ@S-oE /XKKjﭏn]0䶈*Pҩ9h2W~R&"hDv^A8hJ}S] ԕF/[9f:%O{}[E Zil>uLhfY֮ G \XmZ}]6Ndg8xv=UtFI#': VMtئUO6, ךD:K4L2m0GTLmLshn'T-8Ma><]WT4eio+5ZhC3۳6xqYYUbv :)#`t03J?zw $;YEX}% /rzDB.g9EPpY[յao-۫ԙ}P1xOI LtHPinm (; Qqbc9~(V|UI<uұ;\NZvmN]} symFr 3S@̤)f]D#Jq9ě"dfDyNM&WC0":zzy. P$_ )'!zP7v`H~&.X :Nk&O'),<Ô #zs-OueT ~(xf6lp@D@A.Юc gAjBIZĵ!l&Vj;%بR{~I \<\rQLJAã@*u>5"6zQ#jC J GOEIn̔`Oƿ;H)i3gZg &ٍX~V *ol3Pn%!/KUw)W$Ggeq㦙z^q_;Wjv8EہC{+]:gzhw/۽N4,dAbnKSu4"vB(AMfm`['nȼYXA"]n@Hm$.YGE5rcn_^;k H"ዤ\ W#?j[\,H2qSrȜ-Wa͢.sE}VBDEƄu&ɎREnG @;a@iRb$BiX5+b6}`ͰUw~[I`JV *g`Hi9v#m'I:TtGhk1+[(jC0g6Ci,Ď!:}(9:[}ߣuXZeWU -%%ZhڷM v>sKX2nyى6_xb$K } n V_hZp=\D3| ܬ&J,u6|Xg#0$EҥL9KՊvu:= tOa8j$Q}M%>/2FkY Q1ϗNrnG TK'W &4^~Nt[bFLqB4PT:Ql,T&8Sgv|~%@AJYmwT{5 5%~6 [w8+`2A6v*'+v]qt5֤\1}Uv_GnHg!!wxakH9L%]Pƿ ׾X=确q41iR$($)$ׅNvB'*L#*>0"64Q>1Ya !R \\ԥB-5)mKlJ[d..jR!qsR )Ǜګ#KTi/Jb2#'SGQODD!0A޾@Zk C  +"/z fʆ<zL:SBaf$`[~00cyKЕh%(k{ ee^ p:\Ihvñ 2يorLS[etO?R%lۨrlBd[?u ^m){\qv M%|H e!=33 Ѳ{<ԇMtX}+6{*N,ں[On3+XBrk''VP;BTS'23d=+8q(C2z`êVO8qhaX髕@?s>)K"k*A86Jҫ|4k炂ii`9x7Xq N͑^͑7AAj1j)E7XbVsl8B͑9Q})jj}cWs쮢8U͑qTVshH9Ǘ5ǚfȺL5nj5ǡfjjG|XQO͑^͑vI5b9⻩9r|j9VVQshHp=`5Jj#ש9Jv9:Hͱ#mVK cS 5jjϣj~Ps쪦8JJ~.Dxs5GF_5P1G9vVSs\Ⱦ]aj9U[9RscF`C5GX1_nIr ĆB?Q 7QvU3ZwS:.4zP7/d_gX1OQgc_nO9=^[FuYuo.W`i c겇ZH&Fd]Nu]aB<*|7?}ۓ# ',q4_q~2*OSu7ߗU'c!]n%Y19Vpaq_j#mh؋?'<;@}3zǿ&=N\PR%+ 15u DL]>'ؚ%c{B}$ynwp )[!,;][+!s-p9["Y-HZvc5±F~+bF#$K{{,Sd*ʯ8Z(!gfaM©~1, 4J(9}~3xˬϜX5}Vv`a>=k=m9^(Mxܗ8#їǔ넭|@Etps < H _8q | 5u+%7paю,t=RȻ{; J^*'uߋg ̌+YCM(EKe9+aPU:VWS  S ^%X+?޲@c`hc:TBV䉓 L& t&ߟVP8 *X>1D"!; q <5?<(  uB/xxW΅_% 'KaPvx>m#_p_?tg?c 9oo;7`ܿNݨ/[Ϗ?xo??CՌ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXǻ=؇V1:v!Ռ{>'+={c݈ucCbXǻ=؇V1:v!Ռ{c݈ucCbXŃ/vr#ZZ[qjKV0\uڵ9թ5vNaĸjs n%]Skq.:Z[qjKV0\uڵ9թ5vNaĸjs n%]Skq.:Z[qjh`ipԕaS ):Z[qjKV0\uڵ9թ5vNaĸjs n%]Skq.:Z[qjKV0\uڵ9թ5vNaĸjs n%]Skq.:ZaHa(/S`0Nn FMW~j]5wߚW~j]5wߚW~j]5wߚW~j]5wߚW~j]5wվ ;$ϡ~_bz5I @rSҪ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>'7l!x4iH5t;gG< ]5wߚW~j]5wߚW~j]5wߚW~j]5wߚW~j]5wߚW~j\*0 yw-suvA Ofu7k>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬzaل4-S]ܱR˄Q+r'JhfGd)9X MP.Xۆs4Qj"-DE"DZQj"-DE"DZQj"-DE"DZQj"-DE"DZQj"-DErp$㲟U(Y8Su]EU[B߀>jocsa0k9x'/rN^ 9x'/rN^ 9x'/rN^ 9x'/rN^ 9x'/w> -V qFzŘA#_Ē &oK3e,;mMd>Ao>@Ҩ9-I8'tp:NI8'tp:NI8'tp:NI8'tp:NI8'i*@'g$~紬%@4@\L&#,xew?ncթ5d74%ki*C~[xilpG):Z[qjKV0\uڵ9թ5vNaĸjs n%]Skq.:Z[qjKV0\uڵ9թ6l$]L$Nhlֹ!̕N޹j'|q_W3@W HF,\L<`=NH 4cT*7`] -gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYX2lc`6JiJz8 _9sB!-q9g'H۷8gRb}bZ`Z=6*M,=.^3.Lwٝi+ݷW)`";R^ z뎷JB29uS|,ن1j"-DE"DZQj"-DE"DZQj"-DE"DZQj"-DE\иzPO̦"L˦U,) IĈ68b=["9[/ԦEJ]BÉ/|BxQenV#-0vȂ*\XU)C,U)\Ndo Y#33HpJ]U=PVy҂&Z{A,>܍^m},5Xkr6+UyglVoAo)>5a[ r_g(}\v[&Zap ~IJ&zԜ5u;Q: t8!Ex>Ç7^ȁ#?6a%>82DLJ~|z'nzIϮ BC~j]5wߚW~j]5wߚW~j]5wߚW~j]5w9Ѵ4#P!A'7H=BpVl2ODpY??=gY:{|yÆ>sU>Qn$q2y%)ZkςzLbQR悛|(A=KWC![wʛ鉁ϱ" ;sw\j)YG@ A,!x"DK؆`2E3B$^|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|Z0ClP 刟rD,%/jTp*` ’̫ei ^00O8oi:ㆇ$z[RvkRŨ QUP$G8 aH&]Yk@e$Ͻ&q8a=M`!;w o<+p kTvJKYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gcד3݂oqּHF/˯im/en׌~$IX|)6͈#,Bj=` cSt_ "Tu1F[ԨJ %{VZPۗv&]r@|ZϋYk>-gŬ|ZϋYk>-gŬ|ZϋYk>-gŬ|ZOۍoc$ܺ$OQ֢7e+!6N?i{iL¡]*h zS5|ȳDVFU!ZH7y^Pqf>{BY y)of:syvq]$owT\\{S8?#`Wv~K nFj6>܍^m},5!HY@dž@yRFuԭ5FxZnߙNŘgwk&daC}%*Tvȹf|iY_} @,!9N}”&l ;!$o_6ixfz )u#EÏnF)'F)[zwHz9 FtǙ哻=PJ,r#z7zsw;sw;sw;sw;sw;sw;sw;sw;sw;sw;sw;sw;sw;sw;sw@@[ J=YRy7$RԮ~]U9<1M$=(~?U1= KcLCzfD=) X`':6vRxCZ'2FZ+CIT:$*M$۬pH>z3N/HJ=c?Vt%+luoxg32팶wa xI]iM"nR@IhM[L|U\  "t a tC I'1!]ɠ=qGɐ~""Z#+cZL J"c w]:n*1Z!2iOLfIAW&IaLl$:Z悅 {rr!SeRZ=xi'ե5lJO2#e`>I(U6k_V9B_Or0 7%?Lc*}:rȭ(@.4;־ OX࣯Xx[i]7XˠK- ʎ5(o1(P3%!Ax+앣E|e|3".R|*QWg:̤^QI_ ݮib,Ro/hؙpetR}:}I1$$lCYȷ ʄY$ɬS=x_mD%}L4uܝ<1g:`{uz3HژgpZKܑq\?E;p:^grV#6OBAbGpC11|X봜8lо˙|8@{~cW@} d R+Kᝩ_ \Ժ;b@[9[^7:1[^dh=ʹ!S0ŅBk y?_4%oO{&JHnAPH3營L>uރR\ ۋ9HS=uЖ EO6k8Mј Λ =ۤx bE"nk2^򡐞CL ΀-L7cHt`nד.#s5rn&ЙNI/&ġN2 Z#x ٫;1!XIl_MػT;L{AyrODkΩc}BʷU >rcT|'M{; +!L!}l卫`lVדf7qhixSȠ,80E61GmQ {$dQ@gJD˴#|@*[!P' is8,U,Ep> )\i]]]ĺ4i& h;[W8h+Msƅ"c]'ڄF(>K;aj!'e׏/'=/Ѵ}.g}T\pk*0K_JHFMb EK; 'Su:NSu:NSu:NSu:NSu:NSu:NSu:NSu:NSu:NSu:NSu:NSu:NSu:NSu:IC6}s"H !O JjYyq٢KLj!0 Mܡ;:ۅޓe>TjN aXb[RRXtLN \H~̑(Fa]hų, 7VnY(s S?8՝hzV=\z@Zݿݠ-Q@ 1R hs#np~c~ʱΑ#`C= 5HZ=ˣSmc]vA S/@+<"97e"6cmq&\ԛswi3/ ܓ{Y/8PztS@B%),fhXT%ǛhQ35hfM0Zx~ -?ke ܈9@& z< \2E{W妋vIlm /t]9ͻ9*r xI}7S x=Tׂd.Y]wγ#3k˪1rn(-p4]t⺊l?~:i{{oe9wìSֽ9suʲp{b p/lT1yrNafPW"[k/ 'L1 ?U1.s۴+|,}&wYaTCrpeBԈ:H>Ga~Ur`|\.Q2?QJBS?mqBuMZv +3Pؽ$<fV Pj.d/H>`od[n8U[%7+zBרdr#e EI۠ t@m?1;Æ_F|ÜWKhcL 1vx/դKZoΐ?VRpS:l!*dhE.:Roo^Cj]?X`"_ŵhGcОzuE/ rq2De![88bN?Xտ2։p6 3 YY*a Z_qi5Ɂ1TORlI#!KOX+Ї1shrJzb[j݅ Αg]Lq~:l/·h<'0v.$.99̃ vjE1E8tR*%0o#K="enS2Fիz E1 B $VDlPHGia&(,Q Ϲɖ3UAOn\!<5bHt~Ȋ+ {xf{ 2Ҹu$NnҪL(|ʷ"/ 2ցm;1|w#Hz?}Oȥ~g*${2A.TM q!p0䝛[L6}۷eMDgPN]ʶtdDy*ʅm@|Dv98O>E4cY2ʬHqb5ib*9aj~ ;^z ]![dCV2#bq'Ŷ Eϴr9˅>ȕmq(Kq\|$jX*\o!] 5X.Z.gB~-j(FC.(3p6x99 J^Y2ϳ &b*ɋ<_" iP"{'+Aי/M~Ii"0 TG,#kh&}h;̩JsqgU: M>2ly`X[}koG Kt8q9d7 !#AlLcFٟRQ&$Ni0L OĞOuYf\pOL8J&<ɺ>3+tj+ʻ6DYyR eݚok.?_x*o+@L!@G^5x5E $ZBl '=%+6Za[/xrj %B&SN\Ԓi*pL { :dӢ?D '")2|JvG,~#ޙ\ |10xj˫9Q"[z#{z1 ?cv= ``y I]Z#ˡm}+} =\8طƧJk .PUVIm)leX$|G9+J!6$)wYwLޯ:houJ^e5EuQ k(D`QC,о qMg%ۘ'fk9o$P Pk J.X'ΔQb4y t7-m áҋQOpI#!70G{7qfъoNy.F\9fq1uY3OR/K!B}~O}h #IҜ:$IHLH*9qFG8qmCK2?!ÍBiJmܣ !/'5Q QA~Ŷ{qHaL؂ f#\:ulSz۝> #\$.-u75!@Dµ))%OKn/lѺ ȬbNv 4[g67Aߖbzt}aN}_Z9TUm[<|СNpj`FP<`t)e'㝾(s_a)CЀe Y:59;d%n6`6Fn.[0c,[;$hUl:E<k xC?|ʏ Z[G DޗN+f` r-5`j⠹9Qb1+P~a= qmVq혯w3)-ZuEdrcM螘n>:Kb8Hjj1W[~ ~>އ vwsÒt `j ş1VN JSEKa\^b-$[0 \XvZA]uG+I! (IH8{_⤐]:P]{1- e`d8NcU6($^j8fxw4uewDA#,\{ *U\*GNZaOf5w&q/&Sig fHNl}SXcQ1iqLO1~rѾ:siVt: ɽj"@0 w}84Q"HJ14_j6b{➚% p]8]Ce<EAǑHto\T?zbqw]]ZrW{ -I9~OZ>aKMq 6N{m+uA%<<Ņ~Ӏy[辳DQMbV3DSpkԞ*nB7 9XdħأkP\*Il&"=T2GF̢Rh1(rZEm2bw`[vV@i57*Ң˽ 6G5)z? AKq&Tmuӷ?2`X-rE"B :kM&hpKP {4$Y2aFnp>{rp] 4Эr"FXD?( /* d2|D-#~)U+=!,%[Gv .&=m{bgwR2IqyWn0W/P,ˡV,*? ]٩:k41gne* `WD&aK oT< Xe4%Pr+Cq*;&ܻ,Vx9w't5|R1qӛq2?$$XWXyHG#E]+K,W];U]-4ƜoTp4&ۋVFdklń+qbEj ]c8 |v|5Ǖw-7b\}2x<\_;ߣ>X i 膼hJ|$S`</>ǔ3]fk6qmoJER3 W@JLdnra zZmWH>Qh C,Q> d ͝2Kr3 l~3{aAZH*rRNBG>E5{shMLH^|t|rz$1ߒfO9Xu(i7c:z9s.pza3^4T|ksٟ'Wa@o`U(L&^ǽSC]^w=eKMo(oc@eke+'y5xDpqO&?cT=5;Dbx 2Bl]/t1+hm*iqm"h8&497H|uKB -4/C@(mϷ/Fѕ-dݐP˔N6ďqHҦ2zun6tƩml(rz?VAYrDcYO.-P?CO"Kn zc:0K0ۿ82ʨ@G_W&XNYxNMjRUqNEɮ)fs[6.#Tރqk:N܎Bfyp0As+mr&~.ul\ Xi=Tj|{$EeXka:HiO^~拼{&10t<`Z~ p)’cy3=)d_w%mi8H"T-E;5s$&lz,9bblE~ s-m!nӷ5Q?O)h1=~_kKHb7dE@!(IIr( #·>ߣB}Ph1\[+=羼+8>$Z΂LQj`ýj^\Jj}>y75 3z֑j=56c8Gt)f$أ5*N2SG7eޯ8+"Vwf'F(=^;ZvYU<6,# C's# fxqIE>Vhb-z p}uj5&/zޑܤIaKrw7cKs_OUe6&W l6wc܆h049q?Y3W][uF|KW*. p8Os5<}a ̢7d]ȇ`:B z"J\ a 89Nu:a}WgDϰ#XÓߜhRQ3Blj]_g9Q`/3K ޱgHhK:6tp^k6$W[/Fc$Ƈ;}-ѳSs+K#Ɯkj0RΖPྭ@v.S0Hy'd]s@2U-N(O^Kv-wc](ÐdҞWu6h1ჾ"7ܿVW>FY0إhh^·&:hIS*(+2:VU0  {2Uቖ_s0[~A>5E)kHW;/uF^U!k@հJ'-DJ̿G@U<&>NЉho[~SBߙ/i>ћb?儧fX~]!+ciw)C(G/s |ȄjDϝ4E*ǘ߻|͵y[ݕTwy3i';Z&G֬> cHsΆ-: htS5Mjb%qۧ*;ZxtFeSpΕ-ӪRdV#]by1,Lwk@^Fx'D-&iC)v. r[aG LD H+3CopJEH:BF||fhщ(Щ+`o*6ZQ*;q=竓dw%~:TdrmEsSҺ q̷k̴$.G.s1cZM ن2ft+5al^!\zJp$oT҆M˝]<&!!/NT#a`M`g},xFwu ""&wK:1p$O_`~N>crihWP:+FtI`{n< 2Lq:*~gbͽkrOiY>}ޫA(|[R2bOˈ%Dy*?x2=9 oRm_J%p²2K3#f .dG6siK0-{Iź-qqJakB?+ߑW|UKܴTA8t.v)%v0HL"J?X!xk+)X<;ŠQ) rޗl)Jz1q{jhB_ޔA̘_7ϊ|u$Udǀ?زIIwx2]1W1%%S¢ EkH NG.hdtl;> ͟8]4&ZKȩ-kQ+ցᮢn]dQH]y-3ѾHs"m/:4LrI0[7Ȗ'/*z1!s>FJ?m `LTO2ǝ+45YAr6eeYpxS1.[}X(:\.3_}f-ss&3uyNx/GX"/A\BшőQ۟MȤ/X%`<f Zhey<1L<*yp`^[$u#wXN( 挹dž.x,p*ӓ.ԏ8b|-tS z{ л۷Me-8b74\>X?8C2 ԥqz/'Ddf^|׾=6 :(7`)soz;Fw#řQ\ ķ" +4wG:򁢍//N뛗nl;™N\ T<2Əڛ1Y 씁&ҪByaXBrG\jEWPǰ=xh&$0btߤ"Z?W4}ykyDe6]unox7BuN{XfdhTRa %ֺ7הW CP;jIe!6FbNG~$|vX9ևof Yhm  쬒ɱ׌q]?jv C=4i fYt=~Aj׮ʹG(o5 3J>;7<$pY*0*Dÿ;Y‡JG}aU'$*H?~Mh}Zo]u4`VOf \OI8k-)[/;pۚ!.j c0 6?r/i?Cȑ|/洖leոpma@ED¨^]̬\ߨ^sҽ*#qlR)E WA1:tj(gB=UDjG" {q3a8<)ɹ?+Jw]pFbҶs$3 Q_ZH0UC܍ LCkzg/Di}R2/:)mq o]fiSk="=|p=++ZnH'l Zq+٨H6PA:IY]Ǖ%9\Dp% }n,Z vQ{ e92ܒ8\z֯?gm`CID!|-1pmk?JŌ 1ۇ?!Jخ%3Fp< $,(9md[. UQ G{"`Ь۸#<4ɗl6%<\mCa׏KFʞ ~^ԿZR3ē#^@fSlX_sz+WP4-4Tl±K="'|}DQS]#4k8j$C+ RV[vmC0Ve Foc}Bm_ TUo$A@{{KˢV)er>$ښeV^wSza6cXpc.h B[mFWY:7'ΗnpsVX, XoLt%#ByzfN-,PjRD<W*&{ԴD(wI}T|eȯy/Y̏`ȅ^/Yo:;ty1ZX$_g~ccW&'Ӫ%+{41p{䏡h*һ]rxk[gjNT;$Ezm2D!"ù(%&>E{3K-ymbKuNRj sLb P2S‘#܎Lj,Uí? ~B8[޵N&K3 pQяJ-0NSF$>U hy E뗕P&e{ B6~OUL LAUvB˞!Y8uֻu+srjr+B~/Ԩ֖P4^5e_ӳ@­Wf#: JjPr m+jW.k~p`&1-kXɷ.N'qm+ύBYcL?է* fބ;=?)[Q^K(~8}hT:[Bʾ5ZĀN> zȺG'jBIɋEGh)4GcsfKьŨx/lpga1$I>w, ; BwBuf9I/p=Bй O"=iPIx'1AJ_;7o+}=P2W fҗ'2ÅDt金9Ɣp x.NO|:k-4Ƌ?کwg YQF[PKWyl0O.wJa2Ws"$xϫt>dvY]j F?s!D3X Ư΄PJCz~;/ضlYEI:aMj?[ ($_bX+&m2P/Q[abV3d= H;@Y6: -Ȫm7Rn)zx^gv(ys}8$}[:gс]qAJD0jXq9?}r#N $Oxr8kPRWPmL* h&^}s_g⨢*T'U\r{\6Je:Pf 䳒d䮪E[UH&RuhQ}NA /2ȵ]wao=ްWk4q5]+@LWpx Ԏ(ĕ6ͩ<64K 6209q&OjK6; iږ1!$GK\zi7_hl)!юU#ۊ t/Y~;ܣi!_{h Z f6B\"v."ŷH|E{ EQl~!YuUT ˩ߎ1C>^%$7'!wWUQ~c5.v;\,a0Ijً_]gܰ4 D"tWk#۔~*-"ԭLH;ܭeh؝9ÃVS*W*z]-@fɦ2qZk+[=dfK\_b wCjKeoêK/Msd%S* ӎK@~"u0 :=ÃYusa +rj Zr=@.o}NL 4%`rͧL+X(ߴ, k)&8,ui:a[_ku*9s<~Jy%=G~4Vw|=Bﰪ'v06_ڔoYd8%& 5am\Ց?~mld~sF*μ_Q%F})r1n4{W=5.zrK(h$GX@fG'|OF4A`e=-Lan9:\+Jshƽ }tY/nlh:z`9̽gOb1g^\9R2Ð*Vܴ,YukY_ّ]_L͚DP S&Ql\: o[.ӲUGk\snquhэ0+nC`뙢,{_YDM9:{x`nA2G#( v9N!)n^ZyAѰjbs\Þ$Ux@$N_:E?ŀ4-tOYB0؝˜ƾpᤔ!S~3 a}iRK[3jF4VK}\ߵ|sNчA9rQlH>OSipsq #|V>ŹobϬ?Io ݡĪgm*9ԐGZ1d9( _)j2ݣQE9?Uz*0ĦT誚7[|e=rUL ^`qڣW1ߋsٿ}TmgMվgl>3)e-ު65|SU 5%"ogDA-+3TcyfQڀ._-Iy+1H82ϲ4ܙA \28x 4.m)}-[TE+_j*ʑ;N!v֞#h2A;ɴ~j y'9@.AwBy{8gO9@= Q,]c7$&Jgf[XNωR;Mۓy(xy0s>"/Wp[idLZE ?ZdmL*º{D^'l/S^h K:A/8x#:4F5O Nw(xAt?@z h QSc QK3dz\290=씆׭Dу;X+7Na~d_^l΄F/-yнVׁT._bSQw+* i mYx0\n<ײ20yG nCp'1H{tE<(x珚 Hj3bvC)G>ބ]Cy3)g 7Dp,֚r¦fnĽi΄J2ԷD$ngњ30ؚҟFZo;e7y:6PƔm 1,ijj 4ڧT}Y~v 2Qͣu}Kn-(oGEWw-\lVGDuEhem P+O?$V˭MXZ%W]8d䄐Z(SCu1t?xwysX -$ݗ>6%m0_K6zb hGUhaHj":"} !:Y95mTAb=x=VG( w [[$"íz,#v m:8V%&7,k_o\dq&dFeJ+N0^wxW-1`=~w%tr ڀVAKRypy&Anut8ubx0'-[s:a-`&x~{ $_V'I}as|6^્֋fֽh5h:zY`% Ogp2B_.#Pvφ@(w\%:<$p-^y{&@p !zAܔW .PXn^d¿s/-ŎVkR90=QӜYaRp.$8fFGtƮNL UïCj`B*#BL6UhUxz[<=BD.ͧ iZC1Q:7KCt%ATĤBI#_yC[\hucCykS!1I< _ 9,`8:! 7 5O4p9n"Ijr!'HMl5lݲsVTh1ї;r@(%sZ3kbԍWJ2"E;{Q7鞗3Cqbʠ P~6Ŀ򛅠5c  !W1/^uǶ˹G. vQavO+25((r m3z..abmuՑ- ✔0;1 lߩ?[tD2ol6b=uh<)FX_˻Cw[~͘4;Mlnvrgn[o|^Noi픚7[:# ӶqJAhj9A72LD֙8}Z1'\x+ee~-~M݌_𻓞y%ٛ}vY`5X:^5d/Iww*UNKҁci_ *MiiOvd6ەT]J%'593-K^n? hȽ q6T>Sx"$oK#Ek6JF2ҲaJ}ȗ]ϝ)Ũeȡd0kEX"Q 8='!c41~nؔ:`]}0#< }ÿxn+1(īŇ+/PL pO_4liE3p)M> E ҉+ !&M ^12;7m^!>N+lF;qui }1 ȿ,%\Aw_[۵(0+ᥰtWZd\ⲓ5+\ =+pEmKx|xVɠ+g ;kFSc30XUbfվ&+sm 5h'(@&SW,-jNjWUY?U2@> @tUM3]Q&VG孿/? YinHQ5Ň]SOddu|wxoHIȏ`O2[ Mp,;-wOyBL+Pv>,)3 *e;?,×>z.kkcJ@hBȌ~qlsߪ`/FQn_^M*% гCI(d:KUâ{" {O+rd$K B^5RUhTQBѣ/Yu]j7^DHzy0=`= ?͖ ~>{0-koBמnA4<.4q7_Ф@ -4 G0Bz0u@r!K2t`ʹetIqcͥVAoF&pщlgŎp ̙(AtK¬b[NM{;nxUY,kXH␲7GXrRߔ[xQ?Ni~'?u|]oo(!&!DfVKk$Mm(tl=^-{$!&?y2RF 7lO&tR[rUMyZ>++qZmW_n[7/LP㫇iuט. SNAg>ɳkݲ_Hބ^ AUBM(1ӕ~kgHxd.i4y*E2gQ$*}vOj LOq l?7X p5$U/+F`ΟSfy H3@Td}nark,-Im3J&j5MĜ]{a fĴ7ٖp_[R~"%Z7-,!#!xa]Qʕڡ F+Ul)r c$`!-֌r5vvH[o buPLc-х|Z GH$EÆ~>9v1$:茇A|C k շ_x̱\$ h1I1;3+ٳ먖C<4FD"sfz``]a2UC|@pހr^[ic H+Mk,*%JGHZ0#$N>^dMu5Nz}-GY)fg~;{ؾF-O| F0! 5єuM/FnVcهP {{JY%qQ\APÑlܛ&1)4 X R 4,Jad&2o>1,opNu>;P&ܜ341G D#9^" xu_rn.NOnE%m3 GV:̉ )cہU}kW=H^XeuD D[Q_j!p ;Ąo4܉n\᥉ԭܦeigCU痟Xb2>e ;?RcԌZTP D;toXA;C ~<*E+kij4<'Vyg=7/XI<&#da$gJ,/F/@bkny#[^Ep2 oG'_,: \!Bx5PB?ST ܻ#͡>3 J=7'w`)Xf<ގ$*!. ,6kx oLk, G}"j-yLtq ҕ6$"Z?9fvOjw?Û76H7rRldv[ϝʁ94ꚜdY測j'gssl9i?;,Gs zErղz}r[Q꺬ǎrmeEagTѦ(FoNd [F̪7z':n8CYD/4GEZ zzELv`T0.DOu+"Nfp/CNl)yo4J,;)ݛrXo nT:|%ލĨNjzzg"rЩŬȲZ/wt/Ck;f0)Q9n}|-"fYfcb%ϙGOxS ewMb|pmZ>[t3: 4S%ЎNO0rM1ܝmk`0' m. tN2,6e'K%x  =!بEzz+ %Ah{Vށ#Ø6]7<&:kҦ-OgeJݑ̴68C^O<-muQi}op{*ʒzR?mnN7@@aSXã9 Z5rQ k;G9ZSx88*nB>p`I6WvJ N(}gm| BM}7 ef٭A!#*zՙtny6RW`#%:[S2MƢ ωEGeϐR:nN6zZH 'g8߁wt-P,H&{>Q#>yw`*!Ert{$ j3q':!Lִ;~̢ ߼ bRN/0-=sק J^jx6>LJ]<)M)SH@ٶupB TE6! 1)0Q54C/aL5oUЛ|RD P$^3C0wsܿ.Z!]tC=usRb/VۻHV+T'nk4~mߞbJ ]dToB^|֘xa]"䤶10/ /NM RTn8rP&bFS"k+'iץHF ws+Kh|q[7vyYUU72bB2_kɄ t|ݭ]]b932QC{v-TR,vI5*x&MYlMp xVipZ%BHܰBGE5 [*vB 0UeEES2"oXɊ@5 UDŒ_"S+ q萸I|,sG'k $ѡ3;rZ< %\@ |m~⿩~ݸ3rLt,(5$e9A-§.$.0ƑjER2U^==>$gƩm&&dܒiU$;)_̝6kWKT{oXsUi:M9ƥs!6DLXNh630$%lUwdF3̂؁n-~t}wqYӇLVEuĖd9r1W8F{w*vB8/u(DwlygqWnsUU+C!|'H.$7f/dNlsQWBrzI>CTOȹ6=٠V_RPb%x";'[HɅg<gqr0QlAOȮUZF6/ǑQk4El)w`kǝPE68),Xf*#$ ga^$lZBĂ zsFBu,'0 WgԛD7XP \1}C8HEvkTƉ`޻Ғ(dYIp5R_8O;S"p#Z;\A$13$aCUps$uyS9nnUʣMQ^ޠq8.#GW]V:a0?b\.hwuӽ$Ű`YbЪD!Hں%(iZ?0X/Ripsoq&׉T]x3Gwˊ@֑ V!nsǜjb*6hI>ifcXdlcN-4)\y~.(;t53Ubl!aѕ|-_ - gXk|R2SMTpKh]j0/0{D dPHœ-\ꖩ; 6ز;caJh)H(Y( OuoJK2_1Ot{!R)9n)a&Jtނ6^ O1*H<9uI/ĺySS'K.6y Gԩ,>&3n+PF:(R3`Iv*̚7*M:J?qb,Ͱ0&ufB(dXYkh"^ws`qin9@f =-% +xjXϻ/{Ɉ|Nb; I.#Yچ,Bo.>W]}V$7Qm/HmJG{Y*tnќ~m*sfcq :#Y9)x=3J^%()h"K)2Ve#*3̎He=0R悶,X: Iz@gy G#TS2ςOPB*+=R4 ~F*۠Ӱ@ s[^r8r:b5oJQȍ,D?5!])s 5H0 K(%X3AН(Vm<fB SiGD즖DjfJ[ja_ߍoKk.r~=Oي}X+'|zcQsł:IfOvxZ'mL|t9[ G,@KMԁvpV {ԋzF\j4%B8VC YHVnFy'x1>XbKT$M?+Yɍ>A>_4izTb wB[tޗN5Gx_Z&FCLHdG%0{#)1qZpξ g)VFC j5^ !B'LLqֽ#~QiԒ] |]2 Q%P n`q images/about-header-privacy.webp000064400000025256152213653150012720 0ustar00RIFF*WEBPVP8X WALPH m8k^_DL'ݘ+ik?ضmH(ۮtljwŶmU&;R֧kq揈 v&v"%qk Wy1?????????????ɝYLIߗaZ-H+)/nȶú.$.2o7Dj˺%~&C߽uC~L\A%At>+&34 l.e ,wyL3h LdT 9QE<G/1+5s x~l0ƸljY/7[tE/:0OE0 w1̭*Q4- !Sʪ"꺝Q{mٺai*/,um[1T?Ķ4ó%Yl[9M]A7]L4!nE4)(=Ei ^x7.k*.AM|}\._Ӂˏnfjpf\>tɯqp7p - pKQo,*5k|n;._҃Wuu]v\~ \E|8o,Bg|5\>'3勾>=g_ي˯^ʇ}CPp@q|^._׎m_nwET>~']_ێ˯no\#\\~#\~\~VT>GgQ[|3\m\~`7.?,.p*.dip&\6._z}_: gQXs/*pqqopgquqSQpO>+uwq~pI7pE|89p۸|\~\~:\~XT>\DsM||Շ\~i\~ \T>4T>ށ˗<#q?Y|c\.? ܊˯Yʇ3|ε^T>/|.b.p.߆ {p\~m\~i\e|hzp7q.\_.?>.|?.?ud~)6?Zrt.ҹE)t.Jy.st.J?\!؜ | <\9t>:`s6a!?O# )g΅jmn5tv s*EOGuo#oOsQ.!..?.p5Q7qp~o3qQĉJT>|E ._߁ˏy/ُGǣ7p&\>.?.p .d<*n_cZpq}Q{6.?>.i*@峚qN\-\ϻ.\ø%|7 Qu\>./~Ww򣮠IGP?'po\1\q.ڋg;q>ݸf\~@.My27~+.{+|5\g5aPT>v:ݸ|7|g uzT>ތg pڷp=-|8:O\P&\swy.s.*NT&\>/}߅8/^_D\>}\=\S\~B3..{*^'yOq7q]\哸|t)n+p>wq-|;'Qv\m\C\~\øyT>jcsN'k|C\!.߷ׄ7巿˟/B哷zQ{|\gݨ|<*~2 =݋gvE_uӛp_Aَ˗=7c.SOKwƣ.ю˗u|;6s)e1D!& R( in2͛^r7ニHHgXPW䯍{]Oz]Ϩ0?nO_Q?ؿe c^P50vw^jg[}ooi~W{Ƿo8u?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqOmCeSP@=F9Pu?ѵqO!\ :ug}S ׻H|/,OmCeSP@=F9Pu?ѵqOmCeSPblxi{1$14pzG62{sj(ڇ862{sUhg#E &gXNF9Pu?ѵqOmCeSP@=F9Pu?ѵqpO-wKq1'ڇ862{sj(ڇ86OMίI ܽ2{sj(ڇ862{sV!^#eSP@=F9Pu?ѵqOmCeSP@=,"*.{t7Pt܅7]^Xڇ862{sj(ڇ8縮"NژEFĞj(ڇ862{sj(vN5Up"?D=Nsj(ڇ862{sj(o"oaP }ڇ862{sj(ڇ8@ 5F5 &ȿֱqOmCeSP@=F9Pu?ѵqOlEV.^޺!RH;iȳڇ862{sj(ڇ85UQ$E}h@=F9Pu?ѵqOmCeSP@=F9Ch'[ThlWҊM`i@=F9Pu?ѵqOmCeSP@=F9P=_ք q 8=ɥmCeSP@=F9Pu?ѵqOmCeLӢ_e7 /,OmCeSP@=F9Pu?ѵqOmCd0D0H]B,d%0/,OmCeSP@=F9Pu?ѵqOmC{\9۽{`(=f9cf^EA}= Xڇ862{sj(ڇ8Zݳȋ' 3PpFOmCeSP@=F9Pu?ѵqOmCdJ0BTO?27E262{sj(ڇ86).rkah.EV_T̢Tn!#t(u j(ڇ862{sjO,T @R(n U!S X-UpPLd2{sj(ڇ862{~4(,;.1f,Z@TmCeSP@=F9Pu?ѵqOmCeB:ͭW%yV6:]]`Ku?ѵqOmCeSP@=F9Pu?ѵqi FC>FͨsC. -5Vo|P@=F9Pu?ѵqOmCeSP@=?b`1)הxS?{#ijQ%Bӽ, =0et &oM:!Pu?ѵqOmCeSP@=F9Pu?ѱX!YUh8%:} 15qI0ZgV`BEYc?ѵqOmCeSP@=F9Pu?ѵp #Y+؉b}[|:HTWͩdLb u34^Qpu?ѵqOmCeSP@=F9Pu?Z5Elfϲ܏ ("%;y0Cψ VH:7((N#0[KZ\jl&Pu?ѵqOmCeSP@=F9Pu>)usst;.;As$=eNJ2Yc, 8]x262{sj(ڇ86. N1ReH;Uu<\2=_g! "ݮJ4x\P`=(&7dW:=] -j(ڇ862{sb "J#d 7מsst ;X;K9@D-6-J\uvR*}=GCb"0W;d"j!p2m/ SgeMT*&~5ZNYd0A啦vAcZJC٩=! S44QfVw0 UZJa ' 7y[P%(J:)$ o@Q#ˀb?SOZ ZHym[-v~'ȎQdS#s@N 'U2Lå(h.GNgޤ2<['tre p*O_ymAѿx! C(G5AEGa9 0?g"4Tx19h]ˀӋ<^112E00)k9(vgo >Q9/؛6sd(Ő~an^M-;'q+$I\P@r^ф> ,^̯%IЫ7:PuP5lÝml5!4Igg#(ZgEye󽣑ʃ{2(p1RL2#~yIS2@gP>oO NPM%fHR%23Ip~w6 ]bѥ(ҩuI`G=Cfɫaa~o]R zTHOR 2K6X*bI:hI& -s p^N#{ %`?BɦR;|pSs,ewh]o_3o.0v0䤹l;;/lKJ}1%%{-XdrE_ҟ8,>'`O=Aeuߤ)#ǧ؜G> /|lɱԍ%"mgOq)eD| <Q(!'0#%j_@8bdh c6#mQ6U(>k>'lAЋ  r8gIlfSvG~ BYl9eUB72^3.Pᰭ.xr72XzOZQEFxw ^6 svsvt‡)A5} Q?Mc֣f,sEMZYu )U'E,{OeszI.hG)L1kVD_t0LLTu&"hVO:{y+b#kN%?DP E`g٤xyOꎩ V&} hag70vVF7E:ݦ˞ n5Hs!u^jBЊdZ@IN 1)'?f( o9o5+ZeR Y"}ەi5n?zo~_k5}ǴV?}7`u"w5?g3?fi꺬;xq_m^?hE.E oo35\,}v-n6E .tqm#߲wBf&62qx/siQ^3,ww9ϴ!2? |joQŮ$'Թۑ6% nzR̈q-3 x'5FE_KhUOsAN (X-Y\('=Boc>Qq77[dݳ|G%Qᑊ5 N/F[:nkERM).KnTI:f!-ؘJ. N}fJBA)LIJ'Dw+z74;>D\Oq+}vnIOn 4 " )lPcl-}Ⱦcurۆ7؞D^A]tzCӏg[j.,$G,n:'apP8i%EVB;@fO?i+Z`,e0/EۺJશ;D)Z6$PFG6yIPDx;e?I_T3\-|q\*ơR /Db|2Ez{$l[CgLJC>f~P !.U"^wW_:f͒.eϛCDLP-~,T[} %{RFL?<5:FOFN:U,a{dʦv61./oJ2v{h.V܆2burh_HjV֕7!uPF7PlJ7P^ʵz0Ma\34W|rYkʰ<{bTw{ @QVw/5=,Fz :8-8,Hu@4`)eٸ!-_?]Y~NjI|=wYB O=}@=x NQAC#YDPr`YigzyMk_UY8PM UpN#vضq*K03.@<+|Z63`f/K_l7Ryn M>wj `h΂jcqek{Q8:19 }A{h@4{E+*75ztQ9GQ|ϯ]&=Fu*E5 "R 2X*8?.{;VyٽaYCm#u!CW;#-RWx[,Ё :\{D@\2%M1B@dK!D?RMjz@p=`k;j|ΩԍPFwz p MT8yUƭPimages/about-header-default.webp000064400000047076152213653150012673 0ustar00RIFF6NWEBPVP8X WALPHV m0;=SDMn_C H Vȡ!&@$if_X۶mKkkwmbmv&398iܿ 8VG־;z>#t˂]U گogo6YQnڣ/ (ɶ_hF)$C/S7RkTRjՅ(a5dZ(7hQbs4`28%9{UEb-XLˆaVdzKJp#GzR?_ Sf4 ]1(i3IOa#Ʃ0mM[FX^hKx cˁR/˂]Nz`tSd?FY{ͥ]ѾО#˜Dme \I-@:a Hɼڄ ,N&D #؜o>LokL*kDp#r`7SPSg 0*߯Ajgj+^؎;l^& Z`1nN±˽LH\H$s:AZk6م{R6޿AwjCӐ4AiMT)@:3DH(<̀_T c>0n5 cĊt.aCn.l! V'[`XD_`LWT0k$VCa6T`TL0f/qQ.a6MOX$UzsĉjU!̬+-eR6̰ǫ&i0p$K`\%rPs>_5Lj9qGmq'怢 -1Dswh9kPs9^j9 i1Q ~rPCFk\9 9bC/bH!ȑ1! N$怢ݵ-ĮsX|Cשּ9+3b <9 bxUAp)^P#怸679ZVrO7"̍-"`x>r^P92bڀg3 kmI8uN-?I1v~?Zjc&nfRWrͪMW?Si~ȲQވBSZ{&G ٩{.@Ɏh2ΣmpJj䘦UPHX6Jq6-ffzd LbYʔ6 8V#+w!.;?8T[6}w}̇Q]L ,^E_[ny ;ҊrLF$52xf:'ZJ]<Ū I $T5οB8][љ4bR Zk:?y* ᪌^z3y5s6 kO}7=`967yXg WnsɰOsN/~0mӉG_?d'aTCCS!mǥF@F.3*ܰZX/Sx++^bh, c,@Y(C? K kl*DfNHQRģgcQ q1C!#%I` enoqπ 5^KĒ(%//?,78kaGϫdwoS&Ϣ~P}G'__'?&~/{G=@?v[nFKw/ߛ==F?~'w_^?9 쏻{_=oнKa8yMPm>ooϽ}[o?$| ~ ~ =r0V۹Z{w+Cnhaܭ =r0V۹Z{w+Cnhaܭ =r0V۹Z{w+Cnhaܭ =9"/Cnha"|8x OHO"o)^MP7;>}#<[ ԉjcϤpaz7@tl/R&>ž-D5s8SŰHƠnv:|FڅJs UD|țHƠnv:|?G xx OHO"o)^MP7;>}#<[ ԉjcϤpaz7@tl/R&>ž-D5s8SŰHƠnv:|-Щm6UꩠIͶD o‹U44YIh=!i*m -TzCӊUfE&ZIͶL(SAN)UmQj&R6)0M:M8VmRaEHsr9$zr4UlHO"oڱI YIh=!i*m -TzCӊUfE&ZIͶL(SAN)UmQj&R6)0M:M8VmRaEHtqJo.$+]9XNY}湙l/R(Ih=!i*m -TzCӊUfE&ZIͶL(SAN)UmQj&R6)0M:M8VmRaEHtqJo‹U44"ysa> !̓K Ls !R56>~OHO"o)^MP7;>}#<[ ԉjcϤpaz7@tl/R&>ž-D5s8SŰHƠnv:|F@.صhQ% T/W|9Cj^M[7߂S~ oM)7߂S~ oM)7߂S~ oM)7߂S~ oM)7߂S~ oM)7߂S~ or>o0l a9uww5fD`гո0C@g)UmQj&R6)0M:M8VmRaEHtqJo‹U44YIh=!i*m -TzCӊUfE&ZIͶ[)[7om-{ !(mv²[jaDL2i*m -TzCӊUfE&ZIͶL(SAN)UmQj&R6)0M:M8VmRaEHtqJo‹U44YΞ{~dy%z]0;p]Jh_ž-D5s8SŰHƠnv:|G xx OHO"o)^MP7;>}#<[ ԉjcϤpaz7@tl/R&骉&&8u?b ڿ+J=^gIp֊u)mr{_ h^K2'Ep֊u)mr{_ h^K2'Ep֊u)mr{kw(F:hd.SD={t W\!tt "% ZD$[/2b ##<Zx/b'--v e$?j۹Z{w+Cnhaܭ =r0Vδ0ͪl?-R<4Y-0:WHXt<޾8@a݉_KPyIҨ*y!f;-,۹Z{w+Cnhaܭ =r0V,?CEu-G;uY#s e|b /y~%YpN,x< ?DjjGIYWɧ%Q.%S{(w6tw+RHe`'묖 WPqÂ7 Z>[.z0O<=_SA ^f{i=sT|-qdyBXޥ9d,'LxB쎞1d0 B9av5Yx(wr@O6F;6H0:0V۹Z{w+Cnhaܭ =KZA$`'Vmk"6%u=䲽1Q(>6SV3%sZiF z "1@ѷ y$@[ч=ƽXE^:Y̶=/ӆU%Lnkޢ8kE^:Y̶=/ӆU%hQH^'wRcXT^/FCbWua '{BT8cXјPs+y~bsK+`X\u '묖 WMo^}d&ze.W#(0Nv4> : Y;83Wr?2řE6[KHԵMuv]TǷh9&f/" 5Ny I֖J290J>GܢZUfXJ9rtA:ڴlXk``֬! 3j9 ?yn/ 2_ d/ct(|_#ǘ&QG0MУ%|`FK<7B?yn/ 2_ d/ct(|_#ǘ&QG0MУ%|`FK<7B?yn/ 2_ d/ct(|_A#a>1+j4ED+ZWz}wvu@_ 1e %#*2u6~{c zkH+ }*Z)wXRכ%*8Ho=,Sve}kް/f U-bxvB%h@H;ߍBOFrN =I@V=g=V~LX\^+":GFc}˶uZ 'ǯPȵMx)E{sa؈> ?8=%]];S'hF>BDvz߷c&ɝDA`|6B5G6(t#+΋:*6u*[^~oz ,]" ǿ#r~bxQ$~E-WV5Gt|t8O|snɱg[R;΍qxw=̀`>VBval&f~_$;,D|\ OeGVkVRś/L*T e&KUWCY3$r,T1߁TM>(M׸a׳p櫰.tgƽw@ƫ%r׊bF]97/2d%MV,+߸B\*`BwKJh8sg?#*"Gz]OXLf]ͿJl{~O 6*mU<+cxVǹTsoҩ[ߥS¶=ͿJl{~O 6*mU<+c8uzN#VpڤZ[7,r6-*6ޅx\~߃{d.^ǁQECgpCj4TR\鉑<Q*RK$m<؛_˛Y"򝮣 ^AqGl MZZ|Re[Va,> W.n<-sD۸ak9ꞃΔ`2!|ˆ0r@ O"ǗoאU4lx;a}0>}L>Ϧga}0>}L>Ϧga}0>}L>Ϧga}0>}L>Ϧga}0>}L>Ϧga}0>}L>Ϧ-BG&:Xj2l$"켉&#19S ճvCVTRzj]M^ >ҬǎxKaY= $Y2 ~eխ|SL@3=.ߨgNJ a(/佝:{K1(M]2Sֿ@٪BE qLV3~,pfdRDc2מ,. sOuiӡScIYsU^RG Ok}}T|gwrHfVܨW)Rc$o>,w), g%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%~?Yg%t"cobIؖ2`'hw1F9NխSpYH5$\ݙ;jO,֬=iVRM, xJk)*yv_"h&j}򸭹nG4vo`GnU|<H#MN*vB_uza`U.NKwj'^JӡW+tV-<5}3éVsO; +Эy=5_$vSDt\ڴנxauCRE09o'(^X|V\ .eK!)hBaIT7+4T: Q4bJ0 On}̊|'pMܦ(fѿ_yX/RtjCY]늀h;ACCu00?{-kѷIBr.ؾjwJ7-[ğ8 8;V=L&`b*vjΜ( .wJgvCsKcSlLÊAno-d%Tp + KLP3g[*.W'3erŸeqC02NƯϟ,i9xeHzh}~Y|L2? ήMdnutE˶E7isTk~(Nv@ͱ>g@6\=*G*|0"3IbXB"yf~Ã3`ZsyxlJ\ac 2$kt%N  n~Ih,8?[^u%,25vZ3税GK%u#TZF@ɗڤqZ';Hx|\#H3*s-!S Y ev0KZ `Ҽ{ϋ}foGV$(:$d4MǿN"c#0*= ukXֿrjg Jnjs73%HA;Kt3c+Sjp)QB뷇1X17֫AAXAxh f~P=g<{O))9NN[7h!rNrSE10h‹~ce.KɋEm{ %%>GI DPt$|K|| ^=8E~|xH z9lh+Ţ*v6UmQsc9b4O3!o&? ,D8V/v 6b)@L<@7q!\ɶ]݅+"=:uS?/zڭ`^|嶳~נ9ۛOJb |:moF.j7j^=[n4/EK[Ǎ3 EosmBY$ MAވobt#bz7XY|zV\h mD/4f! j~ZNΗE^Jk2ʨ2B{6eF̢ܲݨKF0mv\J NG?W!*v͔3 ԧ *Vlopj.W P$Gk.^9r&w '|]tf&y%H ;gu /ǡ-jI'%s|_xA+B9j2B4O ڮ4'~ `% gxէŸp鐹`=E Ń:}_X2\#qzL,$kW㠾\d-2h9J7k {w^m/'&h`/ТUuIw̹qpzބXBmL~TE!xMBFu9α`GϤд,Ǯ#tNKF /ڌ.˜@7.dilWAteGd{v(qL0MltZb =Cu{E3~f[ %{qN8-'l XYϰĖ@L>4A&tOIQb嶆jp@6c$hsnSE JTx`h5l=d F'*`6"">{YbE1.1Sg'TzW Z\t{K[9d#][-^5yJ@vu-u0UI!͹`G8{J&cӐGQ}ކMsy֔VUϙU Cx2ylFWry1ЂF[[ZLjRSa/x\)gG:{y]MEA/7Hon-Hgq"ɖ29_7+sogwː>3==Ƥ+ĉ-tWxP"[li24l_LUR3jP;*p|rlKΎ*2n~渥3P41G+xiOT3C'0hVBW j!4b "tyФ _M]);=%u Zk}[ؓ0S̽/W * A37\KiAm߷KsUQ,,"IJw0-lW1 ]]s}`2Ey@+*<ؑ\|A`=XpUB@K"nB@ߓ+ė@mdi-Os"6VƚRљJq8G)K_3ݐ6`VA$ B…Z%jX0?qp^wfp1 TXSd({dsgЊnPF@E޶ Lg_[OtJ!$#m RBT:;^fGq;̴B[o?4h!MhC^;`g^Y` E,INһa_p_L<&yIgpn6L$)ak W*-B3ENrI)wMdz(Oc!"w"L },&XhW(kig~m Y~R$ ۑ@dgA1(MEG("%s:z\x(ֈS3{'A (ѪX&Ϣ?@'y>x\Lh0 91wKOy+lYiVxEBc '7fq|#yRË @yŗ?m'[js:8 ,?{^zY_(0*`̷=탞i5ޏ6J˸5BGTtH@]%X?̦i)tL&҄ѸcP5KVS.OǍzPtRVŁ8@)ɺ<4cC2J~L`M*5S7D\R:*$+PpR{@ф.N˒Gf KL%:ޡ`ИUi`WKT I,93Xt}pϹk`TTGB^} Ĭ@דLJhCWĶ같& >k* _x('ARSOk-1 s'~i4. w13U)NJ5bVv8\Qչl,־o~Nee6Q!7^ J \Rx@I4'ɡFօ:.7R-/1z%'@mMŰBWO"Y~\SQa ^7}-BZmD{)cO*2l.( {EYjzS ˫E҄:k "P2Ej;tam Aa.v[~~0UFu􀎺!T(^Sm-Nhr|PlèI>?ZBd\IلnL]Bv*USdGb8릋D%;1y֤G(}8g꾾D$o}8҅0mh8ȩ着s3&9Nlr 1vk(yU s\TMʉ _[.G9riU`_S+ju&IbRjj/P#7Sd׋ tN@!bF EިWTMjvl xtsfXKSO$ `u-8gS~-x>0,W5w! B-Ds.e OٰLf{׶3Rw:})b|:OTN hI8CtX*$|P%;TuqxzUalDZcWrA0Q߶y7& 0~%Z@sCz>e"@A38q/gKL?!zdCojK8oAۡ@1seTGiRwXJzh-tL6B: Wwp8뤉owT< WI3wHZ(Pwa?7v_4^Y@@6R`j5LVR6N, c%oGW⒧xduba7i(" WeI!݅~/sߞP& 2"CU x@5-ܟ)צw $g7RܚNskp)F!f~?KMKӽK2LUjS2`,xK*-$"6(t?,jz8g.aQ)zߠCR D.5JDe2?sAC6&I0MF,BAxiaI]:~\ b髤5LA`b226 Z衝L_G".#&c k"(Vs|wZ3H"q5yL5c`촘ӹQ]9 A'Ԓ#g+Cu I%bm"#;݃kyH8+||2uJQKVh9xf}# C4!HQ<v LFMhN6b3^ ~ɧ~N̠PFKRТX;8:E%p@RkdS eō(>t8. 4!.3-*X$0UcULG?~p}Ut =cȂD "b@T@L7QUΪ?U/\ !~|[mnH=lNAa)ÐFkl;')N) A$pS ]bݏuXN:P]!]dg+<{M\Pb5u8βA/ ˟|z;qصwytj){sO? B!Q 9c"v zEw+[BUU)CTZ?'A}?Az,zi|8˲U〢:`Ear3r;d3 &9gHoGњg.YXĎRkł_b=qB.~fw0ǾϯsH!p%T n}͕Z1 ITܣb6Z/4qB<U F) >/IrqY6=gAVRNSBX[ϼp&n7H\1{ Ru> :ad X-3h:]R[-kYP֝YxtS̡4a GdCbm"o,>@Jɕ,ZcjO.-% xud4'%!#: 0b]-îCl;ޛ"Jl5J&r&H-sU@o`ePxW7LUVwee!I`g[L>iRnuF!i'aPf%I/t(2@DRĘR >o Џ#`ȄeRF厹_缆Rdi Pq eŠB٤i ;]7hR1XD`2DWNS^sBWITbyHdk:a;ҧ [*]Gl?CEkAKvL%(89")~+t/hdqT_g0 ~rk,/{P9d'z.ne&1R7Z'&0eFqЏ)9SƢ0a+pADͲRe0,2=04sd5ȼҒ6?~wWPer/aa3ҰY$&>tIRYzz h 1OAZTخjuBcbezXE(m]B@nJEgltDK:U)ZOp1@ΉɂsSn<%#hEרHdkjsP9eܝ摪5̴yqơT&1++l!gI%)H$rWC?o/~D;܇PEټKx$1PQ}H2ʴiZPDb#C<2CV_ B;K ! 5gv"M(MC71Br"b`M?? " pǙ$ek?u(V=wdehо}wGۄ27ڕ*Vb/oM) 5ӚtxFz/3qOM;y29XDA7!1do,TKGj4e"xL SHs|Fqrs9V+; 7a+bfM4JܞlQ2`[U|gG(y@Z[6t( p! }E l7B<Q6 -PGΚ`xqf(O}K:{ԡ5!U6˛+4VDіjD^ngV y!ªeJ4̘6W n@?ΊJ\'8T .42/?U=ū^Û8wg)CxD^%͵k} 䤏Jnby:\o\#L[a+va%qnb@pdڑ _⼪xļ@i?ݹP T0 発!a0s z"-X7!fv@${|šݮ}]3fՔUcnj 6?cs(.x:)0|>gQ*X!O{qL@nJŽ{Hsw tHK&)xKLby` -AH^Wf)P-9w \ ElPaO]DK.NoCutbuIԹ]֠,|+["8ufh^fwH~U}vd=el 斎#aVAN.{)"N75bP>j3R+|>AȒɀ5(,&e fش n) YbHGVOStG7Po }tXGεҋU*!nFݒ(\Ky A&l&3<DI|ygW@^6GdU%ɚvimages/about-header-get-involved-rtl.webp000064400000036100152213653150014433 0ustar00RIFF8<WEBPVP8X WALPH ڶ)dۚ}=d&i3ʨcCC33g%Y 6׾wwwwwww(ýVYXK%XK%tٖ$mHR$E"ETIQEQMݭE{zd)˔hjLF1FFIA2Y'qC4C i{wgX]7͚,eʒQ-L1ʘhL,Y2ֲj94y1b *4B )ZJ-me_ ܼb/m3IJHfsF0&G` ،1FjU*RHj3݀Ɣi$h$hJv1|k6#sqEo~?u mj&DZ"-Y?uѝ_@6e/t[s8mM=65ΝA2zl mڔc+hS3kckhSs8ЦYaۚ{¹mdh{pd=6Ȧ=Cs;ho4!fh,-Sh#1l[s5hSFh#1l[s5hSFM=ml]Ue*4׬ǖЦ9GsȦϱMȶYڔ mj6etЦYqa߂6eiagڔa'mXs'h[S]6_'؆5i44_p t9iu(W`6;(EI]mX]ak-lfeFU 7{96,Sw2iZQ1%aZ96Sw'p+sGNu )SwYwk nXFwMu\7U~KfJjo/6.o-F&Z!MZ"U_w3i)$1]27݂=입{9<_sx9{ly#AnB FD0#g7%cbr,+kpwg"dAHwZG1B2"ȈRTV*hSF*Ked,uH|aW2pNp 8 p  # 7;Ε \T4w`ng`nkv Bh.9>_h!Cswam`ӵw| ïǧ1C!&&i gn_`4 YqG;ߌ;Ւ^_=M޺ngCO7C섂BUw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8m]nuW~p۪Uߜ6Uw 8g}m۱mQB]eRCV^YYX ohc?Ȳ$ ]nuW~p۪Uߜ6Uw 8mYN@ 8TN [9Aַƀv'lpD 9f> 8TN [9Aַ н|Kx<:2Q:/Io烒qZC*'BI-rN [cD^i%SIkp nJr.Фpg" Gr.Фpg" G\U:CQ .Z.gDrUʳ9VtG*ΈY:#gDrUʳ9VtG*ΈY:#gDrUʳ8n/Mp7#CPY:@jxw(e>r.Фpg" Gr.Фpg" Gr.Фpg" Gr.Фpg" Gr.Фpg" Gr.Фpg" Gr.Фpg" Gr.Фpg" Gr.УcVjt(dLbJt(dL`ͼ*@Rd5/z< :fLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dPb lTC-(pESq=n8? 7Oz**6{'Zd@h=g|UlO V>*6{'Zd@h=g|UlO V>*6]06{'Zd@h= }ͷfLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbJt(dLbś*#gg!}4+$=%Db5H70͢0YZ o;QS2,|E]w ۼz"5N<}0m95FS),cgzNMQ.TJ7޺ӓTi苼;;wz"5N<4uyXg{[d*i*ڂ}m4.`Lݜd0u(v|3n;%4fҒR_JKiI~)/٥%4fҒR_JKiI~)/٥%4fҒR_JI 5+ DCy,Ȃuo=" iWnRg|UlO V>*6{'Zd@h=g|UlO V>*6{'Zd@h=kq5lj.n˴ Ty2)V]v*6{'Zd@h=g|UlO V>*6{'Zd@h=g|UlO V"7EMj-0(ls,ddJmwv;<.ʻ{',8xAܩ‡[8Pb lTC-(pES*pN8"ة‡[8Pb lTC-(pES*pN8"ة‡Z I[T=]UɯC j'-Y@u>@#'Nho `}3 g{c$nEUfi塚䍁Z!D d@h=g|UlO V>*6{'Zd@h=g|UlO V>*6{'Zd@@`/vf5c,φu}#&_SH`|pP(6 iJ@969ڡ+4\_kN5_jES*pN8"ة‡[8Pb lTC-(pES*pN8"ة‡[8Pb lTC-(pESџKnΖ:X$tSBs|)tUhr"bDI ߍI} ]"PHiI~)/٥%4fҒR_JKiI~)/٥%4fҒR_JKiI~)/٥%4fy&toIG><$yY1.J1Œ]8xk͆={hW"@>tm5%4fҒR_JKiI~)/٥%4fҒR_JKiI~)/٥%4fҒR_JEiAʧ`gzF?6fBIczW!T4qtK; Vϊi:#gDrUʳ9VtG*ΈY:#gDrUʳ9VtG*ΈY:#gDrUe]kMʓ vXScЗM*S$uB7FvL_y$eV!!n8TN [9Aַ н|Kx<:2Q:/Io烒qZC*'BI-rN [cD^i%SIkp p$sxna3?% u 'gąل)XAh/ Xew :T\N [MCw3TirSrj5J`MQO㻌ɪ49)wq95F%?0g&P j;MCw3m;kD}$\xMb- |^$N2|J> eԄ1\bh֐P;ljLBEd?Y1;)1;)1;)1;)1;)1;)1;)1\Ȓd:\$)|9e!u.y4N *)ȻB)ȻB)ȻB)ȻB)ȻB)ȻB)ȻB)ȻB)QFt:E73 Eq.}q₫]^bS#Ė49 B%fҒR_JKiI~)/٥%4fҒR_JKiI~)/٥%4fҒR_JKiI!1`}yΰgq3:÷ԢSVcPb lTC-(pES*pN8"ة‡[8Pb lTC-(pES*pN8"ة‡[U<7tpJqV`TT@E(ʹ63\ m˓eNpׇwқL%nN8"ة‡[8Pb lTC-(pES*pN8"ة‡[8Pb lTC-(pES;~c{\Ѵr>Kg\9[ j4^:"Jc R|dyXa>GyU8î,}B ?ΏqUqcM\X eV'3dƛ/@:=ʭVNgō6qc^.t{VzF7p M'H{u[r~7Irtm,w?~'>f#pb~v/tdDFhj7!ʐ܍ C8YRt܇ *Cr45eHnFr, :nC!pƏ' Sȓ&KeLvoӟV0YJsiI~)/٥%4fҒR_JKiI~)/٥%4fҒR_JKiI~)/٥%4 wKUIov] c.L.՝ʳ9VtG*ΈY:#gDrUʳ9VtG*ΈY:#gDrUʳ9VtG*ΈV-RQ1P$x4W,nUMeqQ)Fۀc:LxGWCH}1^<#!DŽuz$>D~7أ,Ll1~ %I0c 5kюz1ޯF;zWc^wюz1ޯF;zWc^wюz1ޯF;z<d3;2|g0zJ/ƌAi6 ܋ouW~p۪Uߜ6Uw 8m]nuWl[ O]f8E[ U<&Iv`N)$9_P((kF?{ 2}9`trq>q #]dG `?#W9VD/$^F+푼N`hA&DoK1A~nJ=M}TOt3ff!gf! #T ]PDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDc𠼕K>pЇv]ev]ev]ev]ev]]wߦ^1.(1e\VUfÖaZOz_aWgVE ,Rsewv_WB\V۷G$G]vL[ @,';%y.[:__̖@qI)8kk0jO, C?\8ѷ?_&cI(ҬRvӝ#s{;QS6dV&Va.A_fEben6dV&Va ije9f7(pęs-va@W'ie:]H&ü|H&^YPq>2MUњ~IW Ptm,o?EEr~`[nx|r۴^8>\G',o?EEr~`[nx|r۴^8>\G',owwfu>J).Adt6+ a׋Z6'_TXD; ]0J%6Qh [rJUEPOLU ɏ<ݬ9H{M8,Z1^W Qs rϏflG'F7v[njF5 6Ĕ"зkմ>׍2NlEoVJ 3B^CPT5CPT5CPT5CPT5CPT5CPT5CPT5CPT5CPT5CPT5CPT5CPT5CPT5GPԤff5[6%{X{b?|V w}ח!STKiCD-e4~ dIeK@*kGMʴԧh*~M}z mӃJ3ij05y@D(I{#>^|X`-^#I[=tLF2C0 @0?~^21 y4M<\qAJ %FQS+{tuDooHnicәPXMcoL`TQpQ4 /Nv.b *ϫæuC7F|^bbs`aC)v\5 G|Z~П R$)'T|6oy\;]3A"ȓF4~5(rҺQMxNx_,IuGsU#]չ*-1Drr0^^0 A%1{~&}"c>Ϭ2kYtLǂI&<$'$:${dWDolj M_xIO7I5|tIZnj X)Ŷy*(G#1\v($ 襚e;gtF{jW !Za6 -`&RGgo83tu*+.~=Ih㸥0 AP(#-n?~"-Y>zh}Wai&MX6IеEwS}п_Kgr@;ӎ\uK%U,Yw&E,x?9?pcPUoSC(p0ȂG%go  Q=ϋð ^Z>2l2Q&$B.zL[p}95tĻ[IDO)7T+GGW ?h| b^!}|N9E2e؇1Oο,I1)a%Px@iڜA0U6E0Pcb{Hf06D.7~-WO9+/fa~䡷3" xXw4C;Ɛui8ɾ*JL;)Fgn+$m؀zEz 7&N~S'([ï\_d?DvF޻f!JfPRYdKGMU`ˏO=}&L{J|IPYY.Pue;IDG^*ul5]mꭊbaZW\B|A)$>hN?JT&{Efufh06+W mZΣfk`)5}A&+929ތv 5"zZ,M^xǨ%+>$?Zagov>&$գ}pW)?Rrr 'ɹ{K:Ϫ9[I*6%*4 ïJI446s7$*/e8xSx=,d](H $|m}7(=Q&?\Ⴚu۟?Q0hٛaav%<кMl Xa)ߍ%.#/)E ;d,*hˇ߮ʧXw@QuKbW^]iBki" n~)@i$-L">T*HIED~O]y&H?sbd\pJ`/dkQ)4ŝcHo^b̪0 r}T˦ȶbϔOr[mK6Ѷ$$f1_zYxq<+5o/u"  gpPϘ2Bu<نi,qu/u܌. 7 =R ni)dsW'+,e;exabbAٕ^Po>oUx$\ fcx%@_3 *|]a,%b[lac672/N7kܨmaMx [ヷ94 'Xƥ0#i &Mrlpr2Hs􃏞i*OTx J Fo_U^0A( +k(%A{}TMxҥ7pzo~U/u"v)&_b& Ky%'> ]H'R(} Ӣ'!iP]0a̲չghqѪ+/']q8G߾jU1{ 8/9x`nsah"?'_ E6@H-g,Gwpl@r .4Ϧ&aC!N,apug߉;Or7/O!yoMawಯa{dL_]Txiһ<7Vq{R?5ӿzJa9+?!/%~U]h 7 u/U[}2#:q:t oS֤|Vn5B܂}ԾUmzԏƴ]&&{} )Һ2b_\pjĆ}J"iPG]q$idl>8vr"(e,W"[}1"XMy`e t"Ρ@5T왰SCXz[W#!¯vZ$2^Ex5(w4"Z mE^ʃiڽ Cg}:;8J ? 2lcg}F86Qg& ;;96qm1ɳiM@wLvrlcg}F8(SF )(<JvX=J/pWK@ip< K]5ЪiK␬5uS X<[|CK(rDt}dWUgL,0?r;TXKLAj銛S6!&F5 /{:n0ndce7+ҥO` 3Gꊔ4r ~K*doy'CM зnl@Fy}I9`YFL_BT&5y W-d<eRsG.vH@ !szzm!ju·4ViWJEd1y*fԬD4KΡ4p ΃E)25fVAM. =J#N^ܵjEaR:qkb 1F[1! nsNimages/about-header-freedoms-rtl.webp000064400000125446152213653150013650 0ustar00RIFFWEBPVP8X WALPHL :)E|Z,q7:Z'S0SF DO?O?O?O?O?O?O?O-R"RrUTvuvir;Qץ9vup>>&kp}kckkաkCs*?OJ?O{8G?O?O+=GW}:4-U&-|{ ycODtXUkz{W0n]VfcKO6][ᡤ{$)=x>GfSS3Y:k]UgL{*2%3ݖuI)vx0|Ϟ>kz2NL7Pe*@'IJ=~pVmqz}PONwdIzxt\XE%uog'Uv?C9o"!j5 HC:|Gf"Q(D"ȃ_DI.iEF2'H#ȢD)d"&)J#"BRR+"^#S >3􇝗QRqUT(,EU((L,JU.Q_`?As?]6h<6hl\?]6y4W6hģ9\p6hy4Wl9ќ&0Wiz0W̉0ԃ9)0ԃ914$91O9Es9`Ni@se.vN+v^;Dsm9Khڠ9]p-[n -s\*Ga'e$U4'̹%r hU0$L\. k4@sm/ٹ;@smМ-\Fse4gМynk`|Fgy@sٹҷhN=|sI==| R\4W͙\h.5h<Ӏ̳s\٠9 hlМynk@seplМ4geVh^%h?[ټriO?O?O?O?O?O?O?O?O?O?O?O3VP8 p*X>1C!"&@ enNwg%>kS|B>^߼~av}9` u`7Yx~.Es[I>zyiW3/֟{H_@?Sǵl<}_qpkmׁ?h#>y;?Z{_ۿ~Zyź?-iUg^qnO:uYל[μvVu*8]Uyź?-iUg^qnO:uYל[μvVu*8]Uyź?-iUg^qnO:uYל[μvVu*8]Uyź?-iUg^qnO:uYל[μvVu*8]Uyź?-iUg^qnO:!UC4-ʏ(o7 CxP(o7 CxP(o7 CxP(o7 CxP(o7 CxP(o7 CxP(o7 CxP4l{nߚ+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm0lRaX/vⱶ(my>agd fOgf-qc`ږ{-j[L>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm0lR$IKs [H1)qqϚR(C˔7ϊ{-j[L>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm0lRaX/vțwTP@T|Z 1Һpc&'!t#!c%`ږ{-j[L>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm0lRaXn[nЋjt[_uwG' ;S̼Slq6eT3Kic`ږ{-j[L>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ]'tB}g-(ġz(;}x/WˁS]3 [*a 5OgwQ}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y}Y|:Q5Y ,[^~#wbR&iiiiiiiiiiiiiiiiiiiiiiiiiiii$6 ٓAT0-%DUmYPN>{W;3 +voKdz#;/֥O6L\Σ CxP(o7 CxP(o7 CxP(o7 CxP(o7 CxP(o7 CxP(o7x,+7Tl){i6Xqji\OqȺo]kݎE64D"Pyd 95??rv$&7'59W|7d{:l B ^1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8b1^%U9sX/.s hNYD?05Qh&ɣ܌ `U uPE#_`iLuo/@cD) >|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|ϟ>|Ϟp$ؐSwOsJ%a{`TʯreC#ÌΖ$%M 3ux& —ٲ 6nt Js29C~}7B\o~SGJur?Xq"9~"KWe#x~hzNj8*իVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZju*y},+'?^ TgkMȃjOEbd(PFګߨtWAv>N3UL:onAիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjիVZjwLDb*:e<|`dW@`M|Ԏ@sBO1W*a@ ]'9*LՄ_ʶ% ?# ٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6lٳf͛6l$vu8̹"%ѩi3.J&餗ͮlu9a:F*$ybŹˁτUlQF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hn*K:1MLArw^ë[+rb=3%5Jw,Z AQ g!:pR?JR!Y$m=W\\b~YarM~^:Z}7i>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm0lRaX/vն<)MRPPyoVw}&aRc|Ok׌ dz(`o qpo$F/)MW%MPsH>+٭acDyכJ6+I)&SNBc+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{Tڌ/=(Xz`4N\7A4Q+5**g]) {_AlvRe)yeZK06i? ?Ce٨+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm0lRaX36qwԖVI7eU fn9h (d@] JssrC#?$7h-$2/ClG'*A=/ ^&wqŕ}_|j}̴(L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dɓ&L2dQ64Tbq $/D$LqRi@vډTd x Qg5,\ 8M=O9Q Zwќ…!gu]Ic`ږ{-j[L>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+bfȾm!auo S`RNu]LS/v17i^>n9CSր;}Ѻ 5aNoNA!Eh!@/-tI?,ϲNe谡 2dѬw_S=M1u@ IϦcX -E \z(7UiD(q8b1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8bhlSo gC\]ܭ٨KA cy=xæʧzȊ[Z [{ 얨6͂MH3Zd H;&UEX>lļ w|%lߢYDZ798b1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8b1GQ(q8b1GQ( `v@lb~+du8=GKC 7$D(oԫd&\щ Ėw$v4Es3%!1K[mBHѠPdM ]!üxq{QM%iS ǖH;9*wj[L>+Զ|V6 ݩm0lRaX/vⱰ^Kic`ږ{-j[L>+Զ|V6 ݩm2 '31g)~_GQaŔ?k@.:UIfB+Զ|V6 ݩm0lRaO<-mrzo'L| ιxu<خryyTIȗKK$z7T`w#jCOiе=%ݒƓĕEBɐC X@cjy>lYka>9Wt@lR3%Eg!y: 87"R%/ۀ:,p-O6A@G9d jo S7*s.Jdqa}^\&c?A*O3[j&mK.MiN9{A WU8_e[g'"lRֺXy F2V:B."zgsJ c*u/4h(`k;!ARARARARARARARARARARARARARARARARARARARARARARARARARARARARy;oBW| {Ӱ[jReaHK3{*!r2Fy:LjN^o'i&"dE2p1\:I\{7҅8՜91L?*+b<ռg2|"Ӌ5YD6TA3@ !_kXr Upw (îμvVu*8]Uyź?-iUg^qmܤ mZHeX8% |G<[4uceԬ_&'@xF-Tf#hc4[JbwFiS?:1_UK]>_nTN>lJYxd/W;o2PC X/lBL@H곏Jzt] ^J4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hѣF4hVz:rh[nH<9M?trK3H*f \4iQYu$JaeVI?RyN^F:᫱072biМl~:/c rC-Le&u!C? -G@ mZa]KeϦD` {ׯ^zׯ^zׯ^zׯ^zׯ^zׯ^zׯ^zׯ^zׯ^zׯ^zׯ^zp9a# $gNèK\LLnFIVSP_t[\°9ўXGʹ 4dSn?\< 1ݩ,0>"} (<SDJ}_-Odt$-hSA%Ӵlfb\lO[\V}3N:tӧN:tӧN:tӧN:tӧN:tӧN:tӧN:tӧN:tӧN:tӧN:tӧN:tڀ-%'Diͬb7K4SIg;,}Tţo0{:Jw%SLcmW]Aw!S Lp_0q=#QTX>K P>A+%3pf3Db%ld6@冋Y'~`R;H8Ύɴ;.&e\yg\]̖ǵju8E-e8x%įWW\J_uq+%}įWW\J_uq+%}įWW\J_uq+%}įWF#IShDyJ(5aDêvԊ3DnVÔk͸hM/ b f61fk(2zLU׀XO[>'P2fhz>He .E{мRBqA׫t>P۞ә3қ[i4~mݴvqԙJŰ>K4 (9^s39R R9F6(=AKq^Q0Ә WPF]/}Ҫ^Y'_)o 3%Q,"KnԸZw +|*pqO TQt 4WuMLJ{ <8mĞh$@xq'É=I6Oa{ <8mĞh$@xq'É=I6OaeC<ن7&7`Cŝy$ ؛"~4ለbԧ a t&}Ąd1C><5d2Tvq$ɀ#$isBZDŽ u OF6ey0N΅L%8s迬]can_'Y^Wx{~y>MI~-3w'T-n+yͲoftolG%M3 d(gS@ }+p'cñ`B6hC܄@IE_MϷ;"B9fWN=q@4_Fuk ^ϸԹ4E)#o~ǒyʢ0S+msP9gvl %/kcb`+ ݮj.$曩HBZ%┒bޘ%}T;rާ`&E-jF맖Y yl UeT&3m!3lHwm8< H 1yDb矝Og]%EyyY4rUqOM@xިG1qw''y=kGܘu*ύl%'3n;Oxm ^H YsG1!;C=k$j17EStqΕ5# jӀ%| Lx|‡.\+L?LZoڤ|J~iY Դ2M7.i}outrg$1@L˹  ,+ "->YJ&/b\kۈ0ذIm8C z[~G gtihpzMh#ge =D`iQEjD$bB^3bA!6 ߏt'sPwt\FY;H¿?%k\U!,tr!}D[ػSdYnAFٕ['b}4G׹|hFUS K-6%-&TuٵtЩs!g?gqf -fײ( \toEHKIV U E/w\ 18Fnb~D*wkގ_K:Ky[dzh_c0[0F\70hW3_T^4x%s2cKLn&ߨB-:=i󻥬 U^l 'l{!L،ɖ (4jzvXy{} [lE./h4]U<@e[ q/>퉉|=6fJS %#cM]1Dʳib,AutO4#t2$YD hQ)ic\ (fUU>l e=Y3T,d8&3l^&odbiGF-rrF }3=`0RII|%V](l'A%18Ọ"du}_+.+!>cW||<#|t {&>$ў߉Hj2*3bTh[j[U濲.x6\+A*بVUDhxw.[m:n}?%|L@dkKu-yM61\g,ߞF$Mݗ D@#trFֺ0Թ:{ Twr.EȻ"]܋wr.EȻ"]܋wr.EȻ"]܋wr.EȻ"]܋wr.EȻ"]܋wr.EȻ"]܋wr.EȻ|{ r>Ox&^= ,"6FG 1eOT乩@zb?:9?@-bÑ~p-)x'fEn'e 69uVlJ$w@^nytU[qsmx$Ȍh7\3 ٞDb$/eb\\u4ᶈy*;JFe~ݼBAmޱM2<.7I{s$݅N]0G#s' r!4/dz}~KkmWgbg-iA$dd<"yo!]CʂMQqOI>ڢ? ܂f;dDj s u2n78>/ZzVvS0E??##@"XLP qlzT4Ö2'0zX`aϽ RO8\`*ƫˁY]GK@Hy`ͮZҚ?YLB71kq~>OmݔSLRډߟퟖà+yM 6s>TL>,†MH?ԮCOzy6.0ks(}S8Jf'#ek ?; +ycY01X^pV;v,Kb oⱞnamۨx VƏrjY!ʖ!_==^' ?m_JpvD sQs'#>m5OG;i}b9MGj?XvQs'#>m5OG;i}b9MGj?XvQs jz|,l*"7WG&5dY=LR7I<$F4h+׉%l*(g &v`kڡ{RkvX. ~k}j"n$hbWqWփN8Y>itݤXIE0*)?\ o+-ȓ-ĩxP@{`w74sX6 RlÚ̓@(\Rnƿw;bE>g+nԗ.Gg}k+/pXiKF\28!PQ3u(8Lmlet 73&0#dwg2]!z94 lUP 6C0ꡯcҜW70lfTĊ7C5ND(,,WBspU!^ hxQqpqD}R6c;|+w`t`hv~WǑ $r p$i2BsD?F]%`mQے( ? J0 7>$y K[D́Kㅻw l t@2sN@S m aFFͣUNaoDȝOӊNd5w\u3ÊVL74/ ]ʻ=)+H\`"pT/w9)2CH3i0~J/̀= r8U ͍YФTǓOm&՜$$V|!)V9tsr#cZE:^!j;QgK0ijۃNe!Ńi]w')n'\~xpJ=EjB.SؓWώ,pAncZ׍X8KM Æ? QKǏ'jBHW*k4e6^r_J Tɷ*E O^NsG&i" 63=96"%؊ R 1n)qExo!Û7ezv wP}\́M7,kZO2AnPV&0΁Cf=nZ'|¼E 0\3D bry4/;+5FSW]H'!ޠPOpZuPqcܳ,kz< VcQ{IevX?l$y8Elcsb~ݯ2!pe*^f%ӱ~bogLZΎjЋKbny_]ptJK$e7Gz"N pLt5A <3h:6m'/:v@`}_5N7_-bk=yoC=yUj>ʦhר7l ;n< ,erOS!s}'6-AoA<+ӏ2+2xI<ۮԹc_ Wu=pCf!v:My1>3UHH9:pI_T1ҙDi7fyC,ZC2M) `4{{iD!el\q@1K߸a%;Mf[0#LCqC#_͘}s4% k% u WD5=U: =~$c}Z̤-FB01 @"0 X> ؉nstȕOLٌmsC\Vw 8') %X)e{o6 ?YdQQp+W^"pҼ<^=KَY!V*f'1$)ܬʫd M!;)n=q"yf4_*S!rd<9 [/?e%^w" _dWJa%qI}Ս0A3~B2{'<꽶5(1؉# ca>:7 8zjd]nGͯCdO0nš qT3HwFz [ lYOW+M-kwIBg=3 h}NS+i?l5qmhLʷl)D6`8K:.vynJ'TDWp]R4Ivi If_ђ5CcHJNĿeᲣ`dTaU=|GfJjՐÿU~'͛ҀI";CX#p@׺FW&?TZ"Rq2le5Ѱز8+A+Έ?=tBu';K[XӐ;kx`CЋ%-|fX>*M gof!dxrGAfo}%Ln\+2Gi\]ix G=þVy 4]jI\ZDԾhi3ɀ%A_2k6H}L=^`l#~`CrK!)ҋs7CN}c?h#d$I|YZ P]t3Lԣȴ֭+ʦ^azʔn-=[G =Sn{j+潑EFSI&_&zdb+? Q1zPEVk0[p뼻\,a3K r u8"",w`/D9CL7(tzm $OЙB5]xsP2k9c:=/j ?lu=?Xq4etweIH~@֑RmcW㚕 +5q7c/FiXkxarϽ}nR9Ra Z* ~k)fYkSZt9cT㟰p9^ipXw8k93-ě"Z&,fe5agfhg(}@lH|}LVTr"ۧy,VU}{Dd)Jwc{(Lc}u] ٱ` Zw -|x~ >|R7>V˴ݚyvƵDžq Q6GW"(pXGΤA# ߩ>_򍸣@/Dk_mvY=wS8Bf&)>N*)A&욍?h]U7]!W+o%M.1ihyFVKuW|PǺZikD-(l=f!O 82ɕŐ-1>ra H͟VzRJ 1!}AvO笪 !2$ N,B/~٭8B,/Hj_n,&3Ҭ&Dx` Sq|fc [qu_ oU,\TWPkd';apt&x5miSY%#k@6_o8xn@Gc:( .I s/I5za tB>I_dYj=G##-U0=Wh>xjY:֊~ E$7Vc^[lD;z[^Sc m.`PF8յd#_|BF@bM;B Z* (8Vd֨*,yӭnb Ю迨>H^|s8F3\\ $һC21N`& OZ|L0?S؃ >wE sLW2<391ZCɺ+:pg{F"LGc9>ďYV#UЇe>->)FrI@ڢ E8 !&Γja@/YnƉIѼ0F);v(,tK7y?)8`dM5D~l㓭J|a}h6ew0Ӕ08W3h<ikOkcc(.!~JD[dD{2݁,wm+ih]Ӄ鼋pNo0 L[XZ9M5#EY6%t9zV )we=@p>=:px!3Y=Mk4%O~5z2R!^@o̖| WTI]wSш' m:@Ս$ۅ:u*1:u d\[Jlw!;ݒa5/XK!&@n%uxpm;2{{-H+Қk~ y Y<~gkV\KZc:uv&X,'?󵭜d/tӚp&}\Yo54 ҄6[$C9o?L`azL3I*| i9MP,.IZ.؁_V+ɯm!HM$ RsXO#%/Ew%gX,d~8C2#8#;{X溢y[_RK=XtRil'#}Ruk2K:u ҄WK7w"Ff>>&86|LiT)_r"Mϝb'ww&IA b[Kݯ9K!V"#GK/ʯ_+`?*Dp-Ɉ,F64ψ3Oh~L2="+sq8wkh>>Ke+պ?Դ^Vѱ+lwX!Ϧ'Du7WDfH5Y7uѲ%K/Gz,&feLL\ȑqVL2mPxwƠh7rEz$2q ! BeQ4-닒g77jW;r]  jpK'5a66xN2mp6LiPYDی[#豉!+Mq;=k`6>?SC~r!PIaJıd6WEQb6}%{swKe65:jR;z%"(_kr; ])ItOBS0mJ ]ǨP<C e l2]\ݨ`ru*"lK젧mbg/LJr \ƺXNl"F dFǻL}_ h^f[#X2{euFԩ͕"'K,ڀzLY&@YEc0%q(픒xo%8D1<|Q= e_-#J`ϲ)asJqT]U[b(Hl"IBurr-G߈ЛSd61c{f(I pƁx* b`^)}|L9C0Чsay ܝ n,xE̯ď%ن SO "'$Թ˴[L!z,\1@Y raKp#r[X@b|5o>|dX{ioS_U}`٘s~S5NYΙƍц a>dp^׽rs{oFhNhLUL?"ݮ~У iB! bzql@c) ܸ|L13`W+CVCױa}ߤ:NBzCs Eڢ+^Qb*r<#֦p@81sp 2RD6AGdIֿp16Yn<{eFXW0.D?Hj_cƆ/QKMǠDNUEaAݺ rU#{SN)٩z 킛5$ɤHĉs\G"wNң/x/V8%"Oz׾ gg*=U6ҳ LӠ2Z19tGUb` I<&bԵm2#(U;'y+)ǯ!-X*A/ƖVnjb5X,"ҝAڱ(]HS,,1۲\7 _Q m&5oj"Mj@[-OevEZw5^R-0"n#?FGNּ֙U/ȈZw 07IF G̘Yg \hhBkA mm!+=a[/wd5??&0 =c95 ;v[ չ,WeY|0ݐUh&!jX8{J%yfv?oAv;)M#[uYGx.VY` U&ḍ'4o.^PaUHtv/w vV A^?u=053Ӓ/^>/Yc C:eտD'U/y1AR^-ہe ̔,oLʔc&Jrp)8 R'ad*sQƣWϰxQ-̻ M>6KAdƟ86mמ*j1M\ׅ46Wp-IDDGಱ (Sk>ěx H.b)_Ek֟dƂwM'Ԉ1=,_ϐ'%Y N=M914:Gݡ1<sޱ(Da힋=z99F2 Lt Ȗ?+^ԻHĵ -,tpj1In+w$8rTH|pGN"ZOӴDzKwqH~"97଩2#CiQiV͑ˮ"̻߄P A;tp0=J.Q{&U: OHbI Zf3t\Z%^JˌiP@IIJ|®{ N_1kspo+ƨjb7DS~O0 {OH3]mm('5@挒1.eoTUĘh.D&`d%^’NxPv2[rHY]l#f+B!ɜJ+v'ʚ,y{Y5E;PpVa2c% h)];~W1鹢[^)k݀9Xc~3a9_fÍr[͇~17lc6oÕl8߇+qWc~3a9_fÍr[͇~17lc6oÕl8߇+qWc~3a9_fÖHaB1Ҟ1ĥD0jA:^ɡ!K;$?&=8d X+s6qHe&CO[*N:˃٩ 'oy*ǥcP,;PQ7R'XD4Slr+7K6I-ɧ$ǣD!Ρ_p!nvKv=xO}GG1E[=lП:Dumնg7\"J"Cg[gSMWx4 u DP:@ Ƚ'izW&֗}T_DpF9JϖZk]tKDی,xȖF1]G GP&@ܠEQI])eV F‘NSn: 'γ&39CyNBɤ:V %a9mZ(:αKZG9߄Gfmfon]ONW_P _g+Hɲ K(Xn ({Qbݏ d9}oԆZfz04Ę)JՇF:]N"f\]M A\8ߙ[-G$A4\|۰X^+또]F̙pb2P^S:~gOlg`>QCp@ `悌uaXբ!fM.JEe'0?jQ!j)8ƅ."Tg[5LAL!J|F5c5J fU7+<q?0!ǓYzAw O>t=44,y߫$x= W'4VU;exhD`*Vw{ Uc̥q?= G3RUU\W}$_!(z. +F 2EVƁEU`˝ 8hO%whޙ7"աαZY%o4%m’~mHvJg;Jxt>f[7,6mArOIi :8uYC̈́>M #JWndd\`p,fɭ"1oT~ȴr!lmOve{LDX9@`ɒctJUsXuh$Ύ{2Bw\F..т9!2: A}J]"[35]/Ku:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bKu:bkVi{hbpJ=@sU4U4ˇ7_U364(O3+ /軚mFKz3IWa:c u蒋?z܎@%ɋngoEǒ%X-$w2ټ||/c LUؚ]M÷ LUw肛@@Ozps2!#Ϻ'rXN)8B(?5 eiu4WG[g(HqDjnw%TUHD0r$8ʩI=U˔S{c'3W3Y tη%v:]wϮ֟lOF2knn?J Ake^_$(8^ǝ2?w/X{Kʑ?Z 53{hȫ"y<,M`Umt*`!2 &<Yv&Q 7̼(}pJ?IC%uG#딴l ^Y&;t 7(?&YyklՓuKen!_[gC{=~=j,qHhB6_nݧDfGbQiZ]w_7gIE Þ,BЍKæ^N6`H{6=fOڇ4WaacT%T]4*굝 VDKVXgSqXqE\oSt6[%OBF>ZzS5$4(,ΐ #tsRhV6[(K:T`5oSu"Ce)j)lS[Ȣ<:RV35v$F>W1׸ȉb?"s3 Fx-3,fnm#^(}RnBՍIu|NI#r͊jӐ4^`) 4X[4hh^\ n{INXciOp[+G߶9ǚԓCg~g*{dN.-'VQfl} = 2Fgש'GRGkt^3YLڒ:p34\Un@ o)|7fj""ZҸIVYi4t"I!!wlw ȩ&ʆN1q-$sU/*S"<+uκ6]E#܈Bz eň?xV/ۊ_?%zR1j)拰B:;}59%Sz(5Jۥ %~vpQaW)#G7V67/!ZSW=\>=ipS@8ZyZMraD}憝)GB! ;7 +hIU4zpWU-BA/e|hOz$sȡx{aǃ;ɱ֏wș+|K|tEBCbԒ6p-KA,B/ wq0?%عDL]22"z1ۢC|MrId1Ö\f8P_m0-5 滀BFEdaYwqYc ij4%&\QwPPUIK4dJ̒K e C(L^U,gϺ_Ý w%&lg%/wR=ׄGF,9^T/1'"r Pn vuX7!IV\8tuXOg3O`KbH _CZ`c{1]ߊ{dMe56~t+i Y-&"`᪕K9O;!:_K+SY#iΠ$EQ@qEHn߭H!dʀu>~fe{R_%?ޕvQ3?>j&(^I$DBP2- m ŘIf-p"21UV@zG<:D!:,|j` w:=9SߐgDG\u\-h\/TV[ͮM%ؐ-"{6ŒbY`z{aħH]2$YϟT&Z7dl!DʆD+yQ+;ȷ C@0^rkÂ1T w H|T.[fvydyHb۸9&*uV[3]|j5|3  cABԁ ԁZWO5T8_#3UVC Kz~(U ?ՖG+-1ޘ?I-C6K,hVۛ08g3q=؝6od}żv'M{%-:m(h1ol@AxNfJ [bt7P>b;m4=7busZU'$V 9B5 Ç~㈼֖ ̫Wqc¶=5ճ~ꏤU.+}r6bZ"ߵi3yؗx+#V#wXeyՌ:`оCe=Ă-!UV|kK"z󐓟x,2t"FXA5ݾ\yfM{Kmm^_X[4Ŋ1ЮLE ܔ2Q@{MܖI3 V'h6BVBas89+ɣn 2dQgBMTl9!% ﷓l\\ 0/r9aB3}Yr5igh0H_g͚y]HZP$?tS2 M F^ lcV:[+C3w ^/,AW$ɒNrH'7v٭oB!ߑ( w˿9HɅl2w`NAAgfVdOv;>&3t2%K) N"/@Պ3=#$4SmPX0(B(դ Is Ѵ m6OSX0m vr ?N]`')ˬ6sd;9ulg.`A͓ h9'%cY'߸hfOɗ]v4ywsJNDua(:g;(*8xQsoH՛=+K3袺7WjK3ʦ}q㋂܃b-'v''ݳ b4 Q#UT$tڶ7bScLj`!TO(lwoC*U2L )thQm tc^K)aNr_3 $X>}kV%mpBuAe.1qd-Z3MiX'ǯ$wO߅"3tpi>8d&6(̇OW񭾭~u=YQU,{Ԉެ``~\BnÓM/\9+4;Zq `;8\ZUb͋%bzY ܍IUl;M$DZ|4182`#3Od}P}'k|s~ 2V3}oz9+Ěg.Y<8(V8+3؝ R%\kMB^>Clz] nf)^蜗CM:ɤOc&x'CIiC#J<6!fS=%>;C˅zvU:6A ǧ +F2SNKEZAS\ܓ9n LN'$.ܼhK.^)L>t(˰t?-З#aϔ1`hNr(OJXDSlXN[vVENj/$ Z;),/ "2|V֑E[U=v4ސeYA 鸵ӨVu؋k \թF2*}a<-q_q}>Vľ؁k= ѿ), BrND&dݍI6 T"7=ڄF T{_"W=L[yz֒\)7ʵ<k6EzNލJ&U 9h}P0Hf@ X$h0BԕC% 9{ |##J޼RQ2c79j|Hd|:އ_}2(*NNWHs:1ZW如^'va&I!-CqtUOGI7LSGXA:F zgUyFk|oLҘjҺ#)o ; D`D~/z12%TxѣAD!ȀLÚ=;fǓ8^#{s@XS-/WpղkOzyQ5_@oN'0. =F@i2hȸX9xry/ڱz~[?:[׎bA*S <7@O!uZ?nq쫅y|ƌt21Y~A~؝?Y;aDp6{Zu褂 t=*^/??ܟa-:SӲ0Ϥ&S@\l7zWZV U`[%j*OX jŨ> M16I39G.ܠ7MhL٫<]}=H$MdIz^qw~Li$˿e=\Oj!$8{%nMz駩ϷRlwq7D}7:Ʒc.Jn R-VU|C]9X Db/\*/U F5c?ҙtFs򯽵RrgX>N<<+5jE.ІM3M,F/HuBkZ.XƹB?vT= F@oTh|ӖAU ;[,>nآI&+!qCrn &K8x_<&UUG nG&6.iQgwqMK>BK~rt<]JGjŤ)Eꮭ%w.#oWϊGA[ݡW9H0>E "74XNTT#$/cz[:K☧1;-BnTo,{y<-1@i~3Uz5M&9Lvˡc资lƣU1W`@QI= ˡeǿ2/ʙgvŸ>ϖILkȋj; )eI3k^IyGg-"J`~, .EFmw8yBI7lPok܍XTfthg$!aF4! ܞi}`>ڊWDz]F;l*@gmjJ ʻޟK~rk9gc. 4n&_m6}1 p TH5$.=\NmRk fHhpٹޝf,]`ѷ l`.Mڸ"}cj(+Z2mS7{EzC!+r“XCYr8b{͛s [G`e7tgA`~K*>i|[,RSיb5&Odn*.΋Ũ3Z^NepBUig15ي|`&=`rp:f)D)3thwhBU8\GSD-$5X)Wvʸ0M5U_"+~t@apzɄg__7|T?M*n&CuɱKABK[ݴs o@ Й :)s:fv ɵC̺rgU_=gE\oF- _c[hIn_Ɍ+ &З[0_im)iP<&o)wd1sY [%axϟlP_w+U@HH(cjh tz@@ظPJMdRouD6 5-ks"PH&e|-a5ѯzVcxţБ|gIs5rTȬx. 3e5,\ab;GՠiͱYI*GAeڷESu@Z7BMk!< +]CN*sILNB`A)HpN4kL26{$ |&}. ΤLL*aSݭ"X80c{-OGCȉ}΍ R]0؜ Z=ym x;&E=hbFaYRQĢV=i,EEE!lt\^nĹE<,_JU)5G ގΎ݈ RP~v3 $\N4V}!n"z\D;- w,aɖ* M :y$Pc(er1Mʪir|Pcnl@n{NPF4O$LnmdX,[ONrn9 &/. eV<6۪J't&ՉBNIO@P'&-Ɨ .ym%}h޻aR VoRDoy=Bݙ{z؜+GC7U{PV[ŒpS~n<_∗k~/mE;' 56HmI!W!Ŗ-)>װ`g17OS-<4^lT˕Mxcb@Q[G?_P78%@QvTp x7^2IqӉD˜T$R +׈fP` 9J&.u|^ e ^tfe j䢗g=EgƓI쓺R%Q%/mQ2-> w֜{Xn%S&N"Z3;Hog`~c*v,X9Av3*ʷR(Ю:ysCdȪQ fۈ" 85GVqB-/"c\`ٻa0jFEU3d .xm:M(i/{\˅OhGz<m*2Y R7J[JN*A83k̶>P9huiZ{-Z,A6ByNP/Z>nKۖ.h̅"t,.(ۀ>řu$0:^ FD!;Z+Hӿ*d]s.Gx_RD wPVe)FꚀj# ,ʀ}VRn]EOx#}.,6G w Qc3,K|n}rg;`r'"mWDkAIZ1f)A}ӁY'uBk3PA$svG8`_TG!KMK*AV_C֡ӡLh uq[bAzwp*ˍ6 ޅ#Ubob{ɫ"n/411gn(RЬ1/0*`HgvyO6$w,g̙OCP'UQ(C) GΖy nj54aB3aq¸=Q%Pk [e偲8 k2e%aACav̋WECI%ո7i/ ZicP))mł^_G9 c/szRuSi7&ġh/D 1bc`6BWJD.\3nq;N&u'~em+! W$\$fɻ3T򫰦K{R~$<9Z[k係:^_Е꿫1豥#SInA^3A馿z^E'-bDF2db7l3$%{E.ܨJ"~Z2 G[w-6|!_hq8'eGɐJzpTN6dW?J;lY`"` +L-8R OE 9/f$V!cAI7b OD ֨yYpg+I,lYqCj'E56ݽ|3Yo4#YDԬeTR>޹>w,(-A <_%,vu 0EJr-h3Am#:>$2+}4E^F~)qC1-!:^ɩB8YZI F ~xY`O0Qab6 ?~xD=!&?P6B-v lxk,o,Q7^5"gMP^-#7v?b1StCQV pQPCaZ{}QR( Zm6t/6gbg:a.\RV̵vfO-j~t/F-t#/Zbol!k8DTm8 ]Z@-ؙkByKDSMLv$A q)-A5 "rtm3 -{OjRU\.Ͳ7?a:蓂yUX;V7};7 G8с{@0\g7z{[@OS%PR 4n Z I$v_#y'<,גAsiiVN+gs7F@Zq dhnv`?Eu>[ TlRxoϣ܇(`ujT%\n5vS{3`MvTxjF\w-oTaaک e |mURFw Òk ޻ I&SfU݉䌟B$XD G1ARARa#ޣu8Efu$b&| *')Ի? 5fᩓ D' MB-ZM*&fmq)Nah l ?oΖ^PU,o2a>rko@Lm]g9em }Go6| +̗C4Q'kjzCoq8hHVqòt޷=-}nPAIr0k Ln>П8Ah _m|ܰ9|xvc$Gn]#Wig"wPV]GW#De%Y׋(٩I|H|Us[?5 R{ýp؍8C\$XN^phey TW*IcTA[ed,<1Kp ơ6NKyTs "'JarųOTx[ï5_^:|%WI{}VR 텋_|eC2I%T*^i 6̀)GCGkQUeߖx\ ?dI\ec>w.Fş 5l/9žH# ܨw̚2 UG!$DfI8f`DLŋԫ #-e*#z,}qQK/8A'|d3V ڛ!& HwS.K;cExÕ 3fz"D_8[|p22mu[b6Ht;ٻf}3Oř$m+ݘ|ABu]Ѝi~/}4?g'= P2;h@EA.TC`Ԓ4bh0mi9oГ8 Zt&_~:rtp,bOnsc4?bȌRc.=L^ӥ*%ˮZ[Lےs=eqY]?p"VaL E3|j5՟qV6_IqvZi^0Kt`8\/+_ {4*K$#ċQg >>܄X_ǮBd,}Zr6KK(!`*MxOǴ\ʃ)eNE(͊<.mS?&F᷆;q!#(<8=ٶmK mzxy*˥tQC Gц6ήԀ*  "NSEfH&bd[\=u싚p]Dׁ$&)|i RaV8ݡHfɧJ RRj4 g n)\q9\4ɠja\`nmdNc]] L"U",_=2&.`S w\xH i#Hm*C_LjWt{cy!qb+!;8PddeB^N}:|<լnjt[Dp)qZ":=T擡L|c?YY +fqN aɦwI>ppb<8K6.15T?{B ߒO&Ʃ,"GOH8XbM11q^w{cg/!<4I"4),)nT$4u fZV0%2䐅0ecM_ȍ"j)h4ǧgt<$;Kk).U+Y?SgQ5Ɠĸ}&r- hqvR{|@Tr9]JF|{"DK)B)ze'WvS0#PEyח[Bke1ZD4|n)ZmPSٟ$11cf, 5$ތx\Ywq\*QUɇD1#MvGyuhpU7zxH/;>2>_Ӫ_:80=ɡJധOR2.\t̔ZN}.S%*,!-T9ahdQfAF_ L7O#钼QQ ?}?S",5J"L;6'9*Gl? dP3|fQ .#z]l߭V5{+b8━fZEDD5¶&̟՟nP`*&UMX !T~^Z[C@oTCe +wK'㌹TՉ—زjWUz~JzU oB==U&xO,&" ̀ł-^o]r%t9q@IZ$e ,z94 g-(,ޗ-ʿÆeH_pjƂ7wϻ ~&RAa$ Q|4x65~ B7\EpkXS0TlofR >' D9echGAU{ߎ

comment_ID ); ?>

comment_post_ID > 0 ) : $comment_link = get_comment_link( $comment ); ?>

'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); wp_editor( $comment->comment_content, 'content', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings, ) ); wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>

comment_approved ) { case '1': _e( 'Approved' ); break; case '0': _e( 'Pending' ); break; case 'spam': _e( 'Spam' ); break; } ?>


comment_date ) ), /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) ); ?> ' . $submitted . '' ); ?>
comment_post_ID; if ( current_user_can( 'edit_post', $post_id ) ) { $post_link = ""; $post_link .= esc_html( get_the_title( $post_id ) ) . ''; } else { $post_link = esc_html( get_the_title( $post_id ) ); } ?>
' . $post_link . '' ); ?>
comment_parent ) : $parent = get_comment( $comment->comment_parent ); if ( $parent ) : $parent_link = esc_url( get_comment_link( $parent ) ); $name = get_comment_author( $parent ); ?>
' . $name . '' ); ?>
comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "\n"; ?>
<?php echo esc_attr( $header_alt_text ); ?>

  • Share your knowledge in the WordPress support forums.' ); ?>
  • Write or improve documentation for WordPress.' ); ?>
  • Translate WordPress into your local language.' ); ?>
  • Create and improve WordPress educational materials.' ); ?>
  • Promote the WordPress project to your community.' ); ?>
  • Curate submissions or take photos for the Photo Directory.' ); ?>
  • Organize or participate in local Meetups and WordCamps.' ); ?>
  • Lend your creative imagination to the WordPress UI design.' ); ?>
  • Edit videos and add captions to WordPress.tv.' ); ?>
  • Explore ways to reduce the environmental impact of websites.' ); ?>

  • Find and report bugs in the WordPress core software.' ); ?>
  • Test new releases and proposed features for the Block Editor.' ); ?>
  • Write and submit patches to fix bugs or help build new features.' ); ?>
  • Contribute to the code, improve the UX, and test the WordPress app.' ); ?>

' . __( 'You need a higher level of permission.' ) . '' . '

' . __( 'Sorry, you are not allowed to customize this site.' ) . '

', 403 ); } /** * @global WP_Scripts $wp_scripts * @global WP_Customize_Manager $wp_customize */ global $wp_scripts, $wp_customize; if ( $wp_customize->changeset_post_id() ) { $changeset_post = get_post( $wp_customize->changeset_post_id() ); if ( ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $changeset_post->ID ) ) { wp_die( '

' . __( 'You need a higher level of permission.' ) . '

' . '

' . __( 'Sorry, you are not allowed to edit this changeset.' ) . '

', 403 ); } $missed_schedule = ( 'future' === $changeset_post->post_status && get_post_time( 'G', true, $changeset_post ) < time() ); if ( $missed_schedule ) { /* * Note that an Ajax request spawns here instead of just calling `wp_publish_post( $changeset_post->ID )`. * * Because WP_Customize_Manager is not instantiated for customize.php with the `settings_previewed=false` * argument, settings cannot be reliably saved. Some logic short-circuits if the current value is the * same as the value being saved. This is particularly true for options via `update_option()`. * * By opening an Ajax request, this is avoided and the changeset is published. See #39221. */ $nonces = $wp_customize->get_nonces(); $request_args = array( 'nonce' => $nonces['save'], 'customize_changeset_uuid' => $wp_customize->changeset_uuid(), 'wp_customize' => 'on', 'customize_changeset_status' => 'publish', ); ob_start(); ?> ' . __( 'Your scheduled changes just published' ) . '' . '

' . __( 'Customize New Changes' ) . '

' . $script, 200 ); } if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) { wp_die( '

' . __( 'An error occurred while saving your changeset.' ) . '

' . '

' . __( 'Please try again or start a new changeset. This changeset cannot be further modified.' ) . '

' . '

' . __( 'Customize New Changes' ) . '

', 403 ); } } $url = ! empty( $_REQUEST['url'] ) ? esc_url_raw( wp_unslash( $_REQUEST['url'] ) ) : ''; $return = ! empty( $_REQUEST['return'] ) ? esc_url_raw( wp_unslash( $_REQUEST['return'] ) ) : ''; $autofocus = ! empty( $_REQUEST['autofocus'] ) && is_array( $_REQUEST['autofocus'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['autofocus'] ) ) : array(); if ( ! empty( $url ) ) { $wp_customize->set_preview_url( $url ); } if ( ! empty( $return ) ) { $wp_customize->set_return_url( $return ); } if ( ! empty( $autofocus ) ) { $wp_customize->set_autofocus( $autofocus ); } // Let's roll. header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); wp_user_settings(); _wp_admin_html_begin(); $registered = $wp_scripts->registered; $wp_scripts = new WP_Scripts(); $wp_scripts->registered = $registered; add_action( 'customize_controls_print_scripts', 'print_head_scripts', 20 ); add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts' ); add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 ); /** * Fires when Customizer controls are initialized, before scripts are enqueued. * * @since 3.4.0 */ do_action( 'customize_controls_init' ); wp_enqueue_script( 'heartbeat' ); wp_enqueue_script( 'customize-controls' ); wp_enqueue_style( 'customize-controls' ); /** * Fires when enqueuing Customizer control scripts. * * @since 3.4.0 */ do_action( 'customize_controls_enqueue_scripts' ); $body_class = 'wp-core-ui wp-customizer js'; if ( wp_is_mobile() ) : $body_class .= ' mobile'; add_filter( 'admin_viewport_meta', '_customizer_mobile_viewport_meta' ); endif; if ( $wp_customize->is_ios() ) { $body_class .= ' ios'; } if ( is_rtl() ) { $body_class .= ' rtl'; } $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) ); $admin_color = get_user_option( 'admin_color' ); $body_class .= ' admin-color-' . sanitize_html_class( is_string( $admin_color ) ? $admin_color : '', 'modern' ); if ( wp_use_widgets_block_editor() ) { $body_class .= ' wp-embed-responsive'; } $admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) ); ?> <?php echo esc_html( $admin_title ); ?>
theme()->get( 'RequiresWP' ) ); $compatible_php = is_php_version_compatible( $wp_customize->theme()->get( 'RequiresPHP' ) ); ?> is_theme_active() ? __( 'Publish' ) : __( 'Activate & Publish' ); ?>

    ' . get_bloginfo( 'name', 'display' ) . '' ); ?>

    Documentation on Customizer' ); ?>

    admin-functions.php000064400000000737152213653150010365 0ustar00 .accordion-section-title { border-bottom-color: #dcdcde; margin-top: 15px; } #customize-theme-controls .customize-section-title-nav_menus-heading, #customize-theme-controls .customize-section-title-menu_locations-heading, #customize-theme-controls .customize-section-title-menu_locations-description { padding: 0 12px; } #customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description { /* Override the default italic style for control descriptions */ font-style: normal; } .menu-in-location, .menu-in-locations { display: block; font-weight: 600; font-size: 10px; } #customize-controls .theme-location-set, #customize-controls .control-section .accordion-section-title:focus .menu-in-location, #customize-controls .control-section .accordion-section-title:hover .menu-in-location { color: #50575e; } /* The `edit-menu` and `create-menu` buttons also use the `button-link` class. */ .customize-control-nav_menu_location .edit-menu, .customize-control-nav_menu_location .create-menu { margin-right: 6px; vertical-align: middle; line-height: 2.2; } #customize-controls .customize-control-nav_menu_name { margin-bottom: 12px; } .customize-control-nav_menu_name p:last-of-type { margin-bottom: 0; } #customize-new-menu-submit { float: left; min-width: 85px; } .wp-customizer .menu-item-bar .menu-item-handle, .wp-customizer .menu-item-settings, .wp-customizer .menu-item-settings .description-thin { box-sizing: border-box; } .wp-customizer .menu-item-bar { margin: 0; } .wp-customizer .menu-item-bar .menu-item-handle { width: 100%; max-width: 100%; background: #fff; } .wp-customizer .menu-item-handle .item-title { margin-left: 0; } .wp-customizer .menu-item-handle .item-type { padding: 1px 5px 0 21px; float: left; text-align: left; } .wp-customizer .menu-item-handle:hover { z-index: 8; } .customize-control-nav_menu_item.has-notifications .menu-item-handle { border-right: 4px solid #72aee6; } .wp-customizer .menu-item-settings { max-width: 100%; overflow: hidden; z-index: 8; padding: 10px; background: #f0f0f1; border: 1px solid #8c8f94; border-top: none; } .wp-customizer .menu-item-settings .description-thin { width: 100%; height: auto; margin: 0 0 8px; } .wp-customizer .menu-item-settings input[type="text"] { width: 100%; } .wp-customizer .menu-item-settings .submitbox { margin: 0; padding: 0; } .wp-customizer .menu-item-settings .link-to-original { padding: 5px 0; border: none; font-style: normal; margin: 0; width: 100%; } .wp-customizer .menu-item .submitbox .submitdelete { float: right; margin: 6px 0 0; padding: 0; cursor: pointer; } /** * Menu items reordering styles */ .menu-item-reorder-nav { display: none; background-color: #fff; position: absolute; top: 0; left: 0; } .menus-move-left:before { content: "\f345"; content: "\f341" / ''; } .menus-move-right:before { content: "\f341"; content: "\f345" / ''; } .reordering .menu-item .item-controls, .reordering .menu-item .item-type { display: none; } .reordering .menu-item-reorder-nav { display: block; } .customize-control input.menu-name-field { width: 100%; /* Override the 98% default for customizer inputs, to align with the size of menu items. */ } .wp-customizer .menu-item .item-edit { position: absolute; left: -19px; top: 2px; display: block; width: 30px; height: 38px; margin-left: 0 !important; box-shadow: none; outline: none; overflow: hidden; cursor: pointer; text-align: center; } .wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before { content: "\f142"; content: "\f142" / ''; } .wp-customizer .menu-item-settings p.description { font-style: normal; } .wp-customizer .menu-settings dl { margin: 12px 0 0; padding: 0; } .wp-customizer .menu-settings .checkbox-input { margin-top: 8px; } .wp-customizer .menu-settings .menu-theme-locations { border-top: 1px solid #c3c4c7; } .wp-customizer .menu-settings { margin-top: 36px; border-top: none; } .wp-customizer .menu-location-settings { margin-top: 12px; border-top: none; } .wp-customizer .control-section-nav_menu .menu-location-settings { margin-top: 24px; border-top: 1px solid #dcdcde; } .wp-customizer .control-section-nav_menu .menu-location-settings, .customize-control-nav_menu_auto_add { padding-top: 12px; } .menu-location-settings .customize-control-checkbox .theme-location-set { line-height: 1; } .customize-control-nav_menu_auto_add label { vertical-align: top; } .menu-location-settings .new-menu-locations-widget-note { display: block; } .customize-control-menu { margin-top: 4px; } #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle { color: #50575e; } /* Screen Options */ .customize-screen-options-toggle { background: none; border: none; color: #50575e; cursor: pointer; margin: 0; padding: 20px; position: absolute; left: 0; top: 30px; } #customize-controls .customize-info .customize-help-toggle { padding: 20px; } #customize-controls .customize-info .customize-help-toggle:before { padding: 4px; } .customize-screen-options-toggle:hover, .customize-screen-options-toggle:active, .customize-screen-options-toggle:focus, .active-menu-screen-options .customize-screen-options-toggle, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: var(--wp-admin-theme-color); } .customize-screen-options-toggle:focus, #customize-controls .customize-info .customize-help-toggle:focus { /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .customize-screen-options-toggle:before { -moz-osx-font-smoothing: grayscale; border: none; content: "\f111"; content: "\f111" / ''; display: block; font: 18px/1 dashicons; padding: 5px; text-align: center; text-decoration: none !important; text-indent: 0; right: 6px; position: absolute; top: 6px; } .customize-screen-options-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before { border-radius: 100%; } .wp-customizer #screen-options-wrap { display: none; background: #fff; border-top: 1px solid #dcdcde; padding: 4px 15px 15px; } .wp-customizer .metabox-prefs label { display: block; padding-left: 0; line-height: 30px; } /* rework the arrow indicator implementation for NVDA bug same as #32715 */ .wp-customizer .toggle-indicator { display: inline-block; font-size: 20px; line-height: 1; } .rtl .wp-customizer .toggle-indicator { text-indent: 1px; /* account for the dashicon alignment */ } .wp-customizer .menu-item .item-edit .toggle-indicator:before, #available-menu-items .accordion-section-title .toggle-indicator:before { content: "\f140"; content: "\f140" / ''; display: block; padding: 1px 0 1px 2px; border-radius: 50%; color: #787c82; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; } .control-section-nav_menu .field-link-target, .control-section-nav_menu .field-title-attribute, .control-section-nav_menu .field-css-classes, .control-section-nav_menu .field-xfn, .control-section-nav_menu .field-description { display: none; } .control-section-nav_menu.field-link-target-active .field-link-target, .control-section-nav_menu.field-title-attribute-active .field-title-attribute, .control-section-nav_menu.field-css-classes-active .field-css-classes, .control-section-nav_menu.field-xfn-active .field-xfn, .control-section-nav_menu.field-description-active .field-description { display: block; } /* WARNING: The 20px factor is hard-coded in JS. */ .menu-item-depth-0 { margin-right: 0; } .menu-item-depth-1 { margin-right: 20px; } .menu-item-depth-2 { margin-right: 40px; } .menu-item-depth-3 { margin-right: 60px; } .menu-item-depth-4 { margin-right: 80px; } .menu-item-depth-5 { margin-right: 100px; } .menu-item-depth-6 { margin-right: 120px; } .menu-item-depth-7 { margin-right: 140px; } .menu-item-depth-8 { margin-right: 160px; } /* Not likely to be used or useful beyond this depth */ .menu-item-depth-9 { margin-right: 180px; } .menu-item-depth-10 { margin-right: 200px; } .menu-item-depth-11 { margin-right: 220px; } /* @todo handle .menu-item-settings width */ .menu-item-depth-0 > .menu-item-bar { margin-left: 0; } .menu-item-depth-1 > .menu-item-bar { margin-left: 20px; } .menu-item-depth-2 > .menu-item-bar { margin-left: 40px; } .menu-item-depth-3 > .menu-item-bar { margin-left: 60px; } .menu-item-depth-4 > .menu-item-bar { margin-left: 80px; } .menu-item-depth-5 > .menu-item-bar { margin-left: 100px; } .menu-item-depth-6 > .menu-item-bar { margin-left: 120px; } .menu-item-depth-7 > .menu-item-bar { margin-left: 140px; } .menu-item-depth-8 > .menu-item-bar { margin-left: 160px; } .menu-item-depth-9 > .menu-item-bar { margin-left: 180px; } .menu-item-depth-10 > .menu-item-bar { margin-left: 200px; } .menu-item-depth-11 > .menu-item-bar { margin-left: 220px; } /* Submenu left margin. */ .menu-item-depth-0 .menu-item-transport { margin-right: 0; } .menu-item-depth-1 .menu-item-transport { margin-right: -20px; } .menu-item-depth-3 .menu-item-transport { margin-right: -60px; } .menu-item-depth-4 .menu-item-transport { margin-right: -80px; } .menu-item-depth-2 .menu-item-transport { margin-right: -40px; } .menu-item-depth-5 .menu-item-transport { margin-right: -100px; } .menu-item-depth-6 .menu-item-transport { margin-right: -120px; } .menu-item-depth-7 .menu-item-transport { margin-right: -140px; } .menu-item-depth-8 .menu-item-transport { margin-right: -160px; } .menu-item-depth-9 .menu-item-transport { margin-right: -180px; } .menu-item-depth-10 .menu-item-transport { margin-right: -200px; } .menu-item-depth-11 .menu-item-transport { margin-right: -220px; } /* WARNING: The 20px factor is hard-coded in JS. */ .reordering .menu-item-depth-0 { margin-right: 0; } .reordering .menu-item-depth-1 { margin-right: 15px; } .reordering .menu-item-depth-2 { margin-right: 30px; } .reordering .menu-item-depth-3 { margin-right: 45px; } .reordering .menu-item-depth-4 { margin-right: 60px; } .reordering .menu-item-depth-5 { margin-right: 75px; } .reordering .menu-item-depth-6 { margin-right: 90px; } .reordering .menu-item-depth-7 { margin-right: 105px; } .reordering .menu-item-depth-8 { margin-right: 120px; } /* Not likely to be used or useful beyond this depth */ .reordering .menu-item-depth-9 { margin-right: 135px; } .reordering .menu-item-depth-10 { margin-right: 150px; } .reordering .menu-item-depth-11 { margin-right: 165px; } .reordering .menu-item-depth-0 > .menu-item-bar { margin-left: 0; } .reordering .menu-item-depth-1 > .menu-item-bar { margin-left: 15px; } .reordering .menu-item-depth-2 > .menu-item-bar { margin-left: 30px; } .reordering .menu-item-depth-3 > .menu-item-bar { margin-left: 45px; } .reordering .menu-item-depth-4 > .menu-item-bar { margin-left: 60px; } .reordering .menu-item-depth-5 > .menu-item-bar { margin-left: 75px; } .reordering .menu-item-depth-6 > .menu-item-bar { margin-left: 90px; } .reordering .menu-item-depth-7 > .menu-item-bar { margin-left: 105px; } .reordering .menu-item-depth-8 > .menu-item-bar { margin-left: 120px; } .reordering .menu-item-depth-9 > .menu-item-bar { margin-left: 135px; } .reordering .menu-item-depth-10 > .menu-item-bar { margin-left: 150px; } .reordering .menu-item-depth-11 > .menu-item-bar { margin-left: 165px; } .control-section-nav_menu.menu .menu-item-edit-active { margin-right: 0; } .control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar { margin-left: 0; } .control-section-nav_menu.menu .sortable-placeholder { margin-top: 0; margin-bottom: 1px; max-width: calc(100% - 2px); float: right; display: list-item; border-color: #a7aaad; } .menu-item-transport li.customize-control { float: none; } .control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar { margin-top: 0; } /** * Add-menu-items mode */ .adding-menu-items .control-section { opacity: .4; } .adding-menu-items .control-panel.control-section, .adding-menu-items .control-section.open { opacity: 1; } .menu-item-bar .item-delete { color: #d63638; position: absolute; top: 2px; left: -19px; width: 30px; height: 38px; cursor: pointer; display: none; } .menu-item-bar .item-delete:before { content: "\f335"; content: "\f335" / ''; position: absolute; top: 9px; right: 5px; border-radius: 50%; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .menu-item-bar .item-delete:hover, .menu-item-bar .item-delete:focus { box-shadow: none; outline: none; color: #d63638; } .adding-menu-items .menu-item-bar .item-edit { display: none; } .adding-menu-items .menu-item-bar .item-delete { display: block; } /** * Styles for menu-item addition panel */ #available-menu-items.opening { overflow-y: hidden; /* avoid scrollbar jitter with animating heights */ } #available-menu-items #available-menu-items-search.open { height: 100%; border-bottom: none; } #available-menu-items .accordion-section-title { border-right: none; border-left: none; background: #fff; transition: background-color 0.15s; /* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */ -webkit-user-select: auto; user-select: auto; } #available-menu-items .open .accordion-section-title, #available-menu-items #available-menu-items-search .accordion-section-title { background: #f0f0f1; } /* rework the arrow indicator implementation for NVDA bug see #32715 */ #available-menu-items .accordion-section-title:after { content: none !important; } #available-menu-items .accordion-section-title:hover .toggle-indicator:before, #available-menu-items .button-link:hover .toggle-indicator:before, #available-menu-items .button-link:focus .toggle-indicator:before { color: #1d2327; } #available-menu-items .open .accordion-section-title .toggle-indicator:before { content: "\f142"; color: #1d2327; } #available-menu-items .available-menu-items-list { overflow-y: auto; max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */ background: transparent; } #available-menu-items .accordion-section-title button .toggle-indicator { display: flex; align-items: center; width: 28px; height: 35px; position: absolute; top: 5px; left: 5px; box-shadow: none; outline: none; cursor: pointer; text-align: center; } #available-menu-items .accordion-section-title .no-items, #available-menu-items .cannot-expand .accordion-section-title .spinner, #available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) { display: none; } #available-menu-items-search.cannot-expand .accordion-section-title .spinner { display: block; } #available-menu-items .cannot-expand .accordion-section-title .no-items { float: left; color: #50575e; font-weight: 400; margin-right: 5px; } #available-menu-items .accordion-section-content { max-height: 290px; margin: 0; padding: 0; position: relative; background: transparent; } #available-menu-items .accordion-section-content .available-menu-items-list { margin: 0 0 64px; padding: 1px 15px 15px; } #available-menu-items .accordion-section-content .available-menu-items-list:only-child { /* Types that do not support new items for the current user */ margin-bottom: 0; } #new-custom-menu-item .accordion-section-content { padding: 0 15px 15px; } #available-menu-items .menu-item-tpl { margin: 0; } #custom-menu-item-name.invalid, #custom-menu-item-url.invalid, .edit-menu-item-url.invalid, .menu-name-field.invalid, .menu-name-field.invalid:focus, #available-menu-items .new-content-item .create-item-input.invalid, #available-menu-items .new-content-item .create-item-input.invalid:focus { border: 1px solid #d63638; } #available-menu-items .menu-item-handle .item-type { padding-left: 0; } #available-menu-items .menu-item-handle .item-title { padding-right: 20px; } #available-menu-items .menu-item-handle { cursor: pointer; } #available-menu-items .menu-item-handle { box-shadow: none; margin-top: -1px; } #available-menu-items .menu-item-handle:hover { z-index: 1; } #available-menu-items .item-title h4 { padding: 0 0 5px; font-size: 14px; } #available-menu-items .item-add { position: absolute; top: 1px; right: 1px; color: #8c8f94; width: 30px; height: 38px; box-shadow: none; outline: none; cursor: pointer; text-align: center; } #available-menu-items .menu-item-handle .item-add:focus { color: #1d2327; } #available-menu-items .item-add:before { content: "\f543"; content: "\f543" / ''; position: relative; right: 2px; top: 3px; display: inline-block; height: 20px; border-radius: 50%; font: normal 20px/1.05 dashicons; /* line height is to account for the dashicon's vertical alignment */ } #available-menu-items .menu-item-handle.item-added .item-type, #available-menu-items .menu-item-handle.item-added .item-title, #available-menu-items .menu-item-handle.item-added:hover .item-add, #available-menu-items .menu-item-handle.item-added .item-add:focus { color: #646970; } #available-menu-items .menu-item-handle.item-added .item-add:before { content: "\f147"; content: "\f147" / ''; } #available-menu-items .accordion-section-title.loading .spinner, #available-menu-items-search.loading .accordion-section-title .spinner { visibility: visible; margin: 0 20px; } #available-menu-items-search .spinner { position: absolute; bottom: 24px; /* 13 container padding +1 input margin +10 ( ( 40 input height - 20 spinner height ) / 2 ) */ left: 21px; margin: 0 !important; } /* search results list */ #available-menu-items #available-menu-items-search .accordion-section-content { position: absolute; right: 0; top: 83px; /* below title div / search input (75 + 8 for 40px input) */ bottom: 0; /* 100% height that still triggers lazy load */ max-height: none; width: 100%; padding: 1px 15px 15px; box-sizing: border-box; } #available-menu-items-search .nothing-found { /* Compensate the 1px top padding of the container. */ margin-top: -1px; } #available-menu-items-search .accordion-section-title:after { display: none; } #available-menu-items-search .accordion-section-content:empty { min-height: 0; padding: 0; } #available-menu-items-search.loading .accordion-section-content div { opacity: .5; } #available-menu-items-search.loading.loading-more .accordion-section-content div { opacity: 1; } @media (prefers-reduced-motion: no-preference) { #customize-preview { transition: all 0.2s; } } body.adding-menu-items #available-menu-items { right: 0; visibility: visible; } body.adding-menu-items .wp-full-overlay-main { right: 300px; } body.adding-menu-items #customize-preview { opacity: 0.4; } body.adding-menu-items #customize-preview iframe { pointer-events: none; } .menu-item-handle .spinner { display: none; float: right; margin: 0 0 0 8px; } .nav-menu-inserted-item-loading .spinner { display: block; } .nav-menu-inserted-item-loading .menu-item-handle .item-type { padding: 0 8px 0 0; } .nav-menu-inserted-item-loading .menu-item-handle, .added-menu-item .menu-item-handle.loading { padding: 10px 8px 10px 15px; cursor: default; opacity: .5; background: #fff; color: #787c82; } .added-menu-item .menu-item-handle { transition-property: opacity, background, color; transition-duration: 1.25s; transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); /* Replacement for .hide().fadeIn('slow') in JS to add emphasis when it's loaded. */ } /* Add/delete Menus */ #customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title { border-bottom-color: #dcdcde; } /* @todo update selector */ #accordion-section-add_menu { margin: 15px 12px; } #accordion-section-add_menu h3 { text-align: left; } #accordion-section-add_menu h3, #accordion-section-add_menu .customize-add-menu-button { margin: 0; } #accordion-section-add_menu .customize-add-menu-button { font-weight: 400; } #create-new-menu-submit { float: left; margin: 0 0 12px; } .menu-delete-item { float: right; padding: 1em 0; width: 100%; } .assigned-menu-locations-title p { margin: 0 0 8px; } li.assigned-to-menu-location .menu-delete-item { display: none; } li.assigned-to-menu-location .add-new-menu-item { margin-bottom: 1em; } .menu-item-handle { margin-top: -1px; } .ui-sortable-disabled .menu-item-handle { cursor: default; } .menu-item-handle:hover { position: relative; z-index: 10; color: var(--wp-admin-theme-color); } .menu-item-handle:hover .item-type, .menu-item-handle:hover .item-edit, #available-menu-items .menu-item-handle:hover .item-add { color: var(--wp-admin-theme-color); } .menu-item-edit-active .menu-item-handle { border-color: #8c8f94; border-bottom: none; } .customize-control-nav_menu_item { margin-bottom: 0; } .customize-control-nav_menu .new-menu-item-invitation { margin-top: 0; margin-bottom: 0; } .customize-control-nav_menu .customize-control-nav_menu-buttons { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; margin-top: 12px; } /** * box-shadows */ .wp-customizer .menu-item .submitbox .submitdelete:focus, .customize-screen-options-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-customizer button:focus .toggle-indicator:before, .menu-delete:focus, .menu-item-bar .item-delete:focus:before, #available-menu-items .item-add:focus:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } @media screen and (max-width: 782px) { #available-menu-items #available-menu-items-search .accordion-section-content { top: 71px; /* 63 + 8 for 40px input */ } } @media screen and (max-width: 640px) { #available-menu-items #available-menu-items-search .accordion-section-content { top: 154px; /* 146 + 8 for 40px input */ } } css/wp-admin-rtl.min.css000064400000001046152213653150011147 0ustar00/*! This file is auto-generated */ @import url(common-rtl.min.css); @import url(forms-rtl.min.css); @import url(admin-menu-rtl.min.css); @import url(dashboard-rtl.min.css); @import url(list-tables-rtl.min.css); @import url(edit-rtl.min.css); @import url(revisions-rtl.min.css); @import url(media-rtl.min.css); @import url(themes-rtl.min.css); @import url(about-rtl.min.css); @import url(nav-menus-rtl.min.css); @import url(widgets-rtl.min.css); @import url(site-icon-rtl.min.css); @import url(l10n-rtl.min.css); @import url(site-health-rtl.min.css); css/media-rtl.css000064400000067036152213653150007743 0ustar00/*! This file is auto-generated */ /*------------------------------------------------------------------------------ 14.0 - Media Screen ------------------------------------------------------------------------------*/ .media-item .describe { border-collapse: collapse; width: 100%; border-top: 1px solid #dcdcde; clear: both; cursor: default; } .media-item.media-blank .describe { border: 0; } .media-item .describe th { vertical-align: top; text-align: right; padding: 5px 10px 10px; width: 140px; } .media-item .describe .align th { padding-top: 0; } .media-item .media-item-info tr { background-color: transparent; } .media-item .describe td { padding: 0 0 8px 8px; vertical-align: top; } .media-item thead.media-item-info td { padding: 4px 10px 0; } .media-item .media-item-info .A1B1 { padding: 0 10px 0 0; } .media-item td.savesend { padding-bottom: 15px; } .media-item .thumbnail { max-height: 128px; max-width: 128px; } .media-list-subtitle { display: block; } .media-list-title { display: block; } #wpbody-content #async-upload-wrap a { display: none; } .media-upload-form { margin-top: 20px; } .media-upload-form td label { margin-left: 6px; margin-right: 2px; } .media-upload-form .align .field label { display: inline; padding: 0 23px 0 0; margin: 0 3px 0 1em; font-weight: 600; } .media-upload-form tr.image-size label { margin: 0 5px 0 0; font-weight: 600; } .media-upload-form th.label label { font-weight: 600; margin: 0.5em; font-size: 13px; } .media-upload-form th.label label span { padding: 0 5px; } .media-item .describe input[type="text"], .media-item .describe textarea { width: 460px; } .media-item .describe p.help { margin: 0; padding: 0 5px 0 0; } .describe-toggle-on, .describe-toggle-off { display: block; line-height: 2.76923076; float: left; margin-left: 10px; } .media-item .attachment-tools { display: flex; align-items: center; } .media-item .edit-attachment { padding: 14px 0; display: block; margin-left: 10px; } .media-item .edit-attachment.copy-to-clipboard-container { display: flex; margin-top: 0; } .media-item-copy-container .success { line-height: 0; } .media-item button .copy-attachment-url { margin-top: 14px; } .media-item .copy-to-clipboard-container { margin-top: 7px; } .media-item .describe-toggle-off, .media-item.open .describe-toggle-on { display: none; } .media-item.open .describe-toggle-off { display: block; } .media-upload-form .media-item { min-height: 70px; margin-bottom: 1px; position: relative; width: 100%; background: #fff; } .media-upload-form .media-item, .media-upload-form .media-item .error { box-shadow: 0 1px 0 #dcdcde; } #media-items:empty { border: 0 none; } .media-item .filename { padding: 14px 2px; overflow: hidden; margin-right: 4px; } .media-item .pinkynail { float: right; margin: 14px; max-height: 70px; max-width: 70px; } .media-item .startopen, .media-item .startclosed { display: none; } .media-item .progress { display: inline-block; height: 22px; margin: 0 6px 7px; width: 200px; line-height: 2em; padding: 0; overflow: hidden; border-radius: 22px; background: #dcdcde; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .media-item .bar { z-index: 9; width: 0; height: 100%; margin-top: -22px; border-radius: 22px; background-color: #2271b1; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3); } .media-item .progress .percent { z-index: 10; position: relative; width: 200px; padding: 0; color: #fff; text-align: center; line-height: 22px; font-weight: 400; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .upload-php .fixed .column-parent { width: 15%; } .js .html-uploader #plupload-upload-ui { display: none; } .js .html-uploader #html-upload-ui { display: block; } #html-upload-ui #async-upload { font-size: 1em; } .media-upload-form .media-item.error, .media-upload-form .media-item .error { width: auto; margin: 0 0 1px; } .media-upload-form .media-item .error { padding: 10px 14px 10px 0; min-height: 50px; } .media-item .error-div button.dismiss { float: left; margin: 0 15px 0 10px; } /*------------------------------------------------------------------------------ 14.1 - Media Library ------------------------------------------------------------------------------*/ .find-box { background-color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); width: 600px; overflow: hidden; margin-right: -300px; position: fixed; top: 30px; bottom: 30px; right: 50%; z-index: 100105; } .find-box-head { background: #fff; border-bottom: 1px solid #dcdcde; height: 36px; font-size: 18px; font-weight: 600; line-height: 2; padding: 0 16px 0 36px; position: absolute; top: 0; right: 0; left: 0; } .find-box-inside { overflow: auto; padding: 16px; background-color: #fff; position: absolute; top: 37px; bottom: 45px; overflow-y: scroll; width: 100%; box-sizing: border-box; } .find-box-search { padding-bottom: 16px; } .find-box-search .spinner { float: none; right: 105px; position: absolute; } .find-box-search, #find-posts-response { position: relative; /* RTL fix, #WP28010 */ } #find-posts-input, #find-posts-search { float: right; } #find-posts-input { width: 140px; height: 28px; margin: 0 0 0 4px; } .widefat .found-radio { padding-left: 0; width: 16px; } #find-posts-close { width: 36px; height: 36px; border: none; padding: 0; position: absolute; top: 0; left: 0; cursor: pointer; text-align: center; background: none; color: #646970; } #find-posts-close:hover, #find-posts-close:focus { color: var(--wp-admin-theme-color-darker-20, #183ad6); } #find-posts-close:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } #find-posts-close:before { font: normal 20px/36px dashicons; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f158"; content: "\f158" / ''; } .find-box-buttons { padding: 8px 16px; background: #fff; border-top: 1px solid #dcdcde; position: absolute; bottom: 0; right: 0; left: 0; } @media screen and (max-width: 782px) { .find-box-inside { bottom: 57px; } } @media screen and (max-width: 660px) { .find-box { top: 0; bottom: 0; right: 0; left: 0; margin: 0; width: 100%; } } .ui-find-overlay { position: fixed; top: 0; right: 0; left: 0; bottom: 0; background: #000; opacity: 0.7; filter: alpha(opacity=70); z-index: 100100; } .drag-drop #drag-drop-area { border: 4px dashed #c3c4c7; height: 200px; } .drag-drop .drag-drop-inside { margin: 60px auto 0; width: 250px; } .drag-drop-inside p { font-size: 14px; margin: 5px 0; display: none; } .drag-drop .drag-drop-inside p { text-align: center; } .drag-drop-inside p.drag-drop-info { font-size: 20px; } .drag-drop .drag-drop-inside p, .drag-drop-inside p.drag-drop-buttons { display: block; } /* #drag-drop-area:-moz-drag-over { border-color: #83b4d8; } border color while dragging a file over the uploader drop area */ .drag-drop.drag-over #drag-drop-area { border-color: #9ec2e6; } #plupload-upload-ui { position: relative; } .post-type-attachment .wp-filter select { margin: 0 0 0 6px; } /** * Media Library grid view */ .media-frame.mode-grid, .media-frame.mode-grid .media-frame-content, .media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments, .media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper, .media-frame.mode-grid .uploader-inline-content { position: static; } /* Regions we don't use at all */ .media-frame.mode-grid .media-frame-title, .media-frame.mode-grid .media-frame-router, .media-frame.mode-grid .media-frame-menu { display: none; } .media-frame.mode-grid .media-frame-content { background-color: transparent; border: none; } .upload-php .mode-grid .media-sidebar { position: relative; width: auto; margin-top: 12px; padding: 0 16px; border-right: 4px solid #d63638; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); background-color: #fff; } .upload-php .mode-grid .hide-sidebar .media-sidebar { display: none; } .upload-php .mode-grid .media-sidebar .media-uploader-status { border-bottom: none; padding-bottom: 0; max-width: 100%; } .upload-php .mode-grid .media-sidebar .upload-error { margin: 12px 0; padding: 4px 0 0; border: none; box-shadow: none; background: none; } .upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2 { display: none; } .media-frame.mode-grid .uploader-inline { position: relative; top: auto; left: auto; right: auto; bottom: auto; padding-top: 0; margin-top: 20px; border: 4px dashed #c3c4c7; } .media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments, .media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper { position: relative; top: 94px; /* prevent jumping up when the toolbar becomes fixed */ padding-bottom: 94px; /* offset for above so the bottom doesn't get cut off */ } .media-frame.mode-grid .attachment:focus, .media-frame.mode-grid .selected.attachment:focus, .media-frame.mode-grid .attachment.details:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -6px; } .media-frame.mode-grid .selected.attachment { box-shadow: inset 0 0 0 5px #f0f0f1, inset 0 0 0 7px #c3c4c7; } .media-frame.mode-grid .attachment.details { box-shadow: inset 0 0 0 3px #f0f0f1, inset 0 0 0 7px var(--wp-admin-theme-color, #3858e9); } .media-frame.mode-grid.mode-select .attachment .thumbnail { opacity: 0.65; } .media-frame.mode-select .attachment.selected .thumbnail { opacity: 1; } .media-frame.mode-grid .media-toolbar { margin-bottom: 15px; height: auto; } .media-frame.mode-grid .media-toolbar label:not(.media-search-input-label) { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } .media-frame.mode-grid .media-toolbar select { margin: 0 0 0 10px; min-height: 32px; line-height: 2.14285714; /* 30px for 32px height with 14px font */ padding: 0 8px 0 24px; } .media-frame.mode-grid .media-toolbar input[type="search"] { min-height: 32px; padding: 0 8px; } .media-frame.mode-grid .media-toolbar-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button { margin: 0 0 0 8px; height: 100%; } .media-frame.mode-grid .attachments-browser .bulk-select { display: inline-block; margin: 0 0 0 10px; } .media-frame.mode-grid .search { margin-top: 0; } .media-frame-content .media-search-input-label { vertical-align: baseline; } .attachments-browser .media-toolbar-secondary > .media-button { margin-left: 10px; } .media-frame.mode-select .attachments-browser.fixed .media-toolbar { position: fixed; top: 32px; right: auto; left: 20px; margin-top: 0; } .media-frame.mode-grid .attachments-browser { padding: 0; } .media-frame.mode-grid .attachments-browser .attachments { padding: 2px; } .media-frame.mode-grid .attachments-browser .no-media { color: #646970; /* same as no plugins and no themes */ font-size: 18px; font-style: normal; margin: 0; padding: 100px 0 0; text-align: center; } /** * Attachment details modal */ .edit-attachment-frame { display: block; height: 100%; width: 100%; } .edit-attachment-frame .edit-media-header { overflow: hidden; } .upload-php .media-modal-close .media-modal-icon:before { content: "\f335"; content: "\f335" / ''; font-size: 22px; } .upload-php .media-modal-close, .edit-attachment-frame .edit-media-header .left, .edit-attachment-frame .edit-media-header .right { cursor: pointer; color: #787c82; background-color: transparent; height: 50px; width: 50px; padding: 0; position: absolute; text-align: center; border: 0; border-right: 1px solid #dcdcde; transition: color .1s ease-in-out, background .1s ease-in-out; } .upload-php .media-modal-close { top: 0; left: 0; } .edit-attachment-frame .edit-media-header .left { left: 102px; } .edit-attachment-frame .edit-media-header .right { left: 51px; } .edit-attachment-frame .media-frame-title { right: 0; left: 150px; /* leave space for prev/next/close */ } .edit-attachment-frame .edit-media-header .right:before, .edit-attachment-frame .edit-media-header .left:before { font: normal 20px/50px dashicons !important; display: inline; font-weight: 300; } .upload-php .media-modal-close:hover, .upload-php .media-modal-close:focus, .edit-attachment-frame .edit-media-header .left:hover, .edit-attachment-frame .edit-media-header .right:hover, .edit-attachment-frame .edit-media-header .left:focus, .edit-attachment-frame .edit-media-header .right:focus { background: #dcdcde; border-color: #c3c4c7; color: #000; outline: none; box-shadow: none; } .upload-php .media-modal-close:focus, .edit-attachment-frame .edit-media-header .left:focus, .edit-attachment-frame .edit-media-header .right:focus { /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .upload-php .media-modal-close:focus .media-modal-icon:before, .upload-php .media-modal-close:hover .media-modal-icon:before { color: #000; } .edit-attachment-frame .edit-media-header .left:before { content: "\f345"; content: "\f341" / ''; } .edit-attachment-frame .edit-media-header .right:before { content: "\f341"; content: "\f345" / ''; } .edit-attachment-frame .edit-media-header [disabled], .edit-attachment-frame .edit-media-header [disabled]:hover { color: #c3c4c7; background: inherit; cursor: default; } .edit-attachment-frame .media-frame-content, .edit-attachment-frame .media-frame-router { right: 0; } .edit-attachment-frame .media-frame-content { border-bottom: none; bottom: 0; top: 50px; } .edit-attachment-frame .attachment-details { position: absolute; overflow: auto; top: 0; bottom: 0; left: 0; right: 0; box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, 0.1); } .edit-attachment-frame .attachment-media-view { float: right; width: 65%; height: 100%; } .edit-attachment-frame .attachment-media-view .thumbnail { box-sizing: border-box; padding: 16px; height: 100%; } .edit-attachment-frame .attachment-media-view .details-image { display: block; margin: 0 auto 16px; max-width: 100%; max-height: 90%; max-height: calc( 100% - 42px ); /* leave space for actions underneath */ background-image: linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 100% 0, 10px 10px; background-size: 20px 20px; } .edit-attachment-frame .attachment-media-view .details-image.icon { background: none; } .edit-attachment-frame .attachment-media-view .attachment-actions { text-align: center; } .edit-attachment-frame .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } .edit-attachment-frame .wp-media-wrapper { margin-bottom: 12px; } .edit-attachment-frame input, .edit-attachment-frame textarea { padding: 4px 8px; line-height: 1.42857143; } .edit-attachment-frame .attachment-info { overflow: auto; box-sizing: border-box; margin-bottom: 0; padding: 12px 16px 0; width: 35%; height: 100%; box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, 0.1); border-bottom: 0; border-right: 1px solid #dcdcde; background: #f6f7f7; } .edit-attachment-frame .attachment-info .details, .edit-attachment-frame .attachment-info .settings { position: relative; /* RTL fix, #WP29352 */ overflow: hidden; float: none; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #dcdcde; } .edit-attachment-frame .attachment-info .filename { font-weight: 400; color: #646970; } .edit-attachment-frame .attachment-info .thumbnail { margin-bottom: 12px; } .attachment-info .actions { margin-bottom: 16px; } .attachment-info .actions a { display: inline; text-decoration: none; } .copy-to-clipboard-container { display: flex; align-items: center; margin-top: 8px; clear: both; } .copy-to-clipboard-container .copy-attachment-url { white-space: normal; } .copy-to-clipboard-container .success { color: #007017; margin-right: 8px; } /*------------------------------------------------------------------------------ 14.2 - Image Editor ------------------------------------------------------------------------------*/ .wp_attachment_details .attachment-alt-text { margin-bottom: 5px; } .wp_attachment_details #attachment_alt { max-width: 500px; height: 3.28571428em; } .wp_attachment_details .attachment-alt-text-description { margin-top: 5px; } .wp_attachment_details label[for="content"] { font-size: 13px; line-height: 1.5; margin: 1em 0; } .wp_attachment_details #attachment_caption { height: 4em; } .describe .image-editor { vertical-align: top; } .imgedit-wrap { position: relative; padding-top: 10px; } .image-editor p, .image-editor fieldset { margin: 8px 0; } .image-editor legend { margin-bottom: 5px; } .describe .imgedit-wrap .image-editor { padding: 0 5px; } .wp_attachment_holder div.updated { margin-top: 0; } .wp_attachment_holder .imgedit-wrap > div { height: auto; } .imgedit-panel-content { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; } .imgedit-settings { max-width: 240px; /* Prevent reflow when help info is expanded. */ } .imgedit-group-controls > * { display: none; } .imgedit-panel-active .imgedit-group-controls > * { display: block; } .imgedit-panel-active .imgedit-group-controls > .imgedit-crop-apply { display: flex; } .imgedit-crop-apply { gap: 4px; flex-wrap: wrap; } .wp_attachment_holder .imgedit-wrap .image-editor { float: left; width: 250px; } .image-editor input { margin-top: 0; vertical-align: middle; } .imgedit-wait { position: absolute; top: 0; bottom: 0; width: 100%; background: #fff; opacity: 0.7; filter: alpha(opacity=70); display: none; } .imgedit-wait:before { content: ""; display: block; width: 20px; height: 20px; position: absolute; right: 50%; top: 50%; margin: -10px -10px 0 0; background: transparent url(../images/spinner.gif) no-repeat center; background-size: 20px 20px; transform: translateZ(0); } .no-float { float: none; } .media-disabled, .image-editor .disabled { /* WCAG 1.4.3 Text or images of text that are part of an inactive user interface component ... have no contrast requirement. */ color: #a7aaad; } .A1B1 { overflow: hidden; } .wp_attachment_image .button, .A1B1 .button { float: right; } .no-js .wp_attachment_image .button { display: none; } .wp_attachment_image .spinner, .A1B1 .spinner { float: right; } .imgedit-menu .note-no-rotate { clear: both; margin: 0; padding: 1em 0 0; } .imgedit-menu .button:after, .imgedit-menu .button:before { font: normal 16px/1 dashicons; margin-left: 8px; vertical-align: middle; position: relative; top: -2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .imgedit-menu .imgedit-rotate.button:after { content: '\f140'; margin-right: 2px; margin-left: 0; } .imgedit-menu .imgedit-rotate.button[aria-expanded="true"]:after { content: '\f142'; } .imgedit-menu .button.disabled { color: #a7aaad; border-color: #dcdcde; background: #f6f7f7; box-shadow: none; text-shadow: 0 1px 0 #fff; cursor: default; transform: none; } .imgedit-crop:before { content: "\f165"; content: "\f165" / ''; } .imgedit-scale:before { content: "\f211"; content: "\f211" / ''; } .imgedit-rotate:before { content: "\f167"; content: "\f167" / ''; } .imgedit-undo:before { content: "\f171"; content: "\f171" / ''; } .imgedit-redo:before { content: "\f172"; content: "\f172" / ''; } .imgedit-crop-wrap { position: relative; } .imgedit-crop-wrap img { background-image: linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 100% 0, 10px 10px; background-size: 20px 20px; } .imgedit-crop-wrap { padding: 20px; background-image: linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 100% 0, 10px 10px; background-size: 20px 20px; } .imgedit-crop { margin: 0 0 0 8px; } .imgedit-rotate { margin: 0 3px 0 8px; } .imgedit-undo { margin: 0 3px; } .imgedit-redo { margin: 0 3px 0 8px; } .imgedit-thumbnail-preview-group { display: flex; flex-wrap: wrap; column-gap: 10px; } .imgedit-thumbnail-preview { margin: 10px 0 0 8px; } .imgedit-thumbnail-preview-caption { display: block; } #poststuff .imgedit-group-top h2 { display: inline-block; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; } #poststuff .imgedit-group-top .button-link { text-decoration: none; color: #1d2327; } .imgedit-applyto .imgedit-label { display: block; padding: .5em 0 0; } .imgedit-popup-menu, .imgedit-help { display: none; padding-bottom: 8px; } .imgedit-panel-tools > .imgedit-menu { display: flex; column-gap: 4px; align-items: flex-start; flex-wrap: wrap; } .imgedit-popup-menu { width: calc( 100% - 20px ); position: absolute; background: #fff; padding: 10px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); } .image-editor .imgedit-menu .imgedit-popup-menu button { display: block; margin: 2px 0; width: 100%; white-space: break-spaces; line-height: 1.5; padding-top: 3px; padding-bottom: 2px; } .imgedit-rotate-menu-container { position: relative; } .imgedit-help.imgedit-restore { padding-bottom: 0; } /* higher specificity than buttons */ .image-editor .imgedit-settings .imgedit-help-toggle, .image-editor .imgedit-settings .imgedit-help-toggle:hover, .image-editor .imgedit-settings .imgedit-help-toggle:active { border: 1px solid transparent; margin: -1px -1px 0 0; padding: 0; background: transparent; color: #2271b1; font-size: 20px; line-height: 1; cursor: pointer; box-sizing: content-box; box-shadow: none; } .image-editor .imgedit-settings .imgedit-help-toggle:focus { color: #2271b1; border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .form-table td.imgedit-response { padding: 0; } .imgedit-submit-btn { margin-right: 20px; } .imgedit-wrap .nowrap { white-space: nowrap; font-size: 12px; line-height: inherit; } span.imgedit-scale-warn { display: flex; align-items: center; margin: 4px; gap: 4px; color: #b32d2e; font-style: normal; visibility: hidden; vertical-align: middle; } .imgedit-save-target { margin: 8px 0; } .imgedit-save-target legend { font-weight: 600; } .imgedit-group { margin-bottom: 20px; } .image-editor .imgedit-original-dimensions { display: inline-block; } .image-editor .imgedit-scale-controls input[type="text"], .image-editor .imgedit-crop-ratio input[type="text"], .image-editor .imgedit-crop-sel input[type="text"], .image-editor .imgedit-scale-controls input[type="number"], .image-editor .imgedit-crop-ratio input[type="number"], .image-editor .imgedit-crop-sel input[type="number"] { width: 80px; font-size: 14px; padding: 0 8px; } .imgedit-separator { display: inline-block; width: 7px; text-align: center; font-size: 13px; color: #3c434a; } .image-editor .imgedit-scale-button-wrapper { margin-top: 0.3077em; display: block; } .image-editor .imgedit-scale-controls .button { margin-bottom: 0; } audio, video { display: inline-block; max-width: 100%; } .wp-core-ui .mejs-container { width: 100%; max-width: 100%; } .wp-core-ui .mejs-container * { box-sizing: border-box; } .wp-core-ui .mejs-time { box-sizing: content-box; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .imgedit-wait:before { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 782px) { .edit-attachment-frame input, .edit-attachment-frame textarea { line-height: 1.5; } .wp_attachment_details label[for="content"] { font-size: 14px; line-height: 1.5; } .wp_attachment_details textarea { line-height: 1.5; } .wp_attachment_details #attachment_alt { height: 3.375em; } .media-upload-form .media-item.error, .media-upload-form .media-item .error { font-size: 13px; line-height: 1.5; } .media-upload-form .media-item.error { padding: 1px 10px; } .media-upload-form .media-item .error { padding: 10px 12px 10px 0; } .image-editor .imgedit-scale input[type="text"], .image-editor .imgedit-crop-ratio input[type="text"], .image-editor .imgedit-crop-sel input[type="text"] { font-size: 16px; padding: 6px 10px; } .wp_attachment_holder .imgedit-wrap .imgedit-panel-content, .wp_attachment_holder .imgedit-wrap .image-editor { float: none; width: auto; max-width: none; padding-bottom: 16px; } .copy-to-clipboard-container .success { font-size: 14px; } /* Restructure image editor on narrow viewports. */ .imgedit-crop-wrap img{ width: 100%; } .media-modal .imgedit-wrap .imgedit-panel-content, .media-modal .imgedit-wrap .image-editor { position: initial !important; } .media-modal .imgedit-wrap .image-editor { box-sizing: border-box; width: 100% !important; } .image-editor .imgedit-scale-button-wrapper { display: inline-block; } } @media only screen and (max-width: 600px) { .media-item-wrapper { grid-template-columns: 1fr; } } /** * Media queries for media grid. */ @media only screen and (max-width: 1120px) { /* override for media-views.css */ #wp-media-grid .wp-filter .attachment-filters { max-width: 100%; } } @media only screen and (max-width: 1000px) { /* override for forms.css */ .wp-filter p.search-box { float: none; width: 100%; margin-bottom: 20px; display: flex; flex-wrap: nowrap; column-gap: 0; } .wp-filter p.search-box #media-search-input { width: 100%; } } @media only screen and (max-width: 782px) { .media-frame.mode-select .attachments-browser.fixed .media-toolbar { top: 46px; left: 10px; } } @media only screen and (max-width: 600px) { .media-frame.mode-select .attachments-browser.fixed .media-toolbar { top: 0; } } @media only screen and (max-width: 480px) { .edit-attachment-frame .media-frame-title { left: 110px; } .upload-php .media-modal-close, .edit-attachment-frame .edit-media-header .left, .edit-attachment-frame .edit-media-header .right { width: 40px; height: 40px; } .edit-attachment-frame .edit-media-header .right:before, .edit-attachment-frame .edit-media-header .left:before { line-height: 40px !important; } .edit-attachment-frame .edit-media-header .left { left: 82px; } .edit-attachment-frame .edit-media-header .right { left: 41px; } .edit-attachment-frame .media-frame-content { top: 40px; } .edit-attachment-frame .attachment-media-view { float: none; height: auto; width: 100%; } .edit-attachment-frame .attachment-info { height: auto; width: 100%; } } @media only screen and (max-width: 640px), screen and (max-height: 400px) { .upload-php .mode-grid .media-sidebar{ max-width: 100%; } } @media only screen and (max-width: 375px) { .media-item .attachment-tools { align-items: baseline; } .media-item .edit-attachment.copy-to-clipboard-container { flex-direction: column; } .copy-to-clipboard-container .success { line-height: normal; margin-top: 10px; } } css/list-tables-rtl.css000064400000131344152213653150011101 0ustar00/*! This file is auto-generated */ .response-links { display: block; margin-bottom: 1em; } .response-links a { display: block; } .response-links a.comments-edit-item-link { font-weight: 600; } .response-links a.comments-view-item-link { font-size: 12px; } .post-com-count-wrapper strong { font-weight: 400; } .comments-view-item-link { display: inline-block; clear: both; } .column-response .post-com-count-wrapper, .column-comments .post-com-count-wrapper { white-space: nowrap; word-wrap: normal; } /* comments bubble common */ .column-response .post-com-count, .column-comments .post-com-count { display: inline-block; vertical-align: top; } /* comments bubble approved */ .column-response .post-com-count-no-comments, .column-response .post-com-count-approved, .column-comments .post-com-count-no-comments, .column-comments .post-com-count-approved { margin-top: 5px; } .column-response .comment-count-no-comments, .column-response .comment-count-approved, .column-comments .comment-count-no-comments, .column-comments .comment-count-approved { box-sizing: border-box; display: block; padding: 0 8px; min-width: 24px; height: 2em; border-radius: 5px; background-color: #646970; color: #fff; font-size: 11px; line-height: 1.90909090; text-align: center; } .column-response .post-com-count-no-comments:after, .column-response .post-com-count-approved:after, .column-comments .post-com-count-no-comments:after, .column-comments .post-com-count-approved:after { content: ""; display: block; margin-right: 8px; width: 0; height: 0; border-top: 5px solid #646970; border-left: 5px solid transparent; } .column-response a.post-com-count-approved:hover .comment-count-approved, .column-response a.post-com-count-approved:focus .comment-count-approved, .column-comments a.post-com-count-approved:hover .comment-count-approved, .column-comments a.post-com-count-approved:focus .comment-count-approved { background: #3858e9; } .column-response a.post-com-count-approved:hover:after, .column-response a.post-com-count-approved:focus:after, .column-comments a.post-com-count-approved:hover:after, .column-comments a.post-com-count-approved:focus:after { border-top-color: #3858e9; } /* @todo: consider to use a single rule for these counters and the admin menu counters. */ .column-response .post-com-count-pending, .column-comments .post-com-count-pending { position: relative; right: -3px; padding: 0 5px; min-width: 7px; height: 17px; border: 2px solid #fff; border-radius: 11px; background: #d63638; color: #fff; font-size: 9px; line-height: 1.88888888; text-align: center; } .column-response .post-com-count-no-pending, .column-comments .post-com-count-no-pending { display: none; } /* comments */ .commentlist li { padding: 1em 1em .2em; margin: 0; border-bottom: 1px solid #c3c4c7; } .commentlist li li { border-bottom: 0; padding: 0; } .commentlist p { padding: 0; margin: 0 0 .8em; } #submitted-on, .submitted-on { color: #50575e; } /* reply to comments */ #replyrow td { padding: 2px; } #replysubmit { margin: 0; padding: 5px 7px 10px; overflow: hidden; } #replysubmit .reply-submit-buttons { margin-bottom: 0; } #replysubmit .button { margin-left: 5px; } #replysubmit .spinner { float: none; margin: -4px 0 0; } #replyrow.inline-edit-row fieldset.comment-reply { font-size: inherit; line-height: inherit; } #replyrow legend { margin: 0; padding: .2em 5px 0; font-size: 13px; line-height: 1.4; font-weight: 600; } #replyrow.inline-edit-row label { display: inline; vertical-align: baseline; line-height: inherit; } #edithead .inside, #commentsdiv #edithead .inside { float: right; padding: 3px 5px 2px 0; margin: 0; text-align: center; } #edithead .inside input { width: 180px; } #edithead label { padding: 2px 0; } #replycontainer { padding: 5px; } #replycontent { height: 120px; box-shadow: none; } #replyerror { border-color: #dcdcde; background-color: #f6f7f7; } /* @todo: is this used? */ .commentlist .avatar { vertical-align: text-top; } #the-comment-list tr.undo, #the-comment-list div.undo { background-color: #f6f7f7; } #the-comment-list .unapproved th, #the-comment-list .unapproved td { background-color: #fcf9e8; } #the-comment-list .unapproved th.check-column { border-right: 4px solid #d63638; } #the-comment-list .unapproved th.check-column input { margin-right: 4px; } #the-comment-list .approve a { color: #007017; } #the-comment-list .unapprove a { color: #996800; } #the-comment-list th, #the-comment-list td { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } #the-comment-list tr:last-child th, #the-comment-list tr:last-child td { box-shadow: none; } #the-comment-list tr.unapproved + tr.approved th, #the-comment-list tr.unapproved + tr.approved td { border-top: 1px solid rgba(0, 0, 0, 0.03); } /* table vim shortcuts */ .vim-current, .vim-current th, .vim-current td { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08) !important; } th .comment-grey-bubble { width: 16px; /* Make sure the link clickable area fills the entire table header. */ position: relative; top: 2px; } th .comment-grey-bubble:before { content: "\f101"; content: "\f101" / ''; font: normal 20px/.5 dashicons; display: inline-block; padding: 0; top: 4px; right: -4px; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #3c434a; } /*------------------------------------------------------------------------------ 10.0 - List Posts (/Pages/etc) ------------------------------------------------------------------------------*/ table.fixed { table-layout: fixed; } .fixed .column-rating, .fixed .column-visible { width: 8%; } .fixed .column-posts, .fixed .column-parent, .fixed .column-links, .fixed .column-author, .fixed .column-format { width: 10%; } .fixed .column-date { width: 14%; } .column-date span[title] { -webkit-text-decoration: dotted underline; text-decoration: dotted underline; } .fixed .column-posts { width: 74px; } .fixed .column-role, .fixed .column-posts { hyphens: auto; } .fixed .column-comment .comment-author { display: none; } .fixed .column-response, .fixed .column-categories, .fixed .column-tags, .fixed .column-rel, .fixed .column-role { width: 15%; } .fixed .column-slug { width: 25%; } .fixed .column-locations { width: 35%; } .fixed .column-comments { width: 5.5em; text-align: right; } .fixed .column-comments .vers { padding-right: 3px; } td.column-title strong, td.plugin-title strong { display: block; margin-bottom: .2em; font-size: 14px; } td.column-title p, td.plugin-title p { margin: 6px 0; } /* Media file column */ table.media .column-title .media-icon { float: right; min-height: 60px; margin: 0 0 0 9px; } table.media .column-title .media-icon img { max-width: 60px; height: auto; vertical-align: top; /* Remove descender white-space. */ } table.media .column-title .has-media-icon ~ .row-actions { margin-right: 70px; /* 60px image + margin */ } table.media .column-title .filename { margin-bottom: 0.2em; } /* Media Copy to clipboard row action */ .media .row-actions .copy-to-clipboard-container { display: inline; position: relative; } .media .row-actions .copy-to-clipboard-container .success { position: absolute; right: 50%; transform: translate(50%, -100%); background: #000; color: #fff; border-radius: 5px; margin: 0; padding: 2px 5px; } /* @todo: pick a consistent list table selector */ .wp-list-table a { transition: none; } #the-list tr:last-child td, #the-list tr:last-child th { border-bottom: none !important; box-shadow: none; } #comments-form .fixed .column-author { width: 20%; } #commentsdiv.postbox .inside { margin: 0; padding: 0; } #commentsdiv .inside .row-actions { line-height: 1.38461538; } #commentsdiv .inside .column-author { width: 25%; } #commentsdiv .column-comment p { margin: 0.6em 0; padding: 0; } #commentsdiv #replyrow td { padding: 0; } #commentsdiv p { padding: 8px 10px; margin: 0; } #commentsdiv .comments-box { border: 0 none; } #commentsdiv .comments-box thead th, #commentsdiv .comments-box thead td { background: transparent; padding: 0 7px 4px; } #commentsdiv .comments-box tr:last-child td { border-bottom: 0 none; } #commentsdiv #edithead .inside input { width: 160px; } .sorting-indicators { display: grid; } .sorting-indicator { display: block; width: 10px; height: 4px; margin-top: 4px; margin-right: 7px; } .sorting-indicator:before { font: normal 20px/1 dashicons; display: inline-block; padding: 0; top: -4px; right: -8px; line-height: 0.5; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #a7aaad; } .sorting-indicator.asc:before { content: "\f142"; content: "\f142" / ''; } .sorting-indicator.desc:before { content: "\f140"; content: "\f140" / ''; } th.sorted.desc .sorting-indicator.desc:before { color: #1d2327; } th.sorted.asc .sorting-indicator.asc:before { color: #1d2327; } th.sorted.asc a:focus .sorting-indicator.asc:before, th.sorted.asc:hover .sorting-indicator.asc:before, th.sorted.desc a:focus .sorting-indicator.desc:before, th.sorted.desc:hover .sorting-indicator.desc:before { color: #a7aaad; } th.sorted.asc a:focus .sorting-indicator.desc:before, th.sorted.asc:hover .sorting-indicator.desc:before, th.sorted.desc a:focus .sorting-indicator.asc:before, th.sorted.desc:hover .sorting-indicator.asc:before { color: #1d2327; } .wp-list-table .toggle-row { position: absolute; left: 8px; top: 10px; display: none; padding: 0; width: 40px; height: 40px; border: none; outline: none; background: transparent; } .wp-list-table .toggle-row:hover { cursor: pointer; } .wp-list-table .toggle-row:focus:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wp-list-table .toggle-row:active { box-shadow: none; } .wp-list-table .toggle-row:before { position: absolute; top: -5px; right: 10px; border-radius: 50%; display: block; padding: 1px 0 1px 2px; color: #3c434a; /* same as table headers sort arrows */ content: "\f140"; content: "\f140" / ''; font: normal 20px/1 dashicons; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-list-table .is-expanded .toggle-row:before { content: "\f142"; content: "\f142" / ''; } .check-column { position: relative; } .check-column label { box-sizing: border-box; width: 100%; height: 100%; display: block; position: absolute; top: 0; right: 0; } .check-column input { position: relative; z-index: 1; } .check-column .label-covers-full-cell:hover + input:not(:disabled) { box-shadow: 0 0 0 1px #2271b1; } .check-column label:hover, .check-column input:hover + label { background: rgba(0, 0, 0, 0.05); } .locked-indicator { display: none; margin-right: 6px; height: 20px; width: 16px; } .locked-indicator-icon:before { color: #8c8f94; content: "\f160"; content: "\f160" / ''; display: inline-block; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .locked-info { display: none; margin-top: 4px; } .locked-text { vertical-align: top; } .wp-locked .locked-indicator, .wp-locked .locked-info { display: block; } tr.wp-locked .check-column label, tr.wp-locked .check-column input[type="checkbox"], tr.wp-locked .row-actions .inline, tr.wp-locked .row-actions .trash { display: none; } #menu-locations-wrap .widefat { width: 60%; } .widefat th.sortable, .widefat th.sorted { padding: 0; } th.sortable a, th.sorted a { display: block; overflow: hidden; padding: 8px; } th.sortable a:focus, th.sorted a:focus { border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } th.sortable a span, th.sorted a span { float: right; cursor: pointer; } .tablenav-pages .current-page { vertical-align: top; margin: 0 0 0 2px; font-size: 13px; text-align: center; min-height: 32px; padding: 0 8px; } .tablenav .total-pages { margin-left: 2px; } .tablenav #table-paging { margin-right: 2px; } .tablenav { clear: both; height: 32px; margin: 6px 0 4px; vertical-align: middle; } .tablenav.themes { max-width: 98%; } .tablenav .tablenav-pages { float: left; margin: 0 0 9px; } .tablenav .no-pages, .tablenav .one-page .pagination-links { display: none; } .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { display: inline-block; vertical-align: baseline; min-width: 32px; min-height: 32px; margin: 0; padding: 0 4px; font-size: 16px; line-height: 1.875; /* 30px for 32px height */ text-align: center; } .tablenav .displaying-num { margin-left: 7px; } .tablenav .one-page .displaying-num { display: inline-block; margin: 5px 0; } .tablenav .actions { padding: 0 0 0 8px; } .wp-filter .actions { display: inline-block; vertical-align: middle; } .tablenav .delete { margin-left: 20px; } /* This view-switcher is still used on multisite. */ .tablenav .view-switch { float: left; margin: 0 5px; padding-top: 3px; } .wp-filter .view-switch { display: inline-block; vertical-align: middle; padding: 12px 0; margin: 0 2px 0 8px; } .media-toolbar.wp-filter .view-switch { margin: 0 2px 0 12px; } .view-switch a { float: right; width: 28px; height: 28px; text-align: center; line-height: 1.84615384; text-decoration: none; } .view-switch a:before { color: #c3c4c7; display: inline-block; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .view-switch a:hover:before, .view-switch a:focus:before { color: #787c82; } .view-switch a.current:before { color: #2271b1; } .view-switch .view-list:before { content: "\f163"; content: "\f163" / ''; } .view-switch .view-excerpt:before { content: "\f164"; content: "\f164" / ''; } .view-switch .view-grid:before { content: "\f509"; content: "\f509" / ''; } .filter { float: right; margin: -5px 10px 0 0; } .filter .subsubsub { margin-right: -10px; margin-top: 13px; } .screen-per-page { width: 4em; } #posts-filter .wp-filter { margin-bottom: 0; } #posts-filter fieldset { float: right; margin: 0 0 1em 1.5ex; padding: 0; } #posts-filter fieldset legend { padding: 0 1px .2em 0; } p.pagenav { margin: 0; display: inline; } .pagenav span { font-weight: 600; margin: 0 6px; } .row-title { font-size: 14px !important; font-weight: 600; } .column-comment .comment-author { margin-bottom: 0.6em; } .column-author img, .column-username img, .column-comment .comment-author img { float: right; margin-left: 10px; margin-top: 1px; } .row-actions { color: #646970; font-size: 13px; padding: 2px 0 0; position: relative; right: -9999em; } /* ticket #34150 */ .rtl .row-actions a { display: inline-block; } .row-actions .network_only, .row-actions .network_active { color: #000; } .no-js .row-actions, tr:hover .row-actions, .mobile .row-actions, .row-actions.visible, .comment-item:hover .row-actions { position: static; } /* deprecated */ .row-actions-visible { padding: 2px 0 0; } /*------------------------------------------------------------------------------ 10.1 - Inline Editing ------------------------------------------------------------------------------*/ /* .quick-edit* is for Quick Edit .bulk-edit* is for Bulk Edit .inline-edit* is for everything */ /* Layout */ #wpbody-content .inline-edit-row fieldset { float: right; margin: 0; padding: 0 0 0 12px; width: 100%; box-sizing: border-box; } #wpbody-content .inline-edit-row td fieldset:last-of-type { padding-left: 0; } tr.inline-edit-row td { padding: 0; /* Prevents the focus style on .inline-edit-wrapper from being cut-off */ position: relative; } .inline-edit-wrapper { display: flow-root; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; } .inline-edit-wrapper:focus { border-color: var(--wp-admin-theme-color, #3858e9); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #wpbody-content .quick-edit-row-post .inline-edit-col-left { width: 40%; } #wpbody-content .quick-edit-row-post .inline-edit-col-right { width: 39%; } #wpbody-content .inline-edit-row-post .inline-edit-col-center { width: 20%; } #wpbody-content .quick-edit-row-page .inline-edit-col-left { width: 50%; } #wpbody-content .quick-edit-row-page .inline-edit-col-right, #wpbody-content .bulk-edit-row-post .inline-edit-col-right { width: 50%; } #wpbody-content .bulk-edit-row .inline-edit-col-left { width: 30%; } #wpbody-content .bulk-edit-row-page .inline-edit-col-right { width: 69%; } #wpbody-content .bulk-edit-row .inline-edit-col-bottom { float: left; width: 69%; } #wpbody-content .inline-edit-row-page .inline-edit-col-right { margin-top: 27px; } .inline-edit-row fieldset .inline-edit-group { clear: both; line-height: 2.5; } .inline-edit-row .submit { display: flex; flex-wrap: wrap; align-items: center; clear: both; margin: 0; padding: 0.5em 0 1em; } .inline-edit-save.submit .button { margin-left: 8px; } .inline-edit-save .spinner { float: none; margin: 0; } .inline-edit-row .notice-error { box-sizing: border-box; min-width: 100%; margin-top: 1em; } .inline-edit-row .notice-error .error { margin: 0.5em 0; padding: 2px; } /* Positioning */ /* Needs higher specificity for the padding */ #the-list .inline-edit-row .inline-edit-legend { margin: 0; padding: 0.2em 0; line-height: 2.5; font-weight: 600; } .inline-edit-row fieldset span.title, .inline-edit-row fieldset span.checkbox-title { margin: 0; padding: 0; } .inline-edit-row fieldset label, .inline-edit-row fieldset span.inline-edit-categories-label { display: block; margin: .2em 0; line-height: 2.5; } .inline-edit-row fieldset.inline-edit-date label { display: inline-block; margin: 0; vertical-align: baseline; line-height: 2; } .inline-edit-row fieldset label.inline-edit-tags { margin-top: 0; } .inline-edit-row fieldset label.inline-edit-tags span.title { margin: .2em 0; width: auto; } .inline-edit-row fieldset label span.title, .inline-edit-row fieldset.inline-edit-date legend { display: block; float: right; width: 6em; line-height: 2.5; } #posts-filter fieldset.inline-edit-date legend { padding: 0; } .inline-edit-row fieldset label span.input-text-wrap, .inline-edit-row fieldset .timestamp-wrap { display: block; margin-right: 6em; } .quick-edit-row-post fieldset.inline-edit-col-right label span.title { width: auto; padding-left: 0.5em; } .inline-edit-row .inline-edit-or { margin: .2em 0 .2em 6px; line-height: 2.5; } .inline-edit-row .input-text-wrap input[type=text] { width: 100%; } .inline-edit-row fieldset label input[type=checkbox] { vertical-align: middle; } .inline-edit-row fieldset label textarea { width: 100%; height: 4em; vertical-align: top; } .inline-edit-row select, .inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])) { min-height: 32px; padding: 0 8px 0 8px; } .inline-edit-row select { line-height: 2.14285714; /* 30px for 32px height with 14px font */ padding-left: 24px; } #wpbody-content .bulk-edit-row fieldset .inline-edit-group label { max-width: 50%; } #wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child { margin-left: 0.5em } .inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input { width: 6em; } /* Styling */ .inline-edit-row .inline-edit-legend { text-transform: uppercase; } /* Specific Elements */ .inline-edit-row fieldset .inline-edit-date { float: right; } .inline-edit-row fieldset input[name=jj], .inline-edit-row fieldset input[name=hh], .inline-edit-row fieldset input[name=mn], .inline-edit-row fieldset input[name=aa] { vertical-align: middle; text-align: center; padding: 0 4px; } .inline-edit-row fieldset label input.inline-edit-password-input { width: 8em; } #bulk-titles-list, #bulk-titles-list li, .inline-edit-row fieldset ul.cat-checklist li, .inline-edit-row fieldset ul.cat-checklist input { margin: 0; position: relative; /* RTL fix, #WP27629 */ } .inline-edit-row fieldset ul.cat-checklist input { margin-top: -1px; margin-right: 3px; } .inline-edit-row fieldset label input.inline-edit-menu-order-input { width: 3em; } .inline-edit-row fieldset label input.inline-edit-slug-input { width: 75%; } .inline-edit-row select[name="post_parent"], .inline-edit-row select[name="page_template"] { max-width: 80%; } .quick-edit-row-post fieldset label.inline-edit-status { float: right; } #bulk-titles, ul.cat-checklist { height: 14em; border: 1px solid #ddd; margin: 0 0 5px; padding: 0.2em 5px; overflow-y: scroll; } ul.cat-checklist input[name="post_category[]"]:indeterminate::before { content: ''; border-top: 2px solid grey; width: 65%; height: 2px; position: absolute; top: calc( 50% + 1px ); right: 50%; transform: translate( 50%, -50% ); } #bulk-titles .ntdelbutton, #bulk-titles .ntdeltitle, .inline-edit-row fieldset ul.cat-checklist label { display: inline-block; margin: 0; padding: 3px 0; line-height: 20px; vertical-align: top; } #bulk-titles .ntdelitem { padding-right: 23px; } #bulk-titles .ntdelbutton { width: 26px; height: 26px; margin: 0 -26px 0 0; text-align: center; border-radius: 3px; } #bulk-titles .ntdelbutton:before { display: inline-block; vertical-align: top; } #bulk-titles .ntdelbutton:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; /* Reset inherited offset from Gutenberg */ outline-offset: 0; } /*------------------------------------------------------------------------------ 17.0 - Plugins ------------------------------------------------------------------------------*/ .plugins tbody th.check-column, .plugins tbody { padding: 8px 2px 0 0; } .plugins tbody th.check-column input[type=checkbox] { margin-top: 4px; } .updates-table .plugin-title p { margin-top: 0; } .plugins thead td.check-column, .plugins tfoot td.check-column, .plugins .inactive th.check-column { padding-right: 6px; } .plugins, .plugins th, .plugins td { color: #000; } .plugins tr { background: #fff; } .plugins p { margin: 0 4px; padding: 0; } .plugins .desc p { margin: 0 0 8px; } .plugins td.desc { line-height: 1.5; } .plugins .desc ul, .plugins .desc ol { margin: 0 2em 0 0; } .plugins .desc ul { list-style-type: disc; } .plugins .row-actions { font-size: 13px; padding: 0; } .plugins .inactive td, .plugins .inactive th, .plugins .active td, .plugins .active th { padding: 10px 9px; } .plugins .active td, .plugins .active th { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .plugins .update th, .plugins .update td { border-bottom: 0; } .plugins .inactive td, .plugins .inactive th, .plugins .active td, .plugins .active th, .plugin-install #the-list td, .upgrade .plugins td, .upgrade .plugins th { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .plugins tr.active.plugin-update-tr + tr.inactive th, .plugins tr.active.plugin-update-tr + tr.inactive td, .plugins tr.active + tr.inactive th, .plugins tr.active + tr.inactive td { border-top: 1px solid rgba(0, 0, 0, 0.03); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02), inset 0 -1px 0 #dcdcde; } .plugins .update td, .plugins .update th, .upgrade .plugins tr:last-of-type td, .upgrade .plugins tr:last-of-type th, .plugins tr.active + tr.inactive.update th, .plugins tr.active + tr.inactive.update td, .plugins .updated td, .plugins .updated th, .plugins tr.active + tr.inactive.updated th, .plugins tr.active + tr.inactive.updated td { box-shadow: none; } .plugins .active th.check-column, .plugin-update-tr.active td { border-right: 4px solid var(--wp-admin-theme-color); } .wp-list-table.plugins .plugin-title, .wp-list-table.plugins .theme-title { padding-left: 12px; white-space: nowrap; } .plugins .plugin-title .dashicons, .plugins .plugin-title img.plugin-icon, .plugins .plugin-title img.updates-table-screenshot { float: right; padding: 0 0 0 10px; width: 64px; height: 64px; } .plugins .plugin-title .dashicons:before { padding: 2px; background-color: #f0f0f1; box-shadow: inset 0 0 10px rgba(167, 170, 173, 0.15); font-size: 60px; color: #c3c4c7; } #update-themes-table .plugin-title img.updates-table-screenshot, #update-themes-table .plugin-title .dashicons { width: 85px; } .plugins .column-auto-updates { width: 14.2em; } .plugins .inactive .plugin-title strong { font-weight: 400; } .plugins .second, .plugins .row-actions { padding: 0 0 5px; } .plugins .row-actions { white-space: normal; min-width: 12em; } .plugins .update .second, .plugins .update .row-actions, .plugins .updated .second, .plugins .updated .row-actions { padding-bottom: 0; } .plugins-php .widefat tfoot th, .plugins-php .widefat tfoot td { border-top-style: solid; border-top-width: 1px; } .plugins .plugin-update-tr .plugin-update { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); overflow: hidden; /* clearfix */ padding: 0; } .plugins .plugin-update-tr .notice, .plugins .plugin-update-tr div[class="update-message"] { /* back-compat for pre-4.6 */ margin: 5px 40px 15px 20px; } .plugins .notice p { margin: 0.5em 0; } .plugins .plugin-description a, .plugins .plugin-update a, .updates-table .plugin-title a { text-decoration: underline; } .plugins tr.paused th.check-column { border-right: 4px solid #b32d2e; } .plugins tr.paused th, .plugins tr.paused td { background-color: #f6f7f7; } .plugins tr.paused .plugin-title, .plugins .paused .dashicons-warning { color: #b32d2e; } .plugins .paused .error-display p, .plugins .paused .error-display code { font-size: 90%; color: rgba(0, 0, 0, 0.7); } .plugins .resume-link { color: #b32d2e; } .plugin-card .update-now:before { color: #d63638; content: "\f463"; content: "\f463" / ''; display: inline-block; font: normal 16px/1.875 dashicons; /* line-height 1.875 = 30px to match button */ margin: 0 -2px 0 5px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; } .plugin-card .updating-message:before { content: "\f463"; content: "\f463" / ''; animation: rotation 2s infinite linear; } @keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(-359deg); } } .plugin-card .updated-message:before { color: #68de7c; content: "\f147"; content: "\f147" / ''; } .plugin-card .updated-message:before, .plugin-card .updating-message:before { line-height: 1; position: relative; top: -2px; vertical-align: middle; } .plugin-install-php #the-list { display: flex; flex-wrap: wrap; } .plugin-install-php .plugin-card { display: flex; flex-direction: column; justify-content: space-between; } .plugin-install-php h2 { clear: both; } .plugin-install-php h3 { margin: 2.5em 0 8px; } .plugin-install-php .wp-filter { margin-bottom: 0; } /* Plugin card table view */ .plugin-group { overflow: hidden; /* clearfix */ margin-top: 1.5em; } .plugin-group h3 { margin-top: 0; } .plugin-card { float: right; margin: 0 8px 16px; width: 48.5%; width: calc( 50% - 8px ); background-color: #ffffff; border: 1px solid rgb(0, 0, 0, 0.1); border-radius: 8px; box-sizing: border-box; overflow: hidden; } .plugin-card:nth-child(odd) { clear: both; margin-right: 0; } .plugin-card:nth-child(even) { margin-left: 0; } @media screen and (min-width: 1600px) and ( max-width: 2299px ) { .plugin-card { width: 30%; width: calc( 33.1% - 8px ); } .plugin-card:nth-child(odd) { clear: none; margin-right: 8px; } .plugin-card:nth-child(even) { margin-left: 8px; } .plugin-card:nth-child(3n+1) { clear: both; margin-right: 0; } .plugin-card:nth-child(3n) { margin-left: 0; } } @media screen and (min-width: 2300px) { .plugin-card { width: 25%; width: calc( 25% - 12px ); } .plugin-card:nth-child(odd) { clear: none; margin-right: 8px; } .plugin-card:nth-child(even) { margin-left: 8px; } .plugin-card:nth-child(4n+1) { clear: both; margin-right: 0; } .plugin-card:nth-child(4n) { margin-left: 0; } } .plugin-card-top { position: relative; padding: 16px; min-height: 135px; } div.action-links, .plugin-action-buttons { margin: 0; /* Override existing margins */ } /* Use compact size for space-constrained plugin cards */ .plugin-action-buttons li .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px min-height */ padding: 0 12px; } .plugin-card h3 { margin: 0 0 16px 12px; font-size: 18px; line-height: 1.3; } .plugin-card .desc { margin-inline: 0; } .plugin-card .name, .plugin-card .desc > p { margin-right: 148px; } @media (min-width: 1101px) { .plugin-card .name, .plugin-card .desc > p { margin-left: 128px; } } @media (min-width: 481px) and (max-width: 781px) { .plugin-card .name, .plugin-card .desc > p { margin-left: 128px; } } .plugin-card .column-description { display: flex; flex-direction: column; justify-content: flex-start; } .plugin-card .column-description > p { margin-top: 0; } .plugin-card .column-description p:empty { display: none; } .plugin-card .notice.plugin-dependencies { margin: auto 20px 20px; padding: 15px; } .plugin-card .plugin-dependencies-explainer-text { margin-block: 0; } .plugin-card .plugin-dependency { align-items: center; display: flex; flex-wrap: wrap; margin-top: .5em; column-gap: 1%; row-gap: .5em; } .plugin-card .plugin-dependency:nth-child(2), .plugin-card .plugin-dependency:last-child { margin-top: 1em; } .plugin-card .plugin-dependency-name { flex-basis: 74%; } .plugin-card .plugin-dependency .more-details-link { margin-right: auto; } .rtl .plugin-card .plugin-dependency .more-details-link { margin-left: auto; } @media (max-width: 939px) { .plugin-card .plugin-dependency-name { flex-basis: 69%; } } .plugins #the-list .required-by, .plugins #the-list .requires { margin-top: 1em; } .plugin-card .action-links { position: absolute; top: 20px; left: 20px; width: 120px; } .plugin-action-buttons { clear: left; float: left; margin-bottom: 1em; text-align: left; } .plugin-action-buttons li { margin-bottom: 10px; } .plugin-card-bottom { clear: both; padding: 16px; background-color: #f6f7f7; border-top: 1px solid rgb(0, 0, 0, 0.1); overflow: hidden; } .plugin-card-bottom .star-rating { display: inline; } .plugin-card-update-failed .update-now { font-weight: 600; } .plugin-card-update-failed .notice-error { margin: 0; padding-right: 16px; box-shadow: 0 -1px 0 #dcdcde; } .plugin-card-update-failed .plugin-card-bottom { display: none; } .plugin-card .column-rating { line-height: 1.76923076; } .plugin-card .column-rating, .plugin-card .column-updated { margin-bottom: 4px; } .plugin-card .column-rating, .plugin-card .column-downloaded { float: right; clear: right; max-width: 180px; } .plugin-card .column-updated, .plugin-card .column-compatibility { text-align: left; float: left; clear: left; width: 65%; width: calc( 100% - 180px ); } .plugin-card .column-compatibility span:before { font: normal 20px/.5 dashicons; display: inline-block; padding: 0; top: 4px; right: -2px; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #3c434a; } .plugin-card .column-compatibility .compatibility-incompatible:before { content: "\f158"; content: "\f158" / ''; color: #d63638; } .plugin-card .column-compatibility .compatibility-compatible:before { content: "\f147"; content: "\f147" / ''; color: #007017; } .plugin-card .notice { margin: 20px 20px 0; } .plugin-card .plugin-icon { position: absolute; top: 20px; right: 20px; width: 128px; height: 128px; margin: 0 0 20px 20px; } .no-plugin-results { color: #646970; /* same as no themes and no media */ font-size: 18px; font-style: normal; margin: 0; padding: 100px 0 0; width: 100%; text-align: center; } /* ms */ /* Background Color for Site Status */ .wp-list-table .site-deleted, .wp-list-table tr.site-deleted, .wp-list-table .site-archived, .wp-list-table tr.site-archived { background: #fcf0f1; } .wp-list-table .site-spammed, .wp-list-table tr.site-spammed, .wp-list-table .site-mature, .wp-list-table tr.site-mature { background: #fcf9e8; } .sites.fixed .column-lastupdated, .sites.fixed .column-registered { width: 20%; } .sites.fixed .column-users { width: 80px; } /* =Media Queries -------------------------------------------------------------- */ @media screen and (max-width: 1100px) and (min-width: 782px), (max-width: 480px) { .plugin-card .action-links { position: static; margin-right: 148px; width: auto; } .plugin-action-buttons { float: none; margin: 1em 0 0; text-align: right; } .plugin-action-buttons li { display: inline-block; vertical-align: middle; } .plugin-action-buttons li .button { margin-left: 20px; } .plugin-card h3 { margin-left: 24px; } .plugin-card .name, .plugin-card .desc { margin-left: 0; } .plugin-card .desc p:first-of-type { margin-top: 0; } } @media screen and (max-width: 782px) { /* WP List Table Options & Filters */ .tablenav { height: auto; } .tablenav.top { margin: 20px 0 5px; } .tablenav.bottom { position: relative; margin-top: 15px; } .tablenav br { display: none; } .tablenav br.clear { display: block; } .tablenav.top .actions, .tablenav .view-switch { display: none; } .view-switch a { width: 36px; height: 36px; line-height: 2.53846153; } /* Pagination */ .tablenav.top .displaying-num { display: none; } .tablenav.bottom .displaying-num { position: absolute; left: 0; top: 11px; margin: 0; font-size: 14px; } .tablenav .tablenav-pages { width: 100%; text-align: center; margin: 0 0 25px; } .tablenav.bottom .tablenav-pages { margin-top: 25px; } .tablenav.top .tablenav-pages.one-page { display: none; } .tablenav.bottom .actions select { margin-bottom: 5px; } .tablenav.bottom .actions.alignleft + .actions.alignleft { clear: right; margin-top: 10px; } .tablenav.bottom .tablenav-pages.one-page { margin-top: 15px; height: 0; } .tablenav-pages .pagination-links { font-size: 16px; } .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { min-width: 44px; padding: 12px 8px; font-size: 18px; line-height: 1; } .tablenav-pages .pagination-links .current-page { min-width: 44px; padding: 12px 6px; font-size: 16px; line-height: 1.125; } /* WP List Table Adjustments: General */ .form-wrap > p { display: none; } .wp-list-table th.column-primary ~ th, .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { display: none; } .wp-list-table thead th.column-primary { width: 100%; } /* Checkboxes need to show */ .wp-list-table tr th.check-column { display: table-cell; } .wp-list-table .check-column { width: 2.5em; } .wp-list-table .column-primary .toggle-row { display: block; } .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { position: relative; clear: both; width: auto !important; /* needs to override some columns that are more specifically targeted */ } .wp-list-table td.column-primary { padding-left: 50px; /* space for toggle button */ } .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { padding: 3px 35% 3px 8px; } .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before { position: absolute; right: 10px; /* match padding of regular table cell */ display: block; overflow: hidden; width: 32%; /* leave a little space for a gutter */ content: attr(data-colname); white-space: nowrap; text-overflow: ellipsis; } .wp-list-table .is-expanded td:not(.hidden) { display: block !important; overflow: hidden; /* clearfix */ } /* Special cases */ .widefat .num, .column-posts { text-align: right; } #comments-form .fixed .column-author, #commentsdiv .fixed .column-author { display: none !important; } .fixed .column-comment .comment-author { display: block; } /* Comment author hidden via Screen Options */ .fixed .column-author.hidden ~ .column-comment .comment-author { display: none; } #the-comment-list .is-expanded td { box-shadow: none; } #the-comment-list .is-expanded td:last-child { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } /* Show comment bubble as text instead */ .post-com-count .screen-reader-text { position: static; clip-path: none; width: auto; height: auto; margin: 0; } .column-response .post-com-count-no-comments:after, .column-response .post-com-count-approved:after, .column-comments .post-com-count-no-comments:after, .column-comments .post-com-count-approved:after { content: none; } .column-response .post-com-count [aria-hidden="true"], .column-comments .post-com-count [aria-hidden="true"] { display: none; } .column-response .post-com-count-wrapper, .column-comments .post-com-count-wrapper { white-space: normal; } .column-response .post-com-count-wrapper > a, .column-comments .post-com-count-wrapper > a { display: block; } .column-response .post-com-count-no-comments, .column-response .post-com-count-approved, .column-comments .post-com-count-no-comments, .column-comments .post-com-count-approved { margin-top: 0; margin-left: 0.5em; } .column-response .post-com-count-pending, .column-comments .post-com-count-pending { position: static; height: auto; min-width: 0; padding: 0; border: none; border-radius: 0; background: none; color: #b32d2e; font-size: inherit; line-height: inherit; text-align: right; } .column-response .post-com-count-pending:hover, .column-comments .post-com-count-pending:hover { color: #d63638; } .widefat thead td.check-column, .widefat tfoot td.check-column { padding-top: 10px; } .row-actions { margin-left: -8px; padding-top: 4px; } /* Make row actions more easy to select on mobile */ body:not(.plugins-php) .row-actions { display: flex; flex-wrap: wrap; gap: 8px; color: transparent; } .row-actions span { font-size: 0; } .row-actions span a, .row-actions span .button-link { display: inline-block; padding: 4px 0 4px 16px; font-size: 13px; line-height: 1.5; } .row-actions span.approve:before, .row-actions span.unapprove:before { content: "| "; } /* Quick Edit and Bulk Edit */ #wpbody-content .quick-edit-row-post .inline-edit-col-left, #wpbody-content .quick-edit-row-post .inline-edit-col-right, #wpbody-content .inline-edit-row-post .inline-edit-col-center, #wpbody-content .quick-edit-row-page .inline-edit-col-left, #wpbody-content .quick-edit-row-page .inline-edit-col-right, #wpbody-content .bulk-edit-row-post .inline-edit-col-right, #wpbody-content .bulk-edit-row .inline-edit-col-left, #wpbody-content .bulk-edit-row-page .inline-edit-col-right, #wpbody-content .bulk-edit-row .inline-edit-col-bottom { float: none; width: 100%; padding: 0; } #the-list .inline-edit-row .inline-edit-legend, .inline-edit-row span.title { font-size: 16px; } .inline-edit-row p.howto { font-size: 14px; } #wpbody-content .inline-edit-row-page .inline-edit-col-right { margin-top: 0; } #wpbody-content .quick-edit-row fieldset .inline-edit-col label, #wpbody-content .quick-edit-row fieldset .inline-edit-group label, #wpbody-content .bulk-edit-row fieldset .inline-edit-col label, #wpbody-content .bulk-edit-row fieldset .inline-edit-group label { max-width: none; float: none; margin-bottom: 5px; } #wpbody .bulk-edit-row fieldset select { display: block; width: 100%; max-width: none; box-sizing: border-box; } .inline-edit-row fieldset input[name=jj], .inline-edit-row fieldset input[name=hh], .inline-edit-row fieldset input[name=mn], .inline-edit-row fieldset input[name=aa] { font-size: 16px; line-height: 2; padding: 3px 4px; } #bulk-titles .ntdelbutton, #bulk-titles .ntdeltitle, .inline-edit-row fieldset ul.cat-checklist label { padding: 6px 0; font-size: 16px; line-height: 28px; } #bulk-titles .ntdelitem { padding-right: 37px; } #bulk-titles .ntdelbutton { width: 40px; height: 40px; margin: 0 -40px 0 0; overflow: hidden; } #bulk-titles .ntdelbutton:before { font-size: 20px; line-height: 28px; } .inline-edit-row fieldset label span.title, .inline-edit-row fieldset.inline-edit-date legend { float: none; } .inline-edit-row fieldset .inline-edit-col label.inline-edit-tags { padding: 0; } .inline-edit-row fieldset label span.input-text-wrap, .inline-edit-row fieldset .timestamp-wrap { margin-right: 0; } .inline-edit-row .inline-edit-or { margin: 0 0 0 6px; } #edithead .inside, #commentsdiv #edithead .inside { float: none; text-align: right; padding: 3px 5px; } #commentsdiv #edithead .inside input, #edithead .inside input { width: 100%; } #edithead label { display: block; } /* Updates */ #wpbody-content .updates-table .plugin-title { width: auto; white-space: normal; } /* Links */ .link-manager-php #posts-filter { margin-top: 25px; } .link-manager-php .tablenav.bottom { overflow: hidden; } /* List tables that don't toggle rows */ .comments-box .toggle-row, .wp-list-table.plugins .toggle-row { display: none; } /* Plugin/Theme Management */ #wpbody-content .wp-list-table.plugins td { display: block; width: auto; padding: 10px 9px; /* reset from other list tables that have a label at this width */ } #wpbody-content .wp-list-table.plugins .plugin-deleted-tr td, #wpbody-content .wp-list-table.plugins .no-items td { display: table-cell; } /* Plugin description hidden via Screen Options */ #wpbody-content .wp-list-table.plugins .desc.hidden { display: none; } #wpbody-content .wp-list-table.plugins .column-description { padding-top: 2px; } #wpbody-content .wp-list-table.plugins .plugin-title, #wpbody-content .wp-list-table.plugins .theme-title { padding-left: 12px; white-space: normal; } .wp-list-table.plugins .plugin-title, .wp-list-table.plugins .theme-title { padding-top: 13px; padding-bottom: 4px; } .plugins #the-list tr > td:not(:last-child), .plugins #the-list .update th, .plugins #the-list .update td, .wp-list-table.plugins #the-list .theme-title { box-shadow: none; border-top: none; } .plugins #the-list tr td { border-top: none; } .plugins tbody { padding: 1px 0 0; } .plugins tr.active + tr.inactive th.check-column, .plugins tr.active + tr.inactive td.column-description, .plugins .plugin-update-tr:before { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .plugins tr.active + tr.inactive th.check-column, .plugins tr.active + tr.inactive td { border-top: none; } /* mimic the checkbox th */ .plugins .plugin-update-tr:before { content: ""; display: table-cell; } .plugins #the-list .plugin-update-tr .plugin-update { border-right: none; } .plugin-update-tr .update-message { margin-right: 0; } .plugins .active.update + .plugin-update-tr:before, .plugins .active.updated + .plugin-update-tr:before { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-right: 4px solid var(--wp-admin-theme-color); } .plugins .plugin-update-tr .update-message { margin-right: 0; } .wp-list-table.plugins .plugin-title strong, .wp-list-table.plugins .theme-title strong { font-size: 1.4em; line-height: 1.5; } .plugins tbody th.check-column { padding: 8px 5px 0 0; } .plugins thead td.check-column, .plugins tfoot td.check-column, .plugins .inactive th.check-column { padding-right: 9px; } /* Add New plugins page */ table.plugin-install .column-name, table.plugin-install .column-version, table.plugin-install .column-rating, table.plugin-install .column-description { display: block; width: auto; } table.plugin-install th.column-name, table.plugin-install th.column-version, table.plugin-install th.column-rating, table.plugin-install th.column-description { display: none; } table.plugin-install td.column-name strong { font-size: 1.4em; line-height: 1.6em; } table.plugin-install #the-list td { box-shadow: none; } table.plugin-install #the-list tr { display: block; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .plugin-card { margin-right: 0; margin-left: 0; width: 100%; } table.media .column-title .has-media-icon ~ .row-actions { margin-right: 0; clear: both; } } @media screen and (max-width: 480px) { .tablenav-pages .current-page { margin: 0; } .tablenav.bottom .displaying-num { position: relative; top: 0; display: block; text-align: left; padding-bottom: 0.5em; } .tablenav.bottom .tablenav-pages.one-page { height: auto; } .tablenav-pages .tablenav-paging-text { float: right; width: 100%; padding-top: 0.5em; } } css/site-health-rtl.css000064400000014547152213653150011072 0ustar00/*! This file is auto-generated */ /* Note: Any Site Health selectors that use duplicate styling from the Privacy settings screen are styled in the Privacy section of edit.css */ .health-check-body h2 { line-height: 1.4; } .health-check-body h3 { padding: 0; font-weight: 400; } .site-health-progress-wrapper { margin-bottom: 1rem; } .site-health-progress { display: inline-block; height: 20px; width: 20px; margin: 0; border-radius: 100%; position: relative; font-weight: 600; font-size: 0.4rem; } .site-health-progress-count { position: absolute; display: block; height: 80px; width: 80px; right: 50%; top: 50%; margin-top: -40px; margin-right: -40px; border-radius: 100%; line-height: 6.3; font-size: 2em; } .loading .site-health-progress svg #bar { stroke-dashoffset: 0; stroke: #c3c4c7; animation: loadingPulse 3s infinite ease-in-out; } .site-health-progress svg circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke: #c3c4c7; stroke-width: 2em; } .site-health-progress svg #bar { stroke-dashoffset: 565; stroke: #d63638; } .green .site-health-progress #bar { stroke: #00a32a; } .green .site-health-progress .site-health-progress-label { color: #00a32a; } .orange .site-health-progress #bar { stroke: #dba617; } .orange .site-health-progress .site-health-progress-label { color: #dba617; } .site-health-progress-label { font-weight: 600; line-height: 20px; margin-right: 0.3rem; } @keyframes loadingPulse { 0% { stroke: #c3c4c7; } 50% { stroke: var(--wp-admin-theme-color); } 100% { stroke: #c3c4c7; } } .health-check-tabs-wrapper { /* IE 11 */ display: -ms-inline-grid; -ms-grid-columns: 1fr 1fr 1fr 1fr; vertical-align: top; /* modern browsers */ display: inline-grid; grid-template-columns: 1fr 1fr 1fr 1fr; } .health-check-tabs-wrapper.tab-count-1 { grid-template-columns: 1fr; } .health-check-tabs-wrapper.tab-count-2 { grid-template-columns: 1fr 1fr; } .health-check-tabs-wrapper.tab-count-3 { grid-template-columns: 1fr 1fr 1fr; } .health-check-tab { display: block; /* IE 11 */ text-decoration: none; color: inherit; padding: 0.5rem 1rem 1rem; margin: 0 1rem; transition: box-shadow 0.5s ease-in-out; } .health-check-offscreen-nav-wrapper { position: relative; background: transparent; border: none; } .health-check-offscreen-nav-wrapper:focus .health-check-offscreen-nav { right: initial; } .health-check-offscreen-nav { display: none; position: absolute; padding-top: 10px; left: 0; top: 100%; width: 13rem; } .health-check-offscreen-nav-wrapper.visible .health-check-offscreen-nav { display: inline-block; } .health-check-offscreen-nav:before { position: absolute; content: ""; width: 0; height: 0; border-style: solid; border-width: 0 10px 5px; border-color: transparent transparent #ffffff; left: 20px; top: 5px; } .health-check-offscreen-nav .health-check-tab { background: #fff; box-shadow: 0 2px 5px 0 rgba( 0, 0, 0, 0.75 ); } .health-check-offscreen-nav .health-check-tab.active { box-shadow: inset -3px 0 #3582c4; font-weight: 600; } .health-check-body { max-width: 800px; margin: 0 auto; } .widefat.health-check-table th { font-size: 13px; } .health-check-table td:first-child { width: 30%; } .health-check-table td { width: 70%; } .health-check-table ul, .health-check-table ol { margin: 0; } .health-check-body li { line-height: 1.5; } .health-check-body .pass::before, .health-check-body .good::before { content: "\f147"; content: "\f147" / ''; color: #00a32a; } .health-check-body .warning::before { content: "\f460"; content: "\f460" / ''; color: #dba617; } .health-check-body .info::before { content: "\f348"; content: "\f348" / ''; color: #72aee6; } .health-check-body .fail::before, .health-check-body .error::before { content: "\f335"; content: "\f335" / ''; color: #d63638; } .site-health-copy-buttons { margin: 1rem 0; } .site-health-copy-buttons .copy-button-wrapper { display: inline-flex; align-items: center; margin: 0.5rem 0 1rem; } .site-health-copy-buttons .success { color: #007017; margin-right: 0.5rem; } .site-status-has-issues.hide { display: none; } .site-health-view-more { text-align: center; } .site-health-issues-wrapper:first-of-type { margin-top: 3rem; } .site-health-issues-wrapper { margin-bottom: 3rem; margin-top: 2rem; } .site-status-all-clear { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; width: 100%; margin: 0 0 3rem; } @media all and (min-width: 784px) { .site-status-all-clear { margin: 2rem 0 5rem; } } .site-status-all-clear.hide { display: none; } .site-status-all-clear .dashicons { font-size: 150px; height: 150px; margin-bottom: 2rem; width: 150px; } .site-status-all-clear .encouragement { font-size: 1.5rem; font-weight: 600; } .site-status-all-clear p { margin: 0; } .wp-core-ui .button.site-health-view-passed { position: relative; padding-left: 40px; padding-right: 20px; } .health-check-wp-paths-sizes.spinner { visibility: visible; float: none; margin: 0 4px; flex-shrink: 0; } /* Styling unique to the dashboard widget. */ #dashboard_site_health .site-health-details { padding-right: 16px; } #dashboard_site_health .site-health-details p:first-child { margin-top: 0; } #dashboard_site_health .site-health-details p:last-child { margin-bottom: 0; } #dashboard_site_health .health-check-widget { display: grid; grid-template-columns: 1fr 2fr; grid-auto-rows: minmax(64px, auto); column-gap: 16px; align-items: center; } #dashboard_site_health .site-health-progress-label { margin-right: 0; } .health-check-widget-title-section { margin-bottom: 0; text-align: center; } @media screen and (max-width: 480px) { #dashboard_site_health .health-check-widget { grid-template-columns: 100%; } } @media screen and (max-width: 782px) { .site-health-issues-wrapper .health-check-accordion-trigger { flex-direction: column; align-items: flex-start; } .health-check-accordion-trigger .badge { margin: 1em 0 0; } .health-check-table { table-layout: fixed; } .health-check-table th, .health-check-table td { box-sizing: border-box; display: block; width: 100%; word-wrap: break-word; } .widefat.health-check-table th, .health-check-table td:first-child { width: 100%; padding-bottom: 0; font-weight: 600; } .wp-core-ui .site-health-copy-buttons .copy-button { margin-bottom: 0; } } css/color-picker.css000064400000007517152213653150010454 0ustar00/* rtl:ignore */ .wp-color-picker { width: 80px; direction: ltr; } .wp-picker-container .hidden { display: none; } /* Needs higher specificity to override `.wp-core-ui .button`. */ .wp-picker-container .wp-color-result.button { min-height: 32px; margin: 0 6px 6px 0; padding: 0 0 0 30px; font-size: 11px; } .wp-color-result-text { background: #f6f7f7; border-radius: 0 2px 2px 0; border-left: 1px solid #c3c4c7; color: #50575e; display: block; line-height: 2.72727273; /* 30px */ padding: 0 6px; text-align: center; } .wp-color-result:hover, .wp-color-result:focus { background: #f6f7f7; border-color: #8c8f94; color: #1d2327; } .wp-color-result:hover:after, .wp-color-result:focus:after { color: #1d2327; border-color: #a7aaad; border-left: 1px solid #8c8f94; } .wp-picker-container { display: inline-block; } .wp-color-result:focus { border-color: #4f94d4; box-shadow: 0 0 3px rgba(34, 113, 177, 0.8); } .wp-color-result:active { /* See Trac ticket #39662 */ transform: none !important; } .wp-picker-open + .wp-picker-input-wrap { display: inline-block; vertical-align: top; } .wp-picker-input-wrap label { display: inline-block; vertical-align: top; } /* For the old `custom-background` page, to override the inline-block and margins from `.form-table td fieldset label`. */ .form-table .wp-picker-input-wrap label { margin: 0 !important; } .wp-picker-input-wrap .button.wp-picker-default, .wp-picker-input-wrap .button.wp-picker-clear, .wp-customizer .wp-picker-input-wrap .button.wp-picker-default, .wp-customizer .wp-picker-input-wrap .button.wp-picker-clear { margin-left: 6px; padding: 0 8px; line-height: 2.72727273; /* 30px */ min-height: 32px; } .wp-picker-container .iris-square-slider .ui-slider-handle:focus { background-color: #50575e } .wp-picker-container .iris-picker { border-radius: 0; border-color: #dcdcde; margin-top: 6px; } .wp-picker-container input[type="text"].wp-color-picker { width: 4rem; font-size: 12px; font-family: monospace; margin: 0; padding: 0 5px; vertical-align: top; min-height: 32px; } .wp-color-picker::-webkit-input-placeholder { color: #646970; } .wp-color-picker::-moz-placeholder { color: #646970; } .wp-picker-container input[type="text"].iris-error { background-color: #fcf0f1; border-color: #d63638; color: #000; } .iris-picker .ui-square-handle:focus, .iris-picker .iris-strip .ui-slider-handle:focus { border-color: var(--wp-admin-theme-color, #3858e9); border-style: solid; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); outline: 2px solid transparent; } .iris-picker .iris-palette:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); } @media screen and (max-width: 782px) { .wp-picker-container input[type="text"].wp-color-picker { width: 5rem; font-size: 16px; line-height: 1.875; /* 30px */ min-height: 32px; } .wp-customizer .wp-picker-container input[type="text"].wp-color-picker { padding: 0 5px; } .wp-picker-input-wrap .button.wp-picker-default, .wp-picker-input-wrap .button.wp-picker-clear { padding: 0 8px; line-height: 2.14285714; /* 30px */ min-height: 32px; } .wp-customizer .wp-picker-input-wrap .button.wp-picker-default, .wp-customizer .wp-picker-input-wrap .button.wp-picker-clear { padding: 0 8px; font-size: 14px; line-height: 2.14285714; /* 30px */ min-height: 32px; } .wp-picker-container .wp-color-result.button { padding: 0 0 0 40px; font-size: 14px; line-height: 2.14285714; /* 30px */ } .wp-customizer .wp-picker-container .wp-color-result.button { font-size: 14px; line-height: 2.14285714; /* 30px */ } .wp-picker-container .wp-color-result-text { padding: 0 14px; font-size: inherit; line-height: inherit; } .wp-customizer .wp-picker-container .wp-color-result-text { padding: 0 10px; } } css/list-tables-rtl.min.css000064400000110157152213653150011662 0ustar00/*! This file is auto-generated */ .response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;border-radius:5px;background-color:#646970;color:#fff;font-size:11px;line-height:1.90909090;text-align:center}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-right:8px;width:0;height:0;border-top:5px solid #646970;border-left:5px solid transparent}.column-comments a.post-com-count-approved:focus .comment-count-approved,.column-comments a.post-com-count-approved:hover .comment-count-approved,.column-response a.post-com-count-approved:focus .comment-count-approved,.column-response a.post-com-count-approved:hover .comment-count-approved{background:#3858e9}.column-comments a.post-com-count-approved:focus:after,.column-comments a.post-com-count-approved:hover:after,.column-response a.post-com-count-approved:focus:after,.column-response a.post-com-count-approved:hover:after{border-top-color:#3858e9}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;right:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;border-radius:11px;background:#d63638;color:#fff;font-size:9px;line-height:1.88888888;text-align:center}.column-comments .post-com-count-no-pending,.column-response .post-com-count-no-pending{display:none}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #c3c4c7}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#50575e}#replyrow td{padding:2px}#replysubmit{margin:0;padding:5px 7px 10px;overflow:hidden}#replysubmit .reply-submit-buttons{margin-bottom:0}#replysubmit .button{margin-left:5px}#replysubmit .spinner{float:none;margin:-4px 0 0}#replyrow.inline-edit-row fieldset.comment-reply{font-size:inherit;line-height:inherit}#replyrow legend{margin:0;padding:.2em 5px 0;font-size:13px;line-height:1.4;font-weight:600}#replyrow.inline-edit-row label{display:inline;vertical-align:baseline;line-height:inherit}#commentsdiv #edithead .inside,#edithead .inside{float:right;padding:3px 5px 2px 0;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;box-shadow:none}#replyerror{border-color:#dcdcde;background-color:#f6f7f7}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f6f7f7}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fcf9e8}#the-comment-list .unapproved th.check-column{border-right:4px solid #d63638}#the-comment-list .unapproved th.check-column input{margin-right:4px}#the-comment-list .approve a{color:#007017}#the-comment-list .unapprove a{color:#996800}#the-comment-list td,#the-comment-list th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)!important}th .comment-grey-bubble{width:16px;position:relative;top:2px}th .comment-grey-bubble:before{content:"\f101";content:"\f101"/'';font:normal 20px/.5 dashicons;display:inline-block;padding:0;top:4px;right:-4px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-date{width:14%}.column-date span[title]{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.fixed .column-posts{width:74px}.fixed .column-posts,.fixed .column-role{hyphens:auto}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;text-align:right}.fixed .column-comments .vers{padding-right:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:right;min-height:60px;margin:0 0 0 9px}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-right:70px}table.media .column-title .filename{margin-bottom:.2em}.media .row-actions .copy-to-clipboard-container{display:inline;position:relative}.media .row-actions .copy-to-clipboard-container .success{position:absolute;right:50%;transform:translate(50%,-100%);background:#000;color:#fff;border-radius:5px;margin:0;padding:2px 5px}.wp-list-table a{transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:1.38461538}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0 none}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{width:160px}.sorting-indicators{display:grid}.sorting-indicator{display:block;width:10px;height:4px;margin-top:4px;margin-right:7px}.sorting-indicator:before{font:normal 20px/1 dashicons;display:inline-block;padding:0;top:-4px;right:-8px;line-height:.5;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#a7aaad}.sorting-indicator.asc:before{content:"\f142";content:"\f142"/''}.sorting-indicator.desc:before{content:"\f140";content:"\f140"/''}th.sorted.desc .sorting-indicator.desc:before{color:#1d2327}th.sorted.asc .sorting-indicator.asc:before{color:#1d2327}th.sorted.asc a:focus .sorting-indicator.asc:before,th.sorted.asc:hover .sorting-indicator.asc:before,th.sorted.desc a:focus .sorting-indicator.desc:before,th.sorted.desc:hover .sorting-indicator.desc:before{color:#a7aaad}th.sorted.asc a:focus .sorting-indicator.desc:before,th.sorted.asc:hover .sorting-indicator.desc:before,th.sorted.desc a:focus .sorting-indicator.asc:before,th.sorted.desc:hover .sorting-indicator.asc:before{color:#1d2327}.wp-list-table .toggle-row{position:absolute;left:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.wp-list-table .toggle-row:active{box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;right:10px;border-radius:50%;display:block;padding:1px 0 1px 2px;color:#3c434a;content:"\f140";content:"\f140"/'';font:normal 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table .is-expanded .toggle-row:before{content:"\f142";content:"\f142"/''}.check-column{position:relative}.check-column label{box-sizing:border-box;width:100%;height:100%;display:block;position:absolute;top:0;right:0}.check-column input{position:relative;z-index:1}.check-column .label-covers-full-cell:hover+input:not(:disabled){box-shadow:0 0 0 1px #2271b1}.check-column input:hover+label,.check-column label:hover{background:rgba(0,0,0,.05)}.locked-indicator{display:none;margin-right:6px;height:20px;width:16px}.locked-indicator-icon:before{color:#8c8f94;content:"\f160";content:"\f160"/'';display:inline-block;font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.locked-info{display:none;margin-top:4px}.locked-text{vertical-align:top}.wp-locked .locked-indicator,.wp-locked .locked-info{display:block}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;overflow:hidden;padding:8px}th.sortable a:focus,th.sorted a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}th.sortable a span,th.sorted a span{float:right;cursor:pointer}.tablenav-pages .current-page{vertical-align:top;margin:0 0 0 2px;font-size:13px;text-align:center;min-height:32px;padding:0 8px}.tablenav .total-pages{margin-left:2px}.tablenav #table-paging{margin-right:2px}.tablenav{clear:both;height:32px;margin:6px 0 4px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:left;margin:0 0 9px}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:32px;min-height:32px;margin:0;padding:0 4px;font-size:16px;line-height:1.875;text-align:center}.tablenav .displaying-num{margin-left:7px}.tablenav .one-page .displaying-num{display:inline-block;margin:5px 0}.tablenav .actions{padding:0 0 0 8px}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-left:20px}.tablenav .view-switch{float:left;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 2px 0 8px}.media-toolbar.wp-filter .view-switch{margin:0 2px 0 12px}.view-switch a{float:right;width:28px;height:28px;text-align:center;line-height:1.84615384;text-decoration:none}.view-switch a:before{color:#c3c4c7;display:inline-block;font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#787c82}.view-switch a.current:before{color:#2271b1}.view-switch .view-list:before{content:"\f163";content:"\f163"/''}.view-switch .view-excerpt:before{content:"\f164";content:"\f164"/''}.view-switch .view-grid:before{content:"\f509";content:"\f509"/''}.filter{float:right;margin:-5px 10px 0 0}.filter .subsubsub{margin-right:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:right;margin:0 0 1em 1.5ex;padding:0}#posts-filter fieldset legend{padding:0 1px .2em 0}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:right;margin-left:10px;margin-top:1px}.row-actions{color:#646970;font-size:13px;padding:2px 0 0;position:relative;right:-9999em}.rtl .row-actions a{display:inline-block}.row-actions .network_active,.row-actions .network_only{color:#000}.comment-item:hover .row-actions,.mobile .row-actions,.no-js .row-actions,.row-actions.visible,tr:hover .row-actions{position:static}.row-actions-visible{padding:2px 0 0}#wpbody-content .inline-edit-row fieldset{float:right;margin:0;padding:0 0 0 12px;width:100%;box-sizing:border-box}#wpbody-content .inline-edit-row td fieldset:last-of-type{padding-left:0}tr.inline-edit-row td{padding:0;position:relative}.inline-edit-wrapper{display:flow-root;padding:0 12px;border:1px solid transparent;border-radius:4px}.inline-edit-wrapper:focus{border-color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:50%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:left;width:69%}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row .submit{display:flex;flex-wrap:wrap;align-items:center;clear:both;margin:0;padding:.5em 0 1em}.inline-edit-save.submit .button{margin-left:8px}.inline-edit-save .spinner{float:none;margin:0}.inline-edit-row .notice-error{box-sizing:border-box;min-width:100%;margin-top:1em}.inline-edit-row .notice-error .error{margin:.5em 0;padding:2px}#the-list .inline-edit-row .inline-edit-legend{margin:0;padding:.2em 0;line-height:2.5;font-weight:600}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;vertical-align:baseline;line-height:2}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:right;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-right:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-left:.5em}.inline-edit-row .inline-edit-or{margin:.2em 0 .2em 6px;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}.inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])),.inline-edit-row select{min-height:32px;padding:0 8px 0 8px}.inline-edit-row select{line-height:2.14285714;padding-left:24px}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-left:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row .inline-edit-legend{text-transform:uppercase}.inline-edit-row fieldset .inline-edit-date{float:right}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{vertical-align:middle;text-align:center;padding:0 4px}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}#bulk-titles-list,#bulk-titles-list li,.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row fieldset ul.cat-checklist input{margin-top:-1px;margin-right:3px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row select[name=page_template],.inline-edit-row select[name=post_parent]{max-width:80%}.quick-edit-row-post fieldset label.inline-edit-status{float:right}#bulk-titles,ul.cat-checklist{height:14em;border:1px solid #ddd;margin:0 0 5px;padding:.2em 5px;overflow-y:scroll}ul.cat-checklist input[name="post_category[]"]:indeterminate::before{content:'';border-top:2px solid grey;width:65%;height:2px;position:absolute;top:calc(50% + 1px);right:50%;transform:translate(50%,-50%)}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{display:inline-block;margin:0;padding:3px 0;line-height:20px;vertical-align:top}#bulk-titles .ntdelitem{padding-right:23px}#bulk-titles .ntdelbutton{width:26px;height:26px;margin:0 -26px 0 0;text-align:center;border-radius:3px}#bulk-titles .ntdelbutton:before{display:inline-block;vertical-align:top}#bulk-titles .ntdelbutton:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent;outline-offset:0}.plugins tbody,.plugins tbody th.check-column{padding:8px 2px 0 0}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}.updates-table .plugin-title p{margin-top:0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:6px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5}.plugins .desc ol,.plugins .desc ul{margin:0 2em 0 0}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px;padding:0}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #dcdcde}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{box-shadow:none}.plugin-update-tr.active td,.plugins .active th.check-column{border-right:4px solid var(--wp-admin-theme-color)}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-left:12px;white-space:nowrap}.plugins .plugin-title .dashicons,.plugins .plugin-title img.plugin-icon,.plugins .plugin-title img.updates-table-screenshot{float:right;padding:0 0 0 10px;width:64px;height:64px}.plugins .plugin-title .dashicons:before{padding:2px;background-color:#f0f0f1;box-shadow:inset 0 0 10px rgba(167,170,173,.15);font-size:60px;color:#c3c4c7}#update-themes-table .plugin-title .dashicons,#update-themes-table .plugin-title img.updates-table-screenshot{width:85px}.plugins .column-auto-updates{width:14.2em}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .row-actions{white-space:normal;min-width:12em}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugins .plugin-update-tr .plugin-update{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);overflow:hidden;padding:0}.plugins .plugin-update-tr .notice,.plugins .plugin-update-tr div[class=update-message]{margin:5px 40px 15px 20px}.plugins .notice p{margin:.5em 0}.plugins .plugin-description a,.plugins .plugin-update a,.updates-table .plugin-title a{text-decoration:underline}.plugins tr.paused th.check-column{border-right:4px solid #b32d2e}.plugins tr.paused td,.plugins tr.paused th{background-color:#f6f7f7}.plugins .paused .dashicons-warning,.plugins tr.paused .plugin-title{color:#b32d2e}.plugins .paused .error-display code,.plugins .paused .error-display p{font-size:90%;color:rgba(0,0,0,.7)}.plugins .resume-link{color:#b32d2e}.plugin-card .update-now:before{color:#d63638;content:"\f463";content:"\f463"/'';display:inline-block;font:normal 16px/1.875 dashicons;margin:0 -2px 0 5px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.plugin-card .updating-message:before{content:"\f463";content:"\f463"/'';animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(-359deg)}}.plugin-card .updated-message:before{color:#68de7c;content:"\f147";content:"\f147"/''}.plugin-card .updated-message:before,.plugin-card .updating-message:before{line-height:1;position:relative;top:-2px;vertical-align:middle}.plugin-install-php #the-list{display:flex;flex-wrap:wrap}.plugin-install-php .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.plugin-install-php h2{clear:both}.plugin-install-php h3{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{float:right;margin:0 8px 16px;width:48.5%;width:calc(50% - 8px);background-color:#fff;border:1px solid rgb(0,0,0,.1);border-radius:8px;box-sizing:border-box;overflow:hidden}.plugin-card:nth-child(odd){clear:both;margin-right:0}.plugin-card:nth-child(2n){margin-left:0}@media screen and (min-width:1600px) and (max-width:2299px){.plugin-card{width:30%;width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(2n){margin-left:8px}.plugin-card:nth-child(3n+1){clear:both;margin-right:0}.plugin-card:nth-child(3n){margin-left:0}}@media screen and (min-width:2300px){.plugin-card{width:25%;width:calc(25% - 12px)}.plugin-card:nth-child(odd){clear:none;margin-right:8px}.plugin-card:nth-child(2n){margin-left:8px}.plugin-card:nth-child(4n+1){clear:both;margin-right:0}.plugin-card:nth-child(4n){margin-left:0}}.plugin-card-top{position:relative;padding:16px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-action-buttons li .button{min-height:32px;line-height:2.30769231;padding:0 12px}.plugin-card h3{margin:0 0 16px 12px;font-size:18px;line-height:1.3}.plugin-card .desc{margin-inline:0}.plugin-card .desc>p,.plugin-card .name{margin-right:148px}@media (min-width:1101px){.plugin-card .desc>p,.plugin-card .name{margin-left:128px}}@media (min-width:481px) and (max-width:781px){.plugin-card .desc>p,.plugin-card .name{margin-left:128px}}.plugin-card .column-description{display:flex;flex-direction:column;justify-content:flex-start}.plugin-card .column-description>p{margin-top:0}.plugin-card .column-description p:empty{display:none}.plugin-card .notice.plugin-dependencies{margin:auto 20px 20px;padding:15px}.plugin-card .plugin-dependencies-explainer-text{margin-block:0}.plugin-card .plugin-dependency{align-items:center;display:flex;flex-wrap:wrap;margin-top:.5em;column-gap:1%;row-gap:.5em}.plugin-card .plugin-dependency:last-child,.plugin-card .plugin-dependency:nth-child(2){margin-top:1em}.plugin-card .plugin-dependency-name{flex-basis:74%}.plugin-card .plugin-dependency .more-details-link{margin-right:auto}.rtl .plugin-card .plugin-dependency .more-details-link{margin-left:auto}@media (max-width:939px){.plugin-card .plugin-dependency-name{flex-basis:69%}}.plugins #the-list .required-by,.plugins #the-list .requires{margin-top:1em}.plugin-card .action-links{position:absolute;top:20px;left:20px;width:120px}.plugin-action-buttons{clear:left;float:left;margin-bottom:1em;text-align:left}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:16px;background-color:#f6f7f7;border-top:1px solid rgb(0,0,0,.1);overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card-update-failed .update-now{font-weight:600}.plugin-card-update-failed .notice-error{margin:0;padding-right:16px;box-shadow:0 -1px 0 #dcdcde}.plugin-card-update-failed .plugin-card-bottom{display:none}.plugin-card .column-rating{line-height:1.76923076}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:right;clear:right;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:left;float:left;clear:left;width:65%;width:calc(100% - 180px)}.plugin-card .column-compatibility span:before{font:normal 20px/.5 dashicons;display:inline-block;padding:0;top:4px;right:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}.plugin-card .column-compatibility .compatibility-incompatible:before{content:"\f158";content:"\f158"/'';color:#d63638}.plugin-card .column-compatibility .compatibility-compatible:before{content:"\f147";content:"\f147"/'';color:#007017}.plugin-card .notice{margin:20px 20px 0}.plugin-card .plugin-icon{position:absolute;top:20px;right:20px;width:128px;height:128px;margin:0 0 20px 20px}.no-plugin-results{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;width:100%;text-align:center}.wp-list-table .site-archived,.wp-list-table .site-deleted,.wp-list-table tr.site-archived,.wp-list-table tr.site-deleted{background:#fcf0f1}.wp-list-table .site-mature,.wp-list-table .site-spammed,.wp-list-table tr.site-mature,.wp-list-table tr.site-spammed{background:#fcf9e8}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-right:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:right}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-left:20px}.plugin-card h3{margin-left:24px}.plugin-card .desc,.plugin-card .name{margin-left:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.tablenav .view-switch,.tablenav.top .actions{display:none}.view-switch a{width:36px;height:36px;line-height:2.53846153}.tablenav.top .displaying-num{display:none}.tablenav.bottom .displaying-num{position:absolute;left:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.top .tablenav-pages.one-page{display:none}.tablenav.bottom .actions select{margin-bottom:5px}.tablenav.bottom .actions.alignleft+.actions.alignleft{clear:right;margin-top:10px}.tablenav.bottom .tablenav-pages.one-page{margin-top:15px;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{min-width:44px;padding:12px 8px;font-size:18px;line-height:1}.tablenav-pages .pagination-links .current-page{min-width:44px;padding:12px 6px;font-size:16px;line-height:1.125}.form-wrap>p{display:none}.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell}.wp-list-table .check-column{width:2.5em}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;width:auto!important}.wp-list-table td.column-primary{padding-left:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 35% 3px 8px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;right:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:right}#comments-form .fixed .column-author,#commentsdiv .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}.fixed .column-author.hidden~.column-comment .comment-author{display:none}#the-comment-list .is-expanded td{box-shadow:none}#the-comment-list .is-expanded td:last-child{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-left:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;border-radius:0;background:0 0;color:#b32d2e;font-size:inherit;line-height:inherit;text-align:right}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#d63638}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.row-actions{margin-left:-8px;padding-top:4px}body:not(.plugins-php) .row-actions{display:flex;flex-wrap:wrap;gap:8px;color:transparent}.row-actions span{font-size:0}.row-actions span .button-link,.row-actions span a{display:inline-block;padding:4px 0 4px 16px;font-size:13px;line-height:1.5}.row-actions span.approve:before,.row-actions span.unapprove:before{content:"| "}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%;padding:0}#the-list .inline-edit-row .inline-edit-legend,.inline-edit-row span.title{font-size:16px}.inline-edit-row p.howto{font-size:14px}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:0}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;box-sizing:border-box}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:16px;line-height:2;padding:3px 4px}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{padding:6px 0;font-size:16px;line-height:28px}#bulk-titles .ntdelitem{padding-right:37px}#bulk-titles .ntdelbutton{width:40px;height:40px;margin:0 -40px 0 0;overflow:hidden}#bulk-titles .ntdelbutton:before{font-size:20px;line-height:28px}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-right:0}.inline-edit-row .inline-edit-or{margin:0 0 0 6px}#commentsdiv #edithead .inside,#edithead .inside{float:none;text-align:right;padding:3px 5px}#commentsdiv #edithead .inside input,#edithead .inside input{width:100%}#edithead label{display:block}#wpbody-content .updates-table .plugin-title{width:auto;white-space:normal}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .no-items td,#wpbody-content .wp-list-table.plugins .plugin-deleted-tr td{display:table-cell}#wpbody-content .wp-list-table.plugins .desc.hidden{display:none}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}#wpbody-content .wp-list-table.plugins .plugin-title,#wpbody-content .wp-list-table.plugins .theme-title{padding-left:12px;white-space:normal}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{box-shadow:none;border-top:none}.plugins #the-list tr td{border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.plugins .plugin-update-tr:before{content:"";display:table-cell}.plugins #the-list .plugin-update-tr .plugin-update{border-right:none}.plugin-update-tr .update-message{margin-right:0}.plugins .active.update+.plugin-update-tr:before,.plugins .active.updated+.plugin-update-tr:before{background-color:rgba(var(--wp-admin-theme-color--rgb),.08);border-right:4px solid var(--wp-admin-theme-color)}.plugins .plugin-update-tr .update-message{margin-right:0}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong{font-size:1.4em;line-height:1.5}.plugins tbody th.check-column{padding:8px 5px 0 0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-right:9px}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}table.plugin-install #the-list td{box-shadow:none}table.plugin-install #the-list tr{display:block;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-right:0;margin-left:0;width:100%}table.media .column-title .has-media-icon~.row-actions{margin-right:0;clear:both}}@media screen and (max-width:480px){.tablenav-pages .current-page{margin:0}.tablenav.bottom .displaying-num{position:relative;top:0;display:block;text-align:left;padding-bottom:.5em}.tablenav.bottom .tablenav-pages.one-page{height:auto}.tablenav-pages .tablenav-paging-text{float:right;width:100%;padding-top:.5em}}css/nav-menus.min.css000064400000033734152213653150010556 0ustar00/*! This file is auto-generated */ .no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 5px 4px 8px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px;resize:vertical}#nav-menu-meta .button-controls{margin-bottom:0}.has-no-menu-item .button-controls{display:none}#nav-menus-frame{margin-left:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-left:-300px;clear:both;float:left;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0;height:100%;max-height:inherit}#menu-settings-column .categorydiv,#menu-settings-column .customlinkdiv,#menu-settings-column .posttypediv,#menu-settings-column .taxonomydiv{max-height:inherit;height:100%}#menu-settings-column .categorydiv div.tabs-panel,#menu-settings-column .customlinkdiv div.tabs-panel,#menu-settings-column .posttypediv div.tabs-panel,#menu-settings-column .taxonomydiv div.tabs-panel,#menu-settings-column .wp-tab-panel{max-height:calc(100% - 75px);height:100%}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.is-submenu{color:#50575e;font-style:italic;font-weight:400;margin-left:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fff}.manage-menus .selected-menu,.manage-menus .submit-btn,.manage-menus select,.nav-menus-php .add-new-menu-action{display:inline-block;margin-right:3px;vertical-align:middle}.manage-menus select,.menu-location-menus select{max-width:100%}.menu-edit #post-body-content h3{margin:1em 0 10px}#nav-menu-bulk-actions-top{margin:1em 0}#nav-menu-bulk-actions-bottom{margin:1em 0;margin:calc(1em + 9px) 0}.bulk-actions input.button{margin-right:12px}.bulk-select-button{position:relative;display:inline-block;padding:0 10px;font-size:13px;line-height:2.15384615;height:auto;min-height:30px;background:#f6f7f7;vertical-align:top;border:1px solid #dcdcde;margin:0;cursor:pointer;border-radius:3px;white-space:nowrap;box-sizing:border-box}.bulk-selection .bulk-select-button{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}#pending-menu-items-to-delete{display:none}.bulk-selection #pending-menu-items-to-delete{display:block;margin-top:1em}#pending-menu-items-to-delete p{margin-bottom:0}#pending-menu-items-to-delete ul{margin-top:0;list-style:none}#pending-menu-items-to-delete ul li{display:inline}input.bulk-select-switcher+.bulk-select-button-label{vertical-align:inherit}label.bulk-select-button:active,label.bulk-select-button:focus-within,label.bulk-select-button:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}input.bulk-select-switcher:focus+.bulk-select-button-label{color:#0a4b78}.bulk-actions input.menu-items-delete{appearance:none;font-size:inherit;border:0;line-height:2.1em;background:0 0;cursor:pointer;text-decoration:underline;color:#b32d2e}.bulk-actions input.menu-items-delete:hover{color:#b32d2e;border:none}.bulk-actions input.menu-items-delete.disabled{display:none}.menu-settings{border-top:1px solid #f0f0f1;margin-top:2em}.menu-settings-group{margin:0 0 10px;padding-left:20%}.menu-settings-group:last-of-type{margin-bottom:0}.menu-settings-input{float:left;margin:0;width:100%}.menu-settings-group-name{float:left;clear:both;width:25%;padding:3px 0 0;margin-left:-25%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#646970;font-size:11px}#menu-management-liquid{float:left;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-right:20px;margin-top:-3px;width:100%}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid #dcdcde;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px;background:#f6f7f7}#nav-menu-header{border-bottom:1px solid #dcdcde;margin-bottom:0}#nav-menu-header .menu-name-label{display:inline-block;vertical-align:middle;margin-right:7px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}.nav-menus-php #post-body-content .post-body-plain{margin-bottom:0}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:right;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations .menu-location-title{padding:13px 10px 0}.menu-location-title label{font-weight:600}.menu-location-menus select{float:left}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:left;width:160px;margin-right:5px}.locations-row-links{float:left;margin:6px 0 0 6px}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-right:3px;border-right:1px solid #c3c4c7}#menu-management .inside{padding:0 10px}.postbox .howto input{width:180px;float:right}.accordion-container .outer-border{margin:0}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:right}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}#cancel-save{text-decoration:underline;font-size:12px;margin-left:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:right}.list-controls{float:left}.add-to-menu{float:right}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px;vertical-align:middle}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link .howto{font-size:12px}#add-custom-link label span{display:block;float:left;margin-top:5px;padding-right:5px}.menu-item-textbox{width:180px}.customlinkdiv .menu-item-textbox{width:100%}.nav-menus-php .howto span{float:left;margin-top:6px}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:-3px -10px 0 0}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}.menu-item-title .post-state{font-weight:600}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dcdcde;position:relative;padding:10px 15px;height:auto;min-height:20px;max-width:382px;line-height:2.30769230;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#8c8f94}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#fcf0f1;border-color:#d63638}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f86368}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:1.53846153;display:block;margin-right:13em}.menu-item-handle .menu-item-checkbox{display:none}.bulk-selection .menu-item-handle .menu-item-checkbox{display:inline-block;margin-right:6px}.menu-item-handle .menu-item-title.no-title{color:#646970}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:9px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:9px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:30px}.menu-item-depth-2{margin-left:60px}.menu-item-depth-3{margin-left:90px}.menu-item-depth-4{margin-left:120px}.menu-item-depth-5{margin-left:150px}.menu-item-depth-6{margin-left:180px}.menu-item-depth-7{margin-left:210px}.menu-item-depth-8{margin-left:240px}.menu-item-depth-9{margin-left:270px}.menu-item-depth-10{margin-left:300px}.menu-item-depth-11{margin-left:330px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-30px}.menu-item-depth-2 .menu-item-transport{margin-left:-60px}.menu-item-depth-3 .menu-item-transport{margin-left:-90px}.menu-item-depth-4 .menu-item-transport{margin-left:-120px}.menu-item-depth-5 .menu-item-transport{margin-left:-150px}.menu-item-depth-6 .menu-item-transport{margin-left:-180px}.menu-item-depth-7 .menu-item-transport{margin-left:-210px}.menu-item-depth-8 .menu-item-transport{margin-left:-240px}.menu-item-depth-9 .menu-item-transport{margin-left:-270px}.menu-item-depth-10 .menu-item-transport{margin-left:-300px}.menu-item-depth-11 .menu-item-transport{margin-left:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 16px;color:#646970;font-size:12px;line-height:1.5}.item-controls{font-size:12px;position:absolute;right:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls a:hover{cursor:pointer}.item-controls .item-order{padding-right:10px}.nav-menus-php .item-edit{position:absolute;right:-20px;top:0;display:block;width:30px;height:40px;outline:0}.no-js.nav-menus-php .item-edit{position:static;float:right;width:auto;height:auto;margin:12px -10px 12px 0;padding:0;color:#2271b1;text-decoration:underline;font-size:12px;line-height:1.5}.no-js.nav-menus-php .item-edit .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.nav-menus-php .item-edit:before{margin-top:10px;margin-left:4px;width:20px;border-radius:50%;text-indent:-1px}.no-js.nav-menus-php .item-edit:before{display:none}.rtl .nav-menus-php .item-edit:before{text-indent:1px}.js.nav-menus-php .item-edit:focus{box-shadow:none}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;max-width:392px;padding:10px;position:relative;z-index:10;border:1px solid #c3c4c7;border-top:none;box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move{margin:3px 0 5px;line-height:1.5}.field-move-visual-label{float:left;margin-right:4px}.menu-item-settings .field-move .button-link{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em -10px;text-align:center}.add-menu-item-pagelinks .page-numbers{display:inline-block;min-width:20px}.add-menu-item-pagelinks .page-numbers.dots{min-width:0}.link-to-original{display:block;margin:0 0 15px;padding:3px 5px 5px;border:1px solid #dcdcde;color:#646970;font-size:12px}.link-to-original a{padding-left:4px;font-style:normal}.hidden-field{display:none}.description-group{display:flex;column-gap:10px}.description-group>*{flex-grow:1}.menu-item-actions{padding-top:15px;padding-bottom:7px}#cancel-save{cursor:pointer}.nav-menus-php .major-publishing-actions{padding:10px 0;display:flex;align-items:center}.nav-menus-php .major-publishing-actions>*{margin-right:10px}.nav-menus-php .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame{display:block}.button-controls{display:flex;align-items:center;justify-content:space-between}.button-controls-customlinkdiv{justify-content:flex-end}@media only screen and (min-width:769px) and (max-width:1000px){body.menu-max-depth-0{min-width:0!important}#menu-management-liquid{width:100%}.nav-menus-php #post-body-content{min-width:0}}@media screen and (max-width:782px){body.nav-menus-php,body.wp-customizer{min-width:0!important}#nav-menus-frame{margin-left:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-left:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}#menu-name{width:100%}.nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action{padding-top:1em}.nav-menus-php .delete-action{font-size:14px;line-height:2.14285714}.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-group{display:block}.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings-group{padding-left:0;overflow:visible}.menu-settings-group-name{float:none;width:auto;margin-left:0;margin-bottom:15px}.menu-settings-input{float:none;margin-bottom:15px}.menu-edit .checkbox-input{margin-top:0}.manage-menus select{margin:.5em 0}.wp-core-ui .manage-menus .button{margin-bottom:0}.widefat .menu-locations .menu-location-title{padding-top:16px}}@media only screen and (min-width:783px){@supports (position:sticky) and (scroll-margin-bottom:130px){#nav-menu-footer{position:sticky;bottom:0;z-index:10;box-shadow:0 -1px 0 0 #ddd}#save_menu_header{display:none}}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}.bulk-select-button{padding:5px 10px}}css/themes.css000064400000125741152213653150007350 0ustar00/*------------------------------------------------------------------------------ 16.0 - Themes ------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------ 16.1 - Manage Themes ------------------------------------------------------------------------------*/ .themes-php { overflow-y: scroll; } .themes-php #adminmenuwrap { z-index: 10001; /* above Theme Overlay */ } body.js .theme-browser.search-loading { display: none; } .theme-browser .themes { clear: both; } .themes-php .wrap h1 .button { margin-left: 20px; } /* Search form */ .themes-php .search-form { display: inline-flex; align-items: center; position: relative; top: 0; gap: .5rem; width: 100%; justify-content: end; } .themes-php .wp-filter-search { position: relative; margin: 0; width: 280px; } /* Position admin messages */ .theme .notice, .theme .notice.is-dismissible { left: 0; margin: 0; position: absolute; right: 0; top: 0; } /** * Main theme element * (has flexible margins) */ .theme-browser .theme { cursor: pointer; float: left; margin: 0 4% 4% 0; position: relative; width: 30.6%; background: #ffffff; border: 1px solid rgb(0, 0, 0, 0.1); border-radius: 8px; box-sizing: border-box; overflow: hidden; } .theme-browser .theme:nth-child(3n) { margin-right: 0; } .theme-browser .theme:hover, .theme-browser .theme.focus { cursor: pointer; } .theme-browser .theme .theme-name { font-size: 15px; font-weight: 600; height: 18px; margin: 0; padding: 16px 15px; border-top: 1px solid rgb(0, 0, 0, 0.1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #ffffff; } /* Activate and Customize buttons, shown on hover and focus */ .theme-browser .theme .theme-actions { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; opacity: 0; transition: opacity 0.1s ease-in-out; height: auto; background: rgba(246, 247, 247, 0.7); border-left: 1px solid rgba(0, 0, 0, 0.05); } .theme-browser .theme:hover .theme-actions, .theme-browser .theme.focus .theme-actions { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; opacity: 1; } .theme-browser .theme .theme-actions .button-primary { margin-right: 3px; } /* Use compact size for space-constrained theme cards */ .theme-browser .theme .theme-actions .button.updated-message, .theme-browser .theme .theme-actions .button.updating-message, .theme-browser .theme .theme-actions .button { float: none; margin-left: 3px; min-height: 32px; line-height: 2.30769231; /* 30px for 32px min-height */ padding: 0 12px; } .theme-browser .theme .theme-actions .button.updated-message::before, .theme-browser .theme .theme-actions .button.updating-message::before { line-height: 1; vertical-align: text-bottom; position: relative; top: 2px; } /* Secondary buttons need white background for visibility on semi-transparent overlay */ .theme-browser .theme .theme-actions .button:not(.button-primary) { background: #fff; } .theme-browser .theme .theme-actions .button:not(.button-primary):hover { background: #f0f0f0; } .theme-browser .theme .theme-actions .button:not(.button-primary):focus { background: #fff; } /** * Theme Screenshot * * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size * It is also responsive. */ .theme-browser .theme .theme-screenshot { display: block; overflow: hidden; position: relative; -webkit-backface-visibility: hidden; /* Prevents flicker of the screenshot on hover. */ transition: opacity 0.2s ease-in-out; } .theme-browser .theme .theme-screenshot:after { content: ""; display: block; padding-top: 66.66666%; /* using a 3/2 aspect ratio */ } .theme-browser .theme .theme-screenshot img { height: auto; position: absolute; left: 0; top: 0; width: 100%; transition: opacity 0.2s ease-in-out; } .theme-browser .theme:hover .theme-screenshot, .theme-browser .theme.focus .theme-screenshot { background: #fff; } .theme-browser.rendered .theme:hover .theme-screenshot img, .theme-browser.rendered .theme.focus .theme-screenshot img { opacity: 0.4; } .theme-browser .theme .more-details { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; opacity: 0; position: absolute; top: 35%; right: 20%; left: 20%; width: 60%; background: #1d2327; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 15px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); -webkit-font-smoothing: antialiased; font-weight: 600; padding: 15px 12px; text-align: center; border-radius: 3px; border: none; transition: opacity 0.1s ease-in-out; cursor: pointer; } .theme-browser .theme .more-details:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); } .theme-browser .theme.focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .theme-browser .theme.focus .more-details { opacity: 1; } /* Current theme needs to have its action always on view */ .theme-browser .theme.active.focus .theme-actions { display: block; } .theme-browser.rendered .theme:hover .more-details, .theme-browser.rendered .theme.focus .more-details { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; opacity: 1; } /** * The currently active theme */ .theme-browser .theme.active .theme-name { background: #1d2327; color: #fff; padding-right: 115px; font-weight: 300; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5); } .theme-browser .customize-control .theme.active .theme-name { padding-right: 15px; } .theme-browser .theme.active .theme-name span { font-weight: 600; } .theme-browser .theme.active .theme-actions { background: transparent; border-left: none; opacity: 1; } .theme-browser .theme.active .theme-actions .button-primary { border-color: #fff; } .theme-id-container { position: relative; } .theme-browser .theme.active .theme-actions, .theme-browser .theme .theme-actions { position: absolute; top: 50%; transform: translateY(-50%); right: 0; padding: 9px 12px; } .theme-browser .theme:not(.active) .theme-actions { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); } .theme-browser .theme.active .theme-actions .button-primary { margin-right: 0; } /* Active theme secondary buttons need white background for visibility on dark overlay */ .theme-browser .theme.active .theme-actions .button:not(.button-primary) { background: #fff; } .theme-browser .theme.active .theme-actions .button:not(.button-primary):hover { background: #f0f0f0; } .theme-browser .theme.active .theme-actions .button:not(.button-primary):focus { background: #fff; } .theme-browser .theme .theme-author { background: #1d2327; color: #f0f0f1; display: none; font-size: 14px; margin: 0 10px; padding: 5px 10px; position: absolute; bottom: 56px; } .theme-browser .theme.display-author .theme-author { display: block; } .theme-browser .theme.display-author .theme-author a { color: inherit; } /** * Add new theme */ .theme-browser .theme.add-new-theme { background: transparent; border: none; overflow: visible; } .theme-browser .theme.add-new-theme a { text-decoration: none; display: block; position: relative; z-index: 1; } .theme-browser .theme.add-new-theme a:after { display: block; content: ""; background: transparent; background: rgba(0, 0, 0, 0); position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; text-shadow: none; border: 5px dashed #dcdcde; border: 5px dashed rgba(0, 0, 0, 0.1); box-sizing: border-box; } .theme-browser .theme.add-new-theme span:after { background: #dcdcde; background: rgba(140, 143, 148, 0.1); border-radius: 50%; display: inline-block; content: "\f132"; content: "\f132" / ''; -webkit-font-smoothing: antialiased; font: normal 74px/115px dashicons; width: 100px; height: 100px; vertical-align: middle; text-align: center; color: #8c8f94; position: absolute; top: 30%; left: 50%; margin-left: -50px; text-indent: -4px; padding: 0; text-shadow: none; z-index: 4; } .rtl .theme-browser .theme.add-new-theme span:after { text-indent: 4px; } .theme-browser .theme.add-new-theme a:hover .theme-screenshot, .theme-browser .theme.add-new-theme a:focus .theme-screenshot { background: none; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { background: #fff; color: #2271b1; } .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { border-color: transparent; color: #fff; background: #2271b1; content: ""; } .theme-browser .theme.add-new-theme .theme-name { background: none; border: none; text-align: center; font-weight: 400; position: relative; top: 0; margin-top: -18px; padding-top: 0; padding-bottom: 48px; } .theme-browser .theme.add-new-theme a:hover .theme-name, .theme-browser .theme.add-new-theme a:focus .theme-name { color: #fff; z-index: 2; } /** * Theme Overlay * Shown when clicking a theme */ .theme-overlay .theme-backdrop { position: absolute; left: -20px; right: 0; top: 0; bottom: 0; background: #f0f0f1; background: rgba(240, 240, 241, 0.9); z-index: 10000; /* Over WP Pointers. */ min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)); } .theme-overlay .theme-header { position: absolute; top: 0; left: 0; right: 0; height: 48px; border-bottom: 1px solid #dcdcde; } .theme-overlay .theme-header button { padding: 0; } .theme-overlay .theme-header .close { cursor: pointer; height: 48px; width: 50px; text-align: center; float: right; border: 0; border-left: 1px solid #dcdcde; background-color: transparent; transition: color .1s ease-in-out, background .1s ease-in-out; } .theme-overlay .theme-header .close:before { font: normal 22px/50px dashicons !important; color: #787c82; display: inline-block; content: "\f335"; content: "\f335" / ''; font-weight: 300; } /* Left and right navigation */ .theme-overlay .theme-header .right, .theme-overlay .theme-header .left { cursor: pointer; color: #787c82; background-color: transparent; height: 48px; width: 54px; float: left; text-align: center; border: 0; border-right: 1px solid #dcdcde; transition: color .1s ease-in-out, background .1s ease-in-out; } .theme-overlay .theme-header .close:focus, .theme-overlay .theme-header .close:hover, .theme-overlay .theme-header .right:focus, .theme-overlay .theme-header .right:hover, .theme-overlay .theme-header .left:focus, .theme-overlay .theme-header .left:hover { background: #dcdcde; border-color: #c3c4c7; color: #000; } .theme-overlay .theme-header .close:focus:before, .theme-overlay .theme-header .close:hover:before { color: #000; } .theme-overlay .theme-header .close:focus, .theme-overlay .theme-header .right:focus, .theme-overlay .theme-header .left:focus { box-shadow: none; outline: none; } .theme-overlay .theme-header .left.disabled, .theme-overlay .theme-header .right.disabled, .theme-overlay .theme-header .left.disabled:hover, .theme-overlay .theme-header .right.disabled:hover { color: #c3c4c7; background: inherit; cursor: inherit; } .theme-overlay .theme-header .right:before, .theme-overlay .theme-header .left:before { font: normal 20px/50px dashicons !important; display: inline; font-weight: 300; } .theme-overlay .theme-header .left:before { content: "\f341"; content: "\f341" / ''; } .theme-overlay .theme-header .right:before { content: "\f345"; content: "\f345" / ''; } .theme-overlay .theme-wrap { clear: both; position: fixed; top: 9%; left: 190px; right: 30px; bottom: 3%; background: #fff; box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1); z-index: 10000; /* Over WP Pointers. */ box-sizing: border-box; -webkit-overflow-scrolling: touch; } body.folded .theme-browser ~ .theme-overlay .theme-wrap { left: 70px; } .theme-overlay .theme-about { position: absolute; top: 49px; bottom: 57px; left: 0; right: 0; overflow: auto; padding: 2% 4%; } .theme-overlay .theme-actions { position: absolute; text-align: center; bottom: 0; left: 0; right: 0; padding: 10px 25px 5px; background: #f6f7f7; z-index: 30; box-sizing: border-box; border-top: 1px solid #f0f0f1; display: flex; justify-content: center; gap: 5px; } .theme-overlay .theme-actions .button { margin-bottom: 5px; } /* Hide-if-customize for items we can't add classes to */ .customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"], .customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"] { display: none; } .broken-themes a.delete-theme, .theme-overlay .theme-actions .delete-theme { color: #b32d2e; text-decoration: none; border-color: transparent; box-shadow: none; background: transparent; } .broken-themes a.delete-theme:hover, .broken-themes a.delete-theme:focus, .theme-overlay .theme-actions .delete-theme:hover, .theme-overlay .theme-actions .delete-theme:focus { background: #b32d2e; color: #fff; border-color: #b32d2e; box-shadow: 0 0 0 1px #b32d2e; } .theme-overlay .theme-actions .active-theme, .theme-overlay.active .theme-actions .inactive-theme { display: none; } .theme-overlay .theme-actions .inactive-theme, .theme-overlay.active .theme-actions .active-theme { display: block; } /** * Theme Screenshots gallery */ .theme-overlay .theme-screenshots { float: left; margin: 0 30px 0 0; width: 55%; max-width: 1200px; /* Recommended theme screenshot width, set here to avoid stretching */ text-align: center; } /* First screenshot, shown big */ .theme-overlay .screenshot { border: 1px solid #fff; box-sizing: border-box; overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); } .theme-overlay .screenshot:after { content: ""; display: block; padding-top: 75%; /* using a 4/3 aspect ratio */ } .theme-overlay .screenshot img { height: auto; position: absolute; left: 0; top: 0; width: 100%; } /* Handles old 300px screenshots */ .theme-overlay.small-screenshot .theme-screenshots { position: absolute; width: 302px; } .theme-overlay.small-screenshot .theme-info { margin-left: 350px; width: auto; } /* Other screenshots, shown small and square */ .theme-overlay .screenshot.thumb { background: #c3c4c7; border: 1px solid #f0f0f1; float: none; display: inline-block; margin: 10px 5px 0; width: 140px; height: 80px; cursor: pointer; } .theme-overlay .screenshot.thumb:after { content: ""; display: block; padding-top: 100%; /* using a 1/1 aspect ratio */ } .theme-overlay .screenshot.thumb img { cursor: pointer; height: auto; position: absolute; left: 0; top: 0; width: 100%; height: auto; } .theme-overlay .screenshot.selected { background: transparent; border: 2px solid #72aee6; } .theme-overlay .screenshot.selected img { opacity: 0.8; } /* No screenshot placeholder */ .theme-browser .theme .theme-screenshot.blank, .theme-overlay .screenshot.blank { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); } /** * Theme heading information */ .theme-overlay .theme-info { width: 40%; float: left; } .theme-overlay .current-label { background: #2c3338; color: #fff; font-size: 11px; display: inline-block; padding: 2px 8px; border-radius: 2px; margin: 0 0 -10px; -webkit-user-select: none; user-select: none; } .theme-overlay .theme-name { color: #1d2327; font-size: 32px; font-weight: 100; margin: 10px 0 0; line-height: 1.3; word-wrap: break-word; overflow-wrap: break-word; } .theme-overlay .theme-version { color: #646970; font-size: 13px; font-weight: 400; float: none; display: inline-block; margin-left: 10px; } .theme-overlay .theme-author { margin: 15px 0 25px; color: #646970; font-size: 16px; font-weight: 400; line-height: inherit; } .theme-overlay .toggle-auto-update { /* Better align spin icon and text. */ display: inline-flex; align-items: center; /* Prevents content after the auto-update toggler from jumping down and up. */ min-height: 20px; /* Same height as the spinning dashicon. */ vertical-align: top; } .theme-overlay .theme-autoupdate .toggle-auto-update { text-decoration: none; } .theme-overlay .theme-autoupdate .toggle-auto-update .label { text-decoration: underline; } .theme-overlay .theme-description { color: #50575e; font-size: 15px; font-weight: 400; line-height: 1.5; margin: 30px 0 0; } .theme-overlay .theme-tags { border-top: 3px solid #f0f0f1; color: #646970; font-size: 13px; font-weight: 400; margin: 30px 0 0; padding-top: 20px; } .theme-overlay .theme-tags span { color: #3c434a; font-weight: 600; margin-right: 5px; } .theme-overlay .parent-theme { background: #fff; border: 1px solid #f0f0f1; border-left: 4px solid #72aee6; font-size: 14px; font-weight: 400; margin-top: 30px; padding: 10px 10px 10px 20px; } .theme-overlay .parent-theme strong { font-weight: 600; } /** * Single Theme Mode * Displays detailed view inline when a user has no switch capabilities */ .single-theme .theme-overlay .theme-backdrop, .single-theme .theme-overlay .theme-header, .single-theme .theme { display: none; } .single-theme .theme-overlay .theme-wrap { clear: both; min-height: 330px; position: relative; left: auto; right: auto; top: auto; bottom: auto; z-index: 10; } .single-theme .theme-overlay .theme-about { padding: 30px 30px 70px; position: static; } .single-theme .theme-overlay .theme-actions { position: absolute; } /** * Basic Responsive structure... * * Shuffles theme columns around based on screen width */ @media only screen and (min-width: 2000px) { #wpwrap .theme-browser .theme { width: 17.6%; margin: 0 3% 3% 0; } #wpwrap .theme-browser .theme:nth-child(3n), #wpwrap .theme-browser .theme:nth-child(4n) { margin-right: 3%; } #wpwrap .theme-browser .theme:nth-child(5n) { margin-right: 0; } } @media only screen and (min-width: 1680px) { .theme-overlay .theme-wrap { width: 1450px; margin: 0 auto; } } /* Maximum screenshot width reaches 440px */ @media only screen and (min-width: 1640px) { .theme-browser .theme { width: 22.7%; margin: 0 3% 3% 0; } .theme-browser .theme .theme-screenshot:after { padding-top: 75%; /* using a 4/3 aspect ratio */ } .theme-browser .theme:nth-child(3n) { margin-right: 3%; } .theme-browser .theme:nth-child(4n) { margin-right: 0; } } /* Maximum screenshot width reaches 440px */ @media only screen and (max-width: 1120px) { .theme-browser .theme { width: 47.5%; margin-right: 0; } .theme-browser .theme:nth-child(even) { margin-right: 0; } .theme-browser .theme:nth-child(odd) { margin-right: 5%; } } /* Admin menu is folded */ @media only screen and (max-width: 960px) { .theme-overlay .theme-wrap { left: 65px; } } @media only screen and (max-width: 782px) { body.folded .theme-overlay .theme-wrap, .theme-overlay .theme-wrap { top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ right: 0; bottom: 0; left: 0; padding: 70px 20px 20px; border: none; z-index: 100000; /* should overlap #wpadminbar. */ position: fixed; } .theme-browser .theme.active .theme-name span { /* Hide the "Active: " label on smaller screens. */ display: none; } .theme-overlay .theme-screenshots { width: 40%; } .theme-overlay .theme-info { width: 50%; } .single-theme .theme-wrap { padding: 10px; } .theme-browser .theme .theme-actions { padding: 5px 10px 4px; } .theme-overlay.small-screenshot .theme-screenshots { position: static; float: none; max-width: 302px; } .theme-overlay.small-screenshot .theme-info { margin-left: 0; width: auto; } .theme:not(.active):hover .theme-actions, .theme:not(.active):focus .theme-actions, .theme:hover .more-details, .theme.focus .more-details { display: none; } .theme-browser.rendered .theme:hover .theme-screenshot img, .theme-browser.rendered .theme.focus .theme-screenshot img { opacity: 1.0; } } @media only screen and (max-width: 480px) { .theme-browser .theme { width: 100%; margin-right: 0; } .theme-browser .theme:nth-child(2n), .theme-browser .theme:nth-child(3n) { margin-right: 0; } .theme-overlay .theme-about { bottom: 105px; } .theme-overlay .theme-actions { padding-left: 4%; padding-right: 4%; } .theme-install-php .wp-filter .filter-count { margin-top: 10px; } } @media only screen and (max-width: 650px) { .theme-overlay .theme-description { margin-left: 0; } .theme-overlay .theme-actions .delete-theme { position: relative; right: auto; bottom: auto; } .theme-overlay .theme-actions .inactive-theme { display: inline; } .theme-overlay .theme-screenshots { width: 100%; float: none; margin: 0; } .theme-overlay .theme-info { width: 100%; } .theme-overlay .theme-author { margin: 5px 0 15px; } .theme-overlay .current-label { margin-top: 10px; font-size: 13px; } .themes-php .wp-filter-search { width: 100%; } .theme-install-php .wp-filter p.search-box { display: grid; row-gap: .5rem; } .theme-browser .theme.add-new-theme span:after { font: normal 60px/90px dashicons; width: 80px; height: 80px; top: 30%; left: 50%; text-indent: 0; margin-left: -40px; } .single-theme .theme-wrap { margin: 0 -12px 0 -10px; padding: 10px; } .single-theme .theme-overlay .theme-about { padding: 10px; overflow: visible; } .single-theme .current-label { display: none; } .single-theme .theme-overlay .theme-actions { position: static; } } .broken-themes { clear: both; } .broken-themes table { text-align: left; width: 50%; border-spacing: 3px; padding: 3px; } /*------------------------------------------------------------------------------ 16.2 - Install Themes ------------------------------------------------------------------------------*/ .update-php .wrap { max-width: 40rem; } /* Already installed theme */ .theme-browser .theme .theme-installed { background: #2271b1; } .theme-browser .theme .notice-success p:before { color: #68de7c; content: "\f147"; content: "\f147" / ''; display: inline-block; font: normal 20px/1 'dashicons'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; } .theme-install.updated-message:before { content: ""; } .theme-install-php .wp-filter { padding-left: 20px; } /* Override column gap adjustment in media library. */ @media only screen and (max-width: 1000px) { .theme-install-php .wp-filter p.search-box { column-gap: .5rem; } } .theme-install-php a.upload, .theme-install-php a.browse-themes { cursor: pointer; } .upload-view-toggle .browse, .plugin-install-tab-upload .upload-view-toggle .upload { display: none; } .plugin-install-tab-upload .upload-view-toggle .browse { display: inline; } .upload-theme, .upload-plugin { box-sizing: border-box; display: none; margin: 0; padding: 50px 0; width: 100%; overflow: hidden; position: relative; top: 10px; text-align: center; } .show-upload-view .upload-theme, .show-upload-view .upload-plugin, .show-upload-view .upload-plugin-wrap, .plugin-install-tab-upload .upload-plugin { display: block; } .upload-theme .wp-upload-form, .upload-plugin .wp-upload-form { position: relative; margin: 30px; display: inline-flex; justify-content: space-between; align-items: center; border: 1px solid #c3c4c7; background: #f6f7f7; } .upload-theme .wp-upload-form input[type="file"], .upload-plugin .wp-upload-form input[type="file"] { background: transparent; margin: 0; padding: 30px 0 30px 30px; } .wp-upload-form input[type="submit"].button { margin-right: 30px; } .upload-theme .install-help, .upload-plugin .install-help { color: #50575e; /* #f1f1f1 background */ font-size: 18px; font-style: normal; margin: 0; padding: 0; text-align: center; } p.no-themes, p.no-themes-local { clear: both; color: #646970; font-size: 18px; font-style: normal; margin: 0; padding: 100px 0; text-align: center; display: none; } .no-results p.no-themes { display: block; } .theme-install-php .add-new-theme { display: none !important; } @media only screen and (max-width: 1120px) { .upload-plugin .wp-upload-form, .upload-theme .wp-upload-form { margin: 20px 0; max-width: 100%; } .upload-theme .install-help { font-size: 15px; padding: 20px 0 0; } } .theme-details .theme-rating { line-height: 1.9; } .theme-details .star-rating { display: inline; } .theme-details .num-ratings, .theme-details .no-rating { font-size: 11px; color: #646970; } .theme-details .no-rating { display: block; line-height: 1.9; } .update-from-upload-comparison { border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; text-align: left; margin: 1rem 0 1.4rem; border-collapse: collapse; width: 100%; } .update-from-upload-comparison tr:last-child td { height: 1.4rem; vertical-align: top; } .update-from-upload-comparison tr:first-child th { font-weight: bold; height: 1.4rem; vertical-align: bottom; } .update-from-upload-comparison td.name-label { text-align: right; } .update-from-upload-comparison td, .update-from-upload-comparison th { padding: 0.4rem 1.4rem; } .update-from-upload-comparison td.warning { color: #d63638; } .update-from-upload-actions { margin-top: 1.4rem; } /*------------------------------------------------------------------------------ 16.3 - Custom Header Screen ------------------------------------------------------------------------------*/ .appearance_page_custom-header #headimg { border: 1px solid #dcdcde; overflow: hidden; width: 100%; } .appearance_page_custom-header #upload-form p label { font-size: 12px; } .appearance_page_custom-header .available-headers .default-header { float: left; margin: 0 20px 20px 0; } .appearance_page_custom-header .random-header { clear: both; margin: 0 20px 20px 0; vertical-align: middle; } .appearance_page_custom-header .available-headers label input, .appearance_page_custom-header .random-header label input { margin-right: 10px; } .appearance_page_custom-header .available-headers label img { vertical-align: middle; } /*------------------------------------------------------------------------------ 16.4 - Custom Background Screen ------------------------------------------------------------------------------*/ div#custom-background-image { min-height: 100px; border: 1px solid #dcdcde; } div#custom-background-image img { max-width: 400px; max-height: 300px; } .background-position-control input[type="radio"]:checked ~ .button { background: #f0f0f1; border-color: #8c8f94; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); z-index: 1; } .background-position-control input[type="radio"]:focus ~ .button { border-color: #4f94d4; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 3px rgba(34, 113, 177, 0.8); color: #1d2327; } .background-position-control .background-position-center-icon, .background-position-control .background-position-center-icon:before { display: inline-block; line-height: 1; text-align: center; transition: background-color .1s ease-in; } .background-position-control .background-position-center-icon { height: 20px; margin-top: 13px; vertical-align: top; width: 20px; } .background-position-control .background-position-center-icon:before { background-color: #50575e; border-radius: 50%; content: ""; height: 12px; width: 12px; } .background-position-control .button:hover .background-position-center-icon:before, .background-position-control input[type="radio"]:focus ~ .button .background-position-center-icon:before { background-color: #1d2327; } .background-position-control .button-group { display: block; } .background-position-control .button-group .button { border-radius: 0; box-shadow: none; /* Following properties are overridden by buttons responsive styles (see: wp-includes/css/buttons.css). */ height: 40px !important; line-height: 2.9 !important; margin: 0 -1px 0 0 !important; padding: 0 10px 1px !important; position: relative; } .background-position-control .button-group .button:active, .background-position-control .button-group .button:hover, .background-position-control .button-group .button:focus { z-index: 1; } .background-position-control .button-group:last-child .button { box-shadow: 0 1px 0 #c3c4c7; } .background-position-control .button-group > label { margin: 0 !important; } .background-position-control .button-group:first-child > label:first-child .button { border-radius: 3px 0 0; } .background-position-control .button-group:first-child > label:first-child .dashicons { transform: rotate( 45deg ); } .background-position-control .button-group:first-child > label:last-child .button { border-radius: 0 3px 0 0; } .background-position-control .button-group:first-child > label:last-child .dashicons { transform: rotate( -45deg ); } .background-position-control .button-group:last-child > label:first-child .button { border-radius: 0 0 0 3px; } .background-position-control .button-group:last-child > label:first-child .dashicons { transform: rotate( -45deg ); } .background-position-control .button-group:last-child > label:last-child .button { border-radius: 0 0 3px; } .background-position-control .button-group:last-child > label:last-child .dashicons { transform: rotate( 45deg ); } .background-position-control .button-group + .button-group { margin-top: -1px; } /*------------------------------------------------------------------------------ 23.0 - Full Overlay w/ Sidebar ------------------------------------------------------------------------------*/ body.full-overlay-active { overflow: hidden; /* Hide all the content, the Customizer overlay is then made visible to be the only available content. */ visibility: hidden; } .wp-full-overlay { background: transparent; z-index: 500000; position: fixed; overflow: visible; top: 0; bottom: 0; left: 0; right: 0; height: 100%; min-width: 0; } .wp-full-overlay-sidebar { box-sizing: border-box; position: fixed; min-width: 300px; max-width: 600px; width: 18%; height: 100%; top: 0; bottom: 0; left: 0; padding: 0; margin: 0; z-index: 10; background: #f0f0f1; border-right: none; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { overflow: visible; } .wp-full-overlay.collapsed, .wp-full-overlay.expanded .wp-full-overlay-sidebar { margin-left: 0 !important; } .wp-full-overlay.expanded { margin-left: 300px; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-left: -300px; } @media screen and (min-width: 1667px) { .wp-full-overlay.expanded { margin-left: 18%; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-left: -18%; } } @media screen and (min-width: 3333px) { .wp-full-overlay.expanded { margin-left: 600px; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-left: -600px; } } .wp-full-overlay-sidebar:after { content: ""; display: block; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; z-index: 1000; } .wp-full-overlay-main { position: absolute; left: 0; right: 0; top: 0; bottom: 0; height: 100%; } .wp-full-overlay-sidebar .wp-full-overlay-header { position: absolute; left: 0; right: 0; height: 45px; padding: 0 15px; line-height: 3.2; z-index: 10; margin: 0; border-top: none; box-shadow: none; } .wp-full-overlay-sidebar .wp-full-overlay-header a.back { margin-top: 3px; /* Vertically center 40px button in 45px header */ } .wp-full-overlay-sidebar .wp-full-overlay-footer { bottom: 0; border-bottom: none; border-top: none; box-shadow: none; } .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { position: absolute; top: 45px; bottom: 45px; left: 0; right: 0; overflow: auto; } /* Close & Navigation Links */ .theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header { padding: 0; } .theme-install-overlay .close-full-overlay, .theme-install-overlay .previous-theme, .theme-install-overlay .next-theme { display: block; position: relative; float: left; width: 45px; height: 45px; background: #f0f0f1; border-right: 1px solid #dcdcde; color: #3c434a; cursor: pointer; text-decoration: none; transition: color .1s ease-in-out, background .1s ease-in-out; } .theme-install-overlay .close-full-overlay:hover, .theme-install-overlay .close-full-overlay:focus, .theme-install-overlay .previous-theme:hover, .theme-install-overlay .previous-theme:focus, .theme-install-overlay .next-theme:hover, .theme-install-overlay .next-theme:focus { background: #dcdcde; border-color: #c3c4c7; color: #000; outline: none; box-shadow: none; } .theme-install-overlay .close-full-overlay:before { font: normal 22px/1 dashicons; content: "\f335"; content: "\f335" / ''; position: relative; top: 7px; left: 13px; } .theme-install-overlay .previous-theme:before { font: normal 20px/1 dashicons; content: "\f341"; content: "\f341" / ''; position: relative; top: 6px; left: 14px; } .theme-install-overlay .next-theme:before { font: normal 20px/1 dashicons; content: "\f345"; content: "\f345" / ''; position: relative; top: 6px; left: 13px; } .theme-install-overlay .previous-theme.disabled, .theme-install-overlay .next-theme.disabled, .theme-install-overlay .previous-theme.disabled:hover, .theme-install-overlay .previous-theme.disabled:focus, .theme-install-overlay .next-theme.disabled:hover, .theme-install-overlay .next-theme.disabled:focus { color: #c3c4c7; background: #f0f0f1; cursor: default; pointer-events: none; } .theme-install-overlay .close-full-overlay, .theme-install-overlay .previous-theme, .theme-install-overlay .next-theme { border-left: 0; border-top: 0; border-bottom: 0; } .theme-install-overlay .close-full-overlay:before, .theme-install-overlay .previous-theme:before, .theme-install-overlay .next-theme:before { top: 2px; left: 0; } /* Collapse Button */ .wp-core-ui .wp-full-overlay .collapse-sidebar { position: fixed; bottom: 0; left: 0; padding: 9px 0 9px 10px; height: 45px; color: #646970; outline: 0; line-height: 1; background-color: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #2271b1; } .wp-full-overlay .collapse-sidebar-arrow, .wp-full-overlay .collapse-sidebar-label { display: inline-block; vertical-align: middle; line-height: 1.6; } .wp-full-overlay .collapse-sidebar-arrow { width: 20px; height: 20px; margin: 0 2px; /* avoid the focus box-shadow to be cut-off */ border-radius: 50%; overflow: hidden; } .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wp-full-overlay .collapse-sidebar-label { margin-left: 3px; } .wp-full-overlay.collapsed .collapse-sidebar-label { display: none; } .wp-full-overlay .collapse-sidebar-arrow:before { display: block; content: "\f148"; content: "\f148" / ''; background: #f0f0f1; font: normal 20px/1 dashicons; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar { padding: 9px 10px; } /* rtl:ignore */ .wp-full-overlay.collapsed .collapse-sidebar-arrow:before, .rtl .wp-full-overlay .collapse-sidebar-arrow:before { transform: rotate(180.001deg); /* Firefox: promoting to its own layer to trigger anti-aliasing */ } .rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before { transform: none; } /* Animations */ @media (prefers-reduced-motion: no-preference) { .wp-full-overlay, .wp-full-overlay-sidebar, .wp-full-overlay .collapse-sidebar, .wp-full-overlay-main { transition-property: left, right, top, bottom, width, margin; transition-duration: 0.2s; } } /* Device/preview size toggles */ .wp-full-overlay { background: #1d2327; } .wp-full-overlay-main { background-color: #f0f0f1; } .expanded .wp-full-overlay-footer { position: fixed; bottom: 0; left: 0; min-width: 299px; max-width: 599px; width: 18%; width: calc( 18% - 1px ); height: 45px; border-top: 1px solid #dcdcde; background: #f0f0f1; } .wp-full-overlay-footer .devices-wrapper { float: right; } .wp-full-overlay-footer .devices { position: relative; background: #f0f0f1; box-shadow: -20px 0 10px -5px #f0f0f1; } .wp-full-overlay-footer .devices button { cursor: pointer; background: transparent; border: none; height: 45px; padding: 0 3px; margin: 0 0 0 -4px; box-shadow: none; border-top: 1px solid transparent; border-bottom: 4px solid transparent; transition: .15s color ease-in-out, .15s background-color ease-in-out, .15s border-color ease-in-out; } .wp-full-overlay-footer .devices button:focus { box-shadow: none; outline: none; } .wp-full-overlay-footer .devices button:before { display: inline-block; -webkit-font-smoothing: antialiased; font: normal 20px/30px "dashicons"; vertical-align: top; margin: 3px 0; padding: 4px 8px; color: #646970; } .wp-full-overlay-footer .devices button.active { border-bottom-color: #1d2327; } .wp-full-overlay-footer .devices button:hover, .wp-full-overlay-footer .devices button:focus { background-color: #fff; } .wp-full-overlay-footer .devices button:focus, .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #2271b1; } .wp-full-overlay-footer .devices button.active:before { color: #1d2327; } .wp-full-overlay-footer .devices button:hover:before, .wp-full-overlay-footer .devices button:focus:before { color: #2271b1; } .wp-full-overlay-footer .devices .preview-desktop:before { content: "\f472"; content: "\f472" / ''; } .wp-full-overlay-footer .devices .preview-tablet:before { content: "\f471"; content: "\f471" / ''; } .wp-full-overlay-footer .devices .preview-mobile:before { content: "\f470"; content: "\f470" / ''; } @media screen and (max-width: 1024px) { .wp-full-overlay-footer .devices { display: none; } } .collapsed .wp-full-overlay-footer .devices button:before { display: none; } .preview-mobile .wp-full-overlay-main { margin: auto 0 auto -160px; width: 320px; height: 480px; max-height: 100%; max-width: 100%; left: 50%; } .preview-tablet .wp-full-overlay-main { margin: auto 0 auto -360px; width: 720px; /* Size is loosely based on a typical "tablet" device size. Intentionally ambiguous - this does not represent any particular device precisely. */ height: 1080px; max-height: 100%; max-width: 100%; left: 50%; } /*------------------------------------------------------------------------------ 24.0 - Customize Loader ------------------------------------------------------------------------------*/ .no-customize-support .hide-if-no-customize, .customize-support .hide-if-customize, .no-customize-support.wp-core-ui .hide-if-no-customize, .no-customize-support .wp-core-ui .hide-if-no-customize, .customize-support.wp-core-ui .hide-if-customize, .customize-support .wp-core-ui .hide-if-customize { display: none; } #customize-container, #customize-controls .notice.notification-overlay { background: #f0f0f1; z-index: 500000; position: fixed; overflow: visible; top: 0; bottom: 0; left: 0; right: 0; height: 100%; } #customize-container { display: none; } /* Make the Customizer and Theme installer overlays the only available content. */ #customize-container, .theme-install-overlay { visibility: visible; } .customize-loading #customize-container iframe { opacity: 0; } #customize-container iframe, .theme-install-overlay iframe { height: 100%; width: 100%; z-index: 20; transition: opacity 0.3s; } #customize-controls { margin-top: 0; } .theme-install-overlay { display: none; } .theme-install-overlay.single-theme { display: block; } .install-theme-info { display: none; padding: 10px 20px 60px; } .single-theme .install-theme-info { padding-top: 15px; } .theme-install-overlay .install-theme-info { display: block; } .install-theme-info .theme-install { float: right; margin-top: 18px; } .install-theme-info .theme-name { font-size: 16px; line-height: 1.5; margin-bottom: 0; margin-top: 0; } .install-theme-info .theme-screenshot { margin: 15px 0; width: 258px; border: 1px solid #c3c4c7; position: relative; overflow: hidden; } .install-theme-info .theme-screenshot > img { width: 100%; height: auto; position: absolute; left: 0; top: 0; } .install-theme-info .theme-screenshot:after { content: ""; display: block; padding-top: 66.66666666%; } .install-theme-info .theme-details { overflow: hidden; } .theme-details .theme-version { margin: 15px 0; } .theme-details .theme-description { float: left; color: #646970; line-height: 1.6; max-width: 100%; } .theme-install-overlay .wp-full-overlay-header .button { float: right; margin: 7px 10px 0 0; /* Vertically center 32px button in 45px header */ } .theme-install-overlay .wp-full-overlay-sidebar { background: #f0f0f1; border-right: 1px solid #dcdcde; } .theme-install-overlay .wp-full-overlay-sidebar-content { background: #fff; border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; } .theme-install-overlay .wp-full-overlay-main { position: absolute; z-index: 0; background-color: #f0f0f1; } .customize-loading #customize-container { background-color: #f0f0f1; } #customize-preview.wp-full-overlay-main:before, .customize-loading #customize-container:before, #customize-controls .notice.notification-overlay.notification-loading:before, .theme-install-overlay .wp-full-overlay-main:before { content: ""; display: block; width: 20px; height: 20px; position: absolute; left: 50%; top: 50%; z-index: -1; margin: -10px 0 0 -10px; transform: translateZ(0); background: transparent url(../images/spinner.gif) no-repeat center center; background-size: 20px 20px; } #customize-preview.wp-full-overlay-main.iframe-ready:before, .theme-install-overlay.iframe-ready .wp-full-overlay-main:before { background-image: none; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .wp-full-overlay .collapse-sidebar-arrow { background-image: url(../images/arrows-2x.png); background-size: 15px 123px; } #customize-preview.wp-full-overlay-main:before, .customize-loading #customize-container:before, #customize-controls .notice.notification-overlay.notification-loading:before, .theme-install-overlay .wp-full-overlay-main:before { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 782px) { .available-theme .action-links .delete-theme { float: none; margin: 0; padding: 0; clear: both; } .available-theme .action-links .delete-theme a { padding: 0; } .broken-themes table { width: 100%; } .theme-install-overlay .wp-full-overlay-header .button { font-size: 13px; } .theme-browser .theme .theme-actions .button { margin-bottom: 0; } .theme-browser .theme.active .theme-actions, .theme-browser .theme .theme-actions { padding-top: 4px; padding-bottom: 4px; } .upload-plugin .wp-upload-form, .upload-theme .wp-upload-form { width: 100%; box-sizing: border-box; } .upload-plugin .wp-upload-form input[type=file], .upload-theme .wp-upload-form input[type=file] { padding: 30px 0 30px 30px; width: 100%; } } css/login-rtl.min.css000064400000014762152213653150010554 0ustar00/*! This file is auto-generated */ body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;min-width:0;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:var(--wp-admin-theme-color-darker-10);transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:var(--wp-admin-theme-color-darker-20)}a:focus{color:#043959;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}p{line-height:1.5}.login .message,.login .notice,.login .success{border-right:4px solid #3858e9;padding:8px 12px;margin-top:0;margin-right:0;margin-bottom:20px;background-color:#fff;word-wrap:break-word}.login .message p,.login .notice p,.login .success p{font-size:13px;line-height:1.54;margin:.5em 0}.login .success{border-right-color:#4ab866;background-color:#eff9f1}.login .notice-error{border-right-color:#cc1818;background-color:#fcf0f0}.login .login-error-list{list-style:none}.login .login-error-list li+li{margin-top:4px}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:normal;width:2.5rem;height:2.5rem;min-width:40px;min-height:40px;margin:0;padding:5px 9px;position:absolute;right:0;top:0}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{width:1.25rem;height:1.25rem}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin:24px 0;padding:26px 24px;font-weight:400;overflow:hidden;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 3px rgba(0,0,0,.04)}.login form.shake{animation:shake .2s cubic-bezier(.19,.49,.38,.79) both;animation-iteration-count:3;transform:translateX(0)}@keyframes shake{25%{transform:translateX(20px)}75%{transform:translateX(-20px)}100%{transform:translateX(0)}}@media (prefers-reduced-motion:reduce){.login form.shake{animation:none;transform:none}}.login-action-confirm_admin_email #login{width:60vw;max-width:650px;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{box-sizing:border-box;margin-top:0;padding-right:4vw;padding-left:4vw;width:100vw}}.login form .forgetmenot{font-weight:400;float:right;margin-bottom:0}.login .button-primary{float:left}.login .reset-pass-submit{display:flex;flex-flow:row wrap;justify-content:space-between}.login .reset-pass-submit .button{display:inline-block;float:none;margin-bottom:6px}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:right}.login form p.admin-email__details{margin:1.1em 0}.login .admin-email__heading{border-bottom:1px #f0f0f1 solid;color:#50575e;font-weight:400;padding-bottom:.5em;text-align:right}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-right:.25em;margin-left:.25em}#login form p{margin-bottom:0}#login #reg_passmail,#login form .indicator-hint{margin-bottom:16px}#login form p.submit{margin:0;padding:0}.login label{font-size:14px;line-height:1.5;display:inline-block;margin-bottom:3px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-gray.png?ver=20260303);background-image:none,url(../images/wordpress-logo-gray.svg?ver=20260303);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 24px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:5% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0;word-wrap:break-word}.login #backtoblog a,.login #nav a{text-decoration:none;color:#50575e}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:var(--wp-admin-theme-color-darker-20)}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#043959}.login .privacy-policy-page-link{text-align:center;width:100%;margin:3em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;line-height:1.33333333;width:100%;border-width:.0625rem;padding:.1875rem .3125rem;margin:0 0 16px 6px;min-height:40px;max-height:none}.login input.password-input{font-family:Consolas,Monaco,monospace}.js.login input.password-input{padding-right:2.5rem}.js.login-action-resetpass input[type=password],.js.login-action-resetpass input[type=text],.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 0 16px 5px;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}input::-ms-reveal{display:none}#language-switcher{padding:0;overflow:visible;background:0 0;border:none;box-shadow:none}#language-switcher select{margin-left:.25em}.language-switcher{margin:0 auto;padding:0 0 24px;text-align:center}.language-switcher label{margin-left:.25em}.language-switcher label .dashicons{width:auto;height:auto}.login .language-switcher .button{margin-bottom:0}@media screen and (max-height:550px){#login{padding:20px 0}#language-switcher{margin-top:0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{width:1rem;height:1rem}.interim-login input[type=checkbox]:checked:before{width:1.3125rem;height:1.3125rem;margin:-.1875rem -.25rem 0 0}#language-switcher label,#language-switcher select{margin-left:0}}@media screen and (max-width:400px){.login .language-switcher .button{display:block;margin:5px auto 0}}css/login-rtl.css000064400000020143152213653150007760 0ustar00/*! This file is auto-generated */ html, body { height: 100%; margin: 0; padding: 0; } body { background: #f0f0f1; min-width: 0; color: #3c434a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; } a { color: var(--wp-admin-theme-color-darker-10); transition-property: border, background, color; transition-duration: .05s; transition-timing-function: ease-in-out; } a { outline: 0; } a:hover, a:active { color: var(--wp-admin-theme-color-darker-20); } a:focus { color: #043959; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } p { line-height: 1.5; } .login .message, .login .notice, .login .success { border-right: 4px solid #3858e9; padding: 8px 12px; margin-top: 0; margin-right: 0; margin-bottom: 20px; background-color: #fff; word-wrap: break-word; } .login .message p, .login .notice p, .login .success p { font-size: 13px; line-height: 1.54; margin: 0.5em 0; } .login .success { border-right-color: #4ab866; background-color: #eff9f1; } /* Match border color from common.css */ .login .notice-error { border-right-color: #cc1818; background-color: #fcf0f0; } .login .login-error-list { list-style: none; } .login .login-error-list li + li { margin-top: 4px; } #loginform p.submit, .login-action-lostpassword p.submit { border: none; margin: -10px 0 20px; /* May want to revisit this */ } .login * { margin: 0; padding: 0; } .login .input::-ms-clear { display: none; } .login .pw-weak { margin-bottom: 15px; } /* rtl:ignore */ .login .button.wp-hide-pw { background: transparent; border: 1px solid transparent; box-shadow: none; font-size: 14px; line-height: normal; width: 2.5rem; height: 2.5rem; min-width: 40px; min-height: 40px; margin: 0; padding: 5px 9px; position: absolute; right: 0; top: 0; } .login .button.wp-hide-pw:hover { background: transparent; } .login .button.wp-hide-pw:focus { background: transparent; border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 1px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .login .button.wp-hide-pw:active { background: transparent; box-shadow: none; transform: none; } .login .button.wp-hide-pw .dashicons { width: 1.25rem; height: 1.25rem; } .login .wp-pwd { position: relative; } .no-js .hide-if-no-js { display: none; } .login form { margin: 24px 0; padding: 26px 24px; font-weight: 400; overflow: hidden; background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); } .login form.shake { animation: shake 0.2s cubic-bezier(.19,.49,.38,.79) both; animation-iteration-count: 3; transform: translateX(0); } @keyframes shake { 25% { transform: translateX(20px); } 75% { transform: translateX(-20px); } 100% { transform: translateX(0); } } @media (prefers-reduced-motion: reduce) { .login form.shake { animation: none; transform: none; } } .login-action-confirm_admin_email #login { width: 60vw; max-width: 650px; margin-top: -2vh; } @media screen and (max-width: 782px) { .login-action-confirm_admin_email #login { box-sizing: border-box; margin-top: 0; padding-right: 4vw; padding-left: 4vw; width: 100vw; } } .login form .forgetmenot { font-weight: 400; float: right; margin-bottom: 0; } .login .button-primary { float: left; } .login .reset-pass-submit { display: flex; flex-flow: row wrap; justify-content: space-between; } .login .reset-pass-submit .button { display: inline-block; float: none; margin-bottom: 6px; } .login .admin-email-confirm-form .submit { text-align: center; } .admin-email__later { text-align: right; } .login form p.admin-email__details { margin: 1.1em 0; } .login .admin-email__heading { border-bottom: 1px #f0f0f1 solid; color: #50575e; font-weight: normal; padding-bottom: 0.5em; text-align: right; } .admin-email__actions div { padding-top: 1.5em; } .login .admin-email__actions .button-primary { float: none; margin-right: 0.25em; margin-left: 0.25em; } #login form p { margin-bottom: 0; } #login form .indicator-hint, #login #reg_passmail { margin-bottom: 16px; } #login form p.submit { margin: 0; padding: 0; } .login label { font-size: 14px; line-height: 1.5; display: inline-block; margin-bottom: 3px; } .login .forgetmenot label, .login .pw-weak label { line-height: 1.5; vertical-align: baseline; } .login h1 { text-align: center; } .login h1 a { background-image: url(../images/w-logo-gray.png?ver=20260303); background-image: none, url(../images/wordpress-logo-gray.svg?ver=20260303); background-size: 84px; background-position: center top; background-repeat: no-repeat; color: #3c434a; height: 84px; font-size: 20px; font-weight: 400; line-height: 1.3; margin: 0 auto 24px; padding: 0; text-decoration: none; width: 84px; text-indent: -9999px; outline: none; overflow: hidden; display: block; } #login { width: 320px; padding: 5% 0 0; margin: auto; } .login #nav, .login #backtoblog { font-size: 13px; padding: 0 24px; } .login #nav { margin: 24px 0 0; } #backtoblog { margin: 16px 0; word-wrap: break-word; } .login #nav a, .login #backtoblog a { text-decoration: none; color: #50575e; } .login #nav a:hover, .login #backtoblog a:hover, .login h1 a:hover { color: var(--wp-admin-theme-color-darker-20); } .login #nav a:focus, .login #backtoblog a:focus, .login h1 a:focus { color: #043959; } .login .privacy-policy-page-link { text-align: center; width: 100%; margin: 3em 0 2em; } .login form .input, .login input[type="text"], .login input[type="password"] { font-size: 24px; line-height: 1.33333333; /* 32px */ width: 100%; border-width: 0.0625rem; padding: 0.1875rem 0.3125rem; /* 3px 5px */ margin: 0 0 16px 6px; min-height: 40px; max-height: none; } .login input.password-input { font-family: Consolas, Monaco, monospace; } /* rtl:ignore */ .js.login input.password-input { padding-right: 2.5rem; } .js.login-action-resetpass input[type="text"], .js.login-action-resetpass input[type="password"], .js.login-action-rp input[type="text"], .js.login-action-rp input[type="password"] { margin-bottom: 0; } .login #pass-strength-result { font-weight: 600; margin: -1px 0 16px 5px; padding: 6px 5px; text-align: center; width: 100%; } body.interim-login { height: auto; } .interim-login #login { padding: 0; margin: 5px auto 20px; } .interim-login.login h1 a { width: auto; } .interim-login #login_error, .interim-login.login .message { margin: 0 0 16px; } .interim-login.login form { margin: 0; } /* Hide visually but not from screen readers */ .screen-reader-text, .screen-reader-text span { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } /* Hide the Edge "reveal password" native button */ input::-ms-reveal { display: none; } #language-switcher { padding: 0; overflow: visible; background: none; border: none; box-shadow: none; } #language-switcher select { margin-left: 0.25em; } .language-switcher { margin: 0 auto; padding: 0 0 24px; text-align: center; } .language-switcher label { margin-left: 0.25em; } .language-switcher label .dashicons { width: auto; height: auto; } .login .language-switcher .button { margin-bottom: 0; } @media screen and (max-height: 550px) { #login { padding: 20px 0; } #language-switcher { margin-top: 0; } } @media screen and (max-width: 782px) { .interim-login input[type=checkbox] { width: 1rem; height: 1rem; } .interim-login input[type=checkbox]:checked:before { width: 1.3125rem; height: 1.3125rem; margin: -0.1875rem -0.25rem 0 0; } #language-switcher label, #language-switcher select { margin-left: 0; } } @media screen and (max-width: 400px) { .login .language-switcher .button { display: block; margin: 5px auto 0; } } css/revisions.css000064400000024740152213653150010101 0ustar00/*------------------------------------------------------------------------------ 11.2 - Post Revisions ------------------------------------------------------------------------------*/ .revisions-control-frame, .revisions-diff-frame { position: relative; } .revisions-diff-frame { top: 10px; } .revisions-controls { padding-top: 40px; z-index: 1; } .revisions-controls input[type="checkbox"] { position: relative; top: -1px; vertical-align: text-bottom; } .revisions.pinned .revisions-controls { position: fixed; top: 0; height: 82px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .revisions-tickmarks { position: relative; margin: 0 auto; height: 0.7em; top: 7px; max-width: 70%; box-sizing: border-box; background-color: #fff; } .revisions-tickmarks > div { position: absolute; height: 100%; border-left: 1px solid #a7aaad; box-sizing: border-box; } .revisions-tickmarks > div:first-child { border-width: 0; } .comparing-two-revisions .revisions-controls { height: 140px; } .comparing-two-revisions.pinned .revisions-controls { height: 124px; } .revisions .diff-error { position: absolute; text-align: center; margin: 0 auto; width: 100%; display: none; } .revisions.diff-error .diff-error { display: block; } .revisions .loading-indicator { position: absolute; vertical-align: middle; opacity: 0; width: 100%; width: calc( 100% - 30px ); top: 50%; top: calc( 50% - 10px ); transition: opacity 0.5s; } body.folded .revisions .loading-indicator { margin-left: -32px; } .revisions .loading-indicator span.spinner { display: block; margin: 0 auto; float: none; } .revisions.loading .loading-indicator { opacity: 1; } .revisions .diff { transition: opacity 0.5s; } .revisions.loading .diff { opacity: 0.5; } .revisions.diff-error .diff { visibility: hidden; } .revisions-meta { margin-top: 20px; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); overflow: hidden; } .revisions.pinned .revisions-meta { box-shadow: none; } .revision-toggle-compare-mode { position: absolute; top: 0; right: 0; } .comparing-two-revisions .revisions-previous, .comparing-two-revisions .revisions-next, .revisions-meta .diff-meta-to strong { display: none; } .revisions-controls .author-card .date { color: #646970; } .revisions-controls .author-card.autosave { color: #d63638; } .revisions-controls .author-card .author-name { font-weight: 600; } .comparing-two-revisions .diff-meta-to strong { display: block; } .revisions.pinned .revisions-buttons { padding: 0 11px; } .revisions-previous, .revisions-next { position: relative; z-index: 1; } .revisions-previous { float: left; } .revisions-next { float: right; } .revisions-controls .wp-slider { max-width: 70%; margin: 0 auto; top: -3px; } .revisions-diff { padding: 15px; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .revisions-diff h3:first-child { margin-top: 0; } /* Revision meta box */ .post-revisions li img, #revisions-meta-restored img { vertical-align: middle; } table.diff { table-layout: fixed; width: 100%; white-space: pre-wrap; } table.diff col.content { width: auto; } table.diff col.content.diffsplit { width: 48%; } table.diff col.diffsplit.middle { width: auto; } table.diff col.ltype { width: 30px; } table.diff tr { background-color: transparent; } table.diff td, table.diff th { font-family: Consolas, Monaco, monospace; font-size: 14px; line-height: 1.57142857; padding: 0.5em 0.5em 0.5em 2em; vertical-align: top; word-wrap: break-word; } table.diff td h1, table.diff td h2, table.diff td h3, table.diff td h4, table.diff td h5, table.diff td h6 { margin: 0; } table.diff .diff-deletedline del, table.diff .diff-addedline ins { text-decoration: none; } table.diff .diff-deletedline { position: relative; background-color: #fcf0f1; } table.diff .diff-deletedline del { background-color: #ffabaf; } table.diff .diff-addedline { position: relative; background-color: #edfaef; } table.diff .diff-deletedline .dashicons, table.diff .diff-addedline .dashicons { position: absolute; top: 0.85714286em; left: 0.5em; width: 1em; height: 1em; font-size: 1em; line-height: 1; } table.diff .diff-addedline .dashicons { /* Compensate the vertically non-centered plus glyph. */ top: 0.92857143em; } table.diff .diff-addedline ins { background-color: #68de7c; } .diff-meta { padding: 5px; clear: both; min-height: 32px; } .diff-title strong { line-height: 2.46153846; min-width: 60px; text-align: right; float: left; margin-right: 5px; } .revisions-controls .author-card .author-info { font-size: 12px; line-height: 1.33333333; } .revisions-controls .author-card .avatar, .revisions-controls .author-card .author-info { float: left; margin-left: 6px; margin-right: 6px; } .revisions-controls .author-card .byline { display: block; font-size: 12px; } .revisions-controls .author-card .avatar { vertical-align: middle; } .diff-meta input.restore-revision { float: right; margin-left: 6px; margin-right: 6px; } .diff-meta-from { display: none; } .comparing-two-revisions .diff-meta-from { display: block; } .revisions-tooltip { position: absolute; bottom: 105px; margin-right: 0; margin-left: -69px; z-index: 0; max-width: 350px; min-width: 130px; padding: 8px 4px; display: none; opacity: 0; } .revisions-tooltip.flipped { margin-left: 0; margin-right: -70px; } .revisions.pinned .revisions-tooltip { display: none !important; } .comparing-two-revisions .revisions-tooltip { bottom: 145px; } .revisions-tooltip-arrow { width: 70px; height: 15px; overflow: hidden; position: absolute; left: 0; margin-left: 35px; bottom: -15px; } .revisions-tooltip.flipped .revisions-tooltip-arrow { margin-left: 0; margin-right: 35px; left: auto; right: 0; } .revisions-tooltip-arrow > span { content: ""; position: absolute; left: 20px; top: -20px; width: 25px; height: 25px; transform: rotate(45deg); } .revisions-tooltip.flipped .revisions-tooltip-arrow > span { left: auto; right: 20px; } .revisions-tooltip, .revisions-tooltip-arrow > span { border: 1px solid #dcdcde; background-color: #fff; } .revisions-tooltip { display: none; } .arrow { width: 70px; height: 16px; overflow: hidden; position: absolute; left: 0; margin-left: -35px; bottom: 90px; z-index: 10000; } .arrow:after { z-index: 9999; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .arrow.top { top: -16px; bottom: auto; } .arrow.left { left: 20%; } .arrow:after { content: ""; position: absolute; left: 20px; top: -20px; width: 25px; height: 25px; transform: rotate(45deg); } .revisions-tooltip, .revisions-tooltip-arrow:after { border-width: 1px; border-style: solid; } div.revisions-controls > .wp-slider > .ui-slider-handle { margin-left: -10px; } .rtl div.revisions-controls > .wp-slider > .ui-slider-handle { margin-right: -10px; } /* jQuery UI Slider */ .wp-slider.ui-slider { position: relative; border: 1px solid #dcdcde; text-align: left; cursor: pointer; } .wp-slider .ui-slider-handle { border-radius: 50%; height: 18px; margin-top: -5px; outline: none; padding: 2px; position: absolute; width: 18px; z-index: 2; touch-action: none; } .wp-slider .ui-slider-handle { background: #f6f7f7; border: 1px solid #c3c4c7; box-shadow: 0 1px 0 #c3c4c7; } .wp-slider .ui-slider-handle:hover, .wp-slider .ui-slider-handle.ui-state-hover { background: #f6f7f7; border-color: #8c8f94; } .wp-slider .ui-slider-handle:active, .wp-slider .ui-slider-handle.ui-state-active { background: #f0f0f1; border-color: #8c8f94; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); transform: translateY(1px); } .wp-slider .ui-slider-handle:focus, .wp-slider .ui-slider-handle.ui-state-focus { background: #f0f0f1; border-color: #8c8f94; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wp-slider .ui-slider-handle:before { background: none; position: absolute; top: 2px; left: 2px; color: #50575e; content: "\f229"; content: "\f229" / ''; font: normal 18px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-slider .ui-slider-handle:hover:before, .wp-slider .ui-slider-handle.ui-state-hover:before { color: #1d2327; } .wp-slider .ui-slider-handle.from-handle:before, .wp-slider .ui-slider-handle.to-handle:before { font-size: 20px !important; margin: -1px 0 0 -1px; } .wp-slider .ui-slider-handle.from-handle:before { content: "\f139"; content: "\f139" / ''; } .wp-slider .ui-slider-handle.to-handle:before { content: "\f141"; content: "\f141" / ''; } .rtl .wp-slider .ui-slider-handle.from-handle:before { content: "\f141"; content: "\f141" / ''; } .rtl .wp-slider .ui-slider-handle.to-handle:before { content: "\f139"; content: "\f139" / ''; right: -1px; } .wp-slider .ui-slider-range { position: absolute; font-size: 0.7em; display: block; border: 0; background-color: transparent; background-image: none; } .wp-slider.ui-slider-horizontal { height: 0.7em; } .wp-slider.ui-slider-horizontal .ui-slider-handle { top: -.25em; margin-left: -.6em; } .wp-slider.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } .wp-slider.ui-slider-horizontal .ui-slider-range-min { left: 0; } .wp-slider.ui-slider-horizontal .ui-slider-range-max { right: 0; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .revision-tick.completed-false { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 600px) { .revisions-meta .author-card:not(.comparing-two-revisions .author-card) { display: flex; flex-direction: column; width: fit-content; gap: 16px; } .comparing-two-revisions .revisions-meta .restore-revision { margin-top: 16px; } .revisions-controls { padding-top: 0; } .revision-toggle-compare-mode { position: relative; padding: 1rem 0; } } @media screen and (max-width: 782px) { #diff-next-revision, #diff-previous-revision { margin-top: -1em; } .revisions-buttons { overflow: hidden; margin-bottom: 15px; } .revisions-controls, .comparing-two-revisions .revisions-controls { height: fit-content; } .revisions-tooltip { bottom: 155px; z-index: 2; } .comparing-two-revisions .revisions-tooltip { bottom: 200px; } .diff-meta { overflow: hidden; } table.diff { -ms-word-break: break-all; word-break: break-all; word-wrap: break-word; } } css/forms.css000064400000114244152213653150007205 0ustar00/* Include margin and padding in the width calculation of input and textarea. */ input, select, textarea, button { box-sizing: border-box; font-family: inherit; font-size: inherit; font-weight: inherit; } textarea, input { font-size: 14px; } textarea { overflow: auto; padding: 8px 12px; /* inherits font size 14px */ line-height: 1.42857143; /* 20px */ resize: vertical; } input, select { margin: 0 1px; } textarea.code { padding: 8px 12px; } input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea { box-shadow: 0 0 0 transparent; border-radius: 2px; border: 1px solid #949494; background-color: #fff; color: #1e1e1e; } input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] { padding: 0 12px; /* inherits font size 14px */ min-height: 40px; } select { padding: 0 24px 0 12px; /* inherits font size 14px */ line-height: 2.71428571; /* 38px for 40px min-height */ min-height: 40px; } ::-webkit-datetime-edit { /* inherits font size 14px */ line-height: 1.85714286; /* 26px */ } input[type="text"]:focus, input[type="password"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /* Checkbox and radio use outset focus style */ input[type="checkbox"]:focus, input[type="radio"]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /* rtl:ignore */ .ltr, input[type="password"], input[type="email"], input[type="url"] { direction: ltr; } input[type="checkbox"], input[type="radio"] { border: 1px solid #1e1e1e; border-radius: 2px; background: #fff; color: #1e1e1e; clear: none; cursor: pointer; display: inline-block; line-height: 0; height: 1rem; margin: -0.25rem 0.25rem 0 0; outline: 0; padding: 0 !important; text-align: center; vertical-align: middle; width: 1rem; min-width: 1rem; -webkit-appearance: none; box-shadow: none; transition: .05s border-color ease-in-out; } input[type="radio"]:checked + label:before { color: #949494; } .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { color: #135e96; } td > input[type="checkbox"], .wp-admin p input[type="checkbox"], .wp-admin p input[type="radio"] { margin-top: 0; } .wp-admin p label input[type="checkbox"] { margin-top: -4px; } .wp-admin p label input[type="radio"] { margin-top: -2px; } input[type="radio"] { display: inline-flex; border-radius: 50%; margin-right: 0.25rem; align-items: center; justify-content: center; } input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { float: left; display: inline-block; vertical-align: middle; width: 1rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } input[type="checkbox"]:checked::before { /* Use the "Yes" SVG Dashicon */ content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") / ''; margin: -0.1875rem 0 0 -0.25rem; height: 1.3125rem; width: 1.3125rem; } input[type="checkbox"]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type="radio"]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type="radio"]:checked::before { content: ""; border-radius: 50%; width: 0.5rem; /* 8px */ height: 0.5rem; /* 8px */ margin: auto; background-color: #fff; /* Only visible in Windows High Contrast mode */ outline: 4px solid transparent; } @-moz-document url-prefix() { input[type="checkbox"], input[type="radio"], .form-table input.tog { margin-bottom: -1px; } } /* Search */ input[type="search"] { -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration { display: none; } input[type="search"]::-webkit-search-cancel-button { cursor: pointer; } .wp-admin input[type="file"] { padding: 3px 0; cursor: pointer; } input.readonly, input[readonly], textarea.readonly, textarea[readonly] { background-color: #f0f0f0; } ::-webkit-input-placeholder { color: #757575; } ::-moz-placeholder { color: #757575; } .form-invalid .form-required, .form-invalid .form-required:focus, .form-invalid.form-required input, .form-invalid.form-required input:focus, .form-invalid.form-required select, .form-invalid.form-required select:focus { border-color: #d63638 !important; box-shadow: 0 0 2px rgba(214, 54, 56, 0.8); } .form-table .form-required.form-invalid td:after { content: "\f534"; content: "\f534" / ''; font: normal 20px/1 dashicons; color: #d63638; margin-left: -25px; vertical-align: middle; } /* Adjust error indicator for password layout */ .form-table .form-required.user-pass1-wrap.form-invalid td:after { content: ""; } .form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { content: "\f534"; content: "\f534" / ''; font: normal 20px/1 dashicons; color: #d63638; margin: 0 6px 0 -29px; vertical-align: middle; } .form-input-tip { color: #646970; } input:disabled, input.disabled, select:disabled, select.disabled, textarea:disabled, textarea.disabled { background: #f0f0f0; border-color: #cccccc; box-shadow: none; color: #949494; } input[type="file"]:disabled, input[type="file"].disabled, input[type="file"][aria-disabled="true"], input[type="range"]:disabled, input[type="range"].disabled, input[type="range"][aria-disabled="true"] { background: none; box-shadow: none; cursor: default; } input[type="checkbox"]:disabled, input[type="checkbox"].disabled, input[type="checkbox"][aria-disabled="true"], input[type="radio"]:disabled, input[type="radio"].disabled, input[type="radio"][aria-disabled="true"], input[type="checkbox"]:disabled:checked:before, input[type="checkbox"].disabled:checked:before, input[type="radio"]:disabled:checked:before, input[type="radio"].disabled:checked:before { opacity: 0.7; cursor: default; } /*------------------------------------------------------------------------------ 2.0 - Forms ------------------------------------------------------------------------------*/ /* Select styles are based on the default button in buttons.css */ .wp-core-ui select { font-size: 14px; line-height: 2.71428571; /* 38px for 40px min-height */ color: #1e1e1e; border-color: #949494; box-shadow: none; border-radius: 2px; padding: 0 24px 0 12px; min-height: 40px; max-width: 25rem; -webkit-appearance: none; /* The SVG is arrow-down-alt2 from Dashicons. */ background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%231e1e1e%22%2F%3E%3C%2Fsvg%3E') no-repeat right 8px top 55%; background-size: 16px 16px; cursor: pointer; vertical-align: middle; } .wp-core-ui select:hover { color: #1e1e1e; border-color: #1e1e1e; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); color: #1e1e1e; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-core-ui select:active { border-color: #949494; box-shadow: none; } .wp-core-ui select.disabled, .wp-core-ui select:disabled { color: #a7aaad; border-color: #dcdcde; background-color: #f6f7f7; /* The SVG is arrow-down-alt2 from Dashicons. */ background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E'); box-shadow: none; text-shadow: 0 1px 0 #fff; cursor: default; transform: none; } .wp-core-ui select[aria-disabled="true"] { cursor: default; } /* Reset Firefox inner outline that appears on :focus. */ /* This ruleset overrides the color change on :focus thus needs to be after select:focus. */ .wp-core-ui select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #0a4b78; } /* Remove background focus style from IE11 while keeping focus style available on option elements. */ .wp-core-ui select::-ms-value { background: transparent; color: #50575e; } .wp-core-ui select:hover::-ms-value { color: #1e1e1e; } .wp-core-ui select:focus::-ms-value { color: #0a4b78; } .wp-core-ui select.disabled::-ms-value, .wp-core-ui select:disabled::-ms-value { color: #a7aaad; } /* Hide the native down arrow for select element on IE. */ .wp-core-ui select::-ms-expand { display: none; } .wp-admin .button-cancel { display: inline-block; min-height: 28px; padding: 0 5px; line-height: 2; } .meta-box-sortables select { max-width: 100%; } .meta-box-sortables input { vertical-align: middle; } .misc-pub-post-status select { margin-top: 0; } .wp-core-ui select[multiple] { height: auto; padding-right: 8px; background: #fff; } .submit { padding: 1.5em 0; margin: 5px 0; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border: none; } form p.submit a.cancel:hover { text-decoration: none; } p.submit { text-align: left; max-width: 100%; margin-top: 20px; padding-top: 10px; } .textright p.submit { border: none; text-align: right; } table.form-table + p.submit, table.form-table + input + p.submit, table.form-table + input + input + p.submit { border-top: none; padding-top: 0; } #minor-publishing-actions input, #major-publishing-actions input, #minor-publishing-actions .preview { text-align: center; } textarea.all-options, input.all-options { width: 250px; } input.large-text, textarea.large-text { width: 99%; } .regular-text { width: 25em; } input.small-text { width: 50px; padding: 0 8px; } label input.small-text { margin-top: -4px; } input[type="number"].small-text { width: 65px; padding-right: 4px; } input.tiny-text { width: 35px; } input[type="number"].tiny-text { width: 45px; padding-right: 0; } #doaction, #doaction2, #post-query-submit { margin: 0 8px 0 0; min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } /* @since 5.7.0 secondary bulk action controls require JS. */ .no-js label[for="bulk-action-selector-bottom"], .no-js select#bulk-action-selector-bottom, .no-js input#doaction2, .no-js label[for="new_role2"], .no-js select#new_role2, .no-js input#changeit2 { display: none; } .wp-core-ui .tablenav input[type="text"], .wp-core-ui .tablenav input[type="password"], .wp-core-ui .tablenav input[type="date"], .wp-core-ui .tablenav input[type="datetime"], .wp-core-ui .tablenav input[type="datetime-local"], .wp-core-ui .tablenav input[type="email"], .wp-core-ui .tablenav input[type="month"], .wp-core-ui .tablenav input[type="number"], .wp-core-ui .tablenav input[type="search"], .wp-core-ui .tablenav input[type="tel"], .wp-core-ui .tablenav input[type="time"], .wp-core-ui .tablenav input[type="url"], .wp-core-ui .tablenav input[type="week"], .wp-core-ui .tablenav select { padding: 0 12px; /* inherits font size 14px */ line-height: 2.14285714; /* 30px for 32px height with 14px font */ min-height: 32px; } .wp-core-ui .tablenav select { float: left; margin-right: 6px; max-width: 12.5rem; padding: 0 24px 0 8px; } .wp-core-ui .tablenav .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } #timezone_string option { margin-left: 1em; } .wp-core-ui .button.wp-hide-pw > .dashicons, .wp-core-ui .button.wp-cancel-pw > .dashicons { width: 1.25rem; height: 1.25rem; font-size: 20px; line-height: 1; vertical-align: middle; } .button.wp-hide-pw.user-new-password-toggle { display: inline-flex; align-items: center; column-gap: 4px; } .wp-cancel-pw .dashicons-no { display: none; } label, #your-profile label + a { vertical-align: middle; } fieldset label, #your-profile label + a { vertical-align: middle; } .options-media-php [for*="_size_"] { min-width: 10em; vertical-align: baseline; } .options-media-php .small-text[name*="_size_"] { margin: 0 0 1em; } .wp-generate-pw { margin-top: 1em; position: relative; } .wp-pwd button { height: min-content; } .wp-pwd { margin-top: 1em; position: relative; } .mailserver-pass-wrap .wp-pwd { display: inline-block; margin-top: 0; } /* rtl:ignore */ #mailserver_pass { padding-right: 2.5rem; } /* rtl:ignore */ .mailserver-pass-wrap .button.wp-hide-pw { background: transparent; border: 1px solid transparent; box-shadow: none; font-size: 14px; line-height: 2; width: 2.5rem; min-width: 40px; margin: 0; padding: 0 9px; position: absolute; right: 0; top: 0; } .mailserver-pass-wrap .button.wp-hide-pw:hover { background: transparent; border-color: transparent; } .mailserver-pass-wrap .button.wp-hide-pw:focus { background: transparent; border-color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .mailserver-pass-wrap .button.wp-hide-pw:active { background: transparent; box-shadow: none; transform: none; } #misc-publishing-actions label { vertical-align: baseline; } #pass-strength-result { background-color: #f0f0f0; border: 1px solid #cccccc; border-radius: 2px; color: #1e1e1e; margin: -1px 1px 5px; padding: 3px 5px; text-align: center; width: 25em; box-sizing: border-box; opacity: 0; } #pass-strength-result.short { background-color: #ffabaf; border-color: #e65054; opacity: 1; } #pass-strength-result.bad { background-color: #facfd2; border-color: #f86368; opacity: 1; } #pass-strength-result.good { background-color: #f5e6ab; border-color: #f0c33c; opacity: 1; } #pass-strength-result.strong { background-color: #b8e6bf; border-color: #68de7c; opacity: 1; } .password-input-wrapper { display: inline-block; } .password-input-wrapper input { font-family: Consolas, Monaco, monospace; } #pass1.short, #pass1-text.short { border-color: #e65054; } #pass1.bad, #pass1-text.bad { border-color: #f86368; } #pass1.good, #pass1-text.good { border-color: #f0c33c; } #pass1.strong, #pass1-text.strong { border-color: #68de7c; } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .pw-weak { display: none; } .indicator-hint { padding-top: 8px; } .wp-pwd [type="text"], .wp-pwd [type="password"] { margin-bottom: 0; /* Same height as the buttons */ min-height: 40px; } /* Hide the Edge "reveal password" native button */ .wp-pwd input::-ms-reveal { display: none; } #pass1-text, .show-password #pass1 { display: none; } #pass1-text::-ms-clear { display: none; } .show-password #pass1-text { display: inline-block; } /* Caps lock warning */ .wp-pwd .caps-warning { display: none; position: relative; background: #fcf9e8; border: 1px solid #f0c33c; color: #1d2327; padding: 6px 10px; top: -8px; } .profile-php .wp-pwd .caps-warning { padding: 3px 5px; top: -4px; border-radius: 2px; } .wp-pwd .caps-icon { display: inline-flex; justify-content: center; width: 20px; height: 20px; margin-right: 5px; vertical-align: middle; } .wp-pwd .caps-warning-text { vertical-align: middle; } /* Caps lock warning */ p.search-box { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; position: relative; float: right; margin: 11px 0; } p.search-box input[type="search"], p.search-box input[type="text"] { min-height: 32px; padding: 0 8px; } p.search-box .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } .network-admin.themes-php p.search-box { clear: left; } .tablenav .search-plugins input[name="s"] { float: left; margin: 0 4px 0 0; } .tagsdiv .newtag { margin: 0; } .js.plugins-php .search-box .wp-filter-search { margin: 0; width: 280px; } input[type="text"].ui-autocomplete-loading, input[type="email"].ui-autocomplete-loading { background-image: url(../images/loading.gif); background-repeat: no-repeat; background-position: right 5px center; visibility: visible; } input.ui-autocomplete-input.open { border-bottom-color: transparent; } ul#add-to-blog-users { margin: 0 0 0 14px; } .ui-autocomplete { padding: 0; margin: 0; list-style: none; position: absolute; z-index: 10000; border: 1px solid #4f94d4; box-shadow: 0 1px 2px rgba(79, 148, 212, 0.8); background-color: #fff; } .ui-autocomplete li { margin-bottom: 0; padding: 4px 10px; white-space: nowrap; text-align: left; cursor: pointer; } /* Colors for the wplink toolbar autocomplete. */ .ui-autocomplete .ui-state-focus { background-color: #dcdcde; } /* Colors for the tags autocomplete. */ .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected="true"] { background-color: var(--wp-admin-theme-color); color: #fff; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /*------------------------------------------------------------------------------ 15.0 - Comments Screen ------------------------------------------------------------------------------*/ .form-table { border-collapse: collapse; margin-top: 0.5em; width: 100%; clear: both; } .form-table, .form-table td, .form-table th, .form-table td p { font-size: 14px; } .form-table td { margin-bottom: 9px; padding: 15px 10px; line-height: 1.3; vertical-align: middle; } .form-table th, .form-wrap label { color: #1d2327; font-weight: 400; text-shadow: none; vertical-align: baseline; } .form-table th { vertical-align: top; text-align: left; padding: 20px 10px 20px 0; width: 200px; line-height: 1.3; font-weight: 600; } .form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */ .form-table .td-full { width: auto; padding: 20px 10px 20px 0; font-weight: 400; } .form-table td p { margin-top: 4px; margin-bottom: 0; } .form-table .date-time-doc { margin-top: 1em; } .form-table p.timezone-info { margin: 1em 0; display: flex; flex-direction: column; } #local-time { margin-top: 0.5em; } .form-table td fieldset label { margin: 0.35em 0 0.5em !important; display: inline-block; } .form-table td fieldset p label { margin-top: 0 !important; } .form-table td fieldset label, .form-table td fieldset p, .form-table td fieldset li { line-height: 1.4; } .form-table .pre { padding: 8px; margin: 0; } table.form-table td .updated { font-size: 13px; } table.form-table td .updated p { font-size: 13px; margin: 0.3em 0; } /*------------------------------------------------------------------------------ 18.0 - Users ------------------------------------------------------------------------------*/ #profile-page .form-table textarea { width: 500px; margin-bottom: 6px; } #profile-page .form-table #rich_editing { margin-right: 5px } #your-profile legend { font-size: 22px; } #display_name { width: 15em; } #adduser .form-field input, #createuser .form-field input { width: 25em; } .color-option { display: inline-block; width: 24%; padding: 5px 15px 15px; box-sizing: border-box; margin-bottom: 3px; } .color-option:hover, .color-option.selected { background: #dcdcde; } .color-palette { display: table; width: 100%; border-spacing: 0; border-collapse: collapse; } .color-palette .color-palette-shade, .color-palette td { display: table-cell; height: 20px; padding: 0; border: none; } .color-option { cursor: pointer; } .create-application-password .form-field { max-width: 25em; } .create-application-password label { font-weight: 600; } .create-application-password p.submit { margin-bottom: 0; padding-bottom: 0; display: block; } #application-passwords-section .notice { margin-top: 20px; margin-bottom: 0; word-wrap: break-word; } .application-password-display input.code { margin-bottom: 6px; width: 100%; max-width: 20em; } .auth-app-card.card { max-width: 768px; } .authorize-application-php .form-wrap p { display: block; } /*------------------------------------------------------------------------------ 19.0 - Tools ------------------------------------------------------------------------------*/ .tool-box .title { margin: 8px 0; font-size: 18px; font-weight: 400; line-height: 24px; } .label-responsive { vertical-align: middle; } #export-filters p { margin: 0 0 1em; } #export-filters p.submit { margin: 7px 0 5px; } /* Card styles */ .card { position: relative; margin-top: 20px; padding: 16px 24px; min-width: 255px; max-width: 520px; border: 1px solid rgb(0, 0, 0, 0.1); border-radius: 8px; background: #ffffff; box-sizing: border-box; } /* Press this styles */ .pressthis h4 { margin: 2em 0 1em; } .pressthis textarea { width: 100%; font-size: 1em; } #pressthis-code-wrap { overflow: auto; } .pressthis-bookmarklet-wrapper { margin: 20px 0 8px; vertical-align: top; position: relative; z-index: 1; } .pressthis-bookmarklet, .pressthis-bookmarklet:hover, .pressthis-bookmarklet:focus, .pressthis-bookmarklet:active { display: inline-block; position: relative; cursor: move; color: #2c3338; background: #dcdcde; border-radius: 5px; border: 1px solid #c3c4c7; font-style: normal; line-height: 16px; font-size: 14px; text-decoration: none; } .pressthis-bookmarklet:active { outline: none; } .pressthis-bookmarklet:after { content: ""; width: 70%; height: 55%; z-index: -1; position: absolute; right: 10px; bottom: 9px; background: transparent; transform: skew(20deg) rotate(6deg); box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6); } .pressthis-bookmarklet:hover:after { transform: skew(20deg) rotate(9deg); box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7); } .pressthis-bookmarklet span { display: inline-block; margin: 0; padding: 0 12px 8px 9px; } .pressthis-bookmarklet span:before { color: #787c82; font: normal 20px/1 dashicons; content: "\f157"; content: "\f157" / ''; position: relative; display: inline-block; top: 4px; margin-right: 4px; } .pressthis-js-toggle { margin-left: 10px; padding: 0; height: auto; vertical-align: top; } /* to override the button class being applied */ .pressthis-js-toggle.button.button { margin-left: 10px; padding: 0; height: auto; vertical-align: top; } .pressthis-js-toggle .dashicons { margin: 5px 8px 6px 7px; color: #50575e; } /*------------------------------------------------------------------------------ 20.0 - Settings ------------------------------------------------------------------------------*/ .timezone-info code { white-space: nowrap; } .defaultavatarpicker .avatar { margin: 2px 0; vertical-align: middle; } .options-general-php .date-time-text { display: inline-block; min-width: 10em; } .options-general-php input.small-text { width: 56px; margin: -2px 0; min-height: 32px; } .options-general-php .spinner { float: none; margin: -3px 3px 0; } .settings-php .language-install-spinner, .options-general-php .language-install-spinner, .user-edit-php .language-install-spinner, .profile-php .language-install-spinner { display: inline-block; float: none; margin: -3px 5px 0; vertical-align: middle; } .form-table.permalink-structure .available-structure-tags { margin-top: 8px; } .form-table.permalink-structure .available-structure-tags ul { display: flex; flex-wrap: wrap; margin: 8px 0 0; } .form-table.permalink-structure .available-structure-tags li { margin: 6px 5px 0 0; } .form-table.permalink-structure .available-structure-tags li:last-child { margin-right: 0; } .form-table.permalink-structure .structure-selection .row { margin-bottom: 16px; } .form-table.permalink-structure .structure-selection .row > div { max-width: calc(100% - 24px); display: inline-flex; flex-direction: column; } .form-table.permalink-structure .structure-selection .row label { font-weight: 600; } .form-table.permalink-structure .structure-selection .row p { margin-top: 0; } .permalink-structure-optional-description code { display: inline-block; } /*------------------------------------------------------------------------------ 21.0 - Network Admin ------------------------------------------------------------------------------*/ .setup-php textarea { max-width: 100%; } .form-field #site-address { max-width: 25em; } .form-field #domain { max-width: 22em; } .form-field #site-title, .form-field #admin-email, .form-field #path, .form-field #blog_registered, .form-field #blog_last_updated { max-width: 25em; } .form-field #path { margin-bottom: 5px; } #search-users, #search-sites { max-width: 60%; } .configuration-rules-label { font-weight: 600; margin-bottom: 4px; } /*------------------------------------------------------------------------------ Credentials check dialog for Install and Updates ------------------------------------------------------------------------------*/ .request-filesystem-credentials-dialog { display: none; /* The customizer uses visibility: hidden on the body for full-overlays. */ visibility: visible; } .request-filesystem-credentials-dialog .notification-dialog { top: 10%; max-height: 85%; } .request-filesystem-credentials-dialog-content { margin: 25px; } #request-filesystem-credentials-title { font-size: 1.3em; margin: 1em 0; } .request-filesystem-credentials-form legend { font-size: 1em; padding: 1.33em 0; font-weight: 600; } .request-filesystem-credentials-form input[type="text"], .request-filesystem-credentials-form input[type="password"] { display: block; } .request-filesystem-credentials-dialog input[type="text"], .request-filesystem-credentials-dialog input[type="password"] { width: 100%; } .request-filesystem-credentials-form .field-title { font-weight: 600; } .request-filesystem-credentials-dialog label[for="hostname"], .request-filesystem-credentials-dialog label[for="public_key"], .request-filesystem-credentials-dialog label[for="private_key"] { display: block; margin-bottom: 1em; } .request-filesystem-credentials-dialog .ftp-username, .request-filesystem-credentials-dialog .ftp-password { float: left; width: 48%; } .request-filesystem-credentials-dialog .ftp-password { margin-left: 4%; } .request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { text-align: right; } .request-filesystem-credentials-dialog label[for="ftp"] { margin-right: 10px; } .request-filesystem-credentials-dialog #auth-keys-desc { margin-bottom: 0; } #request-filesystem-credentials-dialog .button:not(:last-child) { margin-right: 10px; } #request-filesystem-credentials-form .cancel-button { display: none; } #request-filesystem-credentials-dialog .cancel-button { display: inline; } .request-filesystem-credentials-dialog .ftp-username, .request-filesystem-credentials-dialog .ftp-password { float: none; width: auto; } .request-filesystem-credentials-dialog .ftp-username { margin-bottom: 1em; } .request-filesystem-credentials-dialog .ftp-password { margin: 0; } .request-filesystem-credentials-dialog .ftp-password em { color: #757575; } .request-filesystem-credentials-dialog label { display: block; line-height: 1.5; margin-bottom: 1em; } .request-filesystem-credentials-form legend { padding-bottom: 0; } .request-filesystem-credentials-form #ssh-keys legend { font-size: 1.3em; } .request-filesystem-credentials-form .notice { margin: 0 0 20px; clear: both; } /*------------------------------------------------------------------------------ Privacy Policy settings screen ------------------------------------------------------------------------------*/ .tools-privacy-policy-page form { margin-bottom: 1.3em; } .tools-privacy-policy-page input.button { margin: 0 1px 0 6px; } .tools-privacy-policy-page select { margin: 0 1px 0.5em 6px; } .tools-privacy-edit { margin: 1.5em 0; } .tools-privacy-policy-page span { line-height: 2; } .privacy_requests .column-email { width: 40%; } .privacy_requests .column-type { text-align: center; } .privacy_requests thead td:first-child, .privacy_requests tfoot td:first-child { border-left: 4px solid #fff; } .privacy_requests tbody th { border-left: 4px solid #fff; background: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .privacy_requests .row-actions { color: #787c82; } .privacy_requests .row-actions.processing { position: static; } .privacy_requests tbody .has-request-results th { box-shadow: none; } .privacy_requests tbody .request-results th .notice { margin: 0 0 5px; } .privacy_requests tbody td { background: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .privacy_requests tbody .has-request-results td { box-shadow: none; } .privacy_requests .next_steps .button { word-wrap: break-word; white-space: normal; } .privacy_requests .status-request-confirmed th, .privacy_requests .status-request-confirmed td { background-color: #fff; border-left-color: #72aee6; } .privacy_requests .status-request-failed th, .privacy_requests .status-request-failed td { background-color: #f6f7f7; border-left-color: #d63638; } .privacy_requests .export_personal_data_failed a { vertical-align: baseline; } .status-label { font-weight: 600; } .status-label.status-request-pending { font-weight: 400; font-style: italic; color: #646970; } .status-label.status-request-failed { color: #d63638; font-weight: 600; } .privacy_requests .status-date { display: block; font-weight: 400; } .wp-privacy-request-form { clear: both; } .wp-privacy-request-form-field { margin: 1.5em 0; } .wp-privacy-request-form input { margin: 0; } /* =Media Queries -------------------------------------------------------------- */ @media screen and (max-width: 782px) { /* Input Elements */ textarea { -webkit-appearance: none; } input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] { -webkit-appearance: none; padding: 0 12px; min-height: 40px; } ::-webkit-datetime-edit { line-height: 1.875; /* 30px */ } input[type="checkbox"], .widefat th input[type="checkbox"], .widefat thead td input[type="checkbox"], .widefat tfoot td input[type="checkbox"] { -webkit-appearance: none; } .widefat th input[type="checkbox"], .widefat thead td input[type="checkbox"], .widefat tfoot td input[type="checkbox"] { margin-bottom: 8px; } input[type="checkbox"]:checked:before, .widefat th input[type="checkbox"]:before, .widefat thead td input[type="checkbox"]:before, .widefat tfoot td input[type="checkbox"]:before { width: 1.875rem; height: 1.875rem; margin: -0.1875rem -0.3125rem; } input[type="radio"], input[type="checkbox"] { height: 1.5625rem; width: 1.5625rem; } .wp-admin p input[type="checkbox"], .wp-admin p input[type="radio"] { margin-top: -0.1875rem; } input[type="radio"]:checked:before { vertical-align: middle; width: 0.5625rem; height: 0.5625rem; margin: 0.4375rem; line-height: 0.76190476; } .wp-core-ui select, .wp-admin .form-table select { min-height: 40px; font-size: 16px; line-height: 2.5; /* 40px for 16px font */ padding: 0 24px 0 12px; } .wp-admin .button-cancel { margin-bottom: 0; padding: 2px 0; font-size: 14px; vertical-align: middle; } #adduser .form-field input, #createuser .form-field input { width: 100%; } .form-table { box-sizing: border-box; } .form-table th, .form-table td, .label-responsive { display: block; width: auto; vertical-align: middle; } .label-responsive { margin: 0.5em 0; } .export-filters li { margin-bottom: 0; } .form-table .color-palette .color-palette-shade, .form-table .color-palette td { display: table-cell; width: 15px; height: 30px; padding: 0; } .form-table .color-palette { margin-right: 10px; } textarea, input { font-size: 16px; } .form-table td input[type="text"], .form-table td input[type="email"], .form-table td input[type="password"], .form-table td select, .form-table td textarea, .form-table span.description, #profile-page .form-table textarea { width: 100%; display: block; max-width: none; box-sizing: border-box; } .form-table .form-required.form-invalid td:after { float: right; margin: -30px 3px 0 0; } input[type="text"].small-text, input[type="search"].small-text, input[type="password"].small-text, input[type="number"].small-text, input[type="number"].small-text, .form-table input[type="text"].small-text { width: auto; max-width: 4.375em; /* 70px, enough for 4 digits to fit comfortably */ display: inline; padding: 3px 6px; margin: 0 3px; } .form-table .regular-text ~ input[type="text"].small-text { margin-top: 5px; } #pass-strength-result { width: 100%; box-sizing: border-box; padding: 8px; } .profile-php .wp-pwd .caps-warning { padding: 8px; } .password-input-wrapper { display: block; } p.search-box { float: none; width: 100%; margin-bottom: 20px; display: flex; } p.search-box input[name="s"] { width: 100%; float: none; margin-bottom: 10px; vertical-align: middle; } .js.plugins-php .search-box .wp-filter-search { width: 100%; margin-bottom: 0; } p.search-box input[type="submit"] { margin-bottom: 10px; } .form-table span.description { display: inline; padding: 4px 0 0; line-height: 1.4; font-size: 14px; } .form-table th { padding: 10px 0 0; border-bottom: 0; } .form-table td { margin-bottom: 0; padding: 4px 0 6px; } .form-table.permalink-structure td code { display: inline-block; } .form-table.permalink-structure .structure-selection { margin-top: 8px; } .form-table.permalink-structure .structure-selection .row > div { max-width: calc(100% - 36px); width: 100%; } .form-table.permalink-structure td input[type="text"] { margin-top: 4px; } .permalink-structure-has-blog-prefix { display: flex; align-items: center; } .form-table input.regular-text { width: 100%; } .form-table label { font-size: 14px; } .form-table td > label:first-child { display: inline-block; margin-top: 0.35em; } .background-position-control .button-group > label { font-size: 0; } .form-table fieldset label { display: block; } .form-field #domain { max-width: none; } /* New Password */ .wp-pwd { position: relative; } /* Needs higher specificity than normal input type text and password. */ #profile-page .form-table #pass1 { padding-right: 90px; } .wp-pwd button.button { background: transparent; border: 1px solid transparent; box-shadow: none; line-height: 2; margin: 0; padding: 5px 9px; position: absolute; right: 0; top: 0; width: 2.375rem; height: 2.375rem; min-width: 40px; min-height: 40px; } .wp-pwd button.wp-hide-pw { right: 2.5rem; } body.user-new-php .wp-pwd button.wp-hide-pw { right: 0; } .wp-pwd button.button:hover, .wp-pwd button.button:focus { background: transparent; } .wp-pwd button.button:active { background: transparent; box-shadow: none; transform: none; } .wp-pwd .button .text { display: none; } .wp-pwd [type="text"], .wp-pwd [type="password"] { line-height: 2; padding-right: 5rem; } body.user-new-php .wp-pwd [type="text"], body.user-new-php .wp-pwd [type="password"] { padding-right: 2.5rem; } .wp-cancel-pw .dashicons-no { display: inline-block; } .mailserver-pass-wrap .wp-pwd { display: block; } /* rtl:ignore */ #mailserver_pass { padding-left: 10px; } .options-general-php input[type="text"].small-text { max-width: 6.25em; margin: 0; } /* Privacy Policy settings screen */ .tools-privacy-policy-page form.wp-create-privacy-page { margin-bottom: 1em; } .tools-privacy-policy-page input#set-page, .tools-privacy-policy-page select { margin: 10px 0 0; } .tools-privacy-policy-page .wp-create-privacy-page span { display: block; margin-bottom: 1em; } .tools-privacy-policy-page .wp-create-privacy-page .button { margin-left: 0; } .wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column) { display: table-cell; } .wp-list-table.privacy_requests.widefat th input, .wp-list-table.privacy_requests.widefat thead td input { margin-left: 5px; } .wp-privacy-request-form-field input[type="text"] { width: 100%; margin-bottom: 10px; vertical-align: middle; } .regular-text { max-width: 100%; } } @media only screen and (max-width: 768px) { .form-field input[type="text"], .form-field input[type="email"], .form-field input[type="password"], .form-field select, .form-field textarea { width: 99%; } .form-wrap .form-field { padding: 0; } } @media only screen and (max-height: 480px), screen and (max-width: 450px) { /* Request Credentials / File Editor Warning */ .request-filesystem-credentials-dialog .notification-dialog, .file-editor-warning .notification-dialog { width: 100%; height: 100%; max-height: 100%; position: fixed; top: 0; margin: 0; left: 0; } } /* Smartphone */ @media screen and (max-width: 600px) { /* Color Picker Options */ .color-option { width: 49%; } } @media only screen and (max-width: 320px) { .options-general-php .date-time-text.date-time-custom-text { min-width: 0; margin-right: 0.5em; } } @keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } } css/common-rtl.min.css000064400000167670152213653150010743 0ustar00/*! This file is auto-generated */ #wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-right:20px}#wpcontent,#wpfooter{margin-right:160px}.folded #wpcontent,.folded #wpfooter{margin-right:36px}#wpbody-content{padding-bottom:65px;float:right;width:100%;overflow:visible}.inner-sidebar{float:left;clear:left;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-left:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:right;clear:right;width:100%;margin-left:-2000px}.has-right-sidebar #post-body-content{margin-left:300px;float:none;width:auto}#col-left{float:right;width:35%}#col-right{float:left;width:65%}#col-left .col-wrap{padding:0 0 0 6px}#col-right .col-wrap{padding:0 6px 0 0}.alignleft{float:right}.alignright{float:left}.textleft{text-align:right}.textright{text-align:left}.clear{clear:both}.wp-clearfix:after{content:"";display:table;clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}.button .screen-reader-text{height:auto}.screen-reader-text+.dashicons-external{margin-top:-1px;margin-right:2px;text-decoration:none}.screen-reader-shortcut{position:absolute;top:-1000em;right:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#fff;color:var(--wp-admin-theme-color,#3858e9);z-index:100000;line-height:normal}.screen-reader-shortcut:focus{top:-25px;color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);text-decoration:none;outline:2px solid transparent;outline-offset:-2px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#135e96}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{color:#043959;border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#adminmenu a:focus{box-shadow:none;outline:1px solid transparent;outline-offset:-1px}.screen-reader-text:focus{box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}.wp-die-message,p{font-size:13px;line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{color:#1d2327;font-size:2em;margin:.67em 0}h2,h3{color:#1d2327;font-size:1.3em;margin:1em 0}.update-core-php h2{margin-top:4em}.update-messages h2,.update-php h2,h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-right:2em}ul.ul-disc{list-style:disc outside}ul.ul-square{list-style:square outside}ol.ol-decimal{list-style:decimal outside}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-right:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#f0f0f1;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;float:right;color:#646970}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#50575e;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat *{word-wrap:break-word}.widefat a,.widefat button.button-link{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #c3c4c7}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #c3c4c7;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:right;line-height:1.3em;font-size:14px}.updates-table td input,.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 8px 0 0;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tbody th.check-column{padding:9px 0 22px}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 3px 0 0}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:4px;vertical-align:middle}.update-php div.error,.update-php div.updated{margin-right:0}.js-update-details-toggle .dashicons{text-decoration:none}.js-update-details-toggle[aria-expanded=true] .dashicons::before{content:"\f142";content:"\f142"/''}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 2px 0 20px}.postbox .inside h2,.wrap [class$=icon32]+h2,.wrap h1,.wrap>h2:first-child{font-size:23px;font-weight:400;margin:0;padding:9px 0 4px;line-height:1.3}.wrap h1.wp-heading-inline{display:inline-block;margin-left:5px}.wp-header-end{visibility:hidden;margin:-2px 0 0}.subtitle{margin:0;padding-right:25px;color:#50575e;font-size:14px;font-weight:400;line-height:1}.subtitle strong{word-break:break-all}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{display:inline-block;position:relative;box-sizing:border-box;cursor:pointer;white-space:nowrap;text-decoration:none;text-shadow:none;top:-3px;margin-right:4px;border:1px solid #2271b1;border-radius:2px;background:0 0;font-size:13px;font-weight:500;min-height:32px;line-height:2.30769231;color:#2271b1;padding:0 12px;-webkit-appearance:none}.wrap .wp-heading-inline+.page-title-action{margin-right:0}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{border-color:#0a4b78;color:#0a4b78}.page-title-action:focus{color:#0a4b78}.form-table th label[for=WPLANG] .dashicons,.form-table th label[for=locale] .dashicons{margin-right:5px}.wrap .page-title-action:focus{border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.wrap h1.long-header{padding-left:0}.wp-dialog{background-color:#fff}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.sorthelper{background-color:#c5d9ed}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f6f7f7}.bar{background-color:#f0f0f1;border-left-color:var(--wp-admin-theme-color)}.highlight{background-color:rgba(var(--wp-admin-theme-color--rgb),.08);color:#3c434a}.wp-ui-primary{color:#fff;background-color:#2c3338}.wp-ui-text-primary{color:#2c3338}.wp-ui-highlight{color:#fff;background-color:#2271b1}.wp-ui-text-highlight{color:#2271b1}.wp-ui-notification{color:#fff;background-color:#d63638}.wp-ui-text-notification{color:#d63638}.wp-ui-text-icon{color:#8c8f94}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#f6f7f7;color:#1d2327}.stuffbox .hndle{border-bottom:1px solid #c3c4c7}.quicktags{background-color:#c3c4c7;color:#000;font-size:12px}.icon32{display:none}#bulk-titles .ntdelbutton:before,.notice-dismiss:before,.tagchecklist .ntdelbutton .remove-tag-icon:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#1e1e1e;content:"\f335";content:"\f335"/'';display:block;font:normal 20px/1 dashicons;height:1em;text-align:center;width:1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}.tagchecklist .ntdelbutton .remove-tag-icon:before{margin-right:2px;border-radius:50%;color:var(--wp-admin-theme-color,#3858e9);line-height:1.1}.tagchecklist .ntdelbutton:focus{outline:0}#bulk-titles .ntdelbutton:focus:before,#bulk-titles .ntdelbutton:hover:before,.tagchecklist .ntdelbutton:focus .remove-tag-icon:before,.tagchecklist .ntdelbutton:hover .remove-tag-icon:before{color:#d63638}.tagchecklist .ntdelbutton:focus .remove-tag-icon:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap;word-wrap:break-word}.howto{color:#646970;display:block}p.install-help{margin:8px 0;font-style:italic}.no-break{white-space:nowrap}hr{border:0;border-top:1px solid #dcdcde;border-bottom:1px solid #f6f7f7}#all-plugins-table .plugins a.delete,#delete-link a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.privacy_requests .remove-personal-data .remove-personal-data-handle,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete,a#remove-post-thumbnail{color:#b32d2e}#all-plugins-table .plugins a.delete:hover,#delete-link a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.privacy_requests .remove-personal-data .remove-personal-data-handle:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,a#remove-post-thumbnail:hover,abbr.required,span.required{color:#b32d2e;border:none}.application-password-display .success{color:#007017;margin-right:.5rem}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #dcdcde;background:#f6f7f7;display:flex;align-items:center;justify-content:space-between}#delete-action{line-height:2.30769231}#delete-link a{text-decoration:none}#publishing-action{text-align:left;margin-right:auto;line-height:1.9}#publishing-action .spinner{float:none}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}.misc-pub-filename,.word-wrap-break-word{word-wrap:break-word}#minor-publishing-actions{padding:10px 10px 0;text-align:left}#save-post{float:right}.preview{float:left}#sticky-span{margin-right:18px}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:left}#misc-publishing-actions .notice{margin-right:10px;margin-left:10px}.wp-filter{display:inline-block;position:relative;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #c3c4c7;background:#fff;color:#50575e;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;border-radius:30px;background:#646970;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-right:5px;margin-left:20px}.filter-items{float:right}.filter-links{display:inline-block;margin:0}.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#646970;cursor:pointer}.filter-links .current{box-shadow:none;border-bottom:4px solid var(--wp-admin-theme-color);color:#1d2327}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:var(--wp-admin-theme-color)}.wp-filter .search-form{float:left;display:flex;align-items:center;column-gap:.5rem}.wp-filter .search-form input[type=search]{width:280px;max-width:100%}.wp-filter .search-form select{margin:0}.wp-filter .search-form input[type=search]{min-height:32px;padding:0 8px}.wp-filter .filter-items select,.wp-filter .search-form select{min-height:32px;line-height:2.14285714;padding:0 8px 0 24px}.wp-filter .button{min-height:32px;line-height:2.30769231;padding:0 12px}.plugin-install-php .wp-filter,.upload-php .wp-filter{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.no-js .wp-filter .search-form.search-plugins .button,.wp-filter .search-form.search-plugins .wp-filter-search,.wp-filter .search-form.search-plugins select{display:inline-block;vertical-align:top}.wp-filter .button.drawer-toggle{margin:10px 9px 0;padding:0 6px 0 10px;border-color:transparent;background-color:transparent;color:#646970;vertical-align:baseline;box-shadow:none}.wp-filter .drawer-toggle:before{content:"\f111";content:"\f111"/'';margin:0 0 0 5px;color:#646970;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-filter .button.drawer-toggle:focus,.wp-filter .button.drawer-toggle:hover,.wp-filter .drawer-toggle:focus:before,.wp-filter .drawer-toggle:hover:before{background-color:transparent;color:var(--wp-admin-theme-color)}.wp-filter .button.drawer-toggle:focus:active,.wp-filter .button.drawer-toggle:hover{border-color:transparent}.wp-filter .button.drawer-toggle:focus{border-color:var(--wp-admin-theme-color)}.wp-filter .button.drawer-toggle:active{background:0 0;box-shadow:none;transform:none}.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer,.wp-filter .favorites-form{display:none;margin:0 -20px 0 -10px;padding:20px;border-top:1px solid #f0f0f1;background:#f6f7f7;overflow:hidden}.wp-filter .favorites-form .favorites-username{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.wp-filter .favorites-form .favorites-username input{margin:0}.show-favorites-form .favorites-form,.show-filters .filter-drawer{display:block}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .button.drawer-toggle{border-radius:2px;background:#646970;color:#fff}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:var(--wp-admin-theme-color)}.show-filters .wp-filter .drawer-toggle:before{color:#fff}.filter-group{box-sizing:border-box;position:relative;float:right;margin:0 0 0 1%;padding:20px 10px 10px;width:24%;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group legend{position:absolute;top:10px;display:block;margin:0;padding:0;font-size:1em;font-weight:600}.filter-drawer .filter-group-feature{margin:28px 0 0;list-style-type:none;font-size:12px}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:1.4}.filter-drawer .filter-group-feature input{position:absolute;margin:0}.filter-group .filter-group-feature label{display:block;margin:14px 23px 14px 0}.filter-drawer .buttons{clear:both;margin-bottom:20px}.filter-drawer .filter-group+.buttons{margin-bottom:0;padding-top:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.wp-filter .button.clear-filters{display:none;margin-right:10px}.wp-filter .button-link.edit-filters{padding:0 5px;line-height:2.2}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-right:10px}.filtered-by .tags{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}.filtered-by .tag{padding:4px 8px;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none}.filters-applied .filtered-by{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters .favorites-form,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1138px){.wp-filter .search-form{margin:11px 0}}@media only screen and (max-width:1250px){.wp-filter:has(.plugin-install-search) .search-form{margin:11px 0}}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #f0f0f1}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}.wp-filter .search-form{margin:11px 0;flex-wrap:wrap;row-gap:10px}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border:none;border-right:4px solid #c3c4c7;box-shadow:none;margin:5px 15px 2px;padding:8px 12px}div[class=update-message]{padding:.5em 0 .5em 12px}.form-table td .notice p,.notice p,.notice-title,div.error p,div.updated p{margin:.5em 0;padding:0;font-size:13px;line-height:1.54;color:#1e1e1e}div.error a,div.notice a,div.updated a{color:var(--wp-admin-theme-color-darker-10);text-decoration:underline}div.error a:hover,div.notice a:hover,div.updated a:hover{color:var(--wp-admin-theme-color-darker-20)}div.error a:focus,div.notice a:focus,div.updated a:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;border-radius:2px}.notice-alt{box-shadow:none}.notice-large{padding:10px 20px}.notice-title{display:inline-block;color:#1d2327;font-size:18px}.wp-core-ui .notice.is-dismissible{padding-left:48px;position:relative}.notice-dismiss{position:absolute;top:12px;left:12px;border:none;margin:0;padding:0;background:0 0;color:#1e1e1e;cursor:pointer;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:2px}.notice-dismiss:active:before,.notice-dismiss:hover:before{color:#1e1e1e;opacity:.7}.notice-dismiss:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.notice-dismiss:focus:before{color:#1e1e1e}.notice-success,div.updated{border-right-color:#4ab866;background-color:#eff9f1}.notice-success.notice-alt,div.updated.notice-alt{background-color:#eff9f1}.notice-warning{border-right-color:#f0b849;background-color:#fef8ee}.notice-warning.notice-alt{background-color:#fef8ee}.notice-error,div.error{border-right-color:#cc1818;background-color:#fcf0f0}.notice-error.notice-alt,div.error.notice-alt{background-color:#fcf0f0}.notice-info{border-right-color:#3858e9;background-color:#fff}.notice-info.notice-alt{background-color:#fff}#plugin-information-footer .update-now:not(.button-disabled):before{color:#d63638;content:"\f463";content:"\f463"/'';display:inline-block;font:normal 20px/1 dashicons;margin:-3px -2px 0 5px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}#plugin-information-footer .notice{margin-top:-5px}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updated-message p:before,.updating-message p:before{display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}.wrap #templateside .notice{display:block;margin:0;padding:5px 8px;font-weight:600;text-decoration:none}.wrap #templateside span.notice{margin-right:-12px}#templateside li.notice a{padding:0}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updating-message p:before{color:#d63638;content:"\f463";content:"\f463"/''}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:none}}.theme-overlay .theme-autoupdate .dashicons-update.spin{margin-left:3px}.button.activated-message:before,.button.updated-message:before,.installed p:before,.updated-message p:before{color:#68de7c;content:"\f147";content:"\f147"/''}.update-message.notice-error p:before{color:#d63638;content:"\f534";content:"\f534"/''}.import-php .updating-message:before,.wrap .notice p:before{margin-left:6px}.import-php .updating-message:before{vertical-align:bottom}#update-nag,.update-nag{display:inline-block;line-height:1.4;padding:11px 15px;font-size:14px;margin:25px 2px 0 20px}ul#dismissed-updates{display:none}#dismissed-updates li>p{margin-top:0}#dismiss,#undismiss{margin-right:.5em}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}.update-php .spinner{float:none;margin:-4px 0}h2.wp-current-version{margin-bottom:.3em}p.update-last-checked{margin-top:0}p.auto-update-status{margin-top:2em;line-height:1.8}#ajax-loading,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading{visibility:hidden}#ajax-response.alignleft{margin-right:2em}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before{margin:0 -2px 0 5px;line-height:1.9;vertical-align:top}#plugin-information-footer .button{padding:0 14px;line-height:2.71428571;font-size:14px;vertical-align:middle;min-height:40px;margin-bottom:4px}#plugin-information-footer .button.activated-message:before,#plugin-information-footer .button.activating-message:before,#plugin-information-footer .button.installed:before,#plugin-information-footer .button.installing:before,#plugin-information-footer .button.updated-message:before,#plugin-information-footer .button.updating-message:before{margin:0 -2px 0 5px;line-height:1.9;vertical-align:top}#plugin-information-footer .button.update-now.updating-message:before{margin:0 -2px 0 5px}.button-primary.activating-message:before,.button-primary.updating-message:before{color:#fff}.button-primary.activated-message:before,.button-primary.updated-message:before{color:#9ec2e6}.button.activated-message,.button.updated-message{transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-right:0}#screen-meta-links{float:left;margin:0 0 0 20px}#screen-meta{display:none;margin:0 0 -1px 20px;position:relative;background-color:#fff;border:1px solid #c3c4c7;border-top:none;box-shadow:0 0 0 transparent}#contextual-help-link-wrap,#screen-options-link-wrap{float:right;margin:0 6px 0 0}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:1px solid #c3c4c7;border-top:none;height:auto;min-height:32px;margin-bottom:0;padding:0 16px 0 6px;background:#fff;border-radius:0 0 4px 4px;color:#646970;line-height:2.30769231;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#2c3338}#screen-meta-links .show-settings:focus{border-color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#screen-meta-links .show-settings:active{transform:none}#screen-meta-links .show-settings:after{left:0;content:"\f140";content:"\f140"/'';font:normal 20px/1.5 dashicons;display:inline-block;padding:0 0 0 5px;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}#screen-meta-links .screen-meta-active:after{content:"\f142";content:"\f142"/''}.toggle-arrow{background-repeat:no-repeat;background-position:top right;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom right}#contextual-help-wrap h5,#screen-options-wrap h5,#screen-options-wrap legend{margin:0;padding:8px 0;font-size:13px;font-weight:600}.metabox-prefs label{display:inline-block;padding-left:15px;line-height:2.35}#number-of-columns{display:inline-block;vertical-align:middle;line-height:30px}.metabox-prefs input[type=checkbox]{margin-top:0;margin-left:6px}.metabox-prefs label input,.metabox-prefs label input[type=checkbox]{margin:-4px 0 0 5px}.metabox-prefs .columns-prefs label input{margin:-1px 0 0 2px}.metabox-prefs label a{display:none}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-left:15px;padding-left:0}.metabox-prefs .screen-options label{line-height:2.2;padding-left:0}.screen-options+.screen-options{margin-top:10px}.metabox-prefs .submit{margin-top:1em;padding:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;right:150px;left:170px;border:1px solid #c3c4c7;border-top:none;border-bottom:none;background:rgba(var(--wp-admin-theme-color--rgb),.08)}#contextual-help-wrap.no-sidebar #contextual-help-back{left:0;border-left-width:0;border-bottom-left-radius:2px}.contextual-help-tabs{float:right;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 2px 0 0;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 12px 5px 5px;line-height:1.4;text-decoration:none;border:1px solid transparent;border-left:none;border-right:none}.contextual-help-tabs a:hover{color:#2c3338}.contextual-help-tabs .active{padding:0;margin:0 0 0 -1px;border-right:2px solid var(--wp-admin-theme-color);background:color-mix(in srgb,var(--wp-admin-theme-color) 8%,#fff);box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#c3c4c7;color:#2c3338}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 0 12px 22px;line-height:1.6}.help-tab-content.active{display:block}.help-tab-content ul li{list-style-type:disc;margin-right:18px}.contextual-help-sidebar{width:150px;float:left;padding:0 12px 0 8px;overflow:auto}html.wp-toolbar{padding-top:var(--wp-admin--admin-bar--height);box-sizing:border-box;-ms-overflow-style:scrollbar}.widefat td,.widefat th{color:#50575e}.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th{color:#2c3338}.widefat td p{margin:2px 0 .8em}.widefat ol,.widefat p,.widefat ul{color:#2c3338}.widefat .column-comment p{margin:.6em 0}.widefat .column-comment ul{list-style:initial;margin-right:2em}.postbox-container{float:right}.postbox-container .meta-box-sortables{box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .meta-box-sortables{min-height:1px;position:relative}#post-body-content{width:100%;min-width:463px;float:right}#post-body.columns-2 #postbox-container-1{float:left;margin-left:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{outline:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .postbox .hndle.is-non-sortable,.js .widget .widget-top.is-non-sortable{cursor:auto}.hndle a{font-size:12px;font-weight:400}.postbox-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c3c4c7}.postbox-header .hndle{flex-grow:1;display:flex;justify-content:space-between;align-items:center}.postbox-header .handle-actions{flex-shrink:0}.postbox .handle-order-higher,.postbox .handle-order-lower,.postbox .handlediv{width:1.62rem;height:1.62rem;margin:0;padding:0;border:0;background:0 0;cursor:pointer}.postbox .handle-order-higher,.postbox .handle-order-lower{color:#646970;width:1.62rem}.edit-post-meta-boxes-area .postbox .handle-order-higher,.edit-post-meta-boxes-area .postbox .handle-order-lower{width:44px;height:44px;color:#1d2327}.postbox .handle-order-higher[aria-disabled=true],.postbox .handle-order-lower[aria-disabled=true]{cursor:default;color:#a7aaad}.sortable-placeholder:not(.empty-container .sortable-placeholder){border:1px dashed #c3c4c7;border-radius:8px;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox.closed .postbox-header{border-bottom:0}.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;user-select:none}.postbox .inside{padding:0 12px 12px;line-height:1.4;font-size:13px}.stuffbox .inside{padding:0;line-height:1.4;font-size:13px;margin-top:0}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{box-shadow:none}.temp-border{border:1px dotted #c3c4c7}.columns-prefs label{padding:0 0 0 10px}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#comment-status-display,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;right:0;left:0;padding:10px 20px;color:#50575e}#wpfooter p{font-size:13px;margin:0;line-height:1.55}#footer-thankyou{font-style:italic}.nav-tab{float:right;border:1px solid #c3c4c7;border-bottom:none;margin-right:.5em;padding:5px 10px;font-size:14px;line-height:1.71428571;font-weight:600;background:#dcdcde;color:#50575e;text-decoration:none;white-space:nowrap}.nav-tab-small .nav-tab,h3 .nav-tab{padding:5px 14px;font-size:12px;line-height:1.33}.nav-tab:focus,.nav-tab:hover{background-color:#fff;color:#3c434a}.nav-tab-active,.nav-tab:focus:active{box-shadow:none}.nav-tab-active{margin-bottom:-1px;color:#3c434a}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #f0f0f1;background:#f0f0f1;color:#000}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:1px solid #c3c4c7;margin:0;padding-top:9px;padding-bottom:0;line-height:inherit}.nav-tab-wrapper:not(.wp-clearfix):after{content:"";display:table;clear:both}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;float:left;vertical-align:middle;opacity:.7;width:20px;height:20px;margin:10px 10px 0}.loading-content .spinner,.spinner.is-active{visibility:visible}#template>div{margin-left:16em}#template .notice{margin-top:1em;margin-left:3%}#template .notice p{width:auto}#template .submit .spinner{float:none;vertical-align:top}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.nav-menus-php .metabox-holder h3{padding:0}.accordion-container h3.accordion-section-title{padding:0!important}.accordion-section-title button.accordion-trigger,.nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger{background:inherit;color:#1d2327;display:block;position:relative;text-align:right;width:100%;outline:0;border:0;padding:10px 14px 11px 10px;line-height:1.5;cursor:pointer}.accordion-section-title button.accordion-trigger:focus,.nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.accordion-section-title span.dashicons.dashicons-arrow-down,.nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down{position:absolute;left:10px;right:auto;color:#787c82;border-radius:50px;top:50%;transform:translateY(-50%)}.accordion-section-title:hover span.dashicons.dashicons-arrow-down,.nav-menus-php .metabox-holder .accordion-section-title:hover span.dashicons.dashicons-arrow-down{color:#1d2327}.accordion-section-title span.dashicons.dashicons-arrow-down::before,.nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down::before{position:relative;right:-1px}.accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down,.nav-menus-php .metabox-holder .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down{transform:rotate(-180deg) translate(0,50%)}#templateside ul li a{text-decoration:none}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:right}.attention,.error-message{color:#d63638;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #dcdcde;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px;display:block}.importers{font-size:16px;width:auto}.importers td{padding-left:14px;line-height:1.4}.importers .import-system{max-width:250px}.importers td.desc{max-width:500px}.importer-action,.importer-desc,.importer-title{display:block}.importer-title{color:#000;font-size:14px;font-weight:400;margin-bottom:.2em}.importer-action{line-height:1.55;color:#50575e;margin-bottom:1em}#post-body #post-body-content #namediv h2,#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{color:#1d2327;border-bottom:1px solid #f0f0f1}#namediv h2 label,#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px;white-space:nowrap}#namediv input{width:100%}#namediv p{margin:10px 0}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:.15}.checkbox{border:none;margin:0;padding:0}fieldset{border:0;padding:0;margin:0}.post-categories{display:inline;margin:0;padding:0}.post-categories li{display:inline}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) repeat-x bottom right}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) repeat-x top right;height:17px;float:right}.star-rating{white-space:nowrap}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;transition:color .1s ease-in;text-align:center;color:#dba617}.star-rating .star-full:before{content:"\f155";content:"\f155"/''}.star-rating .star-half:before{content:"\f459";content:"\f459"/''}.rtl .star-rating .star-half{transform:rotateY(-180deg)}.star-rating .star-empty:before{content:"\f154";content:"\f154"/''}div.action-links{font-weight:400;margin:6px 0 0}#plugin-information{background:#fff;position:fixed;top:0;left:0;bottom:0;right:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 26px;background:#f6f7f7;font-size:22px;font-weight:600;line-height:2.4;position:relative;height:56px}#plugin-information-title.with-banner{margin-left:0;height:250px;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:600;padding:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#plugin-information-title.with-banner h2{position:relative;font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:1.68;box-sizing:border-box;max-width:100%;padding:0 15px;margin-top:174px;color:#fff;background:rgba(29,35,39,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 0 30px rgba(255,255,255,.1);border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{position:absolute;display:block;top:0;right:0;height:250px;width:100%;background:0 0;box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;left:0;right:0;min-height:36px;font-size:0;z-index:1;border-bottom:1px solid #dcdcde;background:#f6f7f7}#plugin-information-tabs a{position:relative;display:inline-block;padding:9px 10px;margin:0;height:18px;line-height:1.3;font-size:14px;text-decoration:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px -1px;background:#fff;border:1px solid #dcdcde;border-bottom-color:#fff;padding-top:8px;color:#2c3338}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;left:0;right:0;min-height:100%;min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;left:250px;bottom:0;right:0;margin-top:10px;margin-left:250px;padding:10px 26px 99999px;margin-bottom:-99932px}#section-holder .notice{margin:5px 0 15px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{float:left;position:relative;top:0;left:0;padding:16px 16px 99999px;margin-bottom:-99932px;width:217px;border-right:1px solid #dcdcde;background:#f6f7f7;color:#646970}#plugin-information .fyi strong{color:#3c434a}#plugin-information .fyi h3{font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-left:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .fyi-description{margin-top:0}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:right;margin-left:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#dcdcde;float:right}#plugin-information .counter-bar{height:17px;background-color:#f0c33c;float:right}#plugin-information .counter-count{margin-right:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li{display:inline-block;margin-left:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-left:4px}#plugin-information-footer{padding:13px 16px;position:absolute;left:0;bottom:0;right:0;height:40px;border-top:1px solid #dcdcde;background:#f6f7f7}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #c3c4c7}#plugin-information blockquote{border-right:2px solid #dcdcde;color:#646970;font-style:italic;margin:1em 0;padding:0 1em 0 0}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #dcdcde}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}.update-php .button.button-primary{margin-left:1em}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:2;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #dcdcde;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}#TB_window.plugin-details-modal{background:#fff}#TB_window.plugin-details-modal.thickbox-loading:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;z-index:-1;margin:-10px -10px 0 0;background:#fff url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}@media print,(min-resolution:120dpi){#TB_window.plugin-details-modal.thickbox-loading:before{background-image:url(../images/spinner-2x.gif)}}.plugin-details-modal #TB_title{float:right;height:1px}.plugin-details-modal #TB_ajaxWindowTitle{display:none}.plugin-details-modal #TB_closeWindowButton{right:auto;left:-30px;color:#f0f0f1}.plugin-details-modal #TB_closeWindowButton:focus,.plugin-details-modal #TB_closeWindowButton:hover{outline:0;box-shadow:none}.plugin-details-modal #TB_closeWindowButton:focus::after,.plugin-details-modal #TB_closeWindowButton:hover::after{outline:2px solid;outline-offset:-4px;border-radius:4px}.plugin-details-modal .tb-close-icon{display:none}.plugin-details-modal #TB_closeWindowButton:after{content:"\f335";content:"\f335"/'';font:normal 32px/29px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width:830px){.plugin-details-modal #TB_closeWindowButton{left:0;top:-30px}}img{border:none}.bulk-action-notice .toggle-indicator::before,.meta-box-sortables .postbox .order-higher-indicator::before,.meta-box-sortables .postbox .order-lower-indicator::before,.meta-box-sortables .postbox .toggle-indicator::before,.privacy-text-box .toggle-indicator::before,.sidebar-name .toggle-indicator::before{content:"\f142";content:"\f142"/'';display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,.js .widgets-holder-wrap.closed .toggle-indicator::before,.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,.privacy-text-box.closed .toggle-indicator::before{content:"\f140";content:"\f140"/''}.postbox .handle-order-higher .order-higher-indicator::before{content:"\f343";content:"\f343"/'';color:inherit}.postbox .handle-order-lower .order-lower-indicator::before{content:"\f347";content:"\f347"/'';color:inherit}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{position:relative;top:.11rem;width:20px;height:20px}.postbox .handlediv .toggle-indicator::before{width:20px;border-radius:50%}.postbox .handlediv .toggle-indicator::before{position:relative;top:.05rem;text-indent:-1px}.rtl .postbox .handlediv .toggle-indicator::before{text-indent:1px}.bulk-action-notice .toggle-indicator::before{line-height:16px;vertical-align:top;color:#787c82}.postbox .handle-order-higher:focus,.postbox .handle-order-lower:focus,.postbox .handlediv:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);border-radius:50%;outline:2px solid transparent}.postbox .handle-order-higher:focus .order-higher-indicator::before,.postbox .handle-order-lower:focus .order-lower-indicator::before,.postbox .handlediv:focus .toggle-indicator::before{box-shadow:none;outline:1px solid transparent}#photo-add-url-div input[type=text]{width:300px}.alignleft h2{margin:0}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;background:#f6f7f7;tab-size:4}#template .CodeMirror,#template textarea{width:100%;min-height:60vh;height:calc(100vh - 295px);border:1px solid #dcdcde;box-sizing:border-box}#templateside>h2{padding-top:6px;padding-bottom:7px;margin:0}#templateside ol,#templateside ul{margin:0;padding:0}#templateside>ul{box-sizing:border-box;margin-top:0;overflow:auto;padding:0;min-height:60vh;height:calc(100vh - 295px);background-color:#f6f7f7;border:1px solid #dcdcde;border-right:none}#templateside ul ul{padding-right:12px}#templateside>ul>li>ul[role=group]{padding-right:0}[role=treeitem][aria-expanded=false]>ul{display:none}[role=treeitem] span[aria-hidden]{display:inline;font-family:dashicons;font-size:20px;position:absolute;pointer-events:none}[role=treeitem][aria-expanded=false]>.folder-label .icon:after{content:"\f141";content:"\f139"/''}[role=treeitem][aria-expanded=true]>.folder-label .icon:after{content:"\f140";content:"\f140"/''}[role=treeitem] .folder-label{display:block;padding:3px 12px 3px 3px;cursor:pointer}[role=treeitem]{outline:0}[role=treeitem] .folder-label.focus,[role=treeitem] a:focus{color:#043959;box-shadow:none;outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}[role=treeitem] .folder-label.hover,[role=treeitem].hover{background-color:#f0f0f1}.tree-folder{margin:0;position:relative}[role=treeitem] li{position:relative}.tree-folder .tree-folder::after{content:"";display:block;position:absolute;right:2px;border-right:1px solid #c3c4c7;top:-13px;bottom:10px}.tree-folder>li::before{content:"";position:absolute;display:block;border-right:1px solid #c3c4c7;right:2px;top:-5px;height:18px;width:7px;border-bottom:1px solid #c3c4c7}.tree-folder>li::after{content:"";position:absolute;display:block;border-right:1px solid #c3c4c7;right:2px;bottom:-7px;top:0}#templateside .current-file{margin:-4px 0 -2px}.tree-folder>.current-file::before{right:4px;height:15px;width:0;border-right:none;top:3px}.tree-folder>.current-file::after{bottom:-4px;height:7px;right:2px;top:auto}.tree-folder li:last-child>.tree-folder::after,.tree-folder>li:last-child::after{display:none}#documentation label,#theme-plugin-editor-label,#theme-plugin-editor-selector{font-weight:600}#theme-plugin-editor-label{display:inline-block;margin-bottom:1em}#docs-list,#template textarea{direction:ltr}.fileedit-sub #plugin,.fileedit-sub #theme{max-width:40%}.fileedit-sub .alignright{text-align:left}#template p{width:97%}#file-editor-linting-error{margin-top:1em;margin-bottom:1em}#file-editor-linting-error>.notice{margin:0;display:inline-block}#file-editor-linting-error>.notice>p{width:auto}#template .submit{margin-top:1em;padding:0}#template .submit input[type=submit][disabled]{cursor:not-allowed}#templateside{float:left;width:16em;word-wrap:break-word}#postcustomstuff p.submit{margin:0}#templateside h4{margin:1em 0 0}#templateside li{margin:4px 0}#templateside li:not(.howto) a,.theme-editor-php .highlight{display:block;padding:3px 12px 3px 0;text-decoration:none}#templateside li.current-file>a{padding-bottom:0}#templateside li:not(.howto)>a:first-of-type{padding-top:0}#templateside li.howto{padding:6px 12px 12px}.theme-editor-php .highlight{margin:-3px -12px -3px 3px}#templateside .highlight{border:none;font-weight:600}.nonessential{color:#646970;font-size:11px;font-style:italic;padding-right:12px}#documentation{margin-top:10px}#documentation label{line-height:1.8;vertical-align:baseline}.fileedit-sub{padding:10px 0 8px;line-height:180%}#file-editor-warning .file-editor-warning-content{margin:25px}.nav-menus-php .item-edit:before,.widget-top .widget-action .toggle-indicator:before,.wp-customizer .accordion-section-title:after,.wp-customizer .control-section .accordion-section-title:after{content:"\f140";content:"\f140"/'';font:normal 20px/1 dashicons;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.widget-top .widget-action .toggle-indicator:before{padding:1px 0 1px 2px;border-radius:50%}.handlediv,.item-edit,.postbox .handlediv.button-link,.toggle-indicator{color:#646970}.widget-action{color:#50575e}.handlediv:focus,.handlediv:hover,.item-edit:focus,.item-edit:hover,.postbox .handlediv.button-link:focus,.postbox .handlediv.button-link:hover,.sidebar-name:hover .toggle-indicator,.widget-action:focus,.widget-top:hover .widget-action{color:#1d2327;outline:2px solid transparent}.widget-top .widget-action:focus .toggle-indicator:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#customize-info.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top .widget-action .toggle-indicator:before,.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before{content:"\f142";content:"\f142"/''}/*! * jQuery UI Draggable/Sortable 1.11.4 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.accordion-section{border-bottom:1px solid #dcdcde;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dcdcde}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;position:relative;border-right:1px solid #dcdcde;border-left:1px solid #dcdcde;-webkit-user-select:none;user-select:none}.js .accordion-section-title{cursor:pointer}.js .accordion-section-title:after{position:absolute;top:12px;left:10px;z-index:1}.accordion-section-title:focus{outline:1px solid transparent}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a7aaad transparent;outline:1px solid transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title,.customize-pane-child .accordion-section-title{border-right:none;border-left:none;padding:10px 14px 11px 10px;line-height:1.55;background:#fff}.control-section .accordion-section-title:after,.customize-pane-child .accordion-section-title:after{top:calc(50% - 10px)}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#1d2327;background:#f6f7f7}.control-section.open .accordion-section-title{border-bottom:1px solid #dcdcde}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;left:0;background:#c3c4c7}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:right;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(odd){clear:right}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f6f7f7}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:right;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f6f7f7}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:right;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:right}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f6f7f7}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:right;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:right}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f6f7f7}}@media only screen and (min-width:1600px){.my-sites li{float:right;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:right}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f6f7f7}}.my-sites li a{text-decoration:none}@media print,(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) repeat-x bottom right;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){html.wp-toolbar{padding-top:var(--wp-admin--admin-bar--height)}.screen-reader-shortcut:focus{top:-39px}.block-editor-page .screen-reader-shortcut:focus{top:7px}.screen-reader-shortcut[href="#wp-toolbar"]{display:none}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-right:0;padding-right:10px}#wpbody-content{padding-bottom:100px}.wrap{clear:both;margin-left:12px;margin-right:0}#col-left,#col-right{float:none;width:auto}#col-left .col-wrap,#col-right .col-wrap{padding:0}#collapse-menu,.post-format-select{display:none!important}.wrap h1.wp-heading-inline{margin-bottom:.5em}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:0 14px;font-size:14px;white-space:nowrap;min-height:40px;line-height:2.71428571;vertical-align:middle}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-left:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{left:-16em}code{word-wrap:break-word;word-wrap:anywhere;word-break:break-word}.postbox{font-size:14px}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2,.metabox-holder h3.hndle{padding:12px}.nav-menus-php .metabox-holder h3{padding:0}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#template .CodeMirror,#template textarea{box-sizing:border-box}#templateside{float:none;width:auto}#templateside>ul{border-right:1px solid #dcdcde}#templateside li{margin:0}#templateside li:not(.howto) a{display:block;padding:5px}#templateside li.howto{padding:12px}#templateside .highlight{padding:5px;margin-right:-5px;margin-top:-5px}#template .notice,#template>div{float:none;margin:1em 0;width:auto}#template .CodeMirror,#template textarea{width:100%}#templateside ul ul{padding-right:1.5em}[role=treeitem] .folder-label{display:block;padding:5px}.tree-folder .tree-folder::after,.tree-folder>li::after,.tree-folder>li::before{right:-8px}.tree-folder>li::before{top:0;height:13px}.tree-folder>.current-file::before{right:-5px;top:7px;width:4px}.tree-folder>.current-file::after{height:9px;right:-8px}.wrap #templateside span.notice{margin-right:-5px;width:100%}.fileedit-sub .alignright{float:right;margin-top:15px;width:100%;text-align:right}.fileedit-sub .alignright label{display:block}.fileedit-sub #plugin,.fileedit-sub #theme{margin-right:0;max-width:70%}.fileedit-sub input[type=submit]{margin-bottom:0}#documentation label[for=docs-list]{display:block}#documentation select[name=docs-list]{margin-right:0;max-width:60%}#documentation input[type=button]{margin-bottom:0}#wpfooter{display:none}#comments-form .checkforspam{display:none}.edit-comment-author{margin:2px 0 0}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:2.1}.filter-drawer .filter-group-feature label{margin-right:32px}.wp-filter .button.drawer-toggle{font-size:13px;line-height:2;height:28px}#screen-meta #contextual-help-wrap{overflow:visible}#screen-meta #contextual-help-back,#screen-meta .contextual-help-sidebar{display:none}#screen-meta .contextual-help-tabs{clear:both;width:100%;float:none}#screen-meta .contextual-help-tabs ul{margin:0 0 1em;padding:1em 0 0}#screen-meta .contextual-help-tabs .active{margin:0}#screen-meta .contextual-help-tabs-wrap{clear:both;max-width:100%;float:none}#screen-meta,#screen-meta-links{margin-left:10px}#screen-meta-links{margin-bottom:20px}.wp-filter .search-form input[type=search]{font-size:1rem}.wp-filter .search-form.search-plugins{min-width:100%}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open{overflow-x:hidden}html.wp-toolbar{padding-top:0}.screen-reader-shortcut:focus{top:7px}#wpbody{padding-top:46px}div#post-body.metabox-holder.columns-1{overflow-x:hidden}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:0}h1 .nav-tab,h2 .nav-tab,h3 .nav-tab,nav .nav-tab{margin:10px 0 0 10px;border-bottom:1px solid #c3c4c7}.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #c3c4c7}.wp-filter .search-form.search-plugins label{width:100%}}@media screen and (max-width:480px){.metabox-prefs-container{display:grid}.metabox-prefs-container>*{display:inline-block;padding:2px}}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:right}}css/deprecated-media.css000064400000014727152213653150011241 0ustar00/* Styles for the media library iframe (not used on the Library screen) */ div#media-upload-header { margin: 0; padding: 5px 5px 0; font-weight: 600; position: relative; border-bottom: 1px solid #dcdcde; background: #f6f7f7; } #sidemenu { overflow: hidden; float: none; position: relative; left: 0; bottom: -1px; margin: 0 5px; padding-left: 10px; list-style: none; font-size: 12px; font-weight: 400; } #sidemenu a { padding: 0 7px; display: block; float: left; line-height: 28px; border-top: 1px solid #f6f7f7; border-bottom: 1px solid #dcdcde; background-color: #f6f7f7; text-decoration: none; transition: none; } #sidemenu li { display: inline; line-height: 200%; list-style: none; text-align: center; white-space: nowrap; margin: 0; padding: 0; } #sidemenu a.current { font-weight: 400; padding-left: 6px; padding-right: 6px; border: 1px solid #dcdcde; border-bottom-color: #f0f0f1; background-color: #f0f0f1; color: #000; } #media-upload:after { /* clearfix */ content: ""; display: table; clear: both; } #media-upload .slidetoggle { border-top-color: #dcdcde; } #media-upload input[type="radio"] { padding: 0; } .media-upload-form label.form-help, td.help { color: #646970; } form { margin: 1em; } #search-filter { text-align: right; } th { position: relative; } .media-upload-form label.form-help, td.help { font-family: sans-serif; font-style: italic; font-weight: 400; } .media-upload-form p.help { margin: 0; padding: 0; } .media-upload-form fieldset { width: 100%; border: none; text-align: justify; margin: 0 0 1em; padding: 0; } /* specific to the image upload form */ .image-align-none-label { background: url(../images/align-none.png) no-repeat center left; } .image-align-left-label { background: url(../images/align-left.png) no-repeat center left; } .image-align-center-label { background: url(../images/align-center.png) no-repeat center left; } .image-align-right-label { background: url(../images/align-right.png) no-repeat center left; } tr.image-size td { width: 460px; } tr.image-size div.image-size-item { margin: 0 0 5px; } #library-form .progress, #gallery-form .progress, .insert-gallery, .describe.startopen, .describe.startclosed { display: none; } .media-item .thumbnail { max-width: 128px; max-height: 128px; } thead.media-item-info tr { background-color: transparent; } .form-table thead.media-item-info { border: 8px solid #fff; } abbr.required, span.required { text-decoration: none; border: none; } .describe label { display: inline; } .describe td.error { padding: 2px 8px; } .describe td.A1 { width: 132px; } .describe input[type="text"], .describe textarea { width: 460px; border-width: 1px; border-style: solid; } /* Specific to Uploader */ #media-upload p.ml-submit { padding: 1em 0; } #media-upload p.help, #media-upload label.help { font-family: sans-serif; font-style: italic; font-weight: 400; } #media-upload .ui-sortable .media-item { cursor: move; } #media-upload tr.image-size { margin-bottom: 1em; height: 3em; } #media-upload #filter { width: 623px; } #media-upload #filter .subsubsub { margin: 8px 0; } #media-upload .tablenav-pages a, #media-upload .tablenav-pages .current { display: inline-block; padding: 4px 5px 6px; font-size: 16px; line-height: 1; text-align: center; text-decoration: none; } #media-upload .tablenav-pages a { min-width: 17px; border: 1px solid #c3c4c7; background: #f6f7f7; } #filter .tablenav select { border-style: solid; border-width: 1px; padding: 2px; vertical-align: top; width: auto; } #media-upload .del-attachment { display: none; margin: 5px 0; } .menu_order { float: right; font-size: 11px; margin: 8px 10px 0; } .menu_order_input { border: 1px solid #dcdcde; font-size: 10px; padding: 1px; width: 23px; } .ui-sortable-helper { background-color: #fff; border: 1px solid #a7aaad; opacity: 0.6; filter: alpha(opacity=60); } #media-upload th.order-head { width: 20%; text-align: center; } #media-upload th.actions-head { width: 25%; text-align: center; } #media-upload a.wp-post-thumbnail { margin: 0 20px; } #media-upload .widefat { border-style: solid solid none; } .sorthelper { height: 37px; width: 623px; display: block; } #gallery-settings th.label { width: 160px; } #gallery-settings #basic th.label { padding: 5px 5px 5px 0; } #gallery-settings .title { clear: both; padding: 0 0 3px; font-size: 1.6em; border-bottom: 1px solid #dcdcde; } h3.media-title { font-size: 1.6em; } h4.media-sub-title { border-bottom: 1px solid #dcdcde; font-size: 1.3em; margin: 12px; padding: 0 0 3px; } #gallery-settings .title, h3.media-title, h4.media-sub-title { font-family: Georgia,"Times New Roman",Times,serif; font-weight: 400; color: #50575e; } #gallery-settings .describe td { vertical-align: middle; height: 3em; } #gallery-settings .describe th.label { padding-top: .5em; text-align: left; } #gallery-settings .describe { padding: 5px; width: 100%; clear: both; cursor: default; background: #fff; } #gallery-settings .describe select { width: 15em; } #gallery-settings .describe select option, #gallery-settings .describe td { padding: 0; } #gallery-settings label, #gallery-settings legend { font-size: 13px; color: #3c434a; margin-right: 15px; } #gallery-settings .align .field label { margin: 0 1em 0 3px; } #gallery-settings p.ml-submit { border-top: 1px solid #dcdcde; } #gallery-settings select#columns { width: 6em; } #sort-buttons { font-size: 0.8em; margin: 3px 25px -8px 0; text-align: right; max-width: 625px; } #sort-buttons a { text-decoration: none; } #sort-buttons #asc, #sort-buttons #showall { padding-left: 5px; } #sort-buttons span { margin-right: 25px; } p.media-types { margin: 0; padding: 1em; } p.media-types-required-info { padding-top: 0; } tr.not-image { display: none; } table.not-image tr.not-image { display: table-row; } table.not-image tr.image-only { display: none; } /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .image-align-none-label { background-image: url(../images/align-none-2x.png?ver=20120916); background-size: 21px 15px; } .image-align-left-label { background-image: url(../images/align-left-2x.png?ver=20120916); background-size: 22px 15px; } .image-align-center-label { background-image: url(../images/align-center-2x.png?ver=20120916); background-size: 21px 15px; } .image-align-right-label { background-image: url(../images/align-right-2x.png?ver=20120916); background-size: 22px 15px; } } css/site-health.css000064400000014476152213653150010274 0ustar00/* Note: Any Site Health selectors that use duplicate styling from the Privacy settings screen are styled in the Privacy section of edit.css */ .health-check-body h2 { line-height: 1.4; } .health-check-body h3 { padding: 0; font-weight: 400; } .site-health-progress-wrapper { margin-bottom: 1rem; } .site-health-progress { display: inline-block; height: 20px; width: 20px; margin: 0; border-radius: 100%; position: relative; font-weight: 600; font-size: 0.4rem; } .site-health-progress-count { position: absolute; display: block; height: 80px; width: 80px; left: 50%; top: 50%; margin-top: -40px; margin-left: -40px; border-radius: 100%; line-height: 6.3; font-size: 2em; } .loading .site-health-progress svg #bar { stroke-dashoffset: 0; stroke: #c3c4c7; animation: loadingPulse 3s infinite ease-in-out; } .site-health-progress svg circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke: #c3c4c7; stroke-width: 2em; } .site-health-progress svg #bar { stroke-dashoffset: 565; stroke: #d63638; } .green .site-health-progress #bar { stroke: #00a32a; } .green .site-health-progress .site-health-progress-label { color: #00a32a; } .orange .site-health-progress #bar { stroke: #dba617; } .orange .site-health-progress .site-health-progress-label { color: #dba617; } .site-health-progress-label { font-weight: 600; line-height: 20px; margin-left: 0.3rem; } @keyframes loadingPulse { 0% { stroke: #c3c4c7; } 50% { stroke: var(--wp-admin-theme-color); } 100% { stroke: #c3c4c7; } } .health-check-tabs-wrapper { /* IE 11 */ display: -ms-inline-grid; -ms-grid-columns: 1fr 1fr 1fr 1fr; vertical-align: top; /* modern browsers */ display: inline-grid; grid-template-columns: 1fr 1fr 1fr 1fr; } .health-check-tabs-wrapper.tab-count-1 { grid-template-columns: 1fr; } .health-check-tabs-wrapper.tab-count-2 { grid-template-columns: 1fr 1fr; } .health-check-tabs-wrapper.tab-count-3 { grid-template-columns: 1fr 1fr 1fr; } .health-check-tab { display: block; /* IE 11 */ text-decoration: none; color: inherit; padding: 0.5rem 1rem 1rem; margin: 0 1rem; transition: box-shadow 0.5s ease-in-out; } .health-check-offscreen-nav-wrapper { position: relative; background: transparent; border: none; } .health-check-offscreen-nav-wrapper:focus .health-check-offscreen-nav { left: initial; } .health-check-offscreen-nav { display: none; position: absolute; padding-top: 10px; right: 0; top: 100%; width: 13rem; } .health-check-offscreen-nav-wrapper.visible .health-check-offscreen-nav { display: inline-block; } .health-check-offscreen-nav:before { position: absolute; content: ""; width: 0; height: 0; border-style: solid; border-width: 0 10px 5px; border-color: transparent transparent #ffffff; right: 20px; top: 5px; } .health-check-offscreen-nav .health-check-tab { background: #fff; box-shadow: 0 2px 5px 0 rgba( 0, 0, 0, 0.75 ); } .health-check-offscreen-nav .health-check-tab.active { box-shadow: inset 3px 0 #3582c4; font-weight: 600; } .health-check-body { max-width: 800px; margin: 0 auto; } .widefat.health-check-table th { font-size: 13px; } .health-check-table td:first-child { width: 30%; } .health-check-table td { width: 70%; } .health-check-table ul, .health-check-table ol { margin: 0; } .health-check-body li { line-height: 1.5; } .health-check-body .pass::before, .health-check-body .good::before { content: "\f147"; content: "\f147" / ''; color: #00a32a; } .health-check-body .warning::before { content: "\f460"; content: "\f460" / ''; color: #dba617; } .health-check-body .info::before { content: "\f348"; content: "\f348" / ''; color: #72aee6; } .health-check-body .fail::before, .health-check-body .error::before { content: "\f335"; content: "\f335" / ''; color: #d63638; } .site-health-copy-buttons { margin: 1rem 0; } .site-health-copy-buttons .copy-button-wrapper { display: inline-flex; align-items: center; margin: 0.5rem 0 1rem; } .site-health-copy-buttons .success { color: #007017; margin-left: 0.5rem; } .site-status-has-issues.hide { display: none; } .site-health-view-more { text-align: center; } .site-health-issues-wrapper:first-of-type { margin-top: 3rem; } .site-health-issues-wrapper { margin-bottom: 3rem; margin-top: 2rem; } .site-status-all-clear { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; width: 100%; margin: 0 0 3rem; } @media all and (min-width: 784px) { .site-status-all-clear { margin: 2rem 0 5rem; } } .site-status-all-clear.hide { display: none; } .site-status-all-clear .dashicons { font-size: 150px; height: 150px; margin-bottom: 2rem; width: 150px; } .site-status-all-clear .encouragement { font-size: 1.5rem; font-weight: 600; } .site-status-all-clear p { margin: 0; } .wp-core-ui .button.site-health-view-passed { position: relative; padding-right: 40px; padding-left: 20px; } .health-check-wp-paths-sizes.spinner { visibility: visible; float: none; margin: 0 4px; flex-shrink: 0; } /* Styling unique to the dashboard widget. */ #dashboard_site_health .site-health-details { padding-left: 16px; } #dashboard_site_health .site-health-details p:first-child { margin-top: 0; } #dashboard_site_health .site-health-details p:last-child { margin-bottom: 0; } #dashboard_site_health .health-check-widget { display: grid; grid-template-columns: 1fr 2fr; grid-auto-rows: minmax(64px, auto); column-gap: 16px; align-items: center; } #dashboard_site_health .site-health-progress-label { margin-left: 0; } .health-check-widget-title-section { margin-bottom: 0; text-align: center; } @media screen and (max-width: 480px) { #dashboard_site_health .health-check-widget { grid-template-columns: 100%; } } @media screen and (max-width: 782px) { .site-health-issues-wrapper .health-check-accordion-trigger { flex-direction: column; align-items: flex-start; } .health-check-accordion-trigger .badge { margin: 1em 0 0; } .health-check-table { table-layout: fixed; } .health-check-table th, .health-check-table td { box-sizing: border-box; display: block; width: 100%; word-wrap: break-word; } .widefat.health-check-table th, .health-check-table td:first-child { width: 100%; padding-bottom: 0; font-weight: 600; } .wp-core-ui .site-health-copy-buttons .copy-button { margin-bottom: 0; } } css/customize-widgets.css000064400000032365152213653150011550 0ustar00.wp-full-overlay-sidebar { overflow: visible; } /** * Hide all sidebar sections by default, only show them (via JS) once the * preview loads and we know whether the sidebars are used in the template. */ .control-section.control-section-sidebar, .customize-control-sidebar_widgets label, .customize-control-sidebar_widgets .hide-if-js { /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */ display: none; } .control-section.control-section-sidebar .accordion-section-content.ui-sortable { overflow: visible; } /* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */ .customize-control-widget_form .widget-top { background: #fff; transition: opacity 0.5s; } .customize-control .widget-action { color: #787c82; } .customize-control .widget-top:hover .widget-action, .customize-control .widget-action:focus { color: #1d2327; } .customize-control-widget_form:not(.widget-rendered) .widget-top { opacity: 0.5; } .customize-control-widget_form .widget-control-save { display: none; } .customize-control-widget_form .spinner { visibility: hidden; margin-top: 0; } .customize-control-widget_form.previewer-loading .spinner { visibility: visible; } .customize-control-widget_form.widget-form-disabled .widget-content { opacity: 0.7; pointer-events: none; -webkit-user-select: none; user-select: none; } .customize-control-widget_form .widget { margin-bottom: 0; } .customize-control-widget_form.wide-widget-control .widget-inside { position: fixed; left: 299px; top: 25%; border: 1px solid #dcdcde; overflow: auto; } .customize-control-widget_form.wide-widget-control .widget-inside > .form { padding: 20px; } .customize-control-widget_form.wide-widget-control .widget-top { transition: background-color 0.4s; } .customize-control-widget_form.wide-widget-control.expanding .widget-top, .customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top { background-color: #dcdcde; } .widget-inside { padding: 1px 10px 10px; border-top: none; line-height: 1.23076923; } .customize-control-widget_form.expanded .widget-action .toggle-indicator:before { content: "\f142"; } .customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before { content: "\f139"; } .customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before { content: "\f141"; } .widget-title-action { cursor: pointer; } .widget-top, .customize-control-widget_form .widget .customize-control-title { cursor: move; } .control-section.accordion-section.highlighted > .accordion-section-title, .customize-control-widget_form.highlighted { outline: none; box-shadow: 0 0 2px rgba(79, 148, 212, 0.8); position: relative; z-index: 1; } #widget-customizer-control-templates { display: none; } /** * Widget reordering styles */ #customize-theme-controls .widget-reorder-nav { display: none; float: right; background-color: #f6f7f7; } .move-widget:before { content: "\f504"; content: "\f504" / ''; } #customize-theme-controls .move-widget-area { display: none; background: #fff; border: 1px solid #c3c4c7; border-top: none; cursor: auto; } #customize-theme-controls .reordering .move-widget-area.active { display: block; } #customize-theme-controls .move-widget-area .description { margin: 0; padding: 15px 20px; font-weight: 400; } #customize-theme-controls .widget-area-select { margin: 0; padding: 0; list-style: none; } #customize-theme-controls .widget-area-select li { position: relative; margin: 0; padding: 13px 15px 15px 42px; color: #50575e; border-top: 1px solid #c3c4c7; cursor: pointer; -webkit-user-select: none; user-select: none; } #customize-theme-controls .widget-area-select li:before { display: none; content: "\f147"; content: "\f147" / ''; position: absolute; top: 12px; left: 10px; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #customize-theme-controls .widget-area-select li:last-child { border-bottom: 1px solid #c3c4c7; } #customize-theme-controls .widget-area-select .selected { color: #fff; background: var(--wp-admin-theme-color); } #customize-theme-controls .widget-area-select .selected:before { display: block; } #customize-theme-controls .move-widget-actions { text-align: right; padding: 12px; } #customize-theme-controls .reordering .widget-title-action { display: none; } #customize-theme-controls .reordering .widget-reorder-nav { display: block; } /* Text Widget */ .wp-customizer div.mce-inline-toolbar-grp, .wp-customizer div.mce-tooltip { z-index: 500100 !important; } .wp-customizer .ui-autocomplete.wplink-autocomplete { z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */ } .wp-customizer #wp-link-backdrop { z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */ } .wp-customizer #wp-link-wrap { z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */ } /** * Styles for new widget addition panel */ /* override widgets admin page rules in wp-admin/css/widgets.css */ #widgets-left #available-widgets .widget { float: none !important; width: auto !important; } /* Keep rule that is no longer necessary on widgets.php. */ #available-widgets .widget-action { display: none; } .ios #available-widgets { transition: left 0s; } #available-widgets .widget-tpl:hover, #available-widgets .widget-tpl.selected { background: #f6f7f7; border-bottom-color: #c3c4c7; color: var(--wp-admin-theme-color);; border-left: 4px solid var(--wp-admin-theme-color); } #customize-controls .widget-title h3 { font-size: 1em; } #available-widgets .widget-title h3 { padding: 0 0 5px; font-size: 14px; } #available-widgets .widget .widget-description { padding: 0; color: #646970; } @media (prefers-reduced-motion: no-preference) { #customize-preview { transition: all 0.2s; } } body.adding-widget #available-widgets { left: 0; visibility: visible; } body.adding-widget .wp-full-overlay-main { left: 300px; } body.adding-widget #customize-preview { opacity: 0.4; } /** * Widget Icon styling * No plurals in naming. * Ordered from lowest to highest specificity. */ #available-widgets .widget-title { position: relative; } #available-widgets .widget-title:before { content: "\f132"; content: "\f132" / ''; position: absolute; top: -3px; right: 100%; margin-right: 20px; width: 20px; height: 20px; color: #2c3338; font: normal 20px/1 dashicons; text-align: center; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* dashicons-smiley */ #available-widgets [class*="easy"] .widget-title:before { content: "\f328"; content: "\f328" / ''; top: -4px; } /* dashicons-star-filled */ #available-widgets [class*="super"] .widget-title:before, #available-widgets [class*="like"] .widget-title:before { content: "\f155"; content: "\f155" / ''; top: -4px; } /* dashicons-wordpress */ #available-widgets [class*="meta"] .widget-title:before { content: "\f120"; content: "\f120" / ''; } /* dashicons-archive */ #available-widgets [class*="archives"] .widget-title:before { content: "\f480"; content: "\f480" / ''; top: -4px; } /* dashicons-category */ #available-widgets [class*="categor"] .widget-title:before { content: "\f318"; content: "\f318" / ''; top: -4px; } /* dashicons-admin-comments */ #available-widgets [class*="comment"] .widget-title:before, #available-widgets [class*="testimonial"] .widget-title:before, #available-widgets [class*="chat"] .widget-title:before { content: "\f101"; content: "\f101" / ''; } /* dashicons-admin-post */ #available-widgets [class*="post"] .widget-title:before { content: "\f109"; content: "\f109" / ''; } /* dashicons-admin-page */ #available-widgets [class*="page"] .widget-title:before { content: "\f105"; content: "\f105" / ''; } /* dashicons-text */ #available-widgets [class*="text"] .widget-title:before { content: "\f478"; content: "\f478" / ''; } /* dashicons-admin-links */ #available-widgets [class*="link"] .widget-title:before { content: "\f103"; content: "\f103" / ''; } /* dashicons-search */ #available-widgets [class*="search"] .widget-title:before { content: "\f179"; content: "\f179" / ''; } /* dashicons-menu */ #available-widgets [class*="menu"] .widget-title:before, #available-widgets [class*="nav"] .widget-title:before { content: "\f333"; content: "\f333" / ''; } /* dashicons-tagcloud */ #available-widgets [class*="tag"] .widget-title:before { content: "\f479"; content: "\f479" / ''; } /* dashicons-rss */ #available-widgets [class*="rss"] .widget-title:before { content: "\f303"; content: "\f303" / ''; top: -6px; } /* dashicons-calendar */ #available-widgets [class*="event"] .widget-title:before, #available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; content: "\f145" / ''; top: -4px; } /* dashicons-format-image */ #available-widgets [class*="image"] .widget-title:before, #available-widgets [class*="photo"] .widget-title:before, #available-widgets [class*="slide"] .widget-title:before, #available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; content: "\f128" / ''; } /* dashicons-format-gallery */ #available-widgets [class*="album"] .widget-title:before, #available-widgets [class*="galler"] .widget-title:before { content: "\f161"; content: "\f161" / ''; } /* dashicons-format-video */ #available-widgets [class*="video"] .widget-title:before, #available-widgets [class*="tube"] .widget-title:before { content: "\f126"; content: "\f126" / ''; } /* dashicons-format-audio */ #available-widgets [class*="music"] .widget-title:before, #available-widgets [class*="radio"] .widget-title:before, #available-widgets [class*="audio"] .widget-title:before { content: "\f127"; content: "\f127" / ''; } /* dashicons-admin-users */ #available-widgets [class*="login"] .widget-title:before, #available-widgets [class*="user"] .widget-title:before, #available-widgets [class*="member"] .widget-title:before, #available-widgets [class*="avatar"] .widget-title:before, #available-widgets [class*="subscriber"] .widget-title:before, #available-widgets [class*="profile"] .widget-title:before, #available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; content: "\f110" / ''; } /* dashicons-cart */ #available-widgets [class*="commerce"] .widget-title:before, #available-widgets [class*="shop"] .widget-title:before, #available-widgets [class*="cart"] .widget-title:before { content: "\f174"; content: "\f174" / ''; top: -4px; } /* dashicons-shield */ #available-widgets [class*="secur"] .widget-title:before, #available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; content: "\f332" / ''; } /* dashicons-chart-bar */ #available-widgets [class*="analytic"] .widget-title:before, #available-widgets [class*="stat"] .widget-title:before, #available-widgets [class*="poll"] .widget-title:before { content: "\f185"; content: "\f185" / ''; } /* dashicons-feedback */ #available-widgets [class*="form"] .widget-title:before { content: "\f175"; content: "\f175" / ''; } /* dashicons-email-alt */ #available-widgets [class*="subscribe"] .widget-title:before, #available-widgets [class*="news"] .widget-title:before, #available-widgets [class*="contact"] .widget-title:before, #available-widgets [class*="mail"] .widget-title:before { content: "\f466"; content: "\f466" / ''; } /* dashicons-share */ #available-widgets [class*="share"] .widget-title:before, #available-widgets [class*="socia"] .widget-title:before { content: "\f237"; content: "\f237" / ''; } /* dashicons-translation */ #available-widgets [class*="lang"] .widget-title:before, #available-widgets [class*="translat"] .widget-title:before { content: "\f326"; content: "\f326" / ''; } /* dashicons-location-alt */ #available-widgets [class*="locat"] .widget-title:before, #available-widgets [class*="map"] .widget-title:before { content: "\f231"; content: "\f231" / ''; } /* dashicons-download */ #available-widgets [class*="download"] .widget-title:before { content: "\f316"; content: "\f316" / ''; } /* dashicons-cloud */ #available-widgets [class*="weather"] .widget-title:before { content: "\f176"; content: "\f176" / ''; top: -4px; } /* dashicons-facebook */ #available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; content: "\f304" / ''; } /* dashicons-twitter */ #available-widgets [class*="tweet"] .widget-title:before, #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; content: "\f301" / ''; } @media screen and (max-height: 700px) and (min-width: 981px) { /* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */ .customize-control-widget_form { margin-bottom: 0; } .widget-top { box-shadow: none; margin-top: -1px; } .widget-top:hover { position: relative; z-index: 1; } .last-widget { margin-bottom: 15px; } .widget-title h3 { padding: 13px 15px; } .widget-top .widget-action { padding: 8px 10px; } .widget-reorder-nav span { height: 39px; } .widget-reorder-nav span:before { line-height: 39px; } /* Compact the move widget areas. */ #customize-theme-controls .widget-area-select li { padding: 9px 15px 11px 42px; } #customize-theme-controls .widget-area-select li:before { top: 8px; } } css/media-rtl.min.css000064400000054246152213653150010524 0ustar00/*! This file is auto-generated */ .media-item .describe{border-collapse:collapse;width:100%;border-top:1px solid #dcdcde;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:right;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 0 8px 8px;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 10px 0 0}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}.media-list-subtitle{display:block}.media-list-title{display:block}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-left:6px;margin-right:2px}.media-upload-form .align .field label{display:inline;padding:0 23px 0 0;margin:0 3px 0 1em;font-weight:600}.media-upload-form tr.image-size label{margin:0 5px 0 0;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 5px 0 0}.describe-toggle-off,.describe-toggle-on{display:block;line-height:2.76923076;float:left;margin-left:10px}.media-item .attachment-tools{display:flex;align-items:center}.media-item .edit-attachment{padding:14px 0;display:block;margin-left:10px}.media-item .edit-attachment.copy-to-clipboard-container{display:flex;margin-top:0}.media-item-copy-container .success{line-height:0}.media-item button .copy-attachment-url{margin-top:14px}.media-item .copy-to-clipboard-container{margin-top:7px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.media-upload-form .media-item{min-height:70px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{box-shadow:0 1px 0 #dcdcde}#media-items:empty{border:0 none}.media-item .filename{padding:14px 2px;overflow:hidden;margin-right:4px}.media-item .pinkynail{float:right;margin:14px;max-height:70px;max-width:70px}.media-item .startclosed,.media-item .startopen{display:none}.media-item .progress{display:inline-block;height:22px;margin:0 6px 7px;width:200px;line-height:2em;padding:0;overflow:hidden;border-radius:22px;background:#dcdcde;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;border-radius:22px;background-color:#2271b1;box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}#html-upload-ui #async-upload{font-size:1em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 14px 10px 0;min-height:50px}.media-item .error-div button.dismiss{float:left;margin:0 15px 0 10px}.find-box{background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-right:-300px;position:fixed;top:30px;bottom:30px;right:50%;z-index:100105}.find-box-head{background:#fff;border-bottom:1px solid #dcdcde;height:36px;font-size:18px;font-weight:600;line-height:2;padding:0 16px 0 36px;position:absolute;top:0;right:0;left:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;right:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:right}#find-posts-input{width:140px;height:28px;margin:0 0 0 4px}.widefat .found-radio{padding-left:0;width:16px}#find-posts-close{width:36px;height:36px;border:none;padding:0;position:absolute;top:0;left:0;cursor:pointer;text-align:center;background:0 0;color:#646970}#find-posts-close:focus,#find-posts-close:hover{color:var(--wp-admin-theme-color-darker-20,#183ad6)}#find-posts-close:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent;outline-offset:-2px}#find-posts-close:before{font:normal 20px/36px dashicons;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f158";content:"\f158"/''}.find-box-buttons{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;right:0;left:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;right:0;left:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background:#000;opacity:.7;z-index:100100}.drag-drop #drag-drop-area{border:4px dashed #c3c4c7;height:200px}.drag-drop .drag-drop-inside{margin:60px auto 0;width:250px}.drag-drop-inside p{font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#9ec2e6}#plupload-upload-ui{position:relative}.post-type-attachment .wp-filter select{margin:0 0 0 6px}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,.media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title{display:none}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-top:12px;padding:0 16px;border-right:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;left:auto;right:auto;bottom:auto;padding-top:0;margin-top:20px;border:4px dashed #c3c4c7}.media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,.media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent;outline-offset:-6px}.media-frame.mode-grid .selected.attachment{box-shadow:inset 0 0 0 5px #f0f0f1,inset 0 0 0 7px #c3c4c7}.media-frame.mode-grid .attachment.details{box-shadow:inset 0 0 0 3px #f0f0f1,inset 0 0 0 7px var(--wp-admin-theme-color,#3858e9)}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar label:not(.media-search-input-label){border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}.media-frame.mode-grid .media-toolbar select{margin:0 0 0 10px;min-height:32px;line-height:2.14285714;padding:0 8px 0 24px}.media-frame.mode-grid .media-toolbar input[type=search]{min-height:32px;padding:0 8px}.media-frame.mode-grid .media-toolbar-secondary{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 0 0 8px;height:100%}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 0 0 10px}.media-frame.mode-grid .search{margin-top:0}.media-frame-content .media-search-input-label{vertical-align:baseline}.attachments-browser .media-toolbar-secondary>.media-button{margin-left:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;right:auto;left:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:"\f335";content:"\f335"/'';font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#787c82;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-right:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;left:0}.edit-attachment-frame .edit-media-header .left{left:102px}.edit-attachment-frame .edit-media-header .right{left:51px}.edit-attachment-frame .media-frame-title{right:0;left:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .right:focus,.upload-php .media-modal-close:focus{outline:2px solid transparent;outline-offset:-2px}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before{content:"\f345";content:"\f341"/''}.edit-attachment-frame .edit-media-header .right:before{content:"\f341";content:"\f345"/''}.edit-attachment-frame .edit-media-header [disabled],.edit-attachment-frame .edit-media-header [disabled]:hover{color:#c3c4c7;background:inherit;cursor:default}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{right:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;left:0;right:0;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:right;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin:0 auto 16px;max-width:100%;max-height:90%;max-height:calc(100% - 42px);background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.edit-attachment-frame .attachment-media-view .details-image.icon{background:0 0}.edit-attachment-frame .attachment-media-view .attachment-actions{text-align:center}.edit-attachment-frame .button{min-height:32px;line-height:2.30769231;padding:0 12px}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:4px 8px;line-height:1.42857143}.edit-attachment-frame .attachment-info{overflow:auto;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-right:1px solid #dcdcde;background:#f6f7f7}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dcdcde}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#646970}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.copy-to-clipboard-container{display:flex;align-items:center;margin-top:8px;clear:both}.copy-to-clipboard-container .copy-attachment-url{white-space:normal}.copy-to-clipboard-container .success{color:#007017;margin-right:8px}.wp_attachment_details .attachment-alt-text{margin-bottom:5px}.wp_attachment_details #attachment_alt{max-width:500px;height:3.28571428em}.wp_attachment_details .attachment-alt-text-description{margin-top:5px}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative;padding-top:10px}.image-editor fieldset,.image-editor p{margin:8px 0}.image-editor legend{margin-bottom:5px}.describe .imgedit-wrap .image-editor{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto}.imgedit-panel-content{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}.imgedit-settings{max-width:240px}.imgedit-group-controls>*{display:none}.imgedit-panel-active .imgedit-group-controls>*{display:block}.imgedit-panel-active .imgedit-group-controls>.imgedit-crop-apply{display:flex}.imgedit-crop-apply{gap:4px;flex-wrap:wrap}.wp_attachment_holder .imgedit-wrap .image-editor{float:left;width:250px}.image-editor input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;bottom:0;width:100%;background:#fff;opacity:.7;display:none}.imgedit-wait:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;margin:-10px -10px 0 0;background:transparent url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}.no-float{float:none}.image-editor .disabled,.media-disabled{color:#a7aaad}.A1B1{overflow:hidden}.A1B1 .button,.wp_attachment_image .button{float:right}.no-js .wp_attachment_image .button{display:none}.A1B1 .spinner,.wp_attachment_image .spinner{float:right}.imgedit-menu .note-no-rotate{clear:both;margin:0;padding:1em 0 0}.imgedit-menu .button:after,.imgedit-menu .button:before{font:normal 16px/1 dashicons;margin-left:8px;vertical-align:middle;position:relative;top:-2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.imgedit-menu .imgedit-rotate.button:after{content:'\f140';margin-right:2px;margin-left:0}.imgedit-menu .imgedit-rotate.button[aria-expanded=true]:after{content:'\f142'}.imgedit-menu .button.disabled{color:#a7aaad;border-color:#dcdcde;background:#f6f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.imgedit-crop:before{content:"\f165";content:"\f165"/''}.imgedit-scale:before{content:"\f211";content:"\f211"/''}.imgedit-rotate:before{content:"\f167";content:"\f167"/''}.imgedit-undo:before{content:"\f171";content:"\f171"/''}.imgedit-redo:before{content:"\f172";content:"\f172"/''}.imgedit-crop-wrap{position:relative}.imgedit-crop-wrap img{background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.imgedit-crop-wrap{padding:20px;background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.imgedit-crop{margin:0 0 0 8px}.imgedit-rotate{margin:0 3px 0 8px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 3px 0 8px}.imgedit-thumbnail-preview-group{display:flex;flex-wrap:wrap;column-gap:10px}.imgedit-thumbnail-preview{margin:10px 0 0 8px}.imgedit-thumbnail-preview-caption{display:block}#poststuff .imgedit-group-top h2{display:inline-block;margin:0;padding:0;font-size:14px;line-height:1.4}#poststuff .imgedit-group-top .button-link{text-decoration:none;color:#1d2327}.imgedit-applyto .imgedit-label{display:block;padding:.5em 0 0}.imgedit-help,.imgedit-popup-menu{display:none;padding-bottom:8px}.imgedit-panel-tools>.imgedit-menu{display:flex;column-gap:4px;align-items:flex-start;flex-wrap:wrap}.imgedit-popup-menu{width:calc(100% - 20px);position:absolute;background:#fff;padding:10px;box-shadow:0 3px 6px rgba(0,0,0,.3)}.image-editor .imgedit-menu .imgedit-popup-menu button{display:block;margin:2px 0;width:100%;white-space:break-spaces;line-height:1.5;padding-top:3px;padding-bottom:2px}.imgedit-rotate-menu-container{position:relative}.imgedit-help.imgedit-restore{padding-bottom:0}.image-editor .imgedit-settings .imgedit-help-toggle,.image-editor .imgedit-settings .imgedit-help-toggle:active,.image-editor .imgedit-settings .imgedit-help-toggle:hover{border:1px solid transparent;margin:-1px -1px 0 0;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.image-editor .imgedit-settings .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.form-table td.imgedit-response{padding:0}.imgedit-submit-btn{margin-right:20px}.imgedit-wrap .nowrap{white-space:nowrap;font-size:12px;line-height:inherit}span.imgedit-scale-warn{display:flex;align-items:center;margin:4px;gap:4px;color:#b32d2e;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-save-target{margin:8px 0}.imgedit-save-target legend{font-weight:600}.imgedit-group{margin-bottom:20px}.image-editor .imgedit-original-dimensions{display:inline-block}.image-editor .imgedit-crop-ratio input[type=number],.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=number],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale-controls input[type=number],.image-editor .imgedit-scale-controls input[type=text]{width:80px;font-size:14px;padding:0 8px}.imgedit-separator{display:inline-block;width:7px;text-align:center;font-size:13px;color:#3c434a}.image-editor .imgedit-scale-button-wrapper{margin-top:.3077em;display:block}.image-editor .imgedit-scale-controls .button{margin-bottom:0}audio,video{display:inline-block;max-width:100%}.wp-core-ui .mejs-container{width:100%;max-width:100%}.wp-core-ui .mejs-container *{box-sizing:border-box}.wp-core-ui .mejs-time{box-sizing:content-box}@media print,(min-resolution:120dpi){.imgedit-wait:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.edit-attachment-frame input,.edit-attachment-frame textarea{line-height:1.5}.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5}.wp_attachment_details textarea{line-height:1.5}.wp_attachment_details #attachment_alt{height:3.375em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 12px 10px 0}.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale input[type=text]{font-size:16px;padding:6px 10px}.wp_attachment_holder .imgedit-wrap .image-editor,.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{float:none;width:auto;max-width:none;padding-bottom:16px}.copy-to-clipboard-container .success{font-size:14px}.imgedit-crop-wrap img{width:100%}.media-modal .imgedit-wrap .image-editor,.media-modal .imgedit-wrap .imgedit-panel-content{position:initial!important}.media-modal .imgedit-wrap .image-editor{box-sizing:border-box;width:100%!important}.image-editor .imgedit-scale-button-wrapper{display:inline-block}}@media only screen and (max-width:600px){.media-item-wrapper{grid-template-columns:1fr}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:1000px){.wp-filter p.search-box{float:none;width:100%;margin-bottom:20px;display:flex;flex-wrap:nowrap;column-gap:0}.wp-filter p.search-box #media-search-input{width:100%}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;left:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{left:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{left:82px}.edit-attachment-frame .edit-media-header .right{left:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}}@media only screen and (max-width:375px){.media-item .attachment-tools{align-items:baseline}.media-item .edit-attachment.copy-to-clipboard-container{flex-direction:column}.copy-to-clipboard-container .success{line-height:normal;margin-top:10px}}css/list-tables.css000064400000131251152213653150010277 0ustar00.response-links { display: block; margin-bottom: 1em; } .response-links a { display: block; } .response-links a.comments-edit-item-link { font-weight: 600; } .response-links a.comments-view-item-link { font-size: 12px; } .post-com-count-wrapper strong { font-weight: 400; } .comments-view-item-link { display: inline-block; clear: both; } .column-response .post-com-count-wrapper, .column-comments .post-com-count-wrapper { white-space: nowrap; word-wrap: normal; } /* comments bubble common */ .column-response .post-com-count, .column-comments .post-com-count { display: inline-block; vertical-align: top; } /* comments bubble approved */ .column-response .post-com-count-no-comments, .column-response .post-com-count-approved, .column-comments .post-com-count-no-comments, .column-comments .post-com-count-approved { margin-top: 5px; } .column-response .comment-count-no-comments, .column-response .comment-count-approved, .column-comments .comment-count-no-comments, .column-comments .comment-count-approved { box-sizing: border-box; display: block; padding: 0 8px; min-width: 24px; height: 2em; border-radius: 5px; background-color: #646970; color: #fff; font-size: 11px; line-height: 1.90909090; text-align: center; } .column-response .post-com-count-no-comments:after, .column-response .post-com-count-approved:after, .column-comments .post-com-count-no-comments:after, .column-comments .post-com-count-approved:after { content: ""; display: block; margin-left: 8px; width: 0; height: 0; border-top: 5px solid #646970; border-right: 5px solid transparent; } .column-response a.post-com-count-approved:hover .comment-count-approved, .column-response a.post-com-count-approved:focus .comment-count-approved, .column-comments a.post-com-count-approved:hover .comment-count-approved, .column-comments a.post-com-count-approved:focus .comment-count-approved { background: #3858e9; } .column-response a.post-com-count-approved:hover:after, .column-response a.post-com-count-approved:focus:after, .column-comments a.post-com-count-approved:hover:after, .column-comments a.post-com-count-approved:focus:after { border-top-color: #3858e9; } /* @todo: consider to use a single rule for these counters and the admin menu counters. */ .column-response .post-com-count-pending, .column-comments .post-com-count-pending { position: relative; left: -3px; padding: 0 5px; min-width: 7px; height: 17px; border: 2px solid #fff; border-radius: 11px; background: #d63638; color: #fff; font-size: 9px; line-height: 1.88888888; text-align: center; } .column-response .post-com-count-no-pending, .column-comments .post-com-count-no-pending { display: none; } /* comments */ .commentlist li { padding: 1em 1em .2em; margin: 0; border-bottom: 1px solid #c3c4c7; } .commentlist li li { border-bottom: 0; padding: 0; } .commentlist p { padding: 0; margin: 0 0 .8em; } #submitted-on, .submitted-on { color: #50575e; } /* reply to comments */ #replyrow td { padding: 2px; } #replysubmit { margin: 0; padding: 5px 7px 10px; overflow: hidden; } #replysubmit .reply-submit-buttons { margin-bottom: 0; } #replysubmit .button { margin-right: 5px; } #replysubmit .spinner { float: none; margin: -4px 0 0; } #replyrow.inline-edit-row fieldset.comment-reply { font-size: inherit; line-height: inherit; } #replyrow legend { margin: 0; padding: .2em 5px 0; font-size: 13px; line-height: 1.4; font-weight: 600; } #replyrow.inline-edit-row label { display: inline; vertical-align: baseline; line-height: inherit; } #edithead .inside, #commentsdiv #edithead .inside { float: left; padding: 3px 0 2px 5px; margin: 0; text-align: center; } #edithead .inside input { width: 180px; } #edithead label { padding: 2px 0; } #replycontainer { padding: 5px; } #replycontent { height: 120px; box-shadow: none; } #replyerror { border-color: #dcdcde; background-color: #f6f7f7; } /* @todo: is this used? */ .commentlist .avatar { vertical-align: text-top; } #the-comment-list tr.undo, #the-comment-list div.undo { background-color: #f6f7f7; } #the-comment-list .unapproved th, #the-comment-list .unapproved td { background-color: #fcf9e8; } #the-comment-list .unapproved th.check-column { border-left: 4px solid #d63638; } #the-comment-list .unapproved th.check-column input { margin-left: 4px; } #the-comment-list .approve a { color: #007017; } #the-comment-list .unapprove a { color: #996800; } #the-comment-list th, #the-comment-list td { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } #the-comment-list tr:last-child th, #the-comment-list tr:last-child td { box-shadow: none; } #the-comment-list tr.unapproved + tr.approved th, #the-comment-list tr.unapproved + tr.approved td { border-top: 1px solid rgba(0, 0, 0, 0.03); } /* table vim shortcuts */ .vim-current, .vim-current th, .vim-current td { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08) !important; } th .comment-grey-bubble { width: 16px; /* Make sure the link clickable area fills the entire table header. */ position: relative; top: 2px; } th .comment-grey-bubble:before { content: "\f101"; content: "\f101" / ''; font: normal 20px/.5 dashicons; display: inline-block; padding: 0; top: 4px; left: -4px; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #3c434a; } /*------------------------------------------------------------------------------ 10.0 - List Posts (/Pages/etc) ------------------------------------------------------------------------------*/ table.fixed { table-layout: fixed; } .fixed .column-rating, .fixed .column-visible { width: 8%; } .fixed .column-posts, .fixed .column-parent, .fixed .column-links, .fixed .column-author, .fixed .column-format { width: 10%; } .fixed .column-date { width: 14%; } .column-date span[title] { -webkit-text-decoration: dotted underline; text-decoration: dotted underline; } .fixed .column-posts { width: 74px; } .fixed .column-role, .fixed .column-posts { hyphens: auto; } .fixed .column-comment .comment-author { display: none; } .fixed .column-response, .fixed .column-categories, .fixed .column-tags, .fixed .column-rel, .fixed .column-role { width: 15%; } .fixed .column-slug { width: 25%; } .fixed .column-locations { width: 35%; } .fixed .column-comments { width: 5.5em; text-align: left; } .fixed .column-comments .vers { padding-left: 3px; } td.column-title strong, td.plugin-title strong { display: block; margin-bottom: .2em; font-size: 14px; } td.column-title p, td.plugin-title p { margin: 6px 0; } /* Media file column */ table.media .column-title .media-icon { float: left; min-height: 60px; margin: 0 9px 0 0; } table.media .column-title .media-icon img { max-width: 60px; height: auto; vertical-align: top; /* Remove descender white-space. */ } table.media .column-title .has-media-icon ~ .row-actions { margin-left: 70px; /* 60px image + margin */ } table.media .column-title .filename { margin-bottom: 0.2em; } /* Media Copy to clipboard row action */ .media .row-actions .copy-to-clipboard-container { display: inline; position: relative; } .media .row-actions .copy-to-clipboard-container .success { position: absolute; left: 50%; transform: translate(-50%, -100%); background: #000; color: #fff; border-radius: 5px; margin: 0; padding: 2px 5px; } /* @todo: pick a consistent list table selector */ .wp-list-table a { transition: none; } #the-list tr:last-child td, #the-list tr:last-child th { border-bottom: none !important; box-shadow: none; } #comments-form .fixed .column-author { width: 20%; } #commentsdiv.postbox .inside { margin: 0; padding: 0; } #commentsdiv .inside .row-actions { line-height: 1.38461538; } #commentsdiv .inside .column-author { width: 25%; } #commentsdiv .column-comment p { margin: 0.6em 0; padding: 0; } #commentsdiv #replyrow td { padding: 0; } #commentsdiv p { padding: 8px 10px; margin: 0; } #commentsdiv .comments-box { border: 0 none; } #commentsdiv .comments-box thead th, #commentsdiv .comments-box thead td { background: transparent; padding: 0 7px 4px; } #commentsdiv .comments-box tr:last-child td { border-bottom: 0 none; } #commentsdiv #edithead .inside input { width: 160px; } .sorting-indicators { display: grid; } .sorting-indicator { display: block; width: 10px; height: 4px; margin-top: 4px; margin-left: 7px; } .sorting-indicator:before { font: normal 20px/1 dashicons; display: inline-block; padding: 0; top: -4px; left: -8px; line-height: 0.5; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #a7aaad; } .sorting-indicator.asc:before { content: "\f142"; content: "\f142" / ''; } .sorting-indicator.desc:before { content: "\f140"; content: "\f140" / ''; } th.sorted.desc .sorting-indicator.desc:before { color: #1d2327; } th.sorted.asc .sorting-indicator.asc:before { color: #1d2327; } th.sorted.asc a:focus .sorting-indicator.asc:before, th.sorted.asc:hover .sorting-indicator.asc:before, th.sorted.desc a:focus .sorting-indicator.desc:before, th.sorted.desc:hover .sorting-indicator.desc:before { color: #a7aaad; } th.sorted.asc a:focus .sorting-indicator.desc:before, th.sorted.asc:hover .sorting-indicator.desc:before, th.sorted.desc a:focus .sorting-indicator.asc:before, th.sorted.desc:hover .sorting-indicator.asc:before { color: #1d2327; } .wp-list-table .toggle-row { position: absolute; right: 8px; top: 10px; display: none; padding: 0; width: 40px; height: 40px; border: none; outline: none; background: transparent; } .wp-list-table .toggle-row:hover { cursor: pointer; } .wp-list-table .toggle-row:focus:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wp-list-table .toggle-row:active { box-shadow: none; } .wp-list-table .toggle-row:before { position: absolute; top: -5px; left: 10px; border-radius: 50%; display: block; padding: 1px 2px 1px 0; color: #3c434a; /* same as table headers sort arrows */ content: "\f140"; content: "\f140" / ''; font: normal 20px/1 dashicons; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-list-table .is-expanded .toggle-row:before { content: "\f142"; content: "\f142" / ''; } .check-column { position: relative; } .check-column label { box-sizing: border-box; width: 100%; height: 100%; display: block; position: absolute; top: 0; left: 0; } .check-column input { position: relative; z-index: 1; } .check-column .label-covers-full-cell:hover + input:not(:disabled) { box-shadow: 0 0 0 1px #2271b1; } .check-column label:hover, .check-column input:hover + label { background: rgba(0, 0, 0, 0.05); } .locked-indicator { display: none; margin-left: 6px; height: 20px; width: 16px; } .locked-indicator-icon:before { color: #8c8f94; content: "\f160"; content: "\f160" / ''; display: inline-block; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .locked-info { display: none; margin-top: 4px; } .locked-text { vertical-align: top; } .wp-locked .locked-indicator, .wp-locked .locked-info { display: block; } tr.wp-locked .check-column label, tr.wp-locked .check-column input[type="checkbox"], tr.wp-locked .row-actions .inline, tr.wp-locked .row-actions .trash { display: none; } #menu-locations-wrap .widefat { width: 60%; } .widefat th.sortable, .widefat th.sorted { padding: 0; } th.sortable a, th.sorted a { display: block; overflow: hidden; padding: 8px; } th.sortable a:focus, th.sorted a:focus { border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } th.sortable a span, th.sorted a span { float: left; cursor: pointer; } .tablenav-pages .current-page { vertical-align: top; margin: 0 2px 0 0; font-size: 13px; text-align: center; min-height: 32px; padding: 0 8px; } .tablenav .total-pages { margin-right: 2px; } .tablenav #table-paging { margin-left: 2px; } .tablenav { clear: both; height: 32px; margin: 6px 0 4px; vertical-align: middle; } .tablenav.themes { max-width: 98%; } .tablenav .tablenav-pages { float: right; margin: 0 0 9px; } .tablenav .no-pages, .tablenav .one-page .pagination-links { display: none; } .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { display: inline-block; vertical-align: baseline; min-width: 32px; min-height: 32px; margin: 0; padding: 0 4px; font-size: 16px; line-height: 1.875; /* 30px for 32px height */ text-align: center; } .tablenav .displaying-num { margin-right: 7px; } .tablenav .one-page .displaying-num { display: inline-block; margin: 5px 0; } .tablenav .actions { padding: 0 8px 0 0; } .wp-filter .actions { display: inline-block; vertical-align: middle; } .tablenav .delete { margin-right: 20px; } /* This view-switcher is still used on multisite. */ .tablenav .view-switch { float: right; margin: 0 5px; padding-top: 3px; } .wp-filter .view-switch { display: inline-block; vertical-align: middle; padding: 12px 0; margin: 0 8px 0 2px; } .media-toolbar.wp-filter .view-switch { margin: 0 12px 0 2px; } .view-switch a { float: left; width: 28px; height: 28px; text-align: center; line-height: 1.84615384; text-decoration: none; } .view-switch a:before { color: #c3c4c7; display: inline-block; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .view-switch a:hover:before, .view-switch a:focus:before { color: #787c82; } .view-switch a.current:before { color: #2271b1; } .view-switch .view-list:before { content: "\f163"; content: "\f163" / ''; } .view-switch .view-excerpt:before { content: "\f164"; content: "\f164" / ''; } .view-switch .view-grid:before { content: "\f509"; content: "\f509" / ''; } .filter { float: left; margin: -5px 0 0 10px; } .filter .subsubsub { margin-left: -10px; margin-top: 13px; } .screen-per-page { width: 4em; } #posts-filter .wp-filter { margin-bottom: 0; } #posts-filter fieldset { float: left; margin: 0 1.5ex 1em 0; padding: 0; } #posts-filter fieldset legend { padding: 0 0 .2em 1px; } p.pagenav { margin: 0; display: inline; } .pagenav span { font-weight: 600; margin: 0 6px; } .row-title { font-size: 14px !important; font-weight: 600; } .column-comment .comment-author { margin-bottom: 0.6em; } .column-author img, .column-username img, .column-comment .comment-author img { float: left; margin-right: 10px; margin-top: 1px; } .row-actions { color: #646970; font-size: 13px; padding: 2px 0 0; position: relative; left: -9999em; } /* ticket #34150 */ .rtl .row-actions a { display: inline-block; } .row-actions .network_only, .row-actions .network_active { color: #000; } .no-js .row-actions, tr:hover .row-actions, .mobile .row-actions, .row-actions.visible, .comment-item:hover .row-actions { position: static; } /* deprecated */ .row-actions-visible { padding: 2px 0 0; } /*------------------------------------------------------------------------------ 10.1 - Inline Editing ------------------------------------------------------------------------------*/ /* .quick-edit* is for Quick Edit .bulk-edit* is for Bulk Edit .inline-edit* is for everything */ /* Layout */ #wpbody-content .inline-edit-row fieldset { float: left; margin: 0; padding: 0 12px 0 0; width: 100%; box-sizing: border-box; } #wpbody-content .inline-edit-row td fieldset:last-of-type { padding-right: 0; } tr.inline-edit-row td { padding: 0; /* Prevents the focus style on .inline-edit-wrapper from being cut-off */ position: relative; } .inline-edit-wrapper { display: flow-root; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; } .inline-edit-wrapper:focus { border-color: var(--wp-admin-theme-color, #3858e9); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #wpbody-content .quick-edit-row-post .inline-edit-col-left { width: 40%; } #wpbody-content .quick-edit-row-post .inline-edit-col-right { width: 39%; } #wpbody-content .inline-edit-row-post .inline-edit-col-center { width: 20%; } #wpbody-content .quick-edit-row-page .inline-edit-col-left { width: 50%; } #wpbody-content .quick-edit-row-page .inline-edit-col-right, #wpbody-content .bulk-edit-row-post .inline-edit-col-right { width: 50%; } #wpbody-content .bulk-edit-row .inline-edit-col-left { width: 30%; } #wpbody-content .bulk-edit-row-page .inline-edit-col-right { width: 69%; } #wpbody-content .bulk-edit-row .inline-edit-col-bottom { float: right; width: 69%; } #wpbody-content .inline-edit-row-page .inline-edit-col-right { margin-top: 27px; } .inline-edit-row fieldset .inline-edit-group { clear: both; line-height: 2.5; } .inline-edit-row .submit { display: flex; flex-wrap: wrap; align-items: center; clear: both; margin: 0; padding: 0.5em 0 1em; } .inline-edit-save.submit .button { margin-right: 8px; } .inline-edit-save .spinner { float: none; margin: 0; } .inline-edit-row .notice-error { box-sizing: border-box; min-width: 100%; margin-top: 1em; } .inline-edit-row .notice-error .error { margin: 0.5em 0; padding: 2px; } /* Positioning */ /* Needs higher specificity for the padding */ #the-list .inline-edit-row .inline-edit-legend { margin: 0; padding: 0.2em 0; line-height: 2.5; font-weight: 600; } .inline-edit-row fieldset span.title, .inline-edit-row fieldset span.checkbox-title { margin: 0; padding: 0; } .inline-edit-row fieldset label, .inline-edit-row fieldset span.inline-edit-categories-label { display: block; margin: .2em 0; line-height: 2.5; } .inline-edit-row fieldset.inline-edit-date label { display: inline-block; margin: 0; vertical-align: baseline; line-height: 2; } .inline-edit-row fieldset label.inline-edit-tags { margin-top: 0; } .inline-edit-row fieldset label.inline-edit-tags span.title { margin: .2em 0; width: auto; } .inline-edit-row fieldset label span.title, .inline-edit-row fieldset.inline-edit-date legend { display: block; float: left; width: 6em; line-height: 2.5; } #posts-filter fieldset.inline-edit-date legend { padding: 0; } .inline-edit-row fieldset label span.input-text-wrap, .inline-edit-row fieldset .timestamp-wrap { display: block; margin-left: 6em; } .quick-edit-row-post fieldset.inline-edit-col-right label span.title { width: auto; padding-right: 0.5em; } .inline-edit-row .inline-edit-or { margin: .2em 6px .2em 0; line-height: 2.5; } .inline-edit-row .input-text-wrap input[type=text] { width: 100%; } .inline-edit-row fieldset label input[type=checkbox] { vertical-align: middle; } .inline-edit-row fieldset label textarea { width: 100%; height: 4em; vertical-align: top; } .inline-edit-row select, .inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])) { min-height: 32px; padding: 0 8px 0 8px; } .inline-edit-row select { line-height: 2.14285714; /* 30px for 32px height with 14px font */ padding-right: 24px; } #wpbody-content .bulk-edit-row fieldset .inline-edit-group label { max-width: 50%; } #wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child { margin-right: 0.5em } .inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input { width: 6em; } /* Styling */ .inline-edit-row .inline-edit-legend { text-transform: uppercase; } /* Specific Elements */ .inline-edit-row fieldset .inline-edit-date { float: left; } .inline-edit-row fieldset input[name=jj], .inline-edit-row fieldset input[name=hh], .inline-edit-row fieldset input[name=mn], .inline-edit-row fieldset input[name=aa] { vertical-align: middle; text-align: center; padding: 0 4px; } .inline-edit-row fieldset label input.inline-edit-password-input { width: 8em; } #bulk-titles-list, #bulk-titles-list li, .inline-edit-row fieldset ul.cat-checklist li, .inline-edit-row fieldset ul.cat-checklist input { margin: 0; position: relative; /* RTL fix, #WP27629 */ } .inline-edit-row fieldset ul.cat-checklist input { margin-top: -1px; margin-left: 3px; } .inline-edit-row fieldset label input.inline-edit-menu-order-input { width: 3em; } .inline-edit-row fieldset label input.inline-edit-slug-input { width: 75%; } .inline-edit-row select[name="post_parent"], .inline-edit-row select[name="page_template"] { max-width: 80%; } .quick-edit-row-post fieldset label.inline-edit-status { float: left; } #bulk-titles, ul.cat-checklist { height: 14em; border: 1px solid #ddd; margin: 0 0 5px; padding: 0.2em 5px; overflow-y: scroll; } ul.cat-checklist input[name="post_category[]"]:indeterminate::before { content: ''; border-top: 2px solid grey; width: 65%; height: 2px; position: absolute; top: calc( 50% + 1px ); left: 50%; transform: translate( -50%, -50% ); } #bulk-titles .ntdelbutton, #bulk-titles .ntdeltitle, .inline-edit-row fieldset ul.cat-checklist label { display: inline-block; margin: 0; padding: 3px 0; line-height: 20px; vertical-align: top; } #bulk-titles .ntdelitem { padding-left: 23px; } #bulk-titles .ntdelbutton { width: 26px; height: 26px; margin: 0 0 0 -26px; text-align: center; border-radius: 3px; } #bulk-titles .ntdelbutton:before { display: inline-block; vertical-align: top; } #bulk-titles .ntdelbutton:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; /* Reset inherited offset from Gutenberg */ outline-offset: 0; } /*------------------------------------------------------------------------------ 17.0 - Plugins ------------------------------------------------------------------------------*/ .plugins tbody th.check-column, .plugins tbody { padding: 8px 0 0 2px; } .plugins tbody th.check-column input[type=checkbox] { margin-top: 4px; } .updates-table .plugin-title p { margin-top: 0; } .plugins thead td.check-column, .plugins tfoot td.check-column, .plugins .inactive th.check-column { padding-left: 6px; } .plugins, .plugins th, .plugins td { color: #000; } .plugins tr { background: #fff; } .plugins p { margin: 0 4px; padding: 0; } .plugins .desc p { margin: 0 0 8px; } .plugins td.desc { line-height: 1.5; } .plugins .desc ul, .plugins .desc ol { margin: 0 0 0 2em; } .plugins .desc ul { list-style-type: disc; } .plugins .row-actions { font-size: 13px; padding: 0; } .plugins .inactive td, .plugins .inactive th, .plugins .active td, .plugins .active th { padding: 10px 9px; } .plugins .active td, .plugins .active th { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .plugins .update th, .plugins .update td { border-bottom: 0; } .plugins .inactive td, .plugins .inactive th, .plugins .active td, .plugins .active th, .plugin-install #the-list td, .upgrade .plugins td, .upgrade .plugins th { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .plugins tr.active.plugin-update-tr + tr.inactive th, .plugins tr.active.plugin-update-tr + tr.inactive td, .plugins tr.active + tr.inactive th, .plugins tr.active + tr.inactive td { border-top: 1px solid rgba(0, 0, 0, 0.03); box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02), inset 0 -1px 0 #dcdcde; } .plugins .update td, .plugins .update th, .upgrade .plugins tr:last-of-type td, .upgrade .plugins tr:last-of-type th, .plugins tr.active + tr.inactive.update th, .plugins tr.active + tr.inactive.update td, .plugins .updated td, .plugins .updated th, .plugins tr.active + tr.inactive.updated th, .plugins tr.active + tr.inactive.updated td { box-shadow: none; } .plugins .active th.check-column, .plugin-update-tr.active td { border-left: 4px solid var(--wp-admin-theme-color); } .wp-list-table.plugins .plugin-title, .wp-list-table.plugins .theme-title { padding-right: 12px; white-space: nowrap; } .plugins .plugin-title .dashicons, .plugins .plugin-title img.plugin-icon, .plugins .plugin-title img.updates-table-screenshot { float: left; padding: 0 10px 0 0; width: 64px; height: 64px; } .plugins .plugin-title .dashicons:before { padding: 2px; background-color: #f0f0f1; box-shadow: inset 0 0 10px rgba(167, 170, 173, 0.15); font-size: 60px; color: #c3c4c7; } #update-themes-table .plugin-title img.updates-table-screenshot, #update-themes-table .plugin-title .dashicons { width: 85px; } .plugins .column-auto-updates { width: 14.2em; } .plugins .inactive .plugin-title strong { font-weight: 400; } .plugins .second, .plugins .row-actions { padding: 0 0 5px; } .plugins .row-actions { white-space: normal; min-width: 12em; } .plugins .update .second, .plugins .update .row-actions, .plugins .updated .second, .plugins .updated .row-actions { padding-bottom: 0; } .plugins-php .widefat tfoot th, .plugins-php .widefat tfoot td { border-top-style: solid; border-top-width: 1px; } .plugins .plugin-update-tr .plugin-update { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); overflow: hidden; /* clearfix */ padding: 0; } .plugins .plugin-update-tr .notice, .plugins .plugin-update-tr div[class="update-message"] { /* back-compat for pre-4.6 */ margin: 5px 20px 15px 40px; } .plugins .notice p { margin: 0.5em 0; } .plugins .plugin-description a, .plugins .plugin-update a, .updates-table .plugin-title a { text-decoration: underline; } .plugins tr.paused th.check-column { border-left: 4px solid #b32d2e; } .plugins tr.paused th, .plugins tr.paused td { background-color: #f6f7f7; } .plugins tr.paused .plugin-title, .plugins .paused .dashicons-warning { color: #b32d2e; } .plugins .paused .error-display p, .plugins .paused .error-display code { font-size: 90%; color: rgba(0, 0, 0, 0.7); } .plugins .resume-link { color: #b32d2e; } .plugin-card .update-now:before { color: #d63638; content: "\f463"; content: "\f463" / ''; display: inline-block; font: normal 16px/1.875 dashicons; /* line-height 1.875 = 30px to match button */ margin: 0 5px 0 -2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; } .plugin-card .updating-message:before { content: "\f463"; content: "\f463" / ''; animation: rotation 2s infinite linear; } @keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } } .plugin-card .updated-message:before { color: #68de7c; content: "\f147"; content: "\f147" / ''; } .plugin-card .updated-message:before, .plugin-card .updating-message:before { line-height: 1; position: relative; top: -2px; vertical-align: middle; } .plugin-install-php #the-list { display: flex; flex-wrap: wrap; } .plugin-install-php .plugin-card { display: flex; flex-direction: column; justify-content: space-between; } .plugin-install-php h2 { clear: both; } .plugin-install-php h3 { margin: 2.5em 0 8px; } .plugin-install-php .wp-filter { margin-bottom: 0; } /* Plugin card table view */ .plugin-group { overflow: hidden; /* clearfix */ margin-top: 1.5em; } .plugin-group h3 { margin-top: 0; } .plugin-card { float: left; margin: 0 8px 16px; width: 48.5%; width: calc( 50% - 8px ); background-color: #ffffff; border: 1px solid rgb(0, 0, 0, 0.1); border-radius: 8px; box-sizing: border-box; overflow: hidden; } .plugin-card:nth-child(odd) { clear: both; margin-left: 0; } .plugin-card:nth-child(even) { margin-right: 0; } @media screen and (min-width: 1600px) and ( max-width: 2299px ) { .plugin-card { width: 30%; width: calc( 33.1% - 8px ); } .plugin-card:nth-child(odd) { clear: none; margin-left: 8px; } .plugin-card:nth-child(even) { margin-right: 8px; } .plugin-card:nth-child(3n+1) { clear: both; margin-left: 0; } .plugin-card:nth-child(3n) { margin-right: 0; } } @media screen and (min-width: 2300px) { .plugin-card { width: 25%; width: calc( 25% - 12px ); } .plugin-card:nth-child(odd) { clear: none; margin-left: 8px; } .plugin-card:nth-child(even) { margin-right: 8px; } .plugin-card:nth-child(4n+1) { clear: both; margin-left: 0; } .plugin-card:nth-child(4n) { margin-right: 0; } } .plugin-card-top { position: relative; padding: 16px; min-height: 135px; } div.action-links, .plugin-action-buttons { margin: 0; /* Override existing margins */ } /* Use compact size for space-constrained plugin cards */ .plugin-action-buttons li .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px min-height */ padding: 0 12px; } .plugin-card h3 { margin: 0 12px 16px 0; font-size: 18px; line-height: 1.3; } .plugin-card .desc { margin-inline: 0; } .plugin-card .name, .plugin-card .desc > p { margin-left: 148px; } @media (min-width: 1101px) { .plugin-card .name, .plugin-card .desc > p { margin-right: 128px; } } @media (min-width: 481px) and (max-width: 781px) { .plugin-card .name, .plugin-card .desc > p { margin-right: 128px; } } .plugin-card .column-description { display: flex; flex-direction: column; justify-content: flex-start; } .plugin-card .column-description > p { margin-top: 0; } .plugin-card .column-description p:empty { display: none; } .plugin-card .notice.plugin-dependencies { margin: auto 20px 20px; padding: 15px; } .plugin-card .plugin-dependencies-explainer-text { margin-block: 0; } .plugin-card .plugin-dependency { align-items: center; display: flex; flex-wrap: wrap; margin-top: .5em; column-gap: 1%; row-gap: .5em; } .plugin-card .plugin-dependency:nth-child(2), .plugin-card .plugin-dependency:last-child { margin-top: 1em; } .plugin-card .plugin-dependency-name { flex-basis: 74%; } .plugin-card .plugin-dependency .more-details-link { margin-left: auto; } .rtl .plugin-card .plugin-dependency .more-details-link { margin-right: auto; } @media (max-width: 939px) { .plugin-card .plugin-dependency-name { flex-basis: 69%; } } .plugins #the-list .required-by, .plugins #the-list .requires { margin-top: 1em; } .plugin-card .action-links { position: absolute; top: 20px; right: 20px; width: 120px; } .plugin-action-buttons { clear: right; float: right; margin-bottom: 1em; text-align: right; } .plugin-action-buttons li { margin-bottom: 10px; } .plugin-card-bottom { clear: both; padding: 16px; background-color: #f6f7f7; border-top: 1px solid rgb(0, 0, 0, 0.1); overflow: hidden; } .plugin-card-bottom .star-rating { display: inline; } .plugin-card-update-failed .update-now { font-weight: 600; } .plugin-card-update-failed .notice-error { margin: 0; padding-left: 16px; box-shadow: 0 -1px 0 #dcdcde; } .plugin-card-update-failed .plugin-card-bottom { display: none; } .plugin-card .column-rating { line-height: 1.76923076; } .plugin-card .column-rating, .plugin-card .column-updated { margin-bottom: 4px; } .plugin-card .column-rating, .plugin-card .column-downloaded { float: left; clear: left; max-width: 180px; } .plugin-card .column-updated, .plugin-card .column-compatibility { text-align: right; float: right; clear: right; width: 65%; width: calc( 100% - 180px ); } .plugin-card .column-compatibility span:before { font: normal 20px/.5 dashicons; display: inline-block; padding: 0; top: 4px; left: -2px; position: relative; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #3c434a; } .plugin-card .column-compatibility .compatibility-incompatible:before { content: "\f158"; content: "\f158" / ''; color: #d63638; } .plugin-card .column-compatibility .compatibility-compatible:before { content: "\f147"; content: "\f147" / ''; color: #007017; } .plugin-card .notice { margin: 20px 20px 0; } .plugin-card .plugin-icon { position: absolute; top: 20px; left: 20px; width: 128px; height: 128px; margin: 0 20px 20px 0; } .no-plugin-results { color: #646970; /* same as no themes and no media */ font-size: 18px; font-style: normal; margin: 0; padding: 100px 0 0; width: 100%; text-align: center; } /* ms */ /* Background Color for Site Status */ .wp-list-table .site-deleted, .wp-list-table tr.site-deleted, .wp-list-table .site-archived, .wp-list-table tr.site-archived { background: #fcf0f1; } .wp-list-table .site-spammed, .wp-list-table tr.site-spammed, .wp-list-table .site-mature, .wp-list-table tr.site-mature { background: #fcf9e8; } .sites.fixed .column-lastupdated, .sites.fixed .column-registered { width: 20%; } .sites.fixed .column-users { width: 80px; } /* =Media Queries -------------------------------------------------------------- */ @media screen and (max-width: 1100px) and (min-width: 782px), (max-width: 480px) { .plugin-card .action-links { position: static; margin-left: 148px; width: auto; } .plugin-action-buttons { float: none; margin: 1em 0 0; text-align: left; } .plugin-action-buttons li { display: inline-block; vertical-align: middle; } .plugin-action-buttons li .button { margin-right: 20px; } .plugin-card h3 { margin-right: 24px; } .plugin-card .name, .plugin-card .desc { margin-right: 0; } .plugin-card .desc p:first-of-type { margin-top: 0; } } @media screen and (max-width: 782px) { /* WP List Table Options & Filters */ .tablenav { height: auto; } .tablenav.top { margin: 20px 0 5px; } .tablenav.bottom { position: relative; margin-top: 15px; } .tablenav br { display: none; } .tablenav br.clear { display: block; } .tablenav.top .actions, .tablenav .view-switch { display: none; } .view-switch a { width: 36px; height: 36px; line-height: 2.53846153; } /* Pagination */ .tablenav.top .displaying-num { display: none; } .tablenav.bottom .displaying-num { position: absolute; right: 0; top: 11px; margin: 0; font-size: 14px; } .tablenav .tablenav-pages { width: 100%; text-align: center; margin: 0 0 25px; } .tablenav.bottom .tablenav-pages { margin-top: 25px; } .tablenav.top .tablenav-pages.one-page { display: none; } .tablenav.bottom .actions select { margin-bottom: 5px; } .tablenav.bottom .actions.alignleft + .actions.alignleft { clear: left; margin-top: 10px; } .tablenav.bottom .tablenav-pages.one-page { margin-top: 15px; height: 0; } .tablenav-pages .pagination-links { font-size: 16px; } .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { min-width: 44px; padding: 12px 8px; font-size: 18px; line-height: 1; } .tablenav-pages .pagination-links .current-page { min-width: 44px; padding: 12px 6px; font-size: 16px; line-height: 1.125; } /* WP List Table Adjustments: General */ .form-wrap > p { display: none; } .wp-list-table th.column-primary ~ th, .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { display: none; } .wp-list-table thead th.column-primary { width: 100%; } /* Checkboxes need to show */ .wp-list-table tr th.check-column { display: table-cell; } .wp-list-table .check-column { width: 2.5em; } .wp-list-table .column-primary .toggle-row { display: block; } .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { position: relative; clear: both; width: auto !important; /* needs to override some columns that are more specifically targeted */ } .wp-list-table td.column-primary { padding-right: 50px; /* space for toggle button */ } .wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary ~ td:not(.check-column) { padding: 3px 8px 3px 35%; } .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before { position: absolute; left: 10px; /* match padding of regular table cell */ display: block; overflow: hidden; width: 32%; /* leave a little space for a gutter */ content: attr(data-colname); white-space: nowrap; text-overflow: ellipsis; } .wp-list-table .is-expanded td:not(.hidden) { display: block !important; overflow: hidden; /* clearfix */ } /* Special cases */ .widefat .num, .column-posts { text-align: left; } #comments-form .fixed .column-author, #commentsdiv .fixed .column-author { display: none !important; } .fixed .column-comment .comment-author { display: block; } /* Comment author hidden via Screen Options */ .fixed .column-author.hidden ~ .column-comment .comment-author { display: none; } #the-comment-list .is-expanded td { box-shadow: none; } #the-comment-list .is-expanded td:last-child { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } /* Show comment bubble as text instead */ .post-com-count .screen-reader-text { position: static; clip-path: none; width: auto; height: auto; margin: 0; } .column-response .post-com-count-no-comments:after, .column-response .post-com-count-approved:after, .column-comments .post-com-count-no-comments:after, .column-comments .post-com-count-approved:after { content: none; } .column-response .post-com-count [aria-hidden="true"], .column-comments .post-com-count [aria-hidden="true"] { display: none; } .column-response .post-com-count-wrapper, .column-comments .post-com-count-wrapper { white-space: normal; } .column-response .post-com-count-wrapper > a, .column-comments .post-com-count-wrapper > a { display: block; } .column-response .post-com-count-no-comments, .column-response .post-com-count-approved, .column-comments .post-com-count-no-comments, .column-comments .post-com-count-approved { margin-top: 0; margin-right: 0.5em; } .column-response .post-com-count-pending, .column-comments .post-com-count-pending { position: static; height: auto; min-width: 0; padding: 0; border: none; border-radius: 0; background: none; color: #b32d2e; font-size: inherit; line-height: inherit; text-align: left; } .column-response .post-com-count-pending:hover, .column-comments .post-com-count-pending:hover { color: #d63638; } .widefat thead td.check-column, .widefat tfoot td.check-column { padding-top: 10px; } .row-actions { margin-right: -8px; padding-top: 4px; } /* Make row actions more easy to select on mobile */ body:not(.plugins-php) .row-actions { display: flex; flex-wrap: wrap; gap: 8px; color: transparent; } .row-actions span { font-size: 0; } .row-actions span a, .row-actions span .button-link { display: inline-block; padding: 4px 16px 4px 0; font-size: 13px; line-height: 1.5; } .row-actions span.approve:before, .row-actions span.unapprove:before { content: "| "; } /* Quick Edit and Bulk Edit */ #wpbody-content .quick-edit-row-post .inline-edit-col-left, #wpbody-content .quick-edit-row-post .inline-edit-col-right, #wpbody-content .inline-edit-row-post .inline-edit-col-center, #wpbody-content .quick-edit-row-page .inline-edit-col-left, #wpbody-content .quick-edit-row-page .inline-edit-col-right, #wpbody-content .bulk-edit-row-post .inline-edit-col-right, #wpbody-content .bulk-edit-row .inline-edit-col-left, #wpbody-content .bulk-edit-row-page .inline-edit-col-right, #wpbody-content .bulk-edit-row .inline-edit-col-bottom { float: none; width: 100%; padding: 0; } #the-list .inline-edit-row .inline-edit-legend, .inline-edit-row span.title { font-size: 16px; } .inline-edit-row p.howto { font-size: 14px; } #wpbody-content .inline-edit-row-page .inline-edit-col-right { margin-top: 0; } #wpbody-content .quick-edit-row fieldset .inline-edit-col label, #wpbody-content .quick-edit-row fieldset .inline-edit-group label, #wpbody-content .bulk-edit-row fieldset .inline-edit-col label, #wpbody-content .bulk-edit-row fieldset .inline-edit-group label { max-width: none; float: none; margin-bottom: 5px; } #wpbody .bulk-edit-row fieldset select { display: block; width: 100%; max-width: none; box-sizing: border-box; } .inline-edit-row fieldset input[name=jj], .inline-edit-row fieldset input[name=hh], .inline-edit-row fieldset input[name=mn], .inline-edit-row fieldset input[name=aa] { font-size: 16px; line-height: 2; padding: 3px 4px; } #bulk-titles .ntdelbutton, #bulk-titles .ntdeltitle, .inline-edit-row fieldset ul.cat-checklist label { padding: 6px 0; font-size: 16px; line-height: 28px; } #bulk-titles .ntdelitem { padding-left: 37px; } #bulk-titles .ntdelbutton { width: 40px; height: 40px; margin: 0 0 0 -40px; overflow: hidden; } #bulk-titles .ntdelbutton:before { font-size: 20px; line-height: 28px; } .inline-edit-row fieldset label span.title, .inline-edit-row fieldset.inline-edit-date legend { float: none; } .inline-edit-row fieldset .inline-edit-col label.inline-edit-tags { padding: 0; } .inline-edit-row fieldset label span.input-text-wrap, .inline-edit-row fieldset .timestamp-wrap { margin-left: 0; } .inline-edit-row .inline-edit-or { margin: 0 6px 0 0; } #edithead .inside, #commentsdiv #edithead .inside { float: none; text-align: left; padding: 3px 5px; } #commentsdiv #edithead .inside input, #edithead .inside input { width: 100%; } #edithead label { display: block; } /* Updates */ #wpbody-content .updates-table .plugin-title { width: auto; white-space: normal; } /* Links */ .link-manager-php #posts-filter { margin-top: 25px; } .link-manager-php .tablenav.bottom { overflow: hidden; } /* List tables that don't toggle rows */ .comments-box .toggle-row, .wp-list-table.plugins .toggle-row { display: none; } /* Plugin/Theme Management */ #wpbody-content .wp-list-table.plugins td { display: block; width: auto; padding: 10px 9px; /* reset from other list tables that have a label at this width */ } #wpbody-content .wp-list-table.plugins .plugin-deleted-tr td, #wpbody-content .wp-list-table.plugins .no-items td { display: table-cell; } /* Plugin description hidden via Screen Options */ #wpbody-content .wp-list-table.plugins .desc.hidden { display: none; } #wpbody-content .wp-list-table.plugins .column-description { padding-top: 2px; } #wpbody-content .wp-list-table.plugins .plugin-title, #wpbody-content .wp-list-table.plugins .theme-title { padding-right: 12px; white-space: normal; } .wp-list-table.plugins .plugin-title, .wp-list-table.plugins .theme-title { padding-top: 13px; padding-bottom: 4px; } .plugins #the-list tr > td:not(:last-child), .plugins #the-list .update th, .plugins #the-list .update td, .wp-list-table.plugins #the-list .theme-title { box-shadow: none; border-top: none; } .plugins #the-list tr td { border-top: none; } .plugins tbody { padding: 1px 0 0; } .plugins tr.active + tr.inactive th.check-column, .plugins tr.active + tr.inactive td.column-description, .plugins .plugin-update-tr:before { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .plugins tr.active + tr.inactive th.check-column, .plugins tr.active + tr.inactive td { border-top: none; } /* mimic the checkbox th */ .plugins .plugin-update-tr:before { content: ""; display: table-cell; } .plugins #the-list .plugin-update-tr .plugin-update { border-left: none; } .plugin-update-tr .update-message { margin-left: 0; } .plugins .active.update + .plugin-update-tr:before, .plugins .active.updated + .plugin-update-tr:before { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-left: 4px solid var(--wp-admin-theme-color); } .plugins .plugin-update-tr .update-message { margin-left: 0; } .wp-list-table.plugins .plugin-title strong, .wp-list-table.plugins .theme-title strong { font-size: 1.4em; line-height: 1.5; } .plugins tbody th.check-column { padding: 8px 0 0 5px; } .plugins thead td.check-column, .plugins tfoot td.check-column, .plugins .inactive th.check-column { padding-left: 9px; } /* Add New plugins page */ table.plugin-install .column-name, table.plugin-install .column-version, table.plugin-install .column-rating, table.plugin-install .column-description { display: block; width: auto; } table.plugin-install th.column-name, table.plugin-install th.column-version, table.plugin-install th.column-rating, table.plugin-install th.column-description { display: none; } table.plugin-install td.column-name strong { font-size: 1.4em; line-height: 1.6em; } table.plugin-install #the-list td { box-shadow: none; } table.plugin-install #the-list tr { display: block; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .plugin-card { margin-left: 0; margin-right: 0; width: 100%; } table.media .column-title .has-media-icon ~ .row-actions { margin-left: 0; clear: both; } } @media screen and (max-width: 480px) { .tablenav-pages .current-page { margin: 0; } .tablenav.bottom .displaying-num { position: relative; top: 0; display: block; text-align: right; padding-bottom: 0.5em; } .tablenav.bottom .tablenav-pages.one-page { height: auto; } .tablenav-pages .tablenav-paging-text { float: left; width: 100%; padding-top: 0.5em; } } css/edit.css000064400000113500152213653150006776 0ustar00#poststuff { padding-top: 10px; min-width: 763px; } #poststuff #post-body { padding: 0; } #poststuff .postbox-container { width: 100%; } #poststuff #post-body.columns-2 { margin-right: 300px; } /*------------------------------------------------------------------------------ 11.0 - Write/Edit Post Screen ------------------------------------------------------------------------------*/ #show-comments { overflow: hidden; } #save-action .spinner, #show-comments a { float: left; } #show-comments .spinner { float: none; margin-top: 0; } #lost-connection-notice .spinner { visibility: visible; float: left; margin: 0 5px 0 0; } #titlediv { position: relative; } #titlediv label { cursor: text; } #titlediv div.inside { margin: 0; } #poststuff #titlewrap { border: 0; padding: 0; } #titlediv #title { padding: 3px 8px; font-size: 1.7em; line-height: 100%; height: 1.7em; width: 100%; outline: none; margin: 0 0 3px; background-color: #fff; } #titlediv #title-prompt-text { color: #646970; position: absolute; font-size: 1.7em; padding: 10px; pointer-events: none; } #titlewrap .skiplink { background: #fff; line-height: 2.30769231; /* 30px for 32px min-height */ min-height: 32px; right: 4px; } #titlewrap .skiplink:focus { clip: inherit; clip-path: inherit; top: 4px; width: auto; } input#link_description, input#link_url { width: 100%; } #pending { background: 0 none; border: 0 none; padding: 0; font-size: 11px; margin-top: -1px; } #edit-slug-box, #comment-link-box { line-height: 1.84615384; min-height: 25px; margin-top: 5px; padding: 0 10px; color: #646970; } #sample-permalink { display: inline-block; max-width: 100%; word-wrap: break-word; } #edit-slug-box .cancel { margin-right: 10px; padding: 0; } #comment-link-box { margin: 5px 0; padding: 0 5px; } #editable-post-name-full { display: none; } #editable-post-name { font-weight: 600; } #editable-post-name input { font-size: 13px; font-weight: 400; min-height: 32px; margin: 0; width: 16em; } .postarea h3 label { float: left; } body.post-new-php .submitbox .submitdelete { display: none; } .submitbox .submit a:hover { text-decoration: underline; } .submitbox .submit input { margin-bottom: 8px; margin-right: 4px; padding: 6px; } #post-status-select { margin-top: 3px; } body.post-type-wp_navigation div#minor-publishing, body.post-type-wp_navigation .inline-edit-status { display: none; } /* Post Screen */ /* Only highlight drop zones when dragging and only in the 2 columns layout. */ .is-dragging-metaboxes .metabox-holder .postbox-container .meta-box-sortables { border-radius: 8px; background: rgb(var(--wp-admin-theme-color--rgb), 0.04); /* * This min-height is meant to limit jumpiness while dragging. It's equivalent * to the minimum height of the sortable-placeholder which is given by the height * of a collapsed post box (36px + 1px top and bottom borders) + the placeholder * bottom margin (20px) + 2 additional pixels to compensate browsers rounding. */ min-height: 60px; margin-bottom: 20px; } .postbox { position: relative; min-width: 255px; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); background: #fff; } #trackback_url { width: 99%; } #normal-sortables .postbox .submit { background: transparent none; border: 0 none; float: right; padding: 0 12px; margin: 0; } .category-add input[type="text"], .category-add select { width: 100%; max-width: 260px; vertical-align: baseline; } #side-sortables .category-add input[type="text"], #side-sortables .category-add select { margin: 0 0 1em; } ul.category-tabs li, #side-sortables .add-menu-item-tabs li, .wp-tab-bar li { display: inline; line-height: 1.35; } .no-js .category-tabs li.hide-if-no-js { display: none; } .category-tabs a, #side-sortables .add-menu-item-tabs a, .wp-tab-bar a { text-decoration: none; } /* @todo: do these really need to be so specific? */ #side-sortables .category-tabs .tabs a, #side-sortables .add-menu-item-tabs .tabs a, .wp-tab-bar .wp-tab-active a, #post-body ul.category-tabs li.tabs a, #post-body ul.add-menu-item-tabs li.tabs a { color: #2c3338; } .category-tabs { margin: 8px 0 5px; } /* Back-compat for pre-4.4 */ #category-adder h4 { margin: 0; } .taxonomy-add-new { display: inline-block; margin: 10px 0; font-weight: 600; } #side-sortables .add-menu-item-tabs, .wp-tab-bar { margin-bottom: 3px; } #normal-sortables .postbox #replyrow .submit { float: none; margin: 0; padding: 5px 7px 10px; overflow: hidden; } #side-sortables .submitbox .submit input, #side-sortables .submitbox .submit .preview, #side-sortables .submitbox .submit a.preview:hover { border: 0 none; } /* @todo: make this a more generic class */ ul.category-tabs, ul.add-menu-item-tabs, ul.wp-tab-bar { margin-top: 12px; } ul.category-tabs li, ul.add-menu-item-tabs li { border: solid 1px transparent; position: relative; } ul.category-tabs li.tabs, ul.add-menu-item-tabs li.tabs, .wp-tab-active { border: 1px solid #dcdcde; border-bottom-color: #fff; background-color: #fff; } ul.category-tabs li, ul.add-menu-item-tabs li, ul.wp-tab-bar li { padding: 3px 5px 6px; } #set-post-thumbnail { display: inline-block; max-width: 100%; } #postimagediv .inside img { max-width: 100%; height: auto; vertical-align: top; background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 0 0, 10px 10px; background-size: 20px 20px; } form#tags-filter { position: relative; } /* Global classes */ .wp-hidden-children .wp-hidden-child, .ui-tabs-hide { display: none; } #post-body .tagsdiv #newtag { margin-right: 0; flex: 1; min-width: 0; } #side-sortables input#post_password { width: 94% } #side-sortables .tagsdiv #newtag { flex: 1; min-width: 0; } #post-status-info { width: 100%; border-spacing: 0; border: 1px solid #c3c4c7; border-top: none; background-color: #f6f7f7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); z-index: 999; } #post-status-info td { font-size: 12px; } .autosave-info { padding: 2px 10px; text-align: right; } #editorcontent #post-status-info { border: none; } #content-resize-handle { background: transparent url(../images/resize.gif) no-repeat scroll right bottom; width: 12px; cursor: row-resize; } /*rtl:ignore*/ .rtl #content-resize-handle { background-image: url(../images/resize-rtl.gif); background-position: left bottom; } .wp-editor-expand #content-resize-handle { display: none; } #postdivrich #content { resize: none; } #wp-word-count { padding: 2px 10px; } #wp-content-editor-container { position: relative; } .wp-editor-expand #wp-content-editor-tools { z-index: 1000; border-bottom: 1px solid #c3c4c7; } .wp-editor-expand #wp-content-editor-container { box-shadow: none; margin-top: -1px; } .wp-editor-expand #wp-content-editor-container { border-bottom: 0 none; } .wp-editor-expand div.mce-statusbar { z-index: 1; } .wp-editor-expand #post-status-info { border-top: 1px solid #c3c4c7; } .wp-editor-expand div.mce-toolbar-grp { z-index: 999; } /* TinyMCE native fullscreen mode override */ .mce-fullscreen #wp-content-wrap .mce-menubar, .mce-fullscreen #wp-content-wrap .mce-toolbar-grp, .mce-fullscreen #wp-content-wrap .mce-edit-area, .mce-fullscreen #wp-content-wrap .mce-statusbar { position: static !important; width: auto !important; padding: 0 !important; } .mce-fullscreen #wp-content-wrap .mce-statusbar { visibility: visible !important; } .mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw { display: none; } .post-php.mce-fullscreen #wpadminbar, .mce-fullscreen #wp-content-wrap .mce-wp-dfw { display: none; } /* End TinyMCE native fullscreen mode override */ #wp-content-editor-tools { background-color: #f0f0f1; padding-top: 20px; } #poststuff #post-body.columns-2 #side-sortables { width: 280px; } #timestampdiv select { vertical-align: top; font-size: 12px; line-height: 2.33333333; /* 28px */ } #aa, #jj, #hh, #mn { padding: 6px 1px; font-size: 12px; line-height: 1.16666666; /* 14px */ } #jj, #hh, #mn { width: 2em; } #aa { width: 3.4em; } .curtime #timestamp { padding: 2px 0 1px; display: inline !important; height: auto !important; } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-uploadedby:before, #post-body .misc-pub-uploadedto:before, #post-body .misc-pub-revisions:before, #post-body .misc-pub-response-to:before, #post-body .misc-pub-comment-status:before { color: #8c8f94; } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-uploadedby:before, #post-body .misc-pub-uploadedto:before, #post-body .misc-pub-revisions:before, #post-body .misc-pub-response-to:before, #post-body .misc-pub-comment-status:before { font: normal 20px/1 dashicons; display: inline-block; margin-left: -1px; padding-right: 3px; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #post-body .misc-pub-post-status:before, #post-body .misc-pub-comment-status:before { content: "\f173"; content: "\f173" / ''; } #post-body #visibility:before { content: "\f177"; content: "\f177" / ''; } .curtime #timestamp:before { content: "\f145"; content: "\f145" / ''; position: relative; top: -1px; } #post-body .misc-pub-uploadedby:before { content: "\f110"; content: "\f110" / ''; position: relative; top: -1px; } #post-body .misc-pub-uploadedto:before { content: "\f318"; content: "\f318" / ''; position: relative; top: -1px; } #post-body .misc-pub-revisions:before { content: "\f321"; content: "\f321" / ''; } #post-body .misc-pub-response-to:before { content: "\f101"; content: "\f101" / ''; } #timestampdiv { padding-top: 5px; line-height: 1.76923076; } #timestampdiv p { margin: 8px 0 6px; } #timestampdiv input { text-align: center; } .notification-dialog { position: fixed; top: 30%; max-height: 70%; left: 50%; width: 450px; margin-left: -225px; background: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); line-height: 1.5; z-index: 1000005; overflow-y: auto; } .notification-dialog-background { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; opacity: 0.7; filter: alpha(opacity=70); z-index: 1000000; } #post-lock-dialog .post-locked-message, #post-lock-dialog .post-taken-over { margin: 25px; } #post-lock-dialog .post-locked-message a.button, #file-editor-warning .button { margin-right: 10px; } #post-lock-dialog .post-locked-avatar { float: left; margin: 0 20px 20px 0; } #post-lock-dialog .wp-tab-first { outline: 0; } #post-lock-dialog .locked-saving img { float: left; margin-right: 3px; } #post-lock-dialog.saving .locked-saving, #post-lock-dialog.saved .locked-saved { display: inline; } #excerpt { display: block; margin: 12px 0 0; height: 4em; width: 100%; } .tagchecklist { margin-left: 14px; font-size: 12px; overflow: auto; } .tagchecklist br { display: none; } .tagchecklist strong { margin-left: -8px; position: absolute; } .tagchecklist > li { float: left; margin-right: 25px; font-size: 13px; line-height: 1.8; cursor: default; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .tagchecklist .ntdelbutton { position: absolute; width: 24px; height: 24px; border: none; margin: 0 0 0 -19px; padding: 0; background: none; cursor: pointer; text-indent: 0; } #poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff h2 { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; } #poststuff .stuffbox h2 { padding: 8px 10px; } #poststuff .stuffbox > h2 { border-bottom: 1px solid #f0f0f1; } #poststuff .inside { margin: 6px 0 0; } .link-php #poststuff .inside, .link-add-php #poststuff .inside { margin-top: 12px; } #poststuff .stuffbox .inside { margin: 0; } #poststuff .inside #parent_id, #poststuff .inside #page_template { max-width: 100%; } .post-attributes-label-wrapper { margin-bottom: 0.5em; } .post-attributes-label { vertical-align: baseline; font-weight: 600; } #post-visibility-select, #comment-status-radio { line-height: 1.5; margin-top: 3px; } #linksubmitdiv .inside, /* Old Link Manager back-compat. */ #poststuff #submitdiv .inside { margin: 0; padding: 0; } #post-body-content, .edit-form-section { margin-bottom: 20px; } .wp_attachment_details .attachment-content-description { margin-top: 0.5385em; display: inline-block; min-height: 1.6923em; } /** * Privacy Settings section * * Note: This section includes selectors from * Site Health where duplicate styling is used. */ /* General */ .privacy-settings #wpcontent, .privacy-settings.auto-fold #wpcontent, .site-health #wpcontent, .site-health.auto-fold #wpcontent { padding-left: 0; } /* Better position for the WordPress admin notices. */ .privacy-settings .notice, .site-health .notice { margin: 25px 20px 15px 22px; } .privacy-settings .notice ~ .notice, .site-health .notice ~ .notice { margin-top: 5px; } /* Emulates .wrap h1 styling */ .privacy-settings-header h1, .health-check-header h1 { display: inline-block; font-weight: 600; margin: 0 0.8rem 1rem; font-size: 23px; padding: 9px 0 4px; line-height: 1.3; } /* Header */ .privacy-settings-header, .health-check-header { text-align: center; margin: 0 0 1rem; background: #fff; border-bottom: 1px solid #dcdcde; } .privacy-settings-title-section, .health-check-title-section { display: flex; align-items: center; justify-content: center; clear: both; padding-top: 8px; } .privacy-settings-tabs-wrapper { /* IE 11 */ display: -ms-inline-grid; -ms-grid-columns: 1fr 1fr; vertical-align: top; /* modern browsers */ display: inline-grid; grid-template-columns: 1fr 1fr; } .privacy-settings-tab { display: block; /* IE 11 */ text-decoration: none; color: inherit; padding: 0.5rem 1rem 1rem; margin: 0 1rem; transition: box-shadow 0.5s ease-in-out; } .privacy-settings-tab:nth-child(1), .health-check-tab:nth-child(1) { -ms-grid-column: 1; /* IE 11 */ } .privacy-settings-tab:nth-child(2), .health-check-tab:nth-child(2) { -ms-grid-column: 2; /* IE 11 */ } .privacy-settings-tab:focus, .health-check-tab:focus { color: #1d2327; outline: 1px solid #787c82; box-shadow: none; } .privacy-settings-tab.active, .health-check-tab.active { box-shadow: inset 0 -3px var(--wp-admin-theme-color); font-weight: 600; } /* Body */ .privacy-settings-body, .health-check-body { max-width: 800px; margin: 0 auto; } .tools-privacy-policy-page th { min-width: 230px; } .hr-separator { margin-top: 20px; margin-bottom: 15px; } /* Accordions */ .privacy-settings-accordion, .health-check-accordion { border: 1px solid #c3c4c7; } .privacy-settings-accordion-heading, .health-check-accordion-heading { margin: 0; border-top: 1px solid #c3c4c7; font-size: inherit; line-height: inherit; font-weight: 600; color: inherit; } .privacy-settings-accordion-heading:first-child, .health-check-accordion-heading:first-child { border-top: none; } .privacy-settings-accordion-trigger, .health-check-accordion-trigger { background: #fff; border: 0; color: #2c3338; cursor: pointer; display: flex; font-weight: 400; margin: 0; padding: 1em 3.5em 1em 1.5em; min-height: 46px; position: relative; text-align: left; width: 100%; align-items: center; justify-content: space-between; -webkit-user-select: auto; user-select: auto; } .privacy-settings-accordion-trigger:hover, .privacy-settings-accordion-trigger:active, .health-check-accordion-trigger:hover, .health-check-accordion-trigger:active { background: #f6f7f7; } .privacy-settings-accordion-trigger:focus, .health-check-accordion-trigger:focus { color: #1d2327; border: none; box-shadow: none; outline-offset: -1px; outline: 2px solid var(--wp-admin-theme-color); background-color: #f6f7f7; } .privacy-settings-accordion-trigger .title, .health-check-accordion-trigger .title { pointer-events: none; font-weight: 600; flex-grow: 1; } .privacy-settings-accordion-trigger .icon, .privacy-settings-view-read .icon, .health-check-accordion-trigger .icon, .site-health-view-passed .icon { border: solid #50575e; border-width: 0 2px 2px 0; height: 0.5rem; pointer-events: none; position: absolute; right: 1.5em; top: 50%; transform: translateY(-70%) rotate(45deg); width: 0.5rem; } .privacy-settings-accordion-trigger .badge, .health-check-accordion-trigger .badge { padding: 0.1rem 0.5rem 0.15rem; color: #2c3338; font-weight: 600; } .privacy-settings-accordion-trigger .badge { margin-left: 0.5rem; } .privacy-settings-accordion-trigger .badge.blue, .health-check-accordion-trigger .badge.blue { border: 1px solid var(--wp-admin-theme-color); } .privacy-settings-accordion-trigger .badge.orange, .health-check-accordion-trigger .badge.orange { border: 1px solid #dba617; } .privacy-settings-accordion-trigger .badge.red, .health-check-accordion-trigger .badge.red { border: 1px solid #e65054; } .privacy-settings-accordion-trigger .badge.green, .health-check-accordion-trigger .badge.green { border: 1px solid #00ba37; } .privacy-settings-accordion-trigger .badge.purple, .health-check-accordion-trigger .badge.purple { border: 1px solid #2271b1; } .privacy-settings-accordion-trigger .badge.gray, .health-check-accordion-trigger .badge.gray { border: 1px solid #c3c4c7; } .privacy-settings-accordion-trigger[aria-expanded="true"] .icon, .privacy-settings-view-passed[aria-expanded="true"] .icon, .health-check-accordion-trigger[aria-expanded="true"] .icon, .site-health-view-passed[aria-expanded="true"] .icon { transform: translateY(-30%) rotate(-135deg) } .privacy-settings-accordion-panel, .health-check-accordion-panel { margin: 0; padding: 1em 1.5em; background: #fff; } .privacy-settings-accordion-panel[hidden], .health-check-accordion-panel[hidden] { display: none; } .privacy-settings-accordion-panel a .dashicons, .health-check-accordion-panel a .dashicons { text-decoration: none; } .privacy-settings-accordion-actions { justify-content: right; display: flex; align-items: center; flex-wrap: wrap; gap: 1em; } .privacy-settings-accordion-actions .success { display: none; color: #007017; } .privacy-settings-accordion-actions .success.visible { display: inline-block; } /* Suggested text for privacy policy */ .privacy-settings-accordion-panel.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */ .privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-policy-tutorial, .privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-text-copy { display: none; } .privacy-settings-accordion-panel strong.wp-policy-help, /* For back-compat, see #49282 */ .privacy-settings-accordion-panel strong.privacy-policy-tutorial { display: block; margin: 0 0 1em; } .privacy-text-copy span { pointer-events: none; } .privacy-settings-accordion-panel .wp-suggested-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p), .privacy-settings-accordion-panel .wp-suggested-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p), .privacy-settings-accordion-panel > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p), .privacy-settings-accordion-panel div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p) { margin: 0; padding: 1em; border-left: 2px solid #787c82; } /* Media queries */ @media screen and (max-width: 782px) { .privacy-settings-body, .health-check-body { margin: 0 12px; width: auto; } .privacy-settings .notice, .site-health .notice { margin: 5px 10px 15px; } .privacy-settings .update-nag, .site-health .update-nag { margin-right: 10px; margin-left: 10px; } input#create-page { margin-top: 10px; } .wp-core-ui button.privacy-text-copy { white-space: normal; line-height: 1.8; } #edit-slug-box { padding: 0; } #editable-post-name input { min-height: 40px; } } @media only screen and (max-width: 1004px) { .privacy-settings-body, .health-check-body { margin: 0 22px; width: auto; } } /** * End Privacy Settings section */ /*------------------------------------------------------------------------------ 11.1 - Custom Fields ------------------------------------------------------------------------------*/ #postcustomstuff thead th { padding: 5px 8px 8px; background-color: #f0f0f1; } #postcustom #postcustomstuff .submit { border: 0 none; float: none; padding: 0 8px 8px; } #postcustom #postcustomstuff .add-custom-field { padding: 12px 8px 8px; } #side-sortables #postcustom #postcustomstuff .submit { margin: 0; padding: 0; } #side-sortables #postcustom #postcustomstuff #the-list textarea { height: 85px; } #side-sortables #postcustom #postcustomstuff td.left input, #side-sortables #postcustom #postcustomstuff td.left select, #side-sortables #postcustomstuff #newmetaleft a { margin: 3px 3px 0; } #postcustomstuff table { margin: 0; width: 100%; border: 1px solid #dcdcde; border-spacing: 0; background-color: #f6f7f7; } #postcustomstuff tr { vertical-align: top; } #postcustomstuff table input, #postcustomstuff table select, #postcustomstuff table textarea { width: 96%; margin: 8px; } #side-sortables #postcustomstuff table input, #side-sortables #postcustomstuff table select, #side-sortables #postcustomstuff table textarea { margin: 3px; } #postcustomstuff th.left, #postcustomstuff td.left { width: 38%; } #postcustomstuff .submit input { margin: 0; width: auto; } #postcustomstuff #newmetaleft a, #postcustomstuff #newmeta-button { display: inline-block; margin: 0 8px 8px; text-decoration: none; } .no-js #postcustomstuff #enternew { display: none; } #post-body-content .compat-attachment-fields { margin-bottom: 20px; } .compat-attachment-fields th { padding-top: 5px; padding-right: 10px; } /*------------------------------------------------------------------------------ 11.3 - Featured Images ------------------------------------------------------------------------------*/ #select-featured-image { padding: 4px 0; overflow: hidden; } #select-featured-image img { max-width: 100%; height: auto; margin-bottom: 10px; } #select-featured-image a { float: left; clear: both; } #select-featured-image .remove { display: none; margin-top: 10px; } .js #select-featured-image.has-featured-image .remove { display: inline-block; } .no-js #select-featured-image .choose { display: none; } /*------------------------------------------------------------------------------ 11.4 - Post formats ------------------------------------------------------------------------------*/ .post-format-icon::before { display: inline-block; vertical-align: middle; height: 20px; width: 20px; margin-top: -4px; margin-right: 7px; color: #dcdcde; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a.post-format-icon:hover:before { color: #135e96; } #post-formats-select { line-height: 2; } #post-formats-select .post-format-icon::before { top: 5px; } input.post-format { margin-top: 1px; } label.post-format-icon { margin-left: 0; padding: 2px 0; } .post-format-icon.post-format-standard::before { content: "\f109"; content: "\f109" / ''; } .post-format-icon.post-format-image::before { content: "\f128"; content: "\f128" / ''; } .post-format-icon.post-format-gallery::before { content: "\f161"; content: "\f161" / ''; } .post-format-icon.post-format-audio::before { content: "\f127"; content: "\f127" / ''; } .post-format-icon.post-format-video::before { content: "\f126"; content: "\f126" / ''; } .post-format-icon.post-format-chat::before { content: "\f125"; content: "\f125" / ''; } .post-format-icon.post-format-status::before { content: "\f130"; content: "\f130" / ''; } .post-format-icon.post-format-aside::before { content: "\f123"; content: "\f123" / ''; } .post-format-icon.post-format-quote::before { content: "\f122"; content: "\f122" / ''; } .post-format-icon.post-format-link::before { content: "\f103"; content: "\f103" / ''; } /*------------------------------------------------------------------------------ 12.0 - Categories ------------------------------------------------------------------------------*/ .category-adder { margin-left: 120px; padding: 4px 0; } .category-adder h4 { margin: 0 0 8px; } #side-sortables .category-adder { margin: 0; } .wp-tab-panel, .categorydiv div.tabs-panel, .customlinkdiv div.tabs-panel, .posttypediv div.tabs-panel, .taxonomydiv div.tabs-panel { min-height: 42px; max-height: 200px; overflow: auto; padding: 0 0.9em; border: solid 1px #dcdcde; background-color: #fff; } div.tabs-panel-active { display: block; } div.tabs-panel-inactive { display: none; } div.tabs-panel-active:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .options-discussion-php .indent-children ul, #front-page-warning, #front-static-pages ul, ul.export-filters, .inline-editor ul.cat-checklist ul, .categorydiv ul.categorychecklist ul, .customlinkdiv ul.categorychecklist ul, .posttypediv ul.categorychecklist ul, .taxonomydiv ul.categorychecklist ul { margin-left: 18px; } ul.categorychecklist li { margin: 0; padding: 0; line-height: 1.69230769; word-wrap: break-word; } .categorydiv .tabs-panel, .customlinkdiv .tabs-panel, .posttypediv .tabs-panel, .taxonomydiv .tabs-panel { border-width: 3px; border-style: solid; } .form-wrap label { display: block; padding: 2px 0; } .form-field input[type="text"], .form-field input[type="password"], .form-field input[type="email"], .form-field input[type="number"], .form-field input[type="search"], .form-field input[type="tel"], .form-field input[type="url"], .form-field textarea { border-style: solid; border-width: 1px; width: 95%; } .form-field select, .form-field p { max-width: 95%; } p.description, .form-wrap p { margin: 2px 0 5px; color: #646970; } p.help, p.description, span.description, .form-wrap p { font-size: 13px; } p.description code { font-style: normal; } p.description code, .form-wrap p code { color: #50575e; } .form-wrap .form-field { margin: 1em 0; padding: 0; } .col-wrap h2 { margin: 12px 0; font-size: 1.1em; } .col-wrap p.submit { margin-top: -10px; } .edit-term-notes { margin-top: 2em; } /*------------------------------------------------------------------------------ 13.0 - Tags ------------------------------------------------------------------------------*/ #poststuff .tagsdiv .ajaxtag { margin-top: 1em; display: flex; gap: 8px; align-items: center; } #poststuff .tagsdiv .howto { margin: 1em 0 6px; } .ajaxtag .newtag { position: relative; } .tagsdiv .newtag { flex: 1; min-width: 0; } .tagsdiv .the-tags { display: block; height: 60px; margin: 0 auto; overflow: auto; width: 260px; } #post-body-content .tagsdiv .the-tags { margin: 0 5px; } p.popular-tags { border: none; line-height: 2em; padding: 8px 12px 12px; text-align: justify; } p.popular-tags a { padding: 0 3px; } .tagcloud { width: 97%; margin: 0 0 40px; text-align: justify; } .tagcloud h2 { margin: 2px 0 12px; } #poststuff .inside .the-tagcloud { margin: 5px 0 10px; padding: 8px; border: 1px solid #dcdcde; line-height: 1.2; word-spacing: 3px; } .the-tagcloud ul { margin: 0; } .the-tagcloud ul li { display: inline-block; } /* Back-compat styles from deprecated jQuery.suggest, see ticket #40260. */ .ac_results { display: none; margin: -1px 0 0; padding: 0; list-style: none; position: absolute; z-index: 10000; border: 1px solid #4f94d4; background-color: #fff; } .wp-customizer .ac_results { z-index: 500000; } .ac_results li { margin: 0; padding: 5px 10px; white-space: nowrap; text-align: left; } .ac_results .ac_over, .ac_over .ac_match { background-color: #2271b1; color: #fff; cursor: pointer; } .ac_match { text-decoration: underline; } #addtag .spinner { float: none; vertical-align: top; } #edittag { max-width: 800px; } .edit-tag-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; } /* Comments */ .comment-php .wp-editor-area { height: 200px; } .comment-ays th, .comment-ays td { padding: 10px 15px; } .comment-ays .comment-content ul { list-style: initial; margin-left: 2em; } .comment-ays .comment-content a[href]:after { content: "(" attr( href ) ")"; display: inline-block; padding: 0 4px; color: #646970; font-size: 13px; word-break: break-all; } .comment-ays .comment-content p.edit-comment { margin-top: 10px; } .comment-ays .comment-content p.edit-comment a[href]:after { content: ""; padding: 0; } .comment-ays-submit .button-cancel { margin-left: 1em; } .trash-undo-inside, .spam-undo-inside { margin: 1px 8px 1px 0; line-height: 1.23076923; } .spam-undo-inside .avatar, .trash-undo-inside .avatar { height: 20px; width: 20px; margin-right: 8px; vertical-align: middle; } .stuffbox .editcomment { clear: none; margin-top: 0; } #namediv.stuffbox .editcomment input { width: 100%; } #namediv.stuffbox .editcomment.form-table td { padding: 10px; } #comment-status-radio p { margin: 3px 0 5px; } #comment-status-radio input { margin: 2px 3px 5px 0; vertical-align: middle; } #comment-status-radio label { padding: 5px 0; } /* links tables */ table.links-table { width: 100%; border-spacing: 0; } .links-table th { font-weight: 400; text-align: left; vertical-align: top; min-width: 80px; width: 20%; word-wrap: break-word; } .links-table th, .links-table td { padding: 5px 0; } .links-table td label { margin-right: 8px; } .links-table td input[type="text"], .links-table td textarea { width: 100%; } .links-table #link_rel { max-width: 280px; } /* DFW 2 -------------------------------------------------------------- */ #qt_content_dfw { display: none; } .wp-editor-expand #qt_content_dfw { display: inline-block; } .focus-on .wrap > h1, .focus-on .page-title-action, .focus-on #wpfooter, .focus-on .postbox-container > *, .focus-on div.updated, .focus-on div.error, .focus-on div.notice, .focus-on .update-nag, .focus-on #wp-toolbar, .focus-on #screen-meta-links, .focus-on #screen-meta { opacity: 0; transition-duration: 0.6s; transition-property: opacity; transition-timing-function: ease-in-out; } .focus-on #wp-toolbar { opacity: 0.3; } .focus-off .wrap > h1, .focus-off .page-title-action, .focus-off #wpfooter, .focus-off .postbox-container > *, .focus-off div.updated, .focus-off div.error, .focus-off div.notice, .focus-off .update-nag, .focus-off #wp-toolbar, .focus-off #screen-meta-links, .focus-off #screen-meta { opacity: 1; transition-duration: 0.2s; transition-property: opacity; transition-timing-function: ease-in-out; } .focus-off #wp-toolbar { -webkit-transform: translate(0, 0); } .focus-on #adminmenuback, .focus-on #adminmenuwrap { transition-duration: 0.6s; transition-property: transform; transition-timing-function: ease-in-out; } .focus-on #adminmenuback, .focus-on #adminmenuwrap { transform: translateX( -100% ); } .focus-off #adminmenuback, .focus-off #adminmenuwrap { transform: translateX( 0 ); transition-duration: 0.2s; transition-property: transform; transition-timing-function: ease-in-out; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { #content-resize-handle, #post-body .wp_themeSkin .mceStatusbar a.mceResize { background: transparent url(../images/resize-2x.gif) no-repeat scroll right bottom; background-size: 11px 11px; } /*rtl:ignore*/ .rtl #content-resize-handle, .rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize { background-image: url(../images/resize-rtl-2x.gif); background-position: left bottom; } } /* * The edit attachment screen auto-switches to one column layout when the * viewport is smaller than 1200 pixels. */ @media only screen and (max-width: 1200px) { .post-type-attachment #poststuff { min-width: 0; } .post-type-attachment #wpbody-content #poststuff #post-body { margin: 0; } .post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1 { margin-right: 0; width: 100%; } .post-type-attachment #poststuff #postbox-container-1 .empty-container, .post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty { outline: none; height: 0; min-height: 0; } .post-type-attachment #poststuff #post-body.columns-2 #side-sortables { min-height: 0; width: auto; } .is-dragging-metaboxes.post-type-attachment #post-body .meta-box-sortables { border: none; background: transparent; min-height: 0; margin-bottom: 0; } /* hide the radio buttons for column prefs */ .post-type-attachment .screen-layout, .post-type-attachment .columns-prefs { display: none; } } /* one column on the post write/edit screen */ @media only screen and (max-width: 850px) { #poststuff { min-width: 0; } #wpbody-content #poststuff #post-body { margin: 0; } #wpbody-content #post-body.columns-2 #postbox-container-1 { margin-right: 0; width: 100%; } #poststuff #postbox-container-1 .empty-container, #poststuff #postbox-container-1 #side-sortables:empty { height: 0; min-height: 0; } #poststuff #post-body.columns-2 #side-sortables { min-height: 0; width: auto; } /* Increase min-height while dragging for the #side-sortables and any potential sortables area with custom ID. */ .is-dragging-metaboxes #poststuff #postbox-container-1 .empty-container, .is-dragging-metaboxes #poststuff #postbox-container-1 #side-sortables:empty, .is-dragging-metaboxes #poststuff #post-body.columns-2 #side-sortables, .is-dragging-metaboxes #poststuff #post-body.columns-2 .meta-box-sortables { height: auto; min-height: 60px; } /* hide the radio buttons for column prefs */ .screen-layout, .columns-prefs { display: none; } } @media screen and (max-width: 782px) { .wp-core-ui .edit-tag-actions .button-primary { margin-bottom: 0; } #post-body-content { min-width: 0; } #titlediv #title-prompt-text { padding: 10px; } #poststuff .stuffbox .inside { padding: 0 2px 4px 0; } #poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff h2 { padding: 12px; } #namediv.stuffbox .editcomment.form-table td { padding: 5px 10px; } .post-format-options { padding-right: 0; } .post-format-options a { margin-right: 5px; margin-bottom: 5px; min-width: 52px; } .post-format-options .post-format-title { font-size: 11px; } .post-format-options a div { height: 28px; width: 28px; } .post-format-options a div:before { font-size: 26px !important; } /* Publish Metabox Options */ #post-visibility-select { line-height: 280%; } .wp-core-ui .save-post-visibility, .wp-core-ui .save-timestamp { vertical-align: middle; margin-right: 15px; } .timestamp-wrap select#mm { display: block; width: 100%; margin-bottom: 10px; } .timestamp-wrap #jj, .timestamp-wrap #aa, .timestamp-wrap #hh, .timestamp-wrap #mn { padding: 12px 3px; font-size: 14px; margin-bottom: 5px; width: auto; text-align: center; } /* Categories Metabox */ ul.category-tabs { margin: 30px 0 15px; } ul.category-tabs li.tabs { padding: 15px; } ul.categorychecklist li { margin-bottom: 15px; } ul.categorychecklist ul { margin-top: 15px; } .category-add input[type=text], .category-add select { max-width: none; margin-bottom: 15px; } /* Tags Metabox */ .tagsdiv .newtag { flex: 1; min-width: 0; height: auto; margin-bottom: 0; } .tagchecklist { margin: 25px 10px; } .tagchecklist > li { font-size: 16px; line-height: 1.4; } /* Discussion */ #commentstatusdiv p { line-height: 2.8; } /* TinyMCE Adjustments */ .mceToolbar * { white-space: normal !important; } .mceToolbar tr, .mceToolbar td { float: left !important; } .wp_themeSkin a.mceButton { width: 30px; height: 30px; } .wp_themeSkin .mceButton .mceIcon { margin-top: 5px; margin-left: 5px; } .wp_themeSkin .mceSplitButton { margin-top: 1px; } .wp_themeSkin .mceSplitButton td a.mceAction { padding: 6px 3px 6px 6px; } .wp_themeSkin .mceSplitButton td a.mceOpen, .wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen { padding-top: 6px; padding-bottom: 6px; background-position: 1px 6px; } .wp_themeSkin table.mceListBox { margin: 5px; } div.quicktags-toolbar input { padding: 10px 20px; } button.wp-switch-editor { font-size: 16px; line-height: 1; margin: 7px 0 0 7px; padding: 8px 12px; } #wp-content-media-buttons a { font-size: 14px; padding: 6px 10px; } .wp-media-buttons span.wp-media-buttons-icon, .wp-media-buttons span.jetpack-contact-form-icon { width: 22px !important; margin-left: -2px !important; } .wp-media-buttons .add_media span.wp-media-buttons-icon:before, .wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before { font-size: 20px !important; } #content_wp_fullscreen { display: none; } .misc-pub-section { padding: 12px 10px; } #delete-action, #publishing-action { line-height: 3.61538461; } #publishing-action .spinner { float: none; margin-top: -2px; /* Half of the Publish button's bottom margin. */ } /* Moderate Comment */ .comment-ays th, .comment-ays td { padding-bottom: 0; } .comment-ays td { padding-top: 6px; } /* Links */ .links-table #link_rel { max-width: none; } .links-table th, .links-table td { padding: 10px 0; } .edit-term-notes { display: none; } .privacy-text-box { width: auto; } .privacy-text-box-toc { float: none; width: auto; height: 100%; display: flex; flex-direction: column; } .privacy-text-section .return-to-top { margin: 2em 0 0; } } css/nav-menus-rtl.min.css000064400000033767152213653150011363 0ustar00/*! This file is auto-generated */ .no-js #message{display:block}ul.add-menu-item-tabs li{padding:3px 8px 4px 5px}.accordion-section ul.add-menu-item-tabs,.accordion-section ul.category-tabs,.accordion-section ul.wp-tab-bar{margin:0}.accordion-section .categorychecklist{margin:13px 0}#nav-menu-meta .accordion-section-content{padding:18px 13px;resize:vertical}#nav-menu-meta .button-controls{margin-bottom:0}.has-no-menu-item .button-controls{display:none}#nav-menus-frame{margin-right:300px;margin-top:23px}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-right:-300px;clear:both;float:right;padding-top:0}#menu-settings-column .inside{clear:both;margin:10px 0 0;height:100%;max-height:inherit}#menu-settings-column .categorydiv,#menu-settings-column .customlinkdiv,#menu-settings-column .posttypediv,#menu-settings-column .taxonomydiv{max-height:inherit;height:100%}#menu-settings-column .categorydiv div.tabs-panel,#menu-settings-column .customlinkdiv div.tabs-panel,#menu-settings-column .posttypediv div.tabs-panel,#menu-settings-column .taxonomydiv div.tabs-panel,#menu-settings-column .wp-tab-panel{max-height:calc(100% - 75px);height:100%}.metabox-holder-disabled .accordion-section-content,.metabox-holder-disabled .accordion-section-title,.metabox-holder-disabled .postbox{opacity:.5}.metabox-holder-disabled .button-controls .select-all{display:none}#wpbody{position:relative}.is-submenu{color:#50575e;font-style:italic;font-weight:400;margin-right:4px}.manage-menus{margin-top:23px;padding:10px;overflow:hidden;background:#fff}.manage-menus .selected-menu,.manage-menus .submit-btn,.manage-menus select,.nav-menus-php .add-new-menu-action{display:inline-block;margin-left:3px;vertical-align:middle}.manage-menus select,.menu-location-menus select{max-width:100%}.menu-edit #post-body-content h3{margin:1em 0 10px}#nav-menu-bulk-actions-top{margin:1em 0}#nav-menu-bulk-actions-bottom{margin:1em 0;margin:calc(1em + 9px) 0}.bulk-actions input.button{margin-left:12px}.bulk-select-button{position:relative;display:inline-block;padding:0 10px;font-size:13px;line-height:2.15384615;height:auto;min-height:30px;background:#f6f7f7;vertical-align:top;border:1px solid #dcdcde;margin:0;cursor:pointer;border-radius:3px;white-space:nowrap;box-sizing:border-box}.bulk-selection .bulk-select-button{color:#2271b1;border-color:#2271b1;background:#f6f7f7;vertical-align:top}#pending-menu-items-to-delete{display:none}.bulk-selection #pending-menu-items-to-delete{display:block;margin-top:1em}#pending-menu-items-to-delete p{margin-bottom:0}#pending-menu-items-to-delete ul{margin-top:0;list-style:none}#pending-menu-items-to-delete ul li{display:inline}input.bulk-select-switcher+.bulk-select-button-label{vertical-align:inherit}label.bulk-select-button:active,label.bulk-select-button:focus-within,label.bulk-select-button:hover{background:#f0f0f1;border-color:#0a4b78;color:#0a4b78}input.bulk-select-switcher:focus+.bulk-select-button-label{color:#0a4b78}.bulk-actions input.menu-items-delete{appearance:none;font-size:inherit;border:0;line-height:2.1em;background:0 0;cursor:pointer;text-decoration:underline;color:#b32d2e}.bulk-actions input.menu-items-delete:hover{color:#b32d2e;border:none}.bulk-actions input.menu-items-delete.disabled{display:none}.menu-settings{border-top:1px solid #f0f0f1;margin-top:2em}.menu-settings-group{margin:0 0 10px;padding-right:20%}.menu-settings-group:last-of-type{margin-bottom:0}.menu-settings-input{float:right;margin:0;width:100%}.menu-settings-group-name{float:right;clear:both;width:25%;padding:3px 0 0;margin-right:-25%}.menu-settings label{vertical-align:baseline}.menu-edit .checkbox-input{margin-top:4px}.theme-location-set{color:#646970;font-size:11px}#menu-management-liquid{float:right;min-width:100%;margin-top:3px}#menu-management{position:relative;margin-left:20px;margin-top:-3px;width:100%}#menu-management .menu-edit{margin-bottom:20px}.nav-menus-php #post-body{padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid #dcdcde;background:#fff}#nav-menu-footer,#nav-menu-header{padding:0 10px;background:#f6f7f7}#nav-menu-header{border-bottom:1px solid #dcdcde;margin-bottom:0}#nav-menu-header .menu-name-label{display:inline-block;vertical-align:middle;margin-left:7px}.nav-menus-php #post-body div.error,.nav-menus-php #post-body div.updated{margin:0}.nav-menus-php #post-body-content{position:relative;float:none}.nav-menus-php #post-body-content .post-body-plain{margin-bottom:0}#menu-management .menu-add-new abbr{font-weight:600}#select-nav-menu-container{text-align:left;padding:0 10px 3px;margin-bottom:5px}#select-nav-menu{width:100px;display:inline}#menu-name-label{margin-top:-2px}.widefat .menu-locations .menu-location-title{padding:13px 10px 0}.menu-location-title label{font-weight:600}.menu-location-menus select{float:right}#locations-nav-menu-wrapper{padding:5px 0}.locations-nav-menu-select select{float:right;width:160px;margin-left:5px}.locations-row-links{float:right;margin:6px 6px 0 0}.locations-add-menu-link,.locations-edit-menu-link{margin:0 3px}.locations-edit-menu-link{padding-left:3px;border-left:1px solid #c3c4c7}#menu-management .inside{padding:0 10px}.postbox .howto input{width:180px;float:left}.accordion-container .outer-border{margin:0}.customlinkdiv p{margin-top:0}#nav-menu-theme-locations .howto select{width:100%}#nav-menu-theme-locations .button-controls{text-align:left}.add-menu-item-view-all{height:400px}#menu-container .submit{margin:0 0 10px;padding:0}#cancel-save{text-decoration:underline;font-size:12px;margin-right:20px;margin-top:5px}.button-primary.right,.button-secondary.right,.button.right{float:left}.list-controls{float:right}.add-to-menu{float:left}.button-controls{clear:both;margin:10px 0}.hide-all,.show-all{cursor:pointer}.hide-all{display:none}#menu-name{width:270px;vertical-align:middle}#manage-menu .inside{padding:0}#available-links dt{display:block}#add-custom-link .howto{font-size:12px}#add-custom-link label span{display:block;float:right;margin-top:5px;padding-left:5px}.menu-item-textbox{width:180px}.customlinkdiv .menu-item-textbox{width:100%}.nav-menus-php .howto span{float:right;margin-top:6px}.quick-search{width:190px}.quick-search-wrap .spinner{float:none;margin:-3px 0 0 -10px}.nav-menus-php .list-wrap{display:none;clear:both;margin-bottom:10px}.nav-menus-php .postbox p.submit{margin-bottom:0}.nav-menus-php .list li{display:none;margin:0 0 5px}.nav-menus-php .list li .menu-item-title{cursor:pointer;display:block}.nav-menus-php .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.menu-item-title input[type=checkbox]{display:inline-block;margin-top:-4px}.menu-item-title .post-state{font-weight:600}#menu-container .inside{padding-bottom:10px}.menu{padding-top:1em}#menu-to-edit{margin:0;padding:.1em 0}.menu ul{width:100%}.menu li{margin-bottom:0;position:relative}.menu-item-bar{clear:both;line-height:1.5;position:relative;margin:9px 0 0}.menu-item-bar .menu-item-handle{border:1px solid #dcdcde;position:relative;padding:10px 15px;height:auto;min-height:20px;max-width:382px;line-height:2.30769230;overflow:hidden;word-wrap:break-word}.menu-item-bar .menu-item-handle:hover{border-color:#8c8f94}#menu-to-edit .menu-item-invalid .menu-item-handle{background:#fcf0f1;border-color:#d63638}.no-js .menu-item-edit-active .item-edit{display:none}.js .menu-item-handle{cursor:move}.menu li.deleting .menu-item-handle{background-image:none;background-color:#f86368}.menu-item-handle .item-title{font-size:13px;font-weight:600;line-height:1.53846153;display:block;margin-left:13em}.menu-item-handle .menu-item-checkbox{display:none}.bulk-selection .menu-item-handle .menu-item-checkbox{display:inline-block;margin-left:6px}.menu-item-handle .menu-item-title.no-title{color:#646970}li.menu-item.ui-sortable-helper .menu-item-bar{margin-top:0}li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar{margin-top:9px}.menu .sortable-placeholder{height:35px;width:410px;margin-top:9px}.menu-item .menu-item-transport:empty{display:none}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:30px}.menu-item-depth-2{margin-right:60px}.menu-item-depth-3{margin-right:90px}.menu-item-depth-4{margin-right:120px}.menu-item-depth-5{margin-right:150px}.menu-item-depth-6{margin-right:180px}.menu-item-depth-7{margin-right:210px}.menu-item-depth-8{margin-right:240px}.menu-item-depth-9{margin-right:270px}.menu-item-depth-10{margin-right:300px}.menu-item-depth-11{margin-right:330px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-30px}.menu-item-depth-2 .menu-item-transport{margin-right:-60px}.menu-item-depth-3 .menu-item-transport{margin-right:-90px}.menu-item-depth-4 .menu-item-transport{margin-right:-120px}.menu-item-depth-5 .menu-item-transport{margin-right:-150px}.menu-item-depth-6 .menu-item-transport{margin-right:-180px}.menu-item-depth-7 .menu-item-transport{margin-right:-210px}.menu-item-depth-8 .menu-item-transport{margin-right:-240px}.menu-item-depth-9 .menu-item-transport{margin-right:-270px}.menu-item-depth-10 .menu-item-transport{margin-right:-300px}.menu-item-depth-11 .menu-item-transport{margin-right:-330px}body.menu-max-depth-0{min-width:950px!important}body.menu-max-depth-1{min-width:980px!important}body.menu-max-depth-2{min-width:1010px!important}body.menu-max-depth-3{min-width:1040px!important}body.menu-max-depth-4{min-width:1070px!important}body.menu-max-depth-5{min-width:1100px!important}body.menu-max-depth-6{min-width:1130px!important}body.menu-max-depth-7{min-width:1160px!important}body.menu-max-depth-8{min-width:1190px!important}body.menu-max-depth-9{min-width:1220px!important}body.menu-max-depth-10{min-width:1250px!important}body.menu-max-depth-11{min-width:1280px!important}.item-type{display:inline-block;padding:12px 16px;color:#646970;font-size:12px;line-height:1.5}.item-controls{font-size:12px;position:absolute;left:20px;top:-1px}.item-controls a{text-decoration:none}.item-controls a:hover{cursor:pointer}.item-controls .item-order{padding-left:10px}.nav-menus-php .item-edit{position:absolute;left:-20px;top:0;display:block;width:30px;height:40px;outline:0}.no-js.nav-menus-php .item-edit{position:static;float:left;width:auto;height:auto;margin:12px 0 12px -10px;padding:0;color:#2271b1;text-decoration:underline;font-size:12px;line-height:1.5}.no-js.nav-menus-php .item-edit .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.nav-menus-php .item-edit:before{margin-top:10px;margin-right:4px;width:20px;border-radius:50%;text-indent:-1px}.no-js.nav-menus-php .item-edit:before{display:none}.rtl .nav-menus-php .item-edit:before{text-indent:1px}.js.nav-menus-php .item-edit:focus{box-shadow:none}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.menu-instructions-inactive{display:none}.menu-item-settings{display:block;max-width:392px;padding:10px;position:relative;z-index:10;border:1px solid #c3c4c7;border-top:none;box-shadow:0 1px 1px rgba(0,0,0,.04)}.menu-item-settings .field-move{margin:3px 0 5px;line-height:1.5}.field-move-visual-label{float:right;margin-left:4px}.menu-item-settings .field-move .button-link{display:none;margin:0 2px}.menu-item-edit-active .menu-item-settings{display:block}.menu-item-edit-inactive .menu-item-settings{display:none}.add-menu-item-pagelinks{margin:.5em -10px;text-align:center}.add-menu-item-pagelinks .page-numbers{display:inline-block;min-width:20px}.add-menu-item-pagelinks .page-numbers.dots{min-width:0}.link-to-original{display:block;margin:0 0 15px;padding:3px 5px 5px;border:1px solid #dcdcde;color:#646970;font-size:12px}.link-to-original a{padding-right:4px;font-style:normal}.hidden-field{display:none}.description-group{display:flex;column-gap:10px}.description-group>*{flex-grow:1}.menu-item-actions{padding-top:15px;padding-bottom:7px}#cancel-save{cursor:pointer}.nav-menus-php .major-publishing-actions{padding:10px 0;display:flex;align-items:center}.nav-menus-php .major-publishing-actions>*{margin-left:10px}.nav-menus-php .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}#menu-item-name-wrap,#menu-item-url-wrap,#nav-menus-frame{display:block}.button-controls{display:flex;align-items:center;justify-content:space-between}.button-controls-customlinkdiv{justify-content:flex-end}@media only screen and (min-width:769px) and (max-width:1000px){body.menu-max-depth-0{min-width:0!important}#menu-management-liquid{width:100%}.nav-menus-php #post-body-content{min-width:0}}@media screen and (max-width:782px){body.nav-menus-php,body.wp-customizer{min-width:0!important}#nav-menus-frame{margin-right:0;float:none;width:100%}#wpbody-content #menu-settings-column{display:block;width:100%;float:none;margin-right:0}#side-sortables .add-menu-item-tabs{margin:15px 0 14px}ul.add-menu-item-tabs li.tabs{padding:13px 15px 14px}.nav-menus-php .customlinkdiv .howto input{width:65%}.nav-menus-php .quick-search{width:85%}#menu-management-liquid{margin-top:25px}.nav-menus-php .menu-name-label.howto span{margin-top:13px}#menu-name{width:100%}.nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action{padding-top:1em}.nav-menus-php .delete-action{font-size:14px;line-height:2.14285714}.menu-item-bar .menu-item-handle,.menu-item-settings{width:auto}.menu-item-settings{padding:10px}.menu-item-settings .description-group{display:block}.menu-item-settings input{width:100%}.menu-item-settings input[type=checkbox],.menu-item-settings input[type=radio]{width:25px}.menu-settings-group{padding-right:0;overflow:visible}.menu-settings-group-name{float:none;width:auto;margin-right:0;margin-bottom:15px}.menu-settings-input{float:none;margin-bottom:15px}.menu-edit .checkbox-input{margin-top:0}.manage-menus select{margin:.5em 0}.wp-core-ui .manage-menus .button{margin-bottom:0}.widefat .menu-locations .menu-location-title{padding-top:16px}}@media only screen and (min-width:783px){@supports (position:sticky) and (scroll-margin-bottom:130px){#nav-menu-footer{position:sticky;bottom:0;z-index:10;box-shadow:0 -1px 0 0 #ddd}#save_menu_header{display:none}}}@media only screen and (max-width:768px){#menu-locations-wrap .widefat{width:100%}.bulk-select-button{padding:5px 10px}}css/edit-rtl.min.css000064400000073574152213653150010377 0ustar00/*! This file is auto-generated */ #poststuff{padding-top:10px;min-width:763px}#poststuff #post-body{padding:0}#poststuff .postbox-container{width:100%}#poststuff #post-body.columns-2{margin-left:300px}#show-comments{overflow:hidden}#save-action .spinner,#show-comments a{float:right}#show-comments .spinner{float:none;margin-top:0}#lost-connection-notice .spinner{visibility:visible;float:right;margin:0 0 0 5px}#titlediv{position:relative}#titlediv label{cursor:text}#titlediv div.inside{margin:0}#poststuff #titlewrap{border:0;padding:0}#titlediv #title{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.7em;width:100%;outline:0;margin:0 0 3px;background-color:#fff}#titlediv #title-prompt-text{color:#646970;position:absolute;font-size:1.7em;padding:10px;pointer-events:none}#titlewrap .skiplink{background:#fff;line-height:2.30769231;min-height:32px;left:4px}#titlewrap .skiplink:focus{clip:inherit;clip-path:inherit;top:4px;width:auto}input#link_description,input#link_url{width:100%}#pending{background:100% none;border:0 none;padding:0;font-size:11px;margin-top:-1px}#comment-link-box,#edit-slug-box{line-height:1.84615384;min-height:25px;margin-top:5px;padding:0 10px;color:#646970}#sample-permalink{display:inline-block;max-width:100%;word-wrap:break-word}#edit-slug-box .cancel{margin-left:10px;padding:0}#comment-link-box{margin:5px 0;padding:0 5px}#editable-post-name-full{display:none}#editable-post-name{font-weight:600}#editable-post-name input{font-size:13px;font-weight:400;min-height:32px;margin:0;width:16em}.postarea h3 label{float:right}body.post-new-php .submitbox .submitdelete{display:none}.submitbox .submit a:hover{text-decoration:underline}.submitbox .submit input{margin-bottom:8px;margin-left:4px;padding:6px}#post-status-select{margin-top:3px}body.post-type-wp_navigation .inline-edit-status,body.post-type-wp_navigation div#minor-publishing{display:none}.is-dragging-metaboxes .metabox-holder .postbox-container .meta-box-sortables{border-radius:8px;background:rgb(var(--wp-admin-theme-color--rgb),.04);min-height:60px;margin-bottom:20px}.postbox{position:relative;min-width:255px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}#trackback_url{width:99%}#normal-sortables .postbox .submit{background:transparent none;border:0 none;float:left;padding:0 12px;margin:0}.category-add input[type=text],.category-add select{width:100%;max-width:260px;vertical-align:baseline}#side-sortables .category-add input[type=text],#side-sortables .category-add select{margin:0 0 1em}#side-sortables .add-menu-item-tabs li,.wp-tab-bar li,ul.category-tabs li{display:inline;line-height:1.35}.no-js .category-tabs li.hide-if-no-js{display:none}#side-sortables .add-menu-item-tabs a,.category-tabs a,.wp-tab-bar a{text-decoration:none}#post-body ul.add-menu-item-tabs li.tabs a,#post-body ul.category-tabs li.tabs a,#side-sortables .add-menu-item-tabs .tabs a,#side-sortables .category-tabs .tabs a,.wp-tab-bar .wp-tab-active a{color:#2c3338}.category-tabs{margin:8px 0 5px}#category-adder h4{margin:0}.taxonomy-add-new{display:inline-block;margin:10px 0;font-weight:600}#side-sortables .add-menu-item-tabs,.wp-tab-bar{margin-bottom:3px}#normal-sortables .postbox #replyrow .submit{float:none;margin:0;padding:5px 7px 10px;overflow:hidden}#side-sortables .submitbox .submit .preview,#side-sortables .submitbox .submit a.preview:hover,#side-sortables .submitbox .submit input{border:0 none}ul.add-menu-item-tabs,ul.category-tabs,ul.wp-tab-bar{margin-top:12px}ul.add-menu-item-tabs li,ul.category-tabs li{border:solid 1px transparent;position:relative}.wp-tab-active,ul.add-menu-item-tabs li.tabs,ul.category-tabs li.tabs{border:1px solid #dcdcde;border-bottom-color:#fff;background-color:#fff}ul.add-menu-item-tabs li,ul.category-tabs li,ul.wp-tab-bar li{padding:3px 5px 6px}#set-post-thumbnail{display:inline-block;max-width:100%}#postimagediv .inside img{max-width:100%;height:auto;vertical-align:top;background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}form#tags-filter{position:relative}.ui-tabs-hide,.wp-hidden-children .wp-hidden-child{display:none}#post-body .tagsdiv #newtag{margin-left:0;flex:1;min-width:0}#side-sortables input#post_password{width:94%}#side-sortables .tagsdiv #newtag{flex:1;min-width:0}#post-status-info{width:100%;border-spacing:0;border:1px solid #c3c4c7;border-top:none;background-color:#f6f7f7;box-shadow:0 1px 1px rgba(0,0,0,.04);z-index:999}#post-status-info td{font-size:12px}.autosave-info{padding:2px 10px;text-align:left}#editorcontent #post-status-info{border:none}#content-resize-handle{background:transparent url(../images/resize.gif) no-repeat scroll left bottom;width:12px;cursor:row-resize}.rtl #content-resize-handle{background-image:url(../images/resize-rtl.gif);background-position:left bottom}.wp-editor-expand #content-resize-handle{display:none}#postdivrich #content{resize:none}#wp-word-count{padding:2px 10px}#wp-content-editor-container{position:relative}.wp-editor-expand #wp-content-editor-tools{z-index:1000;border-bottom:1px solid #c3c4c7}.wp-editor-expand #wp-content-editor-container{box-shadow:none;margin-top:-1px}.wp-editor-expand #wp-content-editor-container{border-bottom:0 none}.wp-editor-expand div.mce-statusbar{z-index:1}.wp-editor-expand #post-status-info{border-top:1px solid #c3c4c7}.wp-editor-expand div.mce-toolbar-grp{z-index:999}.mce-fullscreen #wp-content-wrap .mce-edit-area,.mce-fullscreen #wp-content-wrap .mce-menubar,.mce-fullscreen #wp-content-wrap .mce-statusbar,.mce-fullscreen #wp-content-wrap .mce-toolbar-grp{position:static!important;width:auto!important;padding:0!important}.mce-fullscreen #wp-content-wrap .mce-statusbar{visibility:visible!important}.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw{display:none}.mce-fullscreen #wp-content-wrap .mce-wp-dfw,.post-php.mce-fullscreen #wpadminbar{display:none}#wp-content-editor-tools{background-color:#f0f0f1;padding-top:20px}#poststuff #post-body.columns-2 #side-sortables{width:280px}#timestampdiv select{vertical-align:top;font-size:12px;line-height:2.33333333}#aa,#hh,#jj,#mn{padding:6px 1px;font-size:12px;line-height:1.16666666}#hh,#jj,#mn{width:2em}#aa{width:3.4em}.curtime #timestamp{padding:2px 0 1px;display:inline!important;height:auto!important}#post-body #visibility:before,#post-body .misc-pub-comment-status:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-response-to:before,#post-body .misc-pub-revisions:before,#post-body .misc-pub-uploadedby:before,#post-body .misc-pub-uploadedto:before,.curtime #timestamp:before{color:#8c8f94}#post-body #visibility:before,#post-body .misc-pub-comment-status:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-response-to:before,#post-body .misc-pub-revisions:before,#post-body .misc-pub-uploadedby:before,#post-body .misc-pub-uploadedto:before,.curtime #timestamp:before{font:normal 20px/1 dashicons;display:inline-block;margin-right:-1px;padding-left:3px;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#post-body .misc-pub-comment-status:before,#post-body .misc-pub-post-status:before{content:"\f173";content:"\f173"/''}#post-body #visibility:before{content:"\f177";content:"\f177"/''}.curtime #timestamp:before{content:"\f145";content:"\f145"/'';position:relative;top:-1px}#post-body .misc-pub-uploadedby:before{content:"\f110";content:"\f110"/'';position:relative;top:-1px}#post-body .misc-pub-uploadedto:before{content:"\f318";content:"\f318"/'';position:relative;top:-1px}#post-body .misc-pub-revisions:before{content:"\f321";content:"\f321"/''}#post-body .misc-pub-response-to:before{content:"\f101";content:"\f101"/''}#timestampdiv{padding-top:5px;line-height:1.76923076}#timestampdiv p{margin:8px 0 6px}#timestampdiv input{text-align:center}.notification-dialog{position:fixed;top:30%;max-height:70%;right:50%;width:450px;margin-right:-225px;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;z-index:1000005;overflow-y:auto}.notification-dialog-background{position:fixed;top:0;right:0;left:0;bottom:0;background:#000;opacity:.7;z-index:1000000}#post-lock-dialog .post-locked-message,#post-lock-dialog .post-taken-over{margin:25px}#file-editor-warning .button,#post-lock-dialog .post-locked-message a.button{margin-left:10px}#post-lock-dialog .post-locked-avatar{float:right;margin:0 0 20px 20px}#post-lock-dialog .wp-tab-first{outline:0}#post-lock-dialog .locked-saving img{float:right;margin-left:3px}#post-lock-dialog.saved .locked-saved,#post-lock-dialog.saving .locked-saving{display:inline}#excerpt{display:block;margin:12px 0 0;height:4em;width:100%}.tagchecklist{margin-right:14px;font-size:12px;overflow:auto}.tagchecklist br{display:none}.tagchecklist strong{margin-right:-8px;position:absolute}.tagchecklist>li{float:right;margin-left:25px;font-size:13px;line-height:1.8;cursor:default;max-width:100%;overflow:hidden;text-overflow:ellipsis}.tagchecklist .ntdelbutton{position:absolute;width:24px;height:24px;border:none;margin:0 -19px 0 0;padding:0;background:0 0;cursor:pointer;text-indent:0}#poststuff .stuffbox>h3,#poststuff h2,#poststuff h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}#poststuff .stuffbox h2{padding:8px 10px}#poststuff .stuffbox>h2{border-bottom:1px solid #f0f0f1}#poststuff .inside{margin:6px 0 0}.link-add-php #poststuff .inside,.link-php #poststuff .inside{margin-top:12px}#poststuff .stuffbox .inside{margin:0}#poststuff .inside #page_template,#poststuff .inside #parent_id{max-width:100%}.post-attributes-label-wrapper{margin-bottom:.5em}.post-attributes-label{vertical-align:baseline;font-weight:600}#comment-status-radio,#post-visibility-select{line-height:1.5;margin-top:3px}#linksubmitdiv .inside,#poststuff #submitdiv .inside{margin:0;padding:0}#post-body-content,.edit-form-section{margin-bottom:20px}.wp_attachment_details .attachment-content-description{margin-top:.5385em;display:inline-block;min-height:1.6923em}.privacy-settings #wpcontent,.privacy-settings.auto-fold #wpcontent,.site-health #wpcontent,.site-health.auto-fold #wpcontent{padding-right:0}.privacy-settings .notice,.site-health .notice{margin:25px 22px 15px 20px}.privacy-settings .notice~.notice,.site-health .notice~.notice{margin-top:5px}.health-check-header h1,.privacy-settings-header h1{display:inline-block;font-weight:600;margin:0 .8rem 1rem;font-size:23px;padding:9px 0 4px;line-height:1.3}.health-check-header,.privacy-settings-header{text-align:center;margin:0 0 1rem;background:#fff;border-bottom:1px solid #dcdcde}.health-check-title-section,.privacy-settings-title-section{display:flex;align-items:center;justify-content:center;clear:both;padding-top:8px}.privacy-settings-tabs-wrapper{display:-ms-inline-grid;-ms-grid-columns:1fr 1fr;vertical-align:top;display:inline-grid;grid-template-columns:1fr 1fr}.privacy-settings-tab{display:block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-tab:first-child,.privacy-settings-tab:first-child{-ms-grid-column:1}.health-check-tab:nth-child(2),.privacy-settings-tab:nth-child(2){-ms-grid-column:2}.health-check-tab:focus,.privacy-settings-tab:focus{color:#1d2327;outline:1px solid #787c82;box-shadow:none}.health-check-tab.active,.privacy-settings-tab.active{box-shadow:inset 0 -3px var(--wp-admin-theme-color);font-weight:600}.health-check-body,.privacy-settings-body{max-width:800px;margin:0 auto}.tools-privacy-policy-page th{min-width:230px}.hr-separator{margin-top:20px;margin-bottom:15px}.health-check-accordion,.privacy-settings-accordion{border:1px solid #c3c4c7}.health-check-accordion-heading,.privacy-settings-accordion-heading{margin:0;border-top:1px solid #c3c4c7;font-size:inherit;line-height:inherit;font-weight:600;color:inherit}.health-check-accordion-heading:first-child,.privacy-settings-accordion-heading:first-child{border-top:none}.health-check-accordion-trigger,.privacy-settings-accordion-trigger{background:#fff;border:0;color:#2c3338;cursor:pointer;display:flex;font-weight:400;margin:0;padding:1em 1.5em 1em 3.5em;min-height:46px;position:relative;text-align:right;width:100%;align-items:center;justify-content:space-between;-webkit-user-select:auto;user-select:auto}.health-check-accordion-trigger:active,.health-check-accordion-trigger:hover,.privacy-settings-accordion-trigger:active,.privacy-settings-accordion-trigger:hover{background:#f6f7f7}.health-check-accordion-trigger:focus,.privacy-settings-accordion-trigger:focus{color:#1d2327;border:none;box-shadow:none;outline-offset:-1px;outline:2px solid var(--wp-admin-theme-color);background-color:#f6f7f7}.health-check-accordion-trigger .title,.privacy-settings-accordion-trigger .title{pointer-events:none;font-weight:600;flex-grow:1}.health-check-accordion-trigger .icon,.privacy-settings-accordion-trigger .icon,.privacy-settings-view-read .icon,.site-health-view-passed .icon{border:solid #50575e;border-width:0 0 2px 2px;height:.5rem;pointer-events:none;position:absolute;left:1.5em;top:50%;transform:translateY(-70%) rotate(-45deg);width:.5rem}.health-check-accordion-trigger .badge,.privacy-settings-accordion-trigger .badge{padding:.1rem .5rem .15rem;color:#2c3338;font-weight:600}.privacy-settings-accordion-trigger .badge{margin-right:.5rem}.health-check-accordion-trigger .badge.blue,.privacy-settings-accordion-trigger .badge.blue{border:1px solid var(--wp-admin-theme-color)}.health-check-accordion-trigger .badge.orange,.privacy-settings-accordion-trigger .badge.orange{border:1px solid #dba617}.health-check-accordion-trigger .badge.red,.privacy-settings-accordion-trigger .badge.red{border:1px solid #e65054}.health-check-accordion-trigger .badge.green,.privacy-settings-accordion-trigger .badge.green{border:1px solid #00ba37}.health-check-accordion-trigger .badge.purple,.privacy-settings-accordion-trigger .badge.purple{border:1px solid #2271b1}.health-check-accordion-trigger .badge.gray,.privacy-settings-accordion-trigger .badge.gray{border:1px solid #c3c4c7}.health-check-accordion-trigger[aria-expanded=true] .icon,.privacy-settings-accordion-trigger[aria-expanded=true] .icon,.privacy-settings-view-passed[aria-expanded=true] .icon,.site-health-view-passed[aria-expanded=true] .icon{transform:translateY(-30%) rotate(135deg)}.health-check-accordion-panel,.privacy-settings-accordion-panel{margin:0;padding:1em 1.5em;background:#fff}.health-check-accordion-panel[hidden],.privacy-settings-accordion-panel[hidden]{display:none}.health-check-accordion-panel a .dashicons,.privacy-settings-accordion-panel a .dashicons{text-decoration:none}.privacy-settings-accordion-actions{justify-content:right;display:flex;align-items:center;flex-wrap:wrap;gap:1em}.privacy-settings-accordion-actions .success{display:none;color:#007017}.privacy-settings-accordion-actions .success.visible{display:inline-block}.privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-policy-tutorial,.privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-text-copy,.privacy-settings-accordion-panel.hide-privacy-policy-tutorial .wp-policy-help{display:none}.privacy-settings-accordion-panel strong.privacy-policy-tutorial,.privacy-settings-accordion-panel strong.wp-policy-help{display:block;margin:0 0 1em}.privacy-text-copy span{pointer-events:none}.privacy-settings-accordion-panel .wp-suggested-text div>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),.privacy-settings-accordion-panel .wp-suggested-text>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),.privacy-settings-accordion-panel div>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),.privacy-settings-accordion-panel>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p){margin:0;padding:1em;border-right:2px solid #787c82}@media screen and (max-width:782px){.health-check-body,.privacy-settings-body{margin:0 12px;width:auto}.privacy-settings .notice,.site-health .notice{margin:5px 10px 15px}.privacy-settings .update-nag,.site-health .update-nag{margin-left:10px;margin-right:10px}input#create-page{margin-top:10px}.wp-core-ui button.privacy-text-copy{white-space:normal;line-height:1.8}#edit-slug-box{padding:0}#editable-post-name input{min-height:40px}}@media only screen and (max-width:1004px){.health-check-body,.privacy-settings-body{margin:0 22px;width:auto}}#postcustomstuff thead th{padding:5px 8px 8px;background-color:#f0f0f1}#postcustom #postcustomstuff .submit{border:0 none;float:none;padding:0 8px 8px}#postcustom #postcustomstuff .add-custom-field{padding:12px 8px 8px}#side-sortables #postcustom #postcustomstuff .submit{margin:0;padding:0}#side-sortables #postcustom #postcustomstuff #the-list textarea{height:85px}#side-sortables #postcustom #postcustomstuff td.left input,#side-sortables #postcustom #postcustomstuff td.left select,#side-sortables #postcustomstuff #newmetaleft a{margin:3px 3px 0}#postcustomstuff table{margin:0;width:100%;border:1px solid #dcdcde;border-spacing:0;background-color:#f6f7f7}#postcustomstuff tr{vertical-align:top}#postcustomstuff table input,#postcustomstuff table select,#postcustomstuff table textarea{width:96%;margin:8px}#side-sortables #postcustomstuff table input,#side-sortables #postcustomstuff table select,#side-sortables #postcustomstuff table textarea{margin:3px}#postcustomstuff td.left,#postcustomstuff th.left{width:38%}#postcustomstuff .submit input{margin:0;width:auto}#postcustomstuff #newmeta-button,#postcustomstuff #newmetaleft a{display:inline-block;margin:0 8px 8px;text-decoration:none}.no-js #postcustomstuff #enternew{display:none}#post-body-content .compat-attachment-fields{margin-bottom:20px}.compat-attachment-fields th{padding-top:5px;padding-left:10px}#select-featured-image{padding:4px 0;overflow:hidden}#select-featured-image img{max-width:100%;height:auto;margin-bottom:10px}#select-featured-image a{float:right;clear:both}#select-featured-image .remove{display:none;margin-top:10px}.js #select-featured-image.has-featured-image .remove{display:inline-block}.no-js #select-featured-image .choose{display:none}.post-format-icon::before{display:inline-block;vertical-align:middle;height:20px;width:20px;margin-top:-4px;margin-left:7px;color:#dcdcde;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a.post-format-icon:hover:before{color:#135e96}#post-formats-select{line-height:2}#post-formats-select .post-format-icon::before{top:5px}input.post-format{margin-top:1px}label.post-format-icon{margin-right:0;padding:2px 0}.post-format-icon.post-format-standard::before{content:"\f109";content:"\f109"/''}.post-format-icon.post-format-image::before{content:"\f128";content:"\f128"/''}.post-format-icon.post-format-gallery::before{content:"\f161";content:"\f161"/''}.post-format-icon.post-format-audio::before{content:"\f127";content:"\f127"/''}.post-format-icon.post-format-video::before{content:"\f126";content:"\f126"/''}.post-format-icon.post-format-chat::before{content:"\f125";content:"\f125"/''}.post-format-icon.post-format-status::before{content:"\f130";content:"\f130"/''}.post-format-icon.post-format-aside::before{content:"\f123";content:"\f123"/''}.post-format-icon.post-format-quote::before{content:"\f122";content:"\f122"/''}.post-format-icon.post-format-link::before{content:"\f103";content:"\f103"/''}.category-adder{margin-right:120px;padding:4px 0}.category-adder h4{margin:0 0 8px}#side-sortables .category-adder{margin:0}.categorydiv div.tabs-panel,.customlinkdiv div.tabs-panel,.posttypediv div.tabs-panel,.taxonomydiv div.tabs-panel,.wp-tab-panel{min-height:42px;max-height:200px;overflow:auto;padding:0 .9em;border:solid 1px #dcdcde;background-color:#fff}div.tabs-panel-active{display:block}div.tabs-panel-inactive{display:none}div.tabs-panel-active:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#front-page-warning,#front-static-pages ul,.categorydiv ul.categorychecklist ul,.customlinkdiv ul.categorychecklist ul,.inline-editor ul.cat-checklist ul,.options-discussion-php .indent-children ul,.posttypediv ul.categorychecklist ul,.taxonomydiv ul.categorychecklist ul,ul.export-filters{margin-right:18px}ul.categorychecklist li{margin:0;padding:0;line-height:1.69230769;word-wrap:break-word}.categorydiv .tabs-panel,.customlinkdiv .tabs-panel,.posttypediv .tabs-panel,.taxonomydiv .tabs-panel{border-width:3px;border-style:solid}.form-wrap label{display:block;padding:2px 0}.form-field input[type=email],.form-field input[type=number],.form-field input[type=password],.form-field input[type=search],.form-field input[type=tel],.form-field input[type=text],.form-field input[type=url],.form-field textarea{border-style:solid;border-width:1px;width:95%}.form-field p,.form-field select{max-width:95%}.form-wrap p,p.description{margin:2px 0 5px;color:#646970}.form-wrap p,p.description,p.help,span.description{font-size:13px}p.description code{font-style:normal}.form-wrap p code,p.description code{color:#50575e}.form-wrap .form-field{margin:1em 0;padding:0}.col-wrap h2{margin:12px 0;font-size:1.1em}.col-wrap p.submit{margin-top:-10px}.edit-term-notes{margin-top:2em}#poststuff .tagsdiv .ajaxtag{margin-top:1em;display:flex;gap:8px;align-items:center}#poststuff .tagsdiv .howto{margin:1em 0 6px}.ajaxtag .newtag{position:relative}.tagsdiv .newtag{flex:1;min-width:0}.tagsdiv .the-tags{display:block;height:60px;margin:0 auto;overflow:auto;width:260px}#post-body-content .tagsdiv .the-tags{margin:0 5px}p.popular-tags{border:none;line-height:2em;padding:8px 12px 12px;text-align:justify}p.popular-tags a{padding:0 3px}.tagcloud{width:97%;margin:0 0 40px;text-align:justify}.tagcloud h2{margin:2px 0 12px}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border:1px solid #dcdcde;line-height:1.2;word-spacing:3px}.the-tagcloud ul{margin:0}.the-tagcloud ul li{display:inline-block}.ac_results{display:none;margin:-1px 0 0;padding:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;background-color:#fff}.wp-customizer .ac_results{z-index:500000}.ac_results li{margin:0;padding:5px 10px;white-space:nowrap;text-align:right}.ac_over .ac_match,.ac_results .ac_over{background-color:#2271b1;color:#fff;cursor:pointer}.ac_match{text-decoration:underline}#addtag .spinner{float:none;vertical-align:top}#edittag{max-width:800px}.edit-tag-actions{display:flex;align-items:center;gap:8px;margin-top:20px}.comment-php .wp-editor-area{height:200px}.comment-ays td,.comment-ays th{padding:10px 15px}.comment-ays .comment-content ul{list-style:initial;margin-right:2em}.comment-ays .comment-content a[href]:after{content:"(" attr(href) ")";display:inline-block;padding:0 4px;color:#646970;font-size:13px;word-break:break-all}.comment-ays .comment-content p.edit-comment{margin-top:10px}.comment-ays .comment-content p.edit-comment a[href]:after{content:"";padding:0}.comment-ays-submit .button-cancel{margin-right:1em}.spam-undo-inside,.trash-undo-inside{margin:1px 0 1px 8px;line-height:1.23076923}.spam-undo-inside .avatar,.trash-undo-inside .avatar{height:20px;width:20px;margin-left:8px;vertical-align:middle}.stuffbox .editcomment{clear:none;margin-top:0}#namediv.stuffbox .editcomment input{width:100%}#namediv.stuffbox .editcomment.form-table td{padding:10px}#comment-status-radio p{margin:3px 0 5px}#comment-status-radio input{margin:2px 0 5px 3px;vertical-align:middle}#comment-status-radio label{padding:5px 0}table.links-table{width:100%;border-spacing:0}.links-table th{font-weight:400;text-align:right;vertical-align:top;min-width:80px;width:20%;word-wrap:break-word}.links-table td,.links-table th{padding:5px 0}.links-table td label{margin-left:8px}.links-table td input[type=text],.links-table td textarea{width:100%}.links-table #link_rel{max-width:280px}#qt_content_dfw{display:none}.wp-editor-expand #qt_content_dfw{display:inline-block}.focus-on #screen-meta,.focus-on #screen-meta-links,.focus-on #wp-toolbar,.focus-on #wpfooter,.focus-on .page-title-action,.focus-on .postbox-container>*,.focus-on .update-nag,.focus-on .wrap>h1,.focus-on div.error,.focus-on div.notice,.focus-on div.updated{opacity:0;transition-duration:.6s;transition-property:opacity;transition-timing-function:ease-in-out}.focus-on #wp-toolbar{opacity:.3}.focus-off #screen-meta,.focus-off #screen-meta-links,.focus-off #wp-toolbar,.focus-off #wpfooter,.focus-off .page-title-action,.focus-off .postbox-container>*,.focus-off .update-nag,.focus-off .wrap>h1,.focus-off div.error,.focus-off div.notice,.focus-off div.updated{opacity:1;transition-duration:.2s;transition-property:opacity;transition-timing-function:ease-in-out}.focus-off #wp-toolbar{-webkit-transform:translate(0,0)}.focus-on #adminmenuback,.focus-on #adminmenuwrap{transition-duration:.6s;transition-property:transform;transition-timing-function:ease-in-out}.focus-on #adminmenuback,.focus-on #adminmenuwrap{transform:translateX(100%)}.focus-off #adminmenuback,.focus-off #adminmenuwrap{transform:translateX(0);transition-duration:.2s;transition-property:transform;transition-timing-function:ease-in-out}@media print,(min-resolution:120dpi){#content-resize-handle,#post-body .wp_themeSkin .mceStatusbar a.mceResize{background:transparent url(../images/resize-2x.gif) no-repeat scroll left bottom;background-size:11px 11px}.rtl #content-resize-handle,.rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize{background-image:url(../images/resize-rtl-2x.gif);background-position:left bottom}}@media only screen and (max-width:1200px){.post-type-attachment #poststuff{min-width:0}.post-type-attachment #wpbody-content #poststuff #post-body{margin:0}.post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1{margin-left:0;width:100%}.post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty,.post-type-attachment #poststuff #postbox-container-1 .empty-container{outline:0;height:0;min-height:0}.post-type-attachment #poststuff #post-body.columns-2 #side-sortables{min-height:0;width:auto}.is-dragging-metaboxes.post-type-attachment #post-body .meta-box-sortables{border:none;background:0 0;min-height:0;margin-bottom:0}.post-type-attachment .columns-prefs,.post-type-attachment .screen-layout{display:none}}@media only screen and (max-width:850px){#poststuff{min-width:0}#wpbody-content #poststuff #post-body{margin:0}#wpbody-content #post-body.columns-2 #postbox-container-1{margin-left:0;width:100%}#poststuff #postbox-container-1 #side-sortables:empty,#poststuff #postbox-container-1 .empty-container{height:0;min-height:0}#poststuff #post-body.columns-2 #side-sortables{min-height:0;width:auto}.is-dragging-metaboxes #poststuff #post-body.columns-2 #side-sortables,.is-dragging-metaboxes #poststuff #post-body.columns-2 .meta-box-sortables,.is-dragging-metaboxes #poststuff #postbox-container-1 #side-sortables:empty,.is-dragging-metaboxes #poststuff #postbox-container-1 .empty-container{height:auto;min-height:60px}.columns-prefs,.screen-layout{display:none}}@media screen and (max-width:782px){.wp-core-ui .edit-tag-actions .button-primary{margin-bottom:0}#post-body-content{min-width:0}#titlediv #title-prompt-text{padding:10px}#poststuff .stuffbox .inside{padding:0 0 4px 2px}#poststuff .stuffbox>h3,#poststuff h2,#poststuff h3.hndle{padding:12px}#namediv.stuffbox .editcomment.form-table td{padding:5px 10px}.post-format-options{padding-left:0}.post-format-options a{margin-left:5px;margin-bottom:5px;min-width:52px}.post-format-options .post-format-title{font-size:11px}.post-format-options a div{height:28px;width:28px}.post-format-options a div:before{font-size:26px!important}#post-visibility-select{line-height:280%}.wp-core-ui .save-post-visibility,.wp-core-ui .save-timestamp{vertical-align:middle;margin-left:15px}.timestamp-wrap select#mm{display:block;width:100%;margin-bottom:10px}.timestamp-wrap #aa,.timestamp-wrap #hh,.timestamp-wrap #jj,.timestamp-wrap #mn{padding:12px 3px;font-size:14px;margin-bottom:5px;width:auto;text-align:center}ul.category-tabs{margin:30px 0 15px}ul.category-tabs li.tabs{padding:15px}ul.categorychecklist li{margin-bottom:15px}ul.categorychecklist ul{margin-top:15px}.category-add input[type=text],.category-add select{max-width:none;margin-bottom:15px}.tagsdiv .newtag{flex:1;min-width:0;height:auto;margin-bottom:0}.tagchecklist{margin:25px 10px}.tagchecklist>li{font-size:16px;line-height:1.4}#commentstatusdiv p{line-height:2.8}.mceToolbar *{white-space:normal!important}.mceToolbar td,.mceToolbar tr{float:right!important}.wp_themeSkin a.mceButton{width:30px;height:30px}.wp_themeSkin .mceButton .mceIcon{margin-top:5px;margin-right:5px}.wp_themeSkin .mceSplitButton{margin-top:1px}.wp_themeSkin .mceSplitButton td a.mceAction{padding:6px 6px 6px 3px}.wp_themeSkin .mceSplitButton td a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen{padding-top:6px;padding-bottom:6px;background-position:1px 6px}.wp_themeSkin table.mceListBox{margin:5px}div.quicktags-toolbar input{padding:10px 20px}button.wp-switch-editor{font-size:16px;line-height:1;margin:7px 7px 0 0;padding:8px 12px}#wp-content-media-buttons a{font-size:14px;padding:6px 10px}.wp-media-buttons span.jetpack-contact-form-icon,.wp-media-buttons span.wp-media-buttons-icon{width:22px!important;margin-right:-2px!important}.wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before,.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font-size:20px!important}#content_wp_fullscreen{display:none}.misc-pub-section{padding:12px 10px}#delete-action,#publishing-action{line-height:3.61538461}#publishing-action .spinner{float:none;margin-top:-2px}.comment-ays td,.comment-ays th{padding-bottom:0}.comment-ays td{padding-top:6px}.links-table #link_rel{max-width:none}.links-table td,.links-table th{padding:10px 0}.edit-term-notes{display:none}.privacy-text-box{width:auto}.privacy-text-box-toc{float:none;width:auto;height:100%;display:flex;flex-direction:column}.privacy-text-section .return-to-top{margin:2em 0 0}}css/site-icon-rtl.min.css000064400000007554152213653150011337 0ustar00/*! This file is auto-generated */ .site-icon-section{--site-icon-removal:#b32d2e}.site-icon-preview{--site-icon-input-border:#8c8f94;--site-icon-preview-background:#fff;--site-icon-preview-browser-top:#dcdcde;--site-icon-preview-browser-bottom:#a7aaad;--site-icon-preview-browser-border:rgba(255, 255, 255, 0.2);--site-icon-address-bar-background:#f0f0f1;--site-icon-address-bar-close:#646970;--site-icon-address-bar-text:#3c434a;--site-icon-shadow-1:rgba(0, 0, 0, 0.1);--site-icon-shadow-2:rgba(0, 0, 0, 0.2);--site-icon-shadow-3:rgba(0, 0, 0, 0.5);direction:initial;display:flex;height:60px;padding:8px 8px 0 0;align-items:flex-start;position:relative;overflow:hidden;box-sizing:border-box;border:1px solid var(--site-icon-input-border);border-radius:4px;background-color:var(--site-icon-preview-background);width:275px}@media (prefers-color-scheme:dark){.site-icon-preview{--site-icon-preview-browser-top:#2c3338;--site-icon-preview-browser-bottom:#111;--site-icon-address-bar-background:#3c434a;--site-icon-address-bar-close:#f0f0f1;--site-icon-address-bar-text:#f0f0f1}}.site-icon-preview.settings{height:88px;padding:16px 16px 0 0;width:350px;margin:0 0 16px 0}.site-icon-preview.crop{width:258px;height:100%;display:grid;grid-template-columns:8px 1fr;grid-template-rows:64px 1fr;padding-right:0;row-gap:16px;direction:inherit}.site-icon-preview.hidden{display:none}.site-icon-preview .direction-wrap{grid-template-columns:44px 1fr;gap:8px;display:grid;direction:rtl;height:100%;width:100%}.site-icon-preview.settings .direction-wrap{grid-template-columns:58px 1fr;gap:16px}.site-icon-preview:after{--after-size:150%;aspect-ratio:1/1;content:"";display:block;position:absolute;top:0;right:0;width:var(--after-size);transform:translate(calc(-1*(var(--after-size) * -.125)),calc(var(--after-size) * -.125));filter:blur(5px);opacity:.5;background:var(--site-icon-url)}.site-icon-preview .app-icon-preview{aspect-ratio:1/1;border-radius:10px;box-shadow:0 1px 5px 0 var(--site-icon-shadow-3);flex-shrink:0;width:100%;z-index:1}.site-icon-preview-browser{display:flex;padding:4px 12px 0 4px;align-items:flex-start;gap:16px;flex:1 0 0;z-index:1;border-top-right-radius:10px;border-top:1px solid var(--site-icon-preview-browser-border);border-right:1px solid var(--site-icon-preview-browser-border);background:linear-gradient(-180deg,var(--site-icon-preview-browser-top) 0,var(--site-icon-preview-browser-bottom) 100%);box-shadow:0 10px 22px 0 var(--site-icon-shadow-2)}.site-icon-preview .browser-buttons{width:48px;height:40px;fill:var(--site-icon-input-border)}.site-icon-preview-tab{padding:8px;align-items:center;gap:8px;flex:1 0 0;border-radius:4px;background-color:var(--site-icon-address-bar-background);box-shadow:0 1px 3px 0 var(--site-icon-shadow-1);display:grid;grid-template-columns:24px auto 24px}.site-icon-preview-browser .browser-icon-preview{box-shadow:0 0 20px 0 var(--site-icon-shadow-1)}.site-icon-preview-tab>img,.site-icon-preview-tab>svg{width:24px;height:24px}.site-icon-preview-tab>svg{fill:var(--site-icon-address-bar-close)}.site-icon-preview-site-title{color:var(--site-icon-address-bar-text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:500}.site-icon-preview-crop-modal .image-preview-wrap.app-icon-preview{width:64px;height:64px;margin:0;grid-column:2}.site-icon-preview-crop-modal .site-icon-preview-browser{grid-column:2}.site-icon-preview-crop-modal .image-preview-wrap{overflow:hidden;aspect-ratio:1/1}.site-icon-preview-crop-modal .image-preview-wrap.browser{width:24px;height:24px}button.reset.remove-site-icon{color:var(--site-icon-removal);text-decoration:none;border-color:currentColor;box-shadow:none;background:0 0}button.reset.remove-site-icon:focus,button.reset.remove-site-icon:hover{background:var(--site-icon-removal);color:#fff;border-color:var(--site-icon-removal);box-shadow:0 0 0 1px var(--site-icon-removal)}.site-icon-action-buttons{display:flex;flex-wrap:wrap;gap:10px}css/revisions-rtl.css000064400000025017152213653150010676 0ustar00/*! This file is auto-generated */ /*------------------------------------------------------------------------------ 11.2 - Post Revisions ------------------------------------------------------------------------------*/ .revisions-control-frame, .revisions-diff-frame { position: relative; } .revisions-diff-frame { top: 10px; } .revisions-controls { padding-top: 40px; z-index: 1; } .revisions-controls input[type="checkbox"] { position: relative; top: -1px; vertical-align: text-bottom; } .revisions.pinned .revisions-controls { position: fixed; top: 0; height: 82px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .revisions-tickmarks { position: relative; margin: 0 auto; height: 0.7em; top: 7px; max-width: 70%; box-sizing: border-box; background-color: #fff; } .revisions-tickmarks > div { position: absolute; height: 100%; border-right: 1px solid #a7aaad; box-sizing: border-box; } .revisions-tickmarks > div:first-child { border-width: 0; } .comparing-two-revisions .revisions-controls { height: 140px; } .comparing-two-revisions.pinned .revisions-controls { height: 124px; } .revisions .diff-error { position: absolute; text-align: center; margin: 0 auto; width: 100%; display: none; } .revisions.diff-error .diff-error { display: block; } .revisions .loading-indicator { position: absolute; vertical-align: middle; opacity: 0; width: 100%; width: calc( 100% - 30px ); top: 50%; top: calc( 50% - 10px ); transition: opacity 0.5s; } body.folded .revisions .loading-indicator { margin-right: -32px; } .revisions .loading-indicator span.spinner { display: block; margin: 0 auto; float: none; } .revisions.loading .loading-indicator { opacity: 1; } .revisions .diff { transition: opacity 0.5s; } .revisions.loading .diff { opacity: 0.5; } .revisions.diff-error .diff { visibility: hidden; } .revisions-meta { margin-top: 20px; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); overflow: hidden; } .revisions.pinned .revisions-meta { box-shadow: none; } .revision-toggle-compare-mode { position: absolute; top: 0; left: 0; } .comparing-two-revisions .revisions-previous, .comparing-two-revisions .revisions-next, .revisions-meta .diff-meta-to strong { display: none; } .revisions-controls .author-card .date { color: #646970; } .revisions-controls .author-card.autosave { color: #d63638; } .revisions-controls .author-card .author-name { font-weight: 600; } .comparing-two-revisions .diff-meta-to strong { display: block; } .revisions.pinned .revisions-buttons { padding: 0 11px; } .revisions-previous, .revisions-next { position: relative; z-index: 1; } .revisions-previous { float: right; } .revisions-next { float: left; } .revisions-controls .wp-slider { max-width: 70%; margin: 0 auto; top: -3px; } .revisions-diff { padding: 15px; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .revisions-diff h3:first-child { margin-top: 0; } /* Revision meta box */ .post-revisions li img, #revisions-meta-restored img { vertical-align: middle; } table.diff { table-layout: fixed; width: 100%; white-space: pre-wrap; } table.diff col.content { width: auto; } table.diff col.content.diffsplit { width: 48%; } table.diff col.diffsplit.middle { width: auto; } table.diff col.ltype { width: 30px; } table.diff tr { background-color: transparent; } table.diff td, table.diff th { font-family: Consolas, Monaco, monospace; font-size: 14px; line-height: 1.57142857; padding: 0.5em 2em 0.5em 0.5em; vertical-align: top; word-wrap: break-word; } table.diff td h1, table.diff td h2, table.diff td h3, table.diff td h4, table.diff td h5, table.diff td h6 { margin: 0; } table.diff .diff-deletedline del, table.diff .diff-addedline ins { text-decoration: none; } table.diff .diff-deletedline { position: relative; background-color: #fcf0f1; } table.diff .diff-deletedline del { background-color: #ffabaf; } table.diff .diff-addedline { position: relative; background-color: #edfaef; } table.diff .diff-deletedline .dashicons, table.diff .diff-addedline .dashicons { position: absolute; top: 0.85714286em; right: 0.5em; width: 1em; height: 1em; font-size: 1em; line-height: 1; } table.diff .diff-addedline .dashicons { /* Compensate the vertically non-centered plus glyph. */ top: 0.92857143em; } table.diff .diff-addedline ins { background-color: #68de7c; } .diff-meta { padding: 5px; clear: both; min-height: 32px; } .diff-title strong { line-height: 2.46153846; min-width: 60px; text-align: left; float: right; margin-left: 5px; } .revisions-controls .author-card .author-info { font-size: 12px; line-height: 1.33333333; } .revisions-controls .author-card .avatar, .revisions-controls .author-card .author-info { float: right; margin-right: 6px; margin-left: 6px; } .revisions-controls .author-card .byline { display: block; font-size: 12px; } .revisions-controls .author-card .avatar { vertical-align: middle; } .diff-meta input.restore-revision { float: left; margin-right: 6px; margin-left: 6px; } .diff-meta-from { display: none; } .comparing-two-revisions .diff-meta-from { display: block; } .revisions-tooltip { position: absolute; bottom: 105px; margin-left: 0; margin-right: -69px; z-index: 0; max-width: 350px; min-width: 130px; padding: 8px 4px; display: none; opacity: 0; } .revisions-tooltip.flipped { margin-right: 0; margin-left: -70px; } .revisions.pinned .revisions-tooltip { display: none !important; } .comparing-two-revisions .revisions-tooltip { bottom: 145px; } .revisions-tooltip-arrow { width: 70px; height: 15px; overflow: hidden; position: absolute; right: 0; margin-right: 35px; bottom: -15px; } .revisions-tooltip.flipped .revisions-tooltip-arrow { margin-right: 0; margin-left: 35px; right: auto; left: 0; } .revisions-tooltip-arrow > span { content: ""; position: absolute; right: 20px; top: -20px; width: 25px; height: 25px; transform: rotate(-45deg); } .revisions-tooltip.flipped .revisions-tooltip-arrow > span { right: auto; left: 20px; } .revisions-tooltip, .revisions-tooltip-arrow > span { border: 1px solid #dcdcde; background-color: #fff; } .revisions-tooltip { display: none; } .arrow { width: 70px; height: 16px; overflow: hidden; position: absolute; right: 0; margin-right: -35px; bottom: 90px; z-index: 10000; } .arrow:after { z-index: 9999; background-color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .arrow.top { top: -16px; bottom: auto; } .arrow.left { right: 20%; } .arrow:after { content: ""; position: absolute; right: 20px; top: -20px; width: 25px; height: 25px; transform: rotate(-45deg); } .revisions-tooltip, .revisions-tooltip-arrow:after { border-width: 1px; border-style: solid; } div.revisions-controls > .wp-slider > .ui-slider-handle { margin-right: -10px; } .rtl div.revisions-controls > .wp-slider > .ui-slider-handle { margin-left: -10px; } /* jQuery UI Slider */ .wp-slider.ui-slider { position: relative; border: 1px solid #dcdcde; text-align: right; cursor: pointer; } .wp-slider .ui-slider-handle { border-radius: 50%; height: 18px; margin-top: -5px; outline: none; padding: 2px; position: absolute; width: 18px; z-index: 2; touch-action: none; } .wp-slider .ui-slider-handle { background: #f6f7f7; border: 1px solid #c3c4c7; box-shadow: 0 1px 0 #c3c4c7; } .wp-slider .ui-slider-handle:hover, .wp-slider .ui-slider-handle.ui-state-hover { background: #f6f7f7; border-color: #8c8f94; } .wp-slider .ui-slider-handle:active, .wp-slider .ui-slider-handle.ui-state-active { background: #f0f0f1; border-color: #8c8f94; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); transform: translateY(1px); } .wp-slider .ui-slider-handle:focus, .wp-slider .ui-slider-handle.ui-state-focus { background: #f0f0f1; border-color: #8c8f94; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wp-slider .ui-slider-handle:before { background: none; position: absolute; top: 2px; right: 2px; color: #50575e; content: "\f229"; content: "\f229" / ''; font: normal 18px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-slider .ui-slider-handle:hover:before, .wp-slider .ui-slider-handle.ui-state-hover:before { color: #1d2327; } .wp-slider .ui-slider-handle.from-handle:before, .wp-slider .ui-slider-handle.to-handle:before { font-size: 20px !important; margin: -1px -1px 0 0; } .wp-slider .ui-slider-handle.from-handle:before { content: "\f141"; content: "\f139" / ''; } .wp-slider .ui-slider-handle.to-handle:before { content: "\f139"; content: "\f141" / ''; } .rtl .wp-slider .ui-slider-handle.from-handle:before { content: "\f139"; content: "\f141" / ''; } .rtl .wp-slider .ui-slider-handle.to-handle:before { content: "\f141"; content: "\f139" / ''; left: -1px; } .wp-slider .ui-slider-range { position: absolute; font-size: 0.7em; display: block; border: 0; background-color: transparent; background-image: none; } .wp-slider.ui-slider-horizontal { height: 0.7em; } .wp-slider.ui-slider-horizontal .ui-slider-handle { top: -.25em; margin-right: -.6em; } .wp-slider.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } .wp-slider.ui-slider-horizontal .ui-slider-range-min { right: 0; } .wp-slider.ui-slider-horizontal .ui-slider-range-max { left: 0; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .revision-tick.completed-false { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 600px) { .revisions-meta .author-card:not(.comparing-two-revisions .author-card) { display: flex; flex-direction: column; width: fit-content; gap: 16px; } .comparing-two-revisions .revisions-meta .restore-revision { margin-top: 16px; } .revisions-controls { padding-top: 0; } .revision-toggle-compare-mode { position: relative; padding: 1rem 0; } } @media screen and (max-width: 782px) { #diff-next-revision, #diff-previous-revision { margin-top: -1em; } .revisions-buttons { overflow: hidden; margin-bottom: 15px; } .revisions-controls, .comparing-two-revisions .revisions-controls { height: fit-content; } .revisions-tooltip { bottom: 155px; z-index: 2; } .comparing-two-revisions .revisions-tooltip { bottom: 200px; } .diff-meta { overflow: hidden; } table.diff { -ms-word-break: break-all; word-break: break-all; word-wrap: break-word; } } css/wp-admin.min.css000064400000000752152213653150010353 0ustar00/*! This file is auto-generated */ @import url(common.min.css); @import url(forms.min.css); @import url(admin-menu.min.css); @import url(dashboard.min.css); @import url(list-tables.min.css); @import url(edit.min.css); @import url(revisions.min.css); @import url(media.min.css); @import url(themes.min.css); @import url(about.min.css); @import url(nav-menus.min.css); @import url(widgets.min.css); @import url(site-icon.min.css); @import url(l10n.min.css); @import url(site-health.min.css); css/site-health-rtl.min.css000064400000012400152213653150011636 0ustar00/*! This file is auto-generated */ .health-check-body h2{line-height:1.4}.health-check-body h3{padding:0;font-weight:400}.site-health-progress-wrapper{margin-bottom:1rem}.site-health-progress{display:inline-block;height:20px;width:20px;margin:0;border-radius:100%;position:relative;font-weight:600;font-size:.4rem}.site-health-progress-count{position:absolute;display:block;height:80px;width:80px;right:50%;top:50%;margin-top:-40px;margin-right:-40px;border-radius:100%;line-height:6.3;font-size:2em}.loading .site-health-progress svg #bar{stroke-dashoffset:0;stroke:#c3c4c7;animation:loadingPulse 3s infinite ease-in-out}.site-health-progress svg circle{stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke:#c3c4c7;stroke-width:2em}.site-health-progress svg #bar{stroke-dashoffset:565;stroke:#d63638}.green .site-health-progress #bar{stroke:#00a32a}.green .site-health-progress .site-health-progress-label{color:#00a32a}.orange .site-health-progress #bar{stroke:#dba617}.orange .site-health-progress .site-health-progress-label{color:#dba617}.site-health-progress-label{font-weight:600;line-height:20px;margin-right:.3rem}@keyframes loadingPulse{0%{stroke:#c3c4c7}50%{stroke:var(--wp-admin-theme-color)}100%{stroke:#c3c4c7}}.health-check-tabs-wrapper{display:-ms-inline-grid;-ms-grid-columns:1fr 1fr 1fr 1fr;vertical-align:top;display:inline-grid;grid-template-columns:1fr 1fr 1fr 1fr}.health-check-tabs-wrapper.tab-count-1{grid-template-columns:1fr}.health-check-tabs-wrapper.tab-count-2{grid-template-columns:1fr 1fr}.health-check-tabs-wrapper.tab-count-3{grid-template-columns:1fr 1fr 1fr}.health-check-tab{display:block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-offscreen-nav-wrapper{position:relative;background:0 0;border:none}.health-check-offscreen-nav-wrapper:focus .health-check-offscreen-nav{right:initial}.health-check-offscreen-nav{display:none;position:absolute;padding-top:10px;left:0;top:100%;width:13rem}.health-check-offscreen-nav-wrapper.visible .health-check-offscreen-nav{display:inline-block}.health-check-offscreen-nav:before{position:absolute;content:"";width:0;height:0;border-style:solid;border-width:0 10px 5px;border-color:transparent transparent #fff;left:20px;top:5px}.health-check-offscreen-nav .health-check-tab{background:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.75)}.health-check-offscreen-nav .health-check-tab.active{box-shadow:inset -3px 0 #3582c4;font-weight:600}.health-check-body{max-width:800px;margin:0 auto}.widefat.health-check-table th{font-size:13px}.health-check-table td:first-child{width:30%}.health-check-table td{width:70%}.health-check-table ol,.health-check-table ul{margin:0}.health-check-body li{line-height:1.5}.health-check-body .good::before,.health-check-body .pass::before{content:"\f147";content:"\f147"/'';color:#00a32a}.health-check-body .warning::before{content:"\f460";content:"\f460"/'';color:#dba617}.health-check-body .info::before{content:"\f348";content:"\f348"/'';color:#72aee6}.health-check-body .error::before,.health-check-body .fail::before{content:"\f335";content:"\f335"/'';color:#d63638}.site-health-copy-buttons{margin:1rem 0}.site-health-copy-buttons .copy-button-wrapper{display:inline-flex;align-items:center;margin:.5rem 0 1rem}.site-health-copy-buttons .success{color:#007017;margin-right:.5rem}.site-status-has-issues.hide{display:none}.site-health-view-more{text-align:center}.site-health-issues-wrapper:first-of-type{margin-top:3rem}.site-health-issues-wrapper{margin-bottom:3rem;margin-top:2rem}.site-status-all-clear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;width:100%;margin:0 0 3rem}@media all and (min-width:784px){.site-status-all-clear{margin:2rem 0 5rem}}.site-status-all-clear.hide{display:none}.site-status-all-clear .dashicons{font-size:150px;height:150px;margin-bottom:2rem;width:150px}.site-status-all-clear .encouragement{font-size:1.5rem;font-weight:600}.site-status-all-clear p{margin:0}.wp-core-ui .button.site-health-view-passed{position:relative;padding-left:40px;padding-right:20px}.health-check-wp-paths-sizes.spinner{visibility:visible;float:none;margin:0 4px;flex-shrink:0}#dashboard_site_health .site-health-details{padding-right:16px}#dashboard_site_health .site-health-details p:first-child{margin-top:0}#dashboard_site_health .site-health-details p:last-child{margin-bottom:0}#dashboard_site_health .health-check-widget{display:grid;grid-template-columns:1fr 2fr;grid-auto-rows:minmax(64px,auto);column-gap:16px;align-items:center}#dashboard_site_health .site-health-progress-label{margin-right:0}.health-check-widget-title-section{margin-bottom:0;text-align:center}@media screen and (max-width:480px){#dashboard_site_health .health-check-widget{grid-template-columns:100%}}@media screen and (max-width:782px){.site-health-issues-wrapper .health-check-accordion-trigger{flex-direction:column;align-items:flex-start}.health-check-accordion-trigger .badge{margin:1em 0 0}.health-check-table{table-layout:fixed}.health-check-table td,.health-check-table th{box-sizing:border-box;display:block;width:100%;word-wrap:break-word}.health-check-table td:first-child,.widefat.health-check-table th{width:100%;padding-bottom:0;font-weight:600}.wp-core-ui .site-health-copy-buttons .copy-button{margin-bottom:0}}css/media.min.css000064400000054226152213653150007723 0ustar00/*! This file is auto-generated */ .media-item .describe{border-collapse:collapse;width:100%;border-top:1px solid #dcdcde;clear:both;cursor:default}.media-item.media-blank .describe{border:0}.media-item .describe th{vertical-align:top;text-align:left;padding:5px 10px 10px;width:140px}.media-item .describe .align th{padding-top:0}.media-item .media-item-info tr{background-color:transparent}.media-item .describe td{padding:0 8px 8px 0;vertical-align:top}.media-item thead.media-item-info td{padding:4px 10px 0}.media-item .media-item-info .A1B1{padding:0 0 0 10px}.media-item td.savesend{padding-bottom:15px}.media-item .thumbnail{max-height:128px;max-width:128px}.media-list-subtitle{display:block}.media-list-title{display:block}#wpbody-content #async-upload-wrap a{display:none}.media-upload-form{margin-top:20px}.media-upload-form td label{margin-right:6px;margin-left:2px}.media-upload-form .align .field label{display:inline;padding:0 0 0 23px;margin:0 1em 0 3px;font-weight:600}.media-upload-form tr.image-size label{margin:0 0 0 5px;font-weight:600}.media-upload-form th.label label{font-weight:600;margin:.5em;font-size:13px}.media-upload-form th.label label span{padding:0 5px}.media-item .describe input[type=text],.media-item .describe textarea{width:460px}.media-item .describe p.help{margin:0;padding:0 0 0 5px}.describe-toggle-off,.describe-toggle-on{display:block;line-height:2.76923076;float:right;margin-right:10px}.media-item .attachment-tools{display:flex;align-items:center}.media-item .edit-attachment{padding:14px 0;display:block;margin-right:10px}.media-item .edit-attachment.copy-to-clipboard-container{display:flex;margin-top:0}.media-item-copy-container .success{line-height:0}.media-item button .copy-attachment-url{margin-top:14px}.media-item .copy-to-clipboard-container{margin-top:7px}.media-item .describe-toggle-off,.media-item.open .describe-toggle-on{display:none}.media-item.open .describe-toggle-off{display:block}.media-upload-form .media-item{min-height:70px;margin-bottom:1px;position:relative;width:100%;background:#fff}.media-upload-form .media-item,.media-upload-form .media-item .error{box-shadow:0 1px 0 #dcdcde}#media-items:empty{border:0 none}.media-item .filename{padding:14px 2px;overflow:hidden;margin-left:4px}.media-item .pinkynail{float:left;margin:14px;max-height:70px;max-width:70px}.media-item .startclosed,.media-item .startopen{display:none}.media-item .progress{display:inline-block;height:22px;margin:0 6px 7px;width:200px;line-height:2em;padding:0;overflow:hidden;border-radius:22px;background:#dcdcde;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.media-item .bar{z-index:9;width:0;height:100%;margin-top:-22px;border-radius:22px;background-color:#2271b1;box-shadow:inset 0 0 2px rgba(0,0,0,.3)}.media-item .progress .percent{z-index:10;position:relative;width:200px;padding:0;color:#fff;text-align:center;line-height:22px;font-weight:400;text-shadow:0 1px 2px rgba(0,0,0,.2)}.upload-php .fixed .column-parent{width:15%}.js .html-uploader #plupload-upload-ui{display:none}.js .html-uploader #html-upload-ui{display:block}#html-upload-ui #async-upload{font-size:1em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{width:auto;margin:0 0 1px}.media-upload-form .media-item .error{padding:10px 0 10px 14px;min-height:50px}.media-item .error-div button.dismiss{float:right;margin:0 10px 0 15px}.find-box{background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:600px;overflow:hidden;margin-left:-300px;position:fixed;top:30px;bottom:30px;left:50%;z-index:100105}.find-box-head{background:#fff;border-bottom:1px solid #dcdcde;height:36px;font-size:18px;font-weight:600;line-height:2;padding:0 36px 0 16px;position:absolute;top:0;left:0;right:0}.find-box-inside{overflow:auto;padding:16px;background-color:#fff;position:absolute;top:37px;bottom:45px;overflow-y:scroll;width:100%;box-sizing:border-box}.find-box-search{padding-bottom:16px}.find-box-search .spinner{float:none;left:105px;position:absolute}#find-posts-response,.find-box-search{position:relative}#find-posts-input,#find-posts-search{float:left}#find-posts-input{width:140px;height:28px;margin:0 4px 0 0}.widefat .found-radio{padding-right:0;width:16px}#find-posts-close{width:36px;height:36px;border:none;padding:0;position:absolute;top:0;right:0;cursor:pointer;text-align:center;background:0 0;color:#646970}#find-posts-close:focus,#find-posts-close:hover{color:var(--wp-admin-theme-color-darker-20,#183ad6)}#find-posts-close:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent;outline-offset:-2px}#find-posts-close:before{font:normal 20px/36px dashicons;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f158";content:"\f158"/''}.find-box-buttons{padding:8px 16px;background:#fff;border-top:1px solid #dcdcde;position:absolute;bottom:0;left:0;right:0}@media screen and (max-width:782px){.find-box-inside{bottom:57px}}@media screen and (max-width:660px){.find-box{top:0;bottom:0;left:0;right:0;margin:0;width:100%}}.ui-find-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;z-index:100100}.drag-drop #drag-drop-area{border:4px dashed #c3c4c7;height:200px}.drag-drop .drag-drop-inside{margin:60px auto 0;width:250px}.drag-drop-inside p{font-size:14px;margin:5px 0;display:none}.drag-drop .drag-drop-inside p{text-align:center}.drag-drop-inside p.drag-drop-info{font-size:20px}.drag-drop .drag-drop-inside p,.drag-drop-inside p.drag-drop-buttons{display:block}.drag-drop.drag-over #drag-drop-area{border-color:#9ec2e6}#plupload-upload-ui{position:relative}.post-type-attachment .wp-filter select{margin:0 6px 0 0}.media-frame.mode-grid,.media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,.media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,.media-frame.mode-grid .media-frame-content,.media-frame.mode-grid .uploader-inline-content{position:static}.media-frame.mode-grid .media-frame-menu,.media-frame.mode-grid .media-frame-router,.media-frame.mode-grid .media-frame-title{display:none}.media-frame.mode-grid .media-frame-content{background-color:transparent;border:none}.upload-php .mode-grid .media-sidebar{position:relative;width:auto;margin-top:12px;padding:0 16px;border-left:4px solid #d63638;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);background-color:#fff}.upload-php .mode-grid .hide-sidebar .media-sidebar{display:none}.upload-php .mode-grid .media-sidebar .media-uploader-status{border-bottom:none;padding-bottom:0;max-width:100%}.upload-php .mode-grid .media-sidebar .upload-error{margin:12px 0;padding:4px 0 0;border:none;box-shadow:none;background:0 0}.upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2{display:none}.media-frame.mode-grid .uploader-inline{position:relative;top:auto;right:auto;left:auto;bottom:auto;padding-top:0;margin-top:20px;border:4px dashed #c3c4c7}.media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,.media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper{position:relative;top:94px;padding-bottom:94px}.media-frame.mode-grid .attachment.details:focus,.media-frame.mode-grid .attachment:focus,.media-frame.mode-grid .selected.attachment:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent;outline-offset:-6px}.media-frame.mode-grid .selected.attachment{box-shadow:inset 0 0 0 5px #f0f0f1,inset 0 0 0 7px #c3c4c7}.media-frame.mode-grid .attachment.details{box-shadow:inset 0 0 0 3px #f0f0f1,inset 0 0 0 7px var(--wp-admin-theme-color,#3858e9)}.media-frame.mode-grid.mode-select .attachment .thumbnail{opacity:.65}.media-frame.mode-select .attachment.selected .thumbnail{opacity:1}.media-frame.mode-grid .media-toolbar{margin-bottom:15px;height:auto}.media-frame.mode-grid .media-toolbar label:not(.media-search-input-label){border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}.media-frame.mode-grid .media-toolbar select{margin:0 10px 0 0;min-height:32px;line-height:2.14285714;padding:0 24px 0 8px}.media-frame.mode-grid .media-toolbar input[type=search]{min-height:32px;padding:0 8px}.media-frame.mode-grid .media-toolbar-secondary{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.media-frame.mode-grid.mode-edit .media-toolbar-secondary>.select-mode-toggle-button{margin:0 8px 0 0;height:100%}.media-frame.mode-grid .attachments-browser .bulk-select{display:inline-block;margin:0 10px 0 0}.media-frame.mode-grid .search{margin-top:0}.media-frame-content .media-search-input-label{vertical-align:baseline}.attachments-browser .media-toolbar-secondary>.media-button{margin-right:10px}.media-frame.mode-select .attachments-browser.fixed .media-toolbar{position:fixed;top:32px;left:auto;right:20px;margin-top:0}.media-frame.mode-grid .attachments-browser{padding:0}.media-frame.mode-grid .attachments-browser .attachments{padding:2px}.media-frame.mode-grid .attachments-browser .no-media{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;text-align:center}.edit-attachment-frame{display:block;height:100%;width:100%}.edit-attachment-frame .edit-media-header{overflow:hidden}.upload-php .media-modal-close .media-modal-icon:before{content:"\f335";content:"\f335"/'';font-size:22px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{cursor:pointer;color:#787c82;background-color:transparent;height:50px;width:50px;padding:0;position:absolute;text-align:center;border:0;border-left:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.upload-php .media-modal-close{top:0;right:0}.edit-attachment-frame .edit-media-header .left{right:102px}.edit-attachment-frame .edit-media-header .right{right:51px}.edit-attachment-frame .media-frame-title{left:0;right:150px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .left:hover,.edit-attachment-frame .edit-media-header .right:focus,.edit-attachment-frame .edit-media-header .right:hover,.upload-php .media-modal-close:focus,.upload-php .media-modal-close:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.edit-attachment-frame .edit-media-header .left:focus,.edit-attachment-frame .edit-media-header .right:focus,.upload-php .media-modal-close:focus{outline:2px solid transparent;outline-offset:-2px}.upload-php .media-modal-close:focus .media-modal-icon:before,.upload-php .media-modal-close:hover .media-modal-icon:before{color:#000}.edit-attachment-frame .edit-media-header .left:before{content:"\f341";content:"\f341"/''}.edit-attachment-frame .edit-media-header .right:before{content:"\f345";content:"\f345"/''}.edit-attachment-frame .edit-media-header [disabled],.edit-attachment-frame .edit-media-header [disabled]:hover{color:#c3c4c7;background:inherit;cursor:default}.edit-attachment-frame .media-frame-content,.edit-attachment-frame .media-frame-router{left:0}.edit-attachment-frame .media-frame-content{border-bottom:none;bottom:0;top:50px}.edit-attachment-frame .attachment-details{position:absolute;overflow:auto;top:0;bottom:0;right:0;left:0;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1)}.edit-attachment-frame .attachment-media-view{float:left;width:65%;height:100%}.edit-attachment-frame .attachment-media-view .thumbnail{box-sizing:border-box;padding:16px;height:100%}.edit-attachment-frame .attachment-media-view .details-image{display:block;margin:0 auto 16px;max-width:100%;max-height:90%;max-height:calc(100% - 42px);background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.edit-attachment-frame .attachment-media-view .details-image.icon{background:0 0}.edit-attachment-frame .attachment-media-view .attachment-actions{text-align:center}.edit-attachment-frame .button{min-height:32px;line-height:2.30769231;padding:0 12px}.edit-attachment-frame .wp-media-wrapper{margin-bottom:12px}.edit-attachment-frame input,.edit-attachment-frame textarea{padding:4px 8px;line-height:1.42857143}.edit-attachment-frame .attachment-info{overflow:auto;box-sizing:border-box;margin-bottom:0;padding:12px 16px 0;width:35%;height:100%;box-shadow:inset 0 4px 4px -4px rgba(0,0,0,.1);border-bottom:0;border-left:1px solid #dcdcde;background:#f6f7f7}.edit-attachment-frame .attachment-info .details,.edit-attachment-frame .attachment-info .settings{position:relative;overflow:hidden;float:none;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #dcdcde}.edit-attachment-frame .attachment-info .filename{font-weight:400;color:#646970}.edit-attachment-frame .attachment-info .thumbnail{margin-bottom:12px}.attachment-info .actions{margin-bottom:16px}.attachment-info .actions a{display:inline;text-decoration:none}.copy-to-clipboard-container{display:flex;align-items:center;margin-top:8px;clear:both}.copy-to-clipboard-container .copy-attachment-url{white-space:normal}.copy-to-clipboard-container .success{color:#007017;margin-left:8px}.wp_attachment_details .attachment-alt-text{margin-bottom:5px}.wp_attachment_details #attachment_alt{max-width:500px;height:3.28571428em}.wp_attachment_details .attachment-alt-text-description{margin-top:5px}.wp_attachment_details label[for=content]{font-size:13px;line-height:1.5;margin:1em 0}.wp_attachment_details #attachment_caption{height:4em}.describe .image-editor{vertical-align:top}.imgedit-wrap{position:relative;padding-top:10px}.image-editor fieldset,.image-editor p{margin:8px 0}.image-editor legend{margin-bottom:5px}.describe .imgedit-wrap .image-editor{padding:0 5px}.wp_attachment_holder div.updated{margin-top:0}.wp_attachment_holder .imgedit-wrap>div{height:auto}.imgedit-panel-content{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:20px}.imgedit-settings{max-width:240px}.imgedit-group-controls>*{display:none}.imgedit-panel-active .imgedit-group-controls>*{display:block}.imgedit-panel-active .imgedit-group-controls>.imgedit-crop-apply{display:flex}.imgedit-crop-apply{gap:4px;flex-wrap:wrap}.wp_attachment_holder .imgedit-wrap .image-editor{float:right;width:250px}.image-editor input{margin-top:0;vertical-align:middle}.imgedit-wait{position:absolute;top:0;bottom:0;width:100%;background:#fff;opacity:.7;display:none}.imgedit-wait:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;margin:-10px 0 0 -10px;background:transparent url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}.no-float{float:none}.image-editor .disabled,.media-disabled{color:#a7aaad}.A1B1{overflow:hidden}.A1B1 .button,.wp_attachment_image .button{float:left}.no-js .wp_attachment_image .button{display:none}.A1B1 .spinner,.wp_attachment_image .spinner{float:left}.imgedit-menu .note-no-rotate{clear:both;margin:0;padding:1em 0 0}.imgedit-menu .button:after,.imgedit-menu .button:before{font:normal 16px/1 dashicons;margin-right:8px;vertical-align:middle;position:relative;top:-2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.imgedit-menu .imgedit-rotate.button:after{content:'\f140';margin-left:2px;margin-right:0}.imgedit-menu .imgedit-rotate.button[aria-expanded=true]:after{content:'\f142'}.imgedit-menu .button.disabled{color:#a7aaad;border-color:#dcdcde;background:#f6f7f7;box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.imgedit-crop:before{content:"\f165";content:"\f165"/''}.imgedit-scale:before{content:"\f211";content:"\f211"/''}.imgedit-rotate:before{content:"\f167";content:"\f167"/''}.imgedit-undo:before{content:"\f171";content:"\f171"/''}.imgedit-redo:before{content:"\f172";content:"\f172"/''}.imgedit-crop-wrap{position:relative}.imgedit-crop-wrap img{background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.imgedit-crop-wrap{padding:20px;background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.imgedit-crop{margin:0 8px 0 0}.imgedit-rotate{margin:0 8px 0 3px}.imgedit-undo{margin:0 3px}.imgedit-redo{margin:0 8px 0 3px}.imgedit-thumbnail-preview-group{display:flex;flex-wrap:wrap;column-gap:10px}.imgedit-thumbnail-preview{margin:10px 8px 0 0}.imgedit-thumbnail-preview-caption{display:block}#poststuff .imgedit-group-top h2{display:inline-block;margin:0;padding:0;font-size:14px;line-height:1.4}#poststuff .imgedit-group-top .button-link{text-decoration:none;color:#1d2327}.imgedit-applyto .imgedit-label{display:block;padding:.5em 0 0}.imgedit-help,.imgedit-popup-menu{display:none;padding-bottom:8px}.imgedit-panel-tools>.imgedit-menu{display:flex;column-gap:4px;align-items:flex-start;flex-wrap:wrap}.imgedit-popup-menu{width:calc(100% - 20px);position:absolute;background:#fff;padding:10px;box-shadow:0 3px 6px rgba(0,0,0,.3)}.image-editor .imgedit-menu .imgedit-popup-menu button{display:block;margin:2px 0;width:100%;white-space:break-spaces;line-height:1.5;padding-top:3px;padding-bottom:2px}.imgedit-rotate-menu-container{position:relative}.imgedit-help.imgedit-restore{padding-bottom:0}.image-editor .imgedit-settings .imgedit-help-toggle,.image-editor .imgedit-settings .imgedit-help-toggle:active,.image-editor .imgedit-settings .imgedit-help-toggle:hover{border:1px solid transparent;margin:-1px 0 0 -1px;padding:0;background:0 0;color:#2271b1;font-size:20px;line-height:1;cursor:pointer;box-sizing:content-box;box-shadow:none}.image-editor .imgedit-settings .imgedit-help-toggle:focus{color:#2271b1;border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;outline:2px solid transparent}.form-table td.imgedit-response{padding:0}.imgedit-submit-btn{margin-left:20px}.imgedit-wrap .nowrap{white-space:nowrap;font-size:12px;line-height:inherit}span.imgedit-scale-warn{display:flex;align-items:center;margin:4px;gap:4px;color:#b32d2e;font-style:normal;visibility:hidden;vertical-align:middle}.imgedit-save-target{margin:8px 0}.imgedit-save-target legend{font-weight:600}.imgedit-group{margin-bottom:20px}.image-editor .imgedit-original-dimensions{display:inline-block}.image-editor .imgedit-crop-ratio input[type=number],.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=number],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale-controls input[type=number],.image-editor .imgedit-scale-controls input[type=text]{width:80px;font-size:14px;padding:0 8px}.imgedit-separator{display:inline-block;width:7px;text-align:center;font-size:13px;color:#3c434a}.image-editor .imgedit-scale-button-wrapper{margin-top:.3077em;display:block}.image-editor .imgedit-scale-controls .button{margin-bottom:0}audio,video{display:inline-block;max-width:100%}.wp-core-ui .mejs-container{width:100%;max-width:100%}.wp-core-ui .mejs-container *{box-sizing:border-box}.wp-core-ui .mejs-time{box-sizing:content-box}@media print,(min-resolution:120dpi){.imgedit-wait:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.edit-attachment-frame input,.edit-attachment-frame textarea{line-height:1.5}.wp_attachment_details label[for=content]{font-size:14px;line-height:1.5}.wp_attachment_details textarea{line-height:1.5}.wp_attachment_details #attachment_alt{height:3.375em}.media-upload-form .media-item .error,.media-upload-form .media-item.error{font-size:13px;line-height:1.5}.media-upload-form .media-item.error{padding:1px 10px}.media-upload-form .media-item .error{padding:10px 0 10px 12px}.image-editor .imgedit-crop-ratio input[type=text],.image-editor .imgedit-crop-sel input[type=text],.image-editor .imgedit-scale input[type=text]{font-size:16px;padding:6px 10px}.wp_attachment_holder .imgedit-wrap .image-editor,.wp_attachment_holder .imgedit-wrap .imgedit-panel-content{float:none;width:auto;max-width:none;padding-bottom:16px}.copy-to-clipboard-container .success{font-size:14px}.imgedit-crop-wrap img{width:100%}.media-modal .imgedit-wrap .image-editor,.media-modal .imgedit-wrap .imgedit-panel-content{position:initial!important}.media-modal .imgedit-wrap .image-editor{box-sizing:border-box;width:100%!important}.image-editor .imgedit-scale-button-wrapper{display:inline-block}}@media only screen and (max-width:600px){.media-item-wrapper{grid-template-columns:1fr}}@media only screen and (max-width:1120px){#wp-media-grid .wp-filter .attachment-filters{max-width:100%}}@media only screen and (max-width:1000px){.wp-filter p.search-box{float:none;width:100%;margin-bottom:20px;display:flex;flex-wrap:nowrap;column-gap:0}.wp-filter p.search-box #media-search-input{width:100%}}@media only screen and (max-width:782px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:46px;right:10px}}@media only screen and (max-width:600px){.media-frame.mode-select .attachments-browser.fixed .media-toolbar{top:0}}@media only screen and (max-width:480px){.edit-attachment-frame .media-frame-title{right:110px}.edit-attachment-frame .edit-media-header .left,.edit-attachment-frame .edit-media-header .right,.upload-php .media-modal-close{width:40px;height:40px}.edit-attachment-frame .edit-media-header .left:before,.edit-attachment-frame .edit-media-header .right:before{line-height:40px!important}.edit-attachment-frame .edit-media-header .left{right:82px}.edit-attachment-frame .edit-media-header .right{right:41px}.edit-attachment-frame .media-frame-content{top:40px}.edit-attachment-frame .attachment-media-view{float:none;height:auto;width:100%}.edit-attachment-frame .attachment-info{height:auto;width:100%}}@media only screen and (max-width:640px),screen and (max-height:400px){.upload-php .mode-grid .media-sidebar{max-width:100%}}@media only screen and (max-width:375px){.media-item .attachment-tools{align-items:baseline}.media-item .edit-attachment.copy-to-clipboard-container{flex-direction:column}.copy-to-clipboard-container .success{line-height:normal;margin-top:10px}}css/install.css000064400000014500152213653150007517 0ustar00html { background: #f0f0f1; margin: 0 20px; } body { background: #fff; border: 1px solid #c3c4c7; color: #3c434a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 140px auto 25px; padding: 20px 20px 10px; max-width: 700px; -webkit-font-smoothing: subpixel-antialiased; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } a { color: var(--wp-admin-theme-color); } a:hover, a:active { color: var(--wp-admin-theme-color-darker-20); } a:focus { color: var(--wp-admin-theme-color-darker-20); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } h1, h2 { border-bottom: 1px solid #dcdcde; clear: both; color: #646970; font-size: 24px; padding: 0 0 7px; font-weight: 400; } h3 { font-size: 16px; } p, li, dd, dt { padding-bottom: 2px; font-size: 14px; line-height: 1.5; } code, .code { font-family: Consolas, Monaco, monospace; } ul, ol, dl { padding: 5px 5px 5px 22px; } a img { border: 0 } abbr { border: 0; font-variant: normal; } fieldset { border: 0; padding: 0; margin: 0; } #logo { margin: -130px auto 25px; padding: 0 0 25px; width: 84px; height: 84px; overflow: hidden; background-image: url(../images/w-logo-gray.png?ver=20260303); background-image: none, url(../images/wordpress-logo-gray.svg?ver=20260303); background-size: 84px; background-position: center top; background-repeat: no-repeat; color: #3c434a; /* same as login.css */ font-size: 20px; font-weight: 400; line-height: 1.3em; text-decoration: none; text-align: center; text-indent: -9999px; outline: none; } .step { margin: 20px 0 15px; } .step, th { text-align: left; padding: 0; } .language-chooser.wp-core-ui .step .button.button-large { font-size: 14px; } textarea { border: 1px solid #dcdcde; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; width: 100%; box-sizing: border-box; } .form-table { border-collapse: collapse; margin-top: 1em; width: 100%; } .form-table td { margin-bottom: 9px; padding: 10px 20px 10px 0; font-size: 14px; vertical-align: top } .form-table th { font-size: 14px; text-align: left; padding: 10px 20px 10px 0; width: 115px; vertical-align: top; } .form-table code { line-height: 1.28571428; font-size: 14px; } .form-table p { margin: 4px 0 0; font-size: 11px; } .form-table .setup-description { margin: 4px 0 0; line-height: 1.6; } .form-table input { line-height: 1.33333333; font-size: 15px; padding: 3px 5px; } .wp-pwd { margin-top: 0; } .form-table .wp-pwd { display: flex; column-gap: 4px; } .form-table .password-input-wrapper { width: 100%; } input, submit { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; } .form-table input[type=text], .form-table input[type=email], .form-table input[type=url], .form-table input[type=password], #pass-strength-result { width: 100%; } .form-table th p { font-weight: 400; } .form-table.install-success th, .form-table.install-success td { vertical-align: middle; padding: 16px 20px 16px 0; } .form-table.install-success td p { margin: 0; font-size: 14px; } .form-table.install-success td code { margin: 0; font-size: 18px; } #error-page { margin-top: 50px; } #error-page p { font-size: 14px; line-height: 1.28571428; margin: 25px 0 20px; } #error-page code, .code { font-family: Consolas, Monaco, monospace; } .message { border-left: 4px solid #d63638; padding: .7em .6em; background-color: #fcf0f1; } /* rtl:ignore */ #dbname, #uname, #pwd, #dbhost, #prefix, #user_login, #admin_email, #pass1, #pass2 { direction: ltr; } /* localization */ body.rtl, .rtl textarea, .rtl input, .rtl submit { font-family: Tahoma, sans-serif; } :lang(he-il) body.rtl, :lang(he-il) .rtl textarea, :lang(he-il) .rtl input, :lang(he-il) .rtl submit { font-family: Arial, sans-serif; } @media only screen and (max-width: 799px) { body { margin-top: 115px; } #logo a { margin: -125px auto 30px; } } @media screen and (max-width: 782px) { .form-table { margin-top: 0; } .form-table th, .form-table td { display: block; width: auto; vertical-align: middle; } .form-table th { padding: 20px 0 0; } .form-table td { padding: 5px 0; border: 0; margin: 0; } textarea, input { font-size: 16px; } .form-table td input[type="text"], .form-table td input[type="email"], .form-table td input[type="url"], .form-table td input[type="password"], .form-table td select, .form-table td textarea, .form-table span.description { width: 100%; font-size: 16px; line-height: 1.5; padding: 7px 10px; display: block; max-width: none; box-sizing: border-box; } #pwd { padding-right: 2.5rem; } .wp-pwd #pass1 { padding-right: 50px; } .wp-pwd .button.wp-hide-pw { right: 0; } #pass-strength-result { width: 100%; } } body.language-chooser { max-width: 300px; } .language-chooser select { padding: 8px; width: 100%; display: block; border: 1px solid #dcdcde; background: #fff; color: #2c3338; font-size: 16px; font-family: Arial, sans-serif; font-weight: 400; } .language-chooser select:focus { color: #2c3338; } .language-chooser select option:hover, .language-chooser select option:focus { color: var(--wp-admin-theme-color-darker-20); } .language-chooser .step { text-align: right; } .screen-reader-input, .screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } .spinner { background: url(../images/spinner.gif) no-repeat; background-size: 20px 20px; visibility: hidden; opacity: 0.7; filter: alpha(opacity=70); width: 20px; height: 20px; margin: 2px 5px 0; } .step .spinner { display: inline-block; vertical-align: middle; margin-right: 15px; } .button.hide-if-no-js, .hide-if-no-js { display: none; } /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .spinner { background-image: url(../images/spinner-2x.gif); } } css/widgets.min.css000064400000034434152213653150010311 0ustar00/*! This file is auto-generated */ .widget{margin:0 auto 10px;position:relative;box-sizing:border-box}.widget.open{z-index:99}.widget.open:focus-within{z-index:100}.widget-top{font-size:13px;font-weight:600;background:#f6f7f7}.widget-top .widget-action{border:0;margin:0;padding:10px;background:0 0;cursor:pointer}.widget-title h3,.widget-title h4{margin:0;padding:15px;font-size:1em;line-height:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}.widgets-holder-wrap .widget-inside{border-top:none;padding:1px 15px 15px;line-height:1.23076923}.widget.widget-dirty .widget-control-close-wrapper{display:none}#available-widgets .widget-description,#widgets-right a.widget-control-edit,.in-widget-title{color:#646970}.deleting .widget-title,.deleting .widget-top .widget-action .toggle-indicator:before{color:#a7aaad}.wp-core-ui .media-widget-control .selected,.wp-core-ui .media-widget-control.selected .not-selected,.wp-core-ui .media-widget-control.selected .placeholder{display:none}.media-widget-control.selected .selected{display:inline-block}.media-widget-buttons{text-align:left;margin-top:0}.media-widget-control .media-widget-buttons .button{width:auto;height:auto;margin-top:12px;white-space:normal}.media-widget-buttons .button:first-child{margin-right:8px}.media-widget-control .attachment-media-view .button-add-media,.media-widget-control .placeholder{border:1px dashed #c3c4c7;box-sizing:border-box;cursor:pointer;line-height:1.6;padding:9px 0;position:relative;text-align:center;width:100%}.media-widget-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.media-widget-control .attachment-media-view .button-add-media:hover{background-color:#fff}.media-widget-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-style:solid;border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8);outline:2px solid transparent;outline-offset:-2px}.media-widget-control .media-widget-preview{background:0 0;text-align:center}.media-widget-control .media-widget-preview .notice{text-align:initial}.media-frame .media-widget-embed-notice p code,.media-widget-control .notice p code{padding:0 3px 0 0}.media-frame .media-widget-embed-notice{margin-top:16px}.media-widget-control .media-widget-preview img{max-width:100%;vertical-align:middle;background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}.media-widget-control .media-widget-preview .wp-video-shortcode{background:#000}.media-frame.media-widget .media-toolbar-secondary{min-width:300px}.media-frame.media-widget .attachment-display-settings .setting.align,.media-frame.media-widget .checkbox-setting.autoplay,.media-frame.media-widget .embed-link-settings .setting.link-text,.media-frame.media-widget .embed-media-settings .legend-inline,.media-frame.media-widget .embed-media-settings .setting.align,.media-frame.media-widget .image-details .embed-media-settings .setting.align,.media-frame.media-widget .replace-attachment{display:none}.media-widget-video-preview{width:100%}.media-widget-video-link{display:inline-block;min-height:132px;width:100%;background:#000}.media-widget-video-link .dashicons{font:normal 60px/1 dashicons;position:relative;width:100%;top:-90px;color:#fff;text-decoration:none}.media-widget-video-link.no-poster .dashicons{top:30px}.media-frame #embed-url-field.invalid,.media-widget-image-link>.link:invalid{border:1px solid #d63638}.media-widget-image-link{margin:1em 0}.media-widget-gallery-preview{display:flex;justify-content:flex-start;flex-wrap:wrap;margin:-1.79104477%}.media-widget-preview.media_gallery,.media-widget-preview.media_image{cursor:pointer}.media-widget-preview .placeholder{background:#f0f0f1}.media-widget-gallery-preview .gallery-item{box-sizing:border-box;width:50%;margin:0;background:0 0}.media-widget-gallery-preview .gallery-item .gallery-icon{margin:4.5%}.media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child,.media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child~.gallery-item,.media-widget-gallery-preview .gallery-item:nth-last-child(n+5),.media-widget-gallery-preview .gallery-item:nth-last-child(n+5)~.gallery-item,.media-widget-gallery-preview .gallery-item:nth-last-child(n+6),.media-widget-gallery-preview .gallery-item:nth-last-child(n+6)~.gallery-item{max-width:33.33%}.media-widget-gallery-preview .gallery-item img{height:auto;vertical-align:bottom}.media-widget-gallery-preview .gallery-icon{position:relative}.media-widget-gallery-preview .gallery-icon-placeholder{position:absolute;top:0;bottom:0;width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.5)}.media-widget-gallery-preview .gallery-icon-placeholder-text{font-weight:600;font-size:2em;color:#fff}.widget.ui-draggable-dragging{min-width:100%}.widget.ui-sortable-helper{opacity:.8}.widget-placeholder{border:1px dashed #c3c4c7;margin:0 auto 10px;height:45px;width:100%;box-sizing:border-box}#widgets-right .widget-placeholder{margin-top:0}#widgets-right .closed .widget-placeholder{height:0;border:0;margin-top:-10px}.sidebar-name{position:relative;box-sizing:border-box}.js .sidebar-name{cursor:pointer}.sidebar-name .handlediv{float:right;width:38px;height:38px;border:0;margin:0;padding:8px;background:0 0;cursor:pointer;outline:0}#widgets-right .sidebar-name .handlediv{margin:5px 3px 0 0}.sidebar-name .handlediv:focus{box-shadow:none;outline:1px solid transparent}#widgets-left .sidebar-name .toggle-indicator{display:none}#widgets-left .sidebar-name .handlediv:focus .toggle-indicator,#widgets-left .sidebar-name:hover .toggle-indicator,#widgets-left .widgets-holder-wrap.closed .sidebar-name .toggle-indicator{display:block}.sidebar-name .toggle-indicator:before{padding:1px 2px 1px 0;border-radius:50%}.sidebar-name .handlediv:focus .toggle-indicator:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.sidebar-name h2,.sidebar-name h3{margin:0;padding:8px 10px;overflow:hidden;white-space:normal;line-height:1.5}.widgets-holder-wrap .description{padding:0 0 15px;margin:0;font-style:normal;color:#646970}.inactive-sidebar .description,.widget-holder .description{color:#50575e}#widgets-right .widgets-holder-wrap .description{padding-left:7px;padding-right:7px}div.widget-liquid-left{margin:0;width:38%;float:left}div.widget-liquid-right{float:right;width:58%}div#widgets-left{padding-top:12px}div#widgets-left .closed .sidebar-name,div#widgets-left .inactive-sidebar.closed .sidebar-name{margin-bottom:10px}div#widgets-left .sidebar-name h2,div#widgets-left .sidebar-name h3{padding:10px 0;margin:0 10px 0 0}#widgets-left .widgets-holder-wrap,div#widgets-left .widget-holder{background:0 0;border:none}#widgets-left .widgets-holder-wrap{border:none;box-shadow:none}#available-widgets .widget{margin:0}#available-widgets .widget:nth-child(odd){clear:both}#available-widgets .widget .widget-description{display:block;padding:10px 15px;font-size:12px;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;hyphens:auto}#available-widgets #widget-list{position:relative}#widgets-left .inactive-sidebar{clear:both;width:100%;background:0 0;padding:0;margin:0 0 20px;border:none;box-shadow:none}#widgets-left .inactive-sidebar.first{margin-top:40px}div#widgets-left .inactive-sidebar .widget.expanded{left:auto}.widget-title-action{float:right;position:relative}div#widgets-left .inactive-sidebar .widgets-sortables{min-height:42px;padding:0;background:0 0;margin:0;position:relative}div#widgets-right .sidebars-column-1,div#widgets-right .sidebars-column-2{max-width:450px}div#widgets-right .widgets-holder-wrap{margin:10px 0 0}div#widgets-right .sidebar-description{min-height:20px;margin-top:-5px}div#widgets-right .sidebar-name h2,div#widgets-right .sidebar-name h3{padding:15px 15px 15px 7px}div#widgets-right .widget-top{padding:0}div#widgets-right .widgets-sortables{padding:0 8px;margin-bottom:9px;position:relative;min-height:123px}div#widgets-right .closed .widgets-sortables{min-height:0;margin-bottom:0}.remove-inactive-widgets .spinner,.sidebar-name .spinner{float:none;position:relative;top:-2px;margin:-5px 5px}.sidebar-name .spinner{position:absolute;top:18px;right:30px}#widgets-right .widgets-holder-wrap.widget-hover{border-color:#787c82;box-shadow:0 1px 2px rgba(0,0,0,.3)}.widget-access-link{float:right;margin:-5px 0 10px 10px}.widgets_access #widgets-left .widget .widget-top{cursor:auto}.widgets_access #wpwrap .widget-control-edit,.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description,.widgets_access #wpwrap .widgets-holder-wrap.closed .widget{display:block}.widgets_access #widgets-left .widget .widget-top:hover,.widgets_access #widgets-right .widget .widget-top:hover{border-color:#dcdcde}#available-widgets .widget-action .edit,#available-widgets .widget-control-edit .edit,#widgets-left .inactive-sidebar .widget-action .add,#widgets-left .inactive-sidebar .widget-control-edit .add,#widgets-right .widget-action .add,#widgets-right .widget-control-edit .add{display:none}.widget-control-edit{display:block;color:#646970;background:#f0f0f1;padding:0 15px;line-height:3.30769230;border-left:1px solid #dcdcde}#widgets-left .widget-control-edit:hover,#widgets-right .widget-control-edit:hover{color:#fff;background:#3c434a;border-left:0;outline:1px solid #3c434a}.widgets-holder-wrap .sidebar-description,.widgets-holder-wrap .sidebar-name{-webkit-user-select:none;user-select:none}.editwidget{margin:0 auto}.editwidget .widget-inside{display:block;padding:0 15px}.widget-control-actions{display:flex;align-items:center;justify-content:space-between}.editwidget .widget-control-actions{margin-top:20px}.js .closed br.clear,.js .widgets-holder-wrap.closed .description,.js .widgets-holder-wrap.closed .remove-inactive-widgets,.js .widgets-holder-wrap.closed .sidebar-description,.js .widgets-holder-wrap.closed .widget{display:none}.js .widgets-holder-wrap.closed .widget.ui-sortable-helper{display:block}.widget-description,.widget-inside{display:none}.widget-inside{background:#fff}.widget-inside select{max-width:100%}#removing-widget{display:none;font-weight:400;padding-left:15px;font-size:12px;line-height:1;color:#000}.js #removing-widget{color:#72aee6}#access-off,.no-js .widget-holder .description,.widget-control-noform,.widgets_access #access-on,.widgets_access .handlediv,.widgets_access .widget-action,.widgets_access .widget-holder .description{display:none}.widgets_access #widget-list,.widgets_access .widget-holder{padding-top:10px}.widgets_access #access-off{display:inline}.widgets_access .sidebar-name,.widgets_access .widget .widget-top{cursor:default}.widget-liquid-left #widgets-left.chooser #available-widgets .widget,.widget-liquid-left #widgets-left.chooser .inactive-sidebar{transition:opacity .1s linear}.widget-liquid-left #widgets-left.chooser #available-widgets .widget,.widget-liquid-left #widgets-left.chooser .inactive-sidebar{opacity:.2;pointer-events:none}.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question{opacity:1;pointer-events:auto}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.widgets-chooser ul.widgets-chooser-sidebars{margin:0;list-style-type:none;max-height:300px;overflow:auto}.widgets-chooser{display:none}.widgets-chooser ul{border:1px solid #c3c4c7}.widgets-chooser li{border-bottom:1px solid #c3c4c7;background:#fff;margin:0;position:relative}.widgets-chooser .widgets-chooser-button{width:100%;padding:10px 15px 10px 35px;background:0 0;border:0;box-sizing:border-box;text-align:left;cursor:pointer;transition:background .2s ease-in-out}.widgets-chooser .widgets-chooser-button:focus,.widgets-chooser .widgets-chooser-button:hover{outline:0;text-decoration:underline}.widgets-chooser li:last-child{border:none}.widgets-chooser .widgets-chooser-selected .widgets-chooser-button{background:var(--wp-admin-theme-color,#3858e9);color:#fff}.widgets-chooser .widgets-chooser-selected:before{content:"\f147";content:"\f147"/'';display:block;-webkit-font-smoothing:antialiased;font:normal 26px/1 dashicons;color:#fff;position:absolute;top:7px;left:5px}.widgets-chooser .widgets-chooser-actions{padding:10px 0 12px;text-align:center}#available-widgets .widget .widget-top{cursor:pointer}#available-widgets .widget.ui-draggable-dragging .widget-top{cursor:move}.text-widget-fields{position:relative}.text-widget-fields [hidden]{display:none}.text-widget-fields .wp-pointer.wp-pointer-top{position:absolute;z-index:3;top:100px;right:10px;left:10px}.text-widget-fields .wp-pointer .wp-pointer-arrow{left:auto;right:15px}.text-widget-fields .wp-pointer .wp-pointer-buttons{line-height:1.4}.custom-html-widget-fields>p>.CodeMirror{border:1px solid #dcdcde}.custom-html-widget-fields code{padding-top:1px;padding-bottom:1px}ul.CodeMirror-hints{z-index:101}.widget-control-actions .custom-html-widget-save-button.button.validation-blocked{cursor:not-allowed}@media screen and (max-width:782px){.editwidget .widget-inside input[type=checkbox],.editwidget .widget-inside input[type=radio],.widgets-holder-wrap .widget-inside input[type=checkbox],.widgets-holder-wrap .widget-inside input[type=radio]{margin:.25rem .25rem .25rem 0}}@media screen and (max-width:480px){div.widget-liquid-left{width:100%;float:none;border-right:none;padding-right:0}#widgets-left .sidebar-name{margin-right:0}#widgets-left #available-widgets .widget-top{margin-right:0}#widgets-left .inactive-sidebar .widgets-sortables{margin-right:0}div.widget-liquid-right{width:100%;float:none}div.widget{max-width:480px}.widget-access-link{float:none;margin:15px 0 0}}@media screen and (max-width:320px){div.widget{max-width:320px}}@media only screen and (min-width:1250px){#widgets-left #available-widgets .widget{width:49%;float:left}.widget.ui-draggable-dragging{min-width:49%}#widgets-left #available-widgets .widget:nth-child(2n){float:right}#widgets-right .sidebars-column-1,#widgets-right .sidebars-column-2{float:left;width:49%}#widgets-right .sidebars-column-1{margin-right:2%}#widgets-right.single-sidebar .sidebars-column-1,#widgets-right.single-sidebar .sidebars-column-2{float:none;width:100%;margin:0}}css/customize-controls.css000064400000215453152213653150011746 0ustar00body { overflow: hidden; -webkit-text-size-adjust: 100%; } .customize-controls-close, .widget-control-actions a { text-decoration: none; } #customize-controls h3 { font-size: 14px; } #customize-controls img { max-width: 100%; } #customize-controls .submit { text-align: center; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked { background-color: rgba(0, 0, 0, 0.7); padding: 25px; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message { margin-left: auto; margin-right: auto; max-width: 366px; min-height: 64px; width: auto; padding: 25px; position: relative; background: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); line-height: 1.5; overflow-y: auto; text-align: left; top: calc( 50% - 100px ); } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message.has-avatar { padding-left: 109px; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing { margin-top: 0; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons { margin-bottom: 0; } .customize-changeset-locked-avatar { width: 64px; position: absolute; left: 25px; top: 25px; } .wp-core-ui.wp-customizer .customize-changeset-locked-message a.button { margin-right: 10px; margin-top: 0; } #customize-controls .description { color: #50575e; } #customize-save-button-wrapper { float: right; margin-top: 7px; /* Vertically center 32px button in 45px header */ } body:not(.ready) #customize-save-button-wrapper .save { visibility: hidden; } #customize-save-button-wrapper .save { float: left; border-radius: 3px; box-shadow: none; /* @todo Adjust box shadow based on the disable states of paired button. */ margin-top: 0; } #customize-save-button-wrapper .save.has-next-sibling { border-radius: 3px 0 0 3px; } #customize-sidebar-outer-content { position: absolute; top: 0; bottom: 0; left: 0; visibility: hidden; overflow-x: hidden; overflow-y: auto; width: 100%; margin: 0; z-index: -1; background: #f0f0f1; transition: left .18s; border-right: 1px solid #dcdcde; border-left: 1px solid #dcdcde; height: 100%; } @media (prefers-reduced-motion: reduce) { #customize-sidebar-outer-content { transition: none; } } #customize-theme-controls .control-section-outer { display: none !important; } #customize-outer-theme-controls .accordion-section-content { padding: 12px; } #customize-outer-theme-controls .accordion-section-content.open { display: block; } .outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { visibility: visible; left: 100%; transition: left .18s; } @media (prefers-reduced-motion: reduce) { .outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { transition: none; } } .customize-outer-pane-parent { margin: 0; } .outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main { left: 300px; opacity: 0.4; } .outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main, .outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main, .adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main, .adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main { left: 64%; } #customize-outer-theme-controls li.notice { padding-top: 8px; padding-bottom: 8px; margin-left: 0; margin-bottom: 10px; } #publish-settings { text-indent: 0; border-radius: 0 3px 3px 0; padding-left: 0; padding-right: 0; box-shadow: none; /* @todo Adjust box shadow based on the disable states of paired button. */ font-size: 14px; width: 30px; float: left; transform: none; margin-top: 0; line-height: 2; } body:not(.ready) #publish-settings, body.trashing #customize-save-button-wrapper .save, body.trashing #publish-settings { display: none; } #customize-header-actions .spinner { margin-top: 13px; /* Vertically center 20px spinner in 45px header */ margin-right: 4px; } .saving #customize-header-actions .spinner, .trashing #customize-header-actions .spinner { visibility: visible; } #customize-header-actions { border-bottom: 1px solid #dcdcde; } #customize-controls .wp-full-overlay-sidebar-content { overflow-y: auto; overflow-x: hidden; } .outer-section-open #customize-controls .wp-full-overlay-sidebar-content { background: #f0f0f1; } #customize-controls .customize-info { border: none; border-bottom: 1px solid #dcdcde; margin-bottom: 15px; } #customize-control-changeset_status .customize-inside-control-row, #customize-control-changeset_preview_link input { background-color: #fff; border-bottom: 1px solid #dcdcde; box-sizing: content-box; width: 100%; margin-left: -12px; padding-left: 12px; padding-right: 12px; } #customize-control-trash_changeset { margin-top: 20px; } #customize-control-trash_changeset .button-link { position: relative; padding-left: 24px; display: inline-block; } #customize-control-trash_changeset .button-link:before { content: "\f182"; content: "\f182" / ''; font: normal 22px dashicons; text-decoration: none; position: absolute; left: 0; top: -2px; } #customize-controls .date-input:invalid { border-color: #d63638; } #customize-control-changeset_status .customize-inside-control-row { padding-top: 10px; padding-bottom: 10px; font-weight: 500; } #customize-control-changeset_status .customize-inside-control-row:first-of-type { border-top: 1px solid #dcdcde; } #customize-control-changeset_status .customize-control-title { margin-bottom: 6px; } #customize-control-changeset_status input { margin-left: 0; } #customize-control-changeset_preview_link { position: relative; display: block; } .preview-link-wrapper .customize-copy-preview-link.preview-control-element.button { margin: 0; position: absolute; top: 50%; transform: translateY(-50%) !important; right: 0; background: #fff !important; } .preview-link-wrapper { position: relative; } .customize-copy-preview-link:before, .customize-copy-preview-link:after { content: ""; height: 40px; position: absolute; background: #fff; top: 0; } .customize-copy-preview-link:before { left: -10px; width: 9px; opacity: 0.75; } .customize-copy-preview-link:after { left: -5px; width: 4px; opacity: 0.8; } #customize-control-changeset_preview_link input { line-height: 2.85714286; /* 40px */ border-top: 1px solid #dcdcde; border-left: none; border-right: none; text-indent: -999px; color: #fff; /* Only necessary for IE11 */ min-height: 40px; } #customize-control-changeset_preview_link label { position: relative; display: block; } #customize-control-changeset_preview_link a { display: inline-block; position: absolute; white-space: nowrap; overflow: hidden; width: 90%; bottom: 14px; font-size: 14px; text-decoration: none; } #customize-control-changeset_preview_link a.disabled, #customize-control-changeset_preview_link a.disabled:active, #customize-control-changeset_preview_link a.disabled:focus, #customize-control-changeset_preview_link a.disabled:visited { color: #000; opacity: 0.4; cursor: default; outline: none; box-shadow: none; } #sub-accordion-section-publish_settings .customize-section-description-container { display: none; } #customize-controls .customize-info.section-meta { margin-bottom: 15px; } .customize-control-date_time .customize-control-description + .date-time-fields.includes-time { margin-top: 10px; } .customize-control.customize-control-date_time .date-time-fields .date-input.day { margin-right: 0; } .date-time-fields .date-input.month { width: auto; margin: 0; } .date-time-fields .date-input.day, .date-time-fields .date-input.hour, .date-time-fields .date-input.minute { width: 46px; } .customize-control-date_time select { vertical-align: top; } .date-time-fields .date-input.year { width: 65px; } .date-time-fields .date-input.meridian { width: auto; margin: 0; } .date-time-fields .time-row { margin-top: 12px; } #customize-control-changeset_preview_link { margin-top: 6px; } #customize-control-changeset_status { margin-bottom: 0; padding-bottom: 0; } #customize-control-changeset_scheduled_date { box-sizing: content-box; width: 100%; margin-left: -12px; padding: 12px; background: #fff; border-bottom: 1px solid #dcdcde; margin-bottom: 0; } #customize-control-site_icon .customize-control-description, #customize-control-changeset_scheduled_date .customize-control-description { font-style: normal; } #customize-controls .customize-info.is-in-view, #customize-controls .customize-section-title.is-in-view { position: absolute; z-index: 9; width: 100%; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); } #customize-controls .customize-section-title.is-in-view { margin-top: 0; } #customize-controls .customize-info.is-in-view + .accordion-section { margin-top: 15px; } #customize-controls .customize-info.is-sticky, #customize-controls .customize-section-title.is-sticky { position: fixed; top: 46px; } #customize-controls .customize-info .accordion-section-title { background: #fff; color: #50575e; border-left: none; border-right: none; border-bottom: none; cursor: default; padding: 10px 10px 11px 14px; } #customize-controls .customize-info.open .accordion-section-title:after, #customize-controls .customize-info .accordion-section-title:hover:after, #customize-controls .customize-info .accordion-section-title:focus:after { color: #2c3338; } #customize-controls .customize-info .accordion-section-title:after { display: none; } #customize-controls .customize-info .preview-notice { font-size: 13px; line-height: 1.9; margin: 0; font-weight: 400; color: #50575e; } #customize-controls .customize-pane-child .customize-section-title h3, #customize-controls .customize-pane-child h3.customize-section-title, #customize-outer-theme-controls .customize-pane-child .customize-section-title h3, #customize-outer-theme-controls .customize-pane-child h3.customize-section-title, #customize-controls .customize-info .panel-title { font-size: 20px; font-weight: 200; line-height: 26px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #customize-controls .customize-section-title span.customize-action { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #customize-controls .customize-info .customize-help-toggle { position: absolute; top: 4px; right: 1px; padding: 20px 20px 10px 10px; width: 20px; height: 20px; cursor: pointer; box-shadow: none; background: transparent; color: #50575e; border: none; } #customize-controls .customize-info .customize-help-toggle:before { position: absolute; top: 5px; left: 6px; } #customize-controls .customize-info .customize-panel-description, #customize-controls .customize-info .customize-section-description, #customize-outer-theme-controls .customize-info .customize-section-description, #customize-controls .no-widget-areas-rendered-notice { color: #50575e; display: none; background: #fff; padding: 12px 15px; border-top: 1px solid #dcdcde; } #customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice { border-top: none; } .no-widget-areas-rendered-notice { font-style: italic; } .no-widget-areas-rendered-notice p:first-child { margin-top: 0; } .no-widget-areas-rendered-notice p:last-child { margin-bottom: 0; } #customize-controls .customize-info .customize-section-description { margin-bottom: 15px; } #customize-controls .customize-info .customize-panel-description p:first-child, #customize-controls .customize-info .customize-section-description p:first-child { margin-top: 0; } #customize-controls .customize-info .customize-panel-description p:last-child, #customize-controls .customize-info .customize-section-description p:last-child { margin-bottom: 0; } #customize-controls .current-panel .control-section > h3.accordion-section-title { padding-right: 30px; } #customize-theme-controls .control-section, #customize-outer-theme-controls .control-section { border: none; } #customize-theme-controls .accordion-section-title, #customize-outer-theme-controls .accordion-section-title { color: #50575e; background-color: #fff; border-bottom: 1px solid #dcdcde; border-left: 4px solid #fff; transition: .15s color ease-in-out, .15s background-color ease-in-out, .15s border-color ease-in-out; } .accordion-section-title:has(button.accordion-trigger), #customize-controls .current-panel .control-section > h3.accordion-section-title:has(button.accordion-trigger) { padding: 0; } .accordion-section-title button.accordion-trigger { all: unset; width: 100%; padding: 10px 30px 11px 14px; display: flex; align-items: center; box-sizing: border-box; } .accordion-section-title button.accordion-trigger:has(.menu-in-location) { display: block; } .accordion-section-title button.accordion-trigger .spinner { margin-top: 0; } @media (prefers-reduced-motion: reduce) { #customize-theme-controls .accordion-section-title, #customize-outer-theme-controls .accordion-section-title { transition: none; } } #customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title { color: #50575e; background-color: #fff; border-left: 4px solid #fff; } #customize-theme-controls .accordion-section-title:after, #customize-outer-theme-controls .accordion-section-title:after { content: "\f345"; content: "\f345" / ''; color: #a7aaad; pointer-events: none; } #customize-theme-controls .accordion-section-content, #customize-outer-theme-controls .accordion-section-content { color: #50575e; background: transparent; } #accordion-section-themes + .control-section { border-top: 1px solid #dcdcde; } .js .control-section:hover .accordion-section-title, .js .control-section .accordion-section-title:hover, .js .control-section.open .accordion-section-title, .js .control-section .accordion-section-title:focus { background: #f6f7f7; } #customize-theme-controls .control-section.open { border-bottom: 1px solid #f0f0f1; } #customize-theme-controls .control-section.open .accordion-section-title, #customize-outer-theme-controls .control-section.open .accordion-section-title { border-bottom-color: #f0f0f1 !important; } #customize-theme-controls .control-section:last-of-type.open, #customize-theme-controls .control-section:last-of-type > .accordion-section-title { border-bottom-color: #dcdcde; } #customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2), #customize-theme-controls .control-panel-nav_menus .control-section-nav_menu, #customize-theme-controls .control-section-nav_menu_locations .accordion-section-title { border-top: 1px solid #dcdcde; } #customize-theme-controls .control-panel-nav_menus .control-section-nav_menu + .control-section-nav_menu { border-top: none; } #customize-theme-controls > ul { margin: 0; } #customize-theme-controls .accordion-section-content { position: absolute; top: 0; left: 100%; width: 100%; margin: 0; padding: 12px; box-sizing: border-box; } #customize-info, #customize-theme-controls .customize-pane-parent, #customize-theme-controls .customize-pane-child { overflow: visible; width: 100%; margin: 0; padding: 0; box-sizing: border-box; transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */ } @media (prefers-reduced-motion: reduce) { #customize-info, #customize-theme-controls .customize-pane-parent, #customize-theme-controls .customize-pane-child { transition: none; } } #customize-theme-controls .customize-pane-child.skip-transition { transition: none; } #customize-info, #customize-theme-controls .customize-pane-parent { position: relative; visibility: visible; height: auto; max-height: none; overflow: auto; transform: none; } #customize-theme-controls .customize-pane-child { position: absolute; top: 0; left: 0; visibility: hidden; height: 0; max-height: none; overflow: hidden; transform: translateX(100%); } #customize-theme-controls .customize-pane-child.open, #customize-theme-controls .customize-pane-child.current-panel { transform: none; } .section-open #customize-theme-controls .customize-pane-parent, .in-sub-panel #customize-theme-controls .customize-pane-parent, .section-open #customize-info, .in-sub-panel #customize-info, .in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel { visibility: hidden; height: 0; overflow: hidden; transform: translateX(-100%); } .section-open #customize-theme-controls .customize-pane-parent.busy, .in-sub-panel #customize-theme-controls .customize-pane-parent.busy, .section-open #customize-info.busy, .in-sub-panel #customize-info.busy, .busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel, #customize-theme-controls .customize-pane-child.open, #customize-theme-controls .customize-pane-child.current-panel, #customize-theme-controls .customize-pane-child.busy { visibility: visible; height: auto; overflow: auto; } #customize-theme-controls .customize-pane-child.accordion-section-content, #customize-theme-controls .customize-pane-child.accordion-sub-container { display: block; overflow-x: hidden; } #customize-theme-controls .customize-pane-child.accordion-section-content { padding: 12px; } #customize-theme-controls .customize-pane-child.menu li { position: static; } .customize-section-description-container, .control-section-nav_menu .customize-section-description-container, .control-section-new_menu .customize-section-description-container { margin-bottom: 15px; } .control-section-nav_menu .customize-control, .control-section-new_menu .customize-control { /* Override default `margin-bottom` for `.customize-control` */ margin-bottom: 0; } .customize-section-title { margin: -12px -12px 0; border-bottom: 1px solid #dcdcde; background: #fff; } div.customize-section-description { margin-top: 22px; } .customize-info div.customize-section-description { margin-top: 0; } div.customize-section-description p:first-child { margin-top: 0; } div.customize-section-description p:last-child { margin-bottom: 0; } #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { border-bottom: 1px solid #dcdcde; padding: 12px; } .ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { padding: 12px 12px 13px; } .customize-section-title h3, h3.customize-section-title { padding: 10px 10px 12px 14px; margin: 0; line-height: 21px; color: #50575e; } .accordion-sub-container.control-panel-content { display: none; position: absolute; top: 0; width: 100%; } .accordion-sub-container.control-panel-content.busy { display: block; } .current-panel .accordion-sub-container.control-panel-content { width: 100%; } .customize-controls-close { display: block; position: absolute; top: 0; left: 0; width: 45px; height: 41px; padding: 0 2px 0 0; background: #f0f0f1; border: none; border-top: 4px solid #f0f0f1; border-right: 1px solid #dcdcde; color: #3c434a; text-align: left; cursor: pointer; box-sizing: content-box; } @media (prefers-reduced-motion: no-preference) { .customize-controls-close { transition: color .15s ease-in-out, border-color .15s ease-in-out, background .15s ease-in-out; } } .customize-panel-back, .customize-section-back { display: block; float: left; width: 48px; height: 71px; padding: 0 24px 0 0; margin: 0; background: #fff; border: none; border-right: 1px solid #dcdcde; border-left: 4px solid #fff; box-shadow: none; cursor: pointer; transition: color .15s ease-in-out, border-color .15s ease-in-out, background .15s ease-in-out; } .customize-section-back { height: 74px; } .ios .customize-panel-back { display: none; } .ios .expanded.in-sub-panel .customize-panel-back { display: block; } #customize-controls .panel-meta.customize-info .accordion-section-title { margin-left: 48px; border-left: none; } #customize-controls .panel-meta.customize-info .accordion-section-title:hover, #customize-controls .cannot-expand:hover .accordion-section-title { background: #fff; color: #50575e; border-left-color: #fff; } .customize-controls-close:focus, .customize-controls-close:hover, .customize-controls-preview-toggle:focus, .customize-controls-preview-toggle:hover { background: #fff; box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } #customize-theme-controls .accordion-section-title:focus .customize-action { /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; outline-offset: 1px; } .customize-panel-back:hover, .customize-panel-back:focus, .customize-section-back:hover, .customize-section-back:focus { background: #f6f7f7; box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .customize-controls-close:before { font: normal 22px/45px dashicons; content: "\f335"; content: "\f335" / ''; position: relative; top: -3px; left: 13px; } .customize-panel-back:before, .customize-section-back:before { font: normal 20px/72px dashicons; content: "\f341"; content: "\f341" / ''; position: relative; left: 9px; } .wp-full-overlay-sidebar .wp-full-overlay-header { background-color: #f0f0f1; transition: padding ease-in-out .18s; } .in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { padding-left: 62px; } p.customize-section-description { font-style: normal; margin-top: 22px; margin-bottom: 0; } .customize-section-description ul { margin-left: 1em; } .customize-section-description ul > li { list-style: disc; } .section-description-buttons { text-align: right; } .customize-control { width: 100%; float: left; clear: both; margin-bottom: 12px; } .customize-control input[type="text"], .customize-control input[type="password"], .customize-control input[type="email"], .customize-control input[type="number"], .customize-control input[type="search"], .customize-control input[type="tel"], .customize-control input[type="url"], .customize-control input[type="range"] { width: 100%; margin: 0; } .customize-control-hidden { margin: 0; } .customize-control-textarea textarea { width: 100%; resize: vertical; } .customize-control select { width: 100%; } .customize-control select[multiple] { height: auto; } .customize-control-title { display: block; font-size: 14px; line-height: 1.75; font-weight: 600; margin-bottom: 4px; } .customize-control-description { display: block; font-style: italic; line-height: 1.4; margin-top: 0; margin-bottom: 5px; } .customize-section-description a.external-link:after { font: 16px/11px dashicons; content: "\f504"; content: "\f504" / ''; top: 3px; position: relative; padding-left: 3px; display: inline-block; text-decoration: none; } .customize-control-color .color-picker, .customize-control-upload div { line-height: 28px; } .customize-control .customize-inside-control-row { line-height: 1.6; display: block; margin-left: 24px; padding-top: 6px; padding-bottom: 6px; } .customize-control-radio input, .customize-control-checkbox input, .customize-control-nav_menu_auto_add input { margin-right: 4px; margin-left: -24px; } .customize-control-radio { padding: 5px 0 10px; } .customize-control-radio .customize-control-title { margin-bottom: 0; line-height: 1.6; } .customize-control-radio .customize-control-title + .customize-control-description { margin-top: 7px; } .customize-control-radio label, .customize-control-checkbox label { vertical-align: top; } .customize-control .attachment-thumb.type-icon { float: left; margin: 10px; width: auto; } .customize-control .attachment-title { font-weight: 600; margin: 0; padding: 5px 10px; } .customize-control .attachment-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; padding: 0 10px; } .customize-control .attachment-meta-title { padding-top: 7px; } /* Remove descender space. */ .customize-control .thumbnail-image, .customize-control-header .current, .customize-control .wp-media-wrapper.wp-video { line-height: 0; } .customize-control .thumbnail-image img { cursor: pointer; } #customize-controls .thumbnail-audio .thumbnail { max-width: 64px; max-height: 64px; margin: 10px; float: left; } #available-menu-items .accordion-section-content .new-content-item-wrapper, .customize-control-dropdown-pages .new-content-item-wrapper { width: calc(100% - 30px); padding: 8px 15px; position: absolute; bottom: 0; z-index: 10; background: #f0f0f1; } .customize-control-dropdown-pages .new-content-item-wrapper { width: 100%; padding: 0; position: static; } #available-menu-items .new-content-item-wrapper > label, .customize-control-dropdown-pages .new-content-item-wrapper > label { margin-bottom: 4px; display: block; } #available-menu-items .accordion-section-content .new-content-item, .customize-control-dropdown-pages .new-content-item { display: flex; } .customize-control-dropdown-pages .new-content-item { width: 100%; padding: 5px 0 5px 1px; position: relative; } .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item { padding: 0; } .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label { line-height: 1.6; } #available-menu-items .new-content-item .create-item-input, .customize-control-dropdown-pages .new-content-item .create-item-input { flex-grow: 10; width: 100%; } #available-menu-items .new-content-item .create-item-input { min-height: 32px; line-height: 2.15384615; /* 28px for 32px min-height with 13px font */ } #available-menu-items .new-content-item .add-content, .customize-control-dropdown-pages .new-content-item .add-content { margin: 0 0 0 6px; flex-grow: 1; } #available-menu-items .new-content-item .add-content { min-height: 32px; line-height: 2.30769231; /* 30px for 32px min-height with 13px font */ } .customize-control-dropdown-pages .new-content-item .create-item-input.invalid { border: 1px solid #d63638; } .customize-control-dropdown-pages .add-new-toggle { margin-left: 1px; font-weight: 600; line-height: 2.2; } #customize-preview iframe { width: 100%; height: 100%; position: absolute; } #customize-preview iframe + iframe { visibility: hidden; } .wp-full-overlay-sidebar { background: #f0f0f1; border-right: 1px solid #dcdcde; } /** * Notifications */ #customize-controls .customize-control-notifications-container { /* Scoped to #customize-controls for specificity over notification styles in common.css. */ margin: 4px 0 8px; padding: 0; cursor: default; } #customize-controls .customize-control-widget_form.has-error .widget .widget-top, .customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle { box-shadow: inset 0 0 0 2px #d63638; transition: .15s box-shadow linear; } #customize-controls .customize-control-notifications-container li.notice { list-style: none; margin: 0 0 6px; padding: 9px 14px; overflow: hidden; } #customize-controls .customize-control-notifications-container .notice.is-dismissible { padding-right: 38px; } .customize-control-notifications-container li.notice:last-child { margin-bottom: 0; } #customize-controls .customize-control-nav_menu_item .customize-control-notifications-container { margin-top: 0; } #customize-controls .customize-control-widget_form .customize-control-notifications-container { margin-top: 8px; } .customize-control-text.has-error input { outline: 2px solid #d63638; } #customize-controls #customize-notifications-area { position: absolute; top: 46px; width: 100%; border-bottom: 1px solid #dcdcde; display: block; padding: 0; margin: 0; } .wp-full-overlay.collapsed #customize-controls #customize-notifications-area { display: none !important; } #customize-controls #customize-notifications-area:not(.has-overlay-notifications), #customize-controls .customize-section-title > .customize-control-notifications-container:not(.has-overlay-notifications), #customize-controls .panel-meta > .customize-control-notifications-container:not(.has-overlay-notifications) { max-height: 210px; overflow-x: hidden; overflow-y: auto; } #customize-controls #customize-notifications-area > ul, #customize-controls #customize-notifications-area .notice, #customize-controls .panel-meta > .customize-control-notifications-container, #customize-controls .panel-meta > .customize-control-notifications-container .notice, #customize-controls .customize-section-title > .customize-control-notifications-container, #customize-controls .customize-section-title > .customize-control-notifications-container .notice { margin: 0; } #customize-controls .panel-meta > .customize-control-notifications-container, #customize-controls .customize-section-title > .customize-control-notifications-container { border-top: 1px solid #dcdcde; } #customize-controls #customize-notifications-area .notice, #customize-controls .panel-meta > .customize-control-notifications-container .notice, #customize-controls .customize-section-title > .customize-control-notifications-container .notice { padding: 9px 14px; } #customize-controls #customize-notifications-area .notice.is-dismissible, #customize-controls .panel-meta > .customize-control-notifications-container .notice.is-dismissible, #customize-controls .customize-section-title > .customize-control-notifications-container .notice.is-dismissible { padding-right: 38px; } #customize-controls #customize-notifications-area .notice + .notice, #customize-controls .panel-meta > .customize-control-notifications-container .notice + .notice, #customize-controls .customize-section-title > .customize-control-notifications-container .notice + .notice { margin-top: 1px; } @keyframes customize-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } #customize-controls .notice.notification-overlay, #customize-controls #customize-notifications-area .notice.notification-overlay { margin: 0; border-left: 0; /* @todo Appropriate styles could be added for notice-error, notice-warning, notice-success, etc */ } #customize-controls .customize-control-notifications-container.has-overlay-notifications { animation: customize-fade-in 0.5s; z-index: 30; } /* Note: Styles for this are also defined in themes.css */ #customize-controls #customize-notifications-area .notice.notification-overlay .notification-message { clear: both; color: #1d2327; font-size: 18px; font-style: normal; margin: 0; padding: 2em 0; text-align: center; width: 100%; display: block; top: 50%; position: relative; } /* Style for custom settings */ /** * Static front page */ #customize-control-show_on_front.has-error { margin-bottom: 0; } #customize-control-show_on_front.has-error .customize-control-notifications-container { margin-top: 12px; } /** * Dropdowns */ .accordion-section .dropdown { float: left; display: block; position: relative; cursor: pointer; } .accordion-section .dropdown-content { overflow: hidden; float: left; min-width: 30px; height: 16px; line-height: 16px; margin-right: 16px; padding: 4px 5px; border: 2px solid #f0f0f1; -webkit-user-select: none; user-select: none; } /* @todo maybe no more used? */ .customize-control .dropdown-arrow { position: absolute; top: 0; bottom: 0; right: 0; width: 20px; background: #f0f0f1; } .customize-control .dropdown-arrow:after { content: "\f140"; content: "\f140" / ''; font: normal 20px/1 dashicons; display: block; padding: 0; text-indent: 0; text-align: center; position: relative; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #2c3338; } .customize-control .dropdown-status { color: #2c3338; background: #f0f0f1; display: none; max-width: 112px; } .customize-control-color .dropdown { margin-right: 5px; margin-bottom: 5px; } .customize-control-color .dropdown .dropdown-content { background-color: #50575e; border: 1px solid rgba(0, 0, 0, 0.15); } .customize-control-color .dropdown:hover .dropdown-content { border-color: rgba(0, 0, 0, 0.25); } /** * iOS can't scroll iframes, * instead it expands the iframe size to match the size of the content */ .ios .wp-full-overlay { position: relative; } .ios #customize-controls .wp-full-overlay-sidebar-content { -webkit-overflow-scrolling: touch; } /* Media controls */ .customize-control .actions .button { margin-top: 12px; } .customize-control-header .actions, .customize-control-header .uploaded { margin-bottom: 18px; } .customize-control-header .uploaded button:not(.random), .customize-control-header .default button:not(.random) { width: 100%; padding: 0; margin: 0; background: none; border: none; color: inherit; cursor: pointer; } .customize-control-header button img { display: block; } .customize-control .attachment-media-view .remove-button, .customize-control .attachment-media-view .default-button, .customize-control .attachment-media-view .upload-button, .customize-control-header button.new, .customize-control-header button.remove { width: auto; height: auto; white-space: normal; } .customize-control .attachment-media-view .upload-button { width: 100%; text-align: center; } .customize-control .attachment-media-view .upload-button.control-focus { width: auto; } .customize-control.customize-control-header .actions .upload-button.button.new { width: 100%; text-align: center; } .customize-control .attachment-media-view .thumbnail, .customize-control-header .current .container { overflow: hidden; } .customize-control .attachment-media-view .placeholder, .customize-control .attachment-media-view .button-add-media, .customize-control-header .placeholder { width: 100%; position: relative; text-align: center; cursor: default; border: 1px dashed #c3c4c7; box-sizing: border-box; padding: 9px 0; line-height: 1.6; } .customize-control .attachment-media-view .button-add-media { cursor: pointer; background-color: #f0f0f1; color: #2c3338; } .customize-control .attachment-media-view .button-add-media:hover { background-color: #fff; } .customize-control .attachment-media-view .button-add-media:focus { background-color: #fff; border-color: #3582c4; border-style: solid; box-shadow: 0 0 0 1px #3582c4; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .customize-control-header .inner { display: none; position: absolute; width: 100%; color: #50575e; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .customize-control-header .inner, .customize-control-header .inner .dashicons { line-height: 20px; top: 8px; } .customize-control-header .list .inner, .customize-control-header .list .inner .dashicons { top: 9px; } .customize-control-header .header-view { position: relative; width: 100%; margin-bottom: 12px; } .customize-control-header .header-view:last-child { margin-bottom: 0; } /* Convoluted, but 'outline' support isn't good enough yet */ .customize-control-header .header-view:after { border: 0; } .customize-control-header .header-view.selected .choice:focus { outline: none; } .customize-control-header .header-view.selected:after { content: ""; position: absolute; height: auto; top: 0; left: 0; bottom: 0; right: 0; border: 4px solid #72aee6; border-radius: 2px; } .customize-control-header .header-view.button.selected { border: 0; } /* Header control: overlay "close" button */ .customize-control-header .uploaded .header-view .close { font-size: 20px; color: #fff; background: #50575e; background: rgba(0, 0, 0, 0.5); position: absolute; top: 10px; left: -999px; z-index: 1; width: 26px; height: 26px; cursor: pointer; } .customize-control-header .header-view:hover .close, .customize-control-header .header-view .close:focus { left: auto; right: 10px; } .customize-control-header .header-view .close:focus { outline: 1px solid #4f94d4; } /* Header control: randomiz(s)er */ .customize-control-header .random.placeholder { cursor: pointer; border-radius: 2px; height: 40px; } .customize-control-header button.random { width: 100%; height: auto; min-height: 40px; white-space: normal; } .customize-control-header button.random .dice { margin-top: 0; } .customize-control-header .placeholder:hover .dice, .customize-control-header .header-view:hover > button.random .dice { animation: dice-color-change 3s infinite; } .button-see-me { animation: bounce .7s 1; transform-origin: center bottom; } @keyframes bounce { from, 20%, 53%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transform: translate3d(0,0,0); } 40%, 43% { animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060); transform: translate3d(0, -12px, 0); } 70% { animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060); transform: translate3d(0, -6px, 0); } 90% { transform: translate3d(0,-1px,0); } } .customize-control-header .choice { position: relative; display: block; margin-bottom: 9px; } .customize-control-header .choice:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .customize-control-header .uploaded div:last-child > .choice { margin-bottom: 0; } .customize-control .attachment-media-view .thumbnail-image img, .customize-control-header img { max-width: 100%; } .customize-control .attachment-media-view .remove-button, .customize-control .attachment-media-view .default-button, .customize-control-header .remove { margin-right: 8px; } /* Background position control */ .customize-control-background_position .background-position-control .button-group { display: block; } /** * Code Editor Control and Custom CSS Section * * Modifications to the Section Container to make the textarea full-width and * full-height, if the control is the only control in the section. */ .customize-control-code_editor textarea { width: 100%; font-family: Consolas, Monaco, monospace; font-size: 12px; padding: 6px 8px; tab-size: 2; } .customize-control-code_editor textarea, .customize-control-code_editor .CodeMirror { height: 14em; } #customize-controls .customize-section-description-container.section-meta.customize-info { border-bottom: none; } #sub-accordion-section-custom_css .customize-control-notifications-container { margin-bottom: 15px; } #customize-control-custom_css textarea { display: block; height: 500px; } .customize-section-description-container + #customize-control-custom_css .customize-control-title { margin-left: 12px; } .customize-section-description-container + #customize-control-custom_css:last-child textarea { border-right: 0; border-left: 0; height: calc( 100vh - 185px ); resize: none; } .customize-section-description-container + #customize-control-custom_css:last-child { margin-left: -12px; width: 299px; width: calc( 100% + 24px ); margin-bottom: -12px; } .customize-section-description-container + #customize-control-custom_css:last-child .CodeMirror { height: calc( 100vh - 185px ); } .CodeMirror-lint-tooltip, .CodeMirror-hints { z-index: 500000 !important; } .customize-section-description-container + #customize-control-custom_css:last-child .customize-control-notifications-container { margin-left: 12px; margin-right: 12px; } .theme-browser .theme.active .theme-actions, .wp-customizer .theme-browser .theme .theme-actions { padding: 9px 15px; } .theme-browser .theme:not(.active) .theme-actions { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); } @media screen and (max-width: 640px) { .customize-section-description-container + #customize-control-custom_css:last-child { margin-right: 0; } .customize-section-description-container + #customize-control-custom_css:last-child textarea { height: calc( 100vh - 140px ); } } /** * Themes */ #customize-theme-controls .control-panel-themes { border-bottom: none; } #customize-theme-controls .control-panel-themes > .accordion-section-title:hover, /* Not a focusable element. */ #customize-theme-controls .control-panel-themes > .accordion-section-title { cursor: default; background: #fff; color: #50575e; border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; border-left: none; border-right: none; margin: 0 0 15px; padding: 12px 100px 15px 15px; /* Space for the button */ } #customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover, /* Not a focusable element. */ #customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child { border-top: 0; } #customize-theme-controls .control-section-themes > .accordion-section-title:hover, /* Not a focusable element. */ #customize-theme-controls .control-section-themes > .accordion-section-title { margin: 0 0 15px; } #customize-controls .customize-themes-panel .accordion-section-title:hover, #customize-controls .customize-themes-panel .accordion-section-title { margin: 15px -8px; } #customize-controls .control-section-themes .accordion-section-title, #customize-controls .customize-themes-panel .accordion-section-title { padding-right: 100px; /* Space for the button */ } .control-panel-themes .accordion-section-title span.customize-action, #customize-controls .customize-section-title span.customize-action, #customize-controls .control-section-themes .accordion-section-title span.customize-action, #customize-controls .customize-section-title span.customize-action { font-size: 13px; display: block; font-weight: 400; } #customize-theme-controls .control-panel-themes .accordion-section-title .change-theme { position: absolute; right: 10px; top: 50%; margin-top: -20px; /* Half of 40px button height for vertical centering */ font-weight: 400; } #customize-notifications-area .notification-message button.switch-to-editor { display: block; margin-top: 6px; font-weight: 400; } #customize-theme-controls .control-panel-themes > .accordion-section-title:after { display: none; } .control-panel-themes .customize-themes-full-container { position: fixed; top: 0; left: 0; transition: .18s left ease-in-out; margin: 0 0 0 300px; padding: 71px 0 25px; overflow-y: scroll; width: calc(100% - 300px); height: calc(100% - 96px); background: #f0f0f1; z-index: 20; } @media (prefers-reduced-motion: reduce) { .control-panel-themes .customize-themes-full-container { transition: none; } } @media screen and (min-width: 1670px) { .control-panel-themes .customize-themes-full-container { width: 82%; right: 0; left: initial; } } .modal-open .control-panel-themes .customize-themes-full-container { overflow-y: visible; } /* Animations for opening the themes panel */ #customize-save-button-wrapper, #customize-header-actions .spinner, #customize-header-actions .customize-controls-preview-toggle { transition: .18s margin ease-in-out; } #customize-footer-actions, #customize-footer-actions .collapse-sidebar { bottom: 0; transition: .18s bottom ease-in-out; } .in-themes-panel:not(.animating) #customize-header-actions .spinner, .in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle, .in-themes-panel:not(.animating) #customize-preview, .in-themes-panel:not(.animating) #customize-footer-actions { visibility: hidden; } .wp-full-overlay.in-themes-panel { background: #f0f0f1; /* Prevents a black flash when fading in the panel */ } .in-themes-panel #customize-save-button-wrapper, .in-themes-panel #customize-header-actions .spinner, .in-themes-panel #customize-header-actions .customize-controls-preview-toggle { margin-top: -46px; /* Height of header actions bar */ } .in-themes-panel #customize-footer-actions, .in-themes-panel #customize-footer-actions .collapse-sidebar { bottom: -45px; } /* Don't show the theme count while the panel opens, as it's in the wrong place during the animation */ .in-themes-panel.animating .control-panel-themes .filter-themes-count { display: none; } .in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content { bottom: 0; } .themes-filter-bar .feature-filter-toggle { min-height: 32px; line-height: 2.30769231; } .themes-filter-bar .feature-filter-toggle:before { content: "\f111"; content: "\f111" / ''; margin: 0 5px 0 0; font: normal 16px/1 dashicons; vertical-align: text-bottom; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .themes-filter-bar .feature-filter-toggle.open { background: #f0f0f1; border-color: #8c8f94; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); } .themes-filter-bar .feature-filter-toggle .filter-count-filters { display: none; } .filter-drawer { box-sizing: border-box; width: 100%; position: absolute; top: 46px; left: 0; padding: 25px 0 25px 25px; border-top: 0; margin: 0; background: #f0f0f1; border-bottom: 1px solid #dcdcde; } .filter-drawer .filter-group { margin: 0 25px 0 0; width: calc( (100% - 75px) / 3); min-width: 200px; max-width: 320px; } /* Adds a delay before fading in to avoid it "jumping" */ @keyframes themes-fade-in { 0% { opacity: 0; } 50% { opacity: 0; } 100% { opacity: 1; } } .control-panel-themes .customize-themes-full-container.animate { animation: .6s themes-fade-in 1; } .in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count { animation: .6s themes-fade-in 1; } .control-panel-themes .filter-themes-count .themes-displayed { font-weight: 600; color: #50575e; } .customize-themes-notifications { margin: 0; } .control-panel-themes .customize-themes-notifications .notice { margin: 0 0 25px; } .customize-themes-full-container .customize-themes-section { display: none !important; /* There is unknown JS that perpetually tries to show all theme sections when more items are added. */ overflow: hidden; } .customize-themes-full-container .customize-themes-section.current-section { display: list-item !important; /* There is unknown JS that perpetually tries to show all theme sections when more items are added. */ } .control-section .customize-section-text-before { padding: 0 0 8px 15px; margin: 15px 0 0; line-height: 16px; border-bottom: 1px solid #dcdcde; color: #50575e; } .control-panel-themes .customize-themes-section-title { width: 100%; background: #fff; box-shadow: none; outline: none; border-top: none; border-bottom: 1px solid #dcdcde; border-left: 4px solid #fff; border-right: none; cursor: pointer; padding: 10px 15px; position: relative; text-align: left; font-size: 14px; font-weight: 600; color: #50575e; text-shadow: none; } .control-panel-themes #accordion-section-installed_themes { border-top: 1px solid #dcdcde; } .control-panel-themes .theme-section { margin: 0; position: relative; } .control-panel-themes .customize-themes-section-title:focus, .control-panel-themes .customize-themes-section-title:hover { background: #f6f7f7; } .customize-themes-section-title:not(.selected):after { content: ""; display: block; position: absolute; top: 9px; right: 15px; width: 18px; height: 18px; border-radius: 100%; border: 1px solid #c3c4c7; background: #fff; } .control-panel-themes .theme-section .customize-themes-section-title.selected:after { content: "\f147"; content: "\f147" / ''; font: 16px/1 dashicons; box-sizing: border-box; width: 20px; height: 20px; padding: 3px 3px 1px 1px; /* Re-align the icon to the smaller grid */ border-radius: 100%; position: absolute; top: 9px; right: 15px; color: #fff; } #customize-theme-controls .themes.accordion-section-content { position: relative; left: 0; padding: 0; width: 100%; } .loading .customize-themes-section .spinner { display: block; visibility: visible; position: relative; clear: both; width: 20px; height: 20px; left: calc(50% - 10px); float: none; margin-top: 50px; } .customize-themes-section .no-themes, .customize-themes-section .no-themes-local { display: none; } .themes-section-installed_themes .theme .notice-success:not(.updated-message) { display: none; /* Hide "installed" notice on installed themes tab. */ } .customize-control-theme .theme { width: 100%; margin: 0; border: 1px solid #dcdcde; background: #fff; } .customize-control-theme .theme .theme-name, .customize-control-theme .theme .theme-actions { background: #fff; border: none; } .customize-control.customize-control-theme { /* override most properties on .customize-control */ box-sizing: border-box; width: 25%; max-width: 600px; /* Max. screenshot size / 2 */ margin: 0 25px 25px 0; padding: 0; clear: none; } /* 5 columns above 2100px */ @media screen and (min-width: 2101px) { .customize-control.customize-control-theme { width: calc( ( 100% - 125px ) / 5 - 1px ); /* 1px offset accounts for browser rounding, typical all grids */ } } /* 4 columns up to 2100px */ @media screen and (min-width: 1601px) and (max-width: 2100px) { .customize-control.customize-control-theme { width: calc( ( 100% - 100px ) / 4 - 1px ); } } /* 3 columns up to 1600px */ @media screen and (min-width: 1201px) and (max-width: 1600px) { .customize-control.customize-control-theme { width: calc( ( 100% - 75px ) / 3 - 1px ); } } /* 2 columns up to 1200px */ @media screen and (min-width: 851px) and (max-width: 1200px) { .customize-control.customize-control-theme { width: calc( ( 100% - 50px ) / 2 - 1px ); } } /* 1 column up to 850 px */ @media screen and (max-width: 850px) { .customize-control.customize-control-theme { width: 100%; } } .wp-customizer .theme-browser .themes { padding: 0 0 25px 25px; transition: .18s margin-top linear; } .wp-customizer .theme-browser .theme .theme-actions { opacity: 1; } #customize-controls h3.theme-name { font-size: 15px; } #customize-controls .theme-overlay .theme-name { font-size: 32px; } .customize-preview-header.themes-filter-bar { position: fixed; top: 0; left: 300px; width: calc(100% - 300px); height: 46px; background: #f0f0f1; z-index: 10; padding: 6px 25px; box-sizing: border-box; border-bottom: 1px solid #dcdcde; } .customize-preview-header.themes-filter-bar, .customize-preview-header.themes-filter-bar .search-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .customize-preview-header.themes-filter-bar .search-form-input { position: relative; } .customize-preview-header .filter-themes-wrapper { display: grid; align-items: center; gap: 10px; grid-template-columns: auto 1fr; } .customize-preview-header .filter-themes-wrapper .filter-themes-count { justify-self: end; } @media screen and (min-width: 1670px) { .customize-preview-header.themes-filter-bar { width: 82%; right: 0; left: initial; } } .themes-filter-bar .themes-filter-container { margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; } .themes-filter-bar .wp-filter-search { padding: 0 10px 0 30px; max-width: 100%; width: 40%; min-width: 300px; height: 32px; min-height: 32px; /* Override global 40px min-height for compact bar */ margin: 1px 0; top: 0; left: 0; } /* Unstick the filter bar on short windows/screens. This breakpoint is based on the current length of .org feature filters assuming translations do not wrap lines. */ @media screen and (max-height: 540px), screen and (max-width: 1018px) { .customize-preview-header.themes-filter-bar { position: relative; left: 0; width: 100%; margin: 0 0 25px; } .filter-drawer { top: 46px; } .wp-customizer .theme-browser .themes { padding: 0 0 25px 25px; overflow: hidden; } .control-panel-themes .customize-themes-full-container { margin-top: 0; padding: 0; height: 100%; width: calc(100% - 300px); } } @media screen and (max-width: 1018px) { .filter-drawer .filter-group { width: calc( (100% - 50px) / 2); } } @media screen and (max-width: 960px) { .customize-preview-header.themes-filter-bar { height: 96px; } } @media screen and (max-width: 900px) { .themes-filter-bar .wp-filter-search { width: 100%; margin: 0; min-width: 200px; } .customize-preview-header.themes-filter-bar, .customize-preview-header.themes-filter-bar .search-form .themes-filter-bar .themes-filter-container { display: grid; gap: 4px; } .customize-preview-header.themes-filter-bar .search-form-input { display: flex; flex-grow: 1; } .filter-drawer { top: 86px; } .control-panel-themes .filter-themes-count { float: left; } } @media screen and (max-width: 792px) { .filter-drawer .filter-group { width: calc( 100% - 25px); } } .control-panel-themes .customize-themes-mobile-back { display: none; } /* Mobile - toggle between themes and filters */ @media screen and (max-width: 600px) { .filter-drawer { top: 132px; } .wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes { display: block; float: right; } .control-panel-themes .customize-themes-full-container { width: 100%; margin: 0; padding-top: 46px; height: calc(100% - 46px); z-index: 1; display: none; } .showing-themes .control-panel-themes .customize-themes-full-container { display: block; } .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back { display: block; position: fixed; top: 0; left: 0; background: #f0f0f1; color: #3c434a; border-radius: 0; box-shadow: none; border: none; height: 46px; width: 100%; z-index: 10; text-align: left; text-shadow: none; border-bottom: 1px solid #dcdcde; border-left: 4px solid transparent; margin: 0; padding: 0; font-size: 0; overflow: hidden; } .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before { left: 0; top: 0; height: 46px; width: 26px; display: block; line-height: 2.3; padding: 0 8px; border-right: 1px solid #dcdcde; } .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover, .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus { background: #f6f7f7; box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .showing-themes #customize-header-actions { display: none; } #customize-controls { width: 100%; } } /* Details View */ .wp-customizer .theme-overlay { display: none; } .wp-customizer.modal-open .theme-overlay { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 109; } /* Avoid a z-index war by resetting elements that should be under the overlay. This is likely required because of the way that sections and panels are positioned. */ .wp-customizer.modal-open #customize-header-actions, .wp-customizer.modal-open .control-panel-themes .filter-themes-count, .wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after { z-index: -1; } .wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { overflow: visible; } .wp-customizer .theme-overlay .theme-backdrop { background: rgba(240, 240, 241, 0.75); position: fixed; z-index: 110; } .wp-customizer .theme-overlay .star-rating { float: left; margin-right: 8px; } .wp-customizer .theme-rating .num-ratings { line-height: 20px; } .wp-customizer .theme-overlay .theme-wrap { left: 90px; right: 90px; top: 45px; bottom: 45px; z-index: 120; } .wp-customizer .theme-overlay .theme-actions { text-align: right; /* Because there're only one or two actions, match the UI pattern of media modals and right-align the action. */ padding: 10px 25px 5px; background: #f0f0f1; border-top: 1px solid #dcdcde; } .wp-customizer .theme-overlay .theme-actions .theme-install.preview { margin-left: 8px; } .modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { overflow: visible; /* Prevent the top-level Customizer controls from becoming visible when elements on the right of the details modal are focused. */ } .wp-customizer .theme-header { background: #f0f0f1; } .wp-customizer .theme-overlay .theme-header button, .wp-customizer .theme-overlay .theme-header .close:before { color: #3c434a; } .wp-customizer .theme-overlay .theme-header .close:focus, .wp-customizer .theme-overlay .theme-header .close:hover, .wp-customizer .theme-overlay .theme-header .right:focus, .wp-customizer .theme-overlay .theme-header .right:hover, .wp-customizer .theme-overlay .theme-header .left:focus, .wp-customizer .theme-overlay .theme-header .left:hover { background: #fff; } .wp-customizer .theme-overlay .theme-header .close:focus:before, .wp-customizer .theme-overlay .theme-header .close:hover:before { color: var(--wp-admin-theme-color); } .wp-customizer .theme-overlay .theme-header button.disabled, .wp-customizer .theme-overlay .theme-header button.disabled:hover, .wp-customizer .theme-overlay .theme-header button.disabled:focus { border-bottom: none; background: transparent; color: #c3c4c7; } /* Small Screens */ @media (max-width: 850px), (max-height: 472px) { .wp-customizer .theme-overlay .theme-wrap { left: 0; right: 0; top: 0; bottom: 0; } .wp-customizer .theme-browser .themes { padding-right: 25px; } } /* Handle cheaters. */ body.cheatin { font-size: medium; height: auto; background: #fff; border: 1px solid #c3c4c7; margin: 50px auto 2em; padding: 1em 2em; max-width: 700px; min-width: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } body.cheatin h1 { border-bottom: 1px solid #dcdcde; clear: both; color: #50575e; font-size: 24px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 30px 0 0; padding: 0 0 7px; } body.cheatin p { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } /** * Widgets and Menus common styles */ /* higher specificity than .wp-core-ui .button */ #customize-theme-controls .add-new-widget, #customize-theme-controls .add-new-menu-item { cursor: pointer; float: right; margin: 0 0 0 10px; transition: all 0.2s; -webkit-user-select: none; user-select: none; outline: none; } .reordering .add-new-widget, .reordering .add-new-menu-item { opacity: 0.2; pointer-events: none; cursor: not-allowed; /* doesn't work in conjunction with pointer-events */ } .add-new-widget:before, .add-new-menu-item:before, #available-menu-items .new-content-item .add-content:before { content: "\f132"; content: "\f132" / ''; display: inline-block; position: relative; left: -2px; top: 0; font: normal 20px/1 dashicons; vertical-align: middle; transition: all 0.2s; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Reordering */ .reorder-toggle { float: right; padding: 5px 8px; text-decoration: none; cursor: pointer; outline: none; } .reorder, .reordering .reorder-done { display: block; padding: 5px 8px; } .reorder-done, .reordering .reorder { display: none; } .widget-reorder-nav span, .menu-item-reorder-nav button { position: relative; overflow: hidden; float: left; display: block; width: 33px; /* was 42px for mobile */ height: 43px; color: #8c8f94; text-indent: -9999px; cursor: pointer; outline: none; } .menu-item-reorder-nav button { width: 30px; height: 40px; background: transparent; border: none; box-shadow: none; } .widget-reorder-nav span:before, .menu-item-reorder-nav button:before { display: inline-block; position: absolute; top: 0; right: 0; width: 100%; height: 100%; font: normal 20px/43px dashicons; text-align: center; text-indent: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .widget-reorder-nav span:hover, .widget-reorder-nav span:focus, .menu-item-reorder-nav button:hover, .menu-item-reorder-nav button:focus { color: #1d2327; background: #f0f0f1; } .move-widget-down:before, .menus-move-down:before { content: "\f347"; content: "\f347" / ''; } .move-widget-up:before, .menus-move-up:before { content: "\f343"; content: "\f343" / ''; } #customize-theme-controls .first-widget .move-widget-up, #customize-theme-controls .last-widget .move-widget-down, .move-up-disabled .menus-move-up, .move-down-disabled .menus-move-down, .move-right-disabled .menus-move-right, .move-left-disabled .menus-move-left { color: #dcdcde; background-color: #fff; cursor: default; pointer-events: none; } /** * New widget and Add-menu-items modes and panels */ .wp-full-overlay-main { right: auto; /* this overrides a right: 0; which causes the preview to resize, I'd rather have it go off screen at the normal size. */ width: 100%; } body.adding-widget .add-new-widget, body.adding-widget .add-new-widget:hover, .adding-menu-items .add-new-menu-item, .adding-menu-items .add-new-menu-item:hover, .add-menu-toggle.open, .add-menu-toggle.open:hover { background: #f0f0f1; border-color: #8c8f94; color: #2c3338; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); } body.adding-widget .add-new-widget:before, .adding-menu-items .add-new-menu-item:before, #accordion-section-add_menu .add-new-menu-item.open:before { transform: rotate(45deg); } #available-widgets, #available-menu-items { position: absolute; top: 0; bottom: 0; left: -301px; visibility: hidden; overflow-x: hidden; overflow-y: auto; width: 300px; margin: 0; z-index: 4; background: #f0f0f1; transition: left .18s; border-right: 1px solid #dcdcde; } #available-widgets .accordion-section-title, #available-menu-items .accordion-section-title { z-index: 2; } #available-widgets .customize-section-title, #available-menu-items .customize-section-title { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } #available-widgets .customize-section-title button, #available-menu-items .customize-section-title button { display: none; } #available-widgets-list { top: 82px; position: absolute; overflow: auto; bottom: 0; width: 100%; border-top: 1px solid #dcdcde; } .no-widgets-found #available-widgets-list { border-top: none; } #available-widgets-filter { position: fixed; top: 0; z-index: 1; width: 300px; background: #f0f0f1; } /* search field container */ #available-widgets-filter, #available-menu-items-search .accordion-section-title { padding: 13px 15px; box-sizing: border-box; } #available-widgets-filter input, #available-menu-items-search input { width: 100%; min-height: 40px; margin: 1px 0; padding: 0 30px; } #available-widgets-filter input::-ms-clear, #available-menu-items-search input::-ms-clear { display: none; /* remove the "x" in IE, which conflicts with the "x" icon on button.clear-results */ } #available-menu-items-search .search-icon, #available-widgets-filter .search-icon { display: block; position: absolute; bottom: 19px; /* 13 container padding +1 input margin +1 input border +4 centering in 40px input */ left: 16px; width: 30px; height: 30px; line-height: 2.1; text-align: center; color: #646970; } #available-widgets-filter .clear-results, #available-menu-items-search .accordion-section-title .clear-results { position: absolute; top: 40px; /* 13 container padding +1 input margin +1 input border +4 centering in 40px input */ right: 16px; width: 30px; height: 30px; padding: 0; border: 0; cursor: pointer; background: none; color: #d63638; text-decoration: none; outline: 0; } #available-widgets-filter .clear-results, #available-menu-items-search .clear-results, #available-menu-items-search.loading .clear-results.is-visible { display: none; } #available-widgets-filter .clear-results.is-visible, #available-menu-items-search .clear-results.is-visible { display: block; } #available-widgets-filter .clear-results:before, #available-menu-items-search .clear-results:before { content: "\f335"; content: "\f335" / ''; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #available-widgets-filter .clear-results:hover, #available-widgets-filter .clear-results:focus, #available-menu-items-search .clear-results:hover, #available-menu-items-search .clear-results:focus { color: #d63638; } #available-widgets-filter .clear-results:focus, #available-menu-items-search .clear-results:focus { border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #available-menu-items-search .search-icon:after, #available-widgets-filter .search-icon:after, .themes-filter-bar .search-icon:after { content: "\f179"; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .themes-filter-bar .search-icon { position: absolute; top: 2px; left: 2px; z-index: 1; color: #646970; height: 30px; width: 30px; line-height: 2; text-align: center; } .no-widgets-found-message { display: none; margin: 0; padding: 0 15px; line-height: inherit; } .no-widgets-found .no-widgets-found-message { display: block; } #available-widgets .widget-top, #available-widgets .widget-top:hover, #available-menu-items .item-top, #available-menu-items .item-top:hover { border: none; background: transparent; box-shadow: none; } #available-widgets .widget-tpl, #available-menu-items .item-tpl { position: relative; padding: 15px 15px 15px 60px; background: #fff; border-bottom: 1px solid #dcdcde; border-left: 4px solid #fff; transition: .15s color ease-in-out, .15s background-color ease-in-out, .15s border-color ease-in-out; cursor: pointer; display: none; } #available-widgets .widget, #available-menu-items .item { position: static; } /* Responsive */ .customize-controls-preview-toggle { display: none; } @media only screen and (max-width: 782px) { .wp-customizer .theme:not(.active):hover .theme-actions, .wp-customizer .theme:not(.active):focus .theme-actions { display: block; } .wp-customizer .theme-browser .theme.active .theme-name span { display: inline; } .customize-control-header button.random .dice { margin-top: 0; } .customize-control-radio .customize-inside-control-row, .customize-control-checkbox .customize-inside-control-row, .customize-control-nav_menu_auto_add .customize-inside-control-row { margin-left: 32px; } .customize-control-radio input, .customize-control-checkbox input, .customize-control-nav_menu_auto_add input { margin-left: -32px; } .customize-control input[type="radio"] + label + br, .customize-control input[type="checkbox"] + label + br { line-height: 2.5; /* For widgets checkboxes */ } .customize-control .date-time-fields select { height: 39px; } .date-time-fields .date-input.month { width: 79px; } .date-time-fields .date-input.day, .date-time-fields .date-input.hour, .date-time-fields .date-input.minute { width: 55px; } .date-time-fields .date-input.year { width: 80px; } #customize-control-changeset_preview_link a { bottom: 16px; } .media-widget-control .media-widget-buttons .button.edit-media, .media-widget-control .media-widget-buttons .button.change-media, .media-widget-control .media-widget-buttons .button.select-media { margin-top: 12px; } .customize-preview-header.themes-filter-bar .search-icon { top: 6px; } } @media screen and (max-width: 1200px) { .outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main { left: 67%; } } @media screen and (max-width: 640px) { /* when the sidebar is collapsed and switching to responsive view, bring it back see ticket #35220 */ .wp-full-overlay.collapsed #customize-controls { margin-left: 0; } .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { bottom: 0; } .customize-controls-preview-toggle { display: block; position: absolute; top: 0; left: 48px; line-height: 2.6; font-size: 14px; padding: 0 12px 4px; margin: 0; height: 45px; background: #f0f0f1; border: 0; border-right: 1px solid #dcdcde; border-top: 4px solid #f0f0f1; color: #50575e; cursor: pointer; transition: color .1s ease-in-out, background .1s ease-in-out; } #customize-footer-actions, /*#customize-preview,*/ .customize-controls-preview-toggle .controls, .preview-only .wp-full-overlay-sidebar-content, .preview-only .customize-controls-preview-toggle .preview { display: none; } .preview-only #customize-save-button-wrapper { margin-top: -46px; } .customize-controls-preview-toggle .preview:before, .customize-controls-preview-toggle .controls:before { font: normal 20px/1 dashicons; content: "\f177"; content: "\f177" / ''; position: relative; top: 4px; margin-right: 6px; } .customize-controls-preview-toggle .controls:before { content: "\f540"; content: "\f540" / ''; } .preview-only #customize-controls { height: 45px; } .preview-only #customize-preview, .preview-only .customize-controls-preview-toggle .controls { display: block; } .wp-core-ui.wp-customizer .button { padding: 0 14px; line-height: 2.14285714; /* 30px */ font-size: 14px; vertical-align: middle; } .customize-control .attachment-media-view .upload-button { text-align: center; } #customize-control-changeset_status .customize-inside-control-row { padding-top: 15px; } body.adding-widget div#available-widgets, body.adding-menu-items div#available-menu-items, body.outer-section-open div#customize-sidebar-outer-content { width: 100%; } #available-widgets .customize-section-title, #available-menu-items .customize-section-title { border: 0; clip-path: none; height: inherit; margin: 0; overflow: hidden; padding: 0; width: auto; position: static; } #available-widgets .customize-section-title button, #available-menu-items .customize-section-title button { display: block; } #available-widgets .customize-section-back, #available-menu-items .customize-section-back { height: 69px; } #available-widgets .customize-section-title h3, #available-menu-items .customize-section-title h3 { font-size: 20px; font-weight: 200; padding: 9px 10px 12px 14px; margin: 0; line-height: 24px; color: #50575e; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #available-widgets .customize-section-title .customize-action, #available-menu-items .customize-section-title .customize-action { font-size: 13px; display: block; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #available-widgets-filter { position: relative; width: 100%; height: auto; } #available-widgets-list { top: 152px; } #available-menu-items-search .clear-results { top: 40px; right: 16px; } .reorder, .reordering .reorder-done { padding: 8px; } } @media screen and (max-width: 600px) { .wp-full-overlay.expanded { margin-left: 0; } body.adding-widget div#available-widgets, body.adding-menu-items div#available-menu-items, body.outer-section-open div#customize-sidebar-outer-content { top: 46px; z-index: 10; } body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content { left: -100%; } body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { left: 0; } } css/customize-controls-rtl.css000064400000215571152213653150012546 0ustar00/*! This file is auto-generated */ body { overflow: hidden; -webkit-text-size-adjust: 100%; } .customize-controls-close, .widget-control-actions a { text-decoration: none; } #customize-controls h3 { font-size: 14px; } #customize-controls img { max-width: 100%; } #customize-controls .submit { text-align: center; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked { background-color: rgba(0, 0, 0, 0.7); padding: 25px; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message { margin-right: auto; margin-left: auto; max-width: 366px; min-height: 64px; width: auto; padding: 25px; position: relative; background: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); line-height: 1.5; overflow-y: auto; text-align: right; top: calc( 50% - 100px ); } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message.has-avatar { padding-right: 109px; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing { margin-top: 0; } #customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons { margin-bottom: 0; } .customize-changeset-locked-avatar { width: 64px; position: absolute; right: 25px; top: 25px; } .wp-core-ui.wp-customizer .customize-changeset-locked-message a.button { margin-left: 10px; margin-top: 0; } #customize-controls .description { color: #50575e; } #customize-save-button-wrapper { float: left; margin-top: 7px; /* Vertically center 32px button in 45px header */ } body:not(.ready) #customize-save-button-wrapper .save { visibility: hidden; } #customize-save-button-wrapper .save { float: right; border-radius: 3px; box-shadow: none; /* @todo Adjust box shadow based on the disable states of paired button. */ margin-top: 0; } #customize-save-button-wrapper .save.has-next-sibling { border-radius: 0 3px 3px 0; } #customize-sidebar-outer-content { position: absolute; top: 0; bottom: 0; right: 0; visibility: hidden; overflow-x: hidden; overflow-y: auto; width: 100%; margin: 0; z-index: -1; background: #f0f0f1; transition: right .18s; border-left: 1px solid #dcdcde; border-right: 1px solid #dcdcde; height: 100%; } @media (prefers-reduced-motion: reduce) { #customize-sidebar-outer-content { transition: none; } } #customize-theme-controls .control-section-outer { display: none !important; } #customize-outer-theme-controls .accordion-section-content { padding: 12px; } #customize-outer-theme-controls .accordion-section-content.open { display: block; } .outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { visibility: visible; right: 100%; transition: right .18s; } @media (prefers-reduced-motion: reduce) { .outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { transition: none; } } .customize-outer-pane-parent { margin: 0; } .outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main { right: 300px; opacity: 0.4; } .outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main, .outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main, .adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main, .adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main { right: 64%; } #customize-outer-theme-controls li.notice { padding-top: 8px; padding-bottom: 8px; margin-right: 0; margin-bottom: 10px; } #publish-settings { text-indent: 0; border-radius: 3px 0 0 3px; padding-right: 0; padding-left: 0; box-shadow: none; /* @todo Adjust box shadow based on the disable states of paired button. */ font-size: 14px; width: 30px; float: right; transform: none; margin-top: 0; line-height: 2; } body:not(.ready) #publish-settings, body.trashing #customize-save-button-wrapper .save, body.trashing #publish-settings { display: none; } #customize-header-actions .spinner { margin-top: 13px; /* Vertically center 20px spinner in 45px header */ margin-left: 4px; } .saving #customize-header-actions .spinner, .trashing #customize-header-actions .spinner { visibility: visible; } #customize-header-actions { border-bottom: 1px solid #dcdcde; } #customize-controls .wp-full-overlay-sidebar-content { overflow-y: auto; overflow-x: hidden; } .outer-section-open #customize-controls .wp-full-overlay-sidebar-content { background: #f0f0f1; } #customize-controls .customize-info { border: none; border-bottom: 1px solid #dcdcde; margin-bottom: 15px; } #customize-control-changeset_status .customize-inside-control-row, #customize-control-changeset_preview_link input { background-color: #fff; border-bottom: 1px solid #dcdcde; box-sizing: content-box; width: 100%; margin-right: -12px; padding-right: 12px; padding-left: 12px; } #customize-control-trash_changeset { margin-top: 20px; } #customize-control-trash_changeset .button-link { position: relative; padding-right: 24px; display: inline-block; } #customize-control-trash_changeset .button-link:before { content: "\f182"; content: "\f182" / ''; font: normal 22px dashicons; text-decoration: none; position: absolute; right: 0; top: -2px; } #customize-controls .date-input:invalid { border-color: #d63638; } #customize-control-changeset_status .customize-inside-control-row { padding-top: 10px; padding-bottom: 10px; font-weight: 500; } #customize-control-changeset_status .customize-inside-control-row:first-of-type { border-top: 1px solid #dcdcde; } #customize-control-changeset_status .customize-control-title { margin-bottom: 6px; } #customize-control-changeset_status input { margin-right: 0; } #customize-control-changeset_preview_link { position: relative; display: block; } .preview-link-wrapper .customize-copy-preview-link.preview-control-element.button { margin: 0; position: absolute; top: 50%; transform: translateY(-50%) !important; left: 0; background: #fff !important; } .preview-link-wrapper { position: relative; } .customize-copy-preview-link:before, .customize-copy-preview-link:after { content: ""; height: 40px; position: absolute; background: #fff; top: 0; } .customize-copy-preview-link:before { right: -10px; width: 9px; opacity: 0.75; } .customize-copy-preview-link:after { right: -5px; width: 4px; opacity: 0.8; } #customize-control-changeset_preview_link input { line-height: 2.85714286; /* 40px */ border-top: 1px solid #dcdcde; border-right: none; border-left: none; text-indent: -999px; color: #fff; /* Only necessary for IE11 */ min-height: 40px; } #customize-control-changeset_preview_link label { position: relative; display: block; } #customize-control-changeset_preview_link a { display: inline-block; position: absolute; white-space: nowrap; overflow: hidden; width: 90%; bottom: 14px; font-size: 14px; text-decoration: none; } #customize-control-changeset_preview_link a.disabled, #customize-control-changeset_preview_link a.disabled:active, #customize-control-changeset_preview_link a.disabled:focus, #customize-control-changeset_preview_link a.disabled:visited { color: #000; opacity: 0.4; cursor: default; outline: none; box-shadow: none; } #sub-accordion-section-publish_settings .customize-section-description-container { display: none; } #customize-controls .customize-info.section-meta { margin-bottom: 15px; } .customize-control-date_time .customize-control-description + .date-time-fields.includes-time { margin-top: 10px; } .customize-control.customize-control-date_time .date-time-fields .date-input.day { margin-left: 0; } .date-time-fields .date-input.month { width: auto; margin: 0; } .date-time-fields .date-input.day, .date-time-fields .date-input.hour, .date-time-fields .date-input.minute { width: 46px; } .customize-control-date_time select { vertical-align: top; } .date-time-fields .date-input.year { width: 65px; } .date-time-fields .date-input.meridian { width: auto; margin: 0; } .date-time-fields .time-row { margin-top: 12px; } #customize-control-changeset_preview_link { margin-top: 6px; } #customize-control-changeset_status { margin-bottom: 0; padding-bottom: 0; } #customize-control-changeset_scheduled_date { box-sizing: content-box; width: 100%; margin-right: -12px; padding: 12px; background: #fff; border-bottom: 1px solid #dcdcde; margin-bottom: 0; } #customize-control-site_icon .customize-control-description, #customize-control-changeset_scheduled_date .customize-control-description { font-style: normal; } #customize-controls .customize-info.is-in-view, #customize-controls .customize-section-title.is-in-view { position: absolute; z-index: 9; width: 100%; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); } #customize-controls .customize-section-title.is-in-view { margin-top: 0; } #customize-controls .customize-info.is-in-view + .accordion-section { margin-top: 15px; } #customize-controls .customize-info.is-sticky, #customize-controls .customize-section-title.is-sticky { position: fixed; top: 46px; } #customize-controls .customize-info .accordion-section-title { background: #fff; color: #50575e; border-right: none; border-left: none; border-bottom: none; cursor: default; padding: 10px 14px 11px 10px; } #customize-controls .customize-info.open .accordion-section-title:after, #customize-controls .customize-info .accordion-section-title:hover:after, #customize-controls .customize-info .accordion-section-title:focus:after { color: #2c3338; } #customize-controls .customize-info .accordion-section-title:after { display: none; } #customize-controls .customize-info .preview-notice { font-size: 13px; line-height: 1.9; margin: 0; font-weight: 400; color: #50575e; } #customize-controls .customize-pane-child .customize-section-title h3, #customize-controls .customize-pane-child h3.customize-section-title, #customize-outer-theme-controls .customize-pane-child .customize-section-title h3, #customize-outer-theme-controls .customize-pane-child h3.customize-section-title, #customize-controls .customize-info .panel-title { font-size: 20px; font-weight: 200; line-height: 26px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #customize-controls .customize-section-title span.customize-action { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #customize-controls .customize-info .customize-help-toggle { position: absolute; top: 4px; left: 1px; padding: 20px 10px 10px 20px; width: 20px; height: 20px; cursor: pointer; box-shadow: none; background: transparent; color: #50575e; border: none; } #customize-controls .customize-info .customize-help-toggle:before { position: absolute; top: 5px; right: 6px; } #customize-controls .customize-info .customize-panel-description, #customize-controls .customize-info .customize-section-description, #customize-outer-theme-controls .customize-info .customize-section-description, #customize-controls .no-widget-areas-rendered-notice { color: #50575e; display: none; background: #fff; padding: 12px 15px; border-top: 1px solid #dcdcde; } #customize-controls .customize-info .customize-panel-description.open + .no-widget-areas-rendered-notice { border-top: none; } .no-widget-areas-rendered-notice { font-style: italic; } .no-widget-areas-rendered-notice p:first-child { margin-top: 0; } .no-widget-areas-rendered-notice p:last-child { margin-bottom: 0; } #customize-controls .customize-info .customize-section-description { margin-bottom: 15px; } #customize-controls .customize-info .customize-panel-description p:first-child, #customize-controls .customize-info .customize-section-description p:first-child { margin-top: 0; } #customize-controls .customize-info .customize-panel-description p:last-child, #customize-controls .customize-info .customize-section-description p:last-child { margin-bottom: 0; } #customize-controls .current-panel .control-section > h3.accordion-section-title { padding-left: 30px; } #customize-theme-controls .control-section, #customize-outer-theme-controls .control-section { border: none; } #customize-theme-controls .accordion-section-title, #customize-outer-theme-controls .accordion-section-title { color: #50575e; background-color: #fff; border-bottom: 1px solid #dcdcde; border-right: 4px solid #fff; transition: .15s color ease-in-out, .15s background-color ease-in-out, .15s border-color ease-in-out; } .accordion-section-title:has(button.accordion-trigger), #customize-controls .current-panel .control-section > h3.accordion-section-title:has(button.accordion-trigger) { padding: 0; } .accordion-section-title button.accordion-trigger { all: unset; width: 100%; padding: 10px 14px 11px 30px; display: flex; align-items: center; box-sizing: border-box; } .accordion-section-title button.accordion-trigger:has(.menu-in-location) { display: block; } .accordion-section-title button.accordion-trigger .spinner { margin-top: 0; } @media (prefers-reduced-motion: reduce) { #customize-theme-controls .accordion-section-title, #customize-outer-theme-controls .accordion-section-title { transition: none; } } #customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title { color: #50575e; background-color: #fff; border-right: 4px solid #fff; } #customize-theme-controls .accordion-section-title:after, #customize-outer-theme-controls .accordion-section-title:after { content: "\f341"; content: "\f345" / ''; color: #a7aaad; pointer-events: none; } #customize-theme-controls .accordion-section-content, #customize-outer-theme-controls .accordion-section-content { color: #50575e; background: transparent; } #accordion-section-themes + .control-section { border-top: 1px solid #dcdcde; } .js .control-section:hover .accordion-section-title, .js .control-section .accordion-section-title:hover, .js .control-section.open .accordion-section-title, .js .control-section .accordion-section-title:focus { background: #f6f7f7; } #customize-theme-controls .control-section.open { border-bottom: 1px solid #f0f0f1; } #customize-theme-controls .control-section.open .accordion-section-title, #customize-outer-theme-controls .control-section.open .accordion-section-title { border-bottom-color: #f0f0f1 !important; } #customize-theme-controls .control-section:last-of-type.open, #customize-theme-controls .control-section:last-of-type > .accordion-section-title { border-bottom-color: #dcdcde; } #customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2), #customize-theme-controls .control-panel-nav_menus .control-section-nav_menu, #customize-theme-controls .control-section-nav_menu_locations .accordion-section-title { border-top: 1px solid #dcdcde; } #customize-theme-controls .control-panel-nav_menus .control-section-nav_menu + .control-section-nav_menu { border-top: none; } #customize-theme-controls > ul { margin: 0; } #customize-theme-controls .accordion-section-content { position: absolute; top: 0; right: 100%; width: 100%; margin: 0; padding: 12px; box-sizing: border-box; } #customize-info, #customize-theme-controls .customize-pane-parent, #customize-theme-controls .customize-pane-child { overflow: visible; width: 100%; margin: 0; padding: 0; box-sizing: border-box; transition: 0.18s transform cubic-bezier(0.645, 0.045, 0.355, 1); /* easeInOutCubic */ } @media (prefers-reduced-motion: reduce) { #customize-info, #customize-theme-controls .customize-pane-parent, #customize-theme-controls .customize-pane-child { transition: none; } } #customize-theme-controls .customize-pane-child.skip-transition { transition: none; } #customize-info, #customize-theme-controls .customize-pane-parent { position: relative; visibility: visible; height: auto; max-height: none; overflow: auto; transform: none; } #customize-theme-controls .customize-pane-child { position: absolute; top: 0; right: 0; visibility: hidden; height: 0; max-height: none; overflow: hidden; transform: translateX(-100%); } #customize-theme-controls .customize-pane-child.open, #customize-theme-controls .customize-pane-child.current-panel { transform: none; } .section-open #customize-theme-controls .customize-pane-parent, .in-sub-panel #customize-theme-controls .customize-pane-parent, .section-open #customize-info, .in-sub-panel #customize-info, .in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel { visibility: hidden; height: 0; overflow: hidden; transform: translateX(100%); } .section-open #customize-theme-controls .customize-pane-parent.busy, .in-sub-panel #customize-theme-controls .customize-pane-parent.busy, .section-open #customize-info.busy, .in-sub-panel #customize-info.busy, .busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel, #customize-theme-controls .customize-pane-child.open, #customize-theme-controls .customize-pane-child.current-panel, #customize-theme-controls .customize-pane-child.busy { visibility: visible; height: auto; overflow: auto; } #customize-theme-controls .customize-pane-child.accordion-section-content, #customize-theme-controls .customize-pane-child.accordion-sub-container { display: block; overflow-x: hidden; } #customize-theme-controls .customize-pane-child.accordion-section-content { padding: 12px; } #customize-theme-controls .customize-pane-child.menu li { position: static; } .customize-section-description-container, .control-section-nav_menu .customize-section-description-container, .control-section-new_menu .customize-section-description-container { margin-bottom: 15px; } .control-section-nav_menu .customize-control, .control-section-new_menu .customize-control { /* Override default `margin-bottom` for `.customize-control` */ margin-bottom: 0; } .customize-section-title { margin: -12px -12px 0; border-bottom: 1px solid #dcdcde; background: #fff; } div.customize-section-description { margin-top: 22px; } .customize-info div.customize-section-description { margin-top: 0; } div.customize-section-description p:first-child { margin-top: 0; } div.customize-section-description p:last-child { margin-bottom: 0; } #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { border-bottom: 1px solid #dcdcde; padding: 12px; } .ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { padding: 12px 12px 13px; } .customize-section-title h3, h3.customize-section-title { padding: 10px 14px 12px 10px; margin: 0; line-height: 21px; color: #50575e; } .accordion-sub-container.control-panel-content { display: none; position: absolute; top: 0; width: 100%; } .accordion-sub-container.control-panel-content.busy { display: block; } .current-panel .accordion-sub-container.control-panel-content { width: 100%; } .customize-controls-close { display: block; position: absolute; top: 0; right: 0; width: 45px; height: 41px; padding: 0 0 0 2px; background: #f0f0f1; border: none; border-top: 4px solid #f0f0f1; border-left: 1px solid #dcdcde; color: #3c434a; text-align: right; cursor: pointer; box-sizing: content-box; } @media (prefers-reduced-motion: no-preference) { .customize-controls-close { transition: color .15s ease-in-out, border-color .15s ease-in-out, background .15s ease-in-out; } } .customize-panel-back, .customize-section-back { display: block; float: right; width: 48px; height: 71px; padding: 0 0 0 24px; margin: 0; background: #fff; border: none; border-left: 1px solid #dcdcde; border-right: 4px solid #fff; box-shadow: none; cursor: pointer; transition: color .15s ease-in-out, border-color .15s ease-in-out, background .15s ease-in-out; } .customize-section-back { height: 74px; } .ios .customize-panel-back { display: none; } .ios .expanded.in-sub-panel .customize-panel-back { display: block; } #customize-controls .panel-meta.customize-info .accordion-section-title { margin-right: 48px; border-right: none; } #customize-controls .panel-meta.customize-info .accordion-section-title:hover, #customize-controls .cannot-expand:hover .accordion-section-title { background: #fff; color: #50575e; border-right-color: #fff; } .customize-controls-close:focus, .customize-controls-close:hover, .customize-controls-preview-toggle:focus, .customize-controls-preview-toggle:hover { background: #fff; box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } #customize-theme-controls .accordion-section-title:focus .customize-action { /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; outline-offset: 1px; } .customize-panel-back:hover, .customize-panel-back:focus, .customize-section-back:hover, .customize-section-back:focus { background: #f6f7f7; box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .customize-controls-close:before { font: normal 22px/45px dashicons; content: "\f335"; content: "\f335" / ''; position: relative; top: -3px; right: 13px; } .customize-panel-back:before, .customize-section-back:before { font: normal 20px/72px dashicons; content: "\f345"; content: "\f341" / ''; position: relative; right: 9px; } .wp-full-overlay-sidebar .wp-full-overlay-header { background-color: #f0f0f1; transition: padding ease-in-out .18s; } .in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header { padding-right: 62px; } p.customize-section-description { font-style: normal; margin-top: 22px; margin-bottom: 0; } .customize-section-description ul { margin-right: 1em; } .customize-section-description ul > li { list-style: disc; } .section-description-buttons { text-align: left; } .customize-control { width: 100%; float: right; clear: both; margin-bottom: 12px; } .customize-control input[type="text"], .customize-control input[type="password"], .customize-control input[type="email"], .customize-control input[type="number"], .customize-control input[type="search"], .customize-control input[type="tel"], .customize-control input[type="url"], .customize-control input[type="range"] { width: 100%; margin: 0; } .customize-control-hidden { margin: 0; } .customize-control-textarea textarea { width: 100%; resize: vertical; } .customize-control select { width: 100%; } .customize-control select[multiple] { height: auto; } .customize-control-title { display: block; font-size: 14px; line-height: 1.75; font-weight: 600; margin-bottom: 4px; } .customize-control-description { display: block; font-style: italic; line-height: 1.4; margin-top: 0; margin-bottom: 5px; } .customize-section-description a.external-link:after { font: 16px/11px dashicons; content: "\f504"; content: "\f504" / ''; top: 3px; position: relative; padding-right: 3px; display: inline-block; text-decoration: none; } .customize-control-color .color-picker, .customize-control-upload div { line-height: 28px; } .customize-control .customize-inside-control-row { line-height: 1.6; display: block; margin-right: 24px; padding-top: 6px; padding-bottom: 6px; } .customize-control-radio input, .customize-control-checkbox input, .customize-control-nav_menu_auto_add input { margin-left: 4px; margin-right: -24px; } .customize-control-radio { padding: 5px 0 10px; } .customize-control-radio .customize-control-title { margin-bottom: 0; line-height: 1.6; } .customize-control-radio .customize-control-title + .customize-control-description { margin-top: 7px; } .customize-control-radio label, .customize-control-checkbox label { vertical-align: top; } .customize-control .attachment-thumb.type-icon { float: right; margin: 10px; width: auto; } .customize-control .attachment-title { font-weight: 600; margin: 0; padding: 5px 10px; } .customize-control .attachment-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; padding: 0 10px; } .customize-control .attachment-meta-title { padding-top: 7px; } /* Remove descender space. */ .customize-control .thumbnail-image, .customize-control-header .current, .customize-control .wp-media-wrapper.wp-video { line-height: 0; } .customize-control .thumbnail-image img { cursor: pointer; } #customize-controls .thumbnail-audio .thumbnail { max-width: 64px; max-height: 64px; margin: 10px; float: right; } #available-menu-items .accordion-section-content .new-content-item-wrapper, .customize-control-dropdown-pages .new-content-item-wrapper { width: calc(100% - 30px); padding: 8px 15px; position: absolute; bottom: 0; z-index: 10; background: #f0f0f1; } .customize-control-dropdown-pages .new-content-item-wrapper { width: 100%; padding: 0; position: static; } #available-menu-items .new-content-item-wrapper > label, .customize-control-dropdown-pages .new-content-item-wrapper > label { margin-bottom: 4px; display: block; } #available-menu-items .accordion-section-content .new-content-item, .customize-control-dropdown-pages .new-content-item { display: flex; } .customize-control-dropdown-pages .new-content-item { width: 100%; padding: 5px 1px 5px 0; position: relative; } .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item { padding: 0; } .customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label { line-height: 1.6; } #available-menu-items .new-content-item .create-item-input, .customize-control-dropdown-pages .new-content-item .create-item-input { flex-grow: 10; width: 100%; } #available-menu-items .new-content-item .create-item-input { min-height: 32px; line-height: 2.15384615; /* 28px for 32px min-height with 13px font */ } #available-menu-items .new-content-item .add-content, .customize-control-dropdown-pages .new-content-item .add-content { margin: 0 6px 0 0; flex-grow: 1; } #available-menu-items .new-content-item .add-content { min-height: 32px; line-height: 2.30769231; /* 30px for 32px min-height with 13px font */ } .customize-control-dropdown-pages .new-content-item .create-item-input.invalid { border: 1px solid #d63638; } .customize-control-dropdown-pages .add-new-toggle { margin-right: 1px; font-weight: 600; line-height: 2.2; } #customize-preview iframe { width: 100%; height: 100%; position: absolute; } #customize-preview iframe + iframe { visibility: hidden; } .wp-full-overlay-sidebar { background: #f0f0f1; border-left: 1px solid #dcdcde; } /** * Notifications */ #customize-controls .customize-control-notifications-container { /* Scoped to #customize-controls for specificity over notification styles in common.css. */ margin: 4px 0 8px; padding: 0; cursor: default; } #customize-controls .customize-control-widget_form.has-error .widget .widget-top, .customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle { box-shadow: inset 0 0 0 2px #d63638; transition: .15s box-shadow linear; } #customize-controls .customize-control-notifications-container li.notice { list-style: none; margin: 0 0 6px; padding: 9px 14px; overflow: hidden; } #customize-controls .customize-control-notifications-container .notice.is-dismissible { padding-left: 38px; } .customize-control-notifications-container li.notice:last-child { margin-bottom: 0; } #customize-controls .customize-control-nav_menu_item .customize-control-notifications-container { margin-top: 0; } #customize-controls .customize-control-widget_form .customize-control-notifications-container { margin-top: 8px; } .customize-control-text.has-error input { outline: 2px solid #d63638; } #customize-controls #customize-notifications-area { position: absolute; top: 46px; width: 100%; border-bottom: 1px solid #dcdcde; display: block; padding: 0; margin: 0; } .wp-full-overlay.collapsed #customize-controls #customize-notifications-area { display: none !important; } #customize-controls #customize-notifications-area:not(.has-overlay-notifications), #customize-controls .customize-section-title > .customize-control-notifications-container:not(.has-overlay-notifications), #customize-controls .panel-meta > .customize-control-notifications-container:not(.has-overlay-notifications) { max-height: 210px; overflow-x: hidden; overflow-y: auto; } #customize-controls #customize-notifications-area > ul, #customize-controls #customize-notifications-area .notice, #customize-controls .panel-meta > .customize-control-notifications-container, #customize-controls .panel-meta > .customize-control-notifications-container .notice, #customize-controls .customize-section-title > .customize-control-notifications-container, #customize-controls .customize-section-title > .customize-control-notifications-container .notice { margin: 0; } #customize-controls .panel-meta > .customize-control-notifications-container, #customize-controls .customize-section-title > .customize-control-notifications-container { border-top: 1px solid #dcdcde; } #customize-controls #customize-notifications-area .notice, #customize-controls .panel-meta > .customize-control-notifications-container .notice, #customize-controls .customize-section-title > .customize-control-notifications-container .notice { padding: 9px 14px; } #customize-controls #customize-notifications-area .notice.is-dismissible, #customize-controls .panel-meta > .customize-control-notifications-container .notice.is-dismissible, #customize-controls .customize-section-title > .customize-control-notifications-container .notice.is-dismissible { padding-left: 38px; } #customize-controls #customize-notifications-area .notice + .notice, #customize-controls .panel-meta > .customize-control-notifications-container .notice + .notice, #customize-controls .customize-section-title > .customize-control-notifications-container .notice + .notice { margin-top: 1px; } @keyframes customize-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } #customize-controls .notice.notification-overlay, #customize-controls #customize-notifications-area .notice.notification-overlay { margin: 0; border-right: 0; /* @todo Appropriate styles could be added for notice-error, notice-warning, notice-success, etc */ } #customize-controls .customize-control-notifications-container.has-overlay-notifications { animation: customize-fade-in 0.5s; z-index: 30; } /* Note: Styles for this are also defined in themes.css */ #customize-controls #customize-notifications-area .notice.notification-overlay .notification-message { clear: both; color: #1d2327; font-size: 18px; font-style: normal; margin: 0; padding: 2em 0; text-align: center; width: 100%; display: block; top: 50%; position: relative; } /* Style for custom settings */ /** * Static front page */ #customize-control-show_on_front.has-error { margin-bottom: 0; } #customize-control-show_on_front.has-error .customize-control-notifications-container { margin-top: 12px; } /** * Dropdowns */ .accordion-section .dropdown { float: right; display: block; position: relative; cursor: pointer; } .accordion-section .dropdown-content { overflow: hidden; float: right; min-width: 30px; height: 16px; line-height: 16px; margin-left: 16px; padding: 4px 5px; border: 2px solid #f0f0f1; -webkit-user-select: none; user-select: none; } /* @todo maybe no more used? */ .customize-control .dropdown-arrow { position: absolute; top: 0; bottom: 0; left: 0; width: 20px; background: #f0f0f1; } .customize-control .dropdown-arrow:after { content: "\f140"; content: "\f140" / ''; font: normal 20px/1 dashicons; display: block; padding: 0; text-indent: 0; text-align: center; position: relative; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; color: #2c3338; } .customize-control .dropdown-status { color: #2c3338; background: #f0f0f1; display: none; max-width: 112px; } .customize-control-color .dropdown { margin-left: 5px; margin-bottom: 5px; } .customize-control-color .dropdown .dropdown-content { background-color: #50575e; border: 1px solid rgba(0, 0, 0, 0.15); } .customize-control-color .dropdown:hover .dropdown-content { border-color: rgba(0, 0, 0, 0.25); } /** * iOS can't scroll iframes, * instead it expands the iframe size to match the size of the content */ .ios .wp-full-overlay { position: relative; } .ios #customize-controls .wp-full-overlay-sidebar-content { -webkit-overflow-scrolling: touch; } /* Media controls */ .customize-control .actions .button { margin-top: 12px; } .customize-control-header .actions, .customize-control-header .uploaded { margin-bottom: 18px; } .customize-control-header .uploaded button:not(.random), .customize-control-header .default button:not(.random) { width: 100%; padding: 0; margin: 0; background: none; border: none; color: inherit; cursor: pointer; } .customize-control-header button img { display: block; } .customize-control .attachment-media-view .remove-button, .customize-control .attachment-media-view .default-button, .customize-control .attachment-media-view .upload-button, .customize-control-header button.new, .customize-control-header button.remove { width: auto; height: auto; white-space: normal; } .customize-control .attachment-media-view .upload-button { width: 100%; text-align: center; } .customize-control .attachment-media-view .upload-button.control-focus { width: auto; } .customize-control.customize-control-header .actions .upload-button.button.new { width: 100%; text-align: center; } .customize-control .attachment-media-view .thumbnail, .customize-control-header .current .container { overflow: hidden; } .customize-control .attachment-media-view .placeholder, .customize-control .attachment-media-view .button-add-media, .customize-control-header .placeholder { width: 100%; position: relative; text-align: center; cursor: default; border: 1px dashed #c3c4c7; box-sizing: border-box; padding: 9px 0; line-height: 1.6; } .customize-control .attachment-media-view .button-add-media { cursor: pointer; background-color: #f0f0f1; color: #2c3338; } .customize-control .attachment-media-view .button-add-media:hover { background-color: #fff; } .customize-control .attachment-media-view .button-add-media:focus { background-color: #fff; border-color: #3582c4; border-style: solid; box-shadow: 0 0 0 1px #3582c4; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .customize-control-header .inner { display: none; position: absolute; width: 100%; color: #50575e; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .customize-control-header .inner, .customize-control-header .inner .dashicons { line-height: 20px; top: 8px; } .customize-control-header .list .inner, .customize-control-header .list .inner .dashicons { top: 9px; } .customize-control-header .header-view { position: relative; width: 100%; margin-bottom: 12px; } .customize-control-header .header-view:last-child { margin-bottom: 0; } /* Convoluted, but 'outline' support isn't good enough yet */ .customize-control-header .header-view:after { border: 0; } .customize-control-header .header-view.selected .choice:focus { outline: none; } .customize-control-header .header-view.selected:after { content: ""; position: absolute; height: auto; top: 0; right: 0; bottom: 0; left: 0; border: 4px solid #72aee6; border-radius: 2px; } .customize-control-header .header-view.button.selected { border: 0; } /* Header control: overlay "close" button */ .customize-control-header .uploaded .header-view .close { font-size: 20px; color: #fff; background: #50575e; background: rgba(0, 0, 0, 0.5); position: absolute; top: 10px; right: -999px; z-index: 1; width: 26px; height: 26px; cursor: pointer; } .customize-control-header .header-view:hover .close, .customize-control-header .header-view .close:focus { right: auto; left: 10px; } .customize-control-header .header-view .close:focus { outline: 1px solid #4f94d4; } /* Header control: randomiz(s)er */ .customize-control-header .random.placeholder { cursor: pointer; border-radius: 2px; height: 40px; } .customize-control-header button.random { width: 100%; height: auto; min-height: 40px; white-space: normal; } .customize-control-header button.random .dice { margin-top: 0; } .customize-control-header .placeholder:hover .dice, .customize-control-header .header-view:hover > button.random .dice { animation: dice-color-change 3s infinite; } .button-see-me { animation: bounce .7s 1; transform-origin: center bottom; } @keyframes bounce { from, 20%, 53%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000); transform: translate3d(0,0,0); } 40%, 43% { animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060); transform: translate3d(0, -12px, 0); } 70% { animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060); transform: translate3d(0, -6px, 0); } 90% { transform: translate3d(0,-1px,0); } } .customize-control-header .choice { position: relative; display: block; margin-bottom: 9px; } .customize-control-header .choice:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .customize-control-header .uploaded div:last-child > .choice { margin-bottom: 0; } .customize-control .attachment-media-view .thumbnail-image img, .customize-control-header img { max-width: 100%; } .customize-control .attachment-media-view .remove-button, .customize-control .attachment-media-view .default-button, .customize-control-header .remove { margin-left: 8px; } /* Background position control */ .customize-control-background_position .background-position-control .button-group { display: block; } /** * Code Editor Control and Custom CSS Section * * Modifications to the Section Container to make the textarea full-width and * full-height, if the control is the only control in the section. */ .customize-control-code_editor textarea { width: 100%; font-family: Consolas, Monaco, monospace; font-size: 12px; padding: 6px 8px; tab-size: 2; } .customize-control-code_editor textarea, .customize-control-code_editor .CodeMirror { height: 14em; } #customize-controls .customize-section-description-container.section-meta.customize-info { border-bottom: none; } #sub-accordion-section-custom_css .customize-control-notifications-container { margin-bottom: 15px; } #customize-control-custom_css textarea { display: block; height: 500px; } .customize-section-description-container + #customize-control-custom_css .customize-control-title { margin-right: 12px; } .customize-section-description-container + #customize-control-custom_css:last-child textarea { border-left: 0; border-right: 0; height: calc( 100vh - 185px ); resize: none; } .customize-section-description-container + #customize-control-custom_css:last-child { margin-right: -12px; width: 299px; width: calc( 100% + 24px ); margin-bottom: -12px; } .customize-section-description-container + #customize-control-custom_css:last-child .CodeMirror { height: calc( 100vh - 185px ); } .CodeMirror-lint-tooltip, .CodeMirror-hints { z-index: 500000 !important; } .customize-section-description-container + #customize-control-custom_css:last-child .customize-control-notifications-container { margin-right: 12px; margin-left: 12px; } .theme-browser .theme.active .theme-actions, .wp-customizer .theme-browser .theme .theme-actions { padding: 9px 15px; } .theme-browser .theme:not(.active) .theme-actions { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); } @media screen and (max-width: 640px) { .customize-section-description-container + #customize-control-custom_css:last-child { margin-left: 0; } .customize-section-description-container + #customize-control-custom_css:last-child textarea { height: calc( 100vh - 140px ); } } /** * Themes */ #customize-theme-controls .control-panel-themes { border-bottom: none; } #customize-theme-controls .control-panel-themes > .accordion-section-title:hover, /* Not a focusable element. */ #customize-theme-controls .control-panel-themes > .accordion-section-title { cursor: default; background: #fff; color: #50575e; border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; border-right: none; border-left: none; margin: 0 0 15px; padding: 12px 15px 15px 100px; /* Space for the button */ } #customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover, /* Not a focusable element. */ #customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child { border-top: 0; } #customize-theme-controls .control-section-themes > .accordion-section-title:hover, /* Not a focusable element. */ #customize-theme-controls .control-section-themes > .accordion-section-title { margin: 0 0 15px; } #customize-controls .customize-themes-panel .accordion-section-title:hover, #customize-controls .customize-themes-panel .accordion-section-title { margin: 15px -8px; } #customize-controls .control-section-themes .accordion-section-title, #customize-controls .customize-themes-panel .accordion-section-title { padding-left: 100px; /* Space for the button */ } .control-panel-themes .accordion-section-title span.customize-action, #customize-controls .customize-section-title span.customize-action, #customize-controls .control-section-themes .accordion-section-title span.customize-action, #customize-controls .customize-section-title span.customize-action { font-size: 13px; display: block; font-weight: 400; } #customize-theme-controls .control-panel-themes .accordion-section-title .change-theme { position: absolute; left: 10px; top: 50%; margin-top: -20px; /* Half of 40px button height for vertical centering */ font-weight: 400; } #customize-notifications-area .notification-message button.switch-to-editor { display: block; margin-top: 6px; font-weight: 400; } #customize-theme-controls .control-panel-themes > .accordion-section-title:after { display: none; } .control-panel-themes .customize-themes-full-container { position: fixed; top: 0; right: 0; transition: .18s right ease-in-out; margin: 0 300px 0 0; padding: 71px 0 25px; overflow-y: scroll; width: calc(100% - 300px); height: calc(100% - 96px); background: #f0f0f1; z-index: 20; } @media (prefers-reduced-motion: reduce) { .control-panel-themes .customize-themes-full-container { transition: none; } } @media screen and (min-width: 1670px) { .control-panel-themes .customize-themes-full-container { width: 82%; left: 0; right: initial; } } .modal-open .control-panel-themes .customize-themes-full-container { overflow-y: visible; } /* Animations for opening the themes panel */ #customize-save-button-wrapper, #customize-header-actions .spinner, #customize-header-actions .customize-controls-preview-toggle { transition: .18s margin ease-in-out; } #customize-footer-actions, #customize-footer-actions .collapse-sidebar { bottom: 0; transition: .18s bottom ease-in-out; } .in-themes-panel:not(.animating) #customize-header-actions .spinner, .in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle, .in-themes-panel:not(.animating) #customize-preview, .in-themes-panel:not(.animating) #customize-footer-actions { visibility: hidden; } .wp-full-overlay.in-themes-panel { background: #f0f0f1; /* Prevents a black flash when fading in the panel */ } .in-themes-panel #customize-save-button-wrapper, .in-themes-panel #customize-header-actions .spinner, .in-themes-panel #customize-header-actions .customize-controls-preview-toggle { margin-top: -46px; /* Height of header actions bar */ } .in-themes-panel #customize-footer-actions, .in-themes-panel #customize-footer-actions .collapse-sidebar { bottom: -45px; } /* Don't show the theme count while the panel opens, as it's in the wrong place during the animation */ .in-themes-panel.animating .control-panel-themes .filter-themes-count { display: none; } .in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content { bottom: 0; } .themes-filter-bar .feature-filter-toggle { min-height: 32px; line-height: 2.30769231; } .themes-filter-bar .feature-filter-toggle:before { content: "\f111"; content: "\f111" / ''; margin: 0 0 0 5px; font: normal 16px/1 dashicons; vertical-align: text-bottom; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .themes-filter-bar .feature-filter-toggle.open { background: #f0f0f1; border-color: #8c8f94; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); } .themes-filter-bar .feature-filter-toggle .filter-count-filters { display: none; } .filter-drawer { box-sizing: border-box; width: 100%; position: absolute; top: 46px; right: 0; padding: 25px 25px 25px 0; border-top: 0; margin: 0; background: #f0f0f1; border-bottom: 1px solid #dcdcde; } .filter-drawer .filter-group { margin: 0 0 0 25px; width: calc( (100% - 75px) / 3); min-width: 200px; max-width: 320px; } /* Adds a delay before fading in to avoid it "jumping" */ @keyframes themes-fade-in { 0% { opacity: 0; } 50% { opacity: 0; } 100% { opacity: 1; } } .control-panel-themes .customize-themes-full-container.animate { animation: .6s themes-fade-in 1; } .in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count { animation: .6s themes-fade-in 1; } .control-panel-themes .filter-themes-count .themes-displayed { font-weight: 600; color: #50575e; } .customize-themes-notifications { margin: 0; } .control-panel-themes .customize-themes-notifications .notice { margin: 0 0 25px; } .customize-themes-full-container .customize-themes-section { display: none !important; /* There is unknown JS that perpetually tries to show all theme sections when more items are added. */ overflow: hidden; } .customize-themes-full-container .customize-themes-section.current-section { display: list-item !important; /* There is unknown JS that perpetually tries to show all theme sections when more items are added. */ } .control-section .customize-section-text-before { padding: 0 15px 8px 0; margin: 15px 0 0; line-height: 16px; border-bottom: 1px solid #dcdcde; color: #50575e; } .control-panel-themes .customize-themes-section-title { width: 100%; background: #fff; box-shadow: none; outline: none; border-top: none; border-bottom: 1px solid #dcdcde; border-right: 4px solid #fff; border-left: none; cursor: pointer; padding: 10px 15px; position: relative; text-align: right; font-size: 14px; font-weight: 600; color: #50575e; text-shadow: none; } .control-panel-themes #accordion-section-installed_themes { border-top: 1px solid #dcdcde; } .control-panel-themes .theme-section { margin: 0; position: relative; } .control-panel-themes .customize-themes-section-title:focus, .control-panel-themes .customize-themes-section-title:hover { background: #f6f7f7; } .customize-themes-section-title:not(.selected):after { content: ""; display: block; position: absolute; top: 9px; left: 15px; width: 18px; height: 18px; border-radius: 100%; border: 1px solid #c3c4c7; background: #fff; } .control-panel-themes .theme-section .customize-themes-section-title.selected:after { content: "\f147"; content: "\f147" / ''; font: 16px/1 dashicons; box-sizing: border-box; width: 20px; height: 20px; padding: 3px 1px 1px 3px; /* Re-align the icon to the smaller grid */ border-radius: 100%; position: absolute; top: 9px; left: 15px; color: #fff; } #customize-theme-controls .themes.accordion-section-content { position: relative; right: 0; padding: 0; width: 100%; } .loading .customize-themes-section .spinner { display: block; visibility: visible; position: relative; clear: both; width: 20px; height: 20px; right: calc(50% - 10px); float: none; margin-top: 50px; } .customize-themes-section .no-themes, .customize-themes-section .no-themes-local { display: none; } .themes-section-installed_themes .theme .notice-success:not(.updated-message) { display: none; /* Hide "installed" notice on installed themes tab. */ } .customize-control-theme .theme { width: 100%; margin: 0; border: 1px solid #dcdcde; background: #fff; } .customize-control-theme .theme .theme-name, .customize-control-theme .theme .theme-actions { background: #fff; border: none; } .customize-control.customize-control-theme { /* override most properties on .customize-control */ box-sizing: border-box; width: 25%; max-width: 600px; /* Max. screenshot size / 2 */ margin: 0 0 25px 25px; padding: 0; clear: none; } /* 5 columns above 2100px */ @media screen and (min-width: 2101px) { .customize-control.customize-control-theme { width: calc( ( 100% - 125px ) / 5 - 1px ); /* 1px offset accounts for browser rounding, typical all grids */ } } /* 4 columns up to 2100px */ @media screen and (min-width: 1601px) and (max-width: 2100px) { .customize-control.customize-control-theme { width: calc( ( 100% - 100px ) / 4 - 1px ); } } /* 3 columns up to 1600px */ @media screen and (min-width: 1201px) and (max-width: 1600px) { .customize-control.customize-control-theme { width: calc( ( 100% - 75px ) / 3 - 1px ); } } /* 2 columns up to 1200px */ @media screen and (min-width: 851px) and (max-width: 1200px) { .customize-control.customize-control-theme { width: calc( ( 100% - 50px ) / 2 - 1px ); } } /* 1 column up to 850 px */ @media screen and (max-width: 850px) { .customize-control.customize-control-theme { width: 100%; } } .wp-customizer .theme-browser .themes { padding: 0 25px 25px 0; transition: .18s margin-top linear; } .wp-customizer .theme-browser .theme .theme-actions { opacity: 1; } #customize-controls h3.theme-name { font-size: 15px; } #customize-controls .theme-overlay .theme-name { font-size: 32px; } .customize-preview-header.themes-filter-bar { position: fixed; top: 0; right: 300px; width: calc(100% - 300px); height: 46px; background: #f0f0f1; z-index: 10; padding: 6px 25px; box-sizing: border-box; border-bottom: 1px solid #dcdcde; } .customize-preview-header.themes-filter-bar, .customize-preview-header.themes-filter-bar .search-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .customize-preview-header.themes-filter-bar .search-form-input { position: relative; } .customize-preview-header .filter-themes-wrapper { display: grid; align-items: center; gap: 10px; grid-template-columns: auto 1fr; } .customize-preview-header .filter-themes-wrapper .filter-themes-count { justify-self: end; } @media screen and (min-width: 1670px) { .customize-preview-header.themes-filter-bar { width: 82%; left: 0; right: initial; } } .themes-filter-bar .themes-filter-container { margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; } .themes-filter-bar .wp-filter-search { padding: 0 30px 0 10px; max-width: 100%; width: 40%; min-width: 300px; height: 32px; min-height: 32px; /* Override global 40px min-height for compact bar */ margin: 1px 0; top: 0; right: 0; } /* Unstick the filter bar on short windows/screens. This breakpoint is based on the current length of .org feature filters assuming translations do not wrap lines. */ @media screen and (max-height: 540px), screen and (max-width: 1018px) { .customize-preview-header.themes-filter-bar { position: relative; right: 0; width: 100%; margin: 0 0 25px; } .filter-drawer { top: 46px; } .wp-customizer .theme-browser .themes { padding: 0 25px 25px 0; overflow: hidden; } .control-panel-themes .customize-themes-full-container { margin-top: 0; padding: 0; height: 100%; width: calc(100% - 300px); } } @media screen and (max-width: 1018px) { .filter-drawer .filter-group { width: calc( (100% - 50px) / 2); } } @media screen and (max-width: 960px) { .customize-preview-header.themes-filter-bar { height: 96px; } } @media screen and (max-width: 900px) { .themes-filter-bar .wp-filter-search { width: 100%; margin: 0; min-width: 200px; } .customize-preview-header.themes-filter-bar, .customize-preview-header.themes-filter-bar .search-form .themes-filter-bar .themes-filter-container { display: grid; gap: 4px; } .customize-preview-header.themes-filter-bar .search-form-input { display: flex; flex-grow: 1; } .filter-drawer { top: 86px; } .control-panel-themes .filter-themes-count { float: right; } } @media screen and (max-width: 792px) { .filter-drawer .filter-group { width: calc( 100% - 25px); } } .control-panel-themes .customize-themes-mobile-back { display: none; } /* Mobile - toggle between themes and filters */ @media screen and (max-width: 600px) { .filter-drawer { top: 132px; } .wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes { display: block; float: left; } .control-panel-themes .customize-themes-full-container { width: 100%; margin: 0; padding-top: 46px; height: calc(100% - 46px); z-index: 1; display: none; } .showing-themes .control-panel-themes .customize-themes-full-container { display: block; } .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back { display: block; position: fixed; top: 0; right: 0; background: #f0f0f1; color: #3c434a; border-radius: 0; box-shadow: none; border: none; height: 46px; width: 100%; z-index: 10; text-align: right; text-shadow: none; border-bottom: 1px solid #dcdcde; border-right: 4px solid transparent; margin: 0; padding: 0; font-size: 0; overflow: hidden; } .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before { right: 0; top: 0; height: 46px; width: 26px; display: block; line-height: 2.3; padding: 0 8px; border-left: 1px solid #dcdcde; } .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover, .wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus { background: #f6f7f7; box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .showing-themes #customize-header-actions { display: none; } #customize-controls { width: 100%; } } /* Details View */ .wp-customizer .theme-overlay { display: none; } .wp-customizer.modal-open .theme-overlay { position: fixed; right: 0; top: 0; left: 0; bottom: 0; z-index: 109; } /* Avoid a z-index war by resetting elements that should be under the overlay. This is likely required because of the way that sections and panels are positioned. */ .wp-customizer.modal-open #customize-header-actions, .wp-customizer.modal-open .control-panel-themes .filter-themes-count, .wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after { z-index: -1; } .wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content { overflow: visible; } .wp-customizer .theme-overlay .theme-backdrop { background: rgba(240, 240, 241, 0.75); position: fixed; z-index: 110; } .wp-customizer .theme-overlay .star-rating { float: right; margin-left: 8px; } .wp-customizer .theme-rating .num-ratings { line-height: 20px; } .wp-customizer .theme-overlay .theme-wrap { right: 90px; left: 90px; top: 45px; bottom: 45px; z-index: 120; } .wp-customizer .theme-overlay .theme-actions { text-align: left; /* Because there're only one or two actions, match the UI pattern of media modals and right-align the action. */ padding: 10px 25px 5px; background: #f0f0f1; border-top: 1px solid #dcdcde; } .wp-customizer .theme-overlay .theme-actions .theme-install.preview { margin-right: 8px; } .modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content { overflow: visible; /* Prevent the top-level Customizer controls from becoming visible when elements on the right of the details modal are focused. */ } .wp-customizer .theme-header { background: #f0f0f1; } .wp-customizer .theme-overlay .theme-header button, .wp-customizer .theme-overlay .theme-header .close:before { color: #3c434a; } .wp-customizer .theme-overlay .theme-header .close:focus, .wp-customizer .theme-overlay .theme-header .close:hover, .wp-customizer .theme-overlay .theme-header .right:focus, .wp-customizer .theme-overlay .theme-header .right:hover, .wp-customizer .theme-overlay .theme-header .left:focus, .wp-customizer .theme-overlay .theme-header .left:hover { background: #fff; } .wp-customizer .theme-overlay .theme-header .close:focus:before, .wp-customizer .theme-overlay .theme-header .close:hover:before { color: var(--wp-admin-theme-color); } .wp-customizer .theme-overlay .theme-header button.disabled, .wp-customizer .theme-overlay .theme-header button.disabled:hover, .wp-customizer .theme-overlay .theme-header button.disabled:focus { border-bottom: none; background: transparent; color: #c3c4c7; } /* Small Screens */ @media (max-width: 850px), (max-height: 472px) { .wp-customizer .theme-overlay .theme-wrap { right: 0; left: 0; top: 0; bottom: 0; } .wp-customizer .theme-browser .themes { padding-left: 25px; } } /* Handle cheaters. */ body.cheatin { font-size: medium; height: auto; background: #fff; border: 1px solid #c3c4c7; margin: 50px auto 2em; padding: 1em 2em; max-width: 700px; min-width: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } body.cheatin h1 { border-bottom: 1px solid #dcdcde; clear: both; color: #50575e; font-size: 24px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 30px 0 0; padding: 0 0 7px; } body.cheatin p { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } /** * Widgets and Menus common styles */ /* higher specificity than .wp-core-ui .button */ #customize-theme-controls .add-new-widget, #customize-theme-controls .add-new-menu-item { cursor: pointer; float: left; margin: 0 10px 0 0; transition: all 0.2s; -webkit-user-select: none; user-select: none; outline: none; } .reordering .add-new-widget, .reordering .add-new-menu-item { opacity: 0.2; pointer-events: none; cursor: not-allowed; /* doesn't work in conjunction with pointer-events */ } .add-new-widget:before, .add-new-menu-item:before, #available-menu-items .new-content-item .add-content:before { content: "\f132"; content: "\f132" / ''; display: inline-block; position: relative; right: -2px; top: 0; font: normal 20px/1 dashicons; vertical-align: middle; transition: all 0.2s; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Reordering */ .reorder-toggle { float: left; padding: 5px 8px; text-decoration: none; cursor: pointer; outline: none; } .reorder, .reordering .reorder-done { display: block; padding: 5px 8px; } .reorder-done, .reordering .reorder { display: none; } .widget-reorder-nav span, .menu-item-reorder-nav button { position: relative; overflow: hidden; float: right; display: block; width: 33px; /* was 42px for mobile */ height: 43px; color: #8c8f94; text-indent: -9999px; cursor: pointer; outline: none; } .menu-item-reorder-nav button { width: 30px; height: 40px; background: transparent; border: none; box-shadow: none; } .widget-reorder-nav span:before, .menu-item-reorder-nav button:before { display: inline-block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; font: normal 20px/43px dashicons; text-align: center; text-indent: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .widget-reorder-nav span:hover, .widget-reorder-nav span:focus, .menu-item-reorder-nav button:hover, .menu-item-reorder-nav button:focus { color: #1d2327; background: #f0f0f1; } .move-widget-down:before, .menus-move-down:before { content: "\f347"; content: "\f347" / ''; } .move-widget-up:before, .menus-move-up:before { content: "\f343"; content: "\f343" / ''; } #customize-theme-controls .first-widget .move-widget-up, #customize-theme-controls .last-widget .move-widget-down, .move-up-disabled .menus-move-up, .move-down-disabled .menus-move-down, .move-right-disabled .menus-move-right, .move-left-disabled .menus-move-left { color: #dcdcde; background-color: #fff; cursor: default; pointer-events: none; } /** * New widget and Add-menu-items modes and panels */ .wp-full-overlay-main { left: auto; /* this overrides a right: 0; which causes the preview to resize, I'd rather have it go off screen at the normal size. */ width: 100%; } body.adding-widget .add-new-widget, body.adding-widget .add-new-widget:hover, .adding-menu-items .add-new-menu-item, .adding-menu-items .add-new-menu-item:hover, .add-menu-toggle.open, .add-menu-toggle.open:hover { background: #f0f0f1; border-color: #8c8f94; color: #2c3338; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); } body.adding-widget .add-new-widget:before, .adding-menu-items .add-new-menu-item:before, #accordion-section-add_menu .add-new-menu-item.open:before { transform: rotate(-45deg); } #available-widgets, #available-menu-items { position: absolute; top: 0; bottom: 0; right: -301px; visibility: hidden; overflow-x: hidden; overflow-y: auto; width: 300px; margin: 0; z-index: 4; background: #f0f0f1; transition: right .18s; border-left: 1px solid #dcdcde; } #available-widgets .accordion-section-title, #available-menu-items .accordion-section-title { z-index: 2; } #available-widgets .customize-section-title, #available-menu-items .customize-section-title { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } #available-widgets .customize-section-title button, #available-menu-items .customize-section-title button { display: none; } #available-widgets-list { top: 82px; position: absolute; overflow: auto; bottom: 0; width: 100%; border-top: 1px solid #dcdcde; } .no-widgets-found #available-widgets-list { border-top: none; } #available-widgets-filter { position: fixed; top: 0; z-index: 1; width: 300px; background: #f0f0f1; } /* search field container */ #available-widgets-filter, #available-menu-items-search .accordion-section-title { padding: 13px 15px; box-sizing: border-box; } #available-widgets-filter input, #available-menu-items-search input { width: 100%; min-height: 40px; margin: 1px 0; padding: 0 30px; } #available-widgets-filter input::-ms-clear, #available-menu-items-search input::-ms-clear { display: none; /* remove the "x" in IE, which conflicts with the "x" icon on button.clear-results */ } #available-menu-items-search .search-icon, #available-widgets-filter .search-icon { display: block; position: absolute; bottom: 19px; /* 13 container padding +1 input margin +1 input border +4 centering in 40px input */ right: 16px; width: 30px; height: 30px; line-height: 2.1; text-align: center; color: #646970; } #available-widgets-filter .clear-results, #available-menu-items-search .accordion-section-title .clear-results { position: absolute; top: 40px; /* 13 container padding +1 input margin +1 input border +4 centering in 40px input */ left: 16px; width: 30px; height: 30px; padding: 0; border: 0; cursor: pointer; background: none; color: #d63638; text-decoration: none; outline: 0; } #available-widgets-filter .clear-results, #available-menu-items-search .clear-results, #available-menu-items-search.loading .clear-results.is-visible { display: none; } #available-widgets-filter .clear-results.is-visible, #available-menu-items-search .clear-results.is-visible { display: block; } #available-widgets-filter .clear-results:before, #available-menu-items-search .clear-results:before { content: "\f335"; content: "\f335" / ''; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #available-widgets-filter .clear-results:hover, #available-widgets-filter .clear-results:focus, #available-menu-items-search .clear-results:hover, #available-menu-items-search .clear-results:focus { color: #d63638; } #available-widgets-filter .clear-results:focus, #available-menu-items-search .clear-results:focus { border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #available-menu-items-search .search-icon:after, #available-widgets-filter .search-icon:after, .themes-filter-bar .search-icon:after { content: "\f179"; font: normal 20px/1 dashicons; vertical-align: middle; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .themes-filter-bar .search-icon { position: absolute; top: 2px; right: 2px; z-index: 1; color: #646970; height: 30px; width: 30px; line-height: 2; text-align: center; } .no-widgets-found-message { display: none; margin: 0; padding: 0 15px; line-height: inherit; } .no-widgets-found .no-widgets-found-message { display: block; } #available-widgets .widget-top, #available-widgets .widget-top:hover, #available-menu-items .item-top, #available-menu-items .item-top:hover { border: none; background: transparent; box-shadow: none; } #available-widgets .widget-tpl, #available-menu-items .item-tpl { position: relative; padding: 15px 60px 15px 15px; background: #fff; border-bottom: 1px solid #dcdcde; border-right: 4px solid #fff; transition: .15s color ease-in-out, .15s background-color ease-in-out, .15s border-color ease-in-out; cursor: pointer; display: none; } #available-widgets .widget, #available-menu-items .item { position: static; } /* Responsive */ .customize-controls-preview-toggle { display: none; } @media only screen and (max-width: 782px) { .wp-customizer .theme:not(.active):hover .theme-actions, .wp-customizer .theme:not(.active):focus .theme-actions { display: block; } .wp-customizer .theme-browser .theme.active .theme-name span { display: inline; } .customize-control-header button.random .dice { margin-top: 0; } .customize-control-radio .customize-inside-control-row, .customize-control-checkbox .customize-inside-control-row, .customize-control-nav_menu_auto_add .customize-inside-control-row { margin-right: 32px; } .customize-control-radio input, .customize-control-checkbox input, .customize-control-nav_menu_auto_add input { margin-right: -32px; } .customize-control input[type="radio"] + label + br, .customize-control input[type="checkbox"] + label + br { line-height: 2.5; /* For widgets checkboxes */ } .customize-control .date-time-fields select { height: 39px; } .date-time-fields .date-input.month { width: 79px; } .date-time-fields .date-input.day, .date-time-fields .date-input.hour, .date-time-fields .date-input.minute { width: 55px; } .date-time-fields .date-input.year { width: 80px; } #customize-control-changeset_preview_link a { bottom: 16px; } .media-widget-control .media-widget-buttons .button.edit-media, .media-widget-control .media-widget-buttons .button.change-media, .media-widget-control .media-widget-buttons .button.select-media { margin-top: 12px; } .customize-preview-header.themes-filter-bar .search-icon { top: 6px; } } @media screen and (max-width: 1200px) { .outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main, .adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main { right: 67%; } } @media screen and (max-width: 640px) { /* when the sidebar is collapsed and switching to responsive view, bring it back see ticket #35220 */ .wp-full-overlay.collapsed #customize-controls { margin-right: 0; } .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { bottom: 0; } .customize-controls-preview-toggle { display: block; position: absolute; top: 0; right: 48px; line-height: 2.6; font-size: 14px; padding: 0 12px 4px; margin: 0; height: 45px; background: #f0f0f1; border: 0; border-left: 1px solid #dcdcde; border-top: 4px solid #f0f0f1; color: #50575e; cursor: pointer; transition: color .1s ease-in-out, background .1s ease-in-out; } #customize-footer-actions, /*#customize-preview,*/ .customize-controls-preview-toggle .controls, .preview-only .wp-full-overlay-sidebar-content, .preview-only .customize-controls-preview-toggle .preview { display: none; } .preview-only #customize-save-button-wrapper { margin-top: -46px; } .customize-controls-preview-toggle .preview:before, .customize-controls-preview-toggle .controls:before { font: normal 20px/1 dashicons; content: "\f177"; content: "\f177" / ''; position: relative; top: 4px; margin-left: 6px; } .customize-controls-preview-toggle .controls:before { content: "\f540"; content: "\f540" / ''; } .preview-only #customize-controls { height: 45px; } .preview-only #customize-preview, .preview-only .customize-controls-preview-toggle .controls { display: block; } .wp-core-ui.wp-customizer .button { padding: 0 14px; line-height: 2.14285714; /* 30px */ font-size: 14px; vertical-align: middle; } .customize-control .attachment-media-view .upload-button { text-align: center; } #customize-control-changeset_status .customize-inside-control-row { padding-top: 15px; } body.adding-widget div#available-widgets, body.adding-menu-items div#available-menu-items, body.outer-section-open div#customize-sidebar-outer-content { width: 100%; } #available-widgets .customize-section-title, #available-menu-items .customize-section-title { border: 0; clip-path: none; height: inherit; margin: 0; overflow: hidden; padding: 0; width: auto; position: static; } #available-widgets .customize-section-title button, #available-menu-items .customize-section-title button { display: block; } #available-widgets .customize-section-back, #available-menu-items .customize-section-back { height: 69px; } #available-widgets .customize-section-title h3, #available-menu-items .customize-section-title h3 { font-size: 20px; font-weight: 200; padding: 9px 14px 12px 10px; margin: 0; line-height: 24px; color: #50575e; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #available-widgets .customize-section-title .customize-action, #available-menu-items .customize-section-title .customize-action { font-size: 13px; display: block; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } #available-widgets-filter { position: relative; width: 100%; height: auto; } #available-widgets-list { top: 152px; } #available-menu-items-search .clear-results { top: 40px; left: 16px; } .reorder, .reordering .reorder-done { padding: 8px; } } @media screen and (max-width: 600px) { .wp-full-overlay.expanded { margin-right: 0; } body.adding-widget div#available-widgets, body.adding-menu-items div#available-menu-items, body.outer-section-open div#customize-sidebar-outer-content { top: 46px; z-index: 10; } body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content { right: -100%; } body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { right: 0; } } css/themes-rtl.css000064400000126033152213653150010142 0ustar00/*! This file is auto-generated */ /*------------------------------------------------------------------------------ 16.0 - Themes ------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------ 16.1 - Manage Themes ------------------------------------------------------------------------------*/ .themes-php { overflow-y: scroll; } .themes-php #adminmenuwrap { z-index: 10001; /* above Theme Overlay */ } body.js .theme-browser.search-loading { display: none; } .theme-browser .themes { clear: both; } .themes-php .wrap h1 .button { margin-right: 20px; } /* Search form */ .themes-php .search-form { display: inline-flex; align-items: center; position: relative; top: 0; gap: .5rem; width: 100%; justify-content: end; } .themes-php .wp-filter-search { position: relative; margin: 0; width: 280px; } /* Position admin messages */ .theme .notice, .theme .notice.is-dismissible { right: 0; margin: 0; position: absolute; left: 0; top: 0; } /** * Main theme element * (has flexible margins) */ .theme-browser .theme { cursor: pointer; float: right; margin: 0 0 4% 4%; position: relative; width: 30.6%; background: #ffffff; border: 1px solid rgb(0, 0, 0, 0.1); border-radius: 8px; box-sizing: border-box; overflow: hidden; } .theme-browser .theme:nth-child(3n) { margin-left: 0; } .theme-browser .theme:hover, .theme-browser .theme.focus { cursor: pointer; } .theme-browser .theme .theme-name { font-size: 15px; font-weight: 600; height: 18px; margin: 0; padding: 16px 15px; border-top: 1px solid rgb(0, 0, 0, 0.1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #ffffff; } /* Activate and Customize buttons, shown on hover and focus */ .theme-browser .theme .theme-actions { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; opacity: 0; transition: opacity 0.1s ease-in-out; height: auto; background: rgba(246, 247, 247, 0.7); border-right: 1px solid rgba(0, 0, 0, 0.05); } .theme-browser .theme:hover .theme-actions, .theme-browser .theme.focus .theme-actions { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; opacity: 1; } .theme-browser .theme .theme-actions .button-primary { margin-left: 3px; } /* Use compact size for space-constrained theme cards */ .theme-browser .theme .theme-actions .button.updated-message, .theme-browser .theme .theme-actions .button.updating-message, .theme-browser .theme .theme-actions .button { float: none; margin-right: 3px; min-height: 32px; line-height: 2.30769231; /* 30px for 32px min-height */ padding: 0 12px; } .theme-browser .theme .theme-actions .button.updated-message::before, .theme-browser .theme .theme-actions .button.updating-message::before { line-height: 1; vertical-align: text-bottom; position: relative; top: 2px; } /* Secondary buttons need white background for visibility on semi-transparent overlay */ .theme-browser .theme .theme-actions .button:not(.button-primary) { background: #fff; } .theme-browser .theme .theme-actions .button:not(.button-primary):hover { background: #f0f0f0; } .theme-browser .theme .theme-actions .button:not(.button-primary):focus { background: #fff; } /** * Theme Screenshot * * Has a fixed aspect ratio of 1.5 to 1 regardless of screenshot size * It is also responsive. */ .theme-browser .theme .theme-screenshot { display: block; overflow: hidden; position: relative; -webkit-backface-visibility: hidden; /* Prevents flicker of the screenshot on hover. */ transition: opacity 0.2s ease-in-out; } .theme-browser .theme .theme-screenshot:after { content: ""; display: block; padding-top: 66.66666%; /* using a 3/2 aspect ratio */ } .theme-browser .theme .theme-screenshot img { height: auto; position: absolute; right: 0; top: 0; width: 100%; transition: opacity 0.2s ease-in-out; } .theme-browser .theme:hover .theme-screenshot, .theme-browser .theme.focus .theme-screenshot { background: #fff; } .theme-browser.rendered .theme:hover .theme-screenshot img, .theme-browser.rendered .theme.focus .theme-screenshot img { opacity: 0.4; } .theme-browser .theme .more-details { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; opacity: 0; position: absolute; top: 35%; left: 20%; right: 20%; width: 60%; background: #1d2327; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 15px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); -webkit-font-smoothing: antialiased; font-weight: 600; padding: 15px 12px; text-align: center; border-radius: 3px; border: none; transition: opacity 0.1s ease-in-out; cursor: pointer; } .theme-browser .theme .more-details:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); } .theme-browser .theme.focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .theme-browser .theme.focus .more-details { opacity: 1; } /* Current theme needs to have its action always on view */ .theme-browser .theme.active.focus .theme-actions { display: block; } .theme-browser.rendered .theme:hover .more-details, .theme-browser.rendered .theme.focus .more-details { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; opacity: 1; } /** * The currently active theme */ .theme-browser .theme.active .theme-name { background: #1d2327; color: #fff; padding-left: 115px; font-weight: 300; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5); } .theme-browser .customize-control .theme.active .theme-name { padding-left: 15px; } .theme-browser .theme.active .theme-name span { font-weight: 600; } .theme-browser .theme.active .theme-actions { background: transparent; border-right: none; opacity: 1; } .theme-browser .theme.active .theme-actions .button-primary { border-color: #fff; } .theme-id-container { position: relative; } .theme-browser .theme.active .theme-actions, .theme-browser .theme .theme-actions { position: absolute; top: 50%; transform: translateY(-50%); left: 0; padding: 9px 12px; } .theme-browser .theme:not(.active) .theme-actions { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1); } .theme-browser .theme.active .theme-actions .button-primary { margin-left: 0; } /* Active theme secondary buttons need white background for visibility on dark overlay */ .theme-browser .theme.active .theme-actions .button:not(.button-primary) { background: #fff; } .theme-browser .theme.active .theme-actions .button:not(.button-primary):hover { background: #f0f0f0; } .theme-browser .theme.active .theme-actions .button:not(.button-primary):focus { background: #fff; } .theme-browser .theme .theme-author { background: #1d2327; color: #f0f0f1; display: none; font-size: 14px; margin: 0 10px; padding: 5px 10px; position: absolute; bottom: 56px; } .theme-browser .theme.display-author .theme-author { display: block; } .theme-browser .theme.display-author .theme-author a { color: inherit; } /** * Add new theme */ .theme-browser .theme.add-new-theme { background: transparent; border: none; overflow: visible; } .theme-browser .theme.add-new-theme a { text-decoration: none; display: block; position: relative; z-index: 1; } .theme-browser .theme.add-new-theme a:after { display: block; content: ""; background: transparent; background: rgba(0, 0, 0, 0); position: absolute; top: 0; right: 0; left: 0; bottom: 0; padding: 0; text-shadow: none; border: 5px dashed #dcdcde; border: 5px dashed rgba(0, 0, 0, 0.1); box-sizing: border-box; } .theme-browser .theme.add-new-theme span:after { background: #dcdcde; background: rgba(140, 143, 148, 0.1); border-radius: 50%; display: inline-block; content: "\f132"; content: "\f132" / ''; -webkit-font-smoothing: antialiased; font: normal 74px/115px dashicons; width: 100px; height: 100px; vertical-align: middle; text-align: center; color: #8c8f94; position: absolute; top: 30%; right: 50%; margin-right: -50px; text-indent: -4px; padding: 0; text-shadow: none; z-index: 4; } .rtl .theme-browser .theme.add-new-theme span:after { text-indent: 4px; } .theme-browser .theme.add-new-theme a:hover .theme-screenshot, .theme-browser .theme.add-new-theme a:focus .theme-screenshot { background: none; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { background: #fff; color: #2271b1; } .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { border-color: transparent; color: #fff; background: #2271b1; content: ""; } .theme-browser .theme.add-new-theme .theme-name { background: none; border: none; text-align: center; font-weight: 400; position: relative; top: 0; margin-top: -18px; padding-top: 0; padding-bottom: 48px; } .theme-browser .theme.add-new-theme a:hover .theme-name, .theme-browser .theme.add-new-theme a:focus .theme-name { color: #fff; z-index: 2; } /** * Theme Overlay * Shown when clicking a theme */ .theme-overlay .theme-backdrop { position: absolute; right: -20px; left: 0; top: 0; bottom: 0; background: #f0f0f1; background: rgba(240, 240, 241, 0.9); z-index: 10000; /* Over WP Pointers. */ min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)); } .theme-overlay .theme-header { position: absolute; top: 0; right: 0; left: 0; height: 48px; border-bottom: 1px solid #dcdcde; } .theme-overlay .theme-header button { padding: 0; } .theme-overlay .theme-header .close { cursor: pointer; height: 48px; width: 50px; text-align: center; float: left; border: 0; border-right: 1px solid #dcdcde; background-color: transparent; transition: color .1s ease-in-out, background .1s ease-in-out; } .theme-overlay .theme-header .close:before { font: normal 22px/50px dashicons !important; color: #787c82; display: inline-block; content: "\f335"; content: "\f335" / ''; font-weight: 300; } /* Left and right navigation */ .theme-overlay .theme-header .right, .theme-overlay .theme-header .left { cursor: pointer; color: #787c82; background-color: transparent; height: 48px; width: 54px; float: right; text-align: center; border: 0; border-left: 1px solid #dcdcde; transition: color .1s ease-in-out, background .1s ease-in-out; } .theme-overlay .theme-header .close:focus, .theme-overlay .theme-header .close:hover, .theme-overlay .theme-header .right:focus, .theme-overlay .theme-header .right:hover, .theme-overlay .theme-header .left:focus, .theme-overlay .theme-header .left:hover { background: #dcdcde; border-color: #c3c4c7; color: #000; } .theme-overlay .theme-header .close:focus:before, .theme-overlay .theme-header .close:hover:before { color: #000; } .theme-overlay .theme-header .close:focus, .theme-overlay .theme-header .right:focus, .theme-overlay .theme-header .left:focus { box-shadow: none; outline: none; } .theme-overlay .theme-header .left.disabled, .theme-overlay .theme-header .right.disabled, .theme-overlay .theme-header .left.disabled:hover, .theme-overlay .theme-header .right.disabled:hover { color: #c3c4c7; background: inherit; cursor: inherit; } .theme-overlay .theme-header .right:before, .theme-overlay .theme-header .left:before { font: normal 20px/50px dashicons !important; display: inline; font-weight: 300; } .theme-overlay .theme-header .left:before { content: "\f345"; content: "\f341" / ''; } .theme-overlay .theme-header .right:before { content: "\f341"; content: "\f345" / ''; } .theme-overlay .theme-wrap { clear: both; position: fixed; top: 9%; right: 190px; left: 30px; bottom: 3%; background: #fff; box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1); z-index: 10000; /* Over WP Pointers. */ box-sizing: border-box; -webkit-overflow-scrolling: touch; } body.folded .theme-browser ~ .theme-overlay .theme-wrap { right: 70px; } .theme-overlay .theme-about { position: absolute; top: 49px; bottom: 57px; right: 0; left: 0; overflow: auto; padding: 2% 4%; } .theme-overlay .theme-actions { position: absolute; text-align: center; bottom: 0; right: 0; left: 0; padding: 10px 25px 5px; background: #f6f7f7; z-index: 30; box-sizing: border-box; border-top: 1px solid #f0f0f1; display: flex; justify-content: center; gap: 5px; } .theme-overlay .theme-actions .button { margin-bottom: 5px; } /* Hide-if-customize for items we can't add classes to */ .customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"], .customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"] { display: none; } .broken-themes a.delete-theme, .theme-overlay .theme-actions .delete-theme { color: #b32d2e; text-decoration: none; border-color: transparent; box-shadow: none; background: transparent; } .broken-themes a.delete-theme:hover, .broken-themes a.delete-theme:focus, .theme-overlay .theme-actions .delete-theme:hover, .theme-overlay .theme-actions .delete-theme:focus { background: #b32d2e; color: #fff; border-color: #b32d2e; box-shadow: 0 0 0 1px #b32d2e; } .theme-overlay .theme-actions .active-theme, .theme-overlay.active .theme-actions .inactive-theme { display: none; } .theme-overlay .theme-actions .inactive-theme, .theme-overlay.active .theme-actions .active-theme { display: block; } /** * Theme Screenshots gallery */ .theme-overlay .theme-screenshots { float: right; margin: 0 0 0 30px; width: 55%; max-width: 1200px; /* Recommended theme screenshot width, set here to avoid stretching */ text-align: center; } /* First screenshot, shown big */ .theme-overlay .screenshot { border: 1px solid #fff; box-sizing: border-box; overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); } .theme-overlay .screenshot:after { content: ""; display: block; padding-top: 75%; /* using a 4/3 aspect ratio */ } .theme-overlay .screenshot img { height: auto; position: absolute; right: 0; top: 0; width: 100%; } /* Handles old 300px screenshots */ .theme-overlay.small-screenshot .theme-screenshots { position: absolute; width: 302px; } .theme-overlay.small-screenshot .theme-info { margin-right: 350px; width: auto; } /* Other screenshots, shown small and square */ .theme-overlay .screenshot.thumb { background: #c3c4c7; border: 1px solid #f0f0f1; float: none; display: inline-block; margin: 10px 5px 0; width: 140px; height: 80px; cursor: pointer; } .theme-overlay .screenshot.thumb:after { content: ""; display: block; padding-top: 100%; /* using a 1/1 aspect ratio */ } .theme-overlay .screenshot.thumb img { cursor: pointer; height: auto; position: absolute; right: 0; top: 0; width: 100%; height: auto; } .theme-overlay .screenshot.selected { background: transparent; border: 2px solid #72aee6; } .theme-overlay .screenshot.selected img { opacity: 0.8; } /* No screenshot placeholder */ .theme-browser .theme .theme-screenshot.blank, .theme-overlay .screenshot.blank { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=); } /** * Theme heading information */ .theme-overlay .theme-info { width: 40%; float: right; } .theme-overlay .current-label { background: #2c3338; color: #fff; font-size: 11px; display: inline-block; padding: 2px 8px; border-radius: 2px; margin: 0 0 -10px; -webkit-user-select: none; user-select: none; } .theme-overlay .theme-name { color: #1d2327; font-size: 32px; font-weight: 100; margin: 10px 0 0; line-height: 1.3; word-wrap: break-word; overflow-wrap: break-word; } .theme-overlay .theme-version { color: #646970; font-size: 13px; font-weight: 400; float: none; display: inline-block; margin-right: 10px; } .theme-overlay .theme-author { margin: 15px 0 25px; color: #646970; font-size: 16px; font-weight: 400; line-height: inherit; } .theme-overlay .toggle-auto-update { /* Better align spin icon and text. */ display: inline-flex; align-items: center; /* Prevents content after the auto-update toggler from jumping down and up. */ min-height: 20px; /* Same height as the spinning dashicon. */ vertical-align: top; } .theme-overlay .theme-autoupdate .toggle-auto-update { text-decoration: none; } .theme-overlay .theme-autoupdate .toggle-auto-update .label { text-decoration: underline; } .theme-overlay .theme-description { color: #50575e; font-size: 15px; font-weight: 400; line-height: 1.5; margin: 30px 0 0; } .theme-overlay .theme-tags { border-top: 3px solid #f0f0f1; color: #646970; font-size: 13px; font-weight: 400; margin: 30px 0 0; padding-top: 20px; } .theme-overlay .theme-tags span { color: #3c434a; font-weight: 600; margin-left: 5px; } .theme-overlay .parent-theme { background: #fff; border: 1px solid #f0f0f1; border-right: 4px solid #72aee6; font-size: 14px; font-weight: 400; margin-top: 30px; padding: 10px 20px 10px 10px; } .theme-overlay .parent-theme strong { font-weight: 600; } /** * Single Theme Mode * Displays detailed view inline when a user has no switch capabilities */ .single-theme .theme-overlay .theme-backdrop, .single-theme .theme-overlay .theme-header, .single-theme .theme { display: none; } .single-theme .theme-overlay .theme-wrap { clear: both; min-height: 330px; position: relative; right: auto; left: auto; top: auto; bottom: auto; z-index: 10; } .single-theme .theme-overlay .theme-about { padding: 30px 30px 70px; position: static; } .single-theme .theme-overlay .theme-actions { position: absolute; } /** * Basic Responsive structure... * * Shuffles theme columns around based on screen width */ @media only screen and (min-width: 2000px) { #wpwrap .theme-browser .theme { width: 17.6%; margin: 0 0 3% 3%; } #wpwrap .theme-browser .theme:nth-child(3n), #wpwrap .theme-browser .theme:nth-child(4n) { margin-left: 3%; } #wpwrap .theme-browser .theme:nth-child(5n) { margin-left: 0; } } @media only screen and (min-width: 1680px) { .theme-overlay .theme-wrap { width: 1450px; margin: 0 auto; } } /* Maximum screenshot width reaches 440px */ @media only screen and (min-width: 1640px) { .theme-browser .theme { width: 22.7%; margin: 0 0 3% 3%; } .theme-browser .theme .theme-screenshot:after { padding-top: 75%; /* using a 4/3 aspect ratio */ } .theme-browser .theme:nth-child(3n) { margin-left: 3%; } .theme-browser .theme:nth-child(4n) { margin-left: 0; } } /* Maximum screenshot width reaches 440px */ @media only screen and (max-width: 1120px) { .theme-browser .theme { width: 47.5%; margin-left: 0; } .theme-browser .theme:nth-child(even) { margin-left: 0; } .theme-browser .theme:nth-child(odd) { margin-left: 5%; } } /* Admin menu is folded */ @media only screen and (max-width: 960px) { .theme-overlay .theme-wrap { right: 65px; } } @media only screen and (max-width: 782px) { body.folded .theme-overlay .theme-wrap, .theme-overlay .theme-wrap { top: 0; /* The adminmenu isn't fixed on mobile, so this can use the full viewport height */ left: 0; bottom: 0; right: 0; padding: 70px 20px 20px; border: none; z-index: 100000; /* should overlap #wpadminbar. */ position: fixed; } .theme-browser .theme.active .theme-name span { /* Hide the "Active: " label on smaller screens. */ display: none; } .theme-overlay .theme-screenshots { width: 40%; } .theme-overlay .theme-info { width: 50%; } .single-theme .theme-wrap { padding: 10px; } .theme-browser .theme .theme-actions { padding: 5px 10px 4px; } .theme-overlay.small-screenshot .theme-screenshots { position: static; float: none; max-width: 302px; } .theme-overlay.small-screenshot .theme-info { margin-right: 0; width: auto; } .theme:not(.active):hover .theme-actions, .theme:not(.active):focus .theme-actions, .theme:hover .more-details, .theme.focus .more-details { display: none; } .theme-browser.rendered .theme:hover .theme-screenshot img, .theme-browser.rendered .theme.focus .theme-screenshot img { opacity: 1.0; } } @media only screen and (max-width: 480px) { .theme-browser .theme { width: 100%; margin-left: 0; } .theme-browser .theme:nth-child(2n), .theme-browser .theme:nth-child(3n) { margin-left: 0; } .theme-overlay .theme-about { bottom: 105px; } .theme-overlay .theme-actions { padding-right: 4%; padding-left: 4%; } .theme-install-php .wp-filter .filter-count { margin-top: 10px; } } @media only screen and (max-width: 650px) { .theme-overlay .theme-description { margin-right: 0; } .theme-overlay .theme-actions .delete-theme { position: relative; left: auto; bottom: auto; } .theme-overlay .theme-actions .inactive-theme { display: inline; } .theme-overlay .theme-screenshots { width: 100%; float: none; margin: 0; } .theme-overlay .theme-info { width: 100%; } .theme-overlay .theme-author { margin: 5px 0 15px; } .theme-overlay .current-label { margin-top: 10px; font-size: 13px; } .themes-php .wp-filter-search { width: 100%; } .theme-install-php .wp-filter p.search-box { display: grid; row-gap: .5rem; } .theme-browser .theme.add-new-theme span:after { font: normal 60px/90px dashicons; width: 80px; height: 80px; top: 30%; right: 50%; text-indent: 0; margin-right: -40px; } .single-theme .theme-wrap { margin: 0 -10px 0 -12px; padding: 10px; } .single-theme .theme-overlay .theme-about { padding: 10px; overflow: visible; } .single-theme .current-label { display: none; } .single-theme .theme-overlay .theme-actions { position: static; } } .broken-themes { clear: both; } .broken-themes table { text-align: right; width: 50%; border-spacing: 3px; padding: 3px; } /*------------------------------------------------------------------------------ 16.2 - Install Themes ------------------------------------------------------------------------------*/ .update-php .wrap { max-width: 40rem; } /* Already installed theme */ .theme-browser .theme .theme-installed { background: #2271b1; } .theme-browser .theme .notice-success p:before { color: #68de7c; content: "\f147"; content: "\f147" / ''; display: inline-block; font: normal 20px/1 'dashicons'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; } .theme-install.updated-message:before { content: ""; } .theme-install-php .wp-filter { padding-right: 20px; } /* Override column gap adjustment in media library. */ @media only screen and (max-width: 1000px) { .theme-install-php .wp-filter p.search-box { column-gap: .5rem; } } .theme-install-php a.upload, .theme-install-php a.browse-themes { cursor: pointer; } .upload-view-toggle .browse, .plugin-install-tab-upload .upload-view-toggle .upload { display: none; } .plugin-install-tab-upload .upload-view-toggle .browse { display: inline; } .upload-theme, .upload-plugin { box-sizing: border-box; display: none; margin: 0; padding: 50px 0; width: 100%; overflow: hidden; position: relative; top: 10px; text-align: center; } .show-upload-view .upload-theme, .show-upload-view .upload-plugin, .show-upload-view .upload-plugin-wrap, .plugin-install-tab-upload .upload-plugin { display: block; } .upload-theme .wp-upload-form, .upload-plugin .wp-upload-form { position: relative; margin: 30px; display: inline-flex; justify-content: space-between; align-items: center; border: 1px solid #c3c4c7; background: #f6f7f7; } .upload-theme .wp-upload-form input[type="file"], .upload-plugin .wp-upload-form input[type="file"] { background: transparent; margin: 0; padding: 30px 30px 30px 0; } .wp-upload-form input[type="submit"].button { margin-left: 30px; } .upload-theme .install-help, .upload-plugin .install-help { color: #50575e; /* #f1f1f1 background */ font-size: 18px; font-style: normal; margin: 0; padding: 0; text-align: center; } p.no-themes, p.no-themes-local { clear: both; color: #646970; font-size: 18px; font-style: normal; margin: 0; padding: 100px 0; text-align: center; display: none; } .no-results p.no-themes { display: block; } .theme-install-php .add-new-theme { display: none !important; } @media only screen and (max-width: 1120px) { .upload-plugin .wp-upload-form, .upload-theme .wp-upload-form { margin: 20px 0; max-width: 100%; } .upload-theme .install-help { font-size: 15px; padding: 20px 0 0; } } .theme-details .theme-rating { line-height: 1.9; } .theme-details .star-rating { display: inline; } .theme-details .num-ratings, .theme-details .no-rating { font-size: 11px; color: #646970; } .theme-details .no-rating { display: block; line-height: 1.9; } .update-from-upload-comparison { border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; text-align: right; margin: 1rem 0 1.4rem; border-collapse: collapse; width: 100%; } .update-from-upload-comparison tr:last-child td { height: 1.4rem; vertical-align: top; } .update-from-upload-comparison tr:first-child th { font-weight: bold; height: 1.4rem; vertical-align: bottom; } .update-from-upload-comparison td.name-label { text-align: left; } .update-from-upload-comparison td, .update-from-upload-comparison th { padding: 0.4rem 1.4rem; } .update-from-upload-comparison td.warning { color: #d63638; } .update-from-upload-actions { margin-top: 1.4rem; } /*------------------------------------------------------------------------------ 16.3 - Custom Header Screen ------------------------------------------------------------------------------*/ .appearance_page_custom-header #headimg { border: 1px solid #dcdcde; overflow: hidden; width: 100%; } .appearance_page_custom-header #upload-form p label { font-size: 12px; } .appearance_page_custom-header .available-headers .default-header { float: right; margin: 0 0 20px 20px; } .appearance_page_custom-header .random-header { clear: both; margin: 0 0 20px 20px; vertical-align: middle; } .appearance_page_custom-header .available-headers label input, .appearance_page_custom-header .random-header label input { margin-left: 10px; } .appearance_page_custom-header .available-headers label img { vertical-align: middle; } /*------------------------------------------------------------------------------ 16.4 - Custom Background Screen ------------------------------------------------------------------------------*/ div#custom-background-image { min-height: 100px; border: 1px solid #dcdcde; } div#custom-background-image img { max-width: 400px; max-height: 300px; } .background-position-control input[type="radio"]:checked ~ .button { background: #f0f0f1; border-color: #8c8f94; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); z-index: 1; } .background-position-control input[type="radio"]:focus ~ .button { border-color: #4f94d4; box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 0 0 3px rgba(34, 113, 177, 0.8); color: #1d2327; } .background-position-control .background-position-center-icon, .background-position-control .background-position-center-icon:before { display: inline-block; line-height: 1; text-align: center; transition: background-color .1s ease-in; } .background-position-control .background-position-center-icon { height: 20px; margin-top: 13px; vertical-align: top; width: 20px; } .background-position-control .background-position-center-icon:before { background-color: #50575e; border-radius: 50%; content: ""; height: 12px; width: 12px; } .background-position-control .button:hover .background-position-center-icon:before, .background-position-control input[type="radio"]:focus ~ .button .background-position-center-icon:before { background-color: #1d2327; } .background-position-control .button-group { display: block; } .background-position-control .button-group .button { border-radius: 0; box-shadow: none; /* Following properties are overridden by buttons responsive styles (see: wp-includes/css/buttons.css). */ height: 40px !important; line-height: 2.9 !important; margin: 0 0 0 -1px !important; padding: 0 10px 1px !important; position: relative; } .background-position-control .button-group .button:active, .background-position-control .button-group .button:hover, .background-position-control .button-group .button:focus { z-index: 1; } .background-position-control .button-group:last-child .button { box-shadow: 0 1px 0 #c3c4c7; } .background-position-control .button-group > label { margin: 0 !important; } .background-position-control .button-group:first-child > label:first-child .button { border-radius: 0 3px 0 0; } .background-position-control .button-group:first-child > label:first-child .dashicons { transform: rotate( -45deg ); } .background-position-control .button-group:first-child > label:last-child .button { border-radius: 3px 0 0 0; } .background-position-control .button-group:first-child > label:last-child .dashicons { transform: rotate( 45deg ); } .background-position-control .button-group:last-child > label:first-child .button { border-radius: 0 0 3px 0; } .background-position-control .button-group:last-child > label:first-child .dashicons { transform: rotate( 45deg ); } .background-position-control .button-group:last-child > label:last-child .button { border-radius: 0 0 0 3px; } .background-position-control .button-group:last-child > label:last-child .dashicons { transform: rotate( -45deg ); } .background-position-control .button-group + .button-group { margin-top: -1px; } /*------------------------------------------------------------------------------ 23.0 - Full Overlay w/ Sidebar ------------------------------------------------------------------------------*/ body.full-overlay-active { overflow: hidden; /* Hide all the content, the Customizer overlay is then made visible to be the only available content. */ visibility: hidden; } .wp-full-overlay { background: transparent; z-index: 500000; position: fixed; overflow: visible; top: 0; bottom: 0; right: 0; left: 0; height: 100%; min-width: 0; } .wp-full-overlay-sidebar { box-sizing: border-box; position: fixed; min-width: 300px; max-width: 600px; width: 18%; height: 100%; top: 0; bottom: 0; right: 0; padding: 0; margin: 0; z-index: 10; background: #f0f0f1; border-left: none; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { overflow: visible; } .wp-full-overlay.collapsed, .wp-full-overlay.expanded .wp-full-overlay-sidebar { margin-right: 0 !important; } .wp-full-overlay.expanded { margin-right: 300px; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-right: -300px; } @media screen and (min-width: 1667px) { .wp-full-overlay.expanded { margin-right: 18%; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-right: -18%; } } @media screen and (min-width: 3333px) { .wp-full-overlay.expanded { margin-right: 600px; } .wp-full-overlay.collapsed .wp-full-overlay-sidebar { margin-right: -600px; } } .wp-full-overlay-sidebar:after { content: ""; display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; z-index: 1000; } .wp-full-overlay-main { position: absolute; right: 0; left: 0; top: 0; bottom: 0; height: 100%; } .wp-full-overlay-sidebar .wp-full-overlay-header { position: absolute; right: 0; left: 0; height: 45px; padding: 0 15px; line-height: 3.2; z-index: 10; margin: 0; border-top: none; box-shadow: none; } .wp-full-overlay-sidebar .wp-full-overlay-header a.back { margin-top: 3px; /* Vertically center 40px button in 45px header */ } .wp-full-overlay-sidebar .wp-full-overlay-footer { bottom: 0; border-bottom: none; border-top: none; box-shadow: none; } .wp-full-overlay-sidebar .wp-full-overlay-sidebar-content { position: absolute; top: 45px; bottom: 45px; right: 0; left: 0; overflow: auto; } /* Close & Navigation Links */ .theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header { padding: 0; } .theme-install-overlay .close-full-overlay, .theme-install-overlay .previous-theme, .theme-install-overlay .next-theme { display: block; position: relative; float: right; width: 45px; height: 45px; background: #f0f0f1; border-left: 1px solid #dcdcde; color: #3c434a; cursor: pointer; text-decoration: none; transition: color .1s ease-in-out, background .1s ease-in-out; } .theme-install-overlay .close-full-overlay:hover, .theme-install-overlay .close-full-overlay:focus, .theme-install-overlay .previous-theme:hover, .theme-install-overlay .previous-theme:focus, .theme-install-overlay .next-theme:hover, .theme-install-overlay .next-theme:focus { background: #dcdcde; border-color: #c3c4c7; color: #000; outline: none; box-shadow: none; } .theme-install-overlay .close-full-overlay:before { font: normal 22px/1 dashicons; content: "\f335"; content: "\f335" / ''; position: relative; top: 7px; right: 13px; } .theme-install-overlay .previous-theme:before { font: normal 20px/1 dashicons; content: "\f345"; content: "\f341" / ''; position: relative; top: 6px; right: 14px; } .theme-install-overlay .next-theme:before { font: normal 20px/1 dashicons; content: "\f341"; content: "\f345" / ''; position: relative; top: 6px; right: 13px; } .theme-install-overlay .previous-theme.disabled, .theme-install-overlay .next-theme.disabled, .theme-install-overlay .previous-theme.disabled:hover, .theme-install-overlay .previous-theme.disabled:focus, .theme-install-overlay .next-theme.disabled:hover, .theme-install-overlay .next-theme.disabled:focus { color: #c3c4c7; background: #f0f0f1; cursor: default; pointer-events: none; } .theme-install-overlay .close-full-overlay, .theme-install-overlay .previous-theme, .theme-install-overlay .next-theme { border-right: 0; border-top: 0; border-bottom: 0; } .theme-install-overlay .close-full-overlay:before, .theme-install-overlay .previous-theme:before, .theme-install-overlay .next-theme:before { top: 2px; right: 0; } /* Collapse Button */ .wp-core-ui .wp-full-overlay .collapse-sidebar { position: fixed; bottom: 0; right: 0; padding: 9px 10px 9px 0; height: 45px; color: #646970; outline: 0; line-height: 1; background-color: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #2271b1; } .wp-full-overlay .collapse-sidebar-arrow, .wp-full-overlay .collapse-sidebar-label { display: inline-block; vertical-align: middle; line-height: 1.6; } .wp-full-overlay .collapse-sidebar-arrow { width: 20px; height: 20px; margin: 0 2px; /* avoid the focus box-shadow to be cut-off */ border-radius: 50%; overflow: hidden; } .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wp-full-overlay .collapse-sidebar-label { margin-right: 3px; } .wp-full-overlay.collapsed .collapse-sidebar-label { display: none; } .wp-full-overlay .collapse-sidebar-arrow:before { display: block; content: "\f148"; content: "\f148" / ''; background: #f0f0f1; font: normal 20px/1 dashicons; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar { padding: 9px 10px; } /* rtl:ignore */ .wp-full-overlay.collapsed .collapse-sidebar-arrow:before, .rtl .wp-full-overlay .collapse-sidebar-arrow:before { transform: rotate(180.001deg); /* Firefox: promoting to its own layer to trigger anti-aliasing */ } .rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before { transform: none; } /* Animations */ @media (prefers-reduced-motion: no-preference) { .wp-full-overlay, .wp-full-overlay-sidebar, .wp-full-overlay .collapse-sidebar, .wp-full-overlay-main { transition-property: right, left, top, bottom, width, margin; transition-duration: 0.2s; } } /* Device/preview size toggles */ .wp-full-overlay { background: #1d2327; } .wp-full-overlay-main { background-color: #f0f0f1; } .expanded .wp-full-overlay-footer { position: fixed; bottom: 0; right: 0; min-width: 299px; max-width: 599px; width: 18%; width: calc( 18% - 1px ); height: 45px; border-top: 1px solid #dcdcde; background: #f0f0f1; } .wp-full-overlay-footer .devices-wrapper { float: left; } .wp-full-overlay-footer .devices { position: relative; background: #f0f0f1; box-shadow: 20px 0 10px -5px #f0f0f1; } .wp-full-overlay-footer .devices button { cursor: pointer; background: transparent; border: none; height: 45px; padding: 0 3px; margin: 0 -4px 0 0; box-shadow: none; border-top: 1px solid transparent; border-bottom: 4px solid transparent; transition: .15s color ease-in-out, .15s background-color ease-in-out, .15s border-color ease-in-out; } .wp-full-overlay-footer .devices button:focus { box-shadow: none; outline: none; } .wp-full-overlay-footer .devices button:before { display: inline-block; -webkit-font-smoothing: antialiased; font: normal 20px/30px "dashicons"; vertical-align: top; margin: 3px 0; padding: 4px 8px; color: #646970; } .wp-full-overlay-footer .devices button.active { border-bottom-color: #1d2327; } .wp-full-overlay-footer .devices button:hover, .wp-full-overlay-footer .devices button:focus { background-color: #fff; } .wp-full-overlay-footer .devices button:focus, .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #2271b1; } .wp-full-overlay-footer .devices button.active:before { color: #1d2327; } .wp-full-overlay-footer .devices button:hover:before, .wp-full-overlay-footer .devices button:focus:before { color: #2271b1; } .wp-full-overlay-footer .devices .preview-desktop:before { content: "\f472"; content: "\f472" / ''; } .wp-full-overlay-footer .devices .preview-tablet:before { content: "\f471"; content: "\f471" / ''; } .wp-full-overlay-footer .devices .preview-mobile:before { content: "\f470"; content: "\f470" / ''; } @media screen and (max-width: 1024px) { .wp-full-overlay-footer .devices { display: none; } } .collapsed .wp-full-overlay-footer .devices button:before { display: none; } .preview-mobile .wp-full-overlay-main { margin: auto -160px auto 0; width: 320px; height: 480px; max-height: 100%; max-width: 100%; right: 50%; } .preview-tablet .wp-full-overlay-main { margin: auto -360px auto 0; width: 720px; /* Size is loosely based on a typical "tablet" device size. Intentionally ambiguous - this does not represent any particular device precisely. */ height: 1080px; max-height: 100%; max-width: 100%; right: 50%; } /*------------------------------------------------------------------------------ 24.0 - Customize Loader ------------------------------------------------------------------------------*/ .no-customize-support .hide-if-no-customize, .customize-support .hide-if-customize, .no-customize-support.wp-core-ui .hide-if-no-customize, .no-customize-support .wp-core-ui .hide-if-no-customize, .customize-support.wp-core-ui .hide-if-customize, .customize-support .wp-core-ui .hide-if-customize { display: none; } #customize-container, #customize-controls .notice.notification-overlay { background: #f0f0f1; z-index: 500000; position: fixed; overflow: visible; top: 0; bottom: 0; right: 0; left: 0; height: 100%; } #customize-container { display: none; } /* Make the Customizer and Theme installer overlays the only available content. */ #customize-container, .theme-install-overlay { visibility: visible; } .customize-loading #customize-container iframe { opacity: 0; } #customize-container iframe, .theme-install-overlay iframe { height: 100%; width: 100%; z-index: 20; transition: opacity 0.3s; } #customize-controls { margin-top: 0; } .theme-install-overlay { display: none; } .theme-install-overlay.single-theme { display: block; } .install-theme-info { display: none; padding: 10px 20px 60px; } .single-theme .install-theme-info { padding-top: 15px; } .theme-install-overlay .install-theme-info { display: block; } .install-theme-info .theme-install { float: left; margin-top: 18px; } .install-theme-info .theme-name { font-size: 16px; line-height: 1.5; margin-bottom: 0; margin-top: 0; } .install-theme-info .theme-screenshot { margin: 15px 0; width: 258px; border: 1px solid #c3c4c7; position: relative; overflow: hidden; } .install-theme-info .theme-screenshot > img { width: 100%; height: auto; position: absolute; right: 0; top: 0; } .install-theme-info .theme-screenshot:after { content: ""; display: block; padding-top: 66.66666666%; } .install-theme-info .theme-details { overflow: hidden; } .theme-details .theme-version { margin: 15px 0; } .theme-details .theme-description { float: right; color: #646970; line-height: 1.6; max-width: 100%; } .theme-install-overlay .wp-full-overlay-header .button { float: left; margin: 7px 0 0 10px; /* Vertically center 32px button in 45px header */ } .theme-install-overlay .wp-full-overlay-sidebar { background: #f0f0f1; border-left: 1px solid #dcdcde; } .theme-install-overlay .wp-full-overlay-sidebar-content { background: #fff; border-top: 1px solid #dcdcde; border-bottom: 1px solid #dcdcde; } .theme-install-overlay .wp-full-overlay-main { position: absolute; z-index: 0; background-color: #f0f0f1; } .customize-loading #customize-container { background-color: #f0f0f1; } #customize-preview.wp-full-overlay-main:before, .customize-loading #customize-container:before, #customize-controls .notice.notification-overlay.notification-loading:before, .theme-install-overlay .wp-full-overlay-main:before { content: ""; display: block; width: 20px; height: 20px; position: absolute; right: 50%; top: 50%; z-index: -1; margin: -10px -10px 0 0; transform: translateZ(0); background: transparent url(../images/spinner.gif) no-repeat center center; background-size: 20px 20px; } #customize-preview.wp-full-overlay-main.iframe-ready:before, .theme-install-overlay.iframe-ready .wp-full-overlay-main:before { background-image: none; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .wp-full-overlay .collapse-sidebar-arrow { background-image: url(../images/arrows-2x.png); background-size: 15px 123px; } #customize-preview.wp-full-overlay-main:before, .customize-loading #customize-container:before, #customize-controls .notice.notification-overlay.notification-loading:before, .theme-install-overlay .wp-full-overlay-main:before { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 782px) { .available-theme .action-links .delete-theme { float: none; margin: 0; padding: 0; clear: both; } .available-theme .action-links .delete-theme a { padding: 0; } .broken-themes table { width: 100%; } .theme-install-overlay .wp-full-overlay-header .button { font-size: 13px; } .theme-browser .theme .theme-actions .button { margin-bottom: 0; } .theme-browser .theme.active .theme-actions, .theme-browser .theme .theme-actions { padding-top: 4px; padding-bottom: 4px; } .upload-plugin .wp-upload-form, .upload-theme .wp-upload-form { width: 100%; box-sizing: border-box; } .upload-plugin .wp-upload-form input[type=file], .upload-theme .wp-upload-form input[type=file] { padding: 30px 30px 30px 0; width: 100%; } } css/about-rtl.min.css000064400000052570152213653150010555 0ustar00/*! This file is auto-generated */ .about__container{--background:#ebe8e5;--subtle-background:#ebe8e5;--text:#1e1e1e;--text-light:#fff;--accent-1:#3858e9;--accent-2:#183ad6;--accent-3:#ececec;--accent-gradient:linear-gradient(-90deg, #000000 4.7%, var(--accent-1) 83.84%);--nav-background:#fff;--nav-border:transparent;--nav-color:var(--text);--nav-current:var(--accent-1);--border-radius:0.5rem;--gap:2rem}.about-php,.contribute-php,.credits-php,.freedoms-php,.privacy-php{background:#fff}.about-php #wpcontent,.contribute-php #wpcontent,.credits-php #wpcontent,.freedoms-php #wpcontent,.privacy-php #wpcontent{background:#fff;padding:0 24px}@media screen and (max-width:782px){.about-php.auto-fold #wpcontent,.contribute-php.auto-fold #wpcontent,.credits-php.auto-fold #wpcontent,.freedoms-php.auto-fold #wpcontent,.privacy-php.auto-fold #wpcontent{padding-right:24px}}.about__container{max-width:1000px;margin:24px auto;clear:both}.about__container .alignleft{float:right}.about__container .alignright{float:left}.about__container .aligncenter{text-align:center}.about__container .is-vertically-aligned-top{align-self:start}.about__container .is-vertically-aligned-center{align-self:center}.about__container .is-vertically-aligned-bottom{align-self:end}.about__section{background:0 0;clear:both}.about__container .has-accent-background-color{color:var(--text-light);background-color:var(--accent-2)}.about__container .has-transparent-background-color{background-color:transparent}.about__container .has-accent-color{color:var(--accent-2)}.about__container .has-border{border:3px solid currentColor}.about__container .has-subtle-background-color{background-color:var(--subtle-background);border-radius:var(--border-radius)}.about__container .has-background-image{background-size:contain;background-repeat:no-repeat;background-position:center}.about__section{margin:0}.about__section .column:not(.is-edge-to-edge){padding:var(--gap)}.about__section .column.is-left-padding-zero{padding-right:0}.about__section .column.is-right-padding-zero{padding-left:0}.about__section+.about__section .is-section-header{padding-bottom:var(--gap)}.about__section .column.has-border:not(.is-edge-to-edge),.about__section .column[class*=background-color]:not(.is-edge-to-edge),.about__section:where([class*=background-color]) .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section .column p:first-of-type{margin-top:0}.about__section .column p:last-of-type{margin-bottom:0}.about__section .has-text-columns{columns:2;column-gap:calc(var(--gap) * 2)}.about__section .is-section-header{margin-bottom:0;padding:var(--gap) var(--gap) 0}.about__section .is-section-header p:last-child{margin-bottom:0}.about__section .is-section-header:first-child:last-child{padding:0}.about__section.is-feature{padding:var(--gap)}.about__section.is-feature p{margin:0}.about__section.is-feature p+p{margin-top:calc(var(--gap)/ 2)}.about__section.has-1-column{margin-right:auto;margin-left:auto;max-width:36em}.about__section.has-2-columns,.about__section.has-3-columns,.about__section.has-4-columns,.about__section.has-overlap-style{display:grid}.about__section.has-gutters{gap:var(--gap);margin-bottom:var(--gap)}.about__section.has-2-columns{grid-template-columns:1fr 1fr}.about__section.has-2-columns.is-wider-right{grid-template-columns:2fr 3fr}.about__section.has-2-columns.is-wider-left{grid-template-columns:3fr 2fr}.about__section .is-section-header{grid-column-start:1;grid-column-end:-1}.about__section.has-3-columns{grid-template-columns:repeat(3,1fr)}.about__section.has-4-columns{grid-template-columns:repeat(4,1fr)}.about__section.has-overlap-style{grid-template-columns:repeat(7,1fr)}.about__section.has-overlap-style .column{grid-row-start:1}.about__section.has-overlap-style .column:nth-of-type(odd){grid-column-start:2;grid-column-end:span 3}.about__section.has-overlap-style .column:nth-of-type(2n){grid-column-start:4;grid-column-end:span 3}.about__section.has-overlap-style .column.is-top-layer{z-index:1}@media screen and (max-width:782px){.about__section.has-2-columns.is-wider-left,.about__section.has-2-columns.is-wider-right,.about__section.has-3-columns{display:block;margin-bottom:calc(var(--gap)/ 2)}.about__section .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section.has-2-columns.has-gutters.is-wider-left,.about__section.has-2-columns.has-gutters.is-wider-right,.about__section.has-3-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column,.about__section.has-3-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child,.about__section.has-3-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-3-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns{grid-template-columns:repeat(2,1fr)}.about__section.has-overlap-style{grid-template-columns:1fr}.about__section.has-overlap-style .column.column{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}}@media screen and (max-width:600px){.about__section.has-2-columns{display:block;margin-bottom:var(--gap)}.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-2-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child{margin-bottom:0}.about__section .column.is-left-padding-zero{padding-left:0}.about__section .column.is-right-padding-zero{padding-right:0}}@media screen and (max-width:480px){.about__section .is-section-header,.about__section.is-feature .column{padding:0}.about__section.has-4-columns{display:block;padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column{margin-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-4-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}}.about__container{line-height:1.4;color:var(--text)}.about__container h1{padding:0}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:2rem;font-weight:700;line-height:1.16}.about__container h1.is-smaller-heading,.about__container h2.is-smaller-heading,.about__container h3{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:1.625rem;font-weight:700;line-height:1.4}.about__container h3.is-smaller-heading,.about__container h4{margin-top:0;font-size:1.125rem;font-weight:600;line-height:1.6}.about__container h1,.about__container h2,.about__container h3,.about__container h4{text-wrap:pretty;color:inherit}.about__container :is(h1,h2,h3,h4,.about__header-text):lang(en){text-wrap:balance}.about__container p{text-wrap:pretty}.about__container p{font-size:inherit;line-height:inherit}.about__container p.is-subheading{margin-top:0;margin-bottom:1rem;font-size:1.5rem;font-weight:300;line-height:160%}.about__section a{color:var(--accent-1);text-decoration:underline}.about__section a:active,.about__section a:focus,.about__section a:hover{color:var(--accent-1);text-decoration:none}.wp-credits-list a{text-decoration:none}.wp-credits-list a:active,.wp-credits-list a:focus,.wp-credits-list a:hover{text-decoration:underline}.about__section a.button.button-hero{padding-top:1.1875rem;padding-bottom:1.1875rem;font-size:1.5rem;line-height:1.4;white-space:normal;text-wrap:pretty}.about__container ul{list-style:disc;margin-right:calc(var(--gap)/ 2)}.about__container li{margin-bottom:.5rem}.about__container img{margin:0;max-width:100%;vertical-align:middle}.about__container .about__image{margin:0}.about__container .about__image img{max-width:100%;width:100%;height:auto;border-radius:var(--border-radius)}.about__container .about__image figcaption{margin-top:.5em;text-align:center}.about__container .about__image .wp-video{margin-right:auto;margin-left:auto}.about__container .about__image svg{vertical-align:middle}.about__container .about__image+h3{margin-top:calc(.75 * var(--gap))}.about__container hr{margin:calc(var(--gap)/ 2) var(--gap);height:0;border:none;border-top:4px solid var(--accent-3)}.about__container hr.is-small{margin-top:0;margin-bottom:0}.about__container hr.is-large{margin:var(--gap) auto}.about__container hr.is-invisible{border:none}.about__container .notice,.about__container div.error,.about__container div.updated{display:none!important}.about__container code{font-size:inherit}.about__section{font-size:1.125rem;line-height:1.55}.about__section.is-feature{font-size:1.6em}.about__section.has-3-columns,.about__section.has-4-columns{font-size:1rem}@media screen and (max-width:480px){.about__section.is-feature{font-size:1.4em}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{font-size:2em}}.about__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:calc(var(--gap) * 1.5);padding-left:26rem;min-height:clamp(10rem,25vw,18.75rem);border-radius:var(--border-radius);background-image:url("../images/about-header-default.webp?ver=20260514");background-repeat:no-repeat;background-position:left center;background-size:cover;background-color:var(--background);color:var(--text-light)}.credits-php .about__header{background-image:url("../images/about-header-credits.webp?ver=20260514")}.freedoms-php .about__header{background-image:url("../images/about-header-freedoms.webp?ver=20260514")}.privacy-php .about__header{background-image:url("../images/about-header-privacy.webp?ver=20260514")}.contribute-php .about__header{background-image:url("../images/about-header-get-involved.webp?ver=20260514")}[dir=rtl] .about__header{background-image:url("../images/about-header-default-rtl.webp?ver=20260514")}[dir=rtl] .credits-php .about__header{background-image:url("../images/about-header-credits-rtl.webp?ver=20260514")}[dir=rtl] .freedoms-php .about__header{background-image:url("../images/about-header-freedoms-rtl.webp?ver=20260514")}[dir=rtl] .privacy-php .about__header{background-image:url("../images/about-header-privacy-rtl.webp?ver=20260514")}[dir=rtl] .contribute-php .about__header{background-image:url("../images/about-header-get-involved-rtl.webp?ver=20260514")}.about__header-image{margin:0 0 calc(var(--gap) * 1.5)}.about__header-title{box-sizing:border-box;margin:0;padding:0}.about__header-title h1{margin:0;padding:0;font-size:clamp(2rem, 20vw - 9rem, 4rem);line-height:1;font-weight:600;color:var(--text)}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-text{box-sizing:border-box;max-width:26em;margin:1rem 0 0;padding:0;font-size:1.6rem;line-height:1.15;color:var(--text)}.about__header-navigation{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:0;margin-bottom:var(--gap);background:var(--nav-background);color:var(--nav-color);border-bottom:3px solid var(--nav-border)}.about__header-navigation::after{display:none}.about__header-navigation .nav-tab{margin-right:0;padding:calc(var(--gap) * .75) var(--gap);float:none;font-size:1.4em;line-height:1;border-width:0 0 3px;border-style:solid;border-color:transparent;background:0 0;color:inherit}.about__header-navigation .nav-tab:active,.about__header-navigation .nav-tab:hover{background-color:var(--nav-current);color:var(--text-light);border-radius:var(--border-radius)}.about__header-navigation .nav-tab-active{margin-bottom:-3px;color:var(--nav-current);border-width:0 0 6px;border-color:var(--nav-current)}.about__header-navigation .nav-tab-active:active,.about__header-navigation .nav-tab-active:hover{background-color:var(--nav-current);color:var(--text-light);border-color:var(--nav-current);border-radius:var(--border-radius)}@media screen and (max-width:960px){.about__header{padding-left:21rem}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-navigation .nav-tab{padding:calc(var(--gap) * .75) calc(var(--gap) * .5)}}@media screen and (max-width:782px){.about__container .about__header-text{font-size:1.4em}.about__header-container{display:block}.about__header{padding:var(--gap);padding-left:17rem}.about__header-text{margin-top:.5rem}.about__header-navigation .nav-tab{margin-top:0;margin-left:0;font-size:1.2em}}@media screen and (max-width:600px){.about__header{min-height:auto;padding-left:var(--gap)}.about__header-navigation{display:block}.about__header-navigation .nav-tab{display:block;margin-bottom:0;padding:calc(var(--gap)/ 2);border-right-width:6px;border-bottom:none}.about__header-navigation .nav-tab-active{border-bottom:none;border-right-width:6px}}.about__section .wp-people-group-title{margin-bottom:calc(var(--gap) * 2 - 10px);text-align:center}.about__section .wp-people-group{margin:0;display:flex;flex-wrap:wrap}.about__section .wp-person{display:inline-block;vertical-align:top;box-sizing:border-box;margin-bottom:calc(var(--gap) - 10px);width:25%;text-align:center}.about__section .compact .wp-person{height:auto;width:20%}.about__section .wp-person-avatar{display:block;margin:0 auto calc(var(--gap)/ 2);width:140px;height:140px;border-radius:100%;overflow:hidden}.about__section .wp-person .gravatar{width:140px;height:140px;filter:grayscale(100%)}.about__section .compact .wp-person .gravatar,.about__section .compact .wp-person-avatar{width:80px;height:80px}.about__section .wp-person .web{display:block;font-size:1.4em;font-weight:600;padding:10px 10px 0;text-decoration:none}.about__section .wp-person .web:hover{text-decoration:underline}.about__section .compact .wp-person .web{font-size:1.2em}.about__section .wp-person .title{display:block;margin-top:.5em}@media screen and (max-width:782px){.about__section .wp-person{width:33%}.about__section .compact .wp-person{width:25%}.about__section .wp-person .gravatar,.about__section .wp-person-avatar{width:120px;height:120px}}@media screen and (max-width:600px){.about__section .wp-person{width:50%}.about__section .compact .wp-person{width:33%}.about__section .wp-person .web{font-size:1.2em}}@media screen and (max-width:480px){.about__section .wp-person{min-width:100%}.about__section .wp-person .web{font-size:1em}.about__section .compact .wp-person .web{font-size:1em}}.about__section .column .freedom-image{margin-bottom:var(--gap);max-height:180px}.about__section .column .privacy-image{display:block;margin-right:auto;margin-left:auto;max-width:25rem}.about-wrap{position:relative;margin:25px 20px 0 40px;max-width:1050px;font-size:15px}.about-wrap.full-width-layout{max-width:1200px}.about-wrap-content{max-width:1050px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:3em 0 0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;width:100%;height:auto;vertical-align:middle}.about-wrap .inline-svg img{max-width:100%;width:auto;height:auto}.about-wrap video{margin:1.5em auto}.wp-badge{background:#0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat;background-position:center 25px;background-size:80px 80px;color:#fff;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:140px;text-rendering:optimizeLegibility;box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20160308)}.about-wrap .wp-badge{position:absolute;top:0;left:0}.about-wrap .nav-tab{padding-left:15px;padding-right:15px;font-size:18px;line-height:1.33333333}.about-wrap h1{margin:.2em 0 0 200px;padding:0;color:#32373c;line-height:1.2;font-size:2.8em;font-weight:400}.about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.about-wrap h4{font-size:16px;color:#23282d}.about-wrap p{line-height:1.5;font-size:16px}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap figcaption{font-size:13px;text-align:center;color:#fff;text-overflow:ellipsis}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.about-wrap .about-text{margin:1em 0 1em 200px;color:#555d66}.about-wrap .has-1-columns,.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:grid;max-width:800px;margin-top:40px;margin-right:auto;margin-left:auto}.about-wrap .column{margin-left:20px;margin-right:20px}.about-wrap .is-wide{max-width:760px}.about-wrap .is-fullwidth{max-width:100%}.about-wrap .has-1-columns{display:block;max-width:680px;margin:0 auto 40px}.about-wrap .has-2-columns{grid-template-columns:1fr 1fr}.about-wrap .has-2-columns .column:nth-of-type(odd){grid-column-start:1}.about-wrap .has-2-columns .column:nth-of-type(2n){grid-column-start:2}.about-wrap .has-2-columns.is-wider-right{grid-template-columns:1fr 2fr}.about-wrap .has-2-columns.is-wider-left{grid-template-columns:2fr 1fr}.about-wrap .has-3-columns{grid-template-columns:repeat(3,1fr)}.about-wrap .has-3-columns .column:nth-of-type(3n+1){grid-column-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2){grid-column-start:2}.about-wrap .has-3-columns .column:nth-of-type(3n){grid-column-start:3}.about-wrap .has-4-columns{grid-template-columns:repeat(4,1fr)}.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1}.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:3}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:4}.about-wrap .column :first-child{margin-top:0}.about-wrap .aligncenter{text-align:center}.about-wrap .alignleft{float:right;margin-left:40px}.about-wrap .alignright{float:left;margin-right:40px}.about-wrap .is-vertically-aligned-top{align-self:flex-start}.about-wrap .is-vertically-aligned-center{align-self:center}.about-wrap .is-vertically-aligned-bottom{align-self:end}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #ddd}.about-wrap .changelog{margin-bottom:40px}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .changelog.feature-section .col{margin-top:40px}.about-wrap .lead-description{font-size:1.5em;text-align:center}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .headline-feature{margin:0 auto 40px;max-width:680px}.about-wrap .headline-feature h2{margin:50px 0 0}.about-wrap .headline-feature img{max-width:600px;width:100%}.about-wrap .return-to-dashboard{margin:30px -5px 0 0;font-size:14px;font-weight:600}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap h2.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit;font-weight:600;text-align:right}.about-wrap .wp-people-group{padding:0 5px;margin:0 -5px 0 -15px}.about-wrap .compact{margin-bottom:0}.about-wrap .wp-person{display:inline-block;vertical-align:top;margin-left:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap .wp-person .gravatar{float:right;margin:0 0 10px 10px;padding:1px;width:60px;height:60px}.about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.about-wrap .wp-person .title{display:block}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.about-wrap p.wp-credits-list a{white-space:nowrap}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:600}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}@media screen and (max-width:782px){.about-wrap .has-3-columns,.about-wrap .has-4-columns{grid-template-columns:1fr 1fr}.about-wrap .has-3-columns .column:nth-of-type(3n+1),.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2),.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n),.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:1;grid-row-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:2;grid-row-start:2}}@media screen and (max-width:600px){.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:block}.about-wrap :not(.is-wider-right):not(.is-wider-left) .column{margin-left:0;margin-right:0}.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:grid}}@media only screen and (max-width:500px){.about-wrap{margin-left:20px;margin-right:10px}.about-wrap .about-text,.about-wrap h1{margin-left:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}}@media only screen and (max-width:480px){.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:block}.about-wrap .column{margin-left:0;margin-right:0}.about-wrap .has-2-columns.is-wider-left img,.about-wrap .has-2-columns.is-wider-right img{max-width:160px}}css/common.css000064400000235423152213653150007352 0ustar00/* 2 column liquid layout */ #wpwrap { height: auto; min-height: 100%; width: 100%; position: relative; -webkit-font-smoothing: subpixel-antialiased; } #wpcontent { height: 100%; padding-left: 20px; } #wpcontent, #wpfooter { margin-left: 160px; } .folded #wpcontent, .folded #wpfooter { margin-left: 36px; } #wpbody-content { padding-bottom: 65px; float: left; width: 100%; overflow: visible; } /* inner 2 column liquid layout */ .inner-sidebar { float: right; clear: right; display: none; width: 281px; position: relative; } .columns-2 .inner-sidebar { margin-right: auto; width: 286px; display: block; } .inner-sidebar #side-sortables, .columns-2 .inner-sidebar #side-sortables { min-height: 300px; width: 280px; padding: 0; } .has-right-sidebar .inner-sidebar { display: block; } .has-right-sidebar #post-body { float: left; clear: left; width: 100%; margin-right: -2000px; } .has-right-sidebar #post-body-content { margin-right: 300px; float: none; width: auto; } /* 2 columns main area */ #col-left { float: left; width: 35%; } #col-right { float: right; width: 65%; } #col-left .col-wrap { padding: 0 6px 0 0; } #col-right .col-wrap { padding: 0 0 0 6px; } /* utility classes */ .alignleft { float: left; } .alignright { float: right; } .textleft { text-align: left; } .textright { text-align: right; } .clear { clear: both; } /* modern clearfix */ .wp-clearfix:after { content: ""; display: table; clear: both; } /* Hide visually but not from screen readers */ .screen-reader-text, .screen-reader-text span, .ui-helper-hidden-accessible { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } .button .screen-reader-text { height: auto; /* Fixes a Safari+VoiceOver bug, see ticket #42006 */ } .screen-reader-text + .dashicons-external { margin-top: -1px; margin-left: 2px; text-decoration: none; } .screen-reader-shortcut { position: absolute; top: -1000em; left: 6px; height: auto; width: auto; display: block; font-size: 14px; font-weight: 600; padding: 15px 23px 14px; /* Background and color set to prevent false positives in automated accessibility tests. */ background: #ffffff; color: var(--wp-admin-theme-color, #3858e9); z-index: 100000; line-height: normal; } .screen-reader-shortcut:focus { top: -25px; /* Overrides a:focus in the admin. See ticket #56789. */ color: var(--wp-admin-theme-color, #3858e9); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); text-decoration: none; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .hidden, .js .closed .inside, .js .hide-if-js, .no-js .hide-if-no-js, .js.wp-core-ui .hide-if-js, .js .wp-core-ui .hide-if-js, .no-js.wp-core-ui .hide-if-no-js, .no-js .wp-core-ui .hide-if-no-js { display: none; } /* @todo: Take a second look. Large chunks of shared color, from the colors.css merge */ .widget-top, .menu-item-handle, .widget-inside, #menu-settings-column .accordion-container, #menu-management .menu-edit, .manage-menus, table.widefat, .stuffbox, p.popular-tags, .widgets-holder-wrap, .wp-editor-container, .popular-tags, .feature-filter, .comment-ays { border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } table.widefat, .wp-editor-container, .stuffbox, p.popular-tags, .widgets-holder-wrap, .popular-tags, .feature-filter, .comment-ays { background: #fff; } /* general */ html, body { height: 100%; margin: 0; padding: 0; } body { background: #f0f0f1; color: #3c434a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4em; min-width: 600px; } body.iframe { min-width: 0; padding-top: 1px; } body.modal-open { overflow: hidden; } body.mobile.modal-open #wpwrap { overflow: hidden; position: fixed; height: 100%; } iframe, img { border: 0; } td { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; } /* Any change to the default link style must be applied to button-link too. */ a { color: #2271b1; transition-property: border, background, color; transition-duration: .05s; transition-timing-function: ease-in-out; } a, div { outline: 0; } a:hover, a:active { color: #135e96; } a:focus, a:focus .media-icon img, a:focus .plugin-icon, .wp-person a:focus .gravatar { color: #043959; border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #adminmenu a:focus { box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; outline-offset: -1px; } .screen-reader-text:focus { box-shadow: none; outline: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; } p, .wp-die-message { font-size: 13px; line-height: 1.5; margin: 1em 0; } blockquote { margin: 1em; } li, dd { margin-bottom: 6px; } h1, h2, h3, h4, h5, h6 { display: block; font-weight: 600; } h1 { color: #1d2327; font-size: 2em; margin: .67em 0; } h2, h3 { color: #1d2327; font-size: 1.3em; margin: 1em 0; } .update-core-php h2 { margin-top: 4em; } .update-php h2, .update-messages h2, h4 { font-size: 1em; margin: 1.33em 0; } h5 { font-size: 0.83em; margin: 1.67em 0; } h6 { font-size: 0.67em; margin: 2.33em 0; } ul, ol { padding: 0; } ul { list-style: none; } ol { list-style-type: decimal; margin-left: 2em; } ul.ul-disc { list-style: disc outside; } ul.ul-square { list-style: square outside; } ol.ol-decimal { list-style: decimal outside; } ul.ul-disc, ul.ul-square, ol.ol-decimal { margin-left: 1.8em; } ul.ul-disc > li, ul.ul-square > li, ol.ol-decimal > li { margin: 0 0 0.5em; } /* rtl:ignore */ .ltr { direction: ltr; } /* rtl:ignore */ .code, code { font-family: Consolas, Monaco, monospace; direction: ltr; unicode-bidi: embed; } kbd, code { padding: 3px 5px 2px; margin: 0 1px; background: #f0f0f1; background: rgba(0, 0, 0, 0.07); font-size: 13px; } .subsubsub { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; float: left; color: #646970; } .subsubsub a { line-height: 2; padding: .2em; text-decoration: none; } .subsubsub a .count, .subsubsub a.current .count { color: #50575e; /* #f1f1f1 background */ font-weight: 400; } .subsubsub a.current { font-weight: 600; border: none; } .subsubsub li { display: inline-block; margin: 0; padding: 0; white-space: nowrap; } /* .widefat - main style for tables */ .widefat { border-spacing: 0; width: 100%; clear: both; margin: 0; } .widefat * { word-wrap: break-word; } .widefat a, .widefat button.button-link { text-decoration: none; } .widefat td, .widefat th { padding: 8px 10px; } .widefat thead th, .widefat thead td { border-bottom: 1px solid #c3c4c7; } .widefat tfoot th, .widefat tfoot td { border-top: 1px solid #c3c4c7; border-bottom: none; } .widefat .no-items td { border-bottom-width: 0; } .widefat td { vertical-align: top; } .widefat td, .widefat td p, .widefat td ol, .widefat td ul { font-size: 13px; line-height: 1.5em; } .widefat th, .widefat thead td, .widefat tfoot td { text-align: left; line-height: 1.3em; font-size: 14px; } .widefat th input, .updates-table td input, .widefat thead td input, .widefat tfoot td input { margin: 0 0 0 8px; padding: 0; vertical-align: text-top; } .widefat .check-column { width: 2.2em; padding: 6px 0 25px; vertical-align: top; } .widefat tbody th.check-column { padding: 9px 0 22px; } .widefat thead td.check-column, .widefat tbody th.check-column, .updates-table tbody td.check-column, .widefat tfoot td.check-column { padding: 11px 0 0 3px; } .widefat thead td.check-column, .widefat tfoot td.check-column { padding-top: 4px; vertical-align: middle; } .update-php div.updated, .update-php div.error { margin-left: 0; } .js-update-details-toggle .dashicons { text-decoration: none; } .js-update-details-toggle[aria-expanded="true"] .dashicons::before { content: "\f142"; content: "\f142" / ''; } .no-js .widefat thead .check-column input, .no-js .widefat tfoot .check-column input { display: none; } .widefat .num, .column-comments, .column-links, .column-posts { text-align: center; } .widefat th#comments { vertical-align: middle; } .wrap { margin: 10px 20px 0 2px; } .wrap > h2:first-child, /* Back-compat for pre-4.4 */ .wrap [class$="icon32"] + h2, /* Back-compat for pre-4.4 */ .postbox .inside h2, /* Back-compat for pre-4.4 */ .wrap h1 { font-size: 23px; font-weight: 400; margin: 0; padding: 9px 0 4px; line-height: 1.3; } .wrap h1.wp-heading-inline { display: inline-block; margin-right: 5px; } .wp-header-end { visibility: hidden; margin: -2px 0 0; } .subtitle { margin: 0; padding-left: 25px; color: #50575e; font-size: 14px; font-weight: 400; line-height: 1; } .subtitle strong { word-break: break-all; } .wrap .add-new-h2, /* deprecated */ .wrap .add-new-h2:active, /* deprecated */ .wrap .page-title-action, .wrap .page-title-action:active { display: inline-block; position: relative; box-sizing: border-box; cursor: pointer; white-space: nowrap; text-decoration: none; text-shadow: none; top: -3px; margin-left: 4px; border: 1px solid #2271b1; border-radius: 2px; background: transparent; font-size: 13px; font-weight: 500; min-height: 32px; line-height: 2.30769231; /* 30px for 32px height */ color: #2271b1; /* use the standard color used for buttons */ padding: 0 12px; -webkit-appearance: none; } .wrap .wp-heading-inline + .page-title-action { margin-left: 0; } .wrap .add-new-h2:hover, /* deprecated */ .wrap .page-title-action:hover { border-color: #0a4b78; color: #0a4b78; } /* lower specificity: color needs to be overridden by :hover and :active */ .page-title-action:focus { color: #0a4b78; } /* Dashicon for language options on General Settings and Profile screens */ .form-table th label[for="locale"] .dashicons, .form-table th label[for="WPLANG"] .dashicons { margin-left: 5px; } .wrap .page-title-action:focus { border-color: #3582c4; box-shadow: 0 0 0 1px #3582c4; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wrap h1.long-header { padding-right: 0; } .wp-dialog { background-color: #fff; } .widgets-chooser ul, #widgets-left .widget-in-question .widget-top, #available-widgets .widget-top:hover, div#widgets-right .widget-top:hover, #widgets-left .widget-top:hover { border-color: #8c8f94; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .sorthelper { background-color: #c5d9ed; } .ac_match, .subsubsub a.current { color: #000; } .striped > tbody > :nth-child(odd), ul.striped > :nth-child(odd), .alternate { background-color: #f6f7f7; } .bar { background-color: #f0f0f1; border-right-color: var(--wp-admin-theme-color); } /* Helper classes for plugins to leverage the active WordPress color scheme */ .highlight { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); color: #3c434a; } .wp-ui-primary { color: #fff; background-color: #2c3338; } .wp-ui-text-primary { color: #2c3338; } .wp-ui-highlight { color: #fff; background-color: #2271b1; } .wp-ui-text-highlight { color: #2271b1; } .wp-ui-notification { color: #fff; background-color: #d63638; } .wp-ui-text-notification { color: #d63638; } .wp-ui-text-icon { color: #8c8f94; /* same as new icons */ } /* For emoji replacement images */ img.emoji { display: inline !important; border: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; box-shadow: none !important; } /*------------------------------------------------------------------------------ 1.0 - Text Styles ------------------------------------------------------------------------------*/ .widget .widget-top, .postbox .hndle, .stuffbox .hndle, .control-section .accordion-section-title, .sidebar-name, #nav-menu-header, #nav-menu-footer, .menu-item-handle, .checkbox, .side-info, #your-profile #rich_editing, .widefat thead th, .widefat thead td, .widefat tfoot th, .widefat tfoot td { line-height: 1.4em; } .widget .widget-top, .menu-item-handle { background: #f6f7f7; color: #1d2327; } .stuffbox .hndle { border-bottom: 1px solid #c3c4c7; } .quicktags { background-color: #c3c4c7; color: #000; font-size: 12px; } .icon32 { display: none; } /* @todo can we combine these into a class or use an existing dashicon one? */ .welcome-panel .welcome-panel-close:before, .tagchecklist .ntdelbutton .remove-tag-icon:before, #bulk-titles .ntdelbutton:before, .notice-dismiss:before { background: none; color: #1e1e1e; content: "\f335"; content: "\f335" / ''; display: block; font: normal 20px/1 dashicons; height: 1em; text-align: center; width: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .welcome-panel .welcome-panel-close:before { margin: 0; } .tagchecklist .ntdelbutton .remove-tag-icon:before { margin-left: 2px; border-radius: 50%; color: var(--wp-admin-theme-color, #3858e9); /* vertically center the icon cross browsers */ line-height: 1.1; } .tagchecklist .ntdelbutton:focus { outline: 0; } .tagchecklist .ntdelbutton:hover .remove-tag-icon:before, .tagchecklist .ntdelbutton:focus .remove-tag-icon:before, #bulk-titles .ntdelbutton:hover:before, #bulk-titles .ntdelbutton:focus:before { color: #d63638; } .tagchecklist .ntdelbutton:focus .remove-tag-icon:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .key-labels label { line-height: 24px; } strong, b { font-weight: 600; } .pre { /* https://developer.mozilla.org/en-US/docs/CSS/white-space */ white-space: pre-wrap; /* css-3 */ word-wrap: break-word; /* IE 5.5 - 7 */ } .howto { color: #646970; display: block; } p.install-help { margin: 8px 0; font-style: italic; } .no-break { white-space: nowrap; } hr { border: 0; border-top: 1px solid #dcdcde; border-bottom: 1px solid #f6f7f7; } .row-actions span.delete a, .row-actions span.trash a, .row-actions span.spam a, .plugins a.delete, #all-plugins-table .plugins a.delete, #search-plugins-table .plugins a.delete, .submitbox .submitdelete, #media-items a.delete, #media-items a.delete-permanently, #nav-menu-footer .menu-delete, #delete-link a.delete, a#remove-post-thumbnail, .privacy_requests .remove-personal-data .remove-personal-data-handle { color: #b32d2e; } abbr.required, span.required, .file-error, .row-actions .delete a:hover, .row-actions .trash a:hover, .row-actions .spam a:hover, .plugins a.delete:hover, #all-plugins-table .plugins a.delete:hover, #search-plugins-table .plugins a.delete:hover, .submitbox .submitdelete:hover, #media-items a.delete:hover, #media-items a.delete-permanently:hover, #nav-menu-footer .menu-delete:hover, #delete-link a.delete:hover, a#remove-post-thumbnail:hover, .privacy_requests .remove-personal-data .remove-personal-data-handle:hover { color: #b32d2e; border: none; } .application-password-display .success { color: #007017; margin-left: 0.5rem; } /*------------------------------------------------------------------------------ 3.0 - Actions ------------------------------------------------------------------------------*/ #major-publishing-actions { padding: 10px; clear: both; border-top: 1px solid #dcdcde; background: #f6f7f7; display: flex; align-items: center; justify-content: space-between; } #delete-action { line-height: 2.30769231; /* 30px */ } #delete-link a { text-decoration: none; } #publishing-action { text-align: right; margin-left: auto; line-height: 1.9; } #publishing-action .spinner { float: none; } #misc-publishing-actions { padding: 6px 0 0; } .misc-pub-section { padding: 6px 10px 8px; } .word-wrap-break-word, .misc-pub-filename { word-wrap: break-word; } #minor-publishing-actions { padding: 10px 10px 0; text-align: right; } #save-post { float: left; } .preview { float: right; } #sticky-span { margin-left: 18px; } .approve, .unapproved .unapprove { display: none; } .unapproved .approve, .spam .approve, .trash .approve { display: inline; } td.action-links, th.action-links { text-align: right; } #misc-publishing-actions .notice { margin-left: 10px; margin-right: 10px; } /* Filter bar */ .wp-filter { display: inline-block; position: relative; box-sizing: border-box; margin: 12px 0 25px; padding: 0 10px; width: 100%; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); border: 1px solid #c3c4c7; background: #fff; color: #50575e; font-size: 13px; } .wp-filter a { text-decoration: none; } .filter-count { display: inline-block; vertical-align: middle; min-width: 4em; } .title-count, .filter-count .count { display: inline-block; position: relative; top: -1px; padding: 4px 10px; border-radius: 30px; background: #646970; color: #fff; font-size: 14px; font-weight: 600; } /* not a part of filter bar, but derived from it, so here for now */ .title-count { display: inline; top: -3px; margin-left: 5px; margin-right: 20px; } .filter-items { float: left; } .filter-links { display: inline-block; margin: 0; } .filter-links li { display: inline-block; margin: 0; } .filter-links li > a { display: inline-block; margin: 0 10px; padding: 15px 0; border-bottom: 4px solid #fff; color: #646970; cursor: pointer; } .filter-links .current { box-shadow: none; border-bottom: 4px solid var(--wp-admin-theme-color); color: #1d2327; } .filter-links li > a:hover, .filter-links li > a:focus, .show-filters .filter-links a.current:hover, .show-filters .filter-links a.current:focus { color: var(--wp-admin-theme-color); } .wp-filter .search-form { float: right; display: flex; align-items: center; column-gap: .5rem; } .wp-filter .search-form input[type="search"] { width: 280px; max-width: 100%; } .wp-filter .search-form select { margin: 0; } .wp-filter .search-form input[type="search"] { min-height: 32px; padding: 0 8px; } .wp-filter .search-form select, .wp-filter .filter-items select { min-height: 32px; line-height: 2.14285714; /* 30px for 32px height with 14px font */ padding: 0 24px 0 8px; } .wp-filter .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } /* Use flexbox only on the plugins install page and upload page. The `filter-links` and search form children will become flex items. */ .plugin-install-php .wp-filter, .upload-php .wp-filter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .wp-filter .search-form.search-plugins select, .wp-filter .search-form.search-plugins .wp-filter-search, .no-js .wp-filter .search-form.search-plugins .button { display: inline-block; vertical-align: top; } .wp-filter .button.drawer-toggle { margin: 10px 9px 0; padding: 0 10px 0 6px; border-color: transparent; background-color: transparent; color: #646970; vertical-align: baseline; box-shadow: none; } .wp-filter .drawer-toggle:before { content: "\f111"; content: "\f111" / ''; margin: 0 5px 0 0; color: #646970; font: normal 16px/1 dashicons; vertical-align: text-bottom; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-filter .button.drawer-toggle:hover, .wp-filter .drawer-toggle:hover:before, .wp-filter .button.drawer-toggle:focus, .wp-filter .drawer-toggle:focus:before { background-color: transparent; color: var(--wp-admin-theme-color); } .wp-filter .button.drawer-toggle:hover, .wp-filter .button.drawer-toggle:focus:active { border-color: transparent; } .wp-filter .button.drawer-toggle:focus { border-color: var(--wp-admin-theme-color); } .wp-filter .button.drawer-toggle:active { background: transparent; box-shadow: none; transform: none; } .wp-filter .drawer-toggle.current:before { color: #fff; } .filter-drawer, .wp-filter .favorites-form { display: none; margin: 0 -10px 0 -20px; padding: 20px; border-top: 1px solid #f0f0f1; background: #f6f7f7; overflow: hidden; } .wp-filter .favorites-form .favorites-username { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; } .wp-filter .favorites-form .favorites-username input { margin: 0; } .show-filters .filter-drawer, .show-favorites-form .favorites-form { display: block; } .show-filters .filter-links a.current { border-bottom: none; } .show-filters .wp-filter .button.drawer-toggle { border-radius: 2px; background: #646970; color: #fff; } .show-filters .wp-filter .drawer-toggle:hover, .show-filters .wp-filter .drawer-toggle:focus { background: var(--wp-admin-theme-color); } .show-filters .wp-filter .drawer-toggle:before { color: #fff; } .filter-group { box-sizing: border-box; position: relative; float: left; margin: 0 1% 0 0; padding: 20px 10px 10px; width: 24%; background: #fff; border: 1px solid #dcdcde; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } .filter-group legend { position: absolute; top: 10px; display: block; margin: 0; padding: 0; font-size: 1em; font-weight: 600; } .filter-drawer .filter-group-feature { margin: 28px 0 0; list-style-type: none; font-size: 12px; } .filter-drawer .filter-group-feature input, .filter-drawer .filter-group-feature label { line-height: 1.4; } .filter-drawer .filter-group-feature input { position: absolute; margin: 0; } .filter-group .filter-group-feature label { display: block; margin: 14px 0 14px 23px; } .filter-drawer .buttons { clear: both; margin-bottom: 20px; } .filter-drawer .filter-group + .buttons { margin-bottom: 0; padding-top: 20px; } .filter-drawer .buttons .button span { display: inline-block; opacity: 0.8; font-size: 12px; text-indent: 10px; } .wp-filter .button.clear-filters { display: none; margin-left: 10px; } .wp-filter .button-link.edit-filters { padding: 0 5px; line-height: 2.2; } .filtered-by { display: none; margin: 0; } .filtered-by > span { font-weight: 600; } .filtered-by a { margin-left: 10px; } .filtered-by .tags { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; } .filtered-by .tag { padding: 4px 8px; border: 1px solid #dcdcde; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); background: #fff; font-size: 11px; } .filters-applied .filter-group, .filters-applied .filter-drawer .buttons, .filters-applied .filter-drawer br { display: none; } .filters-applied .filtered-by { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } .filters-applied .filter-drawer { padding: 20px; } .show-filters .favorites-form, .show-filters .content-filterable, .show-filters.filters-applied.loading-content .content-filterable, .loading-content .content-filterable, .error .content-filterable { display: none; } .show-filters.filters-applied .content-filterable { display: block; } .loading-content .spinner { display: block; margin: 40px auto 0; float: none; } @media only screen and (max-width: 1138px) { .wp-filter .search-form { margin: 11px 0; } } @media only screen and (max-width: 1250px) { .wp-filter:has(.plugin-install-search) .search-form { margin: 11px 0; } } @media only screen and (max-width: 1120px) { .filter-drawer { border-bottom: 1px solid #f0f0f1; } .filter-group { margin-bottom: 0; margin-top: 5px; width: 100%; } .filter-group li { margin: 10px 0; } } @media only screen and (max-width: 1000px) { .filter-items { float: none; } .wp-filter .media-toolbar-primary, .wp-filter .media-toolbar-secondary, .wp-filter .search-form { float: none; /* Remove float from media-views.css */ position: relative; max-width: 100%; } .wp-filter .search-form { margin: 11px 0; flex-wrap: wrap; row-gap: 10px; } } @media only screen and (max-width: 782px) { .filter-group li { padding: 0; width: 50%; } } @media only screen and (max-width: 320px) { .filter-count { display: none; } .wp-filter .drawer-toggle { margin: 10px 0; } .filter-group li, .wp-filter .search-form input[type="search"] { width: 100%; } } /*------------------------------------------------------------------------------ 4.0 - Notifications ------------------------------------------------------------------------------*/ .notice, div.updated, div.error { background: #fff; border: none; border-left: 4px solid #c3c4c7; box-shadow: none; margin: 5px 15px 2px; padding: 8px 12px; } div[class="update-message"] { /* back-compat for pre-4.6 */ padding: 0.5em 12px 0.5em 0; } .notice p, .notice-title, div.updated p, div.error p, .form-table td .notice p { margin: 0.5em 0; padding: 0; font-size: 13px; line-height: 1.54; color: #1e1e1e; } div.notice a, div.error a, div.updated a { color: var(--wp-admin-theme-color-darker-10); text-decoration: underline; } div.notice a:hover, div.error a:hover, div.updated a:hover { color: var(--wp-admin-theme-color-darker-20); } div.notice a:focus, div.error a:focus, div.updated a:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); outline: 2px solid transparent; border-radius: 2px; } .notice-alt { box-shadow: none; } .notice-large { padding: 10px 20px; } .notice-title { display: inline-block; color: #1d2327; font-size: 18px; } .wp-core-ui .notice.is-dismissible { padding-right: 48px; position: relative; } .notice-dismiss { position: absolute; top: 12px; right: 12px; border: none; margin: 0; padding: 0; background: none; color: #1e1e1e; cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 2px; } .notice-dismiss:hover:before, .notice-dismiss:active:before { color: #1e1e1e; opacity: 0.7; } .notice-dismiss:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .notice-dismiss:focus:before { color: #1e1e1e; } .notice-success, div.updated { border-left-color: #4ab866; background-color: #eff9f1; } .notice-success.notice-alt, div.updated.notice-alt { background-color: #eff9f1; } .notice-warning { border-left-color: #f0b849; background-color: #fef8ee; } .notice-warning.notice-alt { background-color: #fef8ee; } .notice-error, div.error { border-left-color: #cc1818; background-color: #fcf0f0; } .notice-error.notice-alt, div.error.notice-alt { background-color: #fcf0f0; } .notice-info { border-left-color: #3858e9; background-color: #fff; } .notice-info.notice-alt { background-color: #fff; } #plugin-information-footer .update-now:not(.button-disabled):before { color: #d63638; content: "\f463"; content: "\f463" / ''; display: inline-block; font: normal 20px/1 dashicons; margin: -3px 5px 0 -2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: middle; } #plugin-information-footer .notice { margin-top: -5px; } .update-message p:before, .updating-message p:before, .updated-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.updated-message:before, .button.installed:before, .button.installing:before, .button.activating-message:before, .button.activated-message:before { display: inline-block; font: normal 20px/1 'dashicons'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; } .wrap .notice, .wrap div.updated, .wrap div.error, .media-upload-form .notice, .media-upload-form div.error { margin: 5px 0 15px; } .wrap #templateside .notice { display: block; margin: 0; padding: 5px 8px; font-weight: 600; text-decoration: none; } .wrap #templateside span.notice { margin-left: -12px; } #templateside li.notice a { padding: 0; } /* Update icon. */ .update-message p:before, .updating-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.installing:before, .button.activating-message:before { color: #d63638; content: "\f463"; content: "\f463" / ''; } /* Spins the update icon. */ .updating-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.installing:before, .button.activating-message:before, .plugins .column-auto-updates .dashicons-update.spin, .theme-overlay .theme-autoupdate .dashicons-update.spin { animation: rotation 2s infinite linear; } @media (prefers-reduced-motion: reduce) { .updating-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.installing:before, .button.activating-message:before, .plugins .column-auto-updates .dashicons-update.spin, .theme-overlay .theme-autoupdate .dashicons-update.spin { animation: none; } } .theme-overlay .theme-autoupdate .dashicons-update.spin { margin-right: 3px; } /* Updated icon (check mark). */ .updated-message p:before, .installed p:before, .button.updated-message:before, .button.activated-message:before { color: #68de7c; content: "\f147"; content: "\f147" / ''; } /* Error icon. */ .update-message.notice-error p:before { color: #d63638; content: "\f534"; content: "\f534" / ''; } .wrap .notice p:before, .import-php .updating-message:before { margin-right: 6px; } .import-php .updating-message:before { vertical-align: bottom; } #update-nag, .update-nag { display: inline-block; line-height: 1.4; padding: 11px 15px; font-size: 14px; margin: 25px 20px 0 2px; } ul#dismissed-updates { display: none; } #dismissed-updates li > p { margin-top: 0; } #dismiss, #undismiss { margin-left: 0.5em; } form.upgrade { margin-top: 8px; } form.upgrade .hint { font-style: italic; font-size: 85%; margin: -0.5em 0 2em; } .update-php .spinner { float: none; margin: -4px 0; } h2.wp-current-version { margin-bottom: .3em; } p.update-last-checked { margin-top: 0; } p.auto-update-status { margin-top: 2em; line-height: 1.8; } #ajax-loading, .ajax-loading, .ajax-feedback, .imgedit-wait-spin, .list-ajax-loading { /* deprecated */ visibility: hidden; } #ajax-response.alignleft { margin-left: 2em; } .button.updating-message:before, .button.updated-message:before, .button.installed:before, .button.installing:before, .button.activated-message:before, .button.activating-message:before { margin: 0 5px 0 -2px; line-height: 1.9; /* 38px (20px * 1.9) - matches button */ vertical-align: top; } #plugin-information-footer .button { padding: 0 14px; line-height: 2.71428571; /* 38px */ font-size: 14px; vertical-align: middle; min-height: 40px; margin-bottom: 4px; } #plugin-information-footer .button.installed:before, #plugin-information-footer .button.installing:before, #plugin-information-footer .button.updating-message:before, #plugin-information-footer .button.updated-message:before, #plugin-information-footer .button.activated-message:before, #plugin-information-footer .button.activating-message:before { margin: 0 5px 0 -2px; line-height: 1.9; /* 38px (20px * 1.9) - matches button */ vertical-align: top; } #plugin-information-footer .button.update-now.updating-message:before { margin: 0 5px 0 -2px; } .button-primary.updating-message:before, .button-primary.activating-message:before { color: #fff; } .button-primary.updated-message:before, .button-primary.activated-message:before { color: #9ec2e6; } .button.updated-message, .button.activated-message { transition-property: border, background, color; transition-duration: .05s; transition-timing-function: ease-in-out; } /* @todo: this does not need its own section anymore */ /*------------------------------------------------------------------------------ 6.0 - Admin Header ------------------------------------------------------------------------------*/ #adminmenu a, #taglist a, #catlist a { text-decoration: none; } /*------------------------------------------------------------------------------ 6.1 - Screen Options Tabs ------------------------------------------------------------------------------*/ #screen-options-wrap, #contextual-help-wrap { margin: 0; padding: 8px 20px 12px; position: relative; } #contextual-help-wrap { overflow: auto; margin-left: 0; } #screen-meta-links { float: right; margin: 0 20px 0 0; } /* screen options and help tabs revert */ #screen-meta { display: none; margin: 0 20px -1px 0; position: relative; background-color: #fff; border: 1px solid #c3c4c7; border-top: none; box-shadow: 0 0 0 transparent; } #screen-options-link-wrap, #contextual-help-link-wrap { float: left; margin: 0 0 0 6px; } #screen-meta-links .screen-meta-toggle { position: relative; top: 0; } #screen-meta-links .show-settings { border: 1px solid #c3c4c7; border-top: none; height: auto; min-height: 32px; /* Compact size for header buttons */ margin-bottom: 0; padding: 0 6px 0 16px; background: #fff; border-radius: 0 0 4px 4px; color: #646970; line-height: 2.30769231; /* 30px - matches compact button */ box-shadow: 0 0 0 transparent; transition: box-shadow 0.1s linear; } #screen-meta-links .show-settings:hover, #screen-meta-links .show-settings:active, #screen-meta-links .show-settings:focus { color: #2c3338; } #screen-meta-links .show-settings:focus { border-color: var(--wp-admin-theme-color, #3858e9); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #screen-meta-links .show-settings:active { transform: none; } #screen-meta-links .show-settings:after { right: 0; content: "\f140"; content: "\f140" / ''; font: normal 20px/1.5 dashicons; /* line-height 1.5 = 30px to match compact button */ display: inline-block; padding: 0 5px 0 0; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none; } #screen-meta-links .screen-meta-active:after { content: "\f142"; content: "\f142" / ''; } /* end screen options and help tabs */ .toggle-arrow { background-repeat: no-repeat; background-position: top left; background-color: transparent; height: 22px; line-height: 22px; display: block; } .toggle-arrow-active { background-position: bottom left; } #screen-options-wrap h5, /* Back-compat for old plugins */ #screen-options-wrap legend, #contextual-help-wrap h5 { margin: 0; padding: 8px 0; font-size: 13px; font-weight: 600; } .metabox-prefs label { display: inline-block; padding-right: 15px; line-height: 2.35; } #number-of-columns { display: inline-block; vertical-align: middle; line-height: 30px; } .metabox-prefs input[type=checkbox] { margin-top: 0; margin-right: 6px; } .metabox-prefs label input, .metabox-prefs label input[type=checkbox] { margin: -4px 5px 0 0; } .metabox-prefs .columns-prefs label input { margin: -1px 2px 0 0; } .metabox-prefs label a { display: none; } .metabox-prefs .screen-options input, .metabox-prefs .screen-options label { margin-top: 0; margin-bottom: 0; vertical-align: middle; } .metabox-prefs .screen-options .screen-per-page { margin-right: 15px; padding-right: 0; } .metabox-prefs .screen-options label { line-height: 2.2; padding-right: 0; } .screen-options + .screen-options { margin-top: 10px; } .metabox-prefs .submit { margin-top: 1em; padding: 0; } /*------------------------------------------------------------------------------ 6.2 - Help Menu ------------------------------------------------------------------------------*/ #contextual-help-wrap { padding: 0; } #contextual-help-columns { position: relative; } #contextual-help-back { position: absolute; top: 0; bottom: 0; left: 150px; right: 170px; border: 1px solid #c3c4c7; border-top: none; border-bottom: none; background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } #contextual-help-wrap.no-sidebar #contextual-help-back { right: 0; border-right-width: 0; border-bottom-right-radius: 2px; } .contextual-help-tabs { float: left; width: 150px; margin: 0; } .contextual-help-tabs ul { margin: 1em 0; } .contextual-help-tabs li { margin-bottom: 0; list-style-type: none; border-style: solid; border-width: 0 0 0 2px; border-color: transparent; } .contextual-help-tabs a { display: block; padding: 5px 5px 5px 12px; line-height: 1.4; text-decoration: none; border: 1px solid transparent; border-right: none; border-left: none; } .contextual-help-tabs a:hover { color: #2c3338; } .contextual-help-tabs .active { padding: 0; margin: 0 -1px 0 0; border-left: 2px solid var(--wp-admin-theme-color); background: color-mix(in srgb, var(--wp-admin-theme-color) 8%, white); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 1px 0 rgba(0, 0, 0, 0.02); } .contextual-help-tabs .active a { border-color: #c3c4c7; color: #2c3338; } .contextual-help-tabs-wrap { padding: 0 20px; overflow: auto; } .help-tab-content { display: none; margin: 0 22px 12px 0; line-height: 1.6; } .help-tab-content.active { display: block; } .help-tab-content ul li { list-style-type: disc; margin-left: 18px; } .contextual-help-sidebar { width: 150px; float: right; padding: 0 8px 0 12px; overflow: auto; } /*------------------------------------------------------------------------------ 8.0 - Layout Blocks ------------------------------------------------------------------------------*/ html.wp-toolbar { padding-top: var(--wp-admin--admin-bar--height); box-sizing: border-box; -ms-overflow-style: scrollbar; /* See ticket #48545 */ } .widefat th, .widefat td { color: #50575e; } .widefat th, .widefat thead td, .widefat tfoot td { font-weight: 400; } .widefat thead tr th, .widefat thead tr td, .widefat tfoot tr th, .widefat tfoot tr td { color: #2c3338; } .widefat td p { margin: 2px 0 0.8em; } .widefat p, .widefat ol, .widefat ul { color: #2c3338; } .widefat .column-comment p { margin: 0.6em 0; } .widefat .column-comment ul { list-style: initial; margin-left: 2em; } /* Screens with postboxes */ .postbox-container { float: left; } .postbox-container .meta-box-sortables { box-sizing: border-box; } #wpbody-content .metabox-holder { padding-top: 10px; } .metabox-holder .postbox-container .meta-box-sortables { /* The jQuery UI Sortables need some initial height to work properly. */ min-height: 1px; position: relative; } #post-body-content { width: 100%; min-width: 463px; float: left; } #post-body.columns-2 #postbox-container-1 { float: right; margin-right: -300px; width: 280px; } #post-body.columns-2 #side-sortables { min-height: 250px; } /* one column on the dash */ @media only screen and (max-width: 799px) { #wpbody-content .metabox-holder .postbox-container .empty-container { outline: none; height: 0; min-height: 0; } } .js .widget .widget-top, .js .postbox .hndle { cursor: move; } .js .widget .widget-top.is-non-sortable, .js .postbox .hndle.is-non-sortable { cursor: auto; } /* Configurable dashboard widgets "Configure" edit-box link. */ .hndle a { font-size: 12px; font-weight: 400; } .postbox-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #c3c4c7; } .postbox-header .hndle { flex-grow: 1; /* Handle the alignment for the configurable dashboard widgets "Configure" edit-box link. */ display: flex; justify-content: space-between; align-items: center; } .postbox-header .handle-actions { flex-shrink: 0; } /* Post box order and toggle buttons. */ .postbox .handle-order-higher, .postbox .handle-order-lower, .postbox .handlediv { width: 1.62rem; height: 1.62rem; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; } .postbox .handle-order-higher, .postbox .handle-order-lower { color: #646970; width: 1.62rem; } /* Post box order buttons in the block editor meta boxes area. */ .edit-post-meta-boxes-area .postbox .handle-order-higher, .edit-post-meta-boxes-area .postbox .handle-order-lower { width: 44px; height: 44px; color: #1d2327 } .postbox .handle-order-higher[aria-disabled="true"], .postbox .handle-order-lower[aria-disabled="true"] { cursor: default; color: #a7aaad; } .sortable-placeholder:not(.empty-container .sortable-placeholder) { border: 1px dashed #c3c4c7; border-radius: 8px; margin-bottom: 20px; } .postbox, .stuffbox { margin-bottom: 20px; padding: 0; line-height: 1; } .postbox.closed .postbox-header { border-bottom: 0; } /* user-select is not a part of the CSS standard - may change behavior in the future */ .postbox .hndle, .stuffbox .hndle { -webkit-user-select: none; user-select: none; } .postbox .inside { padding: 0 12px 12px; line-height: 1.4; font-size: 13px; } .stuffbox .inside { padding: 0; line-height: 1.4; font-size: 13px; margin-top: 0; } .postbox .inside { margin: 11px 0; position: relative; } .postbox .inside > p:last-child, .rss-widget ul li:last-child { margin-bottom: 1px !important; } .postbox.closed h3 { border: none; box-shadow: none; } .postbox table.form-table { margin-bottom: 0; } .postbox table.widefat { box-shadow: none; } .temp-border { border: 1px dotted #c3c4c7; } .columns-prefs label { padding: 0 10px 0 0; } /* @todo: what is this doing here */ #dashboard_right_now .versions .b, #post-status-display, #post-visibility-display, #adminmenu .wp-submenu li.current, #adminmenu .wp-submenu li.current a, #adminmenu .wp-submenu li.current a:hover, .media-item .percent, .plugins .name, #pass-strength-result.strong, #pass-strength-result.short, #ed_reply_toolbar #ed_reply_strong, .item-controls .item-order a, .feature-filter .feature-name, #comment-status-display { font-weight: 600; } /*------------------------------------------------------------------------------ 21.0 - Admin Footer ------------------------------------------------------------------------------*/ #wpfooter { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 20px; color: #50575e; } #wpfooter p { font-size: 13px; margin: 0; line-height: 1.55; } #footer-thankyou { font-style: italic; } /*------------------------------------------------------------------------------ 25.0 - Tabbed Admin Screen Interface (Experimental) ------------------------------------------------------------------------------*/ .nav-tab { float: left; border: 1px solid #c3c4c7; border-bottom: none; margin-left: 0.5em; /* half the font size so set the font size properly */ padding: 5px 10px; font-size: 14px; line-height: 1.71428571; font-weight: 600; background: #dcdcde; color: #50575e; text-decoration: none; white-space: nowrap; } h3 .nav-tab, /* Back-compat for pre-4.4 */ .nav-tab-small .nav-tab { padding: 5px 14px; font-size: 12px; line-height: 1.33; } .nav-tab:hover, .nav-tab:focus { background-color: #fff; color: #3c434a; } .nav-tab-active, .nav-tab:focus:active { box-shadow: none; } .nav-tab-active { margin-bottom: -1px; color: #3c434a; } .nav-tab-active, .nav-tab-active:hover, .nav-tab-active:focus, .nav-tab-active:focus:active { border-bottom: 1px solid #f0f0f1; background: #f0f0f1; color: #000; } h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */ .wrap h2.nav-tab-wrapper, /* higher specificity to override .wrap > h2:first-child */ .nav-tab-wrapper { border-bottom: 1px solid #c3c4c7; margin: 0; padding-top: 9px; padding-bottom: 0; line-height: inherit; } /* Back-compat for plugins. Deprecated. Use .wp-clearfix instead. */ .nav-tab-wrapper:not(.wp-clearfix):after { content: ""; display: table; clear: both; } /*------------------------------------------------------------------------------ 26.0 - Misc ------------------------------------------------------------------------------*/ .spinner { background: url(../images/spinner.gif) no-repeat; background-size: 20px 20px; display: inline-block; visibility: hidden; float: right; vertical-align: middle; opacity: 0.7; filter: alpha(opacity=70); width: 20px; height: 20px; margin: 10px 10px 0; } .spinner.is-active, .loading-content .spinner { visibility: visible; } #template > div { margin-right: 16em; } #template .notice { margin-top: 1em; margin-right: 3%; } #template .notice p { width: auto; } #template .submit .spinner { float: none; vertical-align: top; } .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */ .metabox-holder h2.hndle { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; } /* Back-compat for nav-menus screen */ .nav-menus-php .metabox-holder h3 { padding: 0; } .accordion-container h3.accordion-section-title { padding: 0 !important; } .accordion-section-title button.accordion-trigger, .nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger { background: inherit; color: #1d2327; display: block; position: relative; text-align: left; width: 100%; outline: none; border: 0; padding: 10px 10px 11px 14px; line-height: 1.5; cursor: pointer; } .accordion-section-title button.accordion-trigger:focus, .nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); outline: 2px solid transparent; } .accordion-section-title span.dashicons.dashicons-arrow-down, .nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down { position: absolute; right: 10px; left: auto; color: #787c82; border-radius: 50px; top: 50%; transform: translateY(-50%); } .accordion-section-title:hover span.dashicons.dashicons-arrow-down, .nav-menus-php .metabox-holder .accordion-section-title:hover span.dashicons.dashicons-arrow-down { color: #1d2327; } .accordion-section-title span.dashicons.dashicons-arrow-down::before, .nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down::before { position: relative; left: -1px; } .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down, .nav-menus-php .metabox-holder .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down { transform: rotate(180deg) translate(0, 50%); } #templateside ul li a { text-decoration: none; } .plugin-install #description, .plugin-install-network #description { width: 60%; } table .vers, table .column-visible, table .column-rating { text-align: left; } .attention, .error-message { color: #d63638; font-weight: 600; } /* Scrollbar fix for bulk upgrade iframe */ body.iframe { height: 98%; } /* Upgrader styles, Specific to Language Packs */ .lp-show-latest p { display: none; } .lp-show-latest p:last-child, .lp-show-latest .lp-error p { display: block; } /* - Only used once or twice in all of WP - deprecate for global style ------------------------------------------------------------------------------*/ .media-icon { width: 62px; /* icon + border */ text-align: center; } .media-icon img { border: 1px solid #dcdcde; border: 1px solid rgba(0, 0, 0, 0.07); } #howto { font-size: 11px; margin: 0 5px; display: block; } .importers { font-size: 16px; width: auto; } .importers td { padding-right: 14px; line-height: 1.4; } .importers .import-system { max-width: 250px; } .importers td.desc { max-width: 500px; } .importer-title, .importer-desc, .importer-action { display: block; } .importer-title { color: #000; font-size: 14px; font-weight: 400; margin-bottom: .2em; } .importer-action { line-height: 1.55; /* Same as with .updating-message */ color: #50575e; margin-bottom: 1em; } #post-body #post-body-content #namediv h3, /* Back-compat for pre-4.4 */ #post-body #post-body-content #namediv h2 { margin-top: 0; } .edit-comment-author { color: #1d2327; border-bottom: 1px solid #f0f0f1; } #namediv h3 label, /* Back-compat for pre-4.4 */ #namediv h2 label { vertical-align: baseline; } #namediv table { width: 100%; } #namediv td.first { width: 10px; white-space: nowrap; } #namediv input { width: 100%; } #namediv p { margin: 10px 0; } /* - Used - but could/should be deprecated with a CSS reset ------------------------------------------------------------------------------*/ .zerosize { height: 0; width: 0; margin: 0; border: 0; padding: 0; overflow: hidden; position: absolute; } br.clear { height: 2px; line-height: 0.15; } .checkbox { border: none; margin: 0; padding: 0; } fieldset { border: 0; padding: 0; margin: 0; } .post-categories { display: inline; margin: 0; padding: 0; } .post-categories li { display: inline; } /* Star Ratings - Back-compat for pre-3.8 */ div.star-holder { position: relative; height: 17px; width: 100px; background: url(../images/stars.png?ver=20121108) repeat-x bottom left; } div.star-holder .star-rating { background: url(../images/stars.png?ver=20121108) repeat-x top left; height: 17px; float: left; } /* Star Ratings */ .star-rating { white-space: nowrap; } .star-rating .star { display: inline-block; width: 20px; height: 20px; -webkit-font-smoothing: antialiased; font-size: 20px; line-height: 1; font-family: dashicons; text-decoration: inherit; font-weight: 400; font-style: normal; vertical-align: top; transition: color .1s ease-in; text-align: center; color: #dba617; } .star-rating .star-full:before { content: "\f155"; content: "\f155" / ''; } .star-rating .star-half:before { content: "\f459"; content: "\f459" / ''; } .rtl .star-rating .star-half { transform: rotateY(180deg); } .star-rating .star-empty:before { content: "\f154"; content: "\f154" / ''; } div.action-links { font-weight: 400; margin: 6px 0 0; } /* Plugin install thickbox */ #plugin-information { background: #fff; position: fixed; top: 0; right: 0; bottom: 0; left: 0; height: 100%; padding: 0; } #plugin-information-scrollable { overflow: auto; -webkit-overflow-scrolling: touch; height: 100%; } #plugin-information-title { padding: 0 26px; background: #f6f7f7; font-size: 22px; font-weight: 600; line-height: 2.4; position: relative; height: 56px; } #plugin-information-title.with-banner { margin-right: 0; height: 250px; background-size: cover; } #plugin-information-title h2 { font-size: 1em; font-weight: 600; padding: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #plugin-information-title.with-banner h2 { position: relative; font-family: "Helvetica Neue", sans-serif; display: inline-block; font-size: 30px; line-height: 1.68; box-sizing: border-box; max-width: 100%; padding: 0 15px; margin-top: 174px; color: #fff; background: rgba(29, 35, 39, 0.9); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); border-radius: 8px; } #plugin-information-title div.vignette { display: none; } #plugin-information-title.with-banner div.vignette { position: absolute; display: block; top: 0; left: 0; height: 250px; width: 100%; background: transparent; box-shadow: inset 0 0 50px 4px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1); } #plugin-information-tabs { padding: 0 16px; position: relative; right: 0; left: 0; min-height: 36px; font-size: 0; z-index: 1; border-bottom: 1px solid #dcdcde; background: #f6f7f7; } #plugin-information-tabs a { position: relative; display: inline-block; padding: 9px 10px; margin: 0; height: 18px; line-height: 1.3; font-size: 14px; text-decoration: none; transition: none; } #plugin-information-tabs a.current { margin: 0 -1px -1px; background: #fff; border: 1px solid #dcdcde; border-bottom-color: #fff; padding-top: 8px; color: #2c3338; } #plugin-information-tabs.with-banner a.current { border-top: none; padding-top: 9px; } #plugin-information-tabs a:active, #plugin-information-tabs a:focus { outline: none; } #plugin-information-content { overflow: hidden; /* equal height column trick */ background: #fff; position: relative; top: 0; right: 0; left: 0; min-height: 100%; /* Height of title + tabs + install now */ min-height: calc( 100% - 152px ); } #plugin-information-content.with-banner { /* Height of banner + tabs + install now */ min-height: calc( 100% - 346px ); } #section-holder { position: relative; top: 0; right: 250px; bottom: 0; left: 0; margin-top: 10px; margin-right: 250px; /* FYI box */ padding: 10px 26px 99999px; /* equal height column trick */ margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */ } #section-holder .notice { margin: 5px 0 15px; } #section-holder .updated { margin: 16px 0; } #plugin-information .fyi { float: right; position: relative; top: 0; right: 0; padding: 16px 16px 99999px; /* equal height column trick */ margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */ width: 217px; border-left: 1px solid #dcdcde; background: #f6f7f7; color: #646970; } #plugin-information .fyi strong { color: #3c434a; } #plugin-information .fyi h3 { font-weight: 600; text-transform: uppercase; font-size: 12px; color: #646970; margin: 24px 0 8px; } #plugin-information .fyi h2 { font-size: 0.9em; margin-bottom: 0; margin-right: 0; } #plugin-information .fyi ul { padding: 0; margin: 0; list-style: none; } #plugin-information .fyi li { margin: 0 0 10px; } #plugin-information .fyi-description { margin-top: 0; } #plugin-information .counter-container { margin: 3px 0; } #plugin-information .counter-label { float: left; margin-right: 5px; min-width: 55px; } #plugin-information .counter-back { height: 17px; width: 92px; background-color: #dcdcde; float: left; } #plugin-information .counter-bar { height: 17px; background-color: #f0c33c; /* slightly lighter than stars due to larger expanse */ float: left; } #plugin-information .counter-count { margin-left: 5px; } #plugin-information .fyi ul.contributors { margin-top: 10px; } #plugin-information .fyi ul.contributors li { display: inline-block; margin-right: 8px; vertical-align: middle; } #plugin-information .fyi ul.contributors li { display: inline-block; margin-right: 8px; vertical-align: middle; } #plugin-information .fyi ul.contributors li img { vertical-align: middle; margin-right: 4px; } #plugin-information-footer { padding: 13px 16px; position: absolute; right: 0; bottom: 0; left: 0; height: 40px; /* actual height: 40+13+13+1=67 */ border-top: 1px solid #dcdcde; background: #f6f7f7; } /* rtl:ignore */ #plugin-information .section { direction: ltr; } /* rtl:ignore */ #plugin-information .section ul, #plugin-information .section ol { list-style-type: disc; margin-left: 24px; } #plugin-information .section, #plugin-information .section p { font-size: 14px; line-height: 1.7; } #plugin-information #section-screenshots ol { list-style: none; margin: 0; } #plugin-information #section-screenshots li img { vertical-align: text-top; margin-top: 16px; max-width: 100%; width: auto; height: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } /* rtl:ignore */ #plugin-information #section-screenshots li p { font-style: italic; padding-left: 20px; } #plugin-information pre { padding: 7px; overflow: auto; border: 1px solid #c3c4c7; } #plugin-information blockquote { border-left: 2px solid #dcdcde; color: #646970; font-style: italic; margin: 1em 0; padding: 0 0 0 1em; } /* rtl:ignore */ #plugin-information .review { overflow: hidden; /* clearfix */ width: 100%; margin-bottom: 20px; border-bottom: 1px solid #dcdcde; } #plugin-information .review-title-section { overflow: hidden; /* clearfix */ } /* rtl:ignore */ #plugin-information .review-title-section h4 { display: inline-block; float: left; margin: 0 6px 0 0; } #plugin-information .reviewer-info p { clear: both; margin: 0; padding-top: 2px; } /* rtl:ignore */ #plugin-information .reviewer-info .avatar { float: left; margin: 4px 6px 0 0; } /* rtl:ignore */ #plugin-information .reviewer-info .star-rating { float: left; } /* rtl:ignore */ #plugin-information .review-meta { float: left; margin-left: 0.75em; } /* rtl:ignore */ #plugin-information .review-body { float: left; width: 100%; } .plugin-version-author-uri { font-size: 13px; } /* For non-js plugin installation screen ticket #36430. */ .update-php .button.button-primary { margin-right: 1em; } @media screen and (max-width: 771px) { #plugin-information-title.with-banner { height: 100px; } #plugin-information-title.with-banner h2 { margin-top: 30px; font-size: 20px; line-height: 2; max-width: 85%; } #plugin-information-title.with-banner div.vignette { height: 100px; } #plugin-information-tabs { overflow: hidden; /* clearfix */ padding: 0; height: auto; /* let tabs wrap */ } #plugin-information-tabs a.current { margin-bottom: 0; border-bottom: none; } #plugin-information .fyi { float: none; border: 1px solid #dcdcde; position: static; width: auto; margin: 26px 26px 0; padding-bottom: 0; /* reset from the two column height fix */ } #section-holder { position: static; margin: 0; padding-bottom: 70px; /* reset from the two column height fix, plus accommodate footer */ } #plugin-information .fyi h3, #plugin-information .fyi small { display: none; } #plugin-information-footer { padding: 12px 16px 0; height: 46px; } } /* Thickbox for the Plugin details modal. */ #TB_window.plugin-details-modal { background: #fff; } #TB_window.plugin-details-modal.thickbox-loading:before { content: ""; display: block; width: 20px; height: 20px; position: absolute; left: 50%; top: 50%; z-index: -1; margin: -10px 0 0 -10px; background: #fff url(../images/spinner.gif) no-repeat center; background-size: 20px 20px; transform: translateZ(0); } @media print, (min-resolution: 120dpi) { #TB_window.plugin-details-modal.thickbox-loading:before { background-image: url(../images/spinner-2x.gif); } } .plugin-details-modal #TB_title { float: left; height: 1px; } .plugin-details-modal #TB_ajaxWindowTitle { display: none; } .plugin-details-modal #TB_closeWindowButton { left: auto; right: -30px; color: #f0f0f1; } .plugin-details-modal #TB_closeWindowButton:hover, .plugin-details-modal #TB_closeWindowButton:focus { outline: none; box-shadow: none; } .plugin-details-modal #TB_closeWindowButton:hover::after, .plugin-details-modal #TB_closeWindowButton:focus::after { outline: 2px solid; outline-offset: -4px; border-radius: 4px; } .plugin-details-modal .tb-close-icon { display: none; } .plugin-details-modal #TB_closeWindowButton:after { content: "\f335"; content: "\f335" / ''; font: normal 32px/29px 'dashicons'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* move plugin install close icon to top on narrow screens */ @media screen and (max-width: 830px) { .plugin-details-modal #TB_closeWindowButton { right: 0; top: -30px; } } /* @todo: move this. */ img { border: none; } /* Metabox collapse arrow indicators */ .sidebar-name .toggle-indicator::before, .meta-box-sortables .postbox .toggle-indicator::before, .meta-box-sortables .postbox .order-higher-indicator::before, .meta-box-sortables .postbox .order-lower-indicator::before, .bulk-action-notice .toggle-indicator::before, .privacy-text-box .toggle-indicator::before { content: "\f142"; content: "\f142" / ''; display: inline-block; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none; } .js .widgets-holder-wrap.closed .toggle-indicator::before, .meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before, .bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before, .privacy-text-box.closed .toggle-indicator::before { content: "\f140"; content: "\f140" / ''; } .postbox .handle-order-higher .order-higher-indicator::before { content: "\f343"; content: "\f343" / ''; color: inherit; } .postbox .handle-order-lower .order-lower-indicator::before { content: "\f347"; content: "\f347" / ''; color: inherit; } .postbox .handle-order-higher .order-higher-indicator::before, .postbox .handle-order-lower .order-lower-indicator::before { position: relative; top: 0.11rem; width: 20px; height: 20px; } .postbox .handlediv .toggle-indicator::before { width: 20px; border-radius: 50%; } .postbox .handlediv .toggle-indicator::before { position: relative; top: 0.05rem; text-indent: -1px; /* account for the dashicon glyph uneven horizontal alignment */ } .rtl .postbox .handlediv .toggle-indicator::before { text-indent: 1px; /* account for the dashicon glyph uneven horizontal alignment */ } .bulk-action-notice .toggle-indicator::before { line-height: 16px; vertical-align: top; color: #787c82; } .postbox .handle-order-higher:focus, .postbox .handle-order-lower:focus, .postbox .handlediv:focus { box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); border-radius: 50%; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .postbox .handle-order-higher:focus .order-higher-indicator::before, .postbox .handle-order-lower:focus .order-lower-indicator::before, .postbox .handlediv:focus .toggle-indicator::before { box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } /* @todo: appears to be Press This only and overridden */ #photo-add-url-div input[type="text"] { width: 300px; } /* Theme/Plugin file editor */ .alignleft h2 { margin: 0; } #template textarea { font-family: Consolas, Monaco, monospace; font-size: 13px; background: #f6f7f7; tab-size: 4; } #template textarea, #template .CodeMirror { width: 100%; min-height: 60vh; height: calc( 100vh - 295px ); border: 1px solid #dcdcde; box-sizing: border-box; } #templateside > h2 { padding-top: 6px; padding-bottom: 7px; margin: 0; } #templateside ol, #templateside ul { margin: 0; padding: 0; } #templateside > ul { box-sizing: border-box; margin-top: 0; overflow: auto; padding: 0; min-height: 60vh; height: calc(100vh - 295px); background-color: #f6f7f7; border: 1px solid #dcdcde; border-left: none; } #templateside ul ul { padding-left: 12px; } #templateside > ul > li > ul[role=group] { padding-left: 0; } /* * Styles for Theme and Plugin file editors. */ /* Hide collapsed items. */ [role="treeitem"][aria-expanded="false"] > ul { display: none; } /* Use arrow dashicons for folder states, but hide from screen readers. */ [role="treeitem"] span[aria-hidden] { display: inline; font-family: dashicons; font-size: 20px; position: absolute; pointer-events: none; } [role="treeitem"][aria-expanded="false"] > .folder-label .icon:after { content: "\f139"; content: "\f139" / ''; } [role="treeitem"][aria-expanded="true"] > .folder-label .icon:after { content: "\f140"; content: "\f140" / ''; } [role="treeitem"] .folder-label { display: block; padding: 3px 3px 3px 12px; cursor: pointer; } /* Remove outline, and create our own focus and hover styles */ [role="treeitem"] { outline: 0; } [role="treeitem"] a:focus, [role="treeitem"] .folder-label.focus { color: #043959; /* Reset default focus style. */ box-shadow: none; /* Use an inset outline instead, so it's visible also over the current file item. */ outline: 2px solid var(--wp-admin-theme-color, #3858e9); outline-offset: -2px; } [role="treeitem"].hover, [role="treeitem"] .folder-label.hover { background-color: #f0f0f1; } .tree-folder { margin: 0; position: relative; } [role="treeitem"] li { position: relative; } /* Styles for folder indicators/depth */ .tree-folder .tree-folder::after { content: ""; display: block; position: absolute; left: 2px; border-left: 1px solid #c3c4c7; top: -13px; bottom: 10px; } .tree-folder > li::before { content: ""; position: absolute; display: block; border-left: 1px solid #c3c4c7; left: 2px; top: -5px; height: 18px; width: 7px; border-bottom: 1px solid #c3c4c7; } .tree-folder > li::after { content: ""; position: absolute; display: block; border-left: 1px solid #c3c4c7; left: 2px; bottom: -7px; top: 0; } /* current-file needs to adjustment for .notice styles */ #templateside .current-file { margin: -4px 0 -2px; } .tree-folder > .current-file::before { left: 4px; height: 15px; width: 0; border-left: none; top: 3px; } .tree-folder > .current-file::after { bottom: -4px; height: 7px; left: 2px; top: auto; } /* Lines shouldn't continue on last item */ .tree-folder > li:last-child::after, .tree-folder li:last-child > .tree-folder::after { display: none; } #theme-plugin-editor-selector, #theme-plugin-editor-label, #documentation label { font-weight: 600; } #theme-plugin-editor-label { display: inline-block; margin-bottom: 1em; } /* rtl:ignore */ #template textarea, #docs-list { direction: ltr; } .fileedit-sub #theme, .fileedit-sub #plugin { max-width: 40%; } .fileedit-sub .alignright { text-align: right; } #template p { width: 97%; } #file-editor-linting-error { margin-top: 1em; margin-bottom: 1em; } #file-editor-linting-error > .notice { margin: 0; display: inline-block; } #file-editor-linting-error > .notice > p { width: auto; } #template .submit { margin-top: 1em; padding: 0; } #template .submit input[type=submit][disabled] { cursor: not-allowed; } #templateside { float: right; width: 16em; word-wrap: break-word; } #postcustomstuff p.submit { margin: 0; } #templateside h4 { margin: 1em 0 0; } #templateside li { margin: 4px 0; } #templateside li:not(.howto) a, .theme-editor-php .highlight { display: block; padding: 3px 0 3px 12px; text-decoration: none; } #templateside li.current-file > a { padding-bottom: 0; } #templateside li:not(.howto) > a:first-of-type { padding-top: 0; } #templateside li.howto { padding: 6px 12px 12px; } .theme-editor-php .highlight { margin: -3px 3px -3px -12px; } #templateside .highlight { border: none; font-weight: 600; } .nonessential { color: #646970; font-size: 11px; font-style: italic; padding-left: 12px; } #documentation { margin-top: 10px; } #documentation label { line-height: 1.8; vertical-align: baseline; } .fileedit-sub { padding: 10px 0 8px; line-height: 180%; } #file-editor-warning .file-editor-warning-content { margin: 25px; } /* @todo: can we use a common class for these? */ .nav-menus-php .item-edit:before, .wp-customizer .control-section .accordion-section-title:after, .wp-customizer .accordion-section-title:after, .widget-top .widget-action .toggle-indicator:before { content: "\f140"; content: "\f140" / ''; font: normal 20px/1 dashicons; display: block; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none; } .widget-top .widget-action .toggle-indicator:before { padding: 1px 2px 1px 0; border-radius: 50%; } .handlediv, .postbox .handlediv.button-link, .item-edit, .toggle-indicator { color: #646970; } .widget-action { color: #50575e; /* #fafafa background in the Widgets screen */ } .widget-top:hover .widget-action, .widget-action:focus, .handlediv:hover, .handlediv:focus, .postbox .handlediv.button-link:hover, .postbox .handlediv.button-link:focus, .item-edit:hover, .item-edit:focus, .sidebar-name:hover .toggle-indicator { color: #1d2327; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .widget-top .widget-action:focus .toggle-indicator:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #customize-info.open .accordion-section-title:after, .nav-menus-php .menu-item-edit-active .item-edit:before, .widget.open .widget-top .widget-action .toggle-indicator:before, .widget.widget-in-question .widget-top .widget-action .toggle-indicator:before { content: "\f142"; content: "\f142" / ''; } /*! * jQuery UI Draggable/Sortable 1.11.4 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ .ui-draggable-handle, .ui-sortable-handle { touch-action: none; } /* Accordion */ .accordion-section { border-bottom: 1px solid #dcdcde; margin: 0; } .accordion-section.open .accordion-section-content, .no-js .accordion-section .accordion-section-content { display: block; } .accordion-section.open:hover { border-bottom-color: #dcdcde; } .accordion-section-content { display: none; padding: 10px 20px 15px; overflow: hidden; background: #fff; } .accordion-section-title { margin: 0; position: relative; border-left: 1px solid #dcdcde; border-right: 1px solid #dcdcde; -webkit-user-select: none; user-select: none; } .js .accordion-section-title { cursor: pointer; } .js .accordion-section-title:after { position: absolute; top: 12px; right: 10px; z-index: 1; } .accordion-section-title:focus { /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } .accordion-section-title:hover:after, .accordion-section-title:focus:after { border-color: #a7aaad transparent; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } .cannot-expand .accordion-section-title { cursor: auto; } .cannot-expand .accordion-section-title:after { display: none; } .control-section .accordion-section-title, .customize-pane-child .accordion-section-title { border-left: none; border-right: none; padding: 10px 10px 11px 14px; line-height: 1.55; background: #fff; } .control-section .accordion-section-title:after, .customize-pane-child .accordion-section-title:after { top: calc(50% - 10px); /* Arrow height is 20px, so use half of that to vertically center */ } .js .control-section:hover .accordion-section-title, .js .control-section .accordion-section-title:hover, .js .control-section.open .accordion-section-title, .js .control-section .accordion-section-title:focus { color: #1d2327; background: #f6f7f7; } .control-section.open .accordion-section-title { /* When expanded */ border-bottom: 1px solid #dcdcde; } /* Edit Site */ .network-admin .edit-site-actions { margin-top: 0; } /* My Sites */ .my-sites { display: block; overflow: auto; zoom: 1; } .my-sites li { display: block; padding: 8px 3%; min-height: 130px; margin: 0; } @media only screen and (max-width: 599px) { .my-sites li { min-height: 0; } } @media only screen and (min-width: 600px) { .my-sites.striped li { background-color: #fff; position: relative; } .my-sites.striped li:after { content: ""; width: 1px; height: 100%; position: absolute; top: 0; right: 0; background: #c3c4c7; } } @media only screen and (min-width: 600px) and (max-width: 699px) { .my-sites li{ float: left; width: 44%; } .my-sites.striped li { background-color: #fff; } .my-sites.striped li:nth-of-type(2n+1) { clear: left; } .my-sites.striped li:nth-of-type(2n+2):after { content: none; } .my-sites li:nth-of-type(4n+1), .my-sites li:nth-of-type(4n+2) { background-color: #f6f7f7; } } @media only screen and (min-width: 700px) and (max-width: 1199px) { .my-sites li { float: left; width: 27.333333%; background-color: #fff; } .my-sites.striped li:nth-of-type(3n+3):after { content: none; } .my-sites li:nth-of-type(6n+1), .my-sites li:nth-of-type(6n+2), .my-sites li:nth-of-type(6n+3) { background-color: #f6f7f7; } } @media only screen and (min-width: 1200px) and (max-width: 1399px) { .my-sites li { float: left; width: 21%; padding: 8px 2%; background-color: #fff; } .my-sites.striped li:nth-of-type(4n+1) { clear: left; } .my-sites.striped li:nth-of-type(4n+4):after { content: none; } .my-sites li:nth-of-type(8n+1), .my-sites li:nth-of-type(8n+2), .my-sites li:nth-of-type(8n+3), .my-sites li:nth-of-type(8n+4) { background-color: #f6f7f7; } } @media only screen and (min-width: 1400px) and (max-width: 1599px) { .my-sites li { float: left; width: 16%; padding: 8px 2%; background-color: #fff; } .my-sites.striped li:nth-of-type(5n+1) { clear: left; } .my-sites.striped li:nth-of-type(5n+5):after { content: none; } .my-sites li:nth-of-type(10n+1), .my-sites li:nth-of-type(10n+2), .my-sites li:nth-of-type(10n+3), .my-sites li:nth-of-type(10n+4), .my-sites li:nth-of-type(10n+5) { background-color: #f6f7f7; } } @media only screen and (min-width: 1600px) { .my-sites li { float: left; width: 12.666666%; padding: 8px 2%; background-color: #fff; } .my-sites.striped li:nth-of-type(6n+1) { clear: left; } .my-sites.striped li:nth-of-type(6n+6):after { content: none; } .my-sites li:nth-of-type(12n+1), .my-sites li:nth-of-type(12n+2), .my-sites li:nth-of-type(12n+3), .my-sites li:nth-of-type(12n+4), .my-sites li:nth-of-type(12n+5), .my-sites li:nth-of-type(12n+6) { background-color: #f6f7f7; } } .my-sites li a { text-decoration: none; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { /* Back-compat for pre-3.8 */ div.star-holder, div.star-holder .star-rating { background: url(../images/stars-2x.png?ver=20121108) repeat-x bottom left; background-size: 21px 37px; } .spinner { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 782px) { html.wp-toolbar { padding-top: var(--wp-admin--admin-bar--height); } .screen-reader-shortcut:focus { top: -39px; } .block-editor-page .screen-reader-shortcut:focus { top: 7px; } .screen-reader-shortcut[href="#wp-toolbar"] { display: none; } body { min-width: 240px; overflow-x: hidden; } body * { -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; } #wpcontent { position: relative; margin-left: 0; padding-left: 10px; } #wpbody-content { padding-bottom: 100px; } .wrap { clear: both; margin-right: 12px; margin-left: 0; } /* categories */ #col-left, #col-right { float: none; width: auto; } #col-left .col-wrap, #col-right .col-wrap { padding: 0; } /* Hidden Elements */ #collapse-menu, .post-format-select { display: none !important; } .wrap h1.wp-heading-inline { margin-bottom: 0.5em; } .wrap .add-new-h2, /* deprecated */ .wrap .add-new-h2:active, /* deprecated */ .wrap .page-title-action, .wrap .page-title-action:active { padding: 0 14px; font-size: 14px; white-space: nowrap; min-height: 40px; line-height: 2.71428571; vertical-align: middle; } /* Feedback Messages */ .notice, .wrap div.updated, .wrap div.error, .media-upload-form div.error { margin: 20px 0 10px; padding: 5px 10px; font-size: 14px; line-height: 175%; } .wp-core-ui .notice.is-dismissible { padding-right: 46px; } .notice-dismiss { padding: 13px; } .wrap .icon32 + h2 { margin-top: -2px; } .wp-responsive-open #wpbody { right: -16em; } code { word-wrap: break-word; word-wrap: anywhere; /* Firefox. Allow breaking long words anywhere */ word-break: break-word; /* Webkit: Treated similarly to word-wrap: break-word */ } /* General Metabox */ .postbox { font-size: 14px; } .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */ .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder h2 { padding: 12px; } .nav-menus-php .metabox-holder h3 { padding: 0; } .postbox .handlediv { margin-top: 3px; } /* Subsubsub Nav */ .subsubsub { font-size: 16px; text-align: center; margin-bottom: 15px; } /* Theme/Plugin File Editor */ #template textarea, #template .CodeMirror { box-sizing: border-box; } #templateside { float: none; width: auto; } #templateside > ul { border-left: 1px solid #dcdcde; } #templateside li { margin: 0; } #templateside li:not(.howto) a { display: block; padding: 5px; } #templateside li.howto { padding: 12px; } #templateside .highlight { padding: 5px; margin-left: -5px; margin-top: -5px; } #template > div, #template .notice { float: none; margin: 1em 0; width: auto; } #template .CodeMirror, #template textarea { width: 100%; } #templateside ul ul { padding-left: 1.5em; } [role="treeitem"] .folder-label { display: block; padding: 5px; } .tree-folder > li::before, .tree-folder > li::after, .tree-folder .tree-folder::after { left: -8px; } .tree-folder > li::before { top: 0; height: 13px; } .tree-folder > .current-file::before { left: -5px; top: 7px; width: 4px; } .tree-folder > .current-file::after { height: 9px; left: -8px; } .wrap #templateside span.notice { margin-left: -5px; width: 100%; } .fileedit-sub .alignright { float: left; margin-top: 15px; width: 100%; text-align: left; } .fileedit-sub .alignright label { display: block; } .fileedit-sub #theme, .fileedit-sub #plugin { margin-left: 0; max-width: 70%; } .fileedit-sub input[type="submit"] { margin-bottom: 0; } #documentation label[for="docs-list"] { display: block; } #documentation select[name="docs-list"] { margin-left: 0; max-width: 60%; } #documentation input[type="button"] { margin-bottom: 0; } #wpfooter { display: none; } #comments-form .checkforspam { display: none; } .edit-comment-author { margin: 2px 0 0; } .filter-drawer .filter-group-feature input, .filter-drawer .filter-group-feature label { line-height: 2.1; } .filter-drawer .filter-group-feature label { margin-left: 32px; } .wp-filter .button.drawer-toggle { font-size: 13px; line-height: 2; height: 28px; } /* Fix help tab columns for smaller screens */ #screen-meta #contextual-help-wrap { overflow: visible; } #screen-meta #contextual-help-back, #screen-meta .contextual-help-sidebar { display: none; } #screen-meta .contextual-help-tabs { clear: both; width: 100%; float: none; } #screen-meta .contextual-help-tabs ul { margin: 0 0 1em; padding: 1em 0 0; } #screen-meta .contextual-help-tabs .active { margin: 0; } #screen-meta .contextual-help-tabs-wrap { clear: both; max-width: 100%; float: none; } #screen-meta, #screen-meta-links { margin-right: 10px; } #screen-meta-links { margin-bottom: 20px; /* Add margins beneath links for better spacing between boxes and elements */ } .wp-filter .search-form input[type="search"] { font-size: 1rem; } .wp-filter .search-form.search-plugins { /* This element is a flex item. */ min-width: 100%; } } /* Smartphone */ @media screen and (max-width: 600px) { /* Disable horizontal scroll when responsive menu is open since we push the main content off to the right. */ #wpwrap.wp-responsive-open { overflow-x: hidden; } html.wp-toolbar { padding-top: 0; } .screen-reader-shortcut:focus { top: 7px; } #wpbody { padding-top: 46px; } /* Keep full-width boxes on Edit Post page from causing horizontal scroll */ div#post-body.metabox-holder.columns-1 { overflow-x: hidden; } h1.nav-tab-wrapper, .wrap h2.nav-tab-wrapper, .nav-tab-wrapper { border-bottom: 0; } h1 .nav-tab, h2 .nav-tab, h3 .nav-tab, nav .nav-tab { margin: 10px 10px 0 0; border-bottom: 1px solid #c3c4c7; } .nav-tab-active:hover, .nav-tab-active:focus, .nav-tab-active:focus:active { border-bottom: 1px solid #c3c4c7; } .wp-filter .search-form.search-plugins label { width: 100%; } } @media screen and (max-width: 480px) { .metabox-prefs-container { display: grid; } .metabox-prefs-container > * { display: inline-block; padding: 2px; } } @media screen and (max-width: 320px) { /* Prevent default center alignment and larger font for the Right Now widget when the network dashboard is viewed on a small mobile device. */ #network_dashboard_right_now .subsubsub { font-size: 14px; text-align: left; } } css/edit.min.css000064400000073562152213653150007575 0ustar00/*! This file is auto-generated */ #poststuff{padding-top:10px;min-width:763px}#poststuff #post-body{padding:0}#poststuff .postbox-container{width:100%}#poststuff #post-body.columns-2{margin-right:300px}#show-comments{overflow:hidden}#save-action .spinner,#show-comments a{float:left}#show-comments .spinner{float:none;margin-top:0}#lost-connection-notice .spinner{visibility:visible;float:left;margin:0 5px 0 0}#titlediv{position:relative}#titlediv label{cursor:text}#titlediv div.inside{margin:0}#poststuff #titlewrap{border:0;padding:0}#titlediv #title{padding:3px 8px;font-size:1.7em;line-height:100%;height:1.7em;width:100%;outline:0;margin:0 0 3px;background-color:#fff}#titlediv #title-prompt-text{color:#646970;position:absolute;font-size:1.7em;padding:10px;pointer-events:none}#titlewrap .skiplink{background:#fff;line-height:2.30769231;min-height:32px;right:4px}#titlewrap .skiplink:focus{clip:inherit;clip-path:inherit;top:4px;width:auto}input#link_description,input#link_url{width:100%}#pending{background:0 none;border:0 none;padding:0;font-size:11px;margin-top:-1px}#comment-link-box,#edit-slug-box{line-height:1.84615384;min-height:25px;margin-top:5px;padding:0 10px;color:#646970}#sample-permalink{display:inline-block;max-width:100%;word-wrap:break-word}#edit-slug-box .cancel{margin-right:10px;padding:0}#comment-link-box{margin:5px 0;padding:0 5px}#editable-post-name-full{display:none}#editable-post-name{font-weight:600}#editable-post-name input{font-size:13px;font-weight:400;min-height:32px;margin:0;width:16em}.postarea h3 label{float:left}body.post-new-php .submitbox .submitdelete{display:none}.submitbox .submit a:hover{text-decoration:underline}.submitbox .submit input{margin-bottom:8px;margin-right:4px;padding:6px}#post-status-select{margin-top:3px}body.post-type-wp_navigation .inline-edit-status,body.post-type-wp_navigation div#minor-publishing{display:none}.is-dragging-metaboxes .metabox-holder .postbox-container .meta-box-sortables{border-radius:8px;background:rgb(var(--wp-admin-theme-color--rgb),.04);min-height:60px;margin-bottom:20px}.postbox{position:relative;min-width:255px;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff}#trackback_url{width:99%}#normal-sortables .postbox .submit{background:transparent none;border:0 none;float:right;padding:0 12px;margin:0}.category-add input[type=text],.category-add select{width:100%;max-width:260px;vertical-align:baseline}#side-sortables .category-add input[type=text],#side-sortables .category-add select{margin:0 0 1em}#side-sortables .add-menu-item-tabs li,.wp-tab-bar li,ul.category-tabs li{display:inline;line-height:1.35}.no-js .category-tabs li.hide-if-no-js{display:none}#side-sortables .add-menu-item-tabs a,.category-tabs a,.wp-tab-bar a{text-decoration:none}#post-body ul.add-menu-item-tabs li.tabs a,#post-body ul.category-tabs li.tabs a,#side-sortables .add-menu-item-tabs .tabs a,#side-sortables .category-tabs .tabs a,.wp-tab-bar .wp-tab-active a{color:#2c3338}.category-tabs{margin:8px 0 5px}#category-adder h4{margin:0}.taxonomy-add-new{display:inline-block;margin:10px 0;font-weight:600}#side-sortables .add-menu-item-tabs,.wp-tab-bar{margin-bottom:3px}#normal-sortables .postbox #replyrow .submit{float:none;margin:0;padding:5px 7px 10px;overflow:hidden}#side-sortables .submitbox .submit .preview,#side-sortables .submitbox .submit a.preview:hover,#side-sortables .submitbox .submit input{border:0 none}ul.add-menu-item-tabs,ul.category-tabs,ul.wp-tab-bar{margin-top:12px}ul.add-menu-item-tabs li,ul.category-tabs li{border:solid 1px transparent;position:relative}.wp-tab-active,ul.add-menu-item-tabs li.tabs,ul.category-tabs li.tabs{border:1px solid #dcdcde;border-bottom-color:#fff;background-color:#fff}ul.add-menu-item-tabs li,ul.category-tabs li,ul.wp-tab-bar li{padding:3px 5px 6px}#set-post-thumbnail{display:inline-block;max-width:100%}#postimagediv .inside img{max-width:100%;height:auto;vertical-align:top;background-image:linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:0 0,10px 10px;background-size:20px 20px}form#tags-filter{position:relative}.ui-tabs-hide,.wp-hidden-children .wp-hidden-child{display:none}#post-body .tagsdiv #newtag{margin-right:0;flex:1;min-width:0}#side-sortables input#post_password{width:94%}#side-sortables .tagsdiv #newtag{flex:1;min-width:0}#post-status-info{width:100%;border-spacing:0;border:1px solid #c3c4c7;border-top:none;background-color:#f6f7f7;box-shadow:0 1px 1px rgba(0,0,0,.04);z-index:999}#post-status-info td{font-size:12px}.autosave-info{padding:2px 10px;text-align:right}#editorcontent #post-status-info{border:none}#content-resize-handle{background:transparent url(../images/resize.gif) no-repeat scroll right bottom;width:12px;cursor:row-resize}.rtl #content-resize-handle{background-image:url(../images/resize-rtl.gif);background-position:left bottom}.wp-editor-expand #content-resize-handle{display:none}#postdivrich #content{resize:none}#wp-word-count{padding:2px 10px}#wp-content-editor-container{position:relative}.wp-editor-expand #wp-content-editor-tools{z-index:1000;border-bottom:1px solid #c3c4c7}.wp-editor-expand #wp-content-editor-container{box-shadow:none;margin-top:-1px}.wp-editor-expand #wp-content-editor-container{border-bottom:0 none}.wp-editor-expand div.mce-statusbar{z-index:1}.wp-editor-expand #post-status-info{border-top:1px solid #c3c4c7}.wp-editor-expand div.mce-toolbar-grp{z-index:999}.mce-fullscreen #wp-content-wrap .mce-edit-area,.mce-fullscreen #wp-content-wrap .mce-menubar,.mce-fullscreen #wp-content-wrap .mce-statusbar,.mce-fullscreen #wp-content-wrap .mce-toolbar-grp{position:static!important;width:auto!important;padding:0!important}.mce-fullscreen #wp-content-wrap .mce-statusbar{visibility:visible!important}.mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw{display:none}.mce-fullscreen #wp-content-wrap .mce-wp-dfw,.post-php.mce-fullscreen #wpadminbar{display:none}#wp-content-editor-tools{background-color:#f0f0f1;padding-top:20px}#poststuff #post-body.columns-2 #side-sortables{width:280px}#timestampdiv select{vertical-align:top;font-size:12px;line-height:2.33333333}#aa,#hh,#jj,#mn{padding:6px 1px;font-size:12px;line-height:1.16666666}#hh,#jj,#mn{width:2em}#aa{width:3.4em}.curtime #timestamp{padding:2px 0 1px;display:inline!important;height:auto!important}#post-body #visibility:before,#post-body .misc-pub-comment-status:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-response-to:before,#post-body .misc-pub-revisions:before,#post-body .misc-pub-uploadedby:before,#post-body .misc-pub-uploadedto:before,.curtime #timestamp:before{color:#8c8f94}#post-body #visibility:before,#post-body .misc-pub-comment-status:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-response-to:before,#post-body .misc-pub-revisions:before,#post-body .misc-pub-uploadedby:before,#post-body .misc-pub-uploadedto:before,.curtime #timestamp:before{font:normal 20px/1 dashicons;display:inline-block;margin-left:-1px;padding-right:3px;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#post-body .misc-pub-comment-status:before,#post-body .misc-pub-post-status:before{content:"\f173";content:"\f173"/''}#post-body #visibility:before{content:"\f177";content:"\f177"/''}.curtime #timestamp:before{content:"\f145";content:"\f145"/'';position:relative;top:-1px}#post-body .misc-pub-uploadedby:before{content:"\f110";content:"\f110"/'';position:relative;top:-1px}#post-body .misc-pub-uploadedto:before{content:"\f318";content:"\f318"/'';position:relative;top:-1px}#post-body .misc-pub-revisions:before{content:"\f321";content:"\f321"/''}#post-body .misc-pub-response-to:before{content:"\f101";content:"\f101"/''}#timestampdiv{padding-top:5px;line-height:1.76923076}#timestampdiv p{margin:8px 0 6px}#timestampdiv input{text-align:center}.notification-dialog{position:fixed;top:30%;max-height:70%;left:50%;width:450px;margin-left:-225px;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;z-index:1000005;overflow-y:auto}.notification-dialog-background{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;z-index:1000000}#post-lock-dialog .post-locked-message,#post-lock-dialog .post-taken-over{margin:25px}#file-editor-warning .button,#post-lock-dialog .post-locked-message a.button{margin-right:10px}#post-lock-dialog .post-locked-avatar{float:left;margin:0 20px 20px 0}#post-lock-dialog .wp-tab-first{outline:0}#post-lock-dialog .locked-saving img{float:left;margin-right:3px}#post-lock-dialog.saved .locked-saved,#post-lock-dialog.saving .locked-saving{display:inline}#excerpt{display:block;margin:12px 0 0;height:4em;width:100%}.tagchecklist{margin-left:14px;font-size:12px;overflow:auto}.tagchecklist br{display:none}.tagchecklist strong{margin-left:-8px;position:absolute}.tagchecklist>li{float:left;margin-right:25px;font-size:13px;line-height:1.8;cursor:default;max-width:100%;overflow:hidden;text-overflow:ellipsis}.tagchecklist .ntdelbutton{position:absolute;width:24px;height:24px;border:none;margin:0 0 0 -19px;padding:0;background:0 0;cursor:pointer;text-indent:0}#poststuff .stuffbox>h3,#poststuff h2,#poststuff h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}#poststuff .stuffbox h2{padding:8px 10px}#poststuff .stuffbox>h2{border-bottom:1px solid #f0f0f1}#poststuff .inside{margin:6px 0 0}.link-add-php #poststuff .inside,.link-php #poststuff .inside{margin-top:12px}#poststuff .stuffbox .inside{margin:0}#poststuff .inside #page_template,#poststuff .inside #parent_id{max-width:100%}.post-attributes-label-wrapper{margin-bottom:.5em}.post-attributes-label{vertical-align:baseline;font-weight:600}#comment-status-radio,#post-visibility-select{line-height:1.5;margin-top:3px}#linksubmitdiv .inside,#poststuff #submitdiv .inside{margin:0;padding:0}#post-body-content,.edit-form-section{margin-bottom:20px}.wp_attachment_details .attachment-content-description{margin-top:.5385em;display:inline-block;min-height:1.6923em}.privacy-settings #wpcontent,.privacy-settings.auto-fold #wpcontent,.site-health #wpcontent,.site-health.auto-fold #wpcontent{padding-left:0}.privacy-settings .notice,.site-health .notice{margin:25px 20px 15px 22px}.privacy-settings .notice~.notice,.site-health .notice~.notice{margin-top:5px}.health-check-header h1,.privacy-settings-header h1{display:inline-block;font-weight:600;margin:0 .8rem 1rem;font-size:23px;padding:9px 0 4px;line-height:1.3}.health-check-header,.privacy-settings-header{text-align:center;margin:0 0 1rem;background:#fff;border-bottom:1px solid #dcdcde}.health-check-title-section,.privacy-settings-title-section{display:flex;align-items:center;justify-content:center;clear:both;padding-top:8px}.privacy-settings-tabs-wrapper{display:-ms-inline-grid;-ms-grid-columns:1fr 1fr;vertical-align:top;display:inline-grid;grid-template-columns:1fr 1fr}.privacy-settings-tab{display:block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-tab:first-child,.privacy-settings-tab:first-child{-ms-grid-column:1}.health-check-tab:nth-child(2),.privacy-settings-tab:nth-child(2){-ms-grid-column:2}.health-check-tab:focus,.privacy-settings-tab:focus{color:#1d2327;outline:1px solid #787c82;box-shadow:none}.health-check-tab.active,.privacy-settings-tab.active{box-shadow:inset 0 -3px var(--wp-admin-theme-color);font-weight:600}.health-check-body,.privacy-settings-body{max-width:800px;margin:0 auto}.tools-privacy-policy-page th{min-width:230px}.hr-separator{margin-top:20px;margin-bottom:15px}.health-check-accordion,.privacy-settings-accordion{border:1px solid #c3c4c7}.health-check-accordion-heading,.privacy-settings-accordion-heading{margin:0;border-top:1px solid #c3c4c7;font-size:inherit;line-height:inherit;font-weight:600;color:inherit}.health-check-accordion-heading:first-child,.privacy-settings-accordion-heading:first-child{border-top:none}.health-check-accordion-trigger,.privacy-settings-accordion-trigger{background:#fff;border:0;color:#2c3338;cursor:pointer;display:flex;font-weight:400;margin:0;padding:1em 3.5em 1em 1.5em;min-height:46px;position:relative;text-align:left;width:100%;align-items:center;justify-content:space-between;-webkit-user-select:auto;user-select:auto}.health-check-accordion-trigger:active,.health-check-accordion-trigger:hover,.privacy-settings-accordion-trigger:active,.privacy-settings-accordion-trigger:hover{background:#f6f7f7}.health-check-accordion-trigger:focus,.privacy-settings-accordion-trigger:focus{color:#1d2327;border:none;box-shadow:none;outline-offset:-1px;outline:2px solid var(--wp-admin-theme-color);background-color:#f6f7f7}.health-check-accordion-trigger .title,.privacy-settings-accordion-trigger .title{pointer-events:none;font-weight:600;flex-grow:1}.health-check-accordion-trigger .icon,.privacy-settings-accordion-trigger .icon,.privacy-settings-view-read .icon,.site-health-view-passed .icon{border:solid #50575e;border-width:0 2px 2px 0;height:.5rem;pointer-events:none;position:absolute;right:1.5em;top:50%;transform:translateY(-70%) rotate(45deg);width:.5rem}.health-check-accordion-trigger .badge,.privacy-settings-accordion-trigger .badge{padding:.1rem .5rem .15rem;color:#2c3338;font-weight:600}.privacy-settings-accordion-trigger .badge{margin-left:.5rem}.health-check-accordion-trigger .badge.blue,.privacy-settings-accordion-trigger .badge.blue{border:1px solid var(--wp-admin-theme-color)}.health-check-accordion-trigger .badge.orange,.privacy-settings-accordion-trigger .badge.orange{border:1px solid #dba617}.health-check-accordion-trigger .badge.red,.privacy-settings-accordion-trigger .badge.red{border:1px solid #e65054}.health-check-accordion-trigger .badge.green,.privacy-settings-accordion-trigger .badge.green{border:1px solid #00ba37}.health-check-accordion-trigger .badge.purple,.privacy-settings-accordion-trigger .badge.purple{border:1px solid #2271b1}.health-check-accordion-trigger .badge.gray,.privacy-settings-accordion-trigger .badge.gray{border:1px solid #c3c4c7}.health-check-accordion-trigger[aria-expanded=true] .icon,.privacy-settings-accordion-trigger[aria-expanded=true] .icon,.privacy-settings-view-passed[aria-expanded=true] .icon,.site-health-view-passed[aria-expanded=true] .icon{transform:translateY(-30%) rotate(-135deg)}.health-check-accordion-panel,.privacy-settings-accordion-panel{margin:0;padding:1em 1.5em;background:#fff}.health-check-accordion-panel[hidden],.privacy-settings-accordion-panel[hidden]{display:none}.health-check-accordion-panel a .dashicons,.privacy-settings-accordion-panel a .dashicons{text-decoration:none}.privacy-settings-accordion-actions{justify-content:right;display:flex;align-items:center;flex-wrap:wrap;gap:1em}.privacy-settings-accordion-actions .success{display:none;color:#007017}.privacy-settings-accordion-actions .success.visible{display:inline-block}.privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-policy-tutorial,.privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-text-copy,.privacy-settings-accordion-panel.hide-privacy-policy-tutorial .wp-policy-help{display:none}.privacy-settings-accordion-panel strong.privacy-policy-tutorial,.privacy-settings-accordion-panel strong.wp-policy-help{display:block;margin:0 0 1em}.privacy-text-copy span{pointer-events:none}.privacy-settings-accordion-panel .wp-suggested-text div>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),.privacy-settings-accordion-panel .wp-suggested-text>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),.privacy-settings-accordion-panel div>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p),.privacy-settings-accordion-panel>:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p){margin:0;padding:1em;border-left:2px solid #787c82}@media screen and (max-width:782px){.health-check-body,.privacy-settings-body{margin:0 12px;width:auto}.privacy-settings .notice,.site-health .notice{margin:5px 10px 15px}.privacy-settings .update-nag,.site-health .update-nag{margin-right:10px;margin-left:10px}input#create-page{margin-top:10px}.wp-core-ui button.privacy-text-copy{white-space:normal;line-height:1.8}#edit-slug-box{padding:0}#editable-post-name input{min-height:40px}}@media only screen and (max-width:1004px){.health-check-body,.privacy-settings-body{margin:0 22px;width:auto}}#postcustomstuff thead th{padding:5px 8px 8px;background-color:#f0f0f1}#postcustom #postcustomstuff .submit{border:0 none;float:none;padding:0 8px 8px}#postcustom #postcustomstuff .add-custom-field{padding:12px 8px 8px}#side-sortables #postcustom #postcustomstuff .submit{margin:0;padding:0}#side-sortables #postcustom #postcustomstuff #the-list textarea{height:85px}#side-sortables #postcustom #postcustomstuff td.left input,#side-sortables #postcustom #postcustomstuff td.left select,#side-sortables #postcustomstuff #newmetaleft a{margin:3px 3px 0}#postcustomstuff table{margin:0;width:100%;border:1px solid #dcdcde;border-spacing:0;background-color:#f6f7f7}#postcustomstuff tr{vertical-align:top}#postcustomstuff table input,#postcustomstuff table select,#postcustomstuff table textarea{width:96%;margin:8px}#side-sortables #postcustomstuff table input,#side-sortables #postcustomstuff table select,#side-sortables #postcustomstuff table textarea{margin:3px}#postcustomstuff td.left,#postcustomstuff th.left{width:38%}#postcustomstuff .submit input{margin:0;width:auto}#postcustomstuff #newmeta-button,#postcustomstuff #newmetaleft a{display:inline-block;margin:0 8px 8px;text-decoration:none}.no-js #postcustomstuff #enternew{display:none}#post-body-content .compat-attachment-fields{margin-bottom:20px}.compat-attachment-fields th{padding-top:5px;padding-right:10px}#select-featured-image{padding:4px 0;overflow:hidden}#select-featured-image img{max-width:100%;height:auto;margin-bottom:10px}#select-featured-image a{float:left;clear:both}#select-featured-image .remove{display:none;margin-top:10px}.js #select-featured-image.has-featured-image .remove{display:inline-block}.no-js #select-featured-image .choose{display:none}.post-format-icon::before{display:inline-block;vertical-align:middle;height:20px;width:20px;margin-top:-4px;margin-right:7px;color:#dcdcde;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a.post-format-icon:hover:before{color:#135e96}#post-formats-select{line-height:2}#post-formats-select .post-format-icon::before{top:5px}input.post-format{margin-top:1px}label.post-format-icon{margin-left:0;padding:2px 0}.post-format-icon.post-format-standard::before{content:"\f109";content:"\f109"/''}.post-format-icon.post-format-image::before{content:"\f128";content:"\f128"/''}.post-format-icon.post-format-gallery::before{content:"\f161";content:"\f161"/''}.post-format-icon.post-format-audio::before{content:"\f127";content:"\f127"/''}.post-format-icon.post-format-video::before{content:"\f126";content:"\f126"/''}.post-format-icon.post-format-chat::before{content:"\f125";content:"\f125"/''}.post-format-icon.post-format-status::before{content:"\f130";content:"\f130"/''}.post-format-icon.post-format-aside::before{content:"\f123";content:"\f123"/''}.post-format-icon.post-format-quote::before{content:"\f122";content:"\f122"/''}.post-format-icon.post-format-link::before{content:"\f103";content:"\f103"/''}.category-adder{margin-left:120px;padding:4px 0}.category-adder h4{margin:0 0 8px}#side-sortables .category-adder{margin:0}.categorydiv div.tabs-panel,.customlinkdiv div.tabs-panel,.posttypediv div.tabs-panel,.taxonomydiv div.tabs-panel,.wp-tab-panel{min-height:42px;max-height:200px;overflow:auto;padding:0 .9em;border:solid 1px #dcdcde;background-color:#fff}div.tabs-panel-active{display:block}div.tabs-panel-inactive{display:none}div.tabs-panel-active:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#front-page-warning,#front-static-pages ul,.categorydiv ul.categorychecklist ul,.customlinkdiv ul.categorychecklist ul,.inline-editor ul.cat-checklist ul,.options-discussion-php .indent-children ul,.posttypediv ul.categorychecklist ul,.taxonomydiv ul.categorychecklist ul,ul.export-filters{margin-left:18px}ul.categorychecklist li{margin:0;padding:0;line-height:1.69230769;word-wrap:break-word}.categorydiv .tabs-panel,.customlinkdiv .tabs-panel,.posttypediv .tabs-panel,.taxonomydiv .tabs-panel{border-width:3px;border-style:solid}.form-wrap label{display:block;padding:2px 0}.form-field input[type=email],.form-field input[type=number],.form-field input[type=password],.form-field input[type=search],.form-field input[type=tel],.form-field input[type=text],.form-field input[type=url],.form-field textarea{border-style:solid;border-width:1px;width:95%}.form-field p,.form-field select{max-width:95%}.form-wrap p,p.description{margin:2px 0 5px;color:#646970}.form-wrap p,p.description,p.help,span.description{font-size:13px}p.description code{font-style:normal}.form-wrap p code,p.description code{color:#50575e}.form-wrap .form-field{margin:1em 0;padding:0}.col-wrap h2{margin:12px 0;font-size:1.1em}.col-wrap p.submit{margin-top:-10px}.edit-term-notes{margin-top:2em}#poststuff .tagsdiv .ajaxtag{margin-top:1em;display:flex;gap:8px;align-items:center}#poststuff .tagsdiv .howto{margin:1em 0 6px}.ajaxtag .newtag{position:relative}.tagsdiv .newtag{flex:1;min-width:0}.tagsdiv .the-tags{display:block;height:60px;margin:0 auto;overflow:auto;width:260px}#post-body-content .tagsdiv .the-tags{margin:0 5px}p.popular-tags{border:none;line-height:2em;padding:8px 12px 12px;text-align:justify}p.popular-tags a{padding:0 3px}.tagcloud{width:97%;margin:0 0 40px;text-align:justify}.tagcloud h2{margin:2px 0 12px}#poststuff .inside .the-tagcloud{margin:5px 0 10px;padding:8px;border:1px solid #dcdcde;line-height:1.2;word-spacing:3px}.the-tagcloud ul{margin:0}.the-tagcloud ul li{display:inline-block}.ac_results{display:none;margin:-1px 0 0;padding:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;background-color:#fff}.wp-customizer .ac_results{z-index:500000}.ac_results li{margin:0;padding:5px 10px;white-space:nowrap;text-align:left}.ac_over .ac_match,.ac_results .ac_over{background-color:#2271b1;color:#fff;cursor:pointer}.ac_match{text-decoration:underline}#addtag .spinner{float:none;vertical-align:top}#edittag{max-width:800px}.edit-tag-actions{display:flex;align-items:center;gap:8px;margin-top:20px}.comment-php .wp-editor-area{height:200px}.comment-ays td,.comment-ays th{padding:10px 15px}.comment-ays .comment-content ul{list-style:initial;margin-left:2em}.comment-ays .comment-content a[href]:after{content:"(" attr(href) ")";display:inline-block;padding:0 4px;color:#646970;font-size:13px;word-break:break-all}.comment-ays .comment-content p.edit-comment{margin-top:10px}.comment-ays .comment-content p.edit-comment a[href]:after{content:"";padding:0}.comment-ays-submit .button-cancel{margin-left:1em}.spam-undo-inside,.trash-undo-inside{margin:1px 8px 1px 0;line-height:1.23076923}.spam-undo-inside .avatar,.trash-undo-inside .avatar{height:20px;width:20px;margin-right:8px;vertical-align:middle}.stuffbox .editcomment{clear:none;margin-top:0}#namediv.stuffbox .editcomment input{width:100%}#namediv.stuffbox .editcomment.form-table td{padding:10px}#comment-status-radio p{margin:3px 0 5px}#comment-status-radio input{margin:2px 3px 5px 0;vertical-align:middle}#comment-status-radio label{padding:5px 0}table.links-table{width:100%;border-spacing:0}.links-table th{font-weight:400;text-align:left;vertical-align:top;min-width:80px;width:20%;word-wrap:break-word}.links-table td,.links-table th{padding:5px 0}.links-table td label{margin-right:8px}.links-table td input[type=text],.links-table td textarea{width:100%}.links-table #link_rel{max-width:280px}#qt_content_dfw{display:none}.wp-editor-expand #qt_content_dfw{display:inline-block}.focus-on #screen-meta,.focus-on #screen-meta-links,.focus-on #wp-toolbar,.focus-on #wpfooter,.focus-on .page-title-action,.focus-on .postbox-container>*,.focus-on .update-nag,.focus-on .wrap>h1,.focus-on div.error,.focus-on div.notice,.focus-on div.updated{opacity:0;transition-duration:.6s;transition-property:opacity;transition-timing-function:ease-in-out}.focus-on #wp-toolbar{opacity:.3}.focus-off #screen-meta,.focus-off #screen-meta-links,.focus-off #wp-toolbar,.focus-off #wpfooter,.focus-off .page-title-action,.focus-off .postbox-container>*,.focus-off .update-nag,.focus-off .wrap>h1,.focus-off div.error,.focus-off div.notice,.focus-off div.updated{opacity:1;transition-duration:.2s;transition-property:opacity;transition-timing-function:ease-in-out}.focus-off #wp-toolbar{-webkit-transform:translate(0,0)}.focus-on #adminmenuback,.focus-on #adminmenuwrap{transition-duration:.6s;transition-property:transform;transition-timing-function:ease-in-out}.focus-on #adminmenuback,.focus-on #adminmenuwrap{transform:translateX(-100%)}.focus-off #adminmenuback,.focus-off #adminmenuwrap{transform:translateX(0);transition-duration:.2s;transition-property:transform;transition-timing-function:ease-in-out}@media print,(min-resolution:120dpi){#content-resize-handle,#post-body .wp_themeSkin .mceStatusbar a.mceResize{background:transparent url(../images/resize-2x.gif) no-repeat scroll right bottom;background-size:11px 11px}.rtl #content-resize-handle,.rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize{background-image:url(../images/resize-rtl-2x.gif);background-position:left bottom}}@media only screen and (max-width:1200px){.post-type-attachment #poststuff{min-width:0}.post-type-attachment #wpbody-content #poststuff #post-body{margin:0}.post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1{margin-right:0;width:100%}.post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty,.post-type-attachment #poststuff #postbox-container-1 .empty-container{outline:0;height:0;min-height:0}.post-type-attachment #poststuff #post-body.columns-2 #side-sortables{min-height:0;width:auto}.is-dragging-metaboxes.post-type-attachment #post-body .meta-box-sortables{border:none;background:0 0;min-height:0;margin-bottom:0}.post-type-attachment .columns-prefs,.post-type-attachment .screen-layout{display:none}}@media only screen and (max-width:850px){#poststuff{min-width:0}#wpbody-content #poststuff #post-body{margin:0}#wpbody-content #post-body.columns-2 #postbox-container-1{margin-right:0;width:100%}#poststuff #postbox-container-1 #side-sortables:empty,#poststuff #postbox-container-1 .empty-container{height:0;min-height:0}#poststuff #post-body.columns-2 #side-sortables{min-height:0;width:auto}.is-dragging-metaboxes #poststuff #post-body.columns-2 #side-sortables,.is-dragging-metaboxes #poststuff #post-body.columns-2 .meta-box-sortables,.is-dragging-metaboxes #poststuff #postbox-container-1 #side-sortables:empty,.is-dragging-metaboxes #poststuff #postbox-container-1 .empty-container{height:auto;min-height:60px}.columns-prefs,.screen-layout{display:none}}@media screen and (max-width:782px){.wp-core-ui .edit-tag-actions .button-primary{margin-bottom:0}#post-body-content{min-width:0}#titlediv #title-prompt-text{padding:10px}#poststuff .stuffbox .inside{padding:0 2px 4px 0}#poststuff .stuffbox>h3,#poststuff h2,#poststuff h3.hndle{padding:12px}#namediv.stuffbox .editcomment.form-table td{padding:5px 10px}.post-format-options{padding-right:0}.post-format-options a{margin-right:5px;margin-bottom:5px;min-width:52px}.post-format-options .post-format-title{font-size:11px}.post-format-options a div{height:28px;width:28px}.post-format-options a div:before{font-size:26px!important}#post-visibility-select{line-height:280%}.wp-core-ui .save-post-visibility,.wp-core-ui .save-timestamp{vertical-align:middle;margin-right:15px}.timestamp-wrap select#mm{display:block;width:100%;margin-bottom:10px}.timestamp-wrap #aa,.timestamp-wrap #hh,.timestamp-wrap #jj,.timestamp-wrap #mn{padding:12px 3px;font-size:14px;margin-bottom:5px;width:auto;text-align:center}ul.category-tabs{margin:30px 0 15px}ul.category-tabs li.tabs{padding:15px}ul.categorychecklist li{margin-bottom:15px}ul.categorychecklist ul{margin-top:15px}.category-add input[type=text],.category-add select{max-width:none;margin-bottom:15px}.tagsdiv .newtag{flex:1;min-width:0;height:auto;margin-bottom:0}.tagchecklist{margin:25px 10px}.tagchecklist>li{font-size:16px;line-height:1.4}#commentstatusdiv p{line-height:2.8}.mceToolbar *{white-space:normal!important}.mceToolbar td,.mceToolbar tr{float:left!important}.wp_themeSkin a.mceButton{width:30px;height:30px}.wp_themeSkin .mceButton .mceIcon{margin-top:5px;margin-left:5px}.wp_themeSkin .mceSplitButton{margin-top:1px}.wp_themeSkin .mceSplitButton td a.mceAction{padding:6px 3px 6px 6px}.wp_themeSkin .mceSplitButton td a.mceOpen,.wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen{padding-top:6px;padding-bottom:6px;background-position:1px 6px}.wp_themeSkin table.mceListBox{margin:5px}div.quicktags-toolbar input{padding:10px 20px}button.wp-switch-editor{font-size:16px;line-height:1;margin:7px 0 0 7px;padding:8px 12px}#wp-content-media-buttons a{font-size:14px;padding:6px 10px}.wp-media-buttons span.jetpack-contact-form-icon,.wp-media-buttons span.wp-media-buttons-icon{width:22px!important;margin-left:-2px!important}.wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before,.wp-media-buttons .add_media span.wp-media-buttons-icon:before{font-size:20px!important}#content_wp_fullscreen{display:none}.misc-pub-section{padding:12px 10px}#delete-action,#publishing-action{line-height:3.61538461}#publishing-action .spinner{float:none;margin-top:-2px}.comment-ays td,.comment-ays th{padding-bottom:0}.comment-ays td{padding-top:6px}.links-table #link_rel{max-width:none}.links-table td,.links-table th{padding:10px 0}.edit-term-notes{display:none}.privacy-text-box{width:auto}.privacy-text-box-toc{float:none;width:auto;height:100%;display:flex;flex-direction:column}.privacy-text-section .return-to-top{margin:2em 0 0}}css/color-picker-rtl.min.css000064400000006201152213653150012022 0ustar00/*! This file is auto-generated */ .wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:32px;margin:0 0 6px 6px;padding:0 30px 0 0;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:2px 0 0 2px;border-right:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.72727273;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-right:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-right:6px;padding:0 8px;line-height:2.72727273;min-height:32px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;margin:0;padding:0 5px;vertical-align:top;min-height:32px}.wp-color-picker::-webkit-input-placeholder{color:#646970}.wp-color-picker::-moz-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:var(--wp-admin-theme-color,#3858e9);border-style:solid;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9)}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 40px 0 0;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}css/code-editor-rtl.min.css000064400000002637152213653150011640 0ustar00/*! This file is auto-generated */ .wp-core-ui [class*=CodeMirror-lint-message],.wrap .CodeMirror-lint-marker-multiple,.wrap [class*=CodeMirror-lint-marker]{background-image:none}.wp-core-ui .CodeMirror-lint-marker-error,.wp-core-ui .CodeMirror-lint-marker-warning{cursor:help}.wrap .CodeMirror-lint-marker-multiple{position:absolute;top:0}.wrap [class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;position:relative;top:-2px}.wp-core-ui [class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;right:16px;position:absolute}.wp-core-ui .CodeMirror-lint-message-error,.wp-core-ui .CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:3px 28px 3px 12px}.wp-core-ui .CodeMirror-lint-message-warning{background-color:#fcf9e8;border-right:4px solid #dba617}.wp-core-ui .CodeMirror-lint-message-warning:before,.wrap .CodeMirror-lint-marker-warning:before{content:"\f534";color:#dba617}.wp-core-ui .CodeMirror-lint-message-error{background-color:#fcf0f1;border-right:4px solid #d63638}.wp-core-ui .CodeMirror-lint-message-error:before,.wrap .CodeMirror-lint-marker-error:before{content:"\f153";color:#d63638}.wp-core-ui .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:rtl}.wrap .CodeMirror .CodeMirror-matchingbracket{background:rgba(219,166,23,.3);color:inherit}.CodeMirror{text-align:right}.wrap .CodeMirror .CodeMirror-linenumber{color:#646970}css/site-icon.css000064400000010773152213653150007753 0ustar00/*------------------------------------------------------------------------------ 28.0 - Site Icon ------------------------------------------------------------------------------*/ .site-icon-section { --site-icon-removal: #b32d2e; } .site-icon-preview { --site-icon-input-border: #8c8f94; --site-icon-preview-background: #fff; --site-icon-preview-browser-top: #dcdcde; --site-icon-preview-browser-bottom: #a7aaad; --site-icon-preview-browser-border: rgba(255, 255, 255, 0.2); --site-icon-address-bar-background: #f0f0f1; --site-icon-address-bar-close: #646970; --site-icon-address-bar-text: #3c434a; --site-icon-shadow-1: rgba(0, 0, 0, 0.1); --site-icon-shadow-2: rgba(0, 0, 0, 0.2); --site-icon-shadow-3: rgba(0, 0, 0, 0.5); direction: initial; display: flex; height: 60px; padding: 8px 0 0 8px; align-items: flex-start; position: relative; overflow: hidden; box-sizing: border-box; border: 1px solid var(--site-icon-input-border); border-radius: 4px; background-color: var(--site-icon-preview-background); width: 275px; } @media (prefers-color-scheme: dark) { .site-icon-preview { --site-icon-preview-browser-top: #2c3338; --site-icon-preview-browser-bottom: #111; --site-icon-address-bar-background: #3c434a; --site-icon-address-bar-close: #f0f0f1; --site-icon-address-bar-text: #f0f0f1; } } .site-icon-preview.settings { height: 88px; padding: 16px 0 0 16px; width: 350px; margin: 0 0 16px 0; } .site-icon-preview.crop { width: 258px; height: 100%; display: grid; grid-template-columns: 8px 1fr; grid-template-rows: 64px 1fr; padding-left: 0; row-gap: 16px; direction: inherit; } .site-icon-preview.hidden { display: none; } .site-icon-preview .direction-wrap { grid-template-columns: 44px 1fr; gap: 8px; display: grid; direction: ltr; height: 100%; width: 100%; } .site-icon-preview.settings .direction-wrap { grid-template-columns: 58px 1fr; gap: 16px; } .site-icon-preview:after { --after-size: 150%; aspect-ratio: 1/1; content: ""; display: block; position: absolute; top: 0; left: 0; width: var(--after-size);; transform: translate(calc(var(--after-size) * -0.125), calc(var(--after-size) * -0.125)); filter: blur(5px); opacity: 0.5; background: var(--site-icon-url); } .site-icon-preview .app-icon-preview { aspect-ratio: 1/1; border-radius: 10px; box-shadow: 0 1px 5px 0 var(--site-icon-shadow-3); flex-shrink: 0; width: 100%; z-index: 1; } .site-icon-preview-browser { display: flex; padding: 4px 4px 0 12px; align-items: flex-start; gap: 16px; flex: 1 0 0; z-index: 1; border-top-left-radius: 10px; border-top: 1px solid var(--site-icon-preview-browser-border); border-left: 1px solid var(--site-icon-preview-browser-border); background: linear-gradient(180deg, var(--site-icon-preview-browser-top) 0%, var(--site-icon-preview-browser-bottom) 100%); box-shadow: 0 10px 22px 0 var(--site-icon-shadow-2); } .site-icon-preview .browser-buttons { width: 48px; height: 40px; fill: var(--site-icon-input-border); } .site-icon-preview-tab { padding: 8px; align-items: center; gap: 8px; flex: 1 0 0; border-radius: 4px; background-color: var(--site-icon-address-bar-background); box-shadow: 0 1px 3px 0 var(--site-icon-shadow-1); display: grid; grid-template-columns: 24px auto 24px; } .site-icon-preview-browser .browser-icon-preview { box-shadow: 0 0 20px 0 var(--site-icon-shadow-1); } .site-icon-preview-tab > img, .site-icon-preview-tab > svg { width: 24px; height: 24px; } .site-icon-preview-tab > svg { fill: var(--site-icon-address-bar-close); } .site-icon-preview-site-title { color: var(--site-icon-address-bar-text); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-weight: 500; } .site-icon-preview-crop-modal .image-preview-wrap.app-icon-preview { width: 64px; height: 64px; margin: 0; grid-column: 2; } .site-icon-preview-crop-modal .site-icon-preview-browser { grid-column: 2; } .site-icon-preview-crop-modal .image-preview-wrap { overflow: hidden; aspect-ratio: 1/1; } .site-icon-preview-crop-modal .image-preview-wrap.browser { width: 24px; height: 24px; } button.reset.remove-site-icon { color: var(--site-icon-removal); text-decoration: none; border-color: currentColor; box-shadow: none; background: transparent; } button.reset.remove-site-icon:focus, button.reset.remove-site-icon:hover { background: var(--site-icon-removal); color: #fff; border-color: var(--site-icon-removal); box-shadow: 0 0 0 1px var(--site-icon-removal); } .site-icon-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; } css/site-health.min.css000064400000012372152213653150011047 0ustar00/*! This file is auto-generated */ .health-check-body h2{line-height:1.4}.health-check-body h3{padding:0;font-weight:400}.site-health-progress-wrapper{margin-bottom:1rem}.site-health-progress{display:inline-block;height:20px;width:20px;margin:0;border-radius:100%;position:relative;font-weight:600;font-size:.4rem}.site-health-progress-count{position:absolute;display:block;height:80px;width:80px;left:50%;top:50%;margin-top:-40px;margin-left:-40px;border-radius:100%;line-height:6.3;font-size:2em}.loading .site-health-progress svg #bar{stroke-dashoffset:0;stroke:#c3c4c7;animation:loadingPulse 3s infinite ease-in-out}.site-health-progress svg circle{stroke-dashoffset:0;transition:stroke-dashoffset 1s linear;stroke:#c3c4c7;stroke-width:2em}.site-health-progress svg #bar{stroke-dashoffset:565;stroke:#d63638}.green .site-health-progress #bar{stroke:#00a32a}.green .site-health-progress .site-health-progress-label{color:#00a32a}.orange .site-health-progress #bar{stroke:#dba617}.orange .site-health-progress .site-health-progress-label{color:#dba617}.site-health-progress-label{font-weight:600;line-height:20px;margin-left:.3rem}@keyframes loadingPulse{0%{stroke:#c3c4c7}50%{stroke:var(--wp-admin-theme-color)}100%{stroke:#c3c4c7}}.health-check-tabs-wrapper{display:-ms-inline-grid;-ms-grid-columns:1fr 1fr 1fr 1fr;vertical-align:top;display:inline-grid;grid-template-columns:1fr 1fr 1fr 1fr}.health-check-tabs-wrapper.tab-count-1{grid-template-columns:1fr}.health-check-tabs-wrapper.tab-count-2{grid-template-columns:1fr 1fr}.health-check-tabs-wrapper.tab-count-3{grid-template-columns:1fr 1fr 1fr}.health-check-tab{display:block;text-decoration:none;color:inherit;padding:.5rem 1rem 1rem;margin:0 1rem;transition:box-shadow .5s ease-in-out}.health-check-offscreen-nav-wrapper{position:relative;background:0 0;border:none}.health-check-offscreen-nav-wrapper:focus .health-check-offscreen-nav{left:initial}.health-check-offscreen-nav{display:none;position:absolute;padding-top:10px;right:0;top:100%;width:13rem}.health-check-offscreen-nav-wrapper.visible .health-check-offscreen-nav{display:inline-block}.health-check-offscreen-nav:before{position:absolute;content:"";width:0;height:0;border-style:solid;border-width:0 10px 5px;border-color:transparent transparent #fff;right:20px;top:5px}.health-check-offscreen-nav .health-check-tab{background:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.75)}.health-check-offscreen-nav .health-check-tab.active{box-shadow:inset 3px 0 #3582c4;font-weight:600}.health-check-body{max-width:800px;margin:0 auto}.widefat.health-check-table th{font-size:13px}.health-check-table td:first-child{width:30%}.health-check-table td{width:70%}.health-check-table ol,.health-check-table ul{margin:0}.health-check-body li{line-height:1.5}.health-check-body .good::before,.health-check-body .pass::before{content:"\f147";content:"\f147"/'';color:#00a32a}.health-check-body .warning::before{content:"\f460";content:"\f460"/'';color:#dba617}.health-check-body .info::before{content:"\f348";content:"\f348"/'';color:#72aee6}.health-check-body .error::before,.health-check-body .fail::before{content:"\f335";content:"\f335"/'';color:#d63638}.site-health-copy-buttons{margin:1rem 0}.site-health-copy-buttons .copy-button-wrapper{display:inline-flex;align-items:center;margin:.5rem 0 1rem}.site-health-copy-buttons .success{color:#007017;margin-left:.5rem}.site-status-has-issues.hide{display:none}.site-health-view-more{text-align:center}.site-health-issues-wrapper:first-of-type{margin-top:3rem}.site-health-issues-wrapper{margin-bottom:3rem;margin-top:2rem}.site-status-all-clear{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;width:100%;margin:0 0 3rem}@media all and (min-width:784px){.site-status-all-clear{margin:2rem 0 5rem}}.site-status-all-clear.hide{display:none}.site-status-all-clear .dashicons{font-size:150px;height:150px;margin-bottom:2rem;width:150px}.site-status-all-clear .encouragement{font-size:1.5rem;font-weight:600}.site-status-all-clear p{margin:0}.wp-core-ui .button.site-health-view-passed{position:relative;padding-right:40px;padding-left:20px}.health-check-wp-paths-sizes.spinner{visibility:visible;float:none;margin:0 4px;flex-shrink:0}#dashboard_site_health .site-health-details{padding-left:16px}#dashboard_site_health .site-health-details p:first-child{margin-top:0}#dashboard_site_health .site-health-details p:last-child{margin-bottom:0}#dashboard_site_health .health-check-widget{display:grid;grid-template-columns:1fr 2fr;grid-auto-rows:minmax(64px,auto);column-gap:16px;align-items:center}#dashboard_site_health .site-health-progress-label{margin-left:0}.health-check-widget-title-section{margin-bottom:0;text-align:center}@media screen and (max-width:480px){#dashboard_site_health .health-check-widget{grid-template-columns:100%}}@media screen and (max-width:782px){.site-health-issues-wrapper .health-check-accordion-trigger{flex-direction:column;align-items:flex-start}.health-check-accordion-trigger .badge{margin:1em 0 0}.health-check-table{table-layout:fixed}.health-check-table td,.health-check-table th{box-sizing:border-box;display:block;width:100%;word-wrap:break-word}.health-check-table td:first-child,.widefat.health-check-table th{width:100%;padding-bottom:0;font-weight:600}.wp-core-ui .site-health-copy-buttons .copy-button{margin-bottom:0}}css/nav-menus.css000064400000043241152213653150007766 0ustar00/* nav-menu */ /* @todo: determine if this is truly for nav menus only */ .no-js #message { display: block; } ul.add-menu-item-tabs li { padding: 3px 5px 4px 8px; } .accordion-section ul.category-tabs, .accordion-section ul.add-menu-item-tabs, .accordion-section ul.wp-tab-bar { margin: 0; } .accordion-section .categorychecklist { margin: 13px 0; } #nav-menu-meta .accordion-section-content { padding: 18px 13px; resize: vertical; } #nav-menu-meta .button-controls { margin-bottom: 0; } .has-no-menu-item .button-controls { display: none; } #nav-menus-frame { margin-left: 300px; margin-top: 23px; } #wpbody-content #menu-settings-column { display: inline; width: 281px; margin-left: -300px; clear: both; float: left; padding-top: 0; } #menu-settings-column .inside { clear: both; margin: 10px 0 0; height: 100%; max-height: inherit; } #menu-settings-column .categorydiv, #menu-settings-column .customlinkdiv, #menu-settings-column .posttypediv, #menu-settings-column .taxonomydiv { max-height: inherit; height: 100%; } #menu-settings-column .wp-tab-panel, #menu-settings-column .categorydiv div.tabs-panel, #menu-settings-column .customlinkdiv div.tabs-panel, #menu-settings-column .posttypediv div.tabs-panel, #menu-settings-column .taxonomydiv div.tabs-panel { /* Allow space for content after tab panels in nav menu editor. */ max-height: calc( 100% - 75px ); height: 100%; } .metabox-holder-disabled .postbox, .metabox-holder-disabled .accordion-section-content, .metabox-holder-disabled .accordion-section-title { opacity: 0.5; filter: alpha(opacity=50); } .metabox-holder-disabled .button-controls .select-all { display: none; } #wpbody { position: relative; } .is-submenu { color: #50575e; /* #fafafa background */ font-style: italic; font-weight: 400; margin-left: 4px; } .manage-menus { margin-top: 23px; padding: 10px; overflow: hidden; background: #fff; } .manage-menus .selected-menu, .manage-menus select, .manage-menus .submit-btn, .nav-menus-php .add-new-menu-action { display: inline-block; margin-right: 3px; vertical-align: middle; } .manage-menus select, .menu-location-menus select { max-width: 100%; } .menu-edit #post-body-content h3 { margin: 1em 0 10px; } #nav-menu-bulk-actions-top { margin: 1em 0; } #nav-menu-bulk-actions-bottom { margin: 1em 0; margin: calc( 1em + 9px ) 0; } .bulk-actions input.button { margin-right: 12px; } .bulk-select-button { position: relative; display: inline-block; padding: 0 10px; font-size: 13px; line-height: 2.15384615; height: auto; min-height: 30px; background: #f6f7f7; vertical-align: top; border: 1px solid #dcdcde; margin: 0; cursor: pointer; border-radius: 3px; white-space: nowrap; box-sizing: border-box; } .bulk-selection .bulk-select-button { color: #2271b1; border-color: #2271b1; background: #f6f7f7; vertical-align: top; } #pending-menu-items-to-delete { display: none; } .bulk-selection #pending-menu-items-to-delete { display: block; margin-top: 1em; } #pending-menu-items-to-delete p { margin-bottom: 0; } #pending-menu-items-to-delete ul { margin-top: 0; list-style: none; } #pending-menu-items-to-delete ul li { display: inline; } input.bulk-select-switcher + .bulk-select-button-label { vertical-align: inherit; } label.bulk-select-button:hover, label.bulk-select-button:active, label.bulk-select-button:focus-within { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; } input.bulk-select-switcher:focus + .bulk-select-button-label { color: #0a4b78; } .bulk-actions input.menu-items-delete { appearance: none; font-size: inherit; border: 0; line-height: 2.1em; background: none; cursor: pointer; text-decoration: underline; color: #b32d2e; } .bulk-actions input.menu-items-delete:hover { color: #b32d2e; border: none; } .bulk-actions input.menu-items-delete.disabled { display: none; } .menu-settings { border-top: 1px solid #f0f0f1; margin-top: 2em; } .menu-settings-group { margin: 0 0 10px; padding-left: 20%; } .menu-settings-group:last-of-type { margin-bottom: 0; } .menu-settings-input { float: left; margin: 0; width: 100%; } .menu-settings-group-name { float: left; clear: both; width: 25%; padding: 3px 0 0; margin-left: -25%; /* 20 container left padding x ( 100 container % width / 80 this % width ) */ } .menu-settings label { vertical-align: baseline; } .menu-edit .checkbox-input { margin-top: 4px; } .theme-location-set { color: #646970; font-size: 11px; } /* Menu Container */ /* @todo: responsive view. */ #menu-management-liquid { float: left; min-width: 100%; margin-top: 3px; } /* @todo: responsive view. */ #menu-management { position: relative; margin-right: 20px; margin-top: -3px; width: 100%; } #menu-management .menu-edit { margin-bottom: 20px; } .nav-menus-php #post-body { padding: 0 10px; border-top: 1px solid #fff; border-bottom: 1px solid #dcdcde; background: #fff; } #nav-menu-header, #nav-menu-footer { padding: 0 10px; background: #f6f7f7; } #nav-menu-header { border-bottom: 1px solid #dcdcde; margin-bottom: 0; } #nav-menu-header .menu-name-label { display: inline-block; vertical-align: middle; margin-right: 7px; } .nav-menus-php #post-body div.updated, .nav-menus-php #post-body div.error { margin: 0; } .nav-menus-php #post-body-content { position: relative; float: none; } .nav-menus-php #post-body-content .post-body-plain { margin-bottom: 0; } #menu-management .menu-add-new abbr { font-weight: 600; } #select-nav-menu-container { text-align: right; padding: 0 10px 3px; margin-bottom: 5px; } #select-nav-menu { width: 100px; display: inline; } #menu-name-label { margin-top: -2px; } .widefat .menu-locations .menu-location-title { padding: 13px 10px 0; } .menu-location-title label { font-weight: 600; } .menu-location-menus select { float: left; } #locations-nav-menu-wrapper { padding: 5px 0; } .locations-nav-menu-select select { float: left; width: 160px; margin-right: 5px; } .locations-row-links { float: left; margin: 6px 0 0 6px; } .locations-edit-menu-link, .locations-add-menu-link { margin: 0 3px; } .locations-edit-menu-link { padding-right: 3px; border-right: 1px solid #c3c4c7; } #menu-management .inside { padding: 0 10px; } /* Add Menu Item Boxes */ .postbox .howto input { width: 180px; float: right; } .accordion-container .outer-border { margin: 0; } .customlinkdiv p { margin-top: 0 } #nav-menu-theme-locations .howto select { width: 100%; } #nav-menu-theme-locations .button-controls { text-align: right; } .add-menu-item-view-all { height: 400px; } /* Button Primary Actions */ #menu-container .submit { margin: 0 0 10px; padding: 0; } /* @todo: is this actually used? */ #cancel-save { text-decoration: underline; font-size: 12px; margin-left: 20px; margin-top: 5px; } .button.right, .button-secondary.right, .button-primary.right { float: right; } /* Button Secondary Actions */ .list-controls { float: left; } .add-to-menu { float: right; } .button-controls { clear: both; margin: 10px 0; } .show-all, .hide-all { cursor: pointer; } .hide-all { display: none; } /* Create Menu */ #menu-name { width: 270px; vertical-align: middle; } #manage-menu .inside { padding: 0; } /* Custom Links */ #available-links dt { display: block; } #add-custom-link .howto { font-size: 12px; } #add-custom-link label span { display: block; float: left; margin-top: 5px; padding-right: 5px; } .menu-item-textbox { width: 180px; } .customlinkdiv .menu-item-textbox { width: 100%; } .nav-menus-php .howto span { float: left; margin-top: 6px; } /* Menu item types */ .quick-search { width: 190px; } .quick-search-wrap .spinner { float: none; margin: -3px -10px 0 0; } .nav-menus-php .list-wrap { display: none; clear: both; margin-bottom: 10px; } .nav-menus-php .postbox p.submit { margin-bottom: 0; } /* Listings */ .nav-menus-php .list li { display: none; margin: 0 0 5px; } .nav-menus-php .list li .menu-item-title { cursor: pointer; display: block; } .nav-menus-php .list li .menu-item-title input { margin-right: 3px; margin-top: -3px; } .menu-item-title input[type=checkbox] { display: inline-block; margin-top: -4px; } .menu-item-title .post-state { font-weight: 600; } /* Nav Menu */ #menu-container .inside { padding-bottom: 10px; } .menu { padding-top: 1em; } #menu-to-edit { margin: 0; padding: 0.1em 0; } .menu ul { width: 100%; } .menu li { margin-bottom: 0; position: relative; } .menu-item-bar { clear: both; line-height: 1.5; position: relative; margin: 9px 0 0; } .menu-item-bar .menu-item-handle { border: 1px solid #dcdcde; position: relative; padding: 10px 15px; height: auto; min-height: 20px; max-width: 382px; line-height: 2.30769230; overflow: hidden; word-wrap: break-word; } .menu-item-bar .menu-item-handle:hover { border-color: #8c8f94; } #menu-to-edit .menu-item-invalid .menu-item-handle { background: #fcf0f1; border-color: #d63638; } .no-js .menu-item-edit-active .item-edit { display: none; } .js .menu-item-handle { cursor: move; } .menu li.deleting .menu-item-handle { background-image: none; background-color: #f86368; } .menu-item-handle .item-title { font-size: 13px; font-weight: 600; line-height: 1.53846153; display: block; /* @todo: responsive view. */ margin-right: 13em; } .menu-item-handle .menu-item-checkbox { display: none; } .bulk-selection .menu-item-handle .menu-item-checkbox { display: inline-block; margin-right: 6px; } .menu-item-handle .menu-item-title.no-title { color: #646970; } /* Sortables */ li.menu-item.ui-sortable-helper .menu-item-bar { margin-top: 0; } li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar { margin-top: 9px; /* Must use the same value used by the dragged item .menu-item-bar */ } .menu .sortable-placeholder { height: 35px; width: 410px; margin-top: 9px; /* Must use the same value used by the dragged item .menu-item-bar */ } /* Hide the transport list when it's empty */ .menu-item .menu-item-transport:empty { display: none; } /* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */ .menu-item-depth-0 { margin-left: 0; } .menu-item-depth-1 { margin-left: 30px; } .menu-item-depth-2 { margin-left: 60px; } .menu-item-depth-3 { margin-left: 90px; } .menu-item-depth-4 { margin-left: 120px; } .menu-item-depth-5 { margin-left: 150px; } .menu-item-depth-6 { margin-left: 180px; } .menu-item-depth-7 { margin-left: 210px; } .menu-item-depth-8 { margin-left: 240px; } .menu-item-depth-9 { margin-left: 270px; } .menu-item-depth-10 { margin-left: 300px; } .menu-item-depth-11 { margin-left: 330px; } .menu-item-depth-0 .menu-item-transport { margin-left: 0; } .menu-item-depth-1 .menu-item-transport { margin-left: -30px; } .menu-item-depth-2 .menu-item-transport { margin-left: -60px; } .menu-item-depth-3 .menu-item-transport { margin-left: -90px; } .menu-item-depth-4 .menu-item-transport { margin-left: -120px; } .menu-item-depth-5 .menu-item-transport { margin-left: -150px; } .menu-item-depth-6 .menu-item-transport { margin-left: -180px; } .menu-item-depth-7 .menu-item-transport { margin-left: -210px; } .menu-item-depth-8 .menu-item-transport { margin-left: -240px; } .menu-item-depth-9 .menu-item-transport { margin-left: -270px; } .menu-item-depth-10 .menu-item-transport { margin-left: -300px; } .menu-item-depth-11 .menu-item-transport { margin-left: -330px; } body.menu-max-depth-0 { min-width: 950px !important; } body.menu-max-depth-1 { min-width: 980px !important; } body.menu-max-depth-2 { min-width: 1010px !important; } body.menu-max-depth-3 { min-width: 1040px !important; } body.menu-max-depth-4 { min-width: 1070px !important; } body.menu-max-depth-5 { min-width: 1100px !important; } body.menu-max-depth-6 { min-width: 1130px !important; } body.menu-max-depth-7 { min-width: 1160px !important; } body.menu-max-depth-8 { min-width: 1190px !important; } body.menu-max-depth-9 { min-width: 1220px !important; } body.menu-max-depth-10 { min-width: 1250px !important; } body.menu-max-depth-11 { min-width: 1280px !important; } /* Menu item controls */ .item-type { display: inline-block; padding: 12px 16px; color: #646970; font-size: 12px; line-height: 1.5; } .item-controls { font-size: 12px; position: absolute; right: 20px; top: -1px; } .item-controls a { text-decoration: none; } .item-controls a:hover { cursor: pointer; } .item-controls .item-order { padding-right: 10px; } .nav-menus-php .item-edit { position: absolute; right: -20px; top: 0; display: block; width: 30px; height: 40px; outline: none; } .no-js.nav-menus-php .item-edit { position: static; float: right; width: auto; height: auto; margin: 12px -10px 12px 0; padding: 0; color: #2271b1; text-decoration: underline; font-size: 12px; line-height: 1.5; } .no-js.nav-menus-php .item-edit .screen-reader-text { position: static; clip-path: none; width: auto; height: auto; margin: 0; } .nav-menus-php .item-edit:before { margin-top: 10px; margin-left: 4px; width: 20px; border-radius: 50%; text-indent: -1px; /* account for the dashicon alignment */ } .no-js.nav-menus-php .item-edit:before { display: none; } .rtl .nav-menus-php .item-edit:before { text-indent: 1px; /* account for the dashicon alignment */ } .js.nav-menus-php .item-edit:focus { box-shadow: none; } .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /* Menu editing */ .menu-instructions-inactive { display: none; } .menu-item-settings { display: block; max-width: 392px; padding: 10px; position: relative; z-index: 10; /* Keep .item-title's shadow from appearing on top of .menu-item-settings */ border: 1px solid #c3c4c7; border-top: none; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } .menu-item-settings .field-move { margin: 3px 0 5px; line-height: 1.5; } .field-move-visual-label { float: left; margin-right: 4px; } .menu-item-settings .field-move .button-link { display: none; margin: 0 2px; } .menu-item-edit-active .menu-item-settings { display: block; } .menu-item-edit-inactive .menu-item-settings { display: none; } .add-menu-item-pagelinks { margin: .5em -10px; text-align: center; } .add-menu-item-pagelinks .page-numbers { display: inline-block; min-width: 20px; } .add-menu-item-pagelinks .page-numbers.dots { min-width: 0; } .link-to-original { display: block; margin: 0 0 15px; padding: 3px 5px 5px; border: 1px solid #dcdcde; color: #646970; font-size: 12px; } .link-to-original a { padding-left: 4px; font-style: normal; } .hidden-field { display: none; } .description-group { display: flex; column-gap: 10px; } .description-group > * { flex-grow: 1; } .menu-item-actions { padding-top: 15px; padding-bottom: 7px; } #cancel-save { cursor: pointer; } /* Major/minor publishing actions (classes) */ .nav-menus-php .major-publishing-actions { padding: 10px 0; display: flex; align-items: center; } .nav-menus-php .major-publishing-actions > * { margin-right: 10px; } .nav-menus-php .major-publishing-actions .form-invalid { padding-left: 4px; margin-left: -4px; } #nav-menus-frame, #menu-item-url-wrap, #menu-item-name-wrap { display: block; } .button-controls { display: flex; align-items: center; justify-content: space-between; } .button-controls-customlinkdiv { justify-content: flex-end; } /* =Media Queries -------------------------------------------------------------- */ @media only screen and (min-width: 769px) and (max-width: 1000px) { body.menu-max-depth-0 { min-width: 0 !important; } #menu-management-liquid { width: 100%; } .nav-menus-php #post-body-content { min-width: 0; } } @media screen and (max-width: 782px) { body.nav-menus-php, body.wp-customizer { min-width: 0 !important; } #nav-menus-frame { margin-left: 0; float: none; width: 100%; } #wpbody-content #menu-settings-column { display: block; width: 100%; float: none; margin-left: 0; } #side-sortables .add-menu-item-tabs { margin: 15px 0 14px; } ul.add-menu-item-tabs li.tabs { padding: 13px 15px 14px; } .nav-menus-php .customlinkdiv .howto input { width: 65%; } .nav-menus-php .quick-search { width: 85%; } #menu-management-liquid { margin-top: 25px; } .nav-menus-php .menu-name-label.howto span { margin-top: 13px } #menu-name { width: 100%; } .nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action { padding-top: 1em; } .nav-menus-php .delete-action { font-size: 14px; line-height: 2.14285714; } .menu-item-bar .menu-item-handle, .menu-item-settings { width: auto; } .menu-item-settings { padding: 10px; } .menu-item-settings .description-group { display: block; } .menu-item-settings input { width: 100%; } .menu-item-settings input[type="checkbox"], .menu-item-settings input[type="radio"] { width: 25px; } .menu-settings-group { padding-left: 0; overflow: visible; } .menu-settings-group-name { float: none; width: auto; margin-left: 0; margin-bottom: 15px; } .menu-settings-input { float: none; margin-bottom: 15px; } .menu-edit .checkbox-input { margin-top: 0; } .manage-menus select { margin: 0.5em 0; } .wp-core-ui .manage-menus .button { margin-bottom: 0; } .widefat .menu-locations .menu-location-title { padding-top: 16px; } } @media only screen and (min-width: 783px) { @supports (position: sticky) and (scroll-margin-bottom: 130px) { #nav-menu-footer { position: sticky; bottom: 0; z-index: 10; box-shadow: 0 -1px 0 0 #ddd; } #save_menu_header { display: none; } } } @media only screen and (max-width: 768px) { /* menu locations */ #menu-locations-wrap .widefat { width: 100%; } .bulk-select-button { padding: 5px 10px; } } css/code-editor-rtl.css000064400000003122152213653150011044 0ustar00/*! This file is auto-generated */ .wrap [class*="CodeMirror-lint-marker"], .wp-core-ui [class*="CodeMirror-lint-message"], .wrap .CodeMirror-lint-marker-multiple { background-image: none; } .wp-core-ui .CodeMirror-lint-marker-error, .wp-core-ui .CodeMirror-lint-marker-warning { cursor: help; } .wrap .CodeMirror-lint-marker-multiple { position: absolute; top: 0; } .wrap [class*="CodeMirror-lint-marker"]:before { font: normal 18px/1 dashicons; position: relative; top: -2px; } .wp-core-ui [class*="CodeMirror-lint-message"]:before { font: normal 16px/1 dashicons; right: 16px; position: absolute; } .wp-core-ui .CodeMirror-lint-message-error, .wp-core-ui .CodeMirror-lint-message-warning { box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); margin: 5px 0 2px; padding: 3px 28px 3px 12px; } .wp-core-ui .CodeMirror-lint-message-warning { background-color: #fcf9e8; border-right: 4px solid #dba617; } .wrap .CodeMirror-lint-marker-warning:before, .wp-core-ui .CodeMirror-lint-message-warning:before { content: "\f534"; color: #dba617; } .wp-core-ui .CodeMirror-lint-message-error { background-color: #fcf0f1; border-right: 4px solid #d63638; } .wrap .CodeMirror-lint-marker-error:before, .wp-core-ui .CodeMirror-lint-message-error:before { content: "\f153"; color: #d63638; } .wp-core-ui .CodeMirror-lint-tooltip { background: none; border: none; border-radius: 0; direction: rtl; } .wrap .CodeMirror .CodeMirror-matchingbracket { background: rgba(219, 166, 23, 0.3); color: inherit; } .CodeMirror { text-align: right; } .wrap .CodeMirror .CodeMirror-linenumber { color: #646970; } css/customize-nav-menus.min.css000064400000044123152213653150012570 0ustar00/*! This file is auto-generated */ #customize-theme-controls #accordion-section-menu_locations{position:relative;margin-top:30px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#dcdcde;margin-top:15px}#customize-theme-controls .customize-section-title-menu_locations-description,#customize-theme-controls .customize-section-title-menu_locations-heading,#customize-theme-controls .customize-section-title-nav_menus-heading{padding:0 12px}#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description{font-style:normal}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#50575e}.customize-control-nav_menu_location .create-menu,.customize-control-nav_menu_location .edit-menu{margin-left:6px;vertical-align:middle;line-height:2.2}#customize-controls .customize-control-nav_menu_name{margin-bottom:12px}.customize-control-nav_menu_name p:last-of-type{margin-bottom:0}#customize-new-menu-submit{float:right;min-width:85px}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;max-width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-right:0}.wp-customizer .menu-item-handle .item-type{padding:1px 21px 0 5px;float:right;text-align:right}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-left:4px solid #72aee6}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#f0f0f1;border:1px solid #8c8f94;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:left;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;right:0}.menus-move-left:before{content:"\f341";content:"\f341"/''}.menus-move-right:before{content:"\f345";content:"\f345"/''}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%}.wp-customizer .menu-item .item-edit{position:absolute;right:-19px;top:2px;display:block;width:30px;height:38px;margin-right:0!important;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before{content:"\f142";content:"\f142"/''}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #c3c4c7}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.wp-customizer .menu-location-settings{margin-top:12px;border-top:none}.wp-customizer .control-section-nav_menu .menu-location-settings{margin-top:24px;border-top:1px solid #dcdcde}.customize-control-nav_menu_auto_add,.wp-customizer .control-section-nav_menu .menu-location-settings{padding-top:12px}.menu-location-settings .customize-control-checkbox .theme-location-set{line-height:1}.customize-control-nav_menu_auto_add label{vertical-align:top}.menu-location-settings .new-menu-locations-widget-note{display:block}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#50575e}.customize-screen-options-toggle{background:0 0;border:none;color:#50575e;cursor:pointer;margin:0;padding:20px;position:absolute;right:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:var(--wp-admin-theme-color)}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:2px solid transparent}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";content:"\f111"/'';display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;left:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #dcdcde;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-right:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.rtl .wp-customizer .toggle-indicator{text-indent:1px}#available-menu-items .accordion-section-title .toggle-indicator:before,.wp-customizer .menu-item .item-edit .toggle-indicator:before{content:"\f140";content:"\f140"/'';display:block;padding:1px 2px 1px 0;border-radius:50%;color:#787c82;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.control-section-nav_menu .field-css-classes,.control-section-nav_menu .field-description,.control-section-nav_menu .field-link-target,.control-section-nav_menu .field-title-attribute,.control-section-nav_menu .field-xfn{display:none}.control-section-nav_menu.field-css-classes-active .field-css-classes,.control-section-nav_menu.field-description-active .field-description,.control-section-nav_menu.field-link-target-active .field-link-target,.control-section-nav_menu.field-title-attribute-active .field-title-attribute,.control-section-nav_menu.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-left:0}.menu-item-depth-1{margin-left:20px}.menu-item-depth-2{margin-left:40px}.menu-item-depth-3{margin-left:60px}.menu-item-depth-4{margin-left:80px}.menu-item-depth-5{margin-left:100px}.menu-item-depth-6{margin-left:120px}.menu-item-depth-7{margin-left:140px}.menu-item-depth-8{margin-left:160px}.menu-item-depth-9{margin-left:180px}.menu-item-depth-10{margin-left:200px}.menu-item-depth-11{margin-left:220px}.menu-item-depth-0>.menu-item-bar{margin-right:0}.menu-item-depth-1>.menu-item-bar{margin-right:20px}.menu-item-depth-2>.menu-item-bar{margin-right:40px}.menu-item-depth-3>.menu-item-bar{margin-right:60px}.menu-item-depth-4>.menu-item-bar{margin-right:80px}.menu-item-depth-5>.menu-item-bar{margin-right:100px}.menu-item-depth-6>.menu-item-bar{margin-right:120px}.menu-item-depth-7>.menu-item-bar{margin-right:140px}.menu-item-depth-8>.menu-item-bar{margin-right:160px}.menu-item-depth-9>.menu-item-bar{margin-right:180px}.menu-item-depth-10>.menu-item-bar{margin-right:200px}.menu-item-depth-11>.menu-item-bar{margin-right:220px}.menu-item-depth-0 .menu-item-transport{margin-left:0}.menu-item-depth-1 .menu-item-transport{margin-left:-20px}.menu-item-depth-3 .menu-item-transport{margin-left:-60px}.menu-item-depth-4 .menu-item-transport{margin-left:-80px}.menu-item-depth-2 .menu-item-transport{margin-left:-40px}.menu-item-depth-5 .menu-item-transport{margin-left:-100px}.menu-item-depth-6 .menu-item-transport{margin-left:-120px}.menu-item-depth-7 .menu-item-transport{margin-left:-140px}.menu-item-depth-8 .menu-item-transport{margin-left:-160px}.menu-item-depth-9 .menu-item-transport{margin-left:-180px}.menu-item-depth-10 .menu-item-transport{margin-left:-200px}.menu-item-depth-11 .menu-item-transport{margin-left:-220px}.reordering .menu-item-depth-0{margin-left:0}.reordering .menu-item-depth-1{margin-left:15px}.reordering .menu-item-depth-2{margin-left:30px}.reordering .menu-item-depth-3{margin-left:45px}.reordering .menu-item-depth-4{margin-left:60px}.reordering .menu-item-depth-5{margin-left:75px}.reordering .menu-item-depth-6{margin-left:90px}.reordering .menu-item-depth-7{margin-left:105px}.reordering .menu-item-depth-8{margin-left:120px}.reordering .menu-item-depth-9{margin-left:135px}.reordering .menu-item-depth-10{margin-left:150px}.reordering .menu-item-depth-11{margin-left:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-right:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-right:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-right:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-right:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-right:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-right:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-right:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-right:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-right:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-right:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-right:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-right:165px}.control-section-nav_menu.menu .menu-item-edit-active{margin-left:0}.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar{margin-right:0}.control-section-nav_menu.menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:calc(100% - 2px);float:left;display:list-item;border-color:#a7aaad}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar{margin-top:0}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}.menu-item-bar .item-delete{color:#d63638;position:absolute;top:2px;right:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";content:"\f335"/'';position:absolute;top:9px;left:5px;border-radius:50%;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{box-shadow:none;outline:0;color:#d63638}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-left:none;border-right:none;background:#fff;transition:background-color .15s;-webkit-user-select:auto;user-select:auto}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#f0f0f1}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:before,#available-menu-items .button-link:focus .toggle-indicator:before,#available-menu-items .button-link:hover .toggle-indicator:before{color:#1d2327}#available-menu-items .open .accordion-section-title .toggle-indicator:before{content:"\f142";color:#1d2327}#available-menu-items .available-menu-items-list{overflow-y:auto;max-height:200px;background:0 0}#available-menu-items .accordion-section-title button .toggle-indicator{display:flex;align-items:center;width:28px;height:35px;position:absolute;top:5px;right:5px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button:not(#available-menu-items-search button.is-visible){display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{float:right;color:#50575e;font-weight:400;margin-left:5px}#available-menu-items .accordion-section-content{max-height:290px;margin:0;padding:0;position:relative;background:0 0}#available-menu-items .accordion-section-content .available-menu-items-list{margin:0 0 64px;padding:1px 15px 15px}#available-menu-items .accordion-section-content .available-menu-items-list:only-child{margin-bottom:0}#new-custom-menu-item .accordion-section-content{padding:0 15px 15px}#available-menu-items .menu-item-tpl{margin:0}#available-menu-items .new-content-item .create-item-input.invalid,#available-menu-items .new-content-item .create-item-input.invalid:focus,#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.edit-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid #d63638}#available-menu-items .menu-item-handle .item-type{padding-right:0}#available-menu-items .menu-item-handle .item-title{padding-left:20px}#available-menu-items .menu-item-handle{cursor:pointer}#available-menu-items .menu-item-handle{box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;left:1px;color:#8c8f94;width:30px;height:38px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .menu-item-handle .item-add:focus{color:#1d2327}#available-menu-items .item-add:before{content:"\f543";content:"\f543"/'';position:relative;left:2px;top:3px;display:inline-block;height:20px;border-radius:50%;font:normal 20px/1.05 dashicons}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#646970}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147";content:"\f147"/''}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .spinner{position:absolute;bottom:24px;right:21px;margin:0!important}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;left:0;top:83px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;box-sizing:border-box}#available-menu-items-search .nothing-found{margin-top:-1px}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}@media (prefers-reduced-motion:no-preference){#customize-preview{transition:all .2s}}body.adding-menu-items #available-menu-items{left:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{left:300px}body.adding-menu-items #customize-preview{opacity:.4}body.adding-menu-items #customize-preview iframe{pointer-events:none}.menu-item-handle .spinner{display:none;float:left;margin:0 8px 0 0}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 0 0 8px}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 15px 10px 8px;cursor:default;opacity:.5;background:#fff;color:#787c82}.added-menu-item .menu-item-handle{transition-property:opacity,background,color;transition-duration:1.25s;transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title{border-bottom-color:#dcdcde}#accordion-section-add_menu{margin:15px 12px}#accordion-section-add_menu h3{text-align:right}#accordion-section-add_menu .customize-add-menu-button,#accordion-section-add_menu h3{margin:0}#accordion-section-add_menu .customize-add-menu-button{font-weight:400}#create-new-menu-submit{float:right;margin:0 0 12px}.menu-delete-item{float:left;padding:1em 0;width:100%}.assigned-menu-locations-title p{margin:0 0 8px}li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:var(--wp-admin-theme-color)}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:var(--wp-admin-theme-color)}.menu-item-edit-active .menu-item-handle{border-color:#8c8f94;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu .new-menu-item-invitation{margin-top:0;margin-bottom:0}.customize-control-nav_menu .customize-control-nav_menu-buttons{display:flex;flex-direction:row-reverse;align-items:center;gap:8px;margin-top:12px}#available-menu-items .item-add:focus:before,#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before,.menu-delete:focus,.menu-item-bar .item-delete:focus:before,.wp-customizer .menu-item .submitbox .submitdelete:focus,.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:71px}}@media screen and (max-width:640px){#available-menu-items #available-menu-items-search .accordion-section-content{top:154px}}css/login.css000064400000020075152213653150007165 0ustar00html, body { height: 100%; margin: 0; padding: 0; } body { background: #f0f0f1; min-width: 0; color: #3c434a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4; } a { color: var(--wp-admin-theme-color-darker-10); transition-property: border, background, color; transition-duration: .05s; transition-timing-function: ease-in-out; } a { outline: 0; } a:hover, a:active { color: var(--wp-admin-theme-color-darker-20); } a:focus { color: #043959; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } p { line-height: 1.5; } .login .message, .login .notice, .login .success { border-left: 4px solid #3858e9; padding: 8px 12px; margin-top: 0; margin-left: 0; margin-bottom: 20px; background-color: #fff; word-wrap: break-word; } .login .message p, .login .notice p, .login .success p { font-size: 13px; line-height: 1.54; margin: 0.5em 0; } .login .success { border-left-color: #4ab866; background-color: #eff9f1; } /* Match border color from common.css */ .login .notice-error { border-left-color: #cc1818; background-color: #fcf0f0; } .login .login-error-list { list-style: none; } .login .login-error-list li + li { margin-top: 4px; } #loginform p.submit, .login-action-lostpassword p.submit { border: none; margin: -10px 0 20px; /* May want to revisit this */ } .login * { margin: 0; padding: 0; } .login .input::-ms-clear { display: none; } .login .pw-weak { margin-bottom: 15px; } /* rtl:ignore */ .login .button.wp-hide-pw { background: transparent; border: 1px solid transparent; box-shadow: none; font-size: 14px; line-height: normal; width: 2.5rem; height: 2.5rem; min-width: 40px; min-height: 40px; margin: 0; padding: 5px 9px; position: absolute; right: 0; top: 0; } .login .button.wp-hide-pw:hover { background: transparent; } .login .button.wp-hide-pw:focus { background: transparent; border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 1px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .login .button.wp-hide-pw:active { background: transparent; box-shadow: none; transform: none; } .login .button.wp-hide-pw .dashicons { width: 1.25rem; height: 1.25rem; } .login .wp-pwd { position: relative; } .no-js .hide-if-no-js { display: none; } .login form { margin: 24px 0; padding: 26px 24px; font-weight: 400; overflow: hidden; background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); } .login form.shake { animation: shake 0.2s cubic-bezier(.19,.49,.38,.79) both; animation-iteration-count: 3; transform: translateX(0); } @keyframes shake { 25% { transform: translateX(-20px); } 75% { transform: translateX(20px); } 100% { transform: translateX(0); } } @media (prefers-reduced-motion: reduce) { .login form.shake { animation: none; transform: none; } } .login-action-confirm_admin_email #login { width: 60vw; max-width: 650px; margin-top: -2vh; } @media screen and (max-width: 782px) { .login-action-confirm_admin_email #login { box-sizing: border-box; margin-top: 0; padding-left: 4vw; padding-right: 4vw; width: 100vw; } } .login form .forgetmenot { font-weight: 400; float: left; margin-bottom: 0; } .login .button-primary { float: right; } .login .reset-pass-submit { display: flex; flex-flow: row wrap; justify-content: space-between; } .login .reset-pass-submit .button { display: inline-block; float: none; margin-bottom: 6px; } .login .admin-email-confirm-form .submit { text-align: center; } .admin-email__later { text-align: left; } .login form p.admin-email__details { margin: 1.1em 0; } .login .admin-email__heading { border-bottom: 1px #f0f0f1 solid; color: #50575e; font-weight: normal; padding-bottom: 0.5em; text-align: left; } .admin-email__actions div { padding-top: 1.5em; } .login .admin-email__actions .button-primary { float: none; margin-left: 0.25em; margin-right: 0.25em; } #login form p { margin-bottom: 0; } #login form .indicator-hint, #login #reg_passmail { margin-bottom: 16px; } #login form p.submit { margin: 0; padding: 0; } .login label { font-size: 14px; line-height: 1.5; display: inline-block; margin-bottom: 3px; } .login .forgetmenot label, .login .pw-weak label { line-height: 1.5; vertical-align: baseline; } .login h1 { text-align: center; } .login h1 a { background-image: url(../images/w-logo-gray.png?ver=20260303); background-image: none, url(../images/wordpress-logo-gray.svg?ver=20260303); background-size: 84px; background-position: center top; background-repeat: no-repeat; color: #3c434a; height: 84px; font-size: 20px; font-weight: 400; line-height: 1.3; margin: 0 auto 24px; padding: 0; text-decoration: none; width: 84px; text-indent: -9999px; outline: none; overflow: hidden; display: block; } #login { width: 320px; padding: 5% 0 0; margin: auto; } .login #nav, .login #backtoblog { font-size: 13px; padding: 0 24px; } .login #nav { margin: 24px 0 0; } #backtoblog { margin: 16px 0; word-wrap: break-word; } .login #nav a, .login #backtoblog a { text-decoration: none; color: #50575e; } .login #nav a:hover, .login #backtoblog a:hover, .login h1 a:hover { color: var(--wp-admin-theme-color-darker-20); } .login #nav a:focus, .login #backtoblog a:focus, .login h1 a:focus { color: #043959; } .login .privacy-policy-page-link { text-align: center; width: 100%; margin: 3em 0 2em; } .login form .input, .login input[type="text"], .login input[type="password"] { font-size: 24px; line-height: 1.33333333; /* 32px */ width: 100%; border-width: 0.0625rem; padding: 0.1875rem 0.3125rem; /* 3px 5px */ margin: 0 6px 16px 0; min-height: 40px; max-height: none; } .login input.password-input { font-family: Consolas, Monaco, monospace; } /* rtl:ignore */ .js.login input.password-input { padding-right: 2.5rem; } .js.login-action-resetpass input[type="text"], .js.login-action-resetpass input[type="password"], .js.login-action-rp input[type="text"], .js.login-action-rp input[type="password"] { margin-bottom: 0; } .login #pass-strength-result { font-weight: 600; margin: -1px 5px 16px 0; padding: 6px 5px; text-align: center; width: 100%; } body.interim-login { height: auto; } .interim-login #login { padding: 0; margin: 5px auto 20px; } .interim-login.login h1 a { width: auto; } .interim-login #login_error, .interim-login.login .message { margin: 0 0 16px; } .interim-login.login form { margin: 0; } /* Hide visually but not from screen readers */ .screen-reader-text, .screen-reader-text span { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } /* Hide the Edge "reveal password" native button */ input::-ms-reveal { display: none; } #language-switcher { padding: 0; overflow: visible; background: none; border: none; box-shadow: none; } #language-switcher select { margin-right: 0.25em; } .language-switcher { margin: 0 auto; padding: 0 0 24px; text-align: center; } .language-switcher label { margin-right: 0.25em; } .language-switcher label .dashicons { width: auto; height: auto; } .login .language-switcher .button { margin-bottom: 0; } @media screen and (max-height: 550px) { #login { padding: 20px 0; } #language-switcher { margin-top: 0; } } @media screen and (max-width: 782px) { .interim-login input[type=checkbox] { width: 1rem; height: 1rem; } .interim-login input[type=checkbox]:checked:before { width: 1.3125rem; height: 1.3125rem; margin: -0.1875rem 0 0 -0.25rem; } #language-switcher label, #language-switcher select { margin-right: 0; } } @media screen and (max-width: 400px) { .login .language-switcher .button { display: block; margin: 5px auto 0; } } css/deprecated-media-rtl.css000064400000014776152213653150012044 0ustar00/*! This file is auto-generated */ /* Styles for the media library iframe (not used on the Library screen) */ div#media-upload-header { margin: 0; padding: 5px 5px 0; font-weight: 600; position: relative; border-bottom: 1px solid #dcdcde; background: #f6f7f7; } #sidemenu { overflow: hidden; float: none; position: relative; right: 0; bottom: -1px; margin: 0 5px; padding-right: 10px; list-style: none; font-size: 12px; font-weight: 400; } #sidemenu a { padding: 0 7px; display: block; float: right; line-height: 28px; border-top: 1px solid #f6f7f7; border-bottom: 1px solid #dcdcde; background-color: #f6f7f7; text-decoration: none; transition: none; } #sidemenu li { display: inline; line-height: 200%; list-style: none; text-align: center; white-space: nowrap; margin: 0; padding: 0; } #sidemenu a.current { font-weight: 400; padding-right: 6px; padding-left: 6px; border: 1px solid #dcdcde; border-bottom-color: #f0f0f1; background-color: #f0f0f1; color: #000; } #media-upload:after { /* clearfix */ content: ""; display: table; clear: both; } #media-upload .slidetoggle { border-top-color: #dcdcde; } #media-upload input[type="radio"] { padding: 0; } .media-upload-form label.form-help, td.help { color: #646970; } form { margin: 1em; } #search-filter { text-align: left; } th { position: relative; } .media-upload-form label.form-help, td.help { font-family: sans-serif; font-style: italic; font-weight: 400; } .media-upload-form p.help { margin: 0; padding: 0; } .media-upload-form fieldset { width: 100%; border: none; text-align: justify; margin: 0 0 1em; padding: 0; } /* specific to the image upload form */ .image-align-none-label { background: url(../images/align-none.png) no-repeat center right; } .image-align-left-label { background: url(../images/align-left.png) no-repeat center right; } .image-align-center-label { background: url(../images/align-center.png) no-repeat center right; } .image-align-right-label { background: url(../images/align-right.png) no-repeat center right; } tr.image-size td { width: 460px; } tr.image-size div.image-size-item { margin: 0 0 5px; } #library-form .progress, #gallery-form .progress, .insert-gallery, .describe.startopen, .describe.startclosed { display: none; } .media-item .thumbnail { max-width: 128px; max-height: 128px; } thead.media-item-info tr { background-color: transparent; } .form-table thead.media-item-info { border: 8px solid #fff; } abbr.required, span.required { text-decoration: none; border: none; } .describe label { display: inline; } .describe td.error { padding: 2px 8px; } .describe td.A1 { width: 132px; } .describe input[type="text"], .describe textarea { width: 460px; border-width: 1px; border-style: solid; } /* Specific to Uploader */ #media-upload p.ml-submit { padding: 1em 0; } #media-upload p.help, #media-upload label.help { font-family: sans-serif; font-style: italic; font-weight: 400; } #media-upload .ui-sortable .media-item { cursor: move; } #media-upload tr.image-size { margin-bottom: 1em; height: 3em; } #media-upload #filter { width: 623px; } #media-upload #filter .subsubsub { margin: 8px 0; } #media-upload .tablenav-pages a, #media-upload .tablenav-pages .current { display: inline-block; padding: 4px 5px 6px; font-size: 16px; line-height: 1; text-align: center; text-decoration: none; } #media-upload .tablenav-pages a { min-width: 17px; border: 1px solid #c3c4c7; background: #f6f7f7; } #filter .tablenav select { border-style: solid; border-width: 1px; padding: 2px; vertical-align: top; width: auto; } #media-upload .del-attachment { display: none; margin: 5px 0; } .menu_order { float: left; font-size: 11px; margin: 8px 10px 0; } .menu_order_input { border: 1px solid #dcdcde; font-size: 10px; padding: 1px; width: 23px; } .ui-sortable-helper { background-color: #fff; border: 1px solid #a7aaad; opacity: 0.6; filter: alpha(opacity=60); } #media-upload th.order-head { width: 20%; text-align: center; } #media-upload th.actions-head { width: 25%; text-align: center; } #media-upload a.wp-post-thumbnail { margin: 0 20px; } #media-upload .widefat { border-style: solid solid none; } .sorthelper { height: 37px; width: 623px; display: block; } #gallery-settings th.label { width: 160px; } #gallery-settings #basic th.label { padding: 5px 0 5px 5px; } #gallery-settings .title { clear: both; padding: 0 0 3px; font-size: 1.6em; border-bottom: 1px solid #dcdcde; } h3.media-title { font-size: 1.6em; } h4.media-sub-title { border-bottom: 1px solid #dcdcde; font-size: 1.3em; margin: 12px; padding: 0 0 3px; } #gallery-settings .title, h3.media-title, h4.media-sub-title { font-family: Georgia,"Times New Roman",Times,serif; font-weight: 400; color: #50575e; } #gallery-settings .describe td { vertical-align: middle; height: 3em; } #gallery-settings .describe th.label { padding-top: .5em; text-align: right; } #gallery-settings .describe { padding: 5px; width: 100%; clear: both; cursor: default; background: #fff; } #gallery-settings .describe select { width: 15em; } #gallery-settings .describe select option, #gallery-settings .describe td { padding: 0; } #gallery-settings label, #gallery-settings legend { font-size: 13px; color: #3c434a; margin-left: 15px; } #gallery-settings .align .field label { margin: 0 3px 0 1em; } #gallery-settings p.ml-submit { border-top: 1px solid #dcdcde; } #gallery-settings select#columns { width: 6em; } #sort-buttons { font-size: 0.8em; margin: 3px 0 -8px 25px; text-align: left; max-width: 625px; } #sort-buttons a { text-decoration: none; } #sort-buttons #asc, #sort-buttons #showall { padding-right: 5px; } #sort-buttons span { margin-left: 25px; } p.media-types { margin: 0; padding: 1em; } p.media-types-required-info { padding-top: 0; } tr.not-image { display: none; } table.not-image tr.not-image { display: table-row; } table.not-image tr.image-only { display: none; } /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .image-align-none-label { background-image: url(../images/align-none-2x.png?ver=20120916); background-size: 21px 15px; } .image-align-left-label { background-image: url(../images/align-left-2x.png?ver=20120916); background-size: 22px 15px; } .image-align-center-label { background-image: url(../images/align-center-2x.png?ver=20120916); background-size: 21px 15px; } .image-align-right-label { background-image: url(../images/align-right-2x.png?ver=20120916); background-size: 22px 15px; } } css/admin-menu.css000064400000044362152213653150010114 0ustar00#adminmenuback, #adminmenuwrap, #adminmenu, #adminmenu .wp-submenu { width: 160px; background-color: #1d2327; } #adminmenuback { position: fixed; top: 0; bottom: -120px; z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */ /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } .php-error #adminmenuback { position: absolute; } .php-error #adminmenuback, .php-error #adminmenuwrap { margin-top: 2em; } #adminmenu { clear: left; margin: 12px 0; padding: 0; list-style: none; } .folded #adminmenuback, .folded #adminmenuwrap, .folded #adminmenu, .folded #adminmenu li.menu-top { width: 36px; } /* New Menu icons */ /* hide background-image for icons above */ .menu-icon-dashboard div.wp-menu-image, .menu-icon-post div.wp-menu-image, .menu-icon-media div.wp-menu-image, .menu-icon-links div.wp-menu-image, .menu-icon-page div.wp-menu-image, .menu-icon-comments div.wp-menu-image, .menu-icon-appearance div.wp-menu-image, .menu-icon-plugins div.wp-menu-image, .menu-icon-users div.wp-menu-image, .menu-icon-tools div.wp-menu-image, .menu-icon-settings div.wp-menu-image, .menu-icon-site div.wp-menu-image, .menu-icon-generic div.wp-menu-image { background-image: none !important; } /*------------------------------------------------------------------------------ 7.0 - Main Navigation (Left Menu) ------------------------------------------------------------------------------*/ #adminmenuwrap { position: relative; float: left; z-index: 9990; } /* side admin menu */ #adminmenu * { -webkit-user-select: none; user-select: none; } #adminmenu li { margin: 0; padding: 0; } #adminmenu a { display: block; line-height: 1.3; padding: 2px 5px; color: #f0f0f1; } #adminmenu .wp-submenu a { color: #c3c4c7; color: rgba(240, 246, 252, 0.7); font-size: 13px; line-height: 1.4; margin: 0; padding: 5px 0; } #adminmenu .wp-submenu a:hover, #adminmenu .wp-submenu a:focus { background: none; } #adminmenu a:hover, #adminmenu li.menu-top > a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-submenu a:focus { color: #72aee6; } #adminmenu a:hover, #adminmenu a:focus, .folded #adminmenu .wp-submenu-head:hover { box-shadow: inset 4px 0 0 0 currentColor; transition: box-shadow .1s linear; border-radius: 0; } #adminmenu li.menu-top { border: none; min-height: 34px; position: relative; } #adminmenu .wp-submenu { list-style: none; position: absolute; top: -1000em; left: 160px; overflow: visible; word-wrap: break-word; padding: 6px 0; z-index: 9999; background-color: #2c3338; box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); } .js #adminmenu .sub-open, .js #adminmenu .opensub .wp-submenu, #adminmenu a.menu-top:focus + .wp-submenu, .no-js li.wp-has-submenu:hover .wp-submenu { top: -1px; } #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { top: 0; } #adminmenu .wp-has-current-submenu .wp-submenu, .no-js li.wp-has-current-submenu:hover .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, #adminmenu .wp-has-current-submenu.opensub .wp-submenu { position: relative; z-index: 3; top: auto; left: auto; right: auto; bottom: auto; border: 0 none; margin-top: 0; box-shadow: none; } .folded #adminmenu .wp-has-current-submenu .wp-submenu { box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); } /* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */ #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { position: relative; background-color: #1d2327; color: #72aee6; } .folded #adminmenu li.menu-top:hover, .folded #adminmenu li.opensub > a.menu-top, .folded #adminmenu li > a.menu-top:focus { z-index: 10000; } #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head { background: #2271b1; color: #fff; } .folded #adminmenu .wp-submenu.sub-open, .folded #adminmenu .opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, .folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu a.menu-top:focus + .wp-submenu, .folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, .no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { top: 0; left: 36px; } .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu { position: absolute; top: -1000em; } #adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu { min-width: 160px; width: auto; border: 1px solid transparent; border-left-width: 5px; } #adminmenu .wp-submenu li.current, #adminmenu .wp-submenu li.current a, #adminmenu .opensub .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus { color: #fff; } #adminmenu .wp-not-current-submenu li > a, .folded #adminmenu .wp-has-current-submenu li > a { padding-right: 16px; padding-left: 14px; /* Exclude from the transition the outline for Windows High Contrast mode */ transition: all .1s ease-in-out, outline 0s; } #adminmenu .wp-has-current-submenu ul > li > a, .folded #adminmenu li.menu-top .wp-submenu > li > a { padding: 5px 12px; } #adminmenu a.menu-top, #adminmenu .wp-submenu-head { font-size: 14px; font-weight: 400; line-height: 1.3; padding: 0; } #adminmenu .wp-submenu-head { display: none; } .folded #adminmenu .wp-menu-name { position: absolute; left: -999px; } .folded #adminmenu .wp-submenu-head { display: block; } #adminmenu .wp-submenu li { padding: 0; margin: 0; } #adminmenu .wp-menu-image img { padding: 9px 0 0; opacity: 0.6; filter: alpha(opacity=60); } #adminmenu div.wp-menu-name { padding: 8px 8px 8px 36px; overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-word; hyphens: auto; } #adminmenu div.wp-menu-image { float: left; width: 36px; height: 34px; margin: 0; text-align: center; } #adminmenu div.wp-menu-image.svg { background-repeat: no-repeat; background-position: center; background-size: 20px auto; } div.wp-menu-image:before { color: #a7aaad; color: rgba(240, 246, 252, 0.6); padding: 7px 0; transition: all .1s ease-in-out; } #adminmenu div.wp-menu-image:before { color: #a7aaad; color: rgba(240, 246, 252, 0.6); } #adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before, #adminmenu .wp-has-current-submenu div.wp-menu-image:before, #adminmenu .current div.wp-menu-image:before, #adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before { color: #fff; } #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #72aee6; } .folded #adminmenu div.wp-menu-image { width: 35px; height: 30px; position: absolute; z-index: 25; } .folded #adminmenu a.menu-top { height: 34px; } /* Sticky admin menu */ .sticky-menu #adminmenuwrap { position: fixed; } ul#adminmenu a.wp-has-current-submenu { position: relative; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { right: 0; border: solid 8px transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-right-color: #f0f0f1; top: 50%; margin-top: -8px; } .folded ul#adminmenu li:hover a.wp-has-current-submenu:after, .folded ul#adminmenu li.wp-has-current-submenu:focus-within a.wp-has-current-submenu:after { display: none; } .folded ul#adminmenu a.wp-has-current-submenu:after, .folded ul#adminmenu > li a.current:after { border-width: 4px; margin-top: -4px; } /* flyout menu arrow */ #adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { right: 0; border: 8px solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; top: 10px; z-index: 10000; } .folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, .folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-width: 4px; margin-top: -4px; top: 18px; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: #2c3338; } #adminmenu li.menu-top:hover .wp-menu-image img, #adminmenu li.wp-has-current-submenu .wp-menu-image img { opacity: 1; filter: alpha(opacity=100); } #adminmenu li.wp-menu-separator { height: 5px; padding: 0; margin: 0 0 6px; cursor: inherit; } /* @todo: is this even needed given that it's nested beneath the above li.wp-menu-separator? */ #adminmenu div.separator { height: 2px; padding: 0; } #adminmenu .wp-submenu .wp-submenu-head { color: #fff; font-weight: 400; font-size: 14px; padding: 5px 4px 5px 11px; margin: -8px -1px 4px -5px; border-width: 3px 1px 3px 5px; border-style: solid; border-color: transparent; } #adminmenu li.current, .folded #adminmenu li.wp-menu-open { border: 0 none; } /* @todo: consider to use a single rule for these counters and the list table comments counters. */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { display: inline-block; vertical-align: top; box-sizing: border-box; margin: 1px 0 -1px 2px; padding: 0 5px; min-width: 18px; height: 18px; border-radius: 9px; background-color: #d63638; color: #fff; font-size: 11px; line-height: 1.6; text-align: center; z-index: 26; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins { background-color: #d63638; color: #fff; } #adminmenu li span.count-0 { display: none; } #collapse-button { display: block; width: 100%; height: 34px; margin: 0; border: none; padding: 0; position: relative; overflow: visible; background: none; color: #a7aaad; cursor: pointer; } #collapse-button:hover { color: #72aee6; } #collapse-button:focus { color: #72aee6; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; outline-offset: -1px; } #collapse-button .collapse-button-icon, #collapse-button .collapse-button-label { /* absolutely positioned to avoid 1px shift in IE when button is pressed */ display: block; position: absolute; top: 0; left: 0; } #collapse-button .collapse-button-label { top: 8px; } #collapse-button .collapse-button-icon { width: 36px; height: 34px; } #collapse-button .collapse-button-label { padding: 0 0 0 36px; } .folded #collapse-button .collapse-button-label { display: none; } #collapse-button .collapse-button-icon:after { content: "\f148"; content: "\f148" / ''; display: block; position: relative; top: 7px; text-align: center; font: normal 20px/1 dashicons !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* rtl:ignore */ .folded #collapse-button .collapse-button-icon:after, .rtl #collapse-button .collapse-button-icon:after { transform: rotate(180deg); } .rtl.folded #collapse-button .collapse-button-icon:after { transform: none; } #collapse-button .collapse-button-icon:after, #collapse-button .collapse-button-label { transition: all .1s ease-in-out; } /** * Toolbar menu toggle */ li#wp-admin-bar-menu-toggle { display: none; } /* Hide-if-customize for items we can't add classes to */ .customize-support #menu-appearance a[href="themes.php?page=custom-header"], .customize-support #menu-appearance a[href="themes.php?page=custom-background"] { display: none; } /* Auto-folding of the admin menu */ @media only screen and (max-width: 960px) { .auto-fold #wpcontent, .auto-fold #wpfooter { margin-left: 36px; } .auto-fold #adminmenuback, .auto-fold #adminmenuwrap, .auto-fold #adminmenu, .auto-fold #adminmenu li.menu-top { width: 36px; } .auto-fold #adminmenu .wp-submenu.sub-open, .auto-fold #adminmenu .opensub .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, .auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { top: 0; left: 36px; } .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { position: absolute; top: -1000em; margin-right: -1px; padding: 6px 0; z-index: 9999; } .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { min-width: 160px; width: auto; border: 1px solid transparent; border-left-width: 5px; } .auto-fold #adminmenu .wp-has-current-submenu li > a { padding-right: 16px; padding-left: 14px; } .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { padding-left: 12px; } .auto-fold #adminmenu .wp-menu-name { position: absolute; left: -999px; } .auto-fold #adminmenu .wp-submenu-head { display: block; } .auto-fold #adminmenu div.wp-menu-image { height: 30px; width: 34px; position: absolute; z-index: 25; } .auto-fold #adminmenu a.menu-top { min-height: 34px; } .auto-fold #adminmenu li.wp-menu-open { border: 0 none; } .auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { margin-bottom: 0; } .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after, .auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after { display: none; } .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-width: 4px; margin-top: -4px; top: 16px; } .auto-fold ul#adminmenu a.wp-has-current-submenu:after, .auto-fold ul#adminmenu > li a.current:after { border-width: 4px; margin-top: -4px; } .auto-fold #adminmenu li.menu-top:hover, .auto-fold #adminmenu li.opensub > a.menu-top, .auto-fold #adminmenu li > a.menu-top:focus { z-index: 10000; } .auto-fold #collapse-menu .collapse-button-label { display: none; } /* rtl:ignore */ .auto-fold #collapse-button .collapse-button-icon:after { transform: rotate(180deg); } .rtl.auto-fold #collapse-button .collapse-button-icon:after { transform: none; } } @media screen and (max-width: 782px) { .auto-fold #wpcontent { position: relative; margin-left: 0; padding-left: 10px; } .sticky-menu #adminmenuwrap { position: relative; z-index: auto; top: 0; } /* Sidebar Adjustments */ .auto-fold #adminmenu, .auto-fold #adminmenuback, .auto-fold #adminmenuwrap { position: absolute; width: 190px; z-index: 100; } .auto-fold #adminmenuback { position: fixed; } .auto-fold #adminmenuback, .auto-fold #adminmenuwrap { display: none; } .auto-fold .wp-responsive-open #adminmenuback, .auto-fold .wp-responsive-open #adminmenuwrap { display: block; } .auto-fold #adminmenu li.menu-top { width: 100%; } /* Resize the admin menu items to a comfortable touch size */ .auto-fold #adminmenu li a { font-size: 16px; padding: 5px; } .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { padding: 10px 10px 10px 20px; } /* Restore the menu names */ .auto-fold #adminmenu .wp-menu-name { position: static; } /* Switch the arrow side */ .auto-fold ul#adminmenu a.wp-has-current-submenu:after, .auto-fold ul#adminmenu > li.current > a.current:after { border-width: 8px; margin-top: -8px; } .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { display: none; } /* Make the submenus appear correctly when tapped. */ #adminmenu .wp-submenu { position: relative; display: none; } .auto-fold #adminmenu .selected .wp-submenu, .auto-fold #adminmenu .wp-menu-open .wp-submenu { position: relative; display: block; top: 0; left: -1px; box-shadow: none; } .auto-fold #adminmenu .selected .wp-submenu:after, .auto-fold #adminmenu .wp-menu-open .wp-submenu:after { display: none; } .auto-fold #adminmenu .opensub .wp-submenu { display: none; } .auto-fold #adminmenu .selected .wp-submenu { display: block; } .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after, .auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after { display: block; } .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { position: relative; left: -1px; right: 0; top: 0; } #adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { border: none; } /* Remove submenu headers and adjust sub meu*/ #adminmenu .wp-submenu .wp-submenu-head { display: none; } /* Toolbar menu toggle */ #wp-responsive-toggle { position: fixed; top: 5px; left: 4px; padding-right: 10px; z-index: 99999; border: none; box-sizing: border-box; } #wpadminbar #wp-admin-bar-menu-toggle a { display: block; padding: 0; overflow: hidden; outline: none; text-decoration: none; border: 1px solid transparent; background: none; height: 44px; margin-left: -1px; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #2c3338; } li#wp-admin-bar-menu-toggle { display: block; } #wpadminbar #wp-admin-bar-menu-toggle a:hover { border: 1px solid transparent; } #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { content: "\f228"; display: inline-block; float: left; font: normal 40px/45px dashicons; vertical-align: middle; outline: none; margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; height: 44px; width: 50px; padding: 0; border: none; text-align: center; text-decoration: none; box-sizing: border-box; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #72aee6; } } /* Smartphone */ @media screen and (max-width: 600px) { #adminmenuwrap, #adminmenuback { display: none; } .wp-responsive-open #adminmenuwrap, .wp-responsive-open #adminmenuback { display: block; } .auto-fold #adminmenu { top: 46px; } } css/dashboard-rtl.css000064400000073347152213653150010615 0ustar00/*! This file is auto-generated */ #wpbody-content #dashboard-widgets.columns-1 .postbox-container { width: 100%; } #wpbody-content #dashboard-widgets.columns-2 .postbox-container { width: 49.5%; } #wpbody-content #dashboard-widgets.columns-2 #postbox-container-2, #wpbody-content #dashboard-widgets.columns-2 #postbox-container-3, #wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { float: left; width: 50.5%; } #wpbody-content #dashboard-widgets.columns-3 .postbox-container { width: 33.5%; } #wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 { width: 33%; } #wpbody-content #dashboard-widgets.columns-3 #postbox-container-3, #wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 { float: left; } #wpbody-content #dashboard-widgets.columns-4 .postbox-container { width: 25%; } #dashboard-widgets .postbox-container { width: 25%; } #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { border: none !important; } #dashboard-widgets-wrap { overflow: hidden; margin: 0 -8px; } #dashboard-widgets .postbox { border-radius: 8px; } #dashboard-widgets .postbox-header .hndle { padding: 12px 16px; } #dashboard-widgets .postbox .inside { margin-bottom: 0; } #dashboard-widgets .meta-box-sortables { display: flow-root; /* avoid margin collapsing between parent and first/last child elements */ /* Required min-height to make the jQuery UI Sortable drop zone work. */ min-height: 0; margin: 0 8px 20px; } #dashboard-widgets .meta-box-sortables:not(:empty) { margin-bottom: 16px; } #dashboard-widgets .postbox-container .empty-container { outline: 2px dashed rgb(0, 0, 0, 0.15); outline-offset: -2px; border-radius: 8px; height: 250px; margin: 4px; } /* Only highlight drop zones when dragging. */ .is-dragging-metaboxes #dashboard-widgets .meta-box-sortables { border-radius: 8px; background: rgb(var(--wp-admin-theme-color--rgb), 0.04); min-height: 100px; } .is-dragging-metaboxes #dashboard-widgets .postbox-container .empty-container { background: rgb(0, 0, 0, 0.01); } #dashboard-widgets .postbox-container .empty-container:after { content: attr(data-emptystring); margin: auto; position: absolute; top: 50%; right: 0; left: 0; transform: translateY( -50% ); padding: 0 2em; text-align: center; color: #646970; font-size: 16px; line-height: 1.5; display: none; } /* @todo: this was originally in this section, but likely belongs elsewhere */ #the-comment-list td.comment p.comment-author { margin-top: 0; margin-right: 0; } #the-comment-list p.comment-author img { float: right; margin-left: 8px; } #the-comment-list p.comment-author strong a { border: none; } #the-comment-list td { vertical-align: top; } #the-comment-list td.comment { word-wrap: break-word; } #the-comment-list td.comment img { max-width: 100%; } /* Screen meta exception for when the "Dashboard" heading is missing or located below the Welcome Panel. */ .index-php #screen-meta-links { margin: 0 0 8px 20px; } /* Welcome Panel */ .welcome-panel { position: relative; overflow: auto; margin: 16px 0; border-radius: 8px; font-size: 14px; line-height: 1.3; clear: both; } .welcome-panel h2 { margin: 0; font-size: 48px; font-weight: 600; line-height: 1.25; } .welcome-panel h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.4; } .welcome-panel p { font-size: inherit; line-height: inherit; } .welcome-panel-header { position: relative; color: #fff; } .welcome-panel-header-image { position: absolute !important; top: 0; left: 0; bottom: 0; right: 0; z-index: 0 !important; overflow: hidden; } .welcome-panel-header-image svg { display: block; margin: auto; width: 100%; height: 100%; } .rtl .welcome-panel-header-image svg { transform: scaleX(-1); } .welcome-panel-header * { color: inherit; position: relative; z-index: 1; } .welcome-panel-header a:focus, .welcome-panel-header a:hover { color: inherit; text-decoration: none; } .welcome-panel-header a:focus, .welcome-panel .welcome-panel-close:focus { outline-color: currentColor; outline-offset: 1px; box-shadow: none; } .welcome-panel-header p { margin: 0.5em 0 0; font-size: 20px; line-height: 1.4; } .welcome-panel .welcome-panel-close { display: flex; align-items: center; position: absolute; top: 10px; left: 10px; padding: 10px 15px; font-size: 13px; line-height: 1.23076923; /* Chrome rounding, needs to be 16px equivalent */ text-decoration: none; z-index: 1; /* Raise above the version image. */ } .welcome-panel .welcome-panel-close:before { transition: all .1s ease-in-out; content: '\f335'; font-size: 24px; color: #fff; } .welcome-panel .welcome-panel-close { color: #fff; } .welcome-panel .welcome-panel-close:hover, .welcome-panel .welcome-panel-close:focus, .welcome-panel .welcome-panel-close:hover::before, .welcome-panel .welcome-panel-close:focus::before { color: #fff972; } /* @deprecated 5.9.0 -- Button removed from panel. */ .wp-core-ui .welcome-panel .button.button-hero { margin: 15px 0 3px 13px; padding: 12px 36px; height: auto; line-height: 1.4285714; white-space: normal; } .welcome-panel-content { min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; } .welcome-panel-header-wrap { background-color: #151515; } .welcome-panel-header { box-sizing: border-box; margin-right: auto; margin-left: auto; max-width: 1500px; width: 100%; padding: 48px 48px 80px 0; } .welcome-panel .welcome-panel-column-container { box-sizing: border-box; width: 100%; clear: both; display: grid; z-index: 1; padding: 24px; grid-template-columns: repeat(3, 1fr); gap: 32px; align-self: flex-end; background: #ffffff; border: 1px solid #c3c4c7; border-top: 0; border-radius: 0 0 8px 8px; } [class*="welcome-panel-icon"] { height: 60px; width: 60px; background-position: center; background-size: 24px 24px; background-repeat: no-repeat; border-radius: 100%; } .welcome-panel-column > svg { margin-top: 4px; } .welcome-panel-column { display: grid; grid-template-columns: min-content 1fr; gap: 24px; } .welcome-panel-icon-pages { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z' /%3E%3C/svg%3E"); } .welcome-panel-icon-layout { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z' /%3E%3C/svg%3E"); } .welcome-panel-icon-styles { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' /%3E%3C/svg%3E"); } /* @deprecated 5.9.0 -- Section removed from welcome panel. */ .welcome-panel .welcome-widgets-menus { line-height: 1.14285714; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column ul { margin: 0.8em 0 1em 1em; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel li { font-size: 14px; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel li a { text-decoration: none; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column li { line-height: 1.14285714; list-style-type: none; padding: 0 0 8px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-icon { background: transparent !important; } /* Welcome Panel and Right Now common Icons style */ /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-icon:before, #dashboard_right_now li a:before, #dashboard_right_now li span:before, #dashboard_right_now .search-engines-info:before { color: #646970; font: normal 20px/1 dashicons; display: inline-block; padding: 0 0 0 10px; position: relative; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; vertical-align: top; } /* Welcome Panel specific Icons styles */ /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-write-blog:before, .welcome-panel .welcome-edit-page:before { content: "\f119"; content: "\f119" / ''; top: -3px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-add-page:before { content: "\f132"; content: "\f132" / ''; top: -1px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-setup-home:before { content: "\f102"; content: "\f102" / ''; top: -1px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-view-site:before { content: "\f115"; content: "\f115" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-widgets-menus:before { content: "\f116"; content: "\f116" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-widgets:before { content: "\f538"; content: "\f538" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-menus:before { content: "\f163"; content: "\f163" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-comments:before { content: "\f117"; content: "\f117" / ''; top: -1px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-learn-more:before { content: "\f118"; content: "\f118" / ''; top: -1px; } /* Right Now specific Icons styles */ #dashboard_right_now .search-engines-info:before, #dashboard_right_now li a:before, #dashboard_right_now li > span:before { /* get only the first level span to exclude screen-reader-text in mu-storage */ padding: 0 0 0 5px; /* generic icon for items added by CPTs ? */ content: "\f159"; content: "\f159" / ''; } #dashboard_right_now .page-count a:before, #dashboard_right_now .page-count span:before { content: "\f105"; content: "\f105" / ''; } #dashboard_right_now .post-count a:before, #dashboard_right_now .post-count span:before { content: "\f109"; content: "\f109" / ''; } #dashboard_right_now .comment-count a:before { content: "\f101"; content: "\f101" / ''; } #dashboard_right_now .comment-mod-count a:before { content: "\f125"; content: "\f125" / ''; } #dashboard_right_now .storage-count a:before { content: "\f104"; content: "\f104" / ''; } #dashboard_right_now .storage-count.warning a:before { content: "\f153"; content: "\f153" / ''; } #dashboard_right_now .search-engines-info:before { content: "\f348"; content: "\f348" / ''; color: #d63638; } /* Dashboard WordPress events */ .community-events-errors { margin: 0; } .community-events-loading { padding: 10px 12px 8px; } .community-events { margin-bottom: 6px; padding: 0 12px; } .community-events .spinner { margin: 0 2px 0; } .community-events-errors[aria-hidden="true"], .community-events-errors [aria-hidden="true"], .community-events-loading[aria-hidden="true"], .community-events[aria-hidden="true"], .community-events form[aria-hidden="true"] { display: none; } .community-events .activity-block:first-child, .community-events h2 { padding-top: 12px; padding-bottom: 10px; } .community-events-form { margin: 15px 0 5px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; } .community-events-form .regular-text { width: 40%; margin: 0; min-height: 32px; padding: 0 8px; } #dashboard-widgets .community-events-form .button { min-height: 32px; line-height: 2.30769231; padding: 0 12px; } .community-events li.event-none { border-right: 4px solid var(--wp-admin-theme-color, #3858e9); } #dashboard-widgets .community-events li.event-none a { text-decoration: underline; } .community-events-form label { line-height: 2.14285714; } .community-events .activity-block > p { margin-bottom: 0; display: inline; } .community-events-toggle-location { vertical-align: middle; } /* Needs higher specificity than #dashboard-widgets .button-link */ #dashboard-widgets .community-events-cancel.button-link { text-decoration: underline; } .community-events ul { background-color: rgba(var(--wp-admin-theme-color--rgb),.08); padding-right: 0; padding-left: 0; padding-bottom: 0; } .community-events li { margin: 0; padding: 8px 12px; color: #2c3338; } .community-events li:first-child { border-top: 1px solid #e9e9ed; } .community-events li ~ li { border-top: 1px solid #e9e9ed; } .community-events .activity-block.last { border-bottom: 1px solid #e9e9ed; padding-top: 0; margin-top: -1px; } .community-events .event-info { display: block; } .community-events .ce-separator::before { content: "\2022"; content: "\2022" / ''; } .event-icon { height: 18px; padding-left: 10px; width: 18px; display: none; /* Hide on smaller screens */ } .event-icon:before { color: #646970; font-size: 18px; } .event-meetup .event-icon:before { content: "\f484"; content: "\f484" / ''; } .event-wordcamp .event-icon:before { content: "\f486"; content: "\f486" / ''; } .community-events .event-title { font-weight: 600; display: block; } .community-events .event-date, .community-events .event-time { display: block; } .community-events-footer { margin-top: 0; margin-bottom: 0; padding: 12px; border-top: 1px solid #f0f0f1; color: #646970; } /* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */ .community-events-footer .screen-reader-text { height: inherit; white-space: nowrap; } /* Dashboard WordPress news */ #dashboard_primary .inside { margin: 0; padding: 0; } #dashboard_primary .widget-loading { padding: 12px 12px 0; margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */ } /* Notice when JS is off. */ #dashboard_primary .inside .notice { margin: 0; } body #dashboard-widgets .postbox form .submit { margin: 0; } /* Used only for configurable widgets. */ .dashboard-widget-control-form p { margin-top: 0; } .rssSummary { color: #646970; margin-top: 4px; } #dashboard_primary .rss-widget { font-size: 13px; padding: 0 12px; } #dashboard_primary .rss-widget:last-child { border-bottom: none; padding-bottom: 8px; } #dashboard_primary .rss-widget a { font-weight: 400; } #dashboard_primary .rss-widget span, #dashboard_primary .rss-widget span.rss-date { color: #646970; } #dashboard_primary .rss-widget span.rss-date { margin-right: 12px; } #dashboard_primary .rss-widget ul li { padding: 4px 0; margin: 0; } /* Dashboard right now */ #dashboard_right_now ul { margin: 0; /* contain floats but don't use overflow: hidden */ display: inline-block; width: 100%; } #dashboard_right_now li { width: 50%; float: right; margin-bottom: 10px; } #dashboard_right_now .main p { margin: 0; } #dashboard_right_now #wp-version-message .button { float: left; position: relative; top: -5px; margin-right: 5px; } #dashboard_right_now p.search-engines-info { margin: 1em 0; } .mu-storage { overflow: hidden; } #dashboard-widgets h3.mu-storage { margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 400; } #network_dashboard_right_now p input { margin: 2px 1px; vertical-align: middle; } /* Dashboard right now - Colors */ #dashboard_right_now .sub { color: #50575e; background: #f6f7f7; border-top: 1px solid #f0f0f1; padding: 10px 12px 6px; } #dashboard_right_now .sub h3 { color: #50575e; } #dashboard_right_now .sub p { margin: 0 0 1em; } #dashboard_right_now .warning a:before, #dashboard_right_now .warning span:before { color: #d63638; } /* Dashboard Quick Draft */ #dashboard_quick_press .inside { margin: 0; padding: 0; } #dashboard_quick_press div.updated { margin-bottom: 10px; border: 1px solid #f0f0f1; border-width: 1px 0 1px 1px; } #dashboard_quick_press form { margin: 12px; } #dashboard_quick_press .drafts { padding: 10px 0 0; } /* Dashboard Quick Draft - Form styling */ #dashboard_quick_press label { display: inline-block; margin-bottom: 4px; } #dashboard_quick_press input, #dashboard_quick_press textarea { box-sizing: border-box; margin: 0; } #dashboard-widgets .postbox form .submit { margin: -39px 0; float: left; } #description-wrap { margin-top: 12px; } #quick-press textarea#content { min-height: 90px; max-height: 1300px; margin: 0 0 8px; padding: 8px 12px; resize: none; } /* Dashboard Quick Draft - Drafts list */ .js #dashboard_quick_press .drafts { border-top: 1px solid #f0f0f1; } #dashboard_quick_press .drafts abbr { border: none; } #dashboard_quick_press .drafts .view-all { float: left; margin: 0 0 0 12px; } #dashboard_primary a.rsswidget { font-weight: 400; } #dashboard_quick_press .drafts ul { margin: 0 12px; } #dashboard_quick_press .drafts li { margin-bottom: 1em; } #dashboard_quick_press .drafts li time { color: #646970; } #dashboard_quick_press .drafts p { margin: 0; word-wrap: break-word; } #dashboard_quick_press .draft-title { word-wrap: break-word; } #dashboard_quick_press .draft-title a, #dashboard_quick_press .draft-title time { margin: 0 0 0 5px; } /* Dashboard common styles */ #dashboard-widgets h4, /* Back-compat for pre-4.4 */ #dashboard-widgets h3, #dashboard_quick_press .drafts h2 { margin: 0 12px 8px; padding: 0; font-size: 14px; font-weight: 400; color: #1d2327; } #dashboard_quick_press .drafts h2 { line-height: inherit; } #dashboard-widgets .inside h4, /* Back-compat for pre-4.4 */ #dashboard-widgets .inside h3 { margin-right: 0; margin-left: 0; } /* Dashboard activity widget */ #dashboard_activity .comment-meta span.approve:before { content: "\f227"; content: "\f227" / ''; font: 20px/.5 dashicons; margin-right: 5px; vertical-align: middle; position: relative; top: -1px; margin-left: 2px; } #dashboard_activity .inside { margin: 0; padding: 0 12px; } #dashboard_activity .no-activity { overflow: hidden; padding: 12px 0; text-align: center; } #dashboard_activity .no-activity p { color: #646970; font-size: 16px; } #dashboard_activity .subsubsub { float: none; border-top: 1px solid #f0f0f1; margin: 0 -12px; padding: 8px 12px 4px; } #dashboard_activity .subsubsub a .count, #dashboard_activity .subsubsub a.current .count { color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */ } #future-posts ul, #published-posts ul { margin: 8px -12px 0 -12px; } #future-posts li, #published-posts li { display: grid; grid-template-columns: clamp(160px, calc(2vw + 140px), 200px) auto; column-gap: 10px; color: #646970; padding: 4px 12px; } #future-posts li:nth-child(odd), #published-posts li:nth-child(odd) { background-color: #f6f7f7; } .activity-block { border-bottom: 1px solid #f0f0f1; margin: 0 -12px 6px -12px; padding: 8px 12px 4px; } .activity-block:last-child { border-bottom: none; margin-bottom: 0; } .activity-block .subsubsub li { color: #646970; } /* Dashboard activity widget - Comments */ /* @todo: needs serious de-duplication */ #activity-widget #the-comment-list tr.undo, #activity-widget #the-comment-list div.undo { background: none; padding: 6px 0; margin-right: 12px; } #activity-widget #the-comment-list .comment-item { background: #f6f7f7; padding: 12px; position: relative; } #activity-widget #the-comment-list .avatar { position: absolute; top: 12px; } #activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar { padding-right: 63px; } #activity-widget #the-comment-list .dashboard-comment-wrap blockquote { margin: 1em 0; } #activity-widget #the-comment-list .comment-item p.row-actions { margin: 4px 0 0; } #activity-widget #the-comment-list .comment-item:first-child { border-top: 1px solid #f0f0f1; } #activity-widget #the-comment-list .unapproved { background-color: #fcf9e8; } #activity-widget #the-comment-list .unapproved:before { content: ""; display: block; position: absolute; right: 0; top: 0; bottom: 0; background: #d63638; width: 4px; } #activity-widget #the-comment-list .spam-undo-inside .avatar, #activity-widget #the-comment-list .trash-undo-inside .avatar { position: relative; top: 0; } /* Browse happy box */ #dashboard-widgets #dashboard_browser_nag.postbox .inside { margin: 10px; } .postbox .button-link .edit-box { display: none; } .edit-box { opacity: 0; } .hndle:hover .edit-box, .edit-box:focus { opacity: 1; } #dashboard-widgets form .input-text-wrap input { width: 100%; } #dashboard-widgets form .textarea-wrap textarea { width: 100%; } #dashboard-widgets .postbox form .submit { float: none; margin: .5em 0 0; padding: 0; border: none; } #dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish { min-width: 0; } #dashboard-widgets li a, #dashboard-widgets .button-link, .community-events-footer a { text-decoration: none; } #dashboard-widgets h2 a { text-decoration: underline; } #dashboard-widgets .hndle .postbox-title-action { float: left; line-height: 1.2; } #dashboard_plugins h5 { font-size: 14px; } /* Recent Comments */ #latest-comments #the-comment-list { position: relative; margin: 0 -12px; } #activity-widget #the-comment-list .comment, #activity-widget #the-comment-list .pingback { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); } #activity-widget .comments #the-comment-list .alt { background-color: transparent; } #activity-widget #latest-comments #the-comment-list .comment-item { /* the row-actions paragraph is output only for users with 'edit_comment' capabilities, for other users this needs a min height equal to the gravatar image */ min-height: 50px; margin: 0; padding: 12px; } #latest-comments #the-comment-list .pingback { padding-right: 12px !important; } #latest-comments #the-comment-list .comment-item:first-child { border-top: none; } #latest-comments #the-comment-list .comment-meta { line-height: 1.5; margin: 0; color: #646970; } #latest-comments #the-comment-list .comment-meta cite { font-style: normal; font-weight: 400; } #latest-comments #the-comment-list .comment-item blockquote, #latest-comments #the-comment-list .comment-item blockquote p { margin: 0; padding: 0; display: inline; } #latest-comments #the-comment-list .comment-item p.row-actions { margin: 3px 0 0; padding: 0; font-size: 13px; } /* Feeds */ .rss-widget ul { margin: 0; padding: 0; list-style: none; } a.rsswidget { font-size: 13px; font-weight: 600; line-height: 1.4; } .rss-widget ul li { line-height: 1.5; margin-bottom: 12px; } .rss-widget span.rss-date { color: #646970; font-size: 13px; margin-right: 3px; } .rss-widget cite { display: block; text-align: left; margin: 0 0 1em; padding: 0; } .rss-widget cite:before { content: "\2014"; content: "\2014" / ''; } .dashboard-comment-wrap { word-wrap: break-word; } /* Browser Nag */ #dashboard_browser_nag a.update-browser-link { font-size: 1.2em; font-weight: 600; } #dashboard_browser_nag a { text-decoration: underline; } #dashboard_browser_nag p.browser-update-nag.has-browser-icon { padding-left: 128px; } #dashboard_browser_nag .browser-icon { margin-top: -32px; } #dashboard_browser_nag.postbox { background-color: #b32d2e; background-image: none; border-color: #b32d2e; color: #fff; box-shadow: none; } #dashboard_browser_nag.postbox h2 { border-bottom-color: transparent; background: transparent none; color: #fff; box-shadow: none; } #dashboard_browser_nag a { color: #fff; } #dashboard_browser_nag.postbox .postbox-header { border-color: transparent; } #dashboard_browser_nag h2.hndle { border: none; font-weight: 600; font-size: 20px; padding-top: 10px; } .postbox#dashboard_browser_nag p a.dismiss { font-size: 14px; } .postbox#dashboard_browser_nag p, .postbox#dashboard_browser_nag a, .postbox#dashboard_browser_nag p.browser-update-nag { font-size: 16px; } /* PHP Nag */ #dashboard_php_nag .dashicons-warning { color: #dba617; padding-left: 6px; } #dashboard_php_nag.php-no-security-updates .dashicons-warning, #dashboard_php_nag.php-version-lower-than-future-minimum .dashicons-warning { color: #d63638; } #dashboard_php_nag h2 { display: inline-block; } #dashboard_php_nag p { margin: 12px 0; } .bigger-bolder-text { font-weight: 600; font-size: 14px; } /* =Media Queries -------------------------------------------------------------- */ @media only screen and (min-width: 1600px) { .welcome-panel .welcome-panel-column-container { display: flex; justify-content: center; } .welcome-panel-column { width: 100%; max-width: 460px; } } /* one column on the dash */ @media only screen and (max-width: 799px) { #wpbody-content #dashboard-widgets .postbox-container { width: 100%; } #dashboard-widgets .meta-box-sortables { min-height: 0; } .is-dragging-metaboxes #dashboard-widgets .meta-box-sortables { min-height: 100px; } #dashboard-widgets .meta-box-sortables.empty-container { margin-bottom: 0; } } /* two columns on the dash, but keep the setting if one is selected */ @media only screen and (min-width: 800px) and (max-width: 1499px) { #wpbody-content #dashboard-widgets .postbox-container { width: 49.5%; } #wpbody-content #dashboard-widgets #postbox-container-2, #wpbody-content #dashboard-widgets #postbox-container-3, #wpbody-content #dashboard-widgets #postbox-container-4 { float: left; width: 50.5%; } #dashboard-widgets #postbox-container-3 .empty-container, #dashboard-widgets #postbox-container-4 .empty-container { border: none; height: 0; min-height: 0; margin-bottom: 0; display: none; } #dashboard-widgets #postbox-container-3 .empty-container:after, #dashboard-widgets #postbox-container-4 .empty-container:after { display: none; } #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { width: 100%; } #wpbody #dashboard-widgets .metabox-holder.columns-1 .postbox-container .empty-container { border: none; height: 0; min-height: 0; margin-bottom: 0; } /* show the radio buttons for column prefs only for one or two columns */ .index-php .screen-layout, .index-php .columns-prefs { display: block; } .columns-prefs .columns-prefs-3, .columns-prefs .columns-prefs-4 { display: none; } #dashboard-widgets .postbox-container .empty-container:after { display: block; } } /* three columns on the dash */ @media only screen and (min-width: 1500px) and (max-width: 1800px) { #wpbody-content #dashboard-widgets .postbox-container { width: 33.5%; } #wpbody-content #dashboard-widgets #postbox-container-1 { width: 33%; } #wpbody-content #dashboard-widgets #postbox-container-3, #wpbody-content #dashboard-widgets #postbox-container-4 { float: left; } #dashboard-widgets #postbox-container-4 .empty-container { border: none; height: 0; min-height: 0; margin-bottom: 0; display: none; } #dashboard-widgets #postbox-container-4 .empty-container:after { display: none; } #dashboard-widgets .postbox-container .empty-container:after { display: block; } } /* Always show the "Drag boxes here" CSS generated content on large screens. */ @media only screen and (min-width: 1801px) { #dashboard-widgets .postbox-container .empty-container:after { display: block; } } @media screen and (max-width: 870px) { /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column li { display: inline-block; margin-left: 13px; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column ul { margin: 0.4em 0 0; } } @media screen and (max-width: 1180px) and (min-width: 783px) { .welcome-panel-column { grid-template-columns: 1fr; } [class*="welcome-panel-icon"], .welcome-panel-column > svg { display: none; } } @media screen and (max-width: 782px) { .welcome-panel .welcome-panel-column-container { grid-template-columns: 1fr; box-sizing: border-box; padding: 32px; width: 100%; } .welcome-panel .welcome-panel-column-content { max-width: 520px; } /* Keep the close icon from overlapping the Welcome text. */ .welcome-panel .welcome-panel-close { overflow: hidden; text-indent: 40px; white-space: nowrap; width: 20px; height: 20px; padding: 5px; top: 5px; left: 5px; } .welcome-panel .welcome-panel-close::before { position: absolute; top: 5px; right: -35px; } #dashboard-widgets h2 { padding: 12px; } #dashboard_recent_comments #the-comment-list .comment-item .avatar { height: 30px; width: 30px; margin: 4px 0 5px 10px; } .community-events-toggle-location { height: 38px; vertical-align: baseline; } #community-events-submit { margin-bottom: 0; } .community-events-form label, #dashboard-widgets .community-events-cancel.button-link { /* Same properties as the submit button for cross-browsers alignment. */ font-size: 14px; line-height: normal; padding: 6px 0; border: 1px solid transparent; } } /* Smartphone */ @media screen and (max-width: 600px) { .welcome-panel-header { padding: 32px 32px 64px; } .welcome-panel-header-image { display: none; } } @media screen and (max-width: 480px) { .welcome-panel-column { gap: 16px; } } @media screen and (max-width: 360px) { .welcome-panel-column { grid-template-columns: 1fr; } [class*="welcome-panel-icon"], .welcome-panel-column > svg { display: none; } } @media screen and (min-width: 355px) { .community-events .event-info { display: table-row; float: right; max-width: 59%; } .event-icon, .event-icon[aria-hidden="true"] { display: table-cell; } .event-info-inner { display: table-cell; } .community-events .event-date-time { float: left; max-width: 39%; } .community-events .event-date, .community-events .event-time { text-align: left; } } css/deprecated-media-rtl.min.css000064400000012571152213653150012615 0ustar00/*! This file is auto-generated */ div#media-upload-header{margin:0;padding:5px 5px 0;font-weight:600;position:relative;border-bottom:1px solid #dcdcde;background:#f6f7f7}#sidemenu{overflow:hidden;float:none;position:relative;right:0;bottom:-1px;margin:0 5px;padding-right:10px;list-style:none;font-size:12px;font-weight:400}#sidemenu a{padding:0 7px;display:block;float:right;line-height:28px;border-top:1px solid #f6f7f7;border-bottom:1px solid #dcdcde;background-color:#f6f7f7;text-decoration:none;transition:none}#sidemenu li{display:inline;line-height:200%;list-style:none;text-align:center;white-space:nowrap;margin:0;padding:0}#sidemenu a.current{font-weight:400;padding-right:6px;padding-left:6px;border:1px solid #dcdcde;border-bottom-color:#f0f0f1;background-color:#f0f0f1;color:#000}#media-upload:after{content:"";display:table;clear:both}#media-upload .slidetoggle{border-top-color:#dcdcde}#media-upload input[type=radio]{padding:0}.media-upload-form label.form-help,td.help{color:#646970}form{margin:1em}#search-filter{text-align:left}th{position:relative}.media-upload-form label.form-help,td.help{font-family:sans-serif;font-style:italic;font-weight:400}.media-upload-form p.help{margin:0;padding:0}.media-upload-form fieldset{width:100%;border:none;text-align:justify;margin:0 0 1em;padding:0}.image-align-none-label{background:url(../images/align-none.png) no-repeat center right}.image-align-left-label{background:url(../images/align-left.png) no-repeat center right}.image-align-center-label{background:url(../images/align-center.png) no-repeat center right}.image-align-right-label{background:url(../images/align-right.png) no-repeat center right}tr.image-size td{width:460px}tr.image-size div.image-size-item{margin:0 0 5px}#gallery-form .progress,#library-form .progress,.describe.startclosed,.describe.startopen,.insert-gallery{display:none}.media-item .thumbnail{max-width:128px;max-height:128px}thead.media-item-info tr{background-color:transparent}.form-table thead.media-item-info{border:8px solid #fff}abbr.required,span.required{text-decoration:none;border:none}.describe label{display:inline}.describe td.error{padding:2px 8px}.describe td.A1{width:132px}.describe input[type=text],.describe textarea{width:460px;border-width:1px;border-style:solid}#media-upload p.ml-submit{padding:1em 0}#media-upload label.help,#media-upload p.help{font-family:sans-serif;font-style:italic;font-weight:400}#media-upload .ui-sortable .media-item{cursor:move}#media-upload tr.image-size{margin-bottom:1em;height:3em}#media-upload #filter{width:623px}#media-upload #filter .subsubsub{margin:8px 0}#media-upload .tablenav-pages .current,#media-upload .tablenav-pages a{display:inline-block;padding:4px 5px 6px;font-size:16px;line-height:1;text-align:center;text-decoration:none}#media-upload .tablenav-pages a{min-width:17px;border:1px solid #c3c4c7;background:#f6f7f7}#filter .tablenav select{border-style:solid;border-width:1px;padding:2px;vertical-align:top;width:auto}#media-upload .del-attachment{display:none;margin:5px 0}.menu_order{float:left;font-size:11px;margin:8px 10px 0}.menu_order_input{border:1px solid #dcdcde;font-size:10px;padding:1px;width:23px}.ui-sortable-helper{background-color:#fff;border:1px solid #a7aaad;opacity:.6}#media-upload th.order-head{width:20%;text-align:center}#media-upload th.actions-head{width:25%;text-align:center}#media-upload a.wp-post-thumbnail{margin:0 20px}#media-upload .widefat{border-style:solid solid none}.sorthelper{height:37px;width:623px;display:block}#gallery-settings th.label{width:160px}#gallery-settings #basic th.label{padding:5px 0 5px 5px}#gallery-settings .title{clear:both;padding:0 0 3px;font-size:1.6em;border-bottom:1px solid #dcdcde}h3.media-title{font-size:1.6em}h4.media-sub-title{border-bottom:1px solid #dcdcde;font-size:1.3em;margin:12px;padding:0 0 3px}#gallery-settings .title,h3.media-title,h4.media-sub-title{font-family:Georgia,"Times New Roman",Times,serif;font-weight:400;color:#50575e}#gallery-settings .describe td{vertical-align:middle;height:3em}#gallery-settings .describe th.label{padding-top:.5em;text-align:right}#gallery-settings .describe{padding:5px;width:100%;clear:both;cursor:default;background:#fff}#gallery-settings .describe select{width:15em}#gallery-settings .describe select option,#gallery-settings .describe td{padding:0}#gallery-settings label,#gallery-settings legend{font-size:13px;color:#3c434a;margin-left:15px}#gallery-settings .align .field label{margin:0 3px 0 1em}#gallery-settings p.ml-submit{border-top:1px solid #dcdcde}#gallery-settings select#columns{width:6em}#sort-buttons{font-size:.8em;margin:3px 0 -8px 25px;text-align:left;max-width:625px}#sort-buttons a{text-decoration:none}#sort-buttons #asc,#sort-buttons #showall{padding-right:5px}#sort-buttons span{margin-left:25px}p.media-types{margin:0;padding:1em}p.media-types-required-info{padding-top:0}tr.not-image{display:none}table.not-image tr.not-image{display:table-row}table.not-image tr.image-only{display:none}@media print,(min-resolution:120dpi){.image-align-none-label{background-image:url(../images/align-none-2x.png?ver=20120916);background-size:21px 15px}.image-align-left-label{background-image:url(../images/align-left-2x.png?ver=20120916);background-size:22px 15px}.image-align-center-label{background-image:url(../images/align-center-2x.png?ver=20120916);background-size:21px 15px}.image-align-right-label{background-image:url(../images/align-right-2x.png?ver=20120916);background-size:22px 15px}}css/dashboard-rtl.min.css000064400000055507152213653150011375 0ustar00/*! This file is auto-generated */ #wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}#wpbody-content #dashboard-widgets.columns-2 .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4{float:left;width:50.5%}#wpbody-content #dashboard-widgets.columns-3 .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-3 #postbox-container-4{float:left}#wpbody-content #dashboard-widgets.columns-4 .postbox-container{width:25%}#dashboard-widgets .postbox-container{width:25%}#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container{border:none!important}#dashboard-widgets-wrap{overflow:hidden;margin:0 -8px}#dashboard-widgets .postbox{border-radius:8px}#dashboard-widgets .postbox-header .hndle{padding:12px 16px}#dashboard-widgets .postbox .inside{margin-bottom:0}#dashboard-widgets .meta-box-sortables{display:flow-root;min-height:0;margin:0 8px 20px}#dashboard-widgets .meta-box-sortables:not(:empty){margin-bottom:16px}#dashboard-widgets .postbox-container .empty-container{outline:2px dashed rgb(0,0,0,.15);outline-offset:-2px;border-radius:8px;height:250px;margin:4px}.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables{border-radius:8px;background:rgb(var(--wp-admin-theme-color--rgb),.04);min-height:100px}.is-dragging-metaboxes #dashboard-widgets .postbox-container .empty-container{background:rgb(0,0,0,.01)}#dashboard-widgets .postbox-container .empty-container:after{content:attr(data-emptystring);margin:auto;position:absolute;top:50%;right:0;left:0;transform:translateY(-50%);padding:0 2em;text-align:center;color:#646970;font-size:16px;line-height:1.5;display:none}#the-comment-list td.comment p.comment-author{margin-top:0;margin-right:0}#the-comment-list p.comment-author img{float:right;margin-left:8px}#the-comment-list p.comment-author strong a{border:none}#the-comment-list td{vertical-align:top}#the-comment-list td.comment{word-wrap:break-word}#the-comment-list td.comment img{max-width:100%}.index-php #screen-meta-links{margin:0 0 8px 20px}.welcome-panel{position:relative;overflow:auto;margin:16px 0;border-radius:8px;font-size:14px;line-height:1.3;clear:both}.welcome-panel h2{margin:0;font-size:48px;font-weight:600;line-height:1.25}.welcome-panel h3{margin:0;font-size:20px;font-weight:400;line-height:1.4}.welcome-panel p{font-size:inherit;line-height:inherit}.welcome-panel-header{position:relative;color:#fff}.welcome-panel-header-image{position:absolute!important;top:0;left:0;bottom:0;right:0;z-index:0!important;overflow:hidden}.welcome-panel-header-image svg{display:block;margin:auto;width:100%;height:100%}.rtl .welcome-panel-header-image svg{transform:scaleX(-1)}.welcome-panel-header *{color:inherit;position:relative;z-index:1}.welcome-panel-header a:focus,.welcome-panel-header a:hover{color:inherit;text-decoration:none}.welcome-panel .welcome-panel-close:focus,.welcome-panel-header a:focus{outline-color:currentColor;outline-offset:1px;box-shadow:none}.welcome-panel-header p{margin:.5em 0 0;font-size:20px;line-height:1.4}.welcome-panel .welcome-panel-close{display:flex;align-items:center;position:absolute;top:10px;left:10px;padding:10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none;z-index:1}.welcome-panel .welcome-panel-close:before{transition:all .1s ease-in-out;content:'\f335';font-size:24px;color:#fff}.welcome-panel .welcome-panel-close{color:#fff}.welcome-panel .welcome-panel-close:focus,.welcome-panel .welcome-panel-close:focus::before,.welcome-panel .welcome-panel-close:hover,.welcome-panel .welcome-panel-close:hover::before{color:#fff972}.wp-core-ui .welcome-panel .button.button-hero{margin:15px 0 3px 13px;padding:12px 36px;height:auto;line-height:1.4285714;white-space:normal}.welcome-panel-content{min-height:400px;display:flex;flex-direction:column;justify-content:space-between}.welcome-panel-header-wrap{background-color:#151515}.welcome-panel-header{box-sizing:border-box;margin-right:auto;margin-left:auto;max-width:1500px;width:100%;padding:48px 48px 80px 0}.welcome-panel .welcome-panel-column-container{box-sizing:border-box;width:100%;clear:both;display:grid;z-index:1;padding:24px;grid-template-columns:repeat(3,1fr);gap:32px;align-self:flex-end;background:#fff;border:1px solid #c3c4c7;border-top:0;border-radius:0 0 8px 8px}[class*=welcome-panel-icon]{height:60px;width:60px;background-position:center;background-size:24px 24px;background-repeat:no-repeat;border-radius:100%}.welcome-panel-column>svg{margin-top:4px}.welcome-panel-column{display:grid;grid-template-columns:min-content 1fr;gap:24px}.welcome-panel-icon-pages{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z' /%3E%3C/svg%3E")}.welcome-panel-icon-layout{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z' /%3E%3C/svg%3E")}.welcome-panel-icon-styles{background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' /%3E%3C/svg%3E")}.welcome-panel .welcome-widgets-menus{line-height:1.14285714}.welcome-panel .welcome-panel-column ul{margin:.8em 0 1em 1em}.welcome-panel li{font-size:14px}.welcome-panel li a{text-decoration:none}.welcome-panel .welcome-panel-column li{line-height:1.14285714;list-style-type:none;padding:0 0 8px}.welcome-panel .welcome-icon{background:0 0!important}#dashboard_right_now .search-engines-info:before,#dashboard_right_now li a:before,#dashboard_right_now li span:before,.welcome-panel .welcome-icon:before{color:#646970;font:normal 20px/1 dashicons;display:inline-block;padding:0 0 0 10px;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;vertical-align:top}.welcome-panel .welcome-edit-page:before,.welcome-panel .welcome-write-blog:before{content:"\f119";content:"\f119"/'';top:-3px}.welcome-panel .welcome-add-page:before{content:"\f132";content:"\f132"/'';top:-1px}.welcome-panel .welcome-setup-home:before{content:"\f102";content:"\f102"/'';top:-1px}.welcome-panel .welcome-view-site:before{content:"\f115";content:"\f115"/'';top:-2px}.welcome-panel .welcome-widgets-menus:before{content:"\f116";content:"\f116"/'';top:-2px}.welcome-panel .welcome-widgets:before{content:"\f538";content:"\f538"/'';top:-2px}.welcome-panel .welcome-menus:before{content:"\f163";content:"\f163"/'';top:-2px}.welcome-panel .welcome-comments:before{content:"\f117";content:"\f117"/'';top:-1px}.welcome-panel .welcome-learn-more:before{content:"\f118";content:"\f118"/'';top:-1px}#dashboard_right_now .search-engines-info:before,#dashboard_right_now li a:before,#dashboard_right_now li>span:before{padding:0 0 0 5px;content:"\f159";content:"\f159"/''}#dashboard_right_now .page-count a:before,#dashboard_right_now .page-count span:before{content:"\f105";content:"\f105"/''}#dashboard_right_now .post-count a:before,#dashboard_right_now .post-count span:before{content:"\f109";content:"\f109"/''}#dashboard_right_now .comment-count a:before{content:"\f101";content:"\f101"/''}#dashboard_right_now .comment-mod-count a:before{content:"\f125";content:"\f125"/''}#dashboard_right_now .storage-count a:before{content:"\f104";content:"\f104"/''}#dashboard_right_now .storage-count.warning a:before{content:"\f153";content:"\f153"/''}#dashboard_right_now .search-engines-info:before{content:"\f348";content:"\f348"/'';color:#d63638}.community-events-errors{margin:0}.community-events-loading{padding:10px 12px 8px}.community-events{margin-bottom:6px;padding:0 12px}.community-events .spinner{margin:0 2px 0}.community-events form[aria-hidden=true],.community-events-errors [aria-hidden=true],.community-events-errors[aria-hidden=true],.community-events-loading[aria-hidden=true],.community-events[aria-hidden=true]{display:none}.community-events .activity-block:first-child,.community-events h2{padding-top:12px;padding-bottom:10px}.community-events-form{margin:15px 0 5px;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.community-events-form .regular-text{width:40%;margin:0;min-height:32px;padding:0 8px}#dashboard-widgets .community-events-form .button{min-height:32px;line-height:2.30769231;padding:0 12px}.community-events li.event-none{border-right:4px solid var(--wp-admin-theme-color,#3858e9)}#dashboard-widgets .community-events li.event-none a{text-decoration:underline}.community-events-form label{line-height:2.14285714}.community-events .activity-block>p{margin-bottom:0;display:inline}.community-events-toggle-location{vertical-align:middle}#dashboard-widgets .community-events-cancel.button-link{text-decoration:underline}.community-events ul{background-color:rgba(var(--wp-admin-theme-color--rgb),.08);padding-right:0;padding-left:0;padding-bottom:0}.community-events li{margin:0;padding:8px 12px;color:#2c3338}.community-events li:first-child{border-top:1px solid #e9e9ed}.community-events li~li{border-top:1px solid #e9e9ed}.community-events .activity-block.last{border-bottom:1px solid #e9e9ed;padding-top:0;margin-top:-1px}.community-events .event-info{display:block}.community-events .ce-separator::before{content:"\2022";content:"\2022"/''}.event-icon{height:18px;padding-left:10px;width:18px;display:none}.event-icon:before{color:#646970;font-size:18px}.event-meetup .event-icon:before{content:"\f484";content:"\f484"/''}.event-wordcamp .event-icon:before{content:"\f486";content:"\f486"/''}.community-events .event-title{font-weight:600;display:block}.community-events .event-date,.community-events .event-time{display:block}.community-events-footer{margin-top:0;margin-bottom:0;padding:12px;border-top:1px solid #f0f0f1;color:#646970}.community-events-footer .screen-reader-text{height:inherit;white-space:nowrap}#dashboard_primary .inside{margin:0;padding:0}#dashboard_primary .widget-loading{padding:12px 12px 0;margin-bottom:1em!important}#dashboard_primary .inside .notice{margin:0}body #dashboard-widgets .postbox form .submit{margin:0}.dashboard-widget-control-form p{margin-top:0}.rssSummary{color:#646970;margin-top:4px}#dashboard_primary .rss-widget{font-size:13px;padding:0 12px}#dashboard_primary .rss-widget:last-child{border-bottom:none;padding-bottom:8px}#dashboard_primary .rss-widget a{font-weight:400}#dashboard_primary .rss-widget span,#dashboard_primary .rss-widget span.rss-date{color:#646970}#dashboard_primary .rss-widget span.rss-date{margin-right:12px}#dashboard_primary .rss-widget ul li{padding:4px 0;margin:0}#dashboard_right_now ul{margin:0;display:inline-block;width:100%}#dashboard_right_now li{width:50%;float:right;margin-bottom:10px}#dashboard_right_now .main p{margin:0}#dashboard_right_now #wp-version-message .button{float:left;position:relative;top:-5px;margin-right:5px}#dashboard_right_now p.search-engines-info{margin:1em 0}.mu-storage{overflow:hidden}#dashboard-widgets h3.mu-storage{margin:0 0 10px;padding:0;font-size:14px;font-weight:400}#network_dashboard_right_now p input{margin:2px 1px;vertical-align:middle}#dashboard_right_now .sub{color:#50575e;background:#f6f7f7;border-top:1px solid #f0f0f1;padding:10px 12px 6px}#dashboard_right_now .sub h3{color:#50575e}#dashboard_right_now .sub p{margin:0 0 1em}#dashboard_right_now .warning a:before,#dashboard_right_now .warning span:before{color:#d63638}#dashboard_quick_press .inside{margin:0;padding:0}#dashboard_quick_press div.updated{margin-bottom:10px;border:1px solid #f0f0f1;border-width:1px 0 1px 1px}#dashboard_quick_press form{margin:12px}#dashboard_quick_press .drafts{padding:10px 0 0}#dashboard_quick_press label{display:inline-block;margin-bottom:4px}#dashboard_quick_press input,#dashboard_quick_press textarea{box-sizing:border-box;margin:0}#dashboard-widgets .postbox form .submit{margin:-39px 0;float:left}#description-wrap{margin-top:12px}#quick-press textarea#content{min-height:90px;max-height:1300px;margin:0 0 8px;padding:8px 12px;resize:none}.js #dashboard_quick_press .drafts{border-top:1px solid #f0f0f1}#dashboard_quick_press .drafts abbr{border:none}#dashboard_quick_press .drafts .view-all{float:left;margin:0 0 0 12px}#dashboard_primary a.rsswidget{font-weight:400}#dashboard_quick_press .drafts ul{margin:0 12px}#dashboard_quick_press .drafts li{margin-bottom:1em}#dashboard_quick_press .drafts li time{color:#646970}#dashboard_quick_press .drafts p{margin:0;word-wrap:break-word}#dashboard_quick_press .draft-title{word-wrap:break-word}#dashboard_quick_press .draft-title a,#dashboard_quick_press .draft-title time{margin:0 0 0 5px}#dashboard-widgets h3,#dashboard-widgets h4,#dashboard_quick_press .drafts h2{margin:0 12px 8px;padding:0;font-size:14px;font-weight:400;color:#1d2327}#dashboard_quick_press .drafts h2{line-height:inherit}#dashboard-widgets .inside h3,#dashboard-widgets .inside h4{margin-right:0;margin-left:0}#dashboard_activity .comment-meta span.approve:before{content:"\f227";content:"\f227"/'';font:20px/.5 dashicons;margin-right:5px;vertical-align:middle;position:relative;top:-1px;margin-left:2px}#dashboard_activity .inside{margin:0;padding:0 12px}#dashboard_activity .no-activity{overflow:hidden;padding:12px 0;text-align:center}#dashboard_activity .no-activity p{color:#646970;font-size:16px}#dashboard_activity .subsubsub{float:none;border-top:1px solid #f0f0f1;margin:0 -12px;padding:8px 12px 4px}#dashboard_activity .subsubsub a .count,#dashboard_activity .subsubsub a.current .count{color:#646970}#future-posts ul,#published-posts ul{margin:8px -12px 0 -12px}#future-posts li,#published-posts li{display:grid;grid-template-columns:clamp(160px,calc(2vw + 140px),200px) auto;column-gap:10px;color:#646970;padding:4px 12px}#future-posts li:nth-child(odd),#published-posts li:nth-child(odd){background-color:#f6f7f7}.activity-block{border-bottom:1px solid #f0f0f1;margin:0 -12px 6px -12px;padding:8px 12px 4px}.activity-block:last-child{border-bottom:none;margin-bottom:0}.activity-block .subsubsub li{color:#646970}#activity-widget #the-comment-list div.undo,#activity-widget #the-comment-list tr.undo{background:0 0;padding:6px 0;margin-right:12px}#activity-widget #the-comment-list .comment-item{background:#f6f7f7;padding:12px;position:relative}#activity-widget #the-comment-list .avatar{position:absolute;top:12px}#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar{padding-right:63px}#activity-widget #the-comment-list .dashboard-comment-wrap blockquote{margin:1em 0}#activity-widget #the-comment-list .comment-item p.row-actions{margin:4px 0 0}#activity-widget #the-comment-list .comment-item:first-child{border-top:1px solid #f0f0f1}#activity-widget #the-comment-list .unapproved{background-color:#fcf9e8}#activity-widget #the-comment-list .unapproved:before{content:"";display:block;position:absolute;right:0;top:0;bottom:0;background:#d63638;width:4px}#activity-widget #the-comment-list .spam-undo-inside .avatar,#activity-widget #the-comment-list .trash-undo-inside .avatar{position:relative;top:0}#dashboard-widgets #dashboard_browser_nag.postbox .inside{margin:10px}.postbox .button-link .edit-box{display:none}.edit-box{opacity:0}.edit-box:focus,.hndle:hover .edit-box{opacity:1}#dashboard-widgets form .input-text-wrap input{width:100%}#dashboard-widgets form .textarea-wrap textarea{width:100%}#dashboard-widgets .postbox form .submit{float:none;margin:.5em 0 0;padding:0;border:none}#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish{min-width:0}#dashboard-widgets .button-link,#dashboard-widgets li a,.community-events-footer a{text-decoration:none}#dashboard-widgets h2 a{text-decoration:underline}#dashboard-widgets .hndle .postbox-title-action{float:left;line-height:1.2}#dashboard_plugins h5{font-size:14px}#latest-comments #the-comment-list{position:relative;margin:0 -12px}#activity-widget #the-comment-list .comment,#activity-widget #the-comment-list .pingback{box-shadow:inset 0 1px 0 rgba(0,0,0,.06)}#activity-widget .comments #the-comment-list .alt{background-color:transparent}#activity-widget #latest-comments #the-comment-list .comment-item{min-height:50px;margin:0;padding:12px}#latest-comments #the-comment-list .pingback{padding-right:12px!important}#latest-comments #the-comment-list .comment-item:first-child{border-top:none}#latest-comments #the-comment-list .comment-meta{line-height:1.5;margin:0;color:#646970}#latest-comments #the-comment-list .comment-meta cite{font-style:normal;font-weight:400}#latest-comments #the-comment-list .comment-item blockquote,#latest-comments #the-comment-list .comment-item blockquote p{margin:0;padding:0;display:inline}#latest-comments #the-comment-list .comment-item p.row-actions{margin:3px 0 0;padding:0;font-size:13px}.rss-widget ul{margin:0;padding:0;list-style:none}a.rsswidget{font-size:13px;font-weight:600;line-height:1.4}.rss-widget ul li{line-height:1.5;margin-bottom:12px}.rss-widget span.rss-date{color:#646970;font-size:13px;margin-right:3px}.rss-widget cite{display:block;text-align:left;margin:0 0 1em;padding:0}.rss-widget cite:before{content:"\2014";content:"\2014"/''}.dashboard-comment-wrap{word-wrap:break-word}#dashboard_browser_nag a.update-browser-link{font-size:1.2em;font-weight:600}#dashboard_browser_nag a{text-decoration:underline}#dashboard_browser_nag p.browser-update-nag.has-browser-icon{padding-left:128px}#dashboard_browser_nag .browser-icon{margin-top:-32px}#dashboard_browser_nag.postbox{background-color:#b32d2e;background-image:none;border-color:#b32d2e;color:#fff;box-shadow:none}#dashboard_browser_nag.postbox h2{border-bottom-color:transparent;background:transparent none;color:#fff;box-shadow:none}#dashboard_browser_nag a{color:#fff}#dashboard_browser_nag.postbox .postbox-header{border-color:transparent}#dashboard_browser_nag h2.hndle{border:none;font-weight:600;font-size:20px;padding-top:10px}.postbox#dashboard_browser_nag p a.dismiss{font-size:14px}.postbox#dashboard_browser_nag a,.postbox#dashboard_browser_nag p,.postbox#dashboard_browser_nag p.browser-update-nag{font-size:16px}#dashboard_php_nag .dashicons-warning{color:#dba617;padding-left:6px}#dashboard_php_nag.php-no-security-updates .dashicons-warning,#dashboard_php_nag.php-version-lower-than-future-minimum .dashicons-warning{color:#d63638}#dashboard_php_nag h2{display:inline-block}#dashboard_php_nag p{margin:12px 0}.bigger-bolder-text{font-weight:600;font-size:14px}@media only screen and (min-width:1600px){.welcome-panel .welcome-panel-column-container{display:flex;justify-content:center}.welcome-panel-column{width:100%;max-width:460px}}@media only screen and (max-width:799px){#wpbody-content #dashboard-widgets .postbox-container{width:100%}#dashboard-widgets .meta-box-sortables{min-height:0}.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables{min-height:100px}#dashboard-widgets .meta-box-sortables.empty-container{margin-bottom:0}}@media only screen and (min-width:800px) and (max-width:1499px){#wpbody-content #dashboard-widgets .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets #postbox-container-2,#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:left;width:50.5%}#dashboard-widgets #postbox-container-3 .empty-container,#dashboard-widgets #postbox-container-4 .empty-container{border:none;height:0;min-height:0;margin-bottom:0;display:none}#dashboard-widgets #postbox-container-3 .empty-container:after,#dashboard-widgets #postbox-container-4 .empty-container:after{display:none}#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}#wpbody #dashboard-widgets .metabox-holder.columns-1 .postbox-container .empty-container{border:none;height:0;min-height:0;margin-bottom:0}.index-php .columns-prefs,.index-php .screen-layout{display:block}.columns-prefs .columns-prefs-3,.columns-prefs .columns-prefs-4{display:none}#dashboard-widgets .postbox-container .empty-container:after{display:block}}@media only screen and (min-width:1500px) and (max-width:1800px){#wpbody-content #dashboard-widgets .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:left}#dashboard-widgets #postbox-container-4 .empty-container{border:none;height:0;min-height:0;margin-bottom:0;display:none}#dashboard-widgets #postbox-container-4 .empty-container:after{display:none}#dashboard-widgets .postbox-container .empty-container:after{display:block}}@media only screen and (min-width:1801px){#dashboard-widgets .postbox-container .empty-container:after{display:block}}@media screen and (max-width:870px){.welcome-panel .welcome-panel-column li{display:inline-block;margin-left:13px}.welcome-panel .welcome-panel-column ul{margin:.4em 0 0}}@media screen and (max-width:1180px) and (min-width:783px){.welcome-panel-column{grid-template-columns:1fr}.welcome-panel-column>svg,[class*=welcome-panel-icon]{display:none}}@media screen and (max-width:782px){.welcome-panel .welcome-panel-column-container{grid-template-columns:1fr;box-sizing:border-box;padding:32px;width:100%}.welcome-panel .welcome-panel-column-content{max-width:520px}.welcome-panel .welcome-panel-close{overflow:hidden;text-indent:40px;white-space:nowrap;width:20px;height:20px;padding:5px;top:5px;left:5px}.welcome-panel .welcome-panel-close::before{position:absolute;top:5px;right:-35px}#dashboard-widgets h2{padding:12px}#dashboard_recent_comments #the-comment-list .comment-item .avatar{height:30px;width:30px;margin:4px 0 5px 10px}.community-events-toggle-location{height:38px;vertical-align:baseline}#community-events-submit{margin-bottom:0}#dashboard-widgets .community-events-cancel.button-link,.community-events-form label{font-size:14px;line-height:normal;padding:6px 0;border:1px solid transparent}}@media screen and (max-width:600px){.welcome-panel-header{padding:32px 32px 64px}.welcome-panel-header-image{display:none}}@media screen and (max-width:480px){.welcome-panel-column{gap:16px}}@media screen and (max-width:360px){.welcome-panel-column{grid-template-columns:1fr}.welcome-panel-column>svg,[class*=welcome-panel-icon]{display:none}}@media screen and (min-width:355px){.community-events .event-info{display:table-row;float:right;max-width:59%}.event-icon,.event-icon[aria-hidden=true]{display:table-cell}.event-info-inner{display:table-cell}.community-events .event-date-time{float:left;max-width:39%}.community-events .event-date,.community-events .event-time{text-align:left}}css/farbtastic-rtl.css000064400000001207152213653150010772 0ustar00/*! This file is auto-generated */ .farbtastic { position: relative; } .farbtastic * { position: absolute; cursor: crosshair; } .farbtastic, .farbtastic .wheel { width: 195px; height: 195px; } .farbtastic .color, .farbtastic .overlay { top: 47px; right: 47px; width: 101px; height: 101px; } .farbtastic .wheel { background: url(../images/wheel.png) no-repeat; width: 195px; height: 195px; } .farbtastic .overlay { background: url(../images/mask.png) no-repeat; } .farbtastic .marker { width: 17px; height: 17px; margin: -8px -8px 0 0; overflow: hidden; background: url(../images/marker.png) no-repeat; } css/revisions-rtl.min.css000064400000021154152213653150011456 0ustar00/*! This file is auto-generated */ .revisions-control-frame,.revisions-diff-frame{position:relative}.revisions-diff-frame{top:10px}.revisions-controls{padding-top:40px;z-index:1}.revisions-controls input[type=checkbox]{position:relative;top:-1px;vertical-align:text-bottom}.revisions.pinned .revisions-controls{position:fixed;top:0;height:82px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-tickmarks{position:relative;margin:0 auto;height:.7em;top:7px;max-width:70%;box-sizing:border-box;background-color:#fff}.revisions-tickmarks>div{position:absolute;height:100%;border-right:1px solid #a7aaad;box-sizing:border-box}.revisions-tickmarks>div:first-child{border-width:0}.comparing-two-revisions .revisions-controls{height:140px}.comparing-two-revisions.pinned .revisions-controls{height:124px}.revisions .diff-error{position:absolute;text-align:center;margin:0 auto;width:100%;display:none}.revisions.diff-error .diff-error{display:block}.revisions .loading-indicator{position:absolute;vertical-align:middle;opacity:0;width:100%;width:calc(100% - 30px);top:50%;top:calc(50% - 10px);transition:opacity .5s}body.folded .revisions .loading-indicator{margin-right:-32px}.revisions .loading-indicator span.spinner{display:block;margin:0 auto;float:none}.revisions.loading .loading-indicator{opacity:1}.revisions .diff{transition:opacity .5s}.revisions.loading .diff{opacity:.5}.revisions.diff-error .diff{visibility:hidden}.revisions-meta{margin-top:20px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);overflow:hidden}.revisions.pinned .revisions-meta{box-shadow:none}.revision-toggle-compare-mode{position:absolute;top:0;left:0}.comparing-two-revisions .revisions-next,.comparing-two-revisions .revisions-previous,.revisions-meta .diff-meta-to strong{display:none}.revisions-controls .author-card .date{color:#646970}.revisions-controls .author-card.autosave{color:#d63638}.revisions-controls .author-card .author-name{font-weight:600}.comparing-two-revisions .diff-meta-to strong{display:block}.revisions.pinned .revisions-buttons{padding:0 11px}.revisions-next,.revisions-previous{position:relative;z-index:1}.revisions-previous{float:right}.revisions-next{float:left}.revisions-controls .wp-slider{max-width:70%;margin:0 auto;top:-3px}.revisions-diff{padding:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-diff h3:first-child{margin-top:0}#revisions-meta-restored img,.post-revisions li img{vertical-align:middle}table.diff{table-layout:fixed;width:100%;white-space:pre-wrap}table.diff col.content{width:auto}table.diff col.content.diffsplit{width:48%}table.diff col.diffsplit.middle{width:auto}table.diff col.ltype{width:30px}table.diff tr{background-color:transparent}table.diff td,table.diff th{font-family:Consolas,Monaco,monospace;font-size:14px;line-height:1.57142857;padding:.5em 2em .5em .5em;vertical-align:top;word-wrap:break-word}table.diff td h1,table.diff td h2,table.diff td h3,table.diff td h4,table.diff td h5,table.diff td h6{margin:0}table.diff .diff-addedline ins,table.diff .diff-deletedline del{text-decoration:none}table.diff .diff-deletedline{position:relative;background-color:#fcf0f1}table.diff .diff-deletedline del{background-color:#ffabaf}table.diff .diff-addedline{position:relative;background-color:#edfaef}table.diff .diff-addedline .dashicons,table.diff .diff-deletedline .dashicons{position:absolute;top:.85714286em;right:.5em;width:1em;height:1em;font-size:1em;line-height:1}table.diff .diff-addedline .dashicons{top:.92857143em}table.diff .diff-addedline ins{background-color:#68de7c}.diff-meta{padding:5px;clear:both;min-height:32px}.diff-title strong{line-height:2.46153846;min-width:60px;text-align:left;float:right;margin-left:5px}.revisions-controls .author-card .author-info{font-size:12px;line-height:1.33333333}.revisions-controls .author-card .author-info,.revisions-controls .author-card .avatar{float:right;margin-right:6px;margin-left:6px}.revisions-controls .author-card .byline{display:block;font-size:12px}.revisions-controls .author-card .avatar{vertical-align:middle}.diff-meta input.restore-revision{float:left;margin-right:6px;margin-left:6px}.diff-meta-from{display:none}.comparing-two-revisions .diff-meta-from{display:block}.revisions-tooltip{position:absolute;bottom:105px;margin-left:0;margin-right:-69px;z-index:0;max-width:350px;min-width:130px;padding:8px 4px;display:none;opacity:0}.revisions-tooltip.flipped{margin-right:0;margin-left:-70px}.revisions.pinned .revisions-tooltip{display:none!important}.comparing-two-revisions .revisions-tooltip{bottom:145px}.revisions-tooltip-arrow{width:70px;height:15px;overflow:hidden;position:absolute;right:0;margin-right:35px;bottom:-15px}.revisions-tooltip.flipped .revisions-tooltip-arrow{margin-right:0;margin-left:35px;right:auto;left:0}.revisions-tooltip-arrow>span{content:"";position:absolute;right:20px;top:-20px;width:25px;height:25px;transform:rotate(-45deg)}.revisions-tooltip.flipped .revisions-tooltip-arrow>span{right:auto;left:20px}.revisions-tooltip,.revisions-tooltip-arrow>span{border:1px solid #dcdcde;background-color:#fff}.revisions-tooltip{display:none}.arrow{width:70px;height:16px;overflow:hidden;position:absolute;right:0;margin-right:-35px;bottom:90px;z-index:10000}.arrow:after{z-index:9999;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.arrow.top{top:-16px;bottom:auto}.arrow.left{right:20%}.arrow:after{content:"";position:absolute;right:20px;top:-20px;width:25px;height:25px;transform:rotate(-45deg)}.revisions-tooltip,.revisions-tooltip-arrow:after{border-width:1px;border-style:solid}div.revisions-controls>.wp-slider>.ui-slider-handle{margin-right:-10px}.rtl div.revisions-controls>.wp-slider>.ui-slider-handle{margin-left:-10px}.wp-slider.ui-slider{position:relative;border:1px solid #dcdcde;text-align:right;cursor:pointer}.wp-slider .ui-slider-handle{border-radius:50%;height:18px;margin-top:-5px;outline:0;padding:2px;position:absolute;width:18px;z-index:2;touch-action:none}.wp-slider .ui-slider-handle{background:#f6f7f7;border:1px solid #c3c4c7;box-shadow:0 1px 0 #c3c4c7}.wp-slider .ui-slider-handle.ui-state-hover,.wp-slider .ui-slider-handle:hover{background:#f6f7f7;border-color:#8c8f94}.wp-slider .ui-slider-handle.ui-state-active,.wp-slider .ui-slider-handle:active{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}.wp-slider .ui-slider-handle.ui-state-focus,.wp-slider .ui-slider-handle:focus{background:#f0f0f1;border-color:#8c8f94;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.wp-slider .ui-slider-handle:before{background:0 0;position:absolute;top:2px;right:2px;color:#50575e;content:"\f229";content:"\f229"/'';font:normal 18px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-slider .ui-slider-handle.ui-state-hover:before,.wp-slider .ui-slider-handle:hover:before{color:#1d2327}.wp-slider .ui-slider-handle.from-handle:before,.wp-slider .ui-slider-handle.to-handle:before{font-size:20px!important;margin:-1px -1px 0 0}.wp-slider .ui-slider-handle.from-handle:before{content:"\f141";content:"\f139"/''}.wp-slider .ui-slider-handle.to-handle:before{content:"\f139";content:"\f141"/''}.rtl .wp-slider .ui-slider-handle.from-handle:before{content:"\f139";content:"\f141"/''}.rtl .wp-slider .ui-slider-handle.to-handle:before{content:"\f141";content:"\f139"/'';left:-1px}.wp-slider .ui-slider-range{position:absolute;font-size:.7em;display:block;border:0;background-color:transparent;background-image:none}.wp-slider.ui-slider-horizontal{height:.7em}.wp-slider.ui-slider-horizontal .ui-slider-handle{top:-.25em;margin-right:-.6em}.wp-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.wp-slider.ui-slider-horizontal .ui-slider-range-min{right:0}.wp-slider.ui-slider-horizontal .ui-slider-range-max{left:0}@media print,(min-resolution:120dpi){.revision-tick.completed-false{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:600px){.revisions-meta .author-card:not(.comparing-two-revisions .author-card){display:flex;flex-direction:column;width:fit-content;gap:16px}.comparing-two-revisions .revisions-meta .restore-revision{margin-top:16px}.revisions-controls{padding-top:0}.revision-toggle-compare-mode{position:relative;padding:1rem 0}}@media screen and (max-width:782px){#diff-next-revision,#diff-previous-revision{margin-top:-1em}.revisions-buttons{overflow:hidden;margin-bottom:15px}.comparing-two-revisions .revisions-controls,.revisions-controls{height:fit-content}.revisions-tooltip{bottom:155px;z-index:2}.comparing-two-revisions .revisions-tooltip{bottom:200px}.diff-meta{overflow:hidden}table.diff{-ms-word-break:break-all;word-break:break-all;word-wrap:break-word}}css/customize-nav-menus-rtl.min.css000064400000044136152213653150013373 0ustar00/*! This file is auto-generated */ #customize-theme-controls #accordion-section-menu_locations{position:relative;margin-top:30px}#customize-theme-controls #accordion-section-menu_locations>.accordion-section-title{border-bottom-color:#dcdcde;margin-top:15px}#customize-theme-controls .customize-section-title-menu_locations-description,#customize-theme-controls .customize-section-title-menu_locations-heading,#customize-theme-controls .customize-section-title-nav_menus-heading{padding:0 12px}#customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description{font-style:normal}.menu-in-location,.menu-in-locations{display:block;font-weight:600;font-size:10px}#customize-controls .control-section .accordion-section-title:focus .menu-in-location,#customize-controls .control-section .accordion-section-title:hover .menu-in-location,#customize-controls .theme-location-set{color:#50575e}.customize-control-nav_menu_location .create-menu,.customize-control-nav_menu_location .edit-menu{margin-right:6px;vertical-align:middle;line-height:2.2}#customize-controls .customize-control-nav_menu_name{margin-bottom:12px}.customize-control-nav_menu_name p:last-of-type{margin-bottom:0}#customize-new-menu-submit{float:left;min-width:85px}.wp-customizer .menu-item-bar .menu-item-handle,.wp-customizer .menu-item-settings,.wp-customizer .menu-item-settings .description-thin{box-sizing:border-box}.wp-customizer .menu-item-bar{margin:0}.wp-customizer .menu-item-bar .menu-item-handle{width:100%;max-width:100%;background:#fff}.wp-customizer .menu-item-handle .item-title{margin-left:0}.wp-customizer .menu-item-handle .item-type{padding:1px 5px 0 21px;float:left;text-align:left}.wp-customizer .menu-item-handle:hover{z-index:8}.customize-control-nav_menu_item.has-notifications .menu-item-handle{border-right:4px solid #72aee6}.wp-customizer .menu-item-settings{max-width:100%;overflow:hidden;z-index:8;padding:10px;background:#f0f0f1;border:1px solid #8c8f94;border-top:none}.wp-customizer .menu-item-settings .description-thin{width:100%;height:auto;margin:0 0 8px}.wp-customizer .menu-item-settings input[type=text]{width:100%}.wp-customizer .menu-item-settings .submitbox{margin:0;padding:0}.wp-customizer .menu-item-settings .link-to-original{padding:5px 0;border:none;font-style:normal;margin:0;width:100%}.wp-customizer .menu-item .submitbox .submitdelete{float:right;margin:6px 0 0;padding:0;cursor:pointer}.menu-item-reorder-nav{display:none;background-color:#fff;position:absolute;top:0;left:0}.menus-move-left:before{content:"\f345";content:"\f341"/''}.menus-move-right:before{content:"\f341";content:"\f345"/''}.reordering .menu-item .item-controls,.reordering .menu-item .item-type{display:none}.reordering .menu-item-reorder-nav{display:block}.customize-control input.menu-name-field{width:100%}.wp-customizer .menu-item .item-edit{position:absolute;left:-19px;top:2px;display:block;width:30px;height:38px;margin-left:0!important;box-shadow:none;outline:0;overflow:hidden;cursor:pointer;text-align:center}.wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before{content:"\f142";content:"\f142"/''}.wp-customizer .menu-item-settings p.description{font-style:normal}.wp-customizer .menu-settings dl{margin:12px 0 0;padding:0}.wp-customizer .menu-settings .checkbox-input{margin-top:8px}.wp-customizer .menu-settings .menu-theme-locations{border-top:1px solid #c3c4c7}.wp-customizer .menu-settings{margin-top:36px;border-top:none}.wp-customizer .menu-location-settings{margin-top:12px;border-top:none}.wp-customizer .control-section-nav_menu .menu-location-settings{margin-top:24px;border-top:1px solid #dcdcde}.customize-control-nav_menu_auto_add,.wp-customizer .control-section-nav_menu .menu-location-settings{padding-top:12px}.menu-location-settings .customize-control-checkbox .theme-location-set{line-height:1}.customize-control-nav_menu_auto_add label{vertical-align:top}.menu-location-settings .new-menu-locations-widget-note{display:block}.customize-control-menu{margin-top:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle{color:#50575e}.customize-screen-options-toggle{background:0 0;border:none;color:#50575e;cursor:pointer;margin:0;padding:20px;position:absolute;left:0;top:30px}#customize-controls .customize-info .customize-help-toggle{padding:20px}#customize-controls .customize-info .customize-help-toggle:before{padding:4px}#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.active-menu-screen-options .customize-screen-options-toggle,.customize-screen-options-toggle:active,.customize-screen-options-toggle:focus,.customize-screen-options-toggle:hover{color:var(--wp-admin-theme-color)}#customize-controls .customize-info .customize-help-toggle:focus,.customize-screen-options-toggle:focus{outline:2px solid transparent}.customize-screen-options-toggle:before{-moz-osx-font-smoothing:grayscale;border:none;content:"\f111";content:"\f111"/'';display:block;font:18px/1 dashicons;padding:5px;text-align:center;text-decoration:none!important;text-indent:0;right:6px;position:absolute;top:6px}#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before{border-radius:100%}.wp-customizer #screen-options-wrap{display:none;background:#fff;border-top:1px solid #dcdcde;padding:4px 15px 15px}.wp-customizer .metabox-prefs label{display:block;padding-left:0;line-height:30px}.wp-customizer .toggle-indicator{display:inline-block;font-size:20px;line-height:1}.rtl .wp-customizer .toggle-indicator{text-indent:1px}#available-menu-items .accordion-section-title .toggle-indicator:before,.wp-customizer .menu-item .item-edit .toggle-indicator:before{content:"\f140";content:"\f140"/'';display:block;padding:1px 0 1px 2px;border-radius:50%;color:#787c82;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.control-section-nav_menu .field-css-classes,.control-section-nav_menu .field-description,.control-section-nav_menu .field-link-target,.control-section-nav_menu .field-title-attribute,.control-section-nav_menu .field-xfn{display:none}.control-section-nav_menu.field-css-classes-active .field-css-classes,.control-section-nav_menu.field-description-active .field-description,.control-section-nav_menu.field-link-target-active .field-link-target,.control-section-nav_menu.field-title-attribute-active .field-title-attribute,.control-section-nav_menu.field-xfn-active .field-xfn{display:block}.menu-item-depth-0{margin-right:0}.menu-item-depth-1{margin-right:20px}.menu-item-depth-2{margin-right:40px}.menu-item-depth-3{margin-right:60px}.menu-item-depth-4{margin-right:80px}.menu-item-depth-5{margin-right:100px}.menu-item-depth-6{margin-right:120px}.menu-item-depth-7{margin-right:140px}.menu-item-depth-8{margin-right:160px}.menu-item-depth-9{margin-right:180px}.menu-item-depth-10{margin-right:200px}.menu-item-depth-11{margin-right:220px}.menu-item-depth-0>.menu-item-bar{margin-left:0}.menu-item-depth-1>.menu-item-bar{margin-left:20px}.menu-item-depth-2>.menu-item-bar{margin-left:40px}.menu-item-depth-3>.menu-item-bar{margin-left:60px}.menu-item-depth-4>.menu-item-bar{margin-left:80px}.menu-item-depth-5>.menu-item-bar{margin-left:100px}.menu-item-depth-6>.menu-item-bar{margin-left:120px}.menu-item-depth-7>.menu-item-bar{margin-left:140px}.menu-item-depth-8>.menu-item-bar{margin-left:160px}.menu-item-depth-9>.menu-item-bar{margin-left:180px}.menu-item-depth-10>.menu-item-bar{margin-left:200px}.menu-item-depth-11>.menu-item-bar{margin-left:220px}.menu-item-depth-0 .menu-item-transport{margin-right:0}.menu-item-depth-1 .menu-item-transport{margin-right:-20px}.menu-item-depth-3 .menu-item-transport{margin-right:-60px}.menu-item-depth-4 .menu-item-transport{margin-right:-80px}.menu-item-depth-2 .menu-item-transport{margin-right:-40px}.menu-item-depth-5 .menu-item-transport{margin-right:-100px}.menu-item-depth-6 .menu-item-transport{margin-right:-120px}.menu-item-depth-7 .menu-item-transport{margin-right:-140px}.menu-item-depth-8 .menu-item-transport{margin-right:-160px}.menu-item-depth-9 .menu-item-transport{margin-right:-180px}.menu-item-depth-10 .menu-item-transport{margin-right:-200px}.menu-item-depth-11 .menu-item-transport{margin-right:-220px}.reordering .menu-item-depth-0{margin-right:0}.reordering .menu-item-depth-1{margin-right:15px}.reordering .menu-item-depth-2{margin-right:30px}.reordering .menu-item-depth-3{margin-right:45px}.reordering .menu-item-depth-4{margin-right:60px}.reordering .menu-item-depth-5{margin-right:75px}.reordering .menu-item-depth-6{margin-right:90px}.reordering .menu-item-depth-7{margin-right:105px}.reordering .menu-item-depth-8{margin-right:120px}.reordering .menu-item-depth-9{margin-right:135px}.reordering .menu-item-depth-10{margin-right:150px}.reordering .menu-item-depth-11{margin-right:165px}.reordering .menu-item-depth-0>.menu-item-bar{margin-left:0}.reordering .menu-item-depth-1>.menu-item-bar{margin-left:15px}.reordering .menu-item-depth-2>.menu-item-bar{margin-left:30px}.reordering .menu-item-depth-3>.menu-item-bar{margin-left:45px}.reordering .menu-item-depth-4>.menu-item-bar{margin-left:60px}.reordering .menu-item-depth-5>.menu-item-bar{margin-left:75px}.reordering .menu-item-depth-6>.menu-item-bar{margin-left:90px}.reordering .menu-item-depth-7>.menu-item-bar{margin-left:105px}.reordering .menu-item-depth-8>.menu-item-bar{margin-left:120px}.reordering .menu-item-depth-9>.menu-item-bar{margin-left:135px}.reordering .menu-item-depth-10>.menu-item-bar{margin-left:150px}.reordering .menu-item-depth-11>.menu-item-bar{margin-left:165px}.control-section-nav_menu.menu .menu-item-edit-active{margin-right:0}.control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar{margin-left:0}.control-section-nav_menu.menu .sortable-placeholder{margin-top:0;margin-bottom:1px;max-width:calc(100% - 2px);float:right;display:list-item;border-color:#a7aaad}.menu-item-transport li.customize-control{float:none}.control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar{margin-top:0}.adding-menu-items .control-section{opacity:.4}.adding-menu-items .control-panel.control-section,.adding-menu-items .control-section.open{opacity:1}.menu-item-bar .item-delete{color:#d63638;position:absolute;top:2px;left:-19px;width:30px;height:38px;cursor:pointer;display:none}.menu-item-bar .item-delete:before{content:"\f335";content:"\f335"/'';position:absolute;top:9px;right:5px;border-radius:50%;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-bar .item-delete:focus,.menu-item-bar .item-delete:hover{box-shadow:none;outline:0;color:#d63638}.adding-menu-items .menu-item-bar .item-edit{display:none}.adding-menu-items .menu-item-bar .item-delete{display:block}#available-menu-items.opening{overflow-y:hidden}#available-menu-items #available-menu-items-search.open{height:100%;border-bottom:none}#available-menu-items .accordion-section-title{border-right:none;border-left:none;background:#fff;transition:background-color .15s;-webkit-user-select:auto;user-select:auto}#available-menu-items #available-menu-items-search .accordion-section-title,#available-menu-items .open .accordion-section-title{background:#f0f0f1}#available-menu-items .accordion-section-title:after{content:none!important}#available-menu-items .accordion-section-title:hover .toggle-indicator:before,#available-menu-items .button-link:focus .toggle-indicator:before,#available-menu-items .button-link:hover .toggle-indicator:before{color:#1d2327}#available-menu-items .open .accordion-section-title .toggle-indicator:before{content:"\f142";color:#1d2327}#available-menu-items .available-menu-items-list{overflow-y:auto;max-height:200px;background:0 0}#available-menu-items .accordion-section-title button .toggle-indicator{display:flex;align-items:center;width:28px;height:35px;position:absolute;top:5px;left:5px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .accordion-section-title .no-items,#available-menu-items .cannot-expand .accordion-section-title .spinner,#available-menu-items .cannot-expand .accordion-section-title>button:not(#available-menu-items-search button.is-visible){display:none}#available-menu-items-search.cannot-expand .accordion-section-title .spinner{display:block}#available-menu-items .cannot-expand .accordion-section-title .no-items{float:left;color:#50575e;font-weight:400;margin-right:5px}#available-menu-items .accordion-section-content{max-height:290px;margin:0;padding:0;position:relative;background:0 0}#available-menu-items .accordion-section-content .available-menu-items-list{margin:0 0 64px;padding:1px 15px 15px}#available-menu-items .accordion-section-content .available-menu-items-list:only-child{margin-bottom:0}#new-custom-menu-item .accordion-section-content{padding:0 15px 15px}#available-menu-items .menu-item-tpl{margin:0}#available-menu-items .new-content-item .create-item-input.invalid,#available-menu-items .new-content-item .create-item-input.invalid:focus,#custom-menu-item-name.invalid,#custom-menu-item-url.invalid,.edit-menu-item-url.invalid,.menu-name-field.invalid,.menu-name-field.invalid:focus{border:1px solid #d63638}#available-menu-items .menu-item-handle .item-type{padding-left:0}#available-menu-items .menu-item-handle .item-title{padding-right:20px}#available-menu-items .menu-item-handle{cursor:pointer}#available-menu-items .menu-item-handle{box-shadow:none;margin-top:-1px}#available-menu-items .menu-item-handle:hover{z-index:1}#available-menu-items .item-title h4{padding:0 0 5px;font-size:14px}#available-menu-items .item-add{position:absolute;top:1px;right:1px;color:#8c8f94;width:30px;height:38px;box-shadow:none;outline:0;cursor:pointer;text-align:center}#available-menu-items .menu-item-handle .item-add:focus{color:#1d2327}#available-menu-items .item-add:before{content:"\f543";content:"\f543"/'';position:relative;right:2px;top:3px;display:inline-block;height:20px;border-radius:50%;font:normal 20px/1.05 dashicons}#available-menu-items .menu-item-handle.item-added .item-add:focus,#available-menu-items .menu-item-handle.item-added .item-title,#available-menu-items .menu-item-handle.item-added .item-type,#available-menu-items .menu-item-handle.item-added:hover .item-add{color:#646970}#available-menu-items .menu-item-handle.item-added .item-add:before{content:"\f147";content:"\f147"/''}#available-menu-items .accordion-section-title.loading .spinner,#available-menu-items-search.loading .accordion-section-title .spinner{visibility:visible;margin:0 20px}#available-menu-items-search .spinner{position:absolute;bottom:24px;left:21px;margin:0!important}#available-menu-items #available-menu-items-search .accordion-section-content{position:absolute;right:0;top:83px;bottom:0;max-height:none;width:100%;padding:1px 15px 15px;box-sizing:border-box}#available-menu-items-search .nothing-found{margin-top:-1px}#available-menu-items-search .accordion-section-title:after{display:none}#available-menu-items-search .accordion-section-content:empty{min-height:0;padding:0}#available-menu-items-search.loading .accordion-section-content div{opacity:.5}#available-menu-items-search.loading.loading-more .accordion-section-content div{opacity:1}@media (prefers-reduced-motion:no-preference){#customize-preview{transition:all .2s}}body.adding-menu-items #available-menu-items{right:0;visibility:visible}body.adding-menu-items .wp-full-overlay-main{right:300px}body.adding-menu-items #customize-preview{opacity:.4}body.adding-menu-items #customize-preview iframe{pointer-events:none}.menu-item-handle .spinner{display:none;float:right;margin:0 0 0 8px}.nav-menu-inserted-item-loading .spinner{display:block}.nav-menu-inserted-item-loading .menu-item-handle .item-type{padding:0 8px 0 0}.added-menu-item .menu-item-handle.loading,.nav-menu-inserted-item-loading .menu-item-handle{padding:10px 8px 10px 15px;cursor:default;opacity:.5;background:#fff;color:#787c82}.added-menu-item .menu-item-handle{transition-property:opacity,background,color;transition-duration:1.25s;transition-timing-function:cubic-bezier(.25,-2.5,.75,8)}#customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title{border-bottom-color:#dcdcde}#accordion-section-add_menu{margin:15px 12px}#accordion-section-add_menu h3{text-align:left}#accordion-section-add_menu .customize-add-menu-button,#accordion-section-add_menu h3{margin:0}#accordion-section-add_menu .customize-add-menu-button{font-weight:400}#create-new-menu-submit{float:left;margin:0 0 12px}.menu-delete-item{float:right;padding:1em 0;width:100%}.assigned-menu-locations-title p{margin:0 0 8px}li.assigned-to-menu-location .menu-delete-item{display:none}li.assigned-to-menu-location .add-new-menu-item{margin-bottom:1em}.menu-item-handle{margin-top:-1px}.ui-sortable-disabled .menu-item-handle{cursor:default}.menu-item-handle:hover{position:relative;z-index:10;color:var(--wp-admin-theme-color)}#available-menu-items .menu-item-handle:hover .item-add,.menu-item-handle:hover .item-edit,.menu-item-handle:hover .item-type{color:var(--wp-admin-theme-color)}.menu-item-edit-active .menu-item-handle{border-color:#8c8f94;border-bottom:none}.customize-control-nav_menu_item{margin-bottom:0}.customize-control-nav_menu .new-menu-item-invitation{margin-top:0;margin-bottom:0}.customize-control-nav_menu .customize-control-nav_menu-buttons{display:flex;flex-direction:row-reverse;align-items:center;gap:8px;margin-top:12px}#available-menu-items .item-add:focus:before,#customize-controls .customize-info .customize-help-toggle:focus:before,.customize-screen-options-toggle:focus:before,.menu-delete:focus,.menu-item-bar .item-delete:focus:before,.wp-customizer .menu-item .submitbox .submitdelete:focus,.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}@media screen and (max-width:782px){#available-menu-items #available-menu-items-search .accordion-section-content{top:71px}}@media screen and (max-width:640px){#available-menu-items #available-menu-items-search .accordion-section-content{top:154px}}css/colors/sunrise/colors.scss000064400000000425152213653150012527 0ustar00@use "sass:color"; $highlight-color: #dd823b; @use "../_admin.scss" with ( $scheme-name: "sunrise", $base-color: #cf4944, $highlight-color: $highlight-color, $notification-color: #ccaf0b, $menu-submenu-focus-text: color.adjust($highlight-color, $lightness: 35%) ); css/colors/sunrise/colors-rtl.min.css000064400000053457152213653150013742 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#cf4944}.wp-core-ui .wp-ui-text-primary{color:#cf4944}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#dd823b}.wp-core-ui .wp-ui-text-highlight{color:#dd823b}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#ccaf0b}.wp-core-ui .wp-ui-text-notification{color:#ccaf0b}.wp-core-ui .wp-ui-text-icon{color:hsl(2.1582733813,7%,95%)}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#cf4944}.view-switch a:hover:before{color:#ccaf0b}#adminmenu,#adminmenuback,#adminmenuwrap{background:#cf4944}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:hsl(2.1582733813,7%,95%)}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#dd823b}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(190.4217021277,53.969787234,48.8782978723)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:rgb(190.4217021277,53.969787234,48.8782978723)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(240.6,200.4,198.9)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(240.6,200.4,198.9)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#dd823b}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#ccaf0b}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(190.4217021277,53.969787234,48.8782978723)}#collapse-button{color:hsl(2.1582733813,7%,95%)}#collapse-button:focus,#collapse-button:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar{color:#fff;background:#cf4944}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:hsl(2.1582733813,7%,95%)}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:rgb(247.3869565217,227.0108695652,211.1130434783);background:rgb(190.4217021277,53.969787234,48.8782978723)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(190.4217021277,53.969787234,48.8782978723)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(207.3164148936,107.1221761059,103.3835851064)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(240.6,200.4,198.9)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:hsl(2.1582733813,7%,95%)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:hsl(2.1582733813,7%,95%)}#wpadminbar #adminbarsearch:before{color:hsl(2.1582733813,7%,95%)}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(214.2919148936,100.6485106383,96.4080851064)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#ccaf0b}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(183.6,157.5,9.9)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(214.2919148936,100.6485106383,96.4080851064);background-color:rgb(214.2919148936,100.6485106383,96.4080851064)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(240.6,200.4,198.9)}.wp-pointer .wp-pointer-content h3{background-color:#dd823b;border-color:rgb(216.8782608696,116.1847826087,37.6217391304)}.wp-pointer .wp-pointer-content h3:before{color:#dd823b}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#dd823b}.media-item .bar,.media-progress-bar div{background-color:#dd823b}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #dd823b}.attachment.details .check{background-color:#dd823b;box-shadow:0 0 0 1px #fff,0 0 0 2px #dd823b}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #dd823b}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#dd823b}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#dd823b}.theme-filter.current,.theme-section.current{border-bottom-color:#cf4944}body.more-filters-opened .more-filters{color:#fff;background-color:#cf4944}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#dd823b;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#dd823b;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(228.5391304348,157.7173913043,102.4608695652),0 0 2px 1px #dd823b}div#wp-responsive-toggle a:before{color:hsl(2.1582733813,7%,95%)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#dd823b}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(190.4217021277,53.969787234,48.8782978723)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:hsl(2.1582733813,7%,95%)}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#dd823b}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#dd823b}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#dd823b}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#dd823b}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(228.5391304348,157.7173913043,102.4608695652),0 0 2px 1px #dd823b}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#dd823b;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#dd823b}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#dd823b;border-style:solid;box-shadow:0 0 0 1px #dd823b;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#dd823b}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#dd823b}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#dd823b}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(228.5391304348,157.7173913043,102.4608695652),0 0 2px 1px #dd823b}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#dd823b;color:#0073aa}css/colors/sunrise/colors-rtl.css000064400000062257152213653150013156 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #cf4944; } .wp-core-ui .wp-ui-text-primary { color: #cf4944; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #dd823b; } .wp-core-ui .wp-ui-text-highlight { color: #dd823b; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #ccaf0b; } .wp-core-ui .wp-ui-text-notification { color: #ccaf0b; } .wp-core-ui .wp-ui-text-icon { color: hsl(2.1582733813, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #cf4944; } .view-switch a:hover:before { color: #ccaf0b; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #cf4944; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(2.1582733813, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #dd823b; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(190.4217021277, 53.969787234, 48.8782978723); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: rgb(190.4217021277, 53.969787234, 48.8782978723); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(240.6, 200.4, 198.9); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(240.6, 200.4, 198.9); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #dd823b; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #ccaf0b; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(190.4217021277, 53.969787234, 48.8782978723); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(2.1582733813, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } /* Admin Bar */ #wpadminbar { color: #fff; background: #cf4944; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(2.1582733813, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); background: rgb(190.4217021277, 53.969787234, 48.8782978723); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(190.4217021277, 53.969787234, 48.8782978723); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(207.3164148936, 107.1221761059, 103.3835851064); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(240.6, 200.4, 198.9); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(2.1582733813, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(2.1582733813, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(2.1582733813, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(214.2919148936, 100.6485106383, 96.4080851064); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #ccaf0b; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(183.6, 157.5, 9.9); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(214.2919148936, 100.6485106383, 96.4080851064); background-color: rgb(214.2919148936, 100.6485106383, 96.4080851064); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(240.6, 200.4, 198.9); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #dd823b; border-color: rgb(216.8782608696, 116.1847826087, 37.6217391304); } .wp-pointer .wp-pointer-content h3:before { color: #dd823b; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #dd823b; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #dd823b; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #dd823b; } .attachment.details .check { background-color: #dd823b; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dd823b; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #dd823b; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #dd823b; } .theme-section.current, .theme-filter.current { border-bottom-color: #cf4944; } body.more-filters-opened .more-filters { color: #fff; background-color: #cf4944; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #dd823b; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #dd823b; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(228.5391304348, 157.7173913043, 102.4608695652), 0 0 2px 1px #dd823b; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(2.1582733813, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #dd823b; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(190.4217021277, 53.969787234, 48.8782978723); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(2.1582733813, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #dd823b; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #dd823b; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #dd823b; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #dd823b; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(228.5391304348, 157.7173913043, 102.4608695652), 0 0 2px 1px #dd823b; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #dd823b; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #dd823b; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #dd823b; border-style: solid; box-shadow: 0 0 0 1px #dd823b; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #dd823b; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #dd823b; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #dd823b; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(228.5391304348, 157.7173913043, 102.4608695652), 0 0 2px 1px #dd823b; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #dd823b; color: #0073aa; }css/colors/sunrise/colors.min.css000064400000053456152213653150013142 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#cf4944}.wp-core-ui .wp-ui-text-primary{color:#cf4944}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#dd823b}.wp-core-ui .wp-ui-text-highlight{color:#dd823b}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#ccaf0b}.wp-core-ui .wp-ui-text-notification{color:#ccaf0b}.wp-core-ui .wp-ui-text-icon{color:hsl(2.1582733813,7%,95%)}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#cf4944}.view-switch a:hover:before{color:#ccaf0b}#adminmenu,#adminmenuback,#adminmenuwrap{background:#cf4944}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:hsl(2.1582733813,7%,95%)}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#dd823b}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(190.4217021277,53.969787234,48.8782978723)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:rgb(190.4217021277,53.969787234,48.8782978723)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(240.6,200.4,198.9)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(240.6,200.4,198.9)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#dd823b}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#ccaf0b}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(190.4217021277,53.969787234,48.8782978723)}#collapse-button{color:hsl(2.1582733813,7%,95%)}#collapse-button:focus,#collapse-button:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar{color:#fff;background:#cf4944}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:hsl(2.1582733813,7%,95%)}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:rgb(247.3869565217,227.0108695652,211.1130434783);background:rgb(190.4217021277,53.969787234,48.8782978723)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(190.4217021277,53.969787234,48.8782978723)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(207.3164148936,107.1221761059,103.3835851064)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(240.6,200.4,198.9)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:hsl(2.1582733813,7%,95%)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:hsl(2.1582733813,7%,95%)}#wpadminbar #adminbarsearch:before{color:hsl(2.1582733813,7%,95%)}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(214.2919148936,100.6485106383,96.4080851064)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#ccaf0b}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(183.6,157.5,9.9)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(214.2919148936,100.6485106383,96.4080851064);background-color:rgb(214.2919148936,100.6485106383,96.4080851064)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:rgb(247.3869565217,227.0108695652,211.1130434783)}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(240.6,200.4,198.9)}.wp-pointer .wp-pointer-content h3{background-color:#dd823b;border-color:rgb(216.8782608696,116.1847826087,37.6217391304)}.wp-pointer .wp-pointer-content h3:before{color:#dd823b}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#dd823b}.media-item .bar,.media-progress-bar div{background-color:#dd823b}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #dd823b}.attachment.details .check{background-color:#dd823b;box-shadow:0 0 0 1px #fff,0 0 0 2px #dd823b}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #dd823b}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#dd823b}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#dd823b}.theme-filter.current,.theme-section.current{border-bottom-color:#cf4944}body.more-filters-opened .more-filters{color:#fff;background-color:#cf4944}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#dd823b;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#dd823b;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(228.5391304348,157.7173913043,102.4608695652),0 0 2px 1px #dd823b}div#wp-responsive-toggle a:before{color:hsl(2.1582733813,7%,95%)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#dd823b}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(190.4217021277,53.969787234,48.8782978723)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:hsl(2.1582733813,7%,95%)}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#dd823b}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#dd823b}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#dd823b}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#dd823b}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(228.5391304348,157.7173913043,102.4608695652),0 0 2px 1px #dd823b}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#dd823b;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#dd823b}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#dd823b;border-style:solid;box-shadow:0 0 0 1px #dd823b;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#dd823b}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#dd823b}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#dd823b}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(228.5391304348,157.7173913043,102.4608695652),0 0 2px 1px #dd823b}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#dd823b;color:#0073aa}css/colors/sunrise/colors.css000064400000062256152213653150012356 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #cf4944; } .wp-core-ui .wp-ui-text-primary { color: #cf4944; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #dd823b; } .wp-core-ui .wp-ui-text-highlight { color: #dd823b; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #ccaf0b; } .wp-core-ui .wp-ui-text-notification { color: #ccaf0b; } .wp-core-ui .wp-ui-text-icon { color: hsl(2.1582733813, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #cf4944; } .view-switch a:hover:before { color: #ccaf0b; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #cf4944; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(2.1582733813, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #dd823b; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(190.4217021277, 53.969787234, 48.8782978723); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: rgb(190.4217021277, 53.969787234, 48.8782978723); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(240.6, 200.4, 198.9); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(240.6, 200.4, 198.9); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #dd823b; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #ccaf0b; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(190.4217021277, 53.969787234, 48.8782978723); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(2.1582733813, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } /* Admin Bar */ #wpadminbar { color: #fff; background: #cf4944; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(2.1582733813, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); background: rgb(190.4217021277, 53.969787234, 48.8782978723); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(190.4217021277, 53.969787234, 48.8782978723); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(207.3164148936, 107.1221761059, 103.3835851064); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(240.6, 200.4, 198.9); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(2.1582733813, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(2.1582733813, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(2.1582733813, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(214.2919148936, 100.6485106383, 96.4080851064); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #ccaf0b; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(183.6, 157.5, 9.9); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(214.2919148936, 100.6485106383, 96.4080851064); background-color: rgb(214.2919148936, 100.6485106383, 96.4080851064); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: rgb(247.3869565217, 227.0108695652, 211.1130434783); } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(240.6, 200.4, 198.9); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #dd823b; border-color: rgb(216.8782608696, 116.1847826087, 37.6217391304); } .wp-pointer .wp-pointer-content h3:before { color: #dd823b; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #dd823b; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #dd823b; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #dd823b; } .attachment.details .check { background-color: #dd823b; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dd823b; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #dd823b; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #dd823b; } .theme-section.current, .theme-filter.current { border-bottom-color: #cf4944; } body.more-filters-opened .more-filters { color: #fff; background-color: #cf4944; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #dd823b; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #dd823b; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(228.5391304348, 157.7173913043, 102.4608695652), 0 0 2px 1px #dd823b; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(2.1582733813, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #dd823b; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(190.4217021277, 53.969787234, 48.8782978723); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(2.1582733813, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #dd823b; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #dd823b; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #dd823b; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #dd823b; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(228.5391304348, 157.7173913043, 102.4608695652), 0 0 2px 1px #dd823b; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #dd823b; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #dd823b; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #dd823b; border-style: solid; box-shadow: 0 0 0 1px #dd823b; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #dd823b; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #dd823b; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #dd823b; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(228.5391304348, 157.7173913043, 102.4608695652), 0 0 2px 1px #dd823b; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #dd823b; color: #0073aa; }css/colors/ocean/colors.scss000064400000000367152213653150012131 0ustar00$base-color: #738e96; @use "../_admin.scss" with ( $scheme-name: "ocean", $base-color: $base-color, $icon-color: #f2fcff, $highlight-color: #9ebaa0, $notification-color: #aa9d88, $form-checked: $base-color, $low-contrast-theme: "true" ); css/colors/ocean/colors-rtl.min.css000064400000052336152213653150013332 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#738e96}.wp-core-ui .wp-ui-text-primary{color:#738e96}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#9ebaa0}.wp-core-ui .wp-ui-text-highlight{color:#9ebaa0}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#aa9d88}.wp-core-ui .wp-ui-text-notification{color:#aa9d88}.wp-core-ui .wp-ui-text-icon{color:#f2fcff}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#738e96}.view-switch a:hover:before{color:#aa9d88}#adminmenu,#adminmenuback,#adminmenuwrap{background:#738e96}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f2fcff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#9ebaa0}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(98.2714285714,123.5412244898,131.0285714286)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:rgb(98.2714285714,123.5412244898,131.0285714286)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(213,221.1,223.5)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(213,221.1,223.5)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#9ebaa0}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#9ebaa0}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#9ebaa0}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#aa9d88}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(98.2714285714,123.5412244898,131.0285714286)}#collapse-button{color:#f2fcff}#collapse-button:focus,#collapse-button:hover{color:#9ebaa0}#wpadminbar{color:#fff;background:#738e96}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f2fcff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#9ebaa0;background:rgb(98.2714285714,123.5412244898,131.0285714286)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#9ebaa0}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#9ebaa0}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(98.2714285714,123.5412244898,131.0285714286)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(142.7255,154.4890142857,157.9745)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(213,221.1,223.5)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f2fcff}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#9ebaa0}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#9ebaa0}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#f2fcff}#wpadminbar #adminbarsearch:before{color:#f2fcff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(135.4,158.4657142857,165.3)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#aa9d88}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(153,141.3,122.4)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(135.4,158.4657142857,165.3);background-color:rgb(135.4,158.4657142857,165.3)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#9ebaa0}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(213,221.1,223.5)}.wp-pointer .wp-pointer-content h3{background-color:#9ebaa0;border-color:rgb(143.0993975904,175.4006024096,145.406626506)}.wp-pointer .wp-pointer-content h3:before{color:#9ebaa0}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#9ebaa0}.media-item .bar,.media-progress-bar div{background-color:#9ebaa0}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #9ebaa0}.attachment.details .check{background-color:#9ebaa0;box-shadow:0 0 0 1px #fff,0 0 0 2px #9ebaa0}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #9ebaa0}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#9ebaa0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#9ebaa0}.theme-filter.current,.theme-section.current{border-bottom-color:#738e96}body.more-filters-opened .more-filters{color:#fff;background-color:#738e96}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#9ebaa0;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#9ebaa0;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(187.8012048193,207.1987951807,189.186746988),0 0 2px 1px #9ebaa0}div#wp-responsive-toggle a:before{color:#f2fcff}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#9ebaa0}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(98.2714285714,123.5412244898,131.0285714286)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#f2fcff}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#9ebaa0}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#9ebaa0}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#9ebaa0}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#9ebaa0}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(187.8012048193,207.1987951807,189.186746988),0 0 2px 1px #9ebaa0}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#9ebaa0;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#9ebaa0}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#9ebaa0;border-style:solid;box-shadow:0 0 0 1px #9ebaa0;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#9ebaa0}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#9ebaa0}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#9ebaa0}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(187.8012048193,207.1987951807,189.186746988),0 0 2px 1px #9ebaa0}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#9ebaa0;color:#0073aa}css/colors/ocean/colors-rtl.css000064400000061072152213653150012545 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #738e96; } .wp-core-ui .wp-ui-text-primary { color: #738e96; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #9ebaa0; } .wp-core-ui .wp-ui-text-highlight { color: #9ebaa0; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #aa9d88; } .wp-core-ui .wp-ui-text-notification { color: #aa9d88; } .wp-core-ui .wp-ui-text-icon { color: #f2fcff; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #738e96; } .view-switch a:hover:before { color: #aa9d88; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #738e96; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: #f2fcff; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #9ebaa0; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(213, 221.1, 223.5); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(213, 221.1, 223.5); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #9ebaa0; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #9ebaa0; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #9ebaa0; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #aa9d88; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } /* Admin Menu: collapse button */ #collapse-button { color: #f2fcff; } #collapse-button:hover, #collapse-button:focus { color: #9ebaa0; } /* Admin Bar */ #wpadminbar { color: #fff; background: #738e96; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #f2fcff; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #9ebaa0; background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #9ebaa0; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #9ebaa0; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(142.7255, 154.4890142857, 157.9745); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(213, 221.1, 223.5); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #f2fcff; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #9ebaa0; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #9ebaa0; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #f2fcff; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #f2fcff; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(135.4, 158.4657142857, 165.3); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #aa9d88; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(153, 141.3, 122.4); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(135.4, 158.4657142857, 165.3); background-color: rgb(135.4, 158.4657142857, 165.3); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #9ebaa0; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(213, 221.1, 223.5); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #9ebaa0; border-color: rgb(143.0993975904, 175.4006024096, 145.406626506); } .wp-pointer .wp-pointer-content h3:before { color: #9ebaa0; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #9ebaa0; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #9ebaa0; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0; } .attachment.details .check { background-color: #9ebaa0; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #9ebaa0; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #9ebaa0; } .theme-section.current, .theme-filter.current { border-bottom-color: #738e96; } body.more-filters-opened .more-filters { color: #fff; background-color: #738e96; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #9ebaa0; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #9ebaa0; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(187.8012048193, 207.1987951807, 189.186746988), 0 0 2px 1px #9ebaa0; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #f2fcff; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #9ebaa0; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #f2fcff; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #9ebaa0; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #9ebaa0; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #9ebaa0; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #9ebaa0; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(187.8012048193, 207.1987951807, 189.186746988), 0 0 2px 1px #9ebaa0; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #9ebaa0; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #9ebaa0; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #9ebaa0; border-style: solid; box-shadow: 0 0 0 1px #9ebaa0; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #9ebaa0; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #9ebaa0; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #9ebaa0; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(187.8012048193, 207.1987951807, 189.186746988), 0 0 2px 1px #9ebaa0; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #9ebaa0; color: #0073aa; }css/colors/ocean/colors.min.css000064400000052335152213653150012532 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#738e96}.wp-core-ui .wp-ui-text-primary{color:#738e96}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#9ebaa0}.wp-core-ui .wp-ui-text-highlight{color:#9ebaa0}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#aa9d88}.wp-core-ui .wp-ui-text-notification{color:#aa9d88}.wp-core-ui .wp-ui-text-icon{color:#f2fcff}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#738e96}.view-switch a:hover:before{color:#aa9d88}#adminmenu,#adminmenuback,#adminmenuwrap{background:#738e96}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f2fcff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#9ebaa0}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(98.2714285714,123.5412244898,131.0285714286)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:rgb(98.2714285714,123.5412244898,131.0285714286)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(213,221.1,223.5)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(213,221.1,223.5)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#9ebaa0}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#9ebaa0}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#9ebaa0}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#aa9d88}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(98.2714285714,123.5412244898,131.0285714286)}#collapse-button{color:#f2fcff}#collapse-button:focus,#collapse-button:hover{color:#9ebaa0}#wpadminbar{color:#fff;background:#738e96}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f2fcff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#9ebaa0;background:rgb(98.2714285714,123.5412244898,131.0285714286)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#9ebaa0}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#9ebaa0}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(98.2714285714,123.5412244898,131.0285714286)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(142.7255,154.4890142857,157.9745)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(213,221.1,223.5)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f2fcff}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#9ebaa0}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#9ebaa0}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#f2fcff}#wpadminbar #adminbarsearch:before{color:#f2fcff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(135.4,158.4657142857,165.3)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#aa9d88}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(153,141.3,122.4)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(135.4,158.4657142857,165.3);background-color:rgb(135.4,158.4657142857,165.3)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#9ebaa0}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(213,221.1,223.5)}.wp-pointer .wp-pointer-content h3{background-color:#9ebaa0;border-color:rgb(143.0993975904,175.4006024096,145.406626506)}.wp-pointer .wp-pointer-content h3:before{color:#9ebaa0}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#9ebaa0}.media-item .bar,.media-progress-bar div{background-color:#9ebaa0}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #9ebaa0}.attachment.details .check{background-color:#9ebaa0;box-shadow:0 0 0 1px #fff,0 0 0 2px #9ebaa0}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #9ebaa0}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#9ebaa0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#9ebaa0}.theme-filter.current,.theme-section.current{border-bottom-color:#738e96}body.more-filters-opened .more-filters{color:#fff;background-color:#738e96}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#9ebaa0;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#9ebaa0;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(187.8012048193,207.1987951807,189.186746988),0 0 2px 1px #9ebaa0}div#wp-responsive-toggle a:before{color:#f2fcff}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#9ebaa0}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(98.2714285714,123.5412244898,131.0285714286)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#f2fcff}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#9ebaa0}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#9ebaa0}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#9ebaa0}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#9ebaa0}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(187.8012048193,207.1987951807,189.186746988),0 0 2px 1px #9ebaa0}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#9ebaa0;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#9ebaa0}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#9ebaa0;border-style:solid;box-shadow:0 0 0 1px #9ebaa0;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#9ebaa0}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#9ebaa0}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#9ebaa0}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(187.8012048193,207.1987951807,189.186746988),0 0 2px 1px #9ebaa0}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#9ebaa0;color:#0073aa}css/colors/ocean/colors.css000064400000061071152213653150011745 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #738e96; } .wp-core-ui .wp-ui-text-primary { color: #738e96; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #9ebaa0; } .wp-core-ui .wp-ui-text-highlight { color: #9ebaa0; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #aa9d88; } .wp-core-ui .wp-ui-text-notification { color: #aa9d88; } .wp-core-ui .wp-ui-text-icon { color: #f2fcff; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #738e96; } .view-switch a:hover:before { color: #aa9d88; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #738e96; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: #f2fcff; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #9ebaa0; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(213, 221.1, 223.5); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(213, 221.1, 223.5); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #9ebaa0; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #9ebaa0; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #9ebaa0; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #aa9d88; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } /* Admin Menu: collapse button */ #collapse-button { color: #f2fcff; } #collapse-button:hover, #collapse-button:focus { color: #9ebaa0; } /* Admin Bar */ #wpadminbar { color: #fff; background: #738e96; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #f2fcff; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #9ebaa0; background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #9ebaa0; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #9ebaa0; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(142.7255, 154.4890142857, 157.9745); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(213, 221.1, 223.5); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #f2fcff; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #9ebaa0; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #9ebaa0; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #f2fcff; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #f2fcff; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(135.4, 158.4657142857, 165.3); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #aa9d88; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(153, 141.3, 122.4); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(135.4, 158.4657142857, 165.3); background-color: rgb(135.4, 158.4657142857, 165.3); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #9ebaa0; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(213, 221.1, 223.5); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #9ebaa0; border-color: rgb(143.0993975904, 175.4006024096, 145.406626506); } .wp-pointer .wp-pointer-content h3:before { color: #9ebaa0; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #9ebaa0; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #9ebaa0; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #9ebaa0; } .attachment.details .check { background-color: #9ebaa0; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #9ebaa0; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #9ebaa0; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #9ebaa0; } .theme-section.current, .theme-filter.current { border-bottom-color: #738e96; } body.more-filters-opened .more-filters { color: #fff; background-color: #738e96; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #9ebaa0; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #9ebaa0; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(187.8012048193, 207.1987951807, 189.186746988), 0 0 2px 1px #9ebaa0; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #f2fcff; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #9ebaa0; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(98.2714285714, 123.5412244898, 131.0285714286); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #f2fcff; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #9ebaa0; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #9ebaa0; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #9ebaa0; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #9ebaa0; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(187.8012048193, 207.1987951807, 189.186746988), 0 0 2px 1px #9ebaa0; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #9ebaa0; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #9ebaa0; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #9ebaa0; border-style: solid; box-shadow: 0 0 0 1px #9ebaa0; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #9ebaa0; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #9ebaa0; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #9ebaa0; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(187.8012048193, 207.1987951807, 189.186746988), 0 0 2px 1px #9ebaa0; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #9ebaa0; color: #0073aa; }css/colors/ectoplasm/colors.scss000064400000000336152213653150013027 0ustar00$base-color: #523f6d; @use "../_admin.scss" with ( $scheme-name: "ectoplasm", $base-color: $base-color, $icon-color: #ece6f6, $highlight-color: #a3b745, $notification-color: #d46f15, $form-checked: $base-color, ); css/colors/ectoplasm/colors-rtl.min.css000064400000052427152213653150014235 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#523f6d}.wp-core-ui .wp-ui-text-primary{color:#523f6d}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#a3b745}.wp-core-ui .wp-ui-text-highlight{color:#a3b745}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d46f15}.wp-core-ui .wp-ui-text-notification{color:#d46f15}.wp-core-ui .wp-ui-text-icon{color:#ece6f6}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#523f6d}.view-switch a:hover:before{color:#d46f15}#adminmenu,#adminmenuback,#adminmenuwrap{background:#523f6d}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#ece6f6}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#a3b745}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(64.9802325581,49.9238372093,86.3761627907)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:rgb(64.9802325581,49.9238372093,86.3761627907)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(203.1,197.4,211.2)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(203.1,197.4,211.2)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#a3b745}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#a3b745}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#a3b745}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#d46f15}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(64.9802325581,49.9238372093,86.3761627907)}#collapse-button{color:#ece6f6}#collapse-button:focus,#collapse-button:hover{color:#a3b745}#wpadminbar{color:#fff;background:#523f6d}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#ece6f6}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#a3b745;background:rgb(64.9802325581,49.9238372093,86.3761627907)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#a3b745}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#a3b745}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(64.9802325581,49.9238372093,86.3761627907)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(100.2840283114,83.3456627907,124.3543372093)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(203.1,197.4,211.2)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#ece6f6}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#a3b745}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#a3b745}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#ece6f6}#wpadminbar #adminbarsearch:before{color:#ece6f6}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(99.0197674419,76.0761627907,131.6238372093)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d46f15}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(190.8,99.9,18.9)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(99.0197674419,76.0761627907,131.6238372093);background-color:rgb(99.0197674419,76.0761627907,131.6238372093)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#a3b745}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(203.1,197.4,211.2)}.wp-pointer .wp-pointer-content h3{background-color:#a3b745;border-color:rgb(146.505952381,164.4821428571,62.0178571429)}.wp-pointer .wp-pointer-content h3:before{color:#a3b745}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#a3b745}.media-item .bar,.media-progress-bar div{background-color:#a3b745}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #a3b745}.attachment.details .check{background-color:#a3b745;box-shadow:0 0 0 1px #fff,0 0 0 2px #a3b745}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b745}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#a3b745}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#a3b745}.theme-filter.current,.theme-section.current{border-bottom-color:#523f6d}body.more-filters-opened .more-filters{color:#fff;background-color:#523f6d}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#a3b745;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#a3b745;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(181.8928571429,198.3214285714,104.6785714286),0 0 2px 1px #a3b745}div#wp-responsive-toggle a:before{color:#ece6f6}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#a3b745}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(64.9802325581,49.9238372093,86.3761627907)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#ece6f6}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#a3b745}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#a3b745}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#a3b745}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#a3b745}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(181.8928571429,198.3214285714,104.6785714286),0 0 2px 1px #a3b745}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#a3b745;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#a3b745}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#a3b745;border-style:solid;box-shadow:0 0 0 1px #a3b745;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#a3b745}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#a3b745}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#a3b745}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(181.8928571429,198.3214285714,104.6785714286),0 0 2px 1px #a3b745}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#a3b745;color:#0073aa}css/colors/ectoplasm/colors-rtl.css000064400000061163152213653150013450 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #523f6d; } .wp-core-ui .wp-ui-text-primary { color: #523f6d; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #a3b745; } .wp-core-ui .wp-ui-text-highlight { color: #a3b745; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #d46f15; } .wp-core-ui .wp-ui-text-notification { color: #d46f15; } .wp-core-ui .wp-ui-text-icon { color: #ece6f6; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #523f6d; } .view-switch a:hover:before { color: #d46f15; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #523f6d; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: #ece6f6; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #a3b745; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(203.1, 197.4, 211.2); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(203.1, 197.4, 211.2); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #a3b745; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #a3b745; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #a3b745; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #d46f15; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } /* Admin Menu: collapse button */ #collapse-button { color: #ece6f6; } #collapse-button:hover, #collapse-button:focus { color: #a3b745; } /* Admin Bar */ #wpadminbar { color: #fff; background: #523f6d; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #ece6f6; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #a3b745; background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #a3b745; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #a3b745; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(100.2840283114, 83.3456627907, 124.3543372093); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(203.1, 197.4, 211.2); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #ece6f6; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #a3b745; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #a3b745; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #ece6f6; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #ece6f6; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(99.0197674419, 76.0761627907, 131.6238372093); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #d46f15; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(190.8, 99.9, 18.9); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(99.0197674419, 76.0761627907, 131.6238372093); background-color: rgb(99.0197674419, 76.0761627907, 131.6238372093); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #a3b745; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(203.1, 197.4, 211.2); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #a3b745; border-color: rgb(146.505952381, 164.4821428571, 62.0178571429); } .wp-pointer .wp-pointer-content h3:before { color: #a3b745; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #a3b745; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #a3b745; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #a3b745; } .attachment.details .check { background-color: #a3b745; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #a3b745; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #a3b745; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #a3b745; } .theme-section.current, .theme-filter.current { border-bottom-color: #523f6d; } body.more-filters-opened .more-filters { color: #fff; background-color: #523f6d; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #a3b745; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #a3b745; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(181.8928571429, 198.3214285714, 104.6785714286), 0 0 2px 1px #a3b745; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #ece6f6; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #a3b745; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #ece6f6; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #a3b745; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #a3b745; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #a3b745; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #a3b745; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(181.8928571429, 198.3214285714, 104.6785714286), 0 0 2px 1px #a3b745; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #a3b745; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #a3b745; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #a3b745; border-style: solid; box-shadow: 0 0 0 1px #a3b745; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #a3b745; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #a3b745; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #a3b745; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(181.8928571429, 198.3214285714, 104.6785714286), 0 0 2px 1px #a3b745; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #a3b745; color: #0073aa; }css/colors/ectoplasm/colors.min.css000064400000052426152213653150013435 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#523f6d}.wp-core-ui .wp-ui-text-primary{color:#523f6d}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#a3b745}.wp-core-ui .wp-ui-text-highlight{color:#a3b745}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d46f15}.wp-core-ui .wp-ui-text-notification{color:#d46f15}.wp-core-ui .wp-ui-text-icon{color:#ece6f6}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#523f6d}.view-switch a:hover:before{color:#d46f15}#adminmenu,#adminmenuback,#adminmenuwrap{background:#523f6d}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#ece6f6}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#a3b745}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(64.9802325581,49.9238372093,86.3761627907)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:rgb(64.9802325581,49.9238372093,86.3761627907)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(203.1,197.4,211.2)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(203.1,197.4,211.2)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#a3b745}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#a3b745}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#a3b745}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#d46f15}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(64.9802325581,49.9238372093,86.3761627907)}#collapse-button{color:#ece6f6}#collapse-button:focus,#collapse-button:hover{color:#a3b745}#wpadminbar{color:#fff;background:#523f6d}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#ece6f6}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#a3b745;background:rgb(64.9802325581,49.9238372093,86.3761627907)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#a3b745}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#a3b745}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(64.9802325581,49.9238372093,86.3761627907)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(100.2840283114,83.3456627907,124.3543372093)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(203.1,197.4,211.2)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#ece6f6}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#a3b745}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#a3b745}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#ece6f6}#wpadminbar #adminbarsearch:before{color:#ece6f6}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(99.0197674419,76.0761627907,131.6238372093)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d46f15}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(190.8,99.9,18.9)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(99.0197674419,76.0761627907,131.6238372093);background-color:rgb(99.0197674419,76.0761627907,131.6238372093)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#a3b745}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(203.1,197.4,211.2)}.wp-pointer .wp-pointer-content h3{background-color:#a3b745;border-color:rgb(146.505952381,164.4821428571,62.0178571429)}.wp-pointer .wp-pointer-content h3:before{color:#a3b745}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#a3b745}.media-item .bar,.media-progress-bar div{background-color:#a3b745}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #a3b745}.attachment.details .check{background-color:#a3b745;box-shadow:0 0 0 1px #fff,0 0 0 2px #a3b745}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #a3b745}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#a3b745}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#a3b745}.theme-filter.current,.theme-section.current{border-bottom-color:#523f6d}body.more-filters-opened .more-filters{color:#fff;background-color:#523f6d}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#a3b745;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#a3b745;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(181.8928571429,198.3214285714,104.6785714286),0 0 2px 1px #a3b745}div#wp-responsive-toggle a:before{color:#ece6f6}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#a3b745}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(64.9802325581,49.9238372093,86.3761627907)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#ece6f6}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#a3b745}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#a3b745}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#a3b745}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#a3b745}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(181.8928571429,198.3214285714,104.6785714286),0 0 2px 1px #a3b745}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#a3b745;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#a3b745}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#a3b745;border-style:solid;box-shadow:0 0 0 1px #a3b745;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#a3b745}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#a3b745}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#a3b745}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(181.8928571429,198.3214285714,104.6785714286),0 0 2px 1px #a3b745}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#a3b745;color:#0073aa}css/colors/ectoplasm/colors.css000064400000061162152213653150012650 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #523f6d; } .wp-core-ui .wp-ui-text-primary { color: #523f6d; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #a3b745; } .wp-core-ui .wp-ui-text-highlight { color: #a3b745; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #d46f15; } .wp-core-ui .wp-ui-text-notification { color: #d46f15; } .wp-core-ui .wp-ui-text-icon { color: #ece6f6; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #523f6d; } .view-switch a:hover:before { color: #d46f15; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #523f6d; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: #ece6f6; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #a3b745; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(203.1, 197.4, 211.2); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(203.1, 197.4, 211.2); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #a3b745; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #a3b745; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #a3b745; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #d46f15; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } /* Admin Menu: collapse button */ #collapse-button { color: #ece6f6; } #collapse-button:hover, #collapse-button:focus { color: #a3b745; } /* Admin Bar */ #wpadminbar { color: #fff; background: #523f6d; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #ece6f6; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #a3b745; background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #a3b745; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #a3b745; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(100.2840283114, 83.3456627907, 124.3543372093); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(203.1, 197.4, 211.2); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #ece6f6; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #a3b745; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #a3b745; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #ece6f6; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #ece6f6; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(99.0197674419, 76.0761627907, 131.6238372093); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #d46f15; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(190.8, 99.9, 18.9); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(99.0197674419, 76.0761627907, 131.6238372093); background-color: rgb(99.0197674419, 76.0761627907, 131.6238372093); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #a3b745; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(203.1, 197.4, 211.2); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #a3b745; border-color: rgb(146.505952381, 164.4821428571, 62.0178571429); } .wp-pointer .wp-pointer-content h3:before { color: #a3b745; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #a3b745; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #a3b745; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #a3b745; } .attachment.details .check { background-color: #a3b745; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #a3b745; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #a3b745; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #a3b745; } .theme-section.current, .theme-filter.current { border-bottom-color: #523f6d; } body.more-filters-opened .more-filters { color: #fff; background-color: #523f6d; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #a3b745; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #a3b745; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(181.8928571429, 198.3214285714, 104.6785714286), 0 0 2px 1px #a3b745; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #ece6f6; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #a3b745; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(64.9802325581, 49.9238372093, 86.3761627907); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #ece6f6; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #a3b745; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #a3b745; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #a3b745; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #a3b745; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(181.8928571429, 198.3214285714, 104.6785714286), 0 0 2px 1px #a3b745; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #a3b745; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #a3b745; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #a3b745; border-style: solid; box-shadow: 0 0 0 1px #a3b745; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #a3b745; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #a3b745; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #a3b745; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(181.8928571429, 198.3214285714, 104.6785714286), 0 0 2px 1px #a3b745; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #a3b745; color: #0073aa; }css/colors/ectoplasm/mrgreen-load.php000055500000000406152213653150013715 0ustar00 .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-ui-primary { color: variables.$text-color; background-color: variables.$base-color; } .wp-ui-text-primary { color: variables.$base-color; } .wp-ui-highlight { color: variables.$menu-highlight-text; background-color: variables.$menu-highlight-background; } .wp-ui-text-highlight { color: variables.$menu-highlight-background; } .wp-ui-notification { color: variables.$menu-bubble-text; background-color: variables.$menu-bubble-background; } .wp-ui-text-notification { color: variables.$menu-bubble-background; } .wp-ui-text-icon { color: variables.$menu-icon; } } /* List tables */ // .page-title-action uses secondary button styling .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: tokens.$radius-s; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: variables.$menu-background; } .view-switch a:hover:before { color: variables.$menu-bubble-background; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: variables.$menu-background; } #adminmenu a { color: variables.$menu-text; } #adminmenu div.wp-menu-image:before { color: variables.$menu-icon; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: variables.$menu-highlight-text; background-color: variables.$menu-highlight-background; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: variables.$menu-highlight-icon; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: variables.$body-background; border-bottom-color: variables.$body-background; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: variables.$menu-submenu-background; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: variables.$menu-submenu-background; } #adminmenu .wp-submenu .wp-submenu-head { color: variables.$menu-submenu-text; } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: variables.$menu-submenu-text; &:focus, &:hover { color: variables.$menu-submenu-focus-text; } } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: variables.$menu-submenu-current-text; &:hover, &:focus { color: variables.$menu-submenu-focus-text; } } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: variables.$body-background; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: variables.$menu-current-text; background: variables.$menu-current-background; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: variables.$menu-current-icon; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: variables.$menu-bubble-text; background: variables.$menu-bubble-background; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: variables.$menu-bubble-current-text; background: variables.$menu-bubble-current-background; } /* Admin Menu: collapse button */ #collapse-button { color: variables.$menu-collapse-text; } #collapse-button:hover, #collapse-button:focus { color: variables.$menu-submenu-focus-text; } /* Admin Bar */ #wpadminbar { color: variables.$menu-text; background: variables.$menu-background; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: variables.$menu-text; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: variables.$menu-icon; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: variables.$menu-submenu-focus-text; background: variables.$menu-submenu-background; } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: variables.$menu-submenu-focus-text; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: variables.$menu-submenu-focus-text; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: variables.$menu-submenu-background; } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: variables.$menu-submenu-background-alt; } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: variables.$menu-submenu-text; } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: variables.$menu-icon; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: variables.$menu-submenu-focus-text; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: variables.$menu-submenu-focus-text; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: variables.$menu-icon; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: variables.$menu-icon; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: variables.$menu-text; background: variables.$adminbar-input-background; } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: variables.$adminbar-recovery-exit-text; background-color: variables.$adminbar-recovery-exit-background; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: variables.$adminbar-recovery-exit-text; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: variables.$adminbar-recovery-exit-text; background-color: variables.$adminbar-recovery-exit-background-alt; } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: variables.$adminbar-avatar-frame; background-color: variables.$adminbar-avatar-frame; } #wpadminbar #wp-admin-bar-user-info .display-name { color: variables.$menu-text; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: variables.$menu-submenu-focus-text; } #wpadminbar #wp-admin-bar-user-info .username { color: variables.$menu-submenu-text; } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: variables.$highlight-color; border-color: color.adjust(variables.$highlight-color, $lightness: -5%); } .wp-pointer .wp-pointer-content h3:before { color: variables.$highlight-color; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: variables.$highlight-color; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: variables.$highlight-color; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px variables.$highlight-color; } .attachment.details .check { background-color: variables.$highlight-color; box-shadow: 0 0 0 1px #fff, 0 0 0 2px variables.$highlight-color; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px variables.$highlight-color; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: variables.$highlight-color; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: variables.$highlight-color; } .theme-section.current, .theme-filter.current { border-bottom-color: variables.$menu-background; } body.more-filters-opened .more-filters { color: variables.$menu-text; background-color: variables.$menu-background; } body.more-filters-opened .more-filters:before { color: variables.$menu-text; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: variables.$menu-highlight-background; color: variables.$menu-highlight-text; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: variables.$menu-highlight-text; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: variables.$menu-highlight-background; color: variables.$menu-highlight-text; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: variables.$menu-highlight-text; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%), 0 0 2px 1px variables.$button-color; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: variables.$menu-icon; } .wp-responsive-open div#wp-responsive-toggle a { // ToDo: make inset border border-color: transparent; background: variables.$menu-highlight-background; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: variables.$menu-submenu-background; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: variables.$menu-icon; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: variables.$highlight-color; } /* Customizer */ .wp-core-ui { #customize-controls .control-section:hover > .accordion-section-title, #customize-controls .control-section .accordion-section-title:hover, #customize-controls .control-section.open .accordion-section-title, #customize-controls .control-section .accordion-section-title:focus { color: variables.$link; border-left-color: variables.$button-color; } .customize-controls-close:focus, .customize-controls-close:hover, .customize-controls-preview-toggle:focus, .customize-controls-preview-toggle:hover { color: variables.$link; border-top-color: variables.$button-color; } .customize-panel-back:hover, .customize-panel-back:focus, .customize-section-back:hover, .customize-section-back:focus { color: variables.$link; border-left-color: variables.$button-color; } .customize-screen-options-toggle:hover, .customize-screen-options-toggle:active, .customize-screen-options-toggle:focus, .active-menu-screen-options .customize-screen-options-toggle, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: variables.$link; } .customize-screen-options-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before, &.wp-customizer button:focus .toggle-indicator:before, .menu-item-bar .item-delete:focus:before, #available-menu-items .item-add:focus:before, #customize-save-button-wrapper .save:focus, #publish-settings:focus { box-shadow: 0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%), 0 0 2px 1px variables.$button-color; } #customize-controls .customize-info.open .customize-help-toggle, #customize-controls .customize-info .customize-help-toggle:focus, #customize-controls .customize-info .customize-help-toggle:hover { color: variables.$link; } .control-panel-themes .customize-themes-section-title:focus, .control-panel-themes .customize-themes-section-title:hover { border-left-color: variables.$button-color; color: variables.$link; } .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: variables.$button-color; } .control-panel-themes .customize-themes-section-title.selected { color: variables.$link; } #customize-theme-controls .control-section:hover > .accordion-section-title:after, #customize-theme-controls .control-section .accordion-section-title:hover:after, #customize-theme-controls .control-section.open .accordion-section-title:after, #customize-theme-controls .control-section .accordion-section-title:focus:after, #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, #customize-outer-theme-controls .control-section.open .accordion-section-title:after, #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: variables.$link; } .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: variables.$button-color; border-style: solid; box-shadow: 0 0 0 1px variables.$button-color; outline: 2px solid transparent; } .wp-full-overlay-footer .devices button:focus, .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: variables.$button-color; } .wp-full-overlay-footer .devices button:hover:before, .wp-full-overlay-footer .devices button:focus:before { color: variables.$button-color; } .wp-full-overlay .collapse-sidebar:hover, .wp-full-overlay .collapse-sidebar:focus { color: variables.$button-color; } .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%), 0 0 2px 1px variables.$button-color; } &.wp-customizer .theme-overlay .theme-header .close:focus, &.wp-customizer .theme-overlay .theme-header .close:hover, &.wp-customizer .theme-overlay .theme-header .right:focus, &.wp-customizer .theme-overlay .theme-header .right:hover, &.wp-customizer .theme-overlay .theme-header .left:focus, &.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: variables.$button-color; color: variables.$link; } } css/colors/blue/colors.scss000064400000000561152213653150011767 0ustar00$highlight-color: #096484; @use "../_admin.scss" with ( $scheme-name: "blue", $base-color: #52accc, $icon-color: #e5f8ff, $highlight-color: $highlight-color, $notification-color: #e1a948, $button-color: #e1a948, $menu-submenu-text: #e2ecf1, $menu-submenu-focus-text: #fff, $menu-submenu-background: #4796b3, $dashboard-icon-background: $highlight-color ); css/colors/blue/colors-rtl.min.css000064400000051660152213653150013173 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#52accc}.wp-core-ui .wp-ui-text-primary{color:#52accc}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#096484}.wp-core-ui .wp-ui-text-highlight{color:#096484}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#e1a948}.wp-core-ui .wp-ui-text-notification{color:#e1a948}.wp-core-ui .wp-ui-text-icon{color:#e5f8ff}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#52accc}.view-switch a:hover:before{color:#e1a948}#adminmenu,#adminmenuback,#adminmenuwrap{background:#52accc}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#e5f8ff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#096484}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:#4796b3}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:#4796b3}#adminmenu .wp-submenu .wp-submenu-head{color:#e2ecf1}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:#e2ecf1}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#fff}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#096484}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#e1a948}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#4796b3}#collapse-button{color:#e5f8ff}#collapse-button:focus,#collapse-button:hover{color:#fff}#wpadminbar{color:#fff;background:#52accc}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#e5f8ff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#fff;background:#4796b3}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#fff}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#4796b3}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(116.162375,182.0949364754,205.537625)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#e2ecf1}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#e5f8ff}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#fff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#fff}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#e5f8ff}#wpadminbar #adminbarsearch:before{color:#e5f8ff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(109.571875,185.228125,212.128125)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#e1a948}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(202.5,152.1,64.8)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(109.571875,185.228125,212.128125);background-color:rgb(109.571875,185.228125,212.128125)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info .username{color:#e2ecf1}.wp-pointer .wp-pointer-content h3{background-color:#096484;border-color:rgb(7.3723404255,81.914893617,108.1276595745)}.wp-pointer .wp-pointer-content h3:before{color:#096484}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#096484}.media-item .bar,.media-progress-bar div{background-color:#096484}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #096484}.attachment.details .check{background-color:#096484;box-shadow:0 0 0 1px #fff,0 0 0 2px #096484}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #096484}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#096484}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#096484}.theme-filter.current,.theme-section.current{border-bottom-color:#52accc}body.more-filters-opened .more-filters{color:#fff;background-color:#52accc}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#096484;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#096484;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(232.1830985915,189.5915492958,115.8169014085),0 0 2px 1px #e1a948}div#wp-responsive-toggle a:before{color:#e5f8ff}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#096484}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#4796b3}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#e5f8ff}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#096484}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#e1a948}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#e1a948}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#e1a948}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(232.1830985915,189.5915492958,115.8169014085),0 0 2px 1px #e1a948}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#e1a948;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#e1a948}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#e1a948;border-style:solid;box-shadow:0 0 0 1px #e1a948;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#e1a948}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#e1a948}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#e1a948}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(232.1830985915,189.5915492958,115.8169014085),0 0 2px 1px #e1a948}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#e1a948;color:#0073aa}css/colors/blue/colors-rtl.css000064400000060370152213653150012407 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #52accc; } .wp-core-ui .wp-ui-text-primary { color: #52accc; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #096484; } .wp-core-ui .wp-ui-text-highlight { color: #096484; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #e1a948; } .wp-core-ui .wp-ui-text-notification { color: #e1a948; } .wp-core-ui .wp-ui-text-icon { color: #e5f8ff; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #52accc; } .view-switch a:hover:before { color: #e1a948; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #52accc; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: #e5f8ff; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #096484; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #4796b3; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: #4796b3; } #adminmenu .wp-submenu .wp-submenu-head { color: #e2ecf1; } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: #e2ecf1; } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #fff; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #fff; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #096484; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #e1a948; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: #4796b3; } /* Admin Menu: collapse button */ #collapse-button { color: #e5f8ff; } #collapse-button:hover, #collapse-button:focus { color: #fff; } /* Admin Bar */ #wpadminbar { color: #fff; background: #52accc; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #e5f8ff; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #fff; background: #4796b3; } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #fff; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #fff; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: #4796b3; } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(116.162375, 182.0949364754, 205.537625); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: #e2ecf1; } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #e5f8ff; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #fff; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #fff; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #e5f8ff; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #e5f8ff; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(109.571875, 185.228125, 212.128125); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #e1a948; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(202.5, 152.1, 64.8); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(109.571875, 185.228125, 212.128125); background-color: rgb(109.571875, 185.228125, 212.128125); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info .username { color: #e2ecf1; } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #096484; border-color: rgb(7.3723404255, 81.914893617, 108.1276595745); } .wp-pointer .wp-pointer-content h3:before { color: #096484; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #096484; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #096484; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #096484; } .attachment.details .check { background-color: #096484; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #096484; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #096484; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #096484; } .theme-section.current, .theme-filter.current { border-bottom-color: #52accc; } body.more-filters-opened .more-filters { color: #fff; background-color: #52accc; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #096484; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #096484; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(232.1830985915, 189.5915492958, 115.8169014085), 0 0 2px 1px #e1a948; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #e5f8ff; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #096484; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #4796b3; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #e5f8ff; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #096484; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #e1a948; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #e1a948; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #e1a948; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(232.1830985915, 189.5915492958, 115.8169014085), 0 0 2px 1px #e1a948; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #e1a948; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #e1a948; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #e1a948; border-style: solid; box-shadow: 0 0 0 1px #e1a948; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #e1a948; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #e1a948; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #e1a948; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(232.1830985915, 189.5915492958, 115.8169014085), 0 0 2px 1px #e1a948; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #e1a948; color: #0073aa; }css/colors/blue/colors.min.css000064400000051657152213653150012402 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#52accc}.wp-core-ui .wp-ui-text-primary{color:#52accc}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#096484}.wp-core-ui .wp-ui-text-highlight{color:#096484}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#e1a948}.wp-core-ui .wp-ui-text-notification{color:#e1a948}.wp-core-ui .wp-ui-text-icon{color:#e5f8ff}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#52accc}.view-switch a:hover:before{color:#e1a948}#adminmenu,#adminmenuback,#adminmenuwrap{background:#52accc}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#e5f8ff}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#096484}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:#4796b3}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:#4796b3}#adminmenu .wp-submenu .wp-submenu-head{color:#e2ecf1}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:#e2ecf1}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#fff}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#096484}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#e1a948}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:#4796b3}#collapse-button{color:#e5f8ff}#collapse-button:focus,#collapse-button:hover{color:#fff}#wpadminbar{color:#fff;background:#52accc}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#e5f8ff}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#fff;background:#4796b3}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#fff}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#fff}#wpadminbar .menupop .ab-sub-wrapper{background:#4796b3}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(116.162375,182.0949364754,205.537625)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:#e2ecf1}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#e5f8ff}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#fff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#fff}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#e5f8ff}#wpadminbar #adminbarsearch:before{color:#e5f8ff}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(109.571875,185.228125,212.128125)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#e1a948}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(202.5,152.1,64.8)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(109.571875,185.228125,212.128125);background-color:rgb(109.571875,185.228125,212.128125)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info .username{color:#e2ecf1}.wp-pointer .wp-pointer-content h3{background-color:#096484;border-color:rgb(7.3723404255,81.914893617,108.1276595745)}.wp-pointer .wp-pointer-content h3:before{color:#096484}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#096484}.media-item .bar,.media-progress-bar div{background-color:#096484}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #096484}.attachment.details .check{background-color:#096484;box-shadow:0 0 0 1px #fff,0 0 0 2px #096484}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #096484}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#096484}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#096484}.theme-filter.current,.theme-section.current{border-bottom-color:#52accc}body.more-filters-opened .more-filters{color:#fff;background-color:#52accc}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#096484;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#096484;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(232.1830985915,189.5915492958,115.8169014085),0 0 2px 1px #e1a948}div#wp-responsive-toggle a:before{color:#e5f8ff}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#096484}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#4796b3}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#e5f8ff}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#096484}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#e1a948}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#e1a948}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#e1a948}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(232.1830985915,189.5915492958,115.8169014085),0 0 2px 1px #e1a948}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#e1a948;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#e1a948}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#e1a948;border-style:solid;box-shadow:0 0 0 1px #e1a948;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#e1a948}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#e1a948}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#e1a948}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(232.1830985915,189.5915492958,115.8169014085),0 0 2px 1px #e1a948}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#e1a948;color:#0073aa}css/colors/blue/colors.css000064400000060367152213653150011616 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #52accc; } .wp-core-ui .wp-ui-text-primary { color: #52accc; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #096484; } .wp-core-ui .wp-ui-text-highlight { color: #096484; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #e1a948; } .wp-core-ui .wp-ui-text-notification { color: #e1a948; } .wp-core-ui .wp-ui-text-icon { color: #e5f8ff; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #52accc; } .view-switch a:hover:before { color: #e1a948; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #52accc; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: #e5f8ff; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #096484; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #4796b3; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: #4796b3; } #adminmenu .wp-submenu .wp-submenu-head { color: #e2ecf1; } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: #e2ecf1; } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #fff; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #fff; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #096484; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #e1a948; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: #4796b3; } /* Admin Menu: collapse button */ #collapse-button { color: #e5f8ff; } #collapse-button:hover, #collapse-button:focus { color: #fff; } /* Admin Bar */ #wpadminbar { color: #fff; background: #52accc; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #e5f8ff; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #fff; background: #4796b3; } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #fff; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #fff; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: #4796b3; } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(116.162375, 182.0949364754, 205.537625); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: #e2ecf1; } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #e5f8ff; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #fff; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #fff; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #e5f8ff; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #e5f8ff; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(109.571875, 185.228125, 212.128125); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #e1a948; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(202.5, 152.1, 64.8); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(109.571875, 185.228125, 212.128125); background-color: rgb(109.571875, 185.228125, 212.128125); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info .username { color: #e2ecf1; } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #096484; border-color: rgb(7.3723404255, 81.914893617, 108.1276595745); } .wp-pointer .wp-pointer-content h3:before { color: #096484; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #096484; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #096484; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #096484; } .attachment.details .check { background-color: #096484; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #096484; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #096484; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #096484; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #096484; } .theme-section.current, .theme-filter.current { border-bottom-color: #52accc; } body.more-filters-opened .more-filters { color: #fff; background-color: #52accc; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #096484; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #096484; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(232.1830985915, 189.5915492958, 115.8169014085), 0 0 2px 1px #e1a948; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #e5f8ff; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #096484; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #4796b3; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #e5f8ff; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #096484; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #e1a948; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #e1a948; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #e1a948; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(232.1830985915, 189.5915492958, 115.8169014085), 0 0 2px 1px #e1a948; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #e1a948; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #e1a948; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #e1a948; border-style: solid; box-shadow: 0 0 0 1px #e1a948; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #e1a948; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #e1a948; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #e1a948; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(232.1830985915, 189.5915492958, 115.8169014085), 0 0 2px 1px #e1a948; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #e1a948; color: #0073aa; }css/colors/light/colors.scss000064400000001557152213653150012155 0ustar00@use "sass:color"; $highlight-color: #04a4cc; $text-color: #333; $menu-avatar-frame: #aaa; @use "../_admin.scss" with ( $scheme-name: "light", $base-color: #e5e5e5, $icon-color: #999, $text-color: $text-color, $highlight-color: $highlight-color, $notification-color: #d64e07, $body-background: #f5f5f5, $menu-highlight-text: #fff, $menu-highlight-icon: #ccc, $menu-highlight-background: #888, $menu-bubble-text: #fff, $menu-submenu-background: #fff, $menu-collapse-text: #777, $menu-collapse-focus-icon: #555, $dashboard-accent-1: $highlight-color, $dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%), $dashboard-icon-background: $text-color ); /* Override the theme filter highlight color for this scheme */ .theme-section.current, .theme-filter.current { border-bottom-color: admin.$highlight-color; } css/colors/light/colors-rtl.min.css000064400000051724152213653150013354 0ustar00/*! This file is auto-generated */ body{background:#f5f5f5}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#333;background-color:#e5e5e5}.wp-core-ui .wp-ui-text-primary{color:#e5e5e5}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#888}.wp-core-ui .wp-ui-text-highlight{color:#888}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d64e07}.wp-core-ui .wp-ui-text-notification{color:#d64e07}.wp-core-ui .wp-ui-text-icon{color:#999}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#e5e5e5}.view-switch a:hover:before{color:#d64e07}#adminmenu,#adminmenuback,#adminmenuwrap{background:#e5e5e5}#adminmenu a{color:#333}#adminmenu div.wp-menu-image:before{color:#999}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#888}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#ccc}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f5f5f5;border-bottom-color:#f5f5f5}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:#fff}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:#fff}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(104.4,104.4,104.4)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(104.4,104.4,104.4)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#04a4cc}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#333}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#04a4cc}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f5f5f5}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#888}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#ccc}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#d64e07}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#333;background:#fff}#collapse-button{color:#777}#collapse-button:focus,#collapse-button:hover{color:#04a4cc}#wpadminbar{color:#333;background:#e5e5e5}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#333}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#999}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#04a4cc;background:#fff}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#04a4cc}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#04a4cc}#wpadminbar .menupop .ab-sub-wrapper{background:#fff}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(246.85,246.85,246.85)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(104.4,104.4,104.4)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#999}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#04a4cc}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#04a4cc}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#999}#wpadminbar #adminbarsearch:before{color:#999}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#333;background:rgb(246.85,246.85,246.85)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d64e07}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(192.6,70.2,6.3)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(246.85,246.85,246.85);background-color:rgb(246.85,246.85,246.85)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#333}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#04a4cc}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(104.4,104.4,104.4)}.wp-pointer .wp-pointer-content h3{background-color:#04a4cc;border-color:rgb(3.5096153846,143.8942307692,178.9903846154)}.wp-pointer .wp-pointer-content h3:before{color:#04a4cc}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#04a4cc}.media-item .bar,.media-progress-bar div{background-color:#04a4cc}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #04a4cc}.attachment.details .check{background-color:#04a4cc;box-shadow:0 0 0 1px #fff,0 0 0 2px #04a4cc}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #04a4cc}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#04a4cc}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#04a4cc}.theme-filter.current,.theme-section.current{border-bottom-color:#e5e5e5}body.more-filters-opened .more-filters{color:#333;background-color:#e5e5e5}body.more-filters-opened .more-filters:before{color:#333}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#888;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#888;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(8.8269230769,201.9038461538,250.1730769231),0 0 2px 1px #04a4cc}div#wp-responsive-toggle a:before{color:#999}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#888}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#999}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#04a4cc}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#04a4cc}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#04a4cc}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#04a4cc}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(8.8269230769,201.9038461538,250.1730769231),0 0 2px 1px #04a4cc}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#04a4cc;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#04a4cc}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#04a4cc;border-style:solid;box-shadow:0 0 0 1px #04a4cc;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#04a4cc}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#04a4cc}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#04a4cc}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(8.8269230769,201.9038461538,250.1730769231),0 0 2px 1px #04a4cc}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#04a4cc;color:#0073aa}.theme-filter.current,.theme-section.current{border-bottom-color:#04a4cc}css/colors/light/colors-rtl.css000064400000060556152213653150012575 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f5f5f5; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #333; background-color: #e5e5e5; } .wp-core-ui .wp-ui-text-primary { color: #e5e5e5; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #888; } .wp-core-ui .wp-ui-text-highlight { color: #888; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #d64e07; } .wp-core-ui .wp-ui-text-notification { color: #d64e07; } .wp-core-ui .wp-ui-text-icon { color: #999; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #e5e5e5; } .view-switch a:hover:before { color: #d64e07; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #e5e5e5; } #adminmenu a { color: #333; } #adminmenu div.wp-menu-image:before { color: #999; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #888; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #ccc; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f5f5f5; border-bottom-color: #f5f5f5; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #fff; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: #fff; } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(104.4, 104.4, 104.4); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(104.4, 104.4, 104.4); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #04a4cc; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #333; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #04a4cc; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f5f5f5; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #888; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #ccc; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #d64e07; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #333; background: #fff; } /* Admin Menu: collapse button */ #collapse-button { color: #777; } #collapse-button:hover, #collapse-button:focus { color: #04a4cc; } /* Admin Bar */ #wpadminbar { color: #333; background: #e5e5e5; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #333; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #999; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #04a4cc; background: #fff; } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #04a4cc; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #04a4cc; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: #fff; } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(246.85, 246.85, 246.85); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(104.4, 104.4, 104.4); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #999; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #04a4cc; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #04a4cc; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #999; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #999; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #333; background: rgb(246.85, 246.85, 246.85); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #d64e07; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(192.6, 70.2, 6.3); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(246.85, 246.85, 246.85); background-color: rgb(246.85, 246.85, 246.85); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #333; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #04a4cc; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(104.4, 104.4, 104.4); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #04a4cc; border-color: rgb(3.5096153846, 143.8942307692, 178.9903846154); } .wp-pointer .wp-pointer-content h3:before { color: #04a4cc; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #04a4cc; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #04a4cc; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #04a4cc; } .attachment.details .check { background-color: #04a4cc; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #04a4cc; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #04a4cc; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #04a4cc; } .theme-section.current, .theme-filter.current { border-bottom-color: #e5e5e5; } body.more-filters-opened .more-filters { color: #333; background-color: #e5e5e5; } body.more-filters-opened .more-filters:before { color: #333; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #888; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #888; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(8.8269230769, 201.9038461538, 250.1730769231), 0 0 2px 1px #04a4cc; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #999; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #888; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #fff; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #999; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #04a4cc; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #04a4cc; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #04a4cc; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #04a4cc; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(8.8269230769, 201.9038461538, 250.1730769231), 0 0 2px 1px #04a4cc; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #04a4cc; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #04a4cc; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #04a4cc; border-style: solid; box-shadow: 0 0 0 1px #04a4cc; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #04a4cc; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #04a4cc; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #04a4cc; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(8.8269230769, 201.9038461538, 250.1730769231), 0 0 2px 1px #04a4cc; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #04a4cc; color: #0073aa; } /* Override the theme filter highlight color for this scheme */ .theme-section.current, .theme-filter.current { border-bottom-color: #04a4cc; }css/colors/light/colors.min.css000064400000051723152213653150012554 0ustar00/*! This file is auto-generated */ body{background:#f5f5f5}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#333;background-color:#e5e5e5}.wp-core-ui .wp-ui-text-primary{color:#e5e5e5}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#888}.wp-core-ui .wp-ui-text-highlight{color:#888}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#d64e07}.wp-core-ui .wp-ui-text-notification{color:#d64e07}.wp-core-ui .wp-ui-text-icon{color:#999}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#e5e5e5}.view-switch a:hover:before{color:#d64e07}#adminmenu,#adminmenuback,#adminmenuwrap{background:#e5e5e5}#adminmenu a{color:#333}#adminmenu div.wp-menu-image:before{color:#999}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#888}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#ccc}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f5f5f5;border-bottom-color:#f5f5f5}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:#fff}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:#fff}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(104.4,104.4,104.4)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(104.4,104.4,104.4)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#04a4cc}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#333}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#04a4cc}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f5f5f5}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#888}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#ccc}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#d64e07}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#333;background:#fff}#collapse-button{color:#777}#collapse-button:focus,#collapse-button:hover{color:#04a4cc}#wpadminbar{color:#333;background:#e5e5e5}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#333}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#999}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#04a4cc;background:#fff}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#04a4cc}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#04a4cc}#wpadminbar .menupop .ab-sub-wrapper{background:#fff}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(246.85,246.85,246.85)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(104.4,104.4,104.4)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#999}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#04a4cc}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#04a4cc}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#999}#wpadminbar #adminbarsearch:before{color:#999}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#333;background:rgb(246.85,246.85,246.85)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#d64e07}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(192.6,70.2,6.3)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(246.85,246.85,246.85);background-color:rgb(246.85,246.85,246.85)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#333}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#04a4cc}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(104.4,104.4,104.4)}.wp-pointer .wp-pointer-content h3{background-color:#04a4cc;border-color:rgb(3.5096153846,143.8942307692,178.9903846154)}.wp-pointer .wp-pointer-content h3:before{color:#04a4cc}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#04a4cc}.media-item .bar,.media-progress-bar div{background-color:#04a4cc}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #04a4cc}.attachment.details .check{background-color:#04a4cc;box-shadow:0 0 0 1px #fff,0 0 0 2px #04a4cc}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #04a4cc}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#04a4cc}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#04a4cc}.theme-filter.current,.theme-section.current{border-bottom-color:#e5e5e5}body.more-filters-opened .more-filters{color:#333;background-color:#e5e5e5}body.more-filters-opened .more-filters:before{color:#333}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#888;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#888;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(8.8269230769,201.9038461538,250.1730769231),0 0 2px 1px #04a4cc}div#wp-responsive-toggle a:before{color:#999}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#888}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#fff}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#999}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#04a4cc}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#04a4cc}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#04a4cc}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#04a4cc}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(8.8269230769,201.9038461538,250.1730769231),0 0 2px 1px #04a4cc}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#04a4cc;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#04a4cc}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#04a4cc;border-style:solid;box-shadow:0 0 0 1px #04a4cc;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#04a4cc}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#04a4cc}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#04a4cc}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(8.8269230769,201.9038461538,250.1730769231),0 0 2px 1px #04a4cc}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#04a4cc;color:#0073aa}.theme-filter.current,.theme-section.current{border-bottom-color:#04a4cc}css/colors/light/colors.css000064400000060555152213653150011775 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f5f5f5; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #333; background-color: #e5e5e5; } .wp-core-ui .wp-ui-text-primary { color: #e5e5e5; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #888; } .wp-core-ui .wp-ui-text-highlight { color: #888; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #d64e07; } .wp-core-ui .wp-ui-text-notification { color: #d64e07; } .wp-core-ui .wp-ui-text-icon { color: #999; } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #e5e5e5; } .view-switch a:hover:before { color: #d64e07; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #e5e5e5; } #adminmenu a { color: #333; } #adminmenu div.wp-menu-image:before { color: #999; } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #888; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #ccc; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f5f5f5; border-bottom-color: #f5f5f5; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: #fff; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: #fff; } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(104.4, 104.4, 104.4); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(104.4, 104.4, 104.4); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #04a4cc; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #333; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #04a4cc; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f5f5f5; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #888; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #ccc; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #d64e07; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #333; background: #fff; } /* Admin Menu: collapse button */ #collapse-button { color: #777; } #collapse-button:hover, #collapse-button:focus { color: #04a4cc; } /* Admin Bar */ #wpadminbar { color: #333; background: #e5e5e5; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #333; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: #999; } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #04a4cc; background: #fff; } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #04a4cc; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #04a4cc; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: #fff; } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(246.85, 246.85, 246.85); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(104.4, 104.4, 104.4); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: #999; } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #04a4cc; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #04a4cc; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: #999; } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: #999; } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #333; background: rgb(246.85, 246.85, 246.85); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #d64e07; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(192.6, 70.2, 6.3); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(246.85, 246.85, 246.85); background-color: rgb(246.85, 246.85, 246.85); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #333; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #04a4cc; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(104.4, 104.4, 104.4); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #04a4cc; border-color: rgb(3.5096153846, 143.8942307692, 178.9903846154); } .wp-pointer .wp-pointer-content h3:before { color: #04a4cc; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #04a4cc; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #04a4cc; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #04a4cc; } .attachment.details .check { background-color: #04a4cc; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #04a4cc; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #04a4cc; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #04a4cc; } .theme-section.current, .theme-filter.current { border-bottom-color: #e5e5e5; } body.more-filters-opened .more-filters { color: #333; background-color: #e5e5e5; } body.more-filters-opened .more-filters:before { color: #333; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #888; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #888; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(8.8269230769, 201.9038461538, 250.1730769231), 0 0 2px 1px #04a4cc; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: #999; } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #888; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #fff; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #999; } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #04a4cc; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #04a4cc; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #04a4cc; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #04a4cc; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(8.8269230769, 201.9038461538, 250.1730769231), 0 0 2px 1px #04a4cc; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #04a4cc; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #04a4cc; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #04a4cc; border-style: solid; box-shadow: 0 0 0 1px #04a4cc; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #04a4cc; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #04a4cc; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #04a4cc; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(8.8269230769, 201.9038461538, 250.1730769231), 0 0 2px 1px #04a4cc; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #04a4cc; color: #0073aa; } /* Override the theme filter highlight color for this scheme */ .theme-section.current, .theme-filter.current { border-bottom-color: #04a4cc; }css/colors/_mixins.scss000064400000006223152213653150011206 0ustar00@use 'sass:color'; @use 'tokens'; /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ @mixin button( $button-text-color: #fff ) { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: tokens.$radius-s; color: $button-text-color; &:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: $button-text-color; } &:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: $button-text-color; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px tokens.$white; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } &:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: $button-text-color; } &:disabled, &.disabled { background: tokens.$gray-100; border-color: transparent; color: tokens.$gray-600; cursor: not-allowed; } &.active, &.active:focus, &.active:hover { background: var(--wp-admin-theme-color-darker-10); color: $button-text-color; border-color: transparent; box-shadow: none; } } /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ @mixin button-secondary() { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: tokens.$radius-s; color: var(--wp-admin-theme-color); &:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } &:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } &:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } &:disabled, &.disabled { background: transparent; border-color: tokens.$gray-300; color: tokens.$gray-600; cursor: not-allowed; } } /* * Tertiary button mixin - transparent background, gray text. */ @mixin button-tertiary() { background: transparent; border: 1px solid tokens.$gray-600; border-radius: tokens.$radius-s; color: tokens.$gray-900; &:hover { background: rgba(0, 0, 0, 0.05); border-color: tokens.$gray-700; color: tokens.$gray-900; } &:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: tokens.$gray-900; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } &:active { background: rgba(0, 0, 0, 0.1); border-color: tokens.$gray-700; color: tokens.$gray-900; } &:disabled, &.disabled { background: transparent; border-color: tokens.$gray-400; color: tokens.$gray-600; cursor: not-allowed; } } css/colors/_variables.scss000064400000005101152213653150011641 0ustar00@use "sass:color"; // Import design system tokens @use "tokens" as *; // assign default value to all undefined variables $scheme-name: "default" !default; // core variables $text-color: #fff !default; $base-color: #23282d !default; $icon-color: hsl(color.channel($base-color, "hue", $space: hsl), 7%, 95%) !default; $highlight-color: #0073aa !default; $notification-color: #d54e21 !default; // global $body-background: $gray-100 !default; $link: #0073aa !default; $link-focus: color.adjust($link, $lightness: 10%) !default; $button-color: $highlight-color !default; $button-text-color: $text-color !default; $form-checked: #7e8993 !default; // admin menu & admin-bar $menu-text: $text-color !default; $menu-icon: $icon-color !default; $menu-background: $base-color !default; $menu-highlight-text: $text-color !default; $menu-highlight-icon: $text-color !default; $menu-highlight-background: $highlight-color !default; $menu-current-text: $menu-highlight-text !default; $menu-current-icon: $menu-highlight-icon !default; $menu-current-background: $menu-highlight-background !default; $menu-submenu-text: color.mix( $base-color, $text-color, 30% ) !default; $menu-submenu-background: color.adjust($base-color, $lightness: -7%) !default; $menu-submenu-background-alt: color.adjust(color.adjust($menu-background, $lightness: 7%), $saturation: -7%) !default; $menu-submenu-focus-text: $highlight-color !default; $menu-submenu-current-text: $text-color !default; $menu-bubble-text: $text-color !default; $menu-bubble-background: $notification-color !default; $menu-bubble-current-text: $text-color !default; $menu-bubble-current-background: $menu-submenu-background !default; $menu-collapse-text: $menu-icon !default; $menu-collapse-icon: $menu-icon !default; $menu-collapse-focus-text: $text-color !default; $menu-collapse-focus-icon: $menu-highlight-icon !default; $adminbar-avatar-frame: color.adjust($menu-background, $lightness: 7%) !default; $adminbar-input-background: color.adjust($menu-background, $lightness: 7%) !default; $adminbar-recovery-exit-text: $menu-bubble-text !default; $adminbar-recovery-exit-background: $menu-bubble-background !default; $adminbar-recovery-exit-background-alt: color.mix(black, $adminbar-recovery-exit-background, 10%) !default; $menu-customizer-text: color.mix( $base-color, $text-color, 40% ) !default; // Dashboard Colors $custom-welcome-panel: "true" !default; $dashboard-accent-1: $menu-submenu-background !default; $dashboard-accent-2: $menu-background !default; $dashboard-icon-background: $dashboard-accent-2 !default; $low-contrast-theme: "false" !default; css/colors/midnight/colors.scss000064400000000523152213653150012641 0ustar00@use "sass:color"; $base-color: #363b3f; $highlight-color: #e14d43; $notification-color: #69a8bb; @use "../_admin.scss" with ( $scheme-name: "midnight", $base-color: $base-color, $highlight-color: $highlight-color, $notification-color: $notification-color, $dashboard-accent-2: color.mix($base-color, $notification-color, 90%), ); css/colors/midnight/colors-rtl.min.css000064400000052676152213653150014057 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#363b3f}.wp-core-ui .wp-ui-text-primary{color:#363b3f}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#e14d43}.wp-core-ui .wp-ui-text-highlight{color:#e14d43}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#69a8bb}.wp-core-ui .wp-ui-text-notification{color:#69a8bb}.wp-core-ui .wp-ui-text-icon{color:hsl(206.6666666667,7%,95%)}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#363b3f}.view-switch a:hover:before{color:#69a8bb}#adminmenu,#adminmenuback,#adminmenuwrap{background:#363b3f}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:hsl(206.6666666667,7%,95%)}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#e14d43}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(37.5230769231,40.9974358974,43.7769230769)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:rgb(37.5230769231,40.9974358974,43.7769230769)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(194.7,196.2,197.4)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(194.7,196.2,197.4)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#e14d43}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#e14d43}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#e14d43}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#69a8bb}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(37.5230769231,40.9974358974,43.7769230769)}#collapse-button{color:hsl(206.6666666667,7%,95%)}#collapse-button:focus,#collapse-button:hover{color:#e14d43}#wpadminbar{color:#fff;background:#363b3f}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:hsl(206.6666666667,7%,95%)}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#e14d43;background:rgb(37.5230769231,40.9974358974,43.7769230769)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#e14d43}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#e14d43}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(37.5230769231,40.9974358974,43.7769230769)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(75.8214230769,76.4087307692,76.8785769231)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(194.7,196.2,197.4)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:hsl(206.6666666667,7%,95%)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#e14d43}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#e14d43}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:hsl(206.6666666667,7%,95%)}#wpadminbar #adminbarsearch:before{color:hsl(206.6666666667,7%,95%)}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(70.4769230769,77.0025641026,82.2230769231)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#69a8bb}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(94.5,151.2,168.3)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(70.4769230769,77.0025641026,82.2230769231);background-color:rgb(70.4769230769,77.0025641026,82.2230769231)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#e14d43}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(194.7,196.2,197.4)}.wp-pointer .wp-pointer-content h3{background-color:#e14d43;border-color:rgb(221.4908256881,56.1788990826,45.0091743119)}.wp-pointer .wp-pointer-content h3:before{color:#e14d43}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#e14d43}.media-item .bar,.media-progress-bar div{background-color:#e14d43}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #e14d43}.attachment.details .check{background-color:#e14d43;box-shadow:0 0 0 1px #fff,0 0 0 2px #e14d43}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#e14d43}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#e14d43}.theme-filter.current,.theme-section.current{border-bottom-color:#363b3f}body.more-filters-opened .more-filters{color:#fff;background-color:#363b3f}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#e14d43;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#e14d43;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(232.0183486239,118.6422018349,110.9816513761),0 0 2px 1px #e14d43}div#wp-responsive-toggle a:before{color:hsl(206.6666666667,7%,95%)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#e14d43}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(37.5230769231,40.9974358974,43.7769230769)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:hsl(206.6666666667,7%,95%)}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#e14d43}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#e14d43}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#e14d43}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#e14d43}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(232.0183486239,118.6422018349,110.9816513761),0 0 2px 1px #e14d43}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#e14d43;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#e14d43}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#e14d43;border-style:solid;box-shadow:0 0 0 1px #e14d43;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#e14d43}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#e14d43}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#e14d43}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(232.0183486239,118.6422018349,110.9816513761),0 0 2px 1px #e14d43}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#e14d43;color:#0073aa}css/colors/midnight/colors-rtl.css000064400000061454152213653150013267 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #363b3f; } .wp-core-ui .wp-ui-text-primary { color: #363b3f; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #e14d43; } .wp-core-ui .wp-ui-text-highlight { color: #e14d43; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #69a8bb; } .wp-core-ui .wp-ui-text-notification { color: #69a8bb; } .wp-core-ui .wp-ui-text-icon { color: hsl(206.6666666667, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #363b3f; } .view-switch a:hover:before { color: #69a8bb; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #363b3f; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(206.6666666667, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #e14d43; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(194.7, 196.2, 197.4); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(194.7, 196.2, 197.4); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #e14d43; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #e14d43; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #e14d43; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #69a8bb; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(206.6666666667, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: #e14d43; } /* Admin Bar */ #wpadminbar { color: #fff; background: #363b3f; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(206.6666666667, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #e14d43; background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #e14d43; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #e14d43; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(75.8214230769, 76.4087307692, 76.8785769231); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(194.7, 196.2, 197.4); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(206.6666666667, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #e14d43; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #e14d43; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(206.6666666667, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(206.6666666667, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(70.4769230769, 77.0025641026, 82.2230769231); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #69a8bb; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(94.5, 151.2, 168.3); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(70.4769230769, 77.0025641026, 82.2230769231); background-color: rgb(70.4769230769, 77.0025641026, 82.2230769231); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #e14d43; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(194.7, 196.2, 197.4); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #e14d43; border-color: rgb(221.4908256881, 56.1788990826, 45.0091743119); } .wp-pointer .wp-pointer-content h3:before { color: #e14d43; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #e14d43; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #e14d43; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e14d43; } .attachment.details .check { background-color: #e14d43; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #e14d43; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #e14d43; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #e14d43; } .theme-section.current, .theme-filter.current { border-bottom-color: #363b3f; } body.more-filters-opened .more-filters { color: #fff; background-color: #363b3f; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #e14d43; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #e14d43; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(232.0183486239, 118.6422018349, 110.9816513761), 0 0 2px 1px #e14d43; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(206.6666666667, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #e14d43; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(206.6666666667, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #e14d43; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #e14d43; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #e14d43; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #e14d43; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(232.0183486239, 118.6422018349, 110.9816513761), 0 0 2px 1px #e14d43; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #e14d43; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #e14d43; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #e14d43; border-style: solid; box-shadow: 0 0 0 1px #e14d43; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #e14d43; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #e14d43; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #e14d43; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(232.0183486239, 118.6422018349, 110.9816513761), 0 0 2px 1px #e14d43; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #e14d43; color: #0073aa; }css/colors/midnight/colors.min.css000064400000052675152213653150013257 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#363b3f}.wp-core-ui .wp-ui-text-primary{color:#363b3f}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#e14d43}.wp-core-ui .wp-ui-text-highlight{color:#e14d43}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#69a8bb}.wp-core-ui .wp-ui-text-notification{color:#69a8bb}.wp-core-ui .wp-ui-text-icon{color:hsl(206.6666666667,7%,95%)}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#363b3f}.view-switch a:hover:before{color:#69a8bb}#adminmenu,#adminmenuback,#adminmenuwrap{background:#363b3f}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:hsl(206.6666666667,7%,95%)}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#e14d43}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(37.5230769231,40.9974358974,43.7769230769)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:rgb(37.5230769231,40.9974358974,43.7769230769)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(194.7,196.2,197.4)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(194.7,196.2,197.4)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#e14d43}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#e14d43}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#e14d43}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#69a8bb}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(37.5230769231,40.9974358974,43.7769230769)}#collapse-button{color:hsl(206.6666666667,7%,95%)}#collapse-button:focus,#collapse-button:hover{color:#e14d43}#wpadminbar{color:#fff;background:#363b3f}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:hsl(206.6666666667,7%,95%)}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#e14d43;background:rgb(37.5230769231,40.9974358974,43.7769230769)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#e14d43}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#e14d43}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(37.5230769231,40.9974358974,43.7769230769)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(75.8214230769,76.4087307692,76.8785769231)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(194.7,196.2,197.4)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:hsl(206.6666666667,7%,95%)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#e14d43}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#e14d43}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:hsl(206.6666666667,7%,95%)}#wpadminbar #adminbarsearch:before{color:hsl(206.6666666667,7%,95%)}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(70.4769230769,77.0025641026,82.2230769231)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#69a8bb}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(94.5,151.2,168.3)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(70.4769230769,77.0025641026,82.2230769231);background-color:rgb(70.4769230769,77.0025641026,82.2230769231)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#e14d43}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(194.7,196.2,197.4)}.wp-pointer .wp-pointer-content h3{background-color:#e14d43;border-color:rgb(221.4908256881,56.1788990826,45.0091743119)}.wp-pointer .wp-pointer-content h3:before{color:#e14d43}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#e14d43}.media-item .bar,.media-progress-bar div{background-color:#e14d43}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #e14d43}.attachment.details .check{background-color:#e14d43;box-shadow:0 0 0 1px #fff,0 0 0 2px #e14d43}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #e14d43}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#e14d43}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#e14d43}.theme-filter.current,.theme-section.current{border-bottom-color:#363b3f}body.more-filters-opened .more-filters{color:#fff;background-color:#363b3f}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#e14d43;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#e14d43;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(232.0183486239,118.6422018349,110.9816513761),0 0 2px 1px #e14d43}div#wp-responsive-toggle a:before{color:hsl(206.6666666667,7%,95%)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#e14d43}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(37.5230769231,40.9974358974,43.7769230769)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:hsl(206.6666666667,7%,95%)}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#e14d43}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#e14d43}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#e14d43}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#e14d43}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(232.0183486239,118.6422018349,110.9816513761),0 0 2px 1px #e14d43}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#e14d43;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#e14d43}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#e14d43;border-style:solid;box-shadow:0 0 0 1px #e14d43;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#e14d43}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#e14d43}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#e14d43}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(232.0183486239,118.6422018349,110.9816513761),0 0 2px 1px #e14d43}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#e14d43;color:#0073aa}css/colors/midnight/colors.css000064400000061453152213653150012467 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #363b3f; } .wp-core-ui .wp-ui-text-primary { color: #363b3f; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #e14d43; } .wp-core-ui .wp-ui-text-highlight { color: #e14d43; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #69a8bb; } .wp-core-ui .wp-ui-text-notification { color: #69a8bb; } .wp-core-ui .wp-ui-text-icon { color: hsl(206.6666666667, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #363b3f; } .view-switch a:hover:before { color: #69a8bb; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #363b3f; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(206.6666666667, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #e14d43; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(194.7, 196.2, 197.4); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(194.7, 196.2, 197.4); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #e14d43; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #e14d43; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #e14d43; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #69a8bb; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(206.6666666667, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: #e14d43; } /* Admin Bar */ #wpadminbar { color: #fff; background: #363b3f; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(206.6666666667, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #e14d43; background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #e14d43; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #e14d43; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(75.8214230769, 76.4087307692, 76.8785769231); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(194.7, 196.2, 197.4); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(206.6666666667, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #e14d43; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #e14d43; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(206.6666666667, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(206.6666666667, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(70.4769230769, 77.0025641026, 82.2230769231); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #69a8bb; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(94.5, 151.2, 168.3); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(70.4769230769, 77.0025641026, 82.2230769231); background-color: rgb(70.4769230769, 77.0025641026, 82.2230769231); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #e14d43; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(194.7, 196.2, 197.4); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #e14d43; border-color: rgb(221.4908256881, 56.1788990826, 45.0091743119); } .wp-pointer .wp-pointer-content h3:before { color: #e14d43; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #e14d43; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #e14d43; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #e14d43; } .attachment.details .check { background-color: #e14d43; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #e14d43; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #e14d43; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #e14d43; } .theme-section.current, .theme-filter.current { border-bottom-color: #363b3f; } body.more-filters-opened .more-filters { color: #fff; background-color: #363b3f; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #e14d43; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #e14d43; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(232.0183486239, 118.6422018349, 110.9816513761), 0 0 2px 1px #e14d43; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(206.6666666667, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #e14d43; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(37.5230769231, 40.9974358974, 43.7769230769); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(206.6666666667, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #e14d43; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #e14d43; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #e14d43; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #e14d43; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(232.0183486239, 118.6422018349, 110.9816513761), 0 0 2px 1px #e14d43; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #e14d43; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #e14d43; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #e14d43; border-style: solid; box-shadow: 0 0 0 1px #e14d43; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #e14d43; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #e14d43; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #e14d43; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(232.0183486239, 118.6422018349, 110.9816513761), 0 0 2px 1px #e14d43; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #e14d43; color: #0073aa; }css/colors/coffee/colors.scss000064400000000341152213653150012263 0ustar00$base-color: #59524c; @use "../_admin.scss" with ( $scheme-name: "coffee", $base-color: $base-color, $highlight-color: #c7a589, $notification-color: #9ea476, $form-checked: $base-color, $low-contrast-theme: "true" ); css/colors/coffee/colors-rtl.min.css000064400000052675152213653150013502 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#59524c}.wp-core-ui .wp-ui-text-primary{color:#59524c}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#c7a589}.wp-core-ui .wp-ui-text-highlight{color:#c7a589}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#9ea476}.wp-core-ui .wp-ui-text-notification{color:#9ea476}.wp-core-ui .wp-ui-text-icon{color:hsl(27.6923076923,7%,95%)}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#59524c}.view-switch a:hover:before{color:#9ea476}#adminmenu,#adminmenuback,#adminmenuwrap{background:#59524c}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:hsl(27.6923076923,7%,95%)}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#c7a589}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(69.7436363636,64.2581818182,59.5563636364)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:rgb(69.7436363636,64.2581818182,59.5563636364)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(205.2,203.1,201.3)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(205.2,203.1,201.3)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#c7a589}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#c7a589}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#c7a589}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#9ea476}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(69.7436363636,64.2581818182,59.5563636364)}#collapse-button{color:hsl(27.6923076923,7%,95%)}#collapse-button:focus,#collapse-button:hover{color:#c7a589}#wpadminbar{color:#fff;background:#59524c}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:hsl(27.6923076923,7%,95%)}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#c7a589;background:rgb(69.7436363636,64.2581818182,59.5563636364)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#c7a589}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#c7a589}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(69.7436363636,64.2581818182,59.5563636364)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(101.2318636364,100.2821643357,99.4681363636)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(205.2,203.1,201.3)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:hsl(27.6923076923,7%,95%)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#c7a589}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#c7a589}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:hsl(27.6923076923,7%,95%)}#wpadminbar #adminbarsearch:before{color:hsl(27.6923076923,7%,95%)}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(108.2563636364,99.7418181818,92.4436363636)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#9ea476}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(142.2,147.6,106.2)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(108.2563636364,99.7418181818,92.4436363636);background-color:rgb(108.2563636364,99.7418181818,92.4436363636)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#c7a589}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(205.2,203.1,201.3)}.wp-pointer .wp-pointer-content h3{background-color:#c7a589;border-color:rgb(190.7931034483,151.8103448276,119.7068965517)}.wp-pointer .wp-pointer-content h3:before{color:#c7a589}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#c7a589}.media-item .bar,.media-progress-bar div{background-color:#c7a589}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #c7a589}.attachment.details .check{background-color:#c7a589;box-shadow:0 0 0 1px #fff,0 0 0 2px #c7a589}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #c7a589}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#c7a589}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#c7a589}.theme-filter.current,.theme-section.current{border-bottom-color:#59524c}body.more-filters-opened .more-filters{color:#fff;background-color:#59524c}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#c7a589;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#c7a589;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(215.4137931034,191.3793103448,171.5862068966),0 0 2px 1px #c7a589}div#wp-responsive-toggle a:before{color:hsl(27.6923076923,7%,95%)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#c7a589}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(69.7436363636,64.2581818182,59.5563636364)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:hsl(27.6923076923,7%,95%)}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#c7a589}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-right-color:#c7a589}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#c7a589}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-right-color:#c7a589}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(215.4137931034,191.3793103448,171.5862068966),0 0 2px 1px #c7a589}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#c7a589;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#c7a589}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#c7a589;border-style:solid;box-shadow:0 0 0 1px #c7a589;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#c7a589}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#c7a589}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#c7a589}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(215.4137931034,191.3793103448,171.5862068966),0 0 2px 1px #c7a589}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#c7a589;color:#0073aa}css/colors/coffee/colors-rtl.css000064400000061453152213653150012712 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #59524c; } .wp-core-ui .wp-ui-text-primary { color: #59524c; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #c7a589; } .wp-core-ui .wp-ui-text-highlight { color: #c7a589; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #9ea476; } .wp-core-ui .wp-ui-text-notification { color: #9ea476; } .wp-core-ui .wp-ui-text-icon { color: hsl(27.6923076923, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #59524c; } .view-switch a:hover:before { color: #9ea476; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #59524c; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(27.6923076923, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #c7a589; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(205.2, 203.1, 201.3); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(205.2, 203.1, 201.3); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #c7a589; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #c7a589; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #c7a589; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #9ea476; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(27.6923076923, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: #c7a589; } /* Admin Bar */ #wpadminbar { color: #fff; background: #59524c; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(27.6923076923, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #c7a589; background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #c7a589; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #c7a589; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(101.2318636364, 100.2821643357, 99.4681363636); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(205.2, 203.1, 201.3); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(27.6923076923, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #c7a589; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #c7a589; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(27.6923076923, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(27.6923076923, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(108.2563636364, 99.7418181818, 92.4436363636); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #9ea476; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(142.2, 147.6, 106.2); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(108.2563636364, 99.7418181818, 92.4436363636); background-color: rgb(108.2563636364, 99.7418181818, 92.4436363636); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #c7a589; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(205.2, 203.1, 201.3); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #c7a589; border-color: rgb(190.7931034483, 151.8103448276, 119.7068965517); } .wp-pointer .wp-pointer-content h3:before { color: #c7a589; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #c7a589; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #c7a589; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #c7a589; } .attachment.details .check { background-color: #c7a589; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #c7a589; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #c7a589; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #c7a589; } .theme-section.current, .theme-filter.current { border-bottom-color: #59524c; } body.more-filters-opened .more-filters { color: #fff; background-color: #59524c; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #c7a589; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #c7a589; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(215.4137931034, 191.3793103448, 171.5862068966), 0 0 2px 1px #c7a589; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(27.6923076923, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #c7a589; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(27.6923076923, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #c7a589; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-right-color: #c7a589; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #c7a589; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-right-color: #c7a589; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(215.4137931034, 191.3793103448, 171.5862068966), 0 0 2px 1px #c7a589; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #c7a589; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #c7a589; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #c7a589; border-style: solid; box-shadow: 0 0 0 1px #c7a589; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #c7a589; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #c7a589; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #c7a589; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(215.4137931034, 191.3793103448, 171.5862068966), 0 0 2px 1px #c7a589; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #c7a589; color: #0073aa; }css/colors/coffee/colors.min.css000064400000052674152213653150012702 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#0073aa}a:active,a:focus,a:hover{color:rgb(0,149.5,221)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(0,149.5,221)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#59524c}.wp-core-ui .wp-ui-text-primary{color:#59524c}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#c7a589}.wp-core-ui .wp-ui-text-highlight{color:#c7a589}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#9ea476}.wp-core-ui .wp-ui-text-notification{color:#9ea476}.wp-core-ui .wp-ui-text-icon{color:hsl(27.6923076923,7%,95%)}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#59524c}.view-switch a:hover:before{color:#9ea476}#adminmenu,#adminmenuback,#adminmenuwrap{background:#59524c}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:hsl(27.6923076923,7%,95%)}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#c7a589}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(69.7436363636,64.2581818182,59.5563636364)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:rgb(69.7436363636,64.2581818182,59.5563636364)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(205.2,203.1,201.3)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(205.2,203.1,201.3)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#c7a589}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#c7a589}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#c7a589}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#9ea476}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(69.7436363636,64.2581818182,59.5563636364)}#collapse-button{color:hsl(27.6923076923,7%,95%)}#collapse-button:focus,#collapse-button:hover{color:#c7a589}#wpadminbar{color:#fff;background:#59524c}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:hsl(27.6923076923,7%,95%)}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#c7a589;background:rgb(69.7436363636,64.2581818182,59.5563636364)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#c7a589}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#c7a589}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(69.7436363636,64.2581818182,59.5563636364)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(101.2318636364,100.2821643357,99.4681363636)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(205.2,203.1,201.3)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:hsl(27.6923076923,7%,95%)}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#c7a589}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#c7a589}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:hsl(27.6923076923,7%,95%)}#wpadminbar #adminbarsearch:before{color:hsl(27.6923076923,7%,95%)}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(108.2563636364,99.7418181818,92.4436363636)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#9ea476}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(142.2,147.6,106.2)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(108.2563636364,99.7418181818,92.4436363636);background-color:rgb(108.2563636364,99.7418181818,92.4436363636)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#c7a589}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(205.2,203.1,201.3)}.wp-pointer .wp-pointer-content h3{background-color:#c7a589;border-color:rgb(190.7931034483,151.8103448276,119.7068965517)}.wp-pointer .wp-pointer-content h3:before{color:#c7a589}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#c7a589}.media-item .bar,.media-progress-bar div{background-color:#c7a589}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #c7a589}.attachment.details .check{background-color:#c7a589;box-shadow:0 0 0 1px #fff,0 0 0 2px #c7a589}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #c7a589}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#c7a589}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#c7a589}.theme-filter.current,.theme-section.current{border-bottom-color:#59524c}body.more-filters-opened .more-filters{color:#fff;background-color:#59524c}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#c7a589;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#c7a589;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(215.4137931034,191.3793103448,171.5862068966),0 0 2px 1px #c7a589}div#wp-responsive-toggle a:before{color:hsl(27.6923076923,7%,95%)}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#c7a589}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(69.7436363636,64.2581818182,59.5563636364)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:hsl(27.6923076923,7%,95%)}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#c7a589}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#0073aa;border-left-color:#c7a589}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#0073aa;border-top-color:#c7a589}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#0073aa;border-left-color:#c7a589}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#0073aa}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(215.4137931034,191.3793103448,171.5862068966),0 0 2px 1px #c7a589}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#0073aa}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#c7a589;color:#0073aa}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#c7a589}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#0073aa}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#0073aa}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#c7a589;border-style:solid;box-shadow:0 0 0 1px #c7a589;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#c7a589}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#c7a589}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#c7a589}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(215.4137931034,191.3793103448,171.5862068966),0 0 2px 1px #c7a589}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#c7a589;color:#0073aa}css/colors/coffee/colors.css000064400000061452152213653150012112 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #0073aa; } a:hover, a:active, a:focus { color: rgb(0, 149.5, 221); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(0, 149.5, 221); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #59524c; } .wp-core-ui .wp-ui-text-primary { color: #59524c; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #c7a589; } .wp-core-ui .wp-ui-text-highlight { color: #c7a589; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #9ea476; } .wp-core-ui .wp-ui-text-notification { color: #9ea476; } .wp-core-ui .wp-ui-text-icon { color: hsl(27.6923076923, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #59524c; } .view-switch a:hover:before { color: #9ea476; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #59524c; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(27.6923076923, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #c7a589; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(205.2, 203.1, 201.3); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(205.2, 203.1, 201.3); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #c7a589; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #c7a589; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #c7a589; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #9ea476; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(27.6923076923, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: #c7a589; } /* Admin Bar */ #wpadminbar { color: #fff; background: #59524c; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(27.6923076923, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #c7a589; background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #c7a589; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #c7a589; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(101.2318636364, 100.2821643357, 99.4681363636); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(205.2, 203.1, 201.3); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(27.6923076923, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #c7a589; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #c7a589; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(27.6923076923, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(27.6923076923, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(108.2563636364, 99.7418181818, 92.4436363636); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #9ea476; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(142.2, 147.6, 106.2); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(108.2563636364, 99.7418181818, 92.4436363636); background-color: rgb(108.2563636364, 99.7418181818, 92.4436363636); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #c7a589; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(205.2, 203.1, 201.3); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #c7a589; border-color: rgb(190.7931034483, 151.8103448276, 119.7068965517); } .wp-pointer .wp-pointer-content h3:before { color: #c7a589; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #c7a589; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #c7a589; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #c7a589; } .attachment.details .check { background-color: #c7a589; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #c7a589; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #c7a589; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #c7a589; } .theme-section.current, .theme-filter.current { border-bottom-color: #59524c; } body.more-filters-opened .more-filters { color: #fff; background-color: #59524c; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #c7a589; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #c7a589; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(215.4137931034, 191.3793103448, 171.5862068966), 0 0 2px 1px #c7a589; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(27.6923076923, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #c7a589; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(69.7436363636, 64.2581818182, 59.5563636364); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(27.6923076923, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #c7a589; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #0073aa; border-left-color: #c7a589; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #0073aa; border-top-color: #c7a589; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #0073aa; border-left-color: #c7a589; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #0073aa; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(215.4137931034, 191.3793103448, 171.5862068966), 0 0 2px 1px #c7a589; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #0073aa; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #c7a589; color: #0073aa; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #c7a589; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #0073aa; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #0073aa; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #c7a589; border-style: solid; box-shadow: 0 0 0 1px #c7a589; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #c7a589; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #c7a589; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #c7a589; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(215.4137931034, 191.3793103448, 171.5862068966), 0 0 2px 1px #c7a589; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #c7a589; color: #0073aa; }css/colors/modern/colors.scss000064400000000544152213653150012325 0ustar00@use "sass:color"; $highlight-color: #3858e9; @use "../_admin.scss" with ( $scheme-name: "modern", $base-color: #1e1e1e, $highlight-color: #3858e9, $menu-submenu-focus-text: #7b90ff, $notification-color: $highlight-color, $link: $highlight-color, $link-focus: color.adjust($highlight-color, $lightness: -10%), $custom-welcome-panel: "false" ); css/colors/modern/colors-rtl.min.css000064400000052140152213653150013522 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#3858e9}a:active,a:focus,a:hover{color:rgb(23.6923076923,58.1538461538,214.3076923077)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(23.6923076923,58.1538461538,214.3076923077)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#1e1e1e}.wp-core-ui .wp-ui-text-primary{color:#1e1e1e}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#3858e9}.wp-core-ui .wp-ui-text-highlight{color:#3858e9}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#3858e9}.wp-core-ui .wp-ui-text-notification{color:#3858e9}.wp-core-ui .wp-ui-text-icon{color:#f3f1f1}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#1e1e1e}.view-switch a:hover:before{color:#3858e9}#adminmenu,#adminmenuback,#adminmenuwrap{background:#1e1e1e}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f1f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#3858e9}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(12.15,12.15,12.15)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:rgb(12.15,12.15,12.15)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(187.5,187.5,187.5)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(187.5,187.5,187.5)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#7b90ff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#7b90ff}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-left-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#3858e9}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#3858e9}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(12.15,12.15,12.15)}#collapse-button{color:#f3f1f1}#collapse-button:focus,#collapse-button:hover{color:#7b90ff}#wpadminbar{color:#fff;background:#1e1e1e}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f3f1f1}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#7b90ff;background:rgb(12.15,12.15,12.15)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#7b90ff}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#7b90ff}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(12.15,12.15,12.15)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(47.85,47.85,47.85)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(187.5,187.5,187.5)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f3f1f1}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#7b90ff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#7b90ff}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#f3f1f1}#wpadminbar #adminbarsearch:before{color:#f3f1f1}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(47.85,47.85,47.85)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#3858e9}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(50.4,79.2,209.7)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(47.85,47.85,47.85);background-color:rgb(47.85,47.85,47.85)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#7b90ff}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(187.5,187.5,187.5)}.wp-pointer .wp-pointer-content h3{background-color:#3858e9;border-color:rgb(33.0384615385,68.7307692308,230.4615384615)}.wp-pointer .wp-pointer-content h3:before{color:#3858e9}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#3858e9}.media-item .bar,.media-progress-bar div{background-color:#3858e9}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #3858e9}.attachment.details .check{background-color:#3858e9;box-shadow:0 0 0 1px #fff,0 0 0 2px #3858e9}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #3858e9}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#3858e9}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#3858e9}.theme-filter.current,.theme-section.current{border-bottom-color:#1e1e1e}body.more-filters-opened .more-filters{color:#fff;background-color:#1e1e1e}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#3858e9;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#3858e9;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(101.9230769231,126.5384615385,238.0769230769),0 0 2px 1px #3858e9}div#wp-responsive-toggle a:before{color:#f3f1f1}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#3858e9}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(12.15,12.15,12.15)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#f3f1f1}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#3858e9}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#3858e9;border-right-color:#3858e9}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#3858e9;border-top-color:#3858e9}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#3858e9;border-right-color:#3858e9}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#3858e9}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(101.9230769231,126.5384615385,238.0769230769),0 0 2px 1px #3858e9}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#3858e9}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-right-color:#3858e9;color:#3858e9}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#3858e9}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#3858e9}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#3858e9}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#3858e9;border-style:solid;box-shadow:0 0 0 1px #3858e9;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#3858e9}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#3858e9}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#3858e9}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(101.9230769231,126.5384615385,238.0769230769),0 0 2px 1px #3858e9}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#3858e9;color:#3858e9}css/colors/modern/colors-rtl.css000064400000061004152213653150012737 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #3858e9; } a:hover, a:active, a:focus { color: rgb(23.6923076923, 58.1538461538, 214.3076923077); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(23.6923076923, 58.1538461538, 214.3076923077); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #1e1e1e; } .wp-core-ui .wp-ui-text-primary { color: #1e1e1e; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #3858e9; } .wp-core-ui .wp-ui-text-highlight { color: #3858e9; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #3858e9; } .wp-core-ui .wp-ui-text-notification { color: #3858e9; } .wp-core-ui .wp-ui-text-icon { color: hsl(0, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #1e1e1e; } .view-switch a:hover:before { color: #3858e9; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #1e1e1e; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(0, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #3858e9; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(12.15, 12.15, 12.15); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: rgb(12.15, 12.15, 12.15); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(187.5, 187.5, 187.5); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(187.5, 187.5, 187.5); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #7b90ff; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #7b90ff; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-left-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #3858e9; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #3858e9; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(12.15, 12.15, 12.15); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(0, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: #7b90ff; } /* Admin Bar */ #wpadminbar { color: #fff; background: #1e1e1e; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(0, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #7b90ff; background: rgb(12.15, 12.15, 12.15); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #7b90ff; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #7b90ff; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(12.15, 12.15, 12.15); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(47.85, 47.85, 47.85); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(187.5, 187.5, 187.5); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(0, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #7b90ff; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #7b90ff; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(0, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(0, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(47.85, 47.85, 47.85); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #3858e9; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(50.4, 79.2, 209.7); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(47.85, 47.85, 47.85); background-color: rgb(47.85, 47.85, 47.85); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #7b90ff; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(187.5, 187.5, 187.5); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #3858e9; border-color: rgb(33.0384615385, 68.7307692308, 230.4615384615); } .wp-pointer .wp-pointer-content h3:before { color: #3858e9; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #3858e9; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #3858e9; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #3858e9; } .attachment.details .check { background-color: #3858e9; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #3858e9; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #3858e9; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #3858e9; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #3858e9; } .theme-section.current, .theme-filter.current { border-bottom-color: #1e1e1e; } body.more-filters-opened .more-filters { color: #fff; background-color: #1e1e1e; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #3858e9; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #3858e9; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(101.9230769231, 126.5384615385, 238.0769230769), 0 0 2px 1px #3858e9; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(0, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #3858e9; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(12.15, 12.15, 12.15); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(0, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #3858e9; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #3858e9; border-right-color: #3858e9; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #3858e9; border-top-color: #3858e9; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #3858e9; border-right-color: #3858e9; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #3858e9; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(101.9230769231, 126.5384615385, 238.0769230769), 0 0 2px 1px #3858e9; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #3858e9; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-right-color: #3858e9; color: #3858e9; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #3858e9; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #3858e9; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #3858e9; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #3858e9; border-style: solid; box-shadow: 0 0 0 1px #3858e9; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #3858e9; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #3858e9; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #3858e9; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(101.9230769231, 126.5384615385, 238.0769230769), 0 0 2px 1px #3858e9; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #3858e9; color: #3858e9; }css/colors/modern/colors.min.css000064400000052137152213653150012731 0ustar00/*! This file is auto-generated */ body{background:#f0f0f0}a{color:#3858e9}a:active,a:focus,a:hover{color:rgb(23.6923076923,58.1538461538,214.3076923077)}#post-body #visibility:before,#post-body .misc-pub-post-status:before,#post-body .misc-pub-revisions:before,.curtime #timestamp:before,span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link,.wp-core-ui .button.button-link{color:var(--wp-admin-theme-color)}.wp-core-ui .button-link:active,.wp-core-ui .button-link:hover,.wp-core-ui .button.button-link:active,.wp-core-ui .button.button-link:hover{color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-link:focus,.wp-core-ui .button.button-link:focus{color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-link:disabled,.wp-core-ui .button-link[aria-disabled=true],.wp-core-ui .button.button-link:disabled,.wp-core-ui .button.button-link[aria-disabled=true]{color:#949494}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link-delete{color:#cc1818}.media-modal .delete-attachment:focus,.media-modal .delete-attachment:hover,.media-modal .trash-attachment:focus,.media-modal .trash-attachment:hover,.media-modal .untrash-attachment:focus,.media-modal .untrash-attachment:hover,.wp-core-ui .button-link-delete:focus,.wp-core-ui .button-link-delete:hover{color:rgb(230.6842105263,48.3157894737,48.3157894737)}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:rgb(23.6923076923,58.1538461538,214.3076923077)}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color)}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.mailserver-pass-wrap .button.wp-hide-pw:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui .button{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button.disabled,.wp-core-ui .button:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-secondary{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wp-core-ui .button-secondary:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wp-core-ui .button-secondary:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wp-core-ui .button-secondary:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.wp-core-ui .button-secondary.disabled,.wp-core-ui .button-secondary:disabled{background:0 0;border-color:#ddd;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary{background:var(--wp-admin-theme-color);border-color:transparent;border-radius:2px;color:#fff}.wp-core-ui .button-primary:hover{background:var(--wp-admin-theme-color-darker-10);border-color:transparent;color:#fff}.wp-core-ui .button-primary:focus{background:var(--wp-admin-theme-color);border-color:transparent;color:#fff;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.wp-core-ui .button-primary:active{background:var(--wp-admin-theme-color-darker-20);border-color:transparent;color:#fff}.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled{background:#f0f0f0;border-color:transparent;color:#949494;cursor:not-allowed}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover{background:var(--wp-admin-theme-color-darker-10);color:#fff;border-color:transparent;box-shadow:none}.wp-core-ui .button-group>.button.active{border-color:var(--wp-admin-theme-color);background:rgba(var(--wp-admin-theme-color--rgb),.08)}.wp-core-ui .wp-ui-primary{color:#fff;background-color:#1e1e1e}.wp-core-ui .wp-ui-text-primary{color:#1e1e1e}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:#3858e9}.wp-core-ui .wp-ui-text-highlight{color:#3858e9}.wp-core-ui .wp-ui-notification{color:#fff;background-color:#3858e9}.wp-core-ui .wp-ui-text-notification{color:#3858e9}.wp-core-ui .wp-ui-text-icon{color:#f3f1f1}.wrap .page-title-action{background:0 0;border:1px solid var(--wp-admin-theme-color);border-radius:2px;color:var(--wp-admin-theme-color)}.wrap .page-title-action:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20)}.wrap .page-title-action:focus{background:0 0;border-color:var(--wp-admin-theme-color);color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:1px solid transparent}.wrap .page-title-action:active{background:rgba(var(--wp-admin-theme-color--rgb),.08);border-color:var(--wp-admin-theme-color-darker-20);color:var(--wp-admin-theme-color-darker-20);box-shadow:none}.view-switch a.current:before{color:#1e1e1e}.view-switch a:hover:before{color:#3858e9}#adminmenu,#adminmenuback,#adminmenuwrap{background:#1e1e1e}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f1f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:#3858e9}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f0f0f0;border-bottom-color:#f0f0f0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{background:rgb(12.15,12.15,12.15)}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:rgb(12.15,12.15,12.15)}#adminmenu .wp-submenu .wp-submenu-head{color:rgb(187.5,187.5,187.5)}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a{color:rgb(187.5,187.5,187.5)}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover{color:#7b90ff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a:hover{color:#7b90ff}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{border-right-color:#f0f0f0}#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,.folded #adminmenu li.current.menu-top{color:#fff;background:#3858e9}#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.current div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#fff}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{color:#fff;background:#3858e9}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod,#adminmenu li.menu-top:hover>a .update-plugins,#adminmenu li:hover a .awaiting-mod{color:#fff;background:rgb(12.15,12.15,12.15)}#collapse-button{color:#f3f1f1}#collapse-button:focus,#collapse-button:hover{color:#7b90ff}#wpadminbar{color:#fff;background:#1e1e1e}#wpadminbar .ab-item,#wpadminbar a.ab-item,#wpadminbar>#wp-toolbar span.ab-label,#wpadminbar>#wp-toolbar span.noticon{color:#fff}#wpadminbar .ab-icon,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:after,#wpadminbar .ab-item:before{color:#f3f1f1}#wpadminbar .ab-top-menu>li.menupop.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#wpadminbar.nojs .ab-top-menu>li.menupop:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{color:#7b90ff;background:rgb(12.15,12.15,12.15)}#wpadminbar:not(.mobile)>#wp-toolbar a:focus span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li.hover span.ab-label,#wpadminbar:not(.mobile)>#wp-toolbar li:hover span.ab-label{color:#7b90ff}#wpadminbar:not(.mobile) li:hover #adminbarsearch:before,#wpadminbar:not(.mobile) li:hover .ab-icon:before,#wpadminbar:not(.mobile) li:hover .ab-item:after,#wpadminbar:not(.mobile) li:hover .ab-item:before{color:#7b90ff}#wpadminbar .menupop .ab-sub-wrapper{background:rgb(12.15,12.15,12.15)}#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:rgb(47.85,47.85,47.85)}#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a{color:rgb(187.5,187.5,187.5)}#wpadminbar .menupop .menupop>.ab-item:before,#wpadminbar .quicklinks li .blavatar{color:#f3f1f1}#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#wpadminbar .quicklinks .menupop ul li a:focus,#wpadminbar .quicklinks .menupop ul li a:focus strong,#wpadminbar .quicklinks .menupop ul li a:hover,#wpadminbar .quicklinks .menupop ul li a:hover strong,#wpadminbar .quicklinks .menupop.hover ul li a:focus,#wpadminbar .quicklinks .menupop.hover ul li a:hover,#wpadminbar li #adminbarsearch.adminbar-focused:before,#wpadminbar li .ab-item:focus .ab-icon:before,#wpadminbar li .ab-item:focus:before,#wpadminbar li a:focus .ab-icon:before,#wpadminbar li.hover .ab-icon:before,#wpadminbar li.hover .ab-item:before,#wpadminbar li:hover #adminbarsearch:before,#wpadminbar li:hover .ab-icon:before,#wpadminbar li:hover .ab-item:before,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,#wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover{color:#7b90ff}#wpadminbar .menupop .menupop>.ab-item:hover:before,#wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#wpadminbar .quicklinks li a:focus .blavatar,#wpadminbar .quicklinks li a:hover .blavatar,#wpadminbar.mobile .quicklinks .hover .ab-icon:before,#wpadminbar.mobile .quicklinks .hover .ab-item:before{color:#7b90ff}#wpadminbar.mobile .quicklinks .ab-icon:before,#wpadminbar.mobile .quicklinks .ab-item:before{color:#f3f1f1}#wpadminbar #adminbarsearch:before{color:#f3f1f1}#wpadminbar>#wp-toolbar>#wp-admin-bar-top-secondary>#wp-admin-bar-search #adminbarsearch input.adminbar-input:focus{color:#fff;background:rgb(47.85,47.85,47.85)}#wpadminbar #wp-admin-bar-recovery-mode{color:#fff;background-color:#3858e9}#wpadminbar #wp-admin-bar-recovery-mode .ab-item,#wpadminbar #wp-admin-bar-recovery-mode a.ab-item{color:#fff}#wpadminbar .ab-top-menu>#wp-admin-bar-recovery-mode.hover>.ab-item,#wpadminbar.nojq .quicklinks .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode:hover>.ab-item,#wpadminbar:not(.mobile) .ab-top-menu>#wp-admin-bar-recovery-mode>.ab-item:focus{color:#fff;background-color:rgb(50.4,79.2,209.7)}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{border-color:rgb(47.85,47.85,47.85);background-color:rgb(47.85,47.85,47.85)}#wpadminbar #wp-admin-bar-user-info .display-name{color:#fff}#wpadminbar #wp-admin-bar-user-info a:hover .display-name{color:#7b90ff}#wpadminbar #wp-admin-bar-user-info .username{color:rgb(187.5,187.5,187.5)}.wp-pointer .wp-pointer-content h3{background-color:#3858e9;border-color:rgb(33.0384615385,68.7307692308,230.4615384615)}.wp-pointer .wp-pointer-content h3:before{color:#3858e9}.wp-pointer.wp-pointer-top .wp-pointer-arrow,.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner{border-bottom-color:#3858e9}.media-item .bar,.media-progress-bar div{background-color:#3858e9}.details.attachment{box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #3858e9}.attachment.details .check{background-color:#3858e9;box-shadow:0 0 0 1px #fff,0 0 0 2px #3858e9}.media-selection .attachment.selection.details .thumbnail{box-shadow:0 0 0 1px #fff,0 0 0 3px #3858e9}.theme-browser .theme.active .theme-name,.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{background:#3858e9}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{color:#3858e9}.theme-filter.current,.theme-section.current{border-bottom-color:#1e1e1e}body.more-filters-opened .more-filters{color:#fff;background-color:#1e1e1e}body.more-filters-opened .more-filters:before{color:#fff}body.more-filters-opened .more-filters:focus,body.more-filters-opened .more-filters:hover{background-color:#3858e9;color:#fff}body.more-filters-opened .more-filters:focus:before,body.more-filters-opened .more-filters:hover:before{color:#fff}.widgets-chooser li.widgets-chooser-selected{background-color:#3858e9;color:#fff}.widgets-chooser li.widgets-chooser-selected:before,.widgets-chooser li.widgets-chooser-selected:focus:before{color:#fff}.nav-menus-php .item-edit:focus:before{box-shadow:0 0 0 1px rgb(101.9230769231,126.5384615385,238.0769230769),0 0 2px 1px #3858e9}div#wp-responsive-toggle a:before{color:#f3f1f1}.wp-responsive-open div#wp-responsive-toggle a{border-color:transparent;background:#3858e9}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:rgb(12.15,12.15,12.15)}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#f3f1f1}.mce-container.mce-menu .mce-menu-item-normal.mce-active,.mce-container.mce-menu .mce-menu-item-preview.mce-active,.mce-container.mce-menu .mce-menu-item.mce-selected,.mce-container.mce-menu .mce-menu-item:focus,.mce-container.mce-menu .mce-menu-item:hover{background:#3858e9}.wp-core-ui #customize-controls .control-section .accordion-section-title:focus,.wp-core-ui #customize-controls .control-section .accordion-section-title:hover,.wp-core-ui #customize-controls .control-section.open .accordion-section-title,.wp-core-ui #customize-controls .control-section:hover>.accordion-section-title{color:#3858e9;border-left-color:#3858e9}.wp-core-ui .customize-controls-close:focus,.wp-core-ui .customize-controls-close:hover,.wp-core-ui .customize-controls-preview-toggle:focus,.wp-core-ui .customize-controls-preview-toggle:hover{color:#3858e9;border-top-color:#3858e9}.wp-core-ui .customize-panel-back:focus,.wp-core-ui .customize-panel-back:hover,.wp-core-ui .customize-section-back:focus,.wp-core-ui .customize-section-back:hover{color:#3858e9;border-left-color:#3858e9}.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,.wp-core-ui .active-menu-screen-options .customize-screen-options-toggle,.wp-core-ui .customize-screen-options-toggle:active,.wp-core-ui .customize-screen-options-toggle:focus,.wp-core-ui .customize-screen-options-toggle:hover{color:#3858e9}.wp-core-ui #available-menu-items .item-add:focus:before,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before,.wp-core-ui #customize-save-button-wrapper .save:focus,.wp-core-ui #publish-settings:focus,.wp-core-ui .customize-screen-options-toggle:focus:before,.wp-core-ui .menu-item-bar .item-delete:focus:before,.wp-core-ui.wp-customizer button:focus .toggle-indicator:before{box-shadow:0 0 0 1px rgb(101.9230769231,126.5384615385,238.0769230769),0 0 2px 1px #3858e9}.wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus,.wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover,.wp-core-ui #customize-controls .customize-info.open .customize-help-toggle{color:#3858e9}.wp-core-ui .control-panel-themes .customize-themes-section-title:focus,.wp-core-ui .control-panel-themes .customize-themes-section-title:hover{border-left-color:#3858e9;color:#3858e9}.wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after{background:#3858e9}.wp-core-ui .control-panel-themes .customize-themes-section-title.selected{color:#3858e9}.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-outer-theme-controls .control-section:hover>.accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after,.wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after,.wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after,.wp-core-ui #customize-theme-controls .control-section:hover>.accordion-section-title:after{color:#3858e9}.wp-core-ui .customize-control .attachment-media-view .button-add-media:focus{background-color:#fbfbfc;border-color:#3858e9;border-style:solid;box-shadow:0 0 0 1px #3858e9;outline:2px solid transparent}.wp-core-ui .wp-full-overlay-footer .devices button.active:hover,.wp-core-ui .wp-full-overlay-footer .devices button:focus{border-bottom-color:#3858e9}.wp-core-ui .wp-full-overlay-footer .devices button:focus:before,.wp-core-ui .wp-full-overlay-footer .devices button:hover:before{color:#3858e9}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#3858e9}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px rgb(101.9230769231,126.5384615385,238.0769230769),0 0 2px 1px #3858e9}.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus,.wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover{border-bottom-color:#3858e9;color:#3858e9}css/colors/modern/colors.css000064400000061003152213653150012137 0ustar00/*! This file is auto-generated */ /* * Button mixin - creates a primary button effect. * Uses CSS custom properties for theme color support across color schemes. */ /* * Secondary button mixin - outlined style with theme color. * Matches Gutenberg's .is-secondary button variant. */ /* * Tertiary button mixin - transparent background, gray text. */ /** * This function name uses British English to maintain backward compatibility, as developers * may use the function in their own admin CSS files. See #56811. */ body { background: #f0f0f0; } /* Links */ a { color: #3858e9; } a:hover, a:active, a:focus { color: rgb(23.6923076923, 58.1538461538, 214.3076923077); } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-revisions:before, span.wp-media-buttons-icon:before { color: currentColor; } /* Link button - appears as text link, no border or background */ /* Matches Gutenberg's .is-link button variant */ .wp-core-ui .button-link, .wp-core-ui .button.button-link { color: var(--wp-admin-theme-color); } .wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button.button-link:hover, .wp-core-ui .button.button-link:active { color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-link:focus, .wp-core-ui .button.button-link:focus { color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-link:disabled, .wp-core-ui .button-link[aria-disabled=true], .wp-core-ui .button.button-link:disabled, .wp-core-ui .button.button-link[aria-disabled=true] { color: #949494; } .media-modal .delete-attachment, .media-modal .trash-attachment, .media-modal .untrash-attachment, .wp-core-ui .button-link-delete { color: #cc1818; } .media-modal .delete-attachment:hover, .media-modal .trash-attachment:hover, .media-modal .untrash-attachment:hover, .media-modal .delete-attachment:focus, .media-modal .trash-attachment:focus, .media-modal .untrash-attachment:focus, .wp-core-ui .button-link-delete:hover, .wp-core-ui .button-link-delete:focus { color: rgb(230.6842105263, 48.3157894737, 48.3157894737); } /* Forms */ input[type=checkbox]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type=radio]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } .wp-core-ui input[type=reset]:hover, .wp-core-ui input[type=reset]:active { color: rgb(23.6923076923, 58.1538461538, 214.3076923077); } input[type=text]:focus, input[type=password]:focus, input[type=color]:focus, input[type=date]:focus, input[type=datetime]:focus, input[type=datetime-local]:focus, input[type=email]:focus, input[type=month]:focus, input[type=number]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=time]:focus, input[type=url]:focus, input[type=week]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } input[type=checkbox]:focus, input[type=radio]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--wp-admin-theme-color); outline: 2px solid transparent; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected=true] { background-color: var(--wp-admin-theme-color); } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .mailserver-pass-wrap .button.wp-hide-pw:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } /* Core UI */ .wp-core-ui { /* Default button - theme color border and text (matches secondary) */ } .wp-core-ui .button { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button:disabled, .wp-core-ui .button.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Secondary button - same as default */ } .wp-core-ui .button-secondary { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wp-core-ui .button-secondary:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wp-core-ui .button-secondary:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wp-core-ui .button-secondary:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .wp-core-ui .button-secondary:disabled, .wp-core-ui .button-secondary.disabled { background: transparent; border-color: #dddddd; color: #949494; cursor: not-allowed; } .wp-core-ui { /* Primary button - theme color background */ } .wp-core-ui .button-primary { background: var(--wp-admin-theme-color); border-color: transparent; border-radius: 2px; color: #fff; } .wp-core-ui .button-primary:hover { background: var(--wp-admin-theme-color-darker-10); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:focus { background: var(--wp-admin-theme-color); border-color: transparent; color: #fff; /* Gutenberg-style focus ring: outer theme color + inset white for contrast */ box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color), inset 0 0 0 1px #ffffff; /* Visible in Windows High Contrast mode */ outline: 1px solid transparent; } .wp-core-ui .button-primary:active { background: var(--wp-admin-theme-color-darker-20); border-color: transparent; color: #fff; } .wp-core-ui .button-primary:disabled, .wp-core-ui .button-primary.disabled { background: #f0f0f0; border-color: transparent; color: #949494; cursor: not-allowed; } .wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover { background: var(--wp-admin-theme-color-darker-10); color: #fff; border-color: transparent; box-shadow: none; } .wp-core-ui .button-group > .button.active { border-color: var(--wp-admin-theme-color); background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } .wp-core-ui .wp-ui-primary { color: #fff; background-color: #1e1e1e; } .wp-core-ui .wp-ui-text-primary { color: #1e1e1e; } .wp-core-ui .wp-ui-highlight { color: #fff; background-color: #3858e9; } .wp-core-ui .wp-ui-text-highlight { color: #3858e9; } .wp-core-ui .wp-ui-notification { color: #fff; background-color: #3858e9; } .wp-core-ui .wp-ui-text-notification { color: #3858e9; } .wp-core-ui .wp-ui-text-icon { color: hsl(0, 7%, 95%); } /* List tables */ .wrap .page-title-action { background: transparent; border: 1px solid var(--wp-admin-theme-color); border-radius: 2px; color: var(--wp-admin-theme-color); } .wrap .page-title-action:hover { background: rgba(var(--wp-admin-theme-color--rgb), 0.04); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); } .wrap .page-title-action:focus { background: transparent; border-color: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); outline: 1px solid transparent; } .wrap .page-title-action:active { background: rgba(var(--wp-admin-theme-color--rgb), 0.08); border-color: var(--wp-admin-theme-color-darker-20); color: var(--wp-admin-theme-color-darker-20); box-shadow: none; } .view-switch a.current:before { color: #1e1e1e; } .view-switch a:hover:before { color: #3858e9; } /* Admin Menu */ #adminmenuback, #adminmenuwrap, #adminmenu { background: #1e1e1e; } #adminmenu a { color: #fff; } #adminmenu div.wp-menu-image:before { color: hsl(0, 7%, 95%); } #adminmenu a:hover, #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { color: #fff; background-color: #3858e9; } #adminmenu li.menu-top:hover div.wp-menu-image:before, #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { color: #fff; } /* Active tabs use a bottom border color that matches the page background color. */ .about-wrap .nav-tab-active, .nav-tab-active, .nav-tab-active:hover { background-color: #f0f0f0; border-bottom-color: #f0f0f0; } /* Admin Menu: submenu */ #adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { background: rgb(12.15, 12.15, 12.15); } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-right-color: rgb(12.15, 12.15, 12.15); } #adminmenu .wp-submenu .wp-submenu-head { color: rgb(187.5, 187.5, 187.5); } #adminmenu .wp-submenu a, #adminmenu .wp-has-current-submenu .wp-submenu a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { color: rgb(187.5, 187.5, 187.5); } #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-has-current-submenu .wp-submenu a:focus, #adminmenu .wp-has-current-submenu .wp-submenu a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover { color: #7b90ff; } /* Admin Menu: current */ #adminmenu .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { color: #fff; } #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover, #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus { color: #7b90ff; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { border-right-color: #f0f0f0; } #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, .folded #adminmenu li.current.menu-top { color: #fff; background: #3858e9; } #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.current div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #fff; } /* Admin Menu: bubble */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { color: #fff; background: #3858e9; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins, #adminmenu li:hover a .awaiting-mod, #adminmenu li.menu-top:hover > a .update-plugins { color: #fff; background: rgb(12.15, 12.15, 12.15); } /* Admin Menu: collapse button */ #collapse-button { color: hsl(0, 7%, 95%); } #collapse-button:hover, #collapse-button:focus { color: #7b90ff; } /* Admin Bar */ #wpadminbar { color: #fff; background: #1e1e1e; } #wpadminbar .ab-item, #wpadminbar a.ab-item, #wpadminbar > #wp-toolbar span.ab-label, #wpadminbar > #wp-toolbar span.noticon { color: #fff; } #wpadminbar .ab-icon, #wpadminbar .ab-icon:before, #wpadminbar .ab-item:before, #wpadminbar .ab-item:after { color: hsl(0, 7%, 95%); } #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { color: #7b90ff; background: rgb(12.15, 12.15, 12.15); } #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { color: #7b90ff; } #wpadminbar:not(.mobile) li:hover .ab-icon:before, #wpadminbar:not(.mobile) li:hover .ab-item:before, #wpadminbar:not(.mobile) li:hover .ab-item:after, #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { color: #7b90ff; } /* Admin Bar: submenu */ #wpadminbar .menupop .ab-sub-wrapper { background: rgb(12.15, 12.15, 12.15); } #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { background: rgb(47.85, 47.85, 47.85); } #wpadminbar .ab-submenu .ab-item, #wpadminbar .quicklinks .menupop ul li a, #wpadminbar .quicklinks .menupop.hover ul li a, #wpadminbar.nojs .quicklinks .menupop:hover ul li a { color: rgb(187.5, 187.5, 187.5); } #wpadminbar .quicklinks li .blavatar, #wpadminbar .menupop .menupop > .ab-item:before { color: hsl(0, 7%, 95%); } #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li #adminbarsearch.adminbar-focused:before { color: #7b90ff; } #wpadminbar .quicklinks li a:hover .blavatar, #wpadminbar .quicklinks li a:focus .blavatar, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, #wpadminbar .menupop .menupop > .ab-item:hover:before, #wpadminbar.mobile .quicklinks .hover .ab-icon:before, #wpadminbar.mobile .quicklinks .hover .ab-item:before { color: #7b90ff; } #wpadminbar.mobile .quicklinks .ab-icon:before, #wpadminbar.mobile .quicklinks .ab-item:before { color: hsl(0, 7%, 95%); } /* Admin Bar: search */ #wpadminbar #adminbarsearch:before { color: hsl(0, 7%, 95%); } #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { color: #fff; background: rgb(47.85, 47.85, 47.85); } /* Admin Bar: recovery mode */ #wpadminbar #wp-admin-bar-recovery-mode { color: #fff; background-color: #3858e9; } #wpadminbar #wp-admin-bar-recovery-mode .ab-item, #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { color: #fff; } #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { color: #fff; background-color: rgb(50.4, 79.2, 209.7); } /* Admin Bar: my account */ #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { border-color: rgb(47.85, 47.85, 47.85); background-color: rgb(47.85, 47.85, 47.85); } #wpadminbar #wp-admin-bar-user-info .display-name { color: #fff; } #wpadminbar #wp-admin-bar-user-info a:hover .display-name { color: #7b90ff; } #wpadminbar #wp-admin-bar-user-info .username { color: rgb(187.5, 187.5, 187.5); } /* Pointers */ .wp-pointer .wp-pointer-content h3 { background-color: #3858e9; border-color: rgb(33.0384615385, 68.7307692308, 230.4615384615); } .wp-pointer .wp-pointer-content h3:before { color: #3858e9; } .wp-pointer.wp-pointer-top .wp-pointer-arrow, .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { border-bottom-color: #3858e9; } /* Media */ .media-item .bar, .media-progress-bar div { background-color: #3858e9; } .details.attachment { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #3858e9; } .attachment.details .check { background-color: #3858e9; box-shadow: 0 0 0 1px #fff, 0 0 0 2px #3858e9; } .media-selection .attachment.selection.details .thumbnail { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #3858e9; } /* Themes */ .theme-browser .theme.active .theme-name, .theme-browser .theme.add-new-theme a:hover:after, .theme-browser .theme.add-new-theme a:focus:after { background: #3858e9; } .theme-browser .theme.add-new-theme a:hover span:after, .theme-browser .theme.add-new-theme a:focus span:after { color: #3858e9; } .theme-section.current, .theme-filter.current { border-bottom-color: #1e1e1e; } body.more-filters-opened .more-filters { color: #fff; background-color: #1e1e1e; } body.more-filters-opened .more-filters:before { color: #fff; } body.more-filters-opened .more-filters:hover, body.more-filters-opened .more-filters:focus { background-color: #3858e9; color: #fff; } body.more-filters-opened .more-filters:hover:before, body.more-filters-opened .more-filters:focus:before { color: #fff; } /* Widgets */ .widgets-chooser li.widgets-chooser-selected { background-color: #3858e9; color: #fff; } .widgets-chooser li.widgets-chooser-selected:before, .widgets-chooser li.widgets-chooser-selected:focus:before { color: #fff; } /* Nav Menus */ .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 1px rgb(101.9230769231, 126.5384615385, 238.0769230769), 0 0 2px 1px #3858e9; } /* Responsive Component */ div#wp-responsive-toggle a:before { color: hsl(0, 7%, 95%); } .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; background: #3858e9; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: rgb(12.15, 12.15, 12.15); } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: hsl(0, 7%, 95%); } /* TinyMCE */ .mce-container.mce-menu .mce-menu-item:hover, .mce-container.mce-menu .mce-menu-item.mce-selected, .mce-container.mce-menu .mce-menu-item:focus, .mce-container.mce-menu .mce-menu-item-normal.mce-active, .mce-container.mce-menu .mce-menu-item-preview.mce-active { background: #3858e9; } /* Customizer */ .wp-core-ui #customize-controls .control-section:hover > .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:hover, .wp-core-ui #customize-controls .control-section.open .accordion-section-title, .wp-core-ui #customize-controls .control-section .accordion-section-title:focus { color: #3858e9; border-left-color: #3858e9; } .wp-core-ui .customize-controls-close:focus, .wp-core-ui .customize-controls-close:hover, .wp-core-ui .customize-controls-preview-toggle:focus, .wp-core-ui .customize-controls-preview-toggle:hover { color: #3858e9; border-top-color: #3858e9; } .wp-core-ui .customize-panel-back:hover, .wp-core-ui .customize-panel-back:focus, .wp-core-ui .customize-section-back:hover, .wp-core-ui .customize-section-back:focus { color: #3858e9; border-left-color: #3858e9; } .wp-core-ui .customize-screen-options-toggle:hover, .wp-core-ui .customize-screen-options-toggle:active, .wp-core-ui .customize-screen-options-toggle:focus, .wp-core-ui .active-menu-screen-options .customize-screen-options-toggle, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, .wp-core-ui #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: #3858e9; } .wp-core-ui .customize-screen-options-toggle:focus:before, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-core-ui.wp-customizer button:focus .toggle-indicator:before, .wp-core-ui .menu-item-bar .item-delete:focus:before, .wp-core-ui #available-menu-items .item-add:focus:before, .wp-core-ui #customize-save-button-wrapper .save:focus, .wp-core-ui #publish-settings:focus { box-shadow: 0 0 0 1px rgb(101.9230769231, 126.5384615385, 238.0769230769), 0 0 2px 1px #3858e9; } .wp-core-ui #customize-controls .customize-info.open .customize-help-toggle, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:focus, .wp-core-ui #customize-controls .customize-info .customize-help-toggle:hover { color: #3858e9; } .wp-core-ui .control-panel-themes .customize-themes-section-title:focus, .wp-core-ui .control-panel-themes .customize-themes-section-title:hover { border-left-color: #3858e9; color: #3858e9; } .wp-core-ui .control-panel-themes .theme-section .customize-themes-section-title.selected:after { background: #3858e9; } .wp-core-ui .control-panel-themes .customize-themes-section-title.selected { color: #3858e9; } .wp-core-ui #customize-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-theme-controls .control-section .accordion-section-title:focus:after, .wp-core-ui #customize-outer-theme-controls .control-section:hover > .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:hover:after, .wp-core-ui #customize-outer-theme-controls .control-section.open .accordion-section-title:after, .wp-core-ui #customize-outer-theme-controls .control-section .accordion-section-title:focus:after { color: #3858e9; } .wp-core-ui .customize-control .attachment-media-view .button-add-media:focus { background-color: #fbfbfc; border-color: #3858e9; border-style: solid; box-shadow: 0 0 0 1px #3858e9; outline: 2px solid transparent; } .wp-core-ui .wp-full-overlay-footer .devices button:focus, .wp-core-ui .wp-full-overlay-footer .devices button.active:hover { border-bottom-color: #3858e9; } .wp-core-ui .wp-full-overlay-footer .devices button:hover:before, .wp-core-ui .wp-full-overlay-footer .devices button:focus:before { color: #3858e9; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus { color: #3858e9; } .wp-core-ui .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-core-ui .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { box-shadow: 0 0 0 1px rgb(101.9230769231, 126.5384615385, 238.0769230769), 0 0 2px 1px #3858e9; } .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .close:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .right:hover, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:focus, .wp-core-ui.wp-customizer .theme-overlay .theme-header .left:hover { border-bottom-color: #3858e9; color: #3858e9; }css/colors/modern/friends-gz.php000055500000000401152213653150012701 0ustar00label{margin:0!important}.background-position-control .button-group:first-child>label:first-child .button{border-radius:3px 0 0}.background-position-control .button-group:first-child>label:first-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:first-child>label:last-child .button{border-radius:0 3px 0 0}.background-position-control .button-group:first-child>label:last-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:last-child>label:first-child .button{border-radius:0 0 0 3px}.background-position-control .button-group:last-child>label:first-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:last-child>label:last-child .button{border-radius:0 0 3px}.background-position-control .button-group:last-child>label:last-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group+.button-group{margin-top:-1px}body.full-overlay-active{overflow:hidden;visibility:hidden}.wp-full-overlay{background:0 0;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;position:fixed;min-width:300px;max-width:600px;width:18%;height:100%;top:0;bottom:0;left:0;padding:0;margin:0;z-index:10;background:#f0f0f1;border-right:none}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-300px}@media screen and (min-width:1667px){.wp-full-overlay.expanded{margin-left:18%}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-18%}}@media screen and (min-width:3333px){.wp-full-overlay.expanded{margin-left:600px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-left:-600px}}.wp-full-overlay-sidebar:after{content:"";display:block;position:absolute;top:0;bottom:0;right:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;left:0;right:0;top:0;bottom:0;height:100%}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;left:0;right:0;height:45px;padding:0 15px;line-height:3.2;z-index:10;margin:0;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:3px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;left:0;right:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:left;width:45px;height:45px;background:#f0f0f1;border-right:1px solid #dcdcde;color:#3c434a;cursor:pointer;text-decoration:none;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:normal 22px/1 dashicons;content:"\f335";content:"\f335"/'';position:relative;top:7px;left:13px}.theme-install-overlay .previous-theme:before{font:normal 20px/1 dashicons;content:"\f341";content:"\f341"/'';position:relative;top:6px;left:14px}.theme-install-overlay .next-theme:before{font:normal 20px/1 dashicons;content:"\f345";content:"\f345"/'';position:relative;top:6px;left:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#c3c4c7;background:#f0f0f1;cursor:default;pointer-events:none}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{border-left:0;border-top:0;border-bottom:0}.theme-install-overlay .close-full-overlay:before,.theme-install-overlay .next-theme:before,.theme-install-overlay .previous-theme:before{top:2px;left:0}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:0;left:0;padding:9px 0 9px 10px;height:45px;color:#646970;outline:0;line-height:1;background-color:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#2271b1}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:1.6}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";content:"\f148"/'';background:#f0f0f1;font:normal 20px/1 dashicons;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar{padding:9px 10px}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:none}@media (prefers-reduced-motion:no-preference){.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-property:left,right,top,bottom,width,margin;transition-duration:.2s}}.wp-full-overlay{background:#1d2327}.wp-full-overlay-main{background-color:#f0f0f1}.expanded .wp-full-overlay-footer{position:fixed;bottom:0;left:0;min-width:299px;max-width:599px;width:18%;width:calc(18% - 1px);height:45px;border-top:1px solid #dcdcde;background:#f0f0f1}.wp-full-overlay-footer .devices-wrapper{float:right}.wp-full-overlay-footer .devices{position:relative;background:#f0f0f1;box-shadow:-20px 0 10px -5px #f0f0f1}.wp-full-overlay-footer .devices button{cursor:pointer;background:0 0;border:none;height:45px;padding:0 3px;margin:0 0 0 -4px;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0}.wp-full-overlay-footer .devices button:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:3px 0;padding:4px 8px;color:#646970}.wp-full-overlay-footer .devices button.active{border-bottom-color:#1d2327}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button.active:hover,.wp-full-overlay-footer .devices button:focus{border-bottom-color:#2271b1}.wp-full-overlay-footer .devices button.active:before{color:#1d2327}.wp-full-overlay-footer .devices button:focus:before,.wp-full-overlay-footer .devices button:hover:before{color:#2271b1}.wp-full-overlay-footer .devices .preview-desktop:before{content:"\f472";content:"\f472"/''}.wp-full-overlay-footer .devices .preview-tablet:before{content:"\f471";content:"\f471"/''}.wp-full-overlay-footer .devices .preview-mobile:before{content:"\f470";content:"\f470"/''}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.collapsed .wp-full-overlay-footer .devices button:before{display:none}.preview-mobile .wp-full-overlay-main{margin:auto 0 auto -160px;width:320px;height:480px;max-height:100%;max-width:100%;left:50%}.preview-tablet .wp-full-overlay-main{margin:auto 0 auto -360px;width:720px;height:1080px;max-height:100%;max-width:100%;left:50%}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container,#customize-controls .notice.notification-overlay{background:#f0f0f1;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;left:0;right:0;height:100%}#customize-container{display:none}#customize-container,.theme-install-overlay{visibility:visible}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:right;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:1.5;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin:15px 0;width:258px;border:1px solid #c3c4c7;position:relative;overflow:hidden}.install-theme-info .theme-screenshot>img{width:100%;height:auto;position:absolute;left:0;top:0}.install-theme-info .theme-screenshot:after{content:"";display:block;padding-top:66.66666666%}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0}.theme-details .theme-description{float:left;color:#646970;line-height:1.6;max-width:100%}.theme-install-overlay .wp-full-overlay-header .button{float:right;margin:7px 10px 0 0}.theme-install-overlay .wp-full-overlay-sidebar{background:#f0f0f1;border-right:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-main{position:absolute;z-index:0;background-color:#f0f0f1}.customize-loading #customize-container{background-color:#f0f0f1}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;z-index:-1;margin:-10px 0 0 -10px;transform:translateZ(0);background:transparent url(../images/spinner.gif) no-repeat center center;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready:before,.theme-install-overlay.iframe-ready .wp-full-overlay-main:before{background-image:none}@media print,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .button{font-size:13px}.theme-browser .theme .theme-actions .button{margin-bottom:0}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{padding-top:4px;padding-bottom:4px}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{width:100%;box-sizing:border-box}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{padding:30px 0 30px 30px;width:100%}}css/site-icon.min.css000064400000007542152213653150010535 0ustar00/*! This file is auto-generated */ .site-icon-section{--site-icon-removal:#b32d2e}.site-icon-preview{--site-icon-input-border:#8c8f94;--site-icon-preview-background:#fff;--site-icon-preview-browser-top:#dcdcde;--site-icon-preview-browser-bottom:#a7aaad;--site-icon-preview-browser-border:rgba(255, 255, 255, 0.2);--site-icon-address-bar-background:#f0f0f1;--site-icon-address-bar-close:#646970;--site-icon-address-bar-text:#3c434a;--site-icon-shadow-1:rgba(0, 0, 0, 0.1);--site-icon-shadow-2:rgba(0, 0, 0, 0.2);--site-icon-shadow-3:rgba(0, 0, 0, 0.5);direction:initial;display:flex;height:60px;padding:8px 0 0 8px;align-items:flex-start;position:relative;overflow:hidden;box-sizing:border-box;border:1px solid var(--site-icon-input-border);border-radius:4px;background-color:var(--site-icon-preview-background);width:275px}@media (prefers-color-scheme:dark){.site-icon-preview{--site-icon-preview-browser-top:#2c3338;--site-icon-preview-browser-bottom:#111;--site-icon-address-bar-background:#3c434a;--site-icon-address-bar-close:#f0f0f1;--site-icon-address-bar-text:#f0f0f1}}.site-icon-preview.settings{height:88px;padding:16px 0 0 16px;width:350px;margin:0 0 16px 0}.site-icon-preview.crop{width:258px;height:100%;display:grid;grid-template-columns:8px 1fr;grid-template-rows:64px 1fr;padding-left:0;row-gap:16px;direction:inherit}.site-icon-preview.hidden{display:none}.site-icon-preview .direction-wrap{grid-template-columns:44px 1fr;gap:8px;display:grid;direction:ltr;height:100%;width:100%}.site-icon-preview.settings .direction-wrap{grid-template-columns:58px 1fr;gap:16px}.site-icon-preview:after{--after-size:150%;aspect-ratio:1/1;content:"";display:block;position:absolute;top:0;left:0;width:var(--after-size);transform:translate(calc(var(--after-size) * -.125),calc(var(--after-size) * -.125));filter:blur(5px);opacity:.5;background:var(--site-icon-url)}.site-icon-preview .app-icon-preview{aspect-ratio:1/1;border-radius:10px;box-shadow:0 1px 5px 0 var(--site-icon-shadow-3);flex-shrink:0;width:100%;z-index:1}.site-icon-preview-browser{display:flex;padding:4px 4px 0 12px;align-items:flex-start;gap:16px;flex:1 0 0;z-index:1;border-top-left-radius:10px;border-top:1px solid var(--site-icon-preview-browser-border);border-left:1px solid var(--site-icon-preview-browser-border);background:linear-gradient(180deg,var(--site-icon-preview-browser-top) 0,var(--site-icon-preview-browser-bottom) 100%);box-shadow:0 10px 22px 0 var(--site-icon-shadow-2)}.site-icon-preview .browser-buttons{width:48px;height:40px;fill:var(--site-icon-input-border)}.site-icon-preview-tab{padding:8px;align-items:center;gap:8px;flex:1 0 0;border-radius:4px;background-color:var(--site-icon-address-bar-background);box-shadow:0 1px 3px 0 var(--site-icon-shadow-1);display:grid;grid-template-columns:24px auto 24px}.site-icon-preview-browser .browser-icon-preview{box-shadow:0 0 20px 0 var(--site-icon-shadow-1)}.site-icon-preview-tab>img,.site-icon-preview-tab>svg{width:24px;height:24px}.site-icon-preview-tab>svg{fill:var(--site-icon-address-bar-close)}.site-icon-preview-site-title{color:var(--site-icon-address-bar-text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:500}.site-icon-preview-crop-modal .image-preview-wrap.app-icon-preview{width:64px;height:64px;margin:0;grid-column:2}.site-icon-preview-crop-modal .site-icon-preview-browser{grid-column:2}.site-icon-preview-crop-modal .image-preview-wrap{overflow:hidden;aspect-ratio:1/1}.site-icon-preview-crop-modal .image-preview-wrap.browser{width:24px;height:24px}button.reset.remove-site-icon{color:var(--site-icon-removal);text-decoration:none;border-color:currentColor;box-shadow:none;background:0 0}button.reset.remove-site-icon:focus,button.reset.remove-site-icon:hover{background:var(--site-icon-removal);color:#fff;border-color:var(--site-icon-removal);box-shadow:0 0 0 1px var(--site-icon-removal)}.site-icon-action-buttons{display:flex;flex-wrap:wrap;gap:10px}css/edit-rtl.css000064400000113555152213653150007607 0ustar00/*! This file is auto-generated */ #poststuff { padding-top: 10px; min-width: 763px; } #poststuff #post-body { padding: 0; } #poststuff .postbox-container { width: 100%; } #poststuff #post-body.columns-2 { margin-left: 300px; } /*------------------------------------------------------------------------------ 11.0 - Write/Edit Post Screen ------------------------------------------------------------------------------*/ #show-comments { overflow: hidden; } #save-action .spinner, #show-comments a { float: right; } #show-comments .spinner { float: none; margin-top: 0; } #lost-connection-notice .spinner { visibility: visible; float: right; margin: 0 0 0 5px; } #titlediv { position: relative; } #titlediv label { cursor: text; } #titlediv div.inside { margin: 0; } #poststuff #titlewrap { border: 0; padding: 0; } #titlediv #title { padding: 3px 8px; font-size: 1.7em; line-height: 100%; height: 1.7em; width: 100%; outline: none; margin: 0 0 3px; background-color: #fff; } #titlediv #title-prompt-text { color: #646970; position: absolute; font-size: 1.7em; padding: 10px; pointer-events: none; } #titlewrap .skiplink { background: #fff; line-height: 2.30769231; /* 30px for 32px min-height */ min-height: 32px; left: 4px; } #titlewrap .skiplink:focus { clip: inherit; clip-path: inherit; top: 4px; width: auto; } input#link_description, input#link_url { width: 100%; } #pending { background: 100% none; border: 0 none; padding: 0; font-size: 11px; margin-top: -1px; } #edit-slug-box, #comment-link-box { line-height: 1.84615384; min-height: 25px; margin-top: 5px; padding: 0 10px; color: #646970; } #sample-permalink { display: inline-block; max-width: 100%; word-wrap: break-word; } #edit-slug-box .cancel { margin-left: 10px; padding: 0; } #comment-link-box { margin: 5px 0; padding: 0 5px; } #editable-post-name-full { display: none; } #editable-post-name { font-weight: 600; } #editable-post-name input { font-size: 13px; font-weight: 400; min-height: 32px; margin: 0; width: 16em; } .postarea h3 label { float: right; } body.post-new-php .submitbox .submitdelete { display: none; } .submitbox .submit a:hover { text-decoration: underline; } .submitbox .submit input { margin-bottom: 8px; margin-left: 4px; padding: 6px; } #post-status-select { margin-top: 3px; } body.post-type-wp_navigation div#minor-publishing, body.post-type-wp_navigation .inline-edit-status { display: none; } /* Post Screen */ /* Only highlight drop zones when dragging and only in the 2 columns layout. */ .is-dragging-metaboxes .metabox-holder .postbox-container .meta-box-sortables { border-radius: 8px; background: rgb(var(--wp-admin-theme-color--rgb), 0.04); /* * This min-height is meant to limit jumpiness while dragging. It's equivalent * to the minimum height of the sortable-placeholder which is given by the height * of a collapsed post box (36px + 1px top and bottom borders) + the placeholder * bottom margin (20px) + 2 additional pixels to compensate browsers rounding. */ min-height: 60px; margin-bottom: 20px; } .postbox { position: relative; min-width: 255px; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); background: #fff; } #trackback_url { width: 99%; } #normal-sortables .postbox .submit { background: transparent none; border: 0 none; float: left; padding: 0 12px; margin: 0; } .category-add input[type="text"], .category-add select { width: 100%; max-width: 260px; vertical-align: baseline; } #side-sortables .category-add input[type="text"], #side-sortables .category-add select { margin: 0 0 1em; } ul.category-tabs li, #side-sortables .add-menu-item-tabs li, .wp-tab-bar li { display: inline; line-height: 1.35; } .no-js .category-tabs li.hide-if-no-js { display: none; } .category-tabs a, #side-sortables .add-menu-item-tabs a, .wp-tab-bar a { text-decoration: none; } /* @todo: do these really need to be so specific? */ #side-sortables .category-tabs .tabs a, #side-sortables .add-menu-item-tabs .tabs a, .wp-tab-bar .wp-tab-active a, #post-body ul.category-tabs li.tabs a, #post-body ul.add-menu-item-tabs li.tabs a { color: #2c3338; } .category-tabs { margin: 8px 0 5px; } /* Back-compat for pre-4.4 */ #category-adder h4 { margin: 0; } .taxonomy-add-new { display: inline-block; margin: 10px 0; font-weight: 600; } #side-sortables .add-menu-item-tabs, .wp-tab-bar { margin-bottom: 3px; } #normal-sortables .postbox #replyrow .submit { float: none; margin: 0; padding: 5px 7px 10px; overflow: hidden; } #side-sortables .submitbox .submit input, #side-sortables .submitbox .submit .preview, #side-sortables .submitbox .submit a.preview:hover { border: 0 none; } /* @todo: make this a more generic class */ ul.category-tabs, ul.add-menu-item-tabs, ul.wp-tab-bar { margin-top: 12px; } ul.category-tabs li, ul.add-menu-item-tabs li { border: solid 1px transparent; position: relative; } ul.category-tabs li.tabs, ul.add-menu-item-tabs li.tabs, .wp-tab-active { border: 1px solid #dcdcde; border-bottom-color: #fff; background-color: #fff; } ul.category-tabs li, ul.add-menu-item-tabs li, ul.wp-tab-bar li { padding: 3px 5px 6px; } #set-post-thumbnail { display: inline-block; max-width: 100%; } #postimagediv .inside img { max-width: 100%; height: auto; vertical-align: top; background-image: linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 100% 0, 10px 10px; background-size: 20px 20px; } form#tags-filter { position: relative; } /* Global classes */ .wp-hidden-children .wp-hidden-child, .ui-tabs-hide { display: none; } #post-body .tagsdiv #newtag { margin-left: 0; flex: 1; min-width: 0; } #side-sortables input#post_password { width: 94% } #side-sortables .tagsdiv #newtag { flex: 1; min-width: 0; } #post-status-info { width: 100%; border-spacing: 0; border: 1px solid #c3c4c7; border-top: none; background-color: #f6f7f7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); z-index: 999; } #post-status-info td { font-size: 12px; } .autosave-info { padding: 2px 10px; text-align: left; } #editorcontent #post-status-info { border: none; } #content-resize-handle { background: transparent url(../images/resize.gif) no-repeat scroll left bottom; width: 12px; cursor: row-resize; } /*rtl:ignore*/ .rtl #content-resize-handle { background-image: url(../images/resize-rtl.gif); background-position: left bottom; } .wp-editor-expand #content-resize-handle { display: none; } #postdivrich #content { resize: none; } #wp-word-count { padding: 2px 10px; } #wp-content-editor-container { position: relative; } .wp-editor-expand #wp-content-editor-tools { z-index: 1000; border-bottom: 1px solid #c3c4c7; } .wp-editor-expand #wp-content-editor-container { box-shadow: none; margin-top: -1px; } .wp-editor-expand #wp-content-editor-container { border-bottom: 0 none; } .wp-editor-expand div.mce-statusbar { z-index: 1; } .wp-editor-expand #post-status-info { border-top: 1px solid #c3c4c7; } .wp-editor-expand div.mce-toolbar-grp { z-index: 999; } /* TinyMCE native fullscreen mode override */ .mce-fullscreen #wp-content-wrap .mce-menubar, .mce-fullscreen #wp-content-wrap .mce-toolbar-grp, .mce-fullscreen #wp-content-wrap .mce-edit-area, .mce-fullscreen #wp-content-wrap .mce-statusbar { position: static !important; width: auto !important; padding: 0 !important; } .mce-fullscreen #wp-content-wrap .mce-statusbar { visibility: visible !important; } .mce-fullscreen #wp-content-wrap .mce-tinymce .mce-wp-dfw { display: none; } .post-php.mce-fullscreen #wpadminbar, .mce-fullscreen #wp-content-wrap .mce-wp-dfw { display: none; } /* End TinyMCE native fullscreen mode override */ #wp-content-editor-tools { background-color: #f0f0f1; padding-top: 20px; } #poststuff #post-body.columns-2 #side-sortables { width: 280px; } #timestampdiv select { vertical-align: top; font-size: 12px; line-height: 2.33333333; /* 28px */ } #aa, #jj, #hh, #mn { padding: 6px 1px; font-size: 12px; line-height: 1.16666666; /* 14px */ } #jj, #hh, #mn { width: 2em; } #aa { width: 3.4em; } .curtime #timestamp { padding: 2px 0 1px; display: inline !important; height: auto !important; } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-uploadedby:before, #post-body .misc-pub-uploadedto:before, #post-body .misc-pub-revisions:before, #post-body .misc-pub-response-to:before, #post-body .misc-pub-comment-status:before { color: #8c8f94; } #post-body .misc-pub-post-status:before, #post-body #visibility:before, .curtime #timestamp:before, #post-body .misc-pub-uploadedby:before, #post-body .misc-pub-uploadedto:before, #post-body .misc-pub-revisions:before, #post-body .misc-pub-response-to:before, #post-body .misc-pub-comment-status:before { font: normal 20px/1 dashicons; display: inline-block; margin-right: -1px; padding-left: 3px; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #post-body .misc-pub-post-status:before, #post-body .misc-pub-comment-status:before { content: "\f173"; content: "\f173" / ''; } #post-body #visibility:before { content: "\f177"; content: "\f177" / ''; } .curtime #timestamp:before { content: "\f145"; content: "\f145" / ''; position: relative; top: -1px; } #post-body .misc-pub-uploadedby:before { content: "\f110"; content: "\f110" / ''; position: relative; top: -1px; } #post-body .misc-pub-uploadedto:before { content: "\f318"; content: "\f318" / ''; position: relative; top: -1px; } #post-body .misc-pub-revisions:before { content: "\f321"; content: "\f321" / ''; } #post-body .misc-pub-response-to:before { content: "\f101"; content: "\f101" / ''; } #timestampdiv { padding-top: 5px; line-height: 1.76923076; } #timestampdiv p { margin: 8px 0 6px; } #timestampdiv input { text-align: center; } .notification-dialog { position: fixed; top: 30%; max-height: 70%; right: 50%; width: 450px; margin-right: -225px; background: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); line-height: 1.5; z-index: 1000005; overflow-y: auto; } .notification-dialog-background { position: fixed; top: 0; right: 0; left: 0; bottom: 0; background: #000; opacity: 0.7; filter: alpha(opacity=70); z-index: 1000000; } #post-lock-dialog .post-locked-message, #post-lock-dialog .post-taken-over { margin: 25px; } #post-lock-dialog .post-locked-message a.button, #file-editor-warning .button { margin-left: 10px; } #post-lock-dialog .post-locked-avatar { float: right; margin: 0 0 20px 20px; } #post-lock-dialog .wp-tab-first { outline: 0; } #post-lock-dialog .locked-saving img { float: right; margin-left: 3px; } #post-lock-dialog.saving .locked-saving, #post-lock-dialog.saved .locked-saved { display: inline; } #excerpt { display: block; margin: 12px 0 0; height: 4em; width: 100%; } .tagchecklist { margin-right: 14px; font-size: 12px; overflow: auto; } .tagchecklist br { display: none; } .tagchecklist strong { margin-right: -8px; position: absolute; } .tagchecklist > li { float: right; margin-left: 25px; font-size: 13px; line-height: 1.8; cursor: default; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .tagchecklist .ntdelbutton { position: absolute; width: 24px; height: 24px; border: none; margin: 0 -19px 0 0; padding: 0; background: none; cursor: pointer; text-indent: 0; } #poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff h2 { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; } #poststuff .stuffbox h2 { padding: 8px 10px; } #poststuff .stuffbox > h2 { border-bottom: 1px solid #f0f0f1; } #poststuff .inside { margin: 6px 0 0; } .link-php #poststuff .inside, .link-add-php #poststuff .inside { margin-top: 12px; } #poststuff .stuffbox .inside { margin: 0; } #poststuff .inside #parent_id, #poststuff .inside #page_template { max-width: 100%; } .post-attributes-label-wrapper { margin-bottom: 0.5em; } .post-attributes-label { vertical-align: baseline; font-weight: 600; } #post-visibility-select, #comment-status-radio { line-height: 1.5; margin-top: 3px; } #linksubmitdiv .inside, /* Old Link Manager back-compat. */ #poststuff #submitdiv .inside { margin: 0; padding: 0; } #post-body-content, .edit-form-section { margin-bottom: 20px; } .wp_attachment_details .attachment-content-description { margin-top: 0.5385em; display: inline-block; min-height: 1.6923em; } /** * Privacy Settings section * * Note: This section includes selectors from * Site Health where duplicate styling is used. */ /* General */ .privacy-settings #wpcontent, .privacy-settings.auto-fold #wpcontent, .site-health #wpcontent, .site-health.auto-fold #wpcontent { padding-right: 0; } /* Better position for the WordPress admin notices. */ .privacy-settings .notice, .site-health .notice { margin: 25px 22px 15px 20px; } .privacy-settings .notice ~ .notice, .site-health .notice ~ .notice { margin-top: 5px; } /* Emulates .wrap h1 styling */ .privacy-settings-header h1, .health-check-header h1 { display: inline-block; font-weight: 600; margin: 0 0.8rem 1rem; font-size: 23px; padding: 9px 0 4px; line-height: 1.3; } /* Header */ .privacy-settings-header, .health-check-header { text-align: center; margin: 0 0 1rem; background: #fff; border-bottom: 1px solid #dcdcde; } .privacy-settings-title-section, .health-check-title-section { display: flex; align-items: center; justify-content: center; clear: both; padding-top: 8px; } .privacy-settings-tabs-wrapper { /* IE 11 */ display: -ms-inline-grid; -ms-grid-columns: 1fr 1fr; vertical-align: top; /* modern browsers */ display: inline-grid; grid-template-columns: 1fr 1fr; } .privacy-settings-tab { display: block; /* IE 11 */ text-decoration: none; color: inherit; padding: 0.5rem 1rem 1rem; margin: 0 1rem; transition: box-shadow 0.5s ease-in-out; } .privacy-settings-tab:nth-child(1), .health-check-tab:nth-child(1) { -ms-grid-column: 1; /* IE 11 */ } .privacy-settings-tab:nth-child(2), .health-check-tab:nth-child(2) { -ms-grid-column: 2; /* IE 11 */ } .privacy-settings-tab:focus, .health-check-tab:focus { color: #1d2327; outline: 1px solid #787c82; box-shadow: none; } .privacy-settings-tab.active, .health-check-tab.active { box-shadow: inset 0 -3px var(--wp-admin-theme-color); font-weight: 600; } /* Body */ .privacy-settings-body, .health-check-body { max-width: 800px; margin: 0 auto; } .tools-privacy-policy-page th { min-width: 230px; } .hr-separator { margin-top: 20px; margin-bottom: 15px; } /* Accordions */ .privacy-settings-accordion, .health-check-accordion { border: 1px solid #c3c4c7; } .privacy-settings-accordion-heading, .health-check-accordion-heading { margin: 0; border-top: 1px solid #c3c4c7; font-size: inherit; line-height: inherit; font-weight: 600; color: inherit; } .privacy-settings-accordion-heading:first-child, .health-check-accordion-heading:first-child { border-top: none; } .privacy-settings-accordion-trigger, .health-check-accordion-trigger { background: #fff; border: 0; color: #2c3338; cursor: pointer; display: flex; font-weight: 400; margin: 0; padding: 1em 1.5em 1em 3.5em; min-height: 46px; position: relative; text-align: right; width: 100%; align-items: center; justify-content: space-between; -webkit-user-select: auto; user-select: auto; } .privacy-settings-accordion-trigger:hover, .privacy-settings-accordion-trigger:active, .health-check-accordion-trigger:hover, .health-check-accordion-trigger:active { background: #f6f7f7; } .privacy-settings-accordion-trigger:focus, .health-check-accordion-trigger:focus { color: #1d2327; border: none; box-shadow: none; outline-offset: -1px; outline: 2px solid var(--wp-admin-theme-color); background-color: #f6f7f7; } .privacy-settings-accordion-trigger .title, .health-check-accordion-trigger .title { pointer-events: none; font-weight: 600; flex-grow: 1; } .privacy-settings-accordion-trigger .icon, .privacy-settings-view-read .icon, .health-check-accordion-trigger .icon, .site-health-view-passed .icon { border: solid #50575e; border-width: 0 0 2px 2px; height: 0.5rem; pointer-events: none; position: absolute; left: 1.5em; top: 50%; transform: translateY(-70%) rotate(-45deg); width: 0.5rem; } .privacy-settings-accordion-trigger .badge, .health-check-accordion-trigger .badge { padding: 0.1rem 0.5rem 0.15rem; color: #2c3338; font-weight: 600; } .privacy-settings-accordion-trigger .badge { margin-right: 0.5rem; } .privacy-settings-accordion-trigger .badge.blue, .health-check-accordion-trigger .badge.blue { border: 1px solid var(--wp-admin-theme-color); } .privacy-settings-accordion-trigger .badge.orange, .health-check-accordion-trigger .badge.orange { border: 1px solid #dba617; } .privacy-settings-accordion-trigger .badge.red, .health-check-accordion-trigger .badge.red { border: 1px solid #e65054; } .privacy-settings-accordion-trigger .badge.green, .health-check-accordion-trigger .badge.green { border: 1px solid #00ba37; } .privacy-settings-accordion-trigger .badge.purple, .health-check-accordion-trigger .badge.purple { border: 1px solid #2271b1; } .privacy-settings-accordion-trigger .badge.gray, .health-check-accordion-trigger .badge.gray { border: 1px solid #c3c4c7; } .privacy-settings-accordion-trigger[aria-expanded="true"] .icon, .privacy-settings-view-passed[aria-expanded="true"] .icon, .health-check-accordion-trigger[aria-expanded="true"] .icon, .site-health-view-passed[aria-expanded="true"] .icon { transform: translateY(-30%) rotate(135deg) } .privacy-settings-accordion-panel, .health-check-accordion-panel { margin: 0; padding: 1em 1.5em; background: #fff; } .privacy-settings-accordion-panel[hidden], .health-check-accordion-panel[hidden] { display: none; } .privacy-settings-accordion-panel a .dashicons, .health-check-accordion-panel a .dashicons { text-decoration: none; } .privacy-settings-accordion-actions { justify-content: right; display: flex; align-items: center; flex-wrap: wrap; gap: 1em; } .privacy-settings-accordion-actions .success { display: none; color: #007017; } .privacy-settings-accordion-actions .success.visible { display: inline-block; } /* Suggested text for privacy policy */ .privacy-settings-accordion-panel.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat, see #49282 */ .privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-policy-tutorial, .privacy-settings-accordion-panel.hide-privacy-policy-tutorial .privacy-text-copy { display: none; } .privacy-settings-accordion-panel strong.wp-policy-help, /* For back-compat, see #49282 */ .privacy-settings-accordion-panel strong.privacy-policy-tutorial { display: block; margin: 0 0 1em; } .privacy-text-copy span { pointer-events: none; } .privacy-settings-accordion-panel .wp-suggested-text > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p), .privacy-settings-accordion-panel .wp-suggested-text div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p), .privacy-settings-accordion-panel > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p), .privacy-settings-accordion-panel div > *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(div):not(.privacy-policy-tutorial):not(.wp-policy-help):not(.privacy-text-copy):not(span.success):not(.notice p) { margin: 0; padding: 1em; border-right: 2px solid #787c82; } /* Media queries */ @media screen and (max-width: 782px) { .privacy-settings-body, .health-check-body { margin: 0 12px; width: auto; } .privacy-settings .notice, .site-health .notice { margin: 5px 10px 15px; } .privacy-settings .update-nag, .site-health .update-nag { margin-left: 10px; margin-right: 10px; } input#create-page { margin-top: 10px; } .wp-core-ui button.privacy-text-copy { white-space: normal; line-height: 1.8; } #edit-slug-box { padding: 0; } #editable-post-name input { min-height: 40px; } } @media only screen and (max-width: 1004px) { .privacy-settings-body, .health-check-body { margin: 0 22px; width: auto; } } /** * End Privacy Settings section */ /*------------------------------------------------------------------------------ 11.1 - Custom Fields ------------------------------------------------------------------------------*/ #postcustomstuff thead th { padding: 5px 8px 8px; background-color: #f0f0f1; } #postcustom #postcustomstuff .submit { border: 0 none; float: none; padding: 0 8px 8px; } #postcustom #postcustomstuff .add-custom-field { padding: 12px 8px 8px; } #side-sortables #postcustom #postcustomstuff .submit { margin: 0; padding: 0; } #side-sortables #postcustom #postcustomstuff #the-list textarea { height: 85px; } #side-sortables #postcustom #postcustomstuff td.left input, #side-sortables #postcustom #postcustomstuff td.left select, #side-sortables #postcustomstuff #newmetaleft a { margin: 3px 3px 0; } #postcustomstuff table { margin: 0; width: 100%; border: 1px solid #dcdcde; border-spacing: 0; background-color: #f6f7f7; } #postcustomstuff tr { vertical-align: top; } #postcustomstuff table input, #postcustomstuff table select, #postcustomstuff table textarea { width: 96%; margin: 8px; } #side-sortables #postcustomstuff table input, #side-sortables #postcustomstuff table select, #side-sortables #postcustomstuff table textarea { margin: 3px; } #postcustomstuff th.left, #postcustomstuff td.left { width: 38%; } #postcustomstuff .submit input { margin: 0; width: auto; } #postcustomstuff #newmetaleft a, #postcustomstuff #newmeta-button { display: inline-block; margin: 0 8px 8px; text-decoration: none; } .no-js #postcustomstuff #enternew { display: none; } #post-body-content .compat-attachment-fields { margin-bottom: 20px; } .compat-attachment-fields th { padding-top: 5px; padding-left: 10px; } /*------------------------------------------------------------------------------ 11.3 - Featured Images ------------------------------------------------------------------------------*/ #select-featured-image { padding: 4px 0; overflow: hidden; } #select-featured-image img { max-width: 100%; height: auto; margin-bottom: 10px; } #select-featured-image a { float: right; clear: both; } #select-featured-image .remove { display: none; margin-top: 10px; } .js #select-featured-image.has-featured-image .remove { display: inline-block; } .no-js #select-featured-image .choose { display: none; } /*------------------------------------------------------------------------------ 11.4 - Post formats ------------------------------------------------------------------------------*/ .post-format-icon::before { display: inline-block; vertical-align: middle; height: 20px; width: 20px; margin-top: -4px; margin-left: 7px; color: #dcdcde; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a.post-format-icon:hover:before { color: #135e96; } #post-formats-select { line-height: 2; } #post-formats-select .post-format-icon::before { top: 5px; } input.post-format { margin-top: 1px; } label.post-format-icon { margin-right: 0; padding: 2px 0; } .post-format-icon.post-format-standard::before { content: "\f109"; content: "\f109" / ''; } .post-format-icon.post-format-image::before { content: "\f128"; content: "\f128" / ''; } .post-format-icon.post-format-gallery::before { content: "\f161"; content: "\f161" / ''; } .post-format-icon.post-format-audio::before { content: "\f127"; content: "\f127" / ''; } .post-format-icon.post-format-video::before { content: "\f126"; content: "\f126" / ''; } .post-format-icon.post-format-chat::before { content: "\f125"; content: "\f125" / ''; } .post-format-icon.post-format-status::before { content: "\f130"; content: "\f130" / ''; } .post-format-icon.post-format-aside::before { content: "\f123"; content: "\f123" / ''; } .post-format-icon.post-format-quote::before { content: "\f122"; content: "\f122" / ''; } .post-format-icon.post-format-link::before { content: "\f103"; content: "\f103" / ''; } /*------------------------------------------------------------------------------ 12.0 - Categories ------------------------------------------------------------------------------*/ .category-adder { margin-right: 120px; padding: 4px 0; } .category-adder h4 { margin: 0 0 8px; } #side-sortables .category-adder { margin: 0; } .wp-tab-panel, .categorydiv div.tabs-panel, .customlinkdiv div.tabs-panel, .posttypediv div.tabs-panel, .taxonomydiv div.tabs-panel { min-height: 42px; max-height: 200px; overflow: auto; padding: 0 0.9em; border: solid 1px #dcdcde; background-color: #fff; } div.tabs-panel-active { display: block; } div.tabs-panel-inactive { display: none; } div.tabs-panel-active:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .options-discussion-php .indent-children ul, #front-page-warning, #front-static-pages ul, ul.export-filters, .inline-editor ul.cat-checklist ul, .categorydiv ul.categorychecklist ul, .customlinkdiv ul.categorychecklist ul, .posttypediv ul.categorychecklist ul, .taxonomydiv ul.categorychecklist ul { margin-right: 18px; } ul.categorychecklist li { margin: 0; padding: 0; line-height: 1.69230769; word-wrap: break-word; } .categorydiv .tabs-panel, .customlinkdiv .tabs-panel, .posttypediv .tabs-panel, .taxonomydiv .tabs-panel { border-width: 3px; border-style: solid; } .form-wrap label { display: block; padding: 2px 0; } .form-field input[type="text"], .form-field input[type="password"], .form-field input[type="email"], .form-field input[type="number"], .form-field input[type="search"], .form-field input[type="tel"], .form-field input[type="url"], .form-field textarea { border-style: solid; border-width: 1px; width: 95%; } .form-field select, .form-field p { max-width: 95%; } p.description, .form-wrap p { margin: 2px 0 5px; color: #646970; } p.help, p.description, span.description, .form-wrap p { font-size: 13px; } p.description code { font-style: normal; } p.description code, .form-wrap p code { color: #50575e; } .form-wrap .form-field { margin: 1em 0; padding: 0; } .col-wrap h2 { margin: 12px 0; font-size: 1.1em; } .col-wrap p.submit { margin-top: -10px; } .edit-term-notes { margin-top: 2em; } /*------------------------------------------------------------------------------ 13.0 - Tags ------------------------------------------------------------------------------*/ #poststuff .tagsdiv .ajaxtag { margin-top: 1em; display: flex; gap: 8px; align-items: center; } #poststuff .tagsdiv .howto { margin: 1em 0 6px; } .ajaxtag .newtag { position: relative; } .tagsdiv .newtag { flex: 1; min-width: 0; } .tagsdiv .the-tags { display: block; height: 60px; margin: 0 auto; overflow: auto; width: 260px; } #post-body-content .tagsdiv .the-tags { margin: 0 5px; } p.popular-tags { border: none; line-height: 2em; padding: 8px 12px 12px; text-align: justify; } p.popular-tags a { padding: 0 3px; } .tagcloud { width: 97%; margin: 0 0 40px; text-align: justify; } .tagcloud h2 { margin: 2px 0 12px; } #poststuff .inside .the-tagcloud { margin: 5px 0 10px; padding: 8px; border: 1px solid #dcdcde; line-height: 1.2; word-spacing: 3px; } .the-tagcloud ul { margin: 0; } .the-tagcloud ul li { display: inline-block; } /* Back-compat styles from deprecated jQuery.suggest, see ticket #40260. */ .ac_results { display: none; margin: -1px 0 0; padding: 0; list-style: none; position: absolute; z-index: 10000; border: 1px solid #4f94d4; background-color: #fff; } .wp-customizer .ac_results { z-index: 500000; } .ac_results li { margin: 0; padding: 5px 10px; white-space: nowrap; text-align: right; } .ac_results .ac_over, .ac_over .ac_match { background-color: #2271b1; color: #fff; cursor: pointer; } .ac_match { text-decoration: underline; } #addtag .spinner { float: none; vertical-align: top; } #edittag { max-width: 800px; } .edit-tag-actions { display: flex; align-items: center; gap: 8px; margin-top: 20px; } /* Comments */ .comment-php .wp-editor-area { height: 200px; } .comment-ays th, .comment-ays td { padding: 10px 15px; } .comment-ays .comment-content ul { list-style: initial; margin-right: 2em; } .comment-ays .comment-content a[href]:after { content: "(" attr( href ) ")"; display: inline-block; padding: 0 4px; color: #646970; font-size: 13px; word-break: break-all; } .comment-ays .comment-content p.edit-comment { margin-top: 10px; } .comment-ays .comment-content p.edit-comment a[href]:after { content: ""; padding: 0; } .comment-ays-submit .button-cancel { margin-right: 1em; } .trash-undo-inside, .spam-undo-inside { margin: 1px 0 1px 8px; line-height: 1.23076923; } .spam-undo-inside .avatar, .trash-undo-inside .avatar { height: 20px; width: 20px; margin-left: 8px; vertical-align: middle; } .stuffbox .editcomment { clear: none; margin-top: 0; } #namediv.stuffbox .editcomment input { width: 100%; } #namediv.stuffbox .editcomment.form-table td { padding: 10px; } #comment-status-radio p { margin: 3px 0 5px; } #comment-status-radio input { margin: 2px 0 5px 3px; vertical-align: middle; } #comment-status-radio label { padding: 5px 0; } /* links tables */ table.links-table { width: 100%; border-spacing: 0; } .links-table th { font-weight: 400; text-align: right; vertical-align: top; min-width: 80px; width: 20%; word-wrap: break-word; } .links-table th, .links-table td { padding: 5px 0; } .links-table td label { margin-left: 8px; } .links-table td input[type="text"], .links-table td textarea { width: 100%; } .links-table #link_rel { max-width: 280px; } /* DFW 2 -------------------------------------------------------------- */ #qt_content_dfw { display: none; } .wp-editor-expand #qt_content_dfw { display: inline-block; } .focus-on .wrap > h1, .focus-on .page-title-action, .focus-on #wpfooter, .focus-on .postbox-container > *, .focus-on div.updated, .focus-on div.error, .focus-on div.notice, .focus-on .update-nag, .focus-on #wp-toolbar, .focus-on #screen-meta-links, .focus-on #screen-meta { opacity: 0; transition-duration: 0.6s; transition-property: opacity; transition-timing-function: ease-in-out; } .focus-on #wp-toolbar { opacity: 0.3; } .focus-off .wrap > h1, .focus-off .page-title-action, .focus-off #wpfooter, .focus-off .postbox-container > *, .focus-off div.updated, .focus-off div.error, .focus-off div.notice, .focus-off .update-nag, .focus-off #wp-toolbar, .focus-off #screen-meta-links, .focus-off #screen-meta { opacity: 1; transition-duration: 0.2s; transition-property: opacity; transition-timing-function: ease-in-out; } .focus-off #wp-toolbar { -webkit-transform: translate(0, 0); } .focus-on #adminmenuback, .focus-on #adminmenuwrap { transition-duration: 0.6s; transition-property: transform; transition-timing-function: ease-in-out; } .focus-on #adminmenuback, .focus-on #adminmenuwrap { transform: translateX( 100% ); } .focus-off #adminmenuback, .focus-off #adminmenuwrap { transform: translateX( 0 ); transition-duration: 0.2s; transition-property: transform; transition-timing-function: ease-in-out; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { #content-resize-handle, #post-body .wp_themeSkin .mceStatusbar a.mceResize { background: transparent url(../images/resize-2x.gif) no-repeat scroll left bottom; background-size: 11px 11px; } /*rtl:ignore*/ .rtl #content-resize-handle, .rtl #post-body .wp_themeSkin .mceStatusbar a.mceResize { background-image: url(../images/resize-rtl-2x.gif); background-position: left bottom; } } /* * The edit attachment screen auto-switches to one column layout when the * viewport is smaller than 1200 pixels. */ @media only screen and (max-width: 1200px) { .post-type-attachment #poststuff { min-width: 0; } .post-type-attachment #wpbody-content #poststuff #post-body { margin: 0; } .post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1 { margin-left: 0; width: 100%; } .post-type-attachment #poststuff #postbox-container-1 .empty-container, .post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty { outline: none; height: 0; min-height: 0; } .post-type-attachment #poststuff #post-body.columns-2 #side-sortables { min-height: 0; width: auto; } .is-dragging-metaboxes.post-type-attachment #post-body .meta-box-sortables { border: none; background: transparent; min-height: 0; margin-bottom: 0; } /* hide the radio buttons for column prefs */ .post-type-attachment .screen-layout, .post-type-attachment .columns-prefs { display: none; } } /* one column on the post write/edit screen */ @media only screen and (max-width: 850px) { #poststuff { min-width: 0; } #wpbody-content #poststuff #post-body { margin: 0; } #wpbody-content #post-body.columns-2 #postbox-container-1 { margin-left: 0; width: 100%; } #poststuff #postbox-container-1 .empty-container, #poststuff #postbox-container-1 #side-sortables:empty { height: 0; min-height: 0; } #poststuff #post-body.columns-2 #side-sortables { min-height: 0; width: auto; } /* Increase min-height while dragging for the #side-sortables and any potential sortables area with custom ID. */ .is-dragging-metaboxes #poststuff #postbox-container-1 .empty-container, .is-dragging-metaboxes #poststuff #postbox-container-1 #side-sortables:empty, .is-dragging-metaboxes #poststuff #post-body.columns-2 #side-sortables, .is-dragging-metaboxes #poststuff #post-body.columns-2 .meta-box-sortables { height: auto; min-height: 60px; } /* hide the radio buttons for column prefs */ .screen-layout, .columns-prefs { display: none; } } @media screen and (max-width: 782px) { .wp-core-ui .edit-tag-actions .button-primary { margin-bottom: 0; } #post-body-content { min-width: 0; } #titlediv #title-prompt-text { padding: 10px; } #poststuff .stuffbox .inside { padding: 0 0 4px 2px; } #poststuff h3.hndle, /* Back-compat for pre-4.4 */ #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ #poststuff h2 { padding: 12px; } #namediv.stuffbox .editcomment.form-table td { padding: 5px 10px; } .post-format-options { padding-left: 0; } .post-format-options a { margin-left: 5px; margin-bottom: 5px; min-width: 52px; } .post-format-options .post-format-title { font-size: 11px; } .post-format-options a div { height: 28px; width: 28px; } .post-format-options a div:before { font-size: 26px !important; } /* Publish Metabox Options */ #post-visibility-select { line-height: 280%; } .wp-core-ui .save-post-visibility, .wp-core-ui .save-timestamp { vertical-align: middle; margin-left: 15px; } .timestamp-wrap select#mm { display: block; width: 100%; margin-bottom: 10px; } .timestamp-wrap #jj, .timestamp-wrap #aa, .timestamp-wrap #hh, .timestamp-wrap #mn { padding: 12px 3px; font-size: 14px; margin-bottom: 5px; width: auto; text-align: center; } /* Categories Metabox */ ul.category-tabs { margin: 30px 0 15px; } ul.category-tabs li.tabs { padding: 15px; } ul.categorychecklist li { margin-bottom: 15px; } ul.categorychecklist ul { margin-top: 15px; } .category-add input[type=text], .category-add select { max-width: none; margin-bottom: 15px; } /* Tags Metabox */ .tagsdiv .newtag { flex: 1; min-width: 0; height: auto; margin-bottom: 0; } .tagchecklist { margin: 25px 10px; } .tagchecklist > li { font-size: 16px; line-height: 1.4; } /* Discussion */ #commentstatusdiv p { line-height: 2.8; } /* TinyMCE Adjustments */ .mceToolbar * { white-space: normal !important; } .mceToolbar tr, .mceToolbar td { float: right !important; } .wp_themeSkin a.mceButton { width: 30px; height: 30px; } .wp_themeSkin .mceButton .mceIcon { margin-top: 5px; margin-right: 5px; } .wp_themeSkin .mceSplitButton { margin-top: 1px; } .wp_themeSkin .mceSplitButton td a.mceAction { padding: 6px 6px 6px 3px; } .wp_themeSkin .mceSplitButton td a.mceOpen, .wp_themeSkin .mceSplitButtonEnabled:hover td a.mceOpen { padding-top: 6px; padding-bottom: 6px; background-position: 1px 6px; } .wp_themeSkin table.mceListBox { margin: 5px; } div.quicktags-toolbar input { padding: 10px 20px; } button.wp-switch-editor { font-size: 16px; line-height: 1; margin: 7px 7px 0 0; padding: 8px 12px; } #wp-content-media-buttons a { font-size: 14px; padding: 6px 10px; } .wp-media-buttons span.wp-media-buttons-icon, .wp-media-buttons span.jetpack-contact-form-icon { width: 22px !important; margin-right: -2px !important; } .wp-media-buttons .add_media span.wp-media-buttons-icon:before, .wp-media-buttons #insert-jetpack-contact-form span.jetpack-contact-form-icon:before { font-size: 20px !important; } #content_wp_fullscreen { display: none; } .misc-pub-section { padding: 12px 10px; } #delete-action, #publishing-action { line-height: 3.61538461; } #publishing-action .spinner { float: none; margin-top: -2px; /* Half of the Publish button's bottom margin. */ } /* Moderate Comment */ .comment-ays th, .comment-ays td { padding-bottom: 0; } .comment-ays td { padding-top: 6px; } /* Links */ .links-table #link_rel { max-width: none; } .links-table th, .links-table td { padding: 10px 0; } .edit-term-notes { display: none; } .privacy-text-box { width: auto; } .privacy-text-box-toc { float: none; width: auto; height: 100%; display: flex; flex-direction: column; } .privacy-text-section .return-to-top { margin: 2em 0 0; } } css/color-picker-rtl.css000064400000007565152213653150011256 0ustar00/*! This file is auto-generated */ /* rtl:ignore */ .wp-color-picker { width: 80px; direction: ltr; } .wp-picker-container .hidden { display: none; } /* Needs higher specificity to override `.wp-core-ui .button`. */ .wp-picker-container .wp-color-result.button { min-height: 32px; margin: 0 0 6px 6px; padding: 0 30px 0 0; font-size: 11px; } .wp-color-result-text { background: #f6f7f7; border-radius: 2px 0 0 2px; border-right: 1px solid #c3c4c7; color: #50575e; display: block; line-height: 2.72727273; /* 30px */ padding: 0 6px; text-align: center; } .wp-color-result:hover, .wp-color-result:focus { background: #f6f7f7; border-color: #8c8f94; color: #1d2327; } .wp-color-result:hover:after, .wp-color-result:focus:after { color: #1d2327; border-color: #a7aaad; border-right: 1px solid #8c8f94; } .wp-picker-container { display: inline-block; } .wp-color-result:focus { border-color: #4f94d4; box-shadow: 0 0 3px rgba(34, 113, 177, 0.8); } .wp-color-result:active { /* See Trac ticket #39662 */ transform: none !important; } .wp-picker-open + .wp-picker-input-wrap { display: inline-block; vertical-align: top; } .wp-picker-input-wrap label { display: inline-block; vertical-align: top; } /* For the old `custom-background` page, to override the inline-block and margins from `.form-table td fieldset label`. */ .form-table .wp-picker-input-wrap label { margin: 0 !important; } .wp-picker-input-wrap .button.wp-picker-default, .wp-picker-input-wrap .button.wp-picker-clear, .wp-customizer .wp-picker-input-wrap .button.wp-picker-default, .wp-customizer .wp-picker-input-wrap .button.wp-picker-clear { margin-right: 6px; padding: 0 8px; line-height: 2.72727273; /* 30px */ min-height: 32px; } .wp-picker-container .iris-square-slider .ui-slider-handle:focus { background-color: #50575e } .wp-picker-container .iris-picker { border-radius: 0; border-color: #dcdcde; margin-top: 6px; } .wp-picker-container input[type="text"].wp-color-picker { width: 4rem; font-size: 12px; font-family: monospace; margin: 0; padding: 0 5px; vertical-align: top; min-height: 32px; } .wp-color-picker::-webkit-input-placeholder { color: #646970; } .wp-color-picker::-moz-placeholder { color: #646970; } .wp-picker-container input[type="text"].iris-error { background-color: #fcf0f1; border-color: #d63638; color: #000; } .iris-picker .ui-square-handle:focus, .iris-picker .iris-strip .ui-slider-handle:focus { border-color: var(--wp-admin-theme-color, #3858e9); border-style: solid; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); outline: 2px solid transparent; } .iris-picker .iris-palette:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); } @media screen and (max-width: 782px) { .wp-picker-container input[type="text"].wp-color-picker { width: 5rem; font-size: 16px; line-height: 1.875; /* 30px */ min-height: 32px; } .wp-customizer .wp-picker-container input[type="text"].wp-color-picker { padding: 0 5px; } .wp-picker-input-wrap .button.wp-picker-default, .wp-picker-input-wrap .button.wp-picker-clear { padding: 0 8px; line-height: 2.14285714; /* 30px */ min-height: 32px; } .wp-customizer .wp-picker-input-wrap .button.wp-picker-default, .wp-customizer .wp-picker-input-wrap .button.wp-picker-clear { padding: 0 8px; font-size: 14px; line-height: 2.14285714; /* 30px */ min-height: 32px; } .wp-picker-container .wp-color-result.button { padding: 0 40px 0 0; font-size: 14px; line-height: 2.14285714; /* 30px */ } .wp-customizer .wp-picker-container .wp-color-result.button { font-size: 14px; line-height: 2.14285714; /* 30px */ } .wp-picker-container .wp-color-result-text { padding: 0 14px; font-size: inherit; line-height: inherit; } .wp-customizer .wp-picker-container .wp-color-result-text { padding: 0 10px; } } css/customize-controls.min.css000064400000166016152213653150012530 0ustar00/*! This file is auto-generated */ body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked{background-color:rgba(0,0,0,.7);padding:25px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message{margin-left:auto;margin-right:auto;max-width:366px;min-height:64px;width:auto;padding:25px;position:relative;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;overflow-y:auto;text-align:left;top:calc(50% - 100px)}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message.has-avatar{padding-left:109px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing{margin-top:0}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons{margin-bottom:0}.customize-changeset-locked-avatar{width:64px;position:absolute;left:25px;top:25px}.wp-core-ui.wp-customizer .customize-changeset-locked-message a.button{margin-right:10px;margin-top:0}#customize-controls .description{color:#50575e}#customize-save-button-wrapper{float:right;margin-top:7px}body:not(.ready) #customize-save-button-wrapper .save{visibility:hidden}#customize-save-button-wrapper .save{float:left;border-radius:3px;box-shadow:none;margin-top:0}#customize-save-button-wrapper .save.has-next-sibling{border-radius:3px 0 0 3px}#customize-sidebar-outer-content{position:absolute;top:0;bottom:0;left:0;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;z-index:-1;background:#f0f0f1;transition:left .18s;border-right:1px solid #dcdcde;border-left:1px solid #dcdcde;height:100%}@media (prefers-reduced-motion:reduce){#customize-sidebar-outer-content{transition:none}}#customize-theme-controls .control-section-outer{display:none!important}#customize-outer-theme-controls .accordion-section-content{padding:12px}#customize-outer-theme-controls .accordion-section-content.open{display:block}.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{visibility:visible;left:100%;transition:left .18s}@media (prefers-reduced-motion:reduce){.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{transition:none}}.customize-outer-pane-parent{margin:0}.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main{left:300px;opacity:.4}.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main{left:64%}#customize-outer-theme-controls li.notice{padding-top:8px;padding-bottom:8px;margin-left:0;margin-bottom:10px}#publish-settings{text-indent:0;border-radius:0 3px 3px 0;padding-left:0;padding-right:0;box-shadow:none;font-size:14px;width:30px;float:left;transform:none;margin-top:0;line-height:2}body.trashing #customize-save-button-wrapper .save,body.trashing #publish-settings,body:not(.ready) #publish-settings{display:none}#customize-header-actions .spinner{margin-top:13px;margin-right:4px}.saving #customize-header-actions .spinner,.trashing #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #dcdcde}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}.outer-section-open #customize-controls .wp-full-overlay-sidebar-content{background:#f0f0f1}#customize-controls .customize-info{border:none;border-bottom:1px solid #dcdcde;margin-bottom:15px}#customize-control-changeset_preview_link input,#customize-control-changeset_status .customize-inside-control-row{background-color:#fff;border-bottom:1px solid #dcdcde;box-sizing:content-box;width:100%;margin-left:-12px;padding-left:12px;padding-right:12px}#customize-control-trash_changeset{margin-top:20px}#customize-control-trash_changeset .button-link{position:relative;padding-left:24px;display:inline-block}#customize-control-trash_changeset .button-link:before{content:"\f182";content:"\f182"/'';font:normal 22px dashicons;text-decoration:none;position:absolute;left:0;top:-2px}#customize-controls .date-input:invalid{border-color:#d63638}#customize-control-changeset_status .customize-inside-control-row{padding-top:10px;padding-bottom:10px;font-weight:500}#customize-control-changeset_status .customize-inside-control-row:first-of-type{border-top:1px solid #dcdcde}#customize-control-changeset_status .customize-control-title{margin-bottom:6px}#customize-control-changeset_status input{margin-left:0}#customize-control-changeset_preview_link{position:relative;display:block}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{margin:0;position:absolute;top:50%;transform:translateY(-50%)!important;right:0;background:#fff!important}.preview-link-wrapper{position:relative}.customize-copy-preview-link:after,.customize-copy-preview-link:before{content:"";height:40px;position:absolute;background:#fff;top:0}.customize-copy-preview-link:before{left:-10px;width:9px;opacity:.75}.customize-copy-preview-link:after{left:-5px;width:4px;opacity:.8}#customize-control-changeset_preview_link input{line-height:2.85714286;border-top:1px solid #dcdcde;border-left:none;border-right:none;text-indent:-999px;color:#fff;min-height:40px}#customize-control-changeset_preview_link label{position:relative;display:block}#customize-control-changeset_preview_link a{display:inline-block;position:absolute;white-space:nowrap;overflow:hidden;width:90%;bottom:14px;font-size:14px;text-decoration:none}#customize-control-changeset_preview_link a.disabled,#customize-control-changeset_preview_link a.disabled:active,#customize-control-changeset_preview_link a.disabled:focus,#customize-control-changeset_preview_link a.disabled:visited{color:#000;opacity:.4;cursor:default;outline:0;box-shadow:none}#sub-accordion-section-publish_settings .customize-section-description-container{display:none}#customize-controls .customize-info.section-meta{margin-bottom:15px}.customize-control-date_time .customize-control-description+.date-time-fields.includes-time{margin-top:10px}.customize-control.customize-control-date_time .date-time-fields .date-input.day{margin-right:0}.date-time-fields .date-input.month{width:auto;margin:0}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:46px}.customize-control-date_time select{vertical-align:top}.date-time-fields .date-input.year{width:65px}.date-time-fields .date-input.meridian{width:auto;margin:0}.date-time-fields .time-row{margin-top:12px}#customize-control-changeset_preview_link{margin-top:6px}#customize-control-changeset_status{margin-bottom:0;padding-bottom:0}#customize-control-changeset_scheduled_date{box-sizing:content-box;width:100%;margin-left:-12px;padding:12px;background:#fff;border-bottom:1px solid #dcdcde;margin-bottom:0}#customize-control-changeset_scheduled_date .customize-control-description,#customize-control-site_icon .customize-control-description{font-style:normal}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#50575e;border-left:none;border-right:none;border-bottom:none;cursor:default;padding:10px 10px 11px 14px}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#2c3338}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:1.9;margin:0;font-weight:400;color:#50575e}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title,#customize-outer-theme-controls .customize-pane-child .customize-section-title h3,#customize-outer-theme-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;right:1px;padding:20px 20px 10px 10px;width:20px;height:20px;cursor:pointer;box-shadow:none;background:0 0;color:#50575e;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;left:6px}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice,#customize-outer-theme-controls .customize-info .customize-section-description{color:#50575e;display:none;background:#fff;padding:12px 15px;border-top:1px solid #dcdcde}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}.no-widget-areas-rendered-notice{font-style:italic}.no-widget-areas-rendered-notice p:first-child{margin-top:0}.no-widget-areas-rendered-notice p:last-child{margin-bottom:0}#customize-controls .customize-info .customize-section-description{margin-bottom:15px}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-right:30px}#customize-outer-theme-controls .control-section,#customize-theme-controls .control-section{border:none}#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{color:#50575e;background-color:#fff;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}#customize-controls .current-panel .control-section>h3.accordion-section-title:has(button.accordion-trigger),.accordion-section-title:has(button.accordion-trigger){padding:0}.accordion-section-title button.accordion-trigger{all:unset;width:100%;padding:10px 30px 11px 14px;display:flex;align-items:center;box-sizing:border-box}.accordion-section-title button.accordion-trigger:has(.menu-in-location){display:block}.accordion-section-title button.accordion-trigger .spinner{margin-top:0}@media (prefers-reduced-motion:reduce){#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{transition:none}}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#50575e;background-color:#fff;border-left:4px solid #fff}#customize-outer-theme-controls .accordion-section-title:after,#customize-theme-controls .accordion-section-title:after{content:"\f345";content:"\f345"/'';color:#a7aaad;pointer-events:none}#customize-outer-theme-controls .accordion-section-content,#customize-theme-controls .accordion-section-content{color:#50575e;background:0 0}#accordion-section-themes+.control-section{border-top:1px solid #dcdcde}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f6f7f7}#customize-theme-controls .control-section.open{border-bottom:1px solid #f0f0f1}#customize-outer-theme-controls .control-section.open .accordion-section-title,#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#f0f0f1!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#dcdcde}#customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2),#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu,#customize-theme-controls .control-section-nav_menu_locations .accordion-section-title{border-top:1px solid #dcdcde}#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu+.control-section-nav_menu{border-top:none}#customize-theme-controls>ul{margin:0}#customize-theme-controls .accordion-section-content{position:absolute;top:0;left:100%;width:100%;margin:0;padding:12px;box-sizing:border-box}#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{overflow:visible;width:100%;margin:0;padding:0;box-sizing:border-box;transition:.18s transform cubic-bezier(.645, .045, .355, 1)}@media (prefers-reduced-motion:reduce){#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{transition:none}}#customize-theme-controls .customize-pane-child.skip-transition{transition:none}#customize-info,#customize-theme-controls .customize-pane-parent{position:relative;visibility:visible;height:auto;max-height:none;overflow:auto;transform:none}#customize-theme-controls .customize-pane-child{position:absolute;top:0;left:0;visibility:hidden;height:0;max-height:none;overflow:hidden;transform:translateX(100%)}#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open{transform:none}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls .customize-pane-parent,.in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel,.section-open #customize-info,.section-open #customize-theme-controls .customize-pane-parent{visibility:hidden;height:0;overflow:hidden;transform:translateX(-100%)}#customize-theme-controls .customize-pane-child.busy,#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open,.busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel,.in-sub-panel #customize-info.busy,.in-sub-panel #customize-theme-controls .customize-pane-parent.busy,.section-open #customize-info.busy,.section-open #customize-theme-controls .customize-pane-parent.busy{visibility:visible;height:auto;overflow:auto}#customize-theme-controls .customize-pane-child.accordion-section-content,#customize-theme-controls .customize-pane-child.accordion-sub-container{display:block;overflow-x:hidden}#customize-theme-controls .customize-pane-child.accordion-section-content{padding:12px}#customize-theme-controls .customize-pane-child.menu li{position:static}.control-section-nav_menu .customize-section-description-container,.control-section-new_menu .customize-section-description-container,.customize-section-description-container{margin-bottom:15px}.control-section-nav_menu .customize-control,.control-section-new_menu .customize-control{margin-bottom:0}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #dcdcde;background:#fff}div.customize-section-description{margin-top:22px}.customize-info div.customize-section-description{margin-top:0}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #dcdcde;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 10px 12px 14px;margin:0;line-height:21px;color:#50575e}.accordion-sub-container.control-panel-content{display:none;position:absolute;top:0;width:100%}.accordion-sub-container.control-panel-content.busy{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;left:0;width:45px;height:41px;padding:0 2px 0 0;background:#f0f0f1;border:none;border-top:4px solid #f0f0f1;border-right:1px solid #dcdcde;color:#3c434a;text-align:left;cursor:pointer;box-sizing:content-box}@media (prefers-reduced-motion:no-preference){.customize-controls-close{transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}}.customize-panel-back,.customize-section-back{display:block;float:left;width:48px;height:71px;padding:0 24px 0 0;margin:0;background:#fff;border:none;border-right:1px solid #dcdcde;border-left:4px solid #fff;box-shadow:none;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}.customize-section-back{height:74px}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}#customize-controls .panel-meta.customize-info .accordion-section-title{margin-left:48px;border-left:none}#customize-controls .cannot-expand:hover .accordion-section-title,#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#50575e;border-left-color:#fff}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#fff;box-shadow:none;outline:1px solid transparent}#customize-theme-controls .accordion-section-title:focus .customize-action{outline:1px solid transparent;outline-offset:1px}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{background:#f6f7f7;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.customize-controls-close:before{font:normal 22px/45px dashicons;content:"\f335";content:"\f335"/'';position:relative;top:-3px;left:13px}.customize-panel-back:before,.customize-section-back:before{font:normal 20px/72px dashicons;content:"\f341";content:"\f341"/'';position:relative;left:9px}.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:#f0f0f1;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-left:62px}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-section-description ul{margin-left:1em}.customize-section-description ul>li{list-style:disc}.section-description-buttons{text-align:right}.customize-control{width:100%;float:left;clear:both;margin-bottom:12px}.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=password],.customize-control input[type=range],.customize-control input[type=search],.customize-control input[type=tel],.customize-control input[type=text],.customize-control input[type=url]{width:100%;margin:0}.customize-control-hidden{margin:0}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{width:100%}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:1.75;font-weight:600;margin-bottom:4px}.customize-control-description{display:block;font-style:italic;line-height:1.4;margin-top:0;margin-bottom:5px}.customize-section-description a.external-link:after{font:16px/11px dashicons;content:"\f504";content:"\f504"/'';top:3px;position:relative;padding-left:3px;display:inline-block;text-decoration:none}.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control .customize-inside-control-row{line-height:1.6;display:block;margin-left:24px;padding-top:6px;padding-bottom:6px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-right:4px;margin-left:-24px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:1.6}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-checkbox label,.customize-control-radio label{vertical-align:top}.customize-control .attachment-thumb.type-icon{float:left;margin:10px;width:auto}.customize-control .attachment-title{font-weight:600;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image,.customize-control .wp-media-wrapper.wp-video,.customize-control-header .current{line-height:0}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:left}#available-menu-items .accordion-section-content .new-content-item-wrapper,.customize-control-dropdown-pages .new-content-item-wrapper{width:calc(100% - 30px);padding:8px 15px;position:absolute;bottom:0;z-index:10;background:#f0f0f1}.customize-control-dropdown-pages .new-content-item-wrapper{width:100%;padding:0;position:static}#available-menu-items .new-content-item-wrapper>label,.customize-control-dropdown-pages .new-content-item-wrapper>label{margin-bottom:4px;display:block}#available-menu-items .accordion-section-content .new-content-item,.customize-control-dropdown-pages .new-content-item{display:flex}.customize-control-dropdown-pages .new-content-item{width:100%;padding:5px 0 5px 1px;position:relative}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item{padding:0}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label{line-height:1.6}#available-menu-items .new-content-item .create-item-input,.customize-control-dropdown-pages .new-content-item .create-item-input{flex-grow:10;width:100%}#available-menu-items .new-content-item .create-item-input{min-height:32px;line-height:2.15384615}#available-menu-items .new-content-item .add-content,.customize-control-dropdown-pages .new-content-item .add-content{margin:0 0 0 6px;flex-grow:1}#available-menu-items .new-content-item .add-content{min-height:32px;line-height:2.30769231}.customize-control-dropdown-pages .new-content-item .create-item-input.invalid{border:1px solid #d63638}.customize-control-dropdown-pages .add-new-toggle{margin-left:1px;font-weight:600;line-height:2.2}#customize-preview iframe{width:100%;height:100%;position:absolute}#customize-preview iframe+iframe{visibility:hidden}.wp-full-overlay-sidebar{background:#f0f0f1;border-right:1px solid #dcdcde}#customize-controls .customize-control-notifications-container{margin:4px 0 8px;padding:0;cursor:default}#customize-controls .customize-control-widget_form.has-error .widget .widget-top,.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle{box-shadow:inset 0 0 0 2px #d63638;transition:.15s box-shadow linear}#customize-controls .customize-control-notifications-container li.notice{list-style:none;margin:0 0 6px;padding:9px 14px;overflow:hidden}#customize-controls .customize-control-notifications-container .notice.is-dismissible{padding-right:38px}.customize-control-notifications-container li.notice:last-child{margin-bottom:0}#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container{margin-top:0}#customize-controls .customize-control-widget_form .customize-control-notifications-container{margin-top:8px}.customize-control-text.has-error input{outline:2px solid #d63638}#customize-controls #customize-notifications-area{position:absolute;top:46px;width:100%;border-bottom:1px solid #dcdcde;display:block;padding:0;margin:0}.wp-full-overlay.collapsed #customize-controls #customize-notifications-area{display:none!important}#customize-controls #customize-notifications-area:not(.has-overlay-notifications),#customize-controls .customize-section-title>.customize-control-notifications-container:not(.has-overlay-notifications),#customize-controls .panel-meta>.customize-control-notifications-container:not(.has-overlay-notifications){max-height:210px;overflow-x:hidden;overflow-y:auto}#customize-controls #customize-notifications-area .notice,#customize-controls #customize-notifications-area>ul,#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container .notice{margin:0}#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container{border-top:1px solid #dcdcde}#customize-controls #customize-notifications-area .notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice{padding:9px 14px}#customize-controls #customize-notifications-area .notice.is-dismissible,#customize-controls .customize-section-title>.customize-control-notifications-container .notice.is-dismissible,#customize-controls .panel-meta>.customize-control-notifications-container .notice.is-dismissible{padding-right:38px}#customize-controls #customize-notifications-area .notice+.notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice+.notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice+.notice{margin-top:1px}@keyframes customize-fade-in{0%{opacity:0}100%{opacity:1}}#customize-controls #customize-notifications-area .notice.notification-overlay,#customize-controls .notice.notification-overlay{margin:0;border-left:0}#customize-controls .customize-control-notifications-container.has-overlay-notifications{animation:customize-fade-in .5s;z-index:30}#customize-controls #customize-notifications-area .notice.notification-overlay .notification-message{clear:both;color:#1d2327;font-size:18px;font-style:normal;margin:0;padding:2em 0;text-align:center;width:100%;display:block;top:50%;position:relative}#customize-control-show_on_front.has-error{margin-bottom:0}#customize-control-show_on_front.has-error .customize-control-notifications-container{margin-top:12px}.accordion-section .dropdown{float:left;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:left;min-width:30px;height:16px;line-height:16px;margin-right:16px;padding:4px 5px;border:2px solid #f0f0f1;-webkit-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;right:0;width:20px;background:#f0f0f1}.customize-control .dropdown-arrow:after{content:"\f140";content:"\f140"/'';font:normal 20px/1 dashicons;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#2c3338}.customize-control .dropdown-status{color:#2c3338;background:#f0f0f1;display:none;max-width:112px}.customize-control-color .dropdown{margin-right:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#50575e;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control .actions .button{margin-top:12px}.customize-control-header .actions,.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-header button img{display:block}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control .attachment-media-view .upload-button,.customize-control-header button.new,.customize-control-header button.remove{width:auto;height:auto;white-space:normal}.customize-control .attachment-media-view .upload-button{width:100%;text-align:center}.customize-control .attachment-media-view .upload-button.control-focus{width:auto}.customize-control.customize-control-header .actions .upload-button.button.new{width:100%;text-align:center}.customize-control .attachment-media-view .thumbnail,.customize-control-header .current .container{overflow:hidden}.customize-control .attachment-media-view .button-add-media,.customize-control .attachment-media-view .placeholder,.customize-control-header .placeholder{width:100%;position:relative;text-align:center;cursor:default;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6}.customize-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.customize-control .attachment-media-view .button-add-media:hover{background-color:#fff}.customize-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.customize-control-header .inner{display:none;position:absolute;width:100%;color:#50575e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-header .inner,.customize-control-header .inner .dashicons{line-height:20px;top:8px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:12px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected .choice:focus{outline:0}.customize-control-header .header-view.selected:after{content:"";position:absolute;height:auto;top:0;left:0;bottom:0;right:0;border:4px solid #72aee6;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#50575e;background:rgba(0,0,0,.5);position:absolute;top:10px;left:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{left:auto;right:10px}.customize-control-header .header-view .close:focus{outline:1px solid #4f94d4}.customize-control-header .random.placeholder{cursor:pointer;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:0}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{animation:dice-color-change 3s infinite}.button-see-me{animation:bounce .7s 1;transform-origin:center bottom}@keyframes bounce{20%,53%,80%,from,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-12px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-6px,0)}90%{transform:translate3d(0,-1px,0)}}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .choice:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control .attachment-media-view .thumbnail-image img,.customize-control-header img{max-width:100%}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control-header .remove{margin-right:8px}.customize-control-background_position .background-position-control .button-group{display:block}.customize-control-code_editor textarea{width:100%;font-family:Consolas,Monaco,monospace;font-size:12px;padding:6px 8px;tab-size:2}.customize-control-code_editor .CodeMirror,.customize-control-code_editor textarea{height:14em}#customize-controls .customize-section-description-container.section-meta.customize-info{border-bottom:none}#sub-accordion-section-custom_css .customize-control-notifications-container{margin-bottom:15px}#customize-control-custom_css textarea{display:block;height:500px}.customize-section-description-container+#customize-control-custom_css .customize-control-title{margin-left:12px}.customize-section-description-container+#customize-control-custom_css:last-child textarea{border-right:0;border-left:0;height:calc(100vh - 185px);resize:none}.customize-section-description-container+#customize-control-custom_css:last-child{margin-left:-12px;width:299px;width:calc(100% + 24px);margin-bottom:-12px}.customize-section-description-container+#customize-control-custom_css:last-child .CodeMirror{height:calc(100vh - 185px)}.CodeMirror-hints,.CodeMirror-lint-tooltip{z-index:500000!important}.customize-section-description-container+#customize-control-custom_css:last-child .customize-control-notifications-container{margin-left:12px;margin-right:12px}.theme-browser .theme.active .theme-actions,.wp-customizer .theme-browser .theme .theme-actions{padding:9px 15px}.theme-browser .theme:not(.active) .theme-actions{box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}@media screen and (max-width:640px){.customize-section-description-container+#customize-control-custom_css:last-child{margin-right:0}.customize-section-description-container+#customize-control-custom_css:last-child textarea{height:calc(100vh - 140px)}}#customize-theme-controls .control-panel-themes{border-bottom:none}#customize-theme-controls .control-panel-themes>.accordion-section-title,#customize-theme-controls .control-panel-themes>.accordion-section-title:hover{cursor:default;background:#fff;color:#50575e;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;border-left:none;border-right:none;margin:0 0 15px;padding:12px 100px 15px 15px}#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child,#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover{border-top:0}#customize-theme-controls .control-section-themes>.accordion-section-title,#customize-theme-controls .control-section-themes>.accordion-section-title:hover{margin:0 0 15px}#customize-controls .customize-themes-panel .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title:hover{margin:15px -8px}#customize-controls .control-section-themes .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title{padding-right:100px}#customize-controls .control-section-themes .accordion-section-title span.customize-action,#customize-controls .customize-section-title span.customize-action,.control-panel-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme{position:absolute;right:10px;top:50%;margin-top:-20px;font-weight:400}#customize-notifications-area .notification-message button.switch-to-editor{display:block;margin-top:6px;font-weight:400}#customize-theme-controls .control-panel-themes>.accordion-section-title:after{display:none}.control-panel-themes .customize-themes-full-container{position:fixed;top:0;left:0;transition:.18s left ease-in-out;margin:0 0 0 300px;padding:71px 0 25px;overflow-y:scroll;width:calc(100% - 300px);height:calc(100% - 96px);background:#f0f0f1;z-index:20}@media (prefers-reduced-motion:reduce){.control-panel-themes .customize-themes-full-container{transition:none}}@media screen and (min-width:1670px){.control-panel-themes .customize-themes-full-container{width:82%;right:0;left:initial}}.modal-open .control-panel-themes .customize-themes-full-container{overflow-y:visible}#customize-header-actions .customize-controls-preview-toggle,#customize-header-actions .spinner,#customize-save-button-wrapper{transition:.18s margin ease-in-out}#customize-footer-actions,#customize-footer-actions .collapse-sidebar{bottom:0;transition:.18s bottom ease-in-out}.in-themes-panel:not(.animating) #customize-footer-actions,.in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel:not(.animating) #customize-header-actions .spinner,.in-themes-panel:not(.animating) #customize-preview{visibility:hidden}.wp-full-overlay.in-themes-panel{background:#f0f0f1}.in-themes-panel #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel #customize-header-actions .spinner,.in-themes-panel #customize-save-button-wrapper{margin-top:-46px}.in-themes-panel #customize-footer-actions,.in-themes-panel #customize-footer-actions .collapse-sidebar{bottom:-45px}.in-themes-panel.animating .control-panel-themes .filter-themes-count{display:none}.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:0}.themes-filter-bar .feature-filter-toggle{min-height:32px;line-height:2.30769231}.themes-filter-bar .feature-filter-toggle:before{content:"\f111";content:"\f111"/'';margin:0 5px 0 0;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .feature-filter-toggle.open{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.themes-filter-bar .feature-filter-toggle .filter-count-filters{display:none}.filter-drawer{box-sizing:border-box;width:100%;position:absolute;top:46px;left:0;padding:25px 0 25px 25px;border-top:0;margin:0;background:#f0f0f1;border-bottom:1px solid #dcdcde}.filter-drawer .filter-group{margin:0 25px 0 0;width:calc((100% - 75px)/ 3);min-width:200px;max-width:320px}@keyframes themes-fade-in{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.control-panel-themes .customize-themes-full-container.animate{animation:.6s themes-fade-in 1}.in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count{animation:.6s themes-fade-in 1}.control-panel-themes .filter-themes-count .themes-displayed{font-weight:600;color:#50575e}.customize-themes-notifications{margin:0}.control-panel-themes .customize-themes-notifications .notice{margin:0 0 25px}.customize-themes-full-container .customize-themes-section{display:none!important;overflow:hidden}.customize-themes-full-container .customize-themes-section.current-section{display:list-item!important}.control-section .customize-section-text-before{padding:0 0 8px 15px;margin:15px 0 0;line-height:16px;border-bottom:1px solid #dcdcde;color:#50575e}.control-panel-themes .customize-themes-section-title{width:100%;background:#fff;box-shadow:none;outline:0;border-top:none;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;border-right:none;cursor:pointer;padding:10px 15px;position:relative;text-align:left;font-size:14px;font-weight:600;color:#50575e;text-shadow:none}.control-panel-themes #accordion-section-installed_themes{border-top:1px solid #dcdcde}.control-panel-themes .theme-section{margin:0;position:relative}.control-panel-themes .customize-themes-section-title:focus,.control-panel-themes .customize-themes-section-title:hover{background:#f6f7f7}.customize-themes-section-title:not(.selected):after{content:"";display:block;position:absolute;top:9px;right:15px;width:18px;height:18px;border-radius:100%;border:1px solid #c3c4c7;background:#fff}.control-panel-themes .theme-section .customize-themes-section-title.selected:after{content:"\f147";content:"\f147"/'';font:16px/1 dashicons;box-sizing:border-box;width:20px;height:20px;padding:3px 3px 1px 1px;border-radius:100%;position:absolute;top:9px;right:15px;color:#fff}#customize-theme-controls .themes.accordion-section-content{position:relative;left:0;padding:0;width:100%}.loading .customize-themes-section .spinner{display:block;visibility:visible;position:relative;clear:both;width:20px;height:20px;left:calc(50% - 10px);float:none;margin-top:50px}.customize-themes-section .no-themes,.customize-themes-section .no-themes-local{display:none}.themes-section-installed_themes .theme .notice-success:not(.updated-message){display:none}.customize-control-theme .theme{width:100%;margin:0;border:1px solid #dcdcde;background:#fff}.customize-control-theme .theme .theme-actions,.customize-control-theme .theme .theme-name{background:#fff;border:none}.customize-control.customize-control-theme{box-sizing:border-box;width:25%;max-width:600px;margin:0 25px 25px 0;padding:0;clear:none}@media screen and (min-width:2101px){.customize-control.customize-control-theme{width:calc((100% - 125px)/ 5 - 1px)}}@media screen and (min-width:1601px) and (max-width:2100px){.customize-control.customize-control-theme{width:calc((100% - 100px)/ 4 - 1px)}}@media screen and (min-width:1201px) and (max-width:1600px){.customize-control.customize-control-theme{width:calc((100% - 75px)/ 3 - 1px)}}@media screen and (min-width:851px) and (max-width:1200px){.customize-control.customize-control-theme{width:calc((100% - 50px)/ 2 - 1px)}}@media screen and (max-width:850px){.customize-control.customize-control-theme{width:100%}}.wp-customizer .theme-browser .themes{padding:0 0 25px 25px;transition:.18s margin-top linear}.wp-customizer .theme-browser .theme .theme-actions{opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.customize-preview-header.themes-filter-bar{position:fixed;top:0;left:300px;width:calc(100% - 300px);height:46px;background:#f0f0f1;z-index:10;padding:6px 25px;box-sizing:border-box;border-bottom:1px solid #dcdcde}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.customize-preview-header.themes-filter-bar .search-form-input{position:relative}.customize-preview-header .filter-themes-wrapper{display:grid;align-items:center;gap:10px;grid-template-columns:auto 1fr}.customize-preview-header .filter-themes-wrapper .filter-themes-count{justify-self:end}@media screen and (min-width:1670px){.customize-preview-header.themes-filter-bar{width:82%;right:0;left:initial}}.themes-filter-bar .themes-filter-container{margin:0;padding:0;display:flex;align-items:center;gap:10px}.themes-filter-bar .wp-filter-search{padding:0 10px 0 30px;max-width:100%;width:40%;min-width:300px;height:32px;min-height:32px;margin:1px 0;top:0;left:0}@media screen and (max-height:540px),screen and (max-width:1018px){.customize-preview-header.themes-filter-bar{position:relative;left:0;width:100%;margin:0 0 25px}.filter-drawer{top:46px}.wp-customizer .theme-browser .themes{padding:0 0 25px 25px;overflow:hidden}.control-panel-themes .customize-themes-full-container{margin-top:0;padding:0;height:100%;width:calc(100% - 300px)}}@media screen and (max-width:1018px){.filter-drawer .filter-group{width:calc((100% - 50px)/ 2)}}@media screen and (max-width:960px){.customize-preview-header.themes-filter-bar{height:96px}}@media screen and (max-width:900px){.themes-filter-bar .wp-filter-search{width:100%;margin:0;min-width:200px}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form .themes-filter-bar .themes-filter-container{display:grid;gap:4px}.customize-preview-header.themes-filter-bar .search-form-input{display:flex;flex-grow:1}.filter-drawer{top:86px}.control-panel-themes .filter-themes-count{float:left}}@media screen and (max-width:792px){.filter-drawer .filter-group{width:calc(100% - 25px)}}.control-panel-themes .customize-themes-mobile-back{display:none}@media screen and (max-width:600px){.filter-drawer{top:132px}.wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes{display:block;float:right}.control-panel-themes .customize-themes-full-container{width:100%;margin:0;padding-top:46px;height:calc(100% - 46px);z-index:1;display:none}.showing-themes .control-panel-themes .customize-themes-full-container{display:block}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back{display:block;position:fixed;top:0;left:0;background:#f0f0f1;color:#3c434a;border-radius:0;box-shadow:none;border:none;height:46px;width:100%;z-index:10;text-align:left;text-shadow:none;border-bottom:1px solid #dcdcde;border-left:4px solid transparent;margin:0;padding:0;font-size:0;overflow:hidden}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before{left:0;top:0;height:46px;width:26px;display:block;line-height:2.3;padding:0 8px;border-right:1px solid #dcdcde}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus,.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover{background:#f6f7f7;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.showing-themes #customize-header-actions{display:none}#customize-controls{width:100%}}.wp-customizer .theme-overlay{display:none}.wp-customizer.modal-open .theme-overlay{position:fixed;left:0;top:0;right:0;bottom:0;z-index:109}.wp-customizer.modal-open #customize-header-actions,.wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after,.wp-customizer.modal-open .control-panel-themes .filter-themes-count{z-index:-1}.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(240,240,241,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .star-rating{float:left;margin-right:8px}.wp-customizer .theme-rating .num-ratings{line-height:20px}.wp-customizer .theme-overlay .theme-wrap{left:90px;right:90px;top:45px;bottom:45px;z-index:120}.wp-customizer .theme-overlay .theme-actions{text-align:right;padding:10px 25px 5px;background:#f0f0f1;border-top:1px solid #dcdcde}.wp-customizer .theme-overlay .theme-actions .theme-install.preview{margin-left:8px}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-header{background:#f0f0f1}.wp-customizer .theme-overlay .theme-header .close:before,.wp-customizer .theme-overlay .theme-header button{color:#3c434a}.wp-customizer .theme-overlay .theme-header .close:focus,.wp-customizer .theme-overlay .theme-header .close:hover,.wp-customizer .theme-overlay .theme-header .left:focus,.wp-customizer .theme-overlay .theme-header .left:hover,.wp-customizer .theme-overlay .theme-header .right:focus,.wp-customizer .theme-overlay .theme-header .right:hover{background:#fff}.wp-customizer .theme-overlay .theme-header .close:focus:before,.wp-customizer .theme-overlay .theme-header .close:hover:before{color:var(--wp-admin-theme-color)}.wp-customizer .theme-overlay .theme-header button.disabled,.wp-customizer .theme-overlay .theme-header button.disabled:focus,.wp-customizer .theme-overlay .theme-header button.disabled:hover{border-bottom:none;background:0 0;color:#c3c4c7}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{left:0;right:0;top:0;bottom:0}.wp-customizer .theme-browser .themes{padding-right:25px}}body.cheatin{font-size:medium;height:auto;background:#fff;border:1px solid #c3c4c7;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;box-shadow:0 1px 1px rgba(0,0,0,.04)}body.cheatin h1{border-bottom:1px solid #dcdcde;clear:both;color:#50575e;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:30px 0 0;padding:0 0 7px}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}#customize-theme-controls .add-new-menu-item,#customize-theme-controls .add-new-widget{cursor:pointer;float:right;margin:0 0 0 10px;transition:all .2s;-webkit-user-select:none;user-select:none;outline:0}.reordering .add-new-menu-item,.reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#available-menu-items .new-content-item .add-content:before,.add-new-menu-item:before,.add-new-widget:before{content:"\f132";content:"\f132"/'';display:inline-block;position:relative;left:-2px;top:0;font:normal 20px/1 dashicons;vertical-align:middle;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reorder-toggle{float:right;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0}.reorder,.reordering .reorder-done{display:block;padding:5px 8px}.reorder-done,.reordering .reorder{display:none}.menu-item-reorder-nav button,.widget-reorder-nav span{position:relative;overflow:hidden;float:left;display:block;width:33px;height:43px;color:#8c8f94;text-indent:-9999px;cursor:pointer;outline:0}.menu-item-reorder-nav button{width:30px;height:40px;background:0 0;border:none;box-shadow:none}.menu-item-reorder-nav button:before,.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;right:0;width:100%;height:100%;font:normal 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover,.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#1d2327;background:#f0f0f1}.menus-move-down:before,.move-widget-down:before{content:"\f347";content:"\f347"/''}.menus-move-up:before,.move-widget-up:before{content:"\f343";content:"\f343"/''}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down,.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#dcdcde;background-color:#fff;cursor:default;pointer-events:none}.wp-full-overlay-main{right:auto;width:100%}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover,body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#f0f0f1;border-color:#8c8f94;color:#2c3338;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before,body.adding-widget .add-new-widget:before{transform:rotate(45deg)}#available-menu-items,#available-widgets{position:absolute;top:0;bottom:0;left:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#f0f0f1;transition:left .18s;border-right:1px solid #dcdcde}#available-menu-items .accordion-section-title,#available-widgets .accordion-section-title{z-index:2}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}#available-menu-items .customize-section-title button,#available-widgets .customize-section-title button{display:none}#available-widgets-list{top:82px;position:absolute;overflow:auto;bottom:0;width:100%;border-top:1px solid #dcdcde}.no-widgets-found #available-widgets-list{border-top:none}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;background:#f0f0f1}#available-menu-items-search .accordion-section-title,#available-widgets-filter{padding:13px 15px;box-sizing:border-box}#available-menu-items-search input,#available-widgets-filter input{width:100%;min-height:40px;margin:1px 0;padding:0 30px}#available-menu-items-search input::-ms-clear,#available-widgets-filter input::-ms-clear{display:none}#available-menu-items-search .search-icon,#available-widgets-filter .search-icon{display:block;position:absolute;bottom:19px;left:16px;width:30px;height:30px;line-height:2.1;text-align:center;color:#646970}#available-menu-items-search .accordion-section-title .clear-results,#available-widgets-filter .clear-results{position:absolute;top:40px;right:16px;width:30px;height:30px;padding:0;border:0;cursor:pointer;background:0 0;color:#d63638;text-decoration:none;outline:0}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible,#available-widgets-filter .clear-results{display:none}#available-menu-items-search .clear-results.is-visible,#available-widgets-filter .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before,#available-widgets-filter .clear-results:before{content:"\f335";content:"\f335"/'';font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover,#available-widgets-filter .clear-results:focus,#available-widgets-filter .clear-results:hover{color:#d63638}#available-menu-items-search .clear-results:focus,#available-widgets-filter .clear-results:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#available-menu-items-search .search-icon:after,#available-widgets-filter .search-icon:after,.themes-filter-bar .search-icon:after{content:"\f179";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .search-icon{position:absolute;top:2px;left:2px;z-index:1;color:#646970;height:30px;width:30px;line-height:2;text-align:center}.no-widgets-found-message{display:none;margin:0;padding:0 15px;line-height:inherit}.no-widgets-found .no-widgets-found-message{display:block}#available-menu-items .item-top,#available-menu-items .item-top:hover,#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;box-shadow:none}#available-menu-items .item-tpl,#available-widgets .widget-tpl{position:relative;padding:15px 15px 15px 60px;background:#fff;border-bottom:1px solid #dcdcde;border-left:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;cursor:pointer;display:none}#available-menu-items .item,#available-widgets .widget{position:static}.customize-controls-preview-toggle{display:none}@media only screen and (max-width:782px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}.customize-control-header button.random .dice{margin-top:0}.customize-control-checkbox .customize-inside-control-row,.customize-control-nav_menu_auto_add .customize-inside-control-row,.customize-control-radio .customize-inside-control-row{margin-left:32px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-left:-32px}.customize-control input[type=checkbox]+label+br,.customize-control input[type=radio]+label+br{line-height:2.5}.customize-control .date-time-fields select{height:39px}.date-time-fields .date-input.month{width:79px}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:55px}.date-time-fields .date-input.year{width:80px}#customize-control-changeset_preview_link a{bottom:16px}.media-widget-control .media-widget-buttons .button.change-media,.media-widget-control .media-widget-buttons .button.edit-media,.media-widget-control .media-widget-buttons .button.select-media{margin-top:12px}.customize-preview-header.themes-filter-bar .search-icon{top:6px}}@media screen and (max-width:1200px){.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main{left:67%}}@media screen and (max-width:640px){.wp-full-overlay.collapsed #customize-controls{margin-left:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;left:48px;line-height:2.6;font-size:14px;padding:0 12px 4px;margin:0;height:45px;background:#f0f0f1;border:0;border-right:1px solid #dcdcde;border-top:4px solid #f0f0f1;color:#50575e;cursor:pointer;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.preview-only #customize-save-button-wrapper{margin-top:-46px}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:normal 20px/1 dashicons;content:"\f177";content:"\f177"/'';position:relative;top:4px;margin-right:6px}.customize-controls-preview-toggle .controls:before{content:"\f540";content:"\f540"/''}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}.wp-core-ui.wp-customizer .button{padding:0 14px;line-height:2.14285714;font-size:14px;vertical-align:middle}.customize-control .attachment-media-view .upload-button{text-align:center}#customize-control-changeset_status .customize-inside-control-row{padding-top:15px}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{width:100%}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{border:0;clip-path:none;height:inherit;margin:0;overflow:hidden;padding:0;width:auto;position:static}#available-menu-items .customize-section-title button,#available-widgets .customize-section-title button{display:block}#available-menu-items .customize-section-back,#available-widgets .customize-section-back{height:69px}#available-menu-items .customize-section-title h3,#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 10px 12px 14px;margin:0;line-height:24px;color:#50575e;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action,#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;height:auto}#available-widgets-list{top:152px}#available-menu-items-search .clear-results{top:40px;right:16px}.reorder,.reordering .reorder-done{padding:8px}}@media screen and (max-width:600px){.wp-full-overlay.expanded{margin-left:0}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{top:46px;z-index:10}body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content{left:-100%}body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{left:0}}css/l10n.css000064400000010674152213653150006633 0ustar00/*------------------------------------------------------------------------------ 27.0 - Localization ------------------------------------------------------------------------------*/ /* RTL except Hebrew (see below): Tahoma as the first font; */ body.rtl, body.rtl .press-this a.wp-switch-editor { font-family: Tahoma, Arial, sans-serif; } /* Arial is best for RTL headings. */ .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 { font-family: Arial, sans-serif; font-weight: 600; } /* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */ body.locale-he-il, body.locale-he-il .press-this a.wp-switch-editor { font-family: Arial, sans-serif; } /* he_IL: Have be bold rather than italic. */ .locale-he-il em { font-style: normal; font-weight: 600; } /* zh_CN: Remove italic properties. */ .locale-zh-cn .howto, .locale-zh-cn .tablenav .displaying-num, .locale-zh-cn .js .input-with-default-title, .locale-zh-cn .link-to-original, .locale-zh-cn .inline-edit-row fieldset span.title, .locale-zh-cn .inline-edit-row fieldset span.checkbox-title, .locale-zh-cn #utc-time, .locale-zh-cn #local-time, .locale-zh-cn p.install-help, .locale-zh-cn p.help, .locale-zh-cn p.description, .locale-zh-cn span.description, .locale-zh-cn .form-wrap p { font-style: normal; } /* zh_CN: Enlarge dashboard widget 'Configure' link */ .locale-zh-cn .hdnle a { font-size: 12px; } /* zn_CH: Enlarge font size, set font-size: normal */ .locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; } /* zh_CN: Enlarge font-size. */ .locale-zh-cn #sort-buttons { font-size: 1em !important; } /* de_DE: Text needs more space for translation */ .locale-de-de #customize-header-actions .button, .locale-de-de-formal #customize-header-actions .button { padding: 0 5px 1px; /* default 0 10px 1px */ } .locale-de-de #customize-header-actions .spinner, .locale-de-de-formal #customize-header-actions .spinner { margin: 16px 3px 0; /* default 16px 4px 0 5px */ } body[class*="locale-de-"] .inline-edit-row fieldset label span.title, body[class*="locale-de-"] .inline-edit-row fieldset.inline-edit-date legend { width: 7em; /* default 6em */ } body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap, body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap { margin-left: 7em; /* default 6em */ } /* ru_RU: Text needs more room to breathe. */ .locale-ru-ru #adminmenu { width: inherit; /* back-compat for pre-3.2 */ } .locale-ru-ru #adminmenu, .locale-ru-ru #wpbody { margin-left: 0; /* back-compat for pre-3.2 */ } .locale-ru-ru .inline-edit-row fieldset label span.title, .locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend { width: 8em; /* default 6em */ } .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap { margin-left: 8em; /* default 6em */ } .locale-ru-ru.post-php .tagsdiv .newtag, .locale-ru-ru.post-new-php .tagsdiv .newtag { width: 165px; /* default 180px - 15px */ } .locale-ru-ru.press-this .posting { margin-right: 277px; /* default 252px + 25px */ } .locale-ru-ru .press-this-sidebar { width: 265px; /* default 240px + 25px */ } .locale-ru-ru #customize-header-actions .button { padding: 0 5px 1px; /* default 0 10px 1px */ } .locale-ru-ru #customize-header-actions .spinner { margin: 16px 3px 0; /* default 16px 4px 0 5px */ } /* lt_LT: QuickEdit */ .locale-lt-lt .inline-edit-row fieldset label span.title, .locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend { width: 8em; /* default 6em */ } .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { margin-left: 8em; /* default 6em */ } /* Fix overridden width for adjusted locales */ body[class*="locale-de-"] .quick-edit-row-post fieldset.inline-edit-col-right label span.title, .locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title, .locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title { width: auto; } @media screen and (max-width: 782px) { body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap, body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap, .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap, .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { margin-left: 0; } } css/farbtastic.min.css000064400000001031152213653150010750 0ustar00/*! This file is auto-generated */ .farbtastic{position:relative}.farbtastic *{position:absolute;cursor:crosshair}.farbtastic,.farbtastic .wheel{width:195px;height:195px}.farbtastic .color,.farbtastic .overlay{top:47px;left:47px;width:101px;height:101px}.farbtastic .wheel{background:url(../images/wheel.png) no-repeat;width:195px;height:195px}.farbtastic .overlay{background:url(../images/mask.png) no-repeat}.farbtastic .marker{width:17px;height:17px;margin:-8px 0 0 -8px;overflow:hidden;background:url(../images/marker.png) no-repeat}css/admin-menu-rtl.min.css000064400000035475152213653150011502 0ustar00/*! This file is auto-generated */ #adminmenu,#adminmenu .wp-submenu,#adminmenuback,#adminmenuwrap{width:160px;background-color:#1d2327}#adminmenuback{position:fixed;top:0;bottom:-120px;z-index:1;outline:1px solid transparent}.php-error #adminmenuback{position:absolute}.php-error #adminmenuback,.php-error #adminmenuwrap{margin-top:2em}#adminmenu{clear:right;margin:12px 0;padding:0;list-style:none}.folded #adminmenu,.folded #adminmenu li.menu-top,.folded #adminmenuback,.folded #adminmenuwrap{width:36px}.menu-icon-appearance div.wp-menu-image,.menu-icon-comments div.wp-menu-image,.menu-icon-dashboard div.wp-menu-image,.menu-icon-generic div.wp-menu-image,.menu-icon-links div.wp-menu-image,.menu-icon-media div.wp-menu-image,.menu-icon-page div.wp-menu-image,.menu-icon-plugins div.wp-menu-image,.menu-icon-post div.wp-menu-image,.menu-icon-settings div.wp-menu-image,.menu-icon-site div.wp-menu-image,.menu-icon-tools div.wp-menu-image,.menu-icon-users div.wp-menu-image{background-image:none!important}#adminmenuwrap{position:relative;float:right;z-index:9990}#adminmenu *{-webkit-user-select:none;user-select:none}#adminmenu li{margin:0;padding:0}#adminmenu a{display:block;line-height:1.3;padding:2px 5px;color:#f0f0f1}#adminmenu .wp-submenu a{color:#c3c4c7;color:rgba(240,246,252,.7);font-size:13px;line-height:1.4;margin:0;padding:5px 0}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover{background:0 0}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a:hover,#adminmenu li.menu-top>a:focus{color:#72aee6}#adminmenu a:focus,#adminmenu a:hover,.folded #adminmenu .wp-submenu-head:hover{box-shadow:inset -4px 0 0 0 currentColor;transition:box-shadow .1s linear;border-radius:0}#adminmenu li.menu-top{border:none;min-height:34px;position:relative}#adminmenu .wp-submenu{list-style:none;position:absolute;top:-1000em;right:160px;overflow:visible;word-wrap:break-word;padding:6px 0;z-index:9999;background-color:#2c3338;box-shadow:0 3px 5px rgba(0,0,0,.2)}#adminmenu a.menu-top:focus+.wp-submenu,.js #adminmenu .opensub .wp-submenu,.js #adminmenu .sub-open,.no-js li.wp-has-submenu:hover .wp-submenu{top:-1px}#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{top:0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,.no-js li.wp-has-current-submenu:hover .wp-submenu{position:relative;z-index:3;top:auto;right:auto;left:auto;bottom:auto;border:0 none;margin-top:0;box-shadow:none}.folded #adminmenu .wp-has-current-submenu .wp-submenu{box-shadow:0 3px 5px rgba(0,0,0,.2)}#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{position:relative;background-color:#1d2327;color:#72aee6}.folded #adminmenu li.menu-top:hover,.folded #adminmenu li.opensub>a.menu-top,.folded #adminmenu li>a.menu-top:focus{z-index:10000}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu{background:#2271b1;color:#fff}.folded #adminmenu .opensub .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.folded #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.folded #adminmenu .wp-submenu.sub-open,.folded #adminmenu a.menu-top:focus+.wp-submenu,.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu{top:0;right:36px}.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em}#adminmenu .wp-not-current-submenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{min-width:160px;width:auto;border:1px solid transparent;border-right-width:5px}#adminmenu .opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-not-current-submenu li>a,.folded #adminmenu .wp-has-current-submenu li>a{padding-left:16px;padding-right:14px;transition:all .1s ease-in-out,outline 0s}#adminmenu .wp-has-current-submenu ul>li>a,.folded #adminmenu li.menu-top .wp-submenu>li>a{padding:5px 12px}#adminmenu .wp-submenu-head,#adminmenu a.menu-top{font-size:14px;font-weight:400;line-height:1.3;padding:0}#adminmenu .wp-submenu-head{display:none}.folded #adminmenu .wp-menu-name{position:absolute;right:-999px}.folded #adminmenu .wp-submenu-head{display:block}#adminmenu .wp-submenu li{padding:0;margin:0}#adminmenu .wp-menu-image img{padding:9px 0 0;opacity:.6}#adminmenu div.wp-menu-name{padding:8px 36px 8px 8px;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;hyphens:auto}#adminmenu div.wp-menu-image{float:right;width:36px;height:34px;margin:0;text-align:center}#adminmenu div.wp-menu-image.svg{background-repeat:no-repeat;background-position:center;background-size:20px auto}div.wp-menu-image:before{color:#a7aaad;color:rgba(240,246,252,.6);padding:7px 0;transition:all .1s ease-in-out}#adminmenu div.wp-menu-image:before{color:#a7aaad;color:rgba(240,246,252,.6)}#adminmenu .current div.wp-menu-image:before,#adminmenu .wp-has-current-submenu div.wp-menu-image:before,#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before{color:#fff}#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#72aee6}.folded #adminmenu div.wp-menu-image{width:35px;height:30px;position:absolute;z-index:25}.folded #adminmenu a.menu-top{height:34px}.sticky-menu #adminmenuwrap{position:fixed}ul#adminmenu a.wp-has-current-submenu{position:relative}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{left:0;border:solid 8px transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-left-color:#f0f0f1;top:50%;margin-top:-8px}.folded ul#adminmenu li.wp-has-current-submenu:focus-within a.wp-has-current-submenu:after,.folded ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.folded ul#adminmenu a.wp-has-current-submenu:after,.folded ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{left:0;border:8px solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;top:10px;z-index:10000}.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:18px}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-left-color:#2c3338}#adminmenu li.menu-top:hover .wp-menu-image img,#adminmenu li.wp-has-current-submenu .wp-menu-image img{opacity:1}#adminmenu li.wp-menu-separator{height:5px;padding:0;margin:0 0 6px;cursor:inherit}#adminmenu div.separator{height:2px;padding:0}#adminmenu .wp-submenu .wp-submenu-head{color:#fff;font-weight:400;font-size:14px;padding:5px 11px 5px 4px;margin:-8px -5px 4px -1px;border-width:3px 5px 3px 1px;border-style:solid;border-color:transparent}#adminmenu li.current,.folded #adminmenu li.wp-menu-open{border:0 none}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{display:inline-block;vertical-align:top;box-sizing:border-box;margin:1px 2px -1px 0;padding:0 5px;min-width:18px;height:18px;border-radius:9px;background-color:#d63638;color:#fff;font-size:11px;line-height:1.6;text-align:center;z-index:26}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod{background-color:#d63638;color:#fff}#adminmenu li span.count-0{display:none}#collapse-button{display:block;width:100%;height:34px;margin:0;border:none;padding:0;position:relative;overflow:visible;background:0 0;color:#a7aaad;cursor:pointer}#collapse-button:hover{color:#72aee6}#collapse-button:focus{color:#72aee6;outline:1px solid transparent;outline-offset:-1px}#collapse-button .collapse-button-icon,#collapse-button .collapse-button-label{display:block;position:absolute;top:0;right:0}#collapse-button .collapse-button-label{top:8px}#collapse-button .collapse-button-icon{width:36px;height:34px}#collapse-button .collapse-button-label{padding:0 36px 0 0}.folded #collapse-button .collapse-button-label{display:none}#collapse-button .collapse-button-icon:after{content:"\f148";content:"\f148"/'';display:block;position:relative;top:7px;text-align:center;font:normal 20px/1 dashicons!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.folded #collapse-button .collapse-button-icon:after,.rtl #collapse-button .collapse-button-icon:after{transform:rotate(180deg)}.rtl.folded #collapse-button .collapse-button-icon:after{transform:none}#collapse-button .collapse-button-icon:after,#collapse-button .collapse-button-label{transition:all .1s ease-in-out}li#wp-admin-bar-menu-toggle{display:none}.customize-support #menu-appearance a[href="themes.php?page=custom-background"],.customize-support #menu-appearance a[href="themes.php?page=custom-header"]{display:none}@media only screen and (max-width:960px){.auto-fold #wpcontent,.auto-fold #wpfooter{margin-right:36px}.auto-fold #adminmenu,.auto-fold #adminmenu li.menu-top,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{width:36px}.auto-fold #adminmenu .opensub .wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.auto-fold #adminmenu .wp-submenu.sub-open,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{top:0;right:36px}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu,.auto-fold #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em;margin-left:-1px;padding:6px 0;z-index:9999}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu{min-width:160px;width:auto;border:1px solid transparent;border-right-width:5px}.auto-fold #adminmenu .wp-has-current-submenu li>a{padding-left:16px;padding-right:14px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding-right:12px}.auto-fold #adminmenu .wp-menu-name{position:absolute;right:-999px}.auto-fold #adminmenu .wp-submenu-head{display:block}.auto-fold #adminmenu div.wp-menu-image{height:30px;width:34px;position:absolute;z-index:25}.auto-fold #adminmenu a.menu-top{min-height:34px}.auto-fold #adminmenu li.wp-menu-open{border:0 none}.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last{margin-bottom:0}.auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:16px}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}.auto-fold #adminmenu li.menu-top:hover,.auto-fold #adminmenu li.opensub>a.menu-top,.auto-fold #adminmenu li>a.menu-top:focus{z-index:10000}.auto-fold #collapse-menu .collapse-button-label{display:none}.auto-fold #collapse-button .collapse-button-icon:after{transform:rotate(180deg)}.rtl.auto-fold #collapse-button .collapse-button-icon:after{transform:none}}@media screen and (max-width:782px){.auto-fold #wpcontent{position:relative;margin-right:0;padding-right:10px}.sticky-menu #adminmenuwrap{position:relative;z-index:auto;top:0}.auto-fold #adminmenu,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{position:absolute;width:190px;z-index:100}.auto-fold #adminmenuback{position:fixed}.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{display:none}.auto-fold .wp-responsive-open #adminmenuback,.auto-fold .wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu li.menu-top{width:100%}.auto-fold #adminmenu li a{font-size:16px;padding:5px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding:10px 20px 10px 10px}.auto-fold #adminmenu .wp-menu-name{position:static}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li.current>a.current:after{border-width:8px;margin-top:-8px}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{display:none}#adminmenu .wp-submenu{position:relative;display:none}.auto-fold #adminmenu .selected .wp-submenu,.auto-fold #adminmenu .wp-menu-open .wp-submenu{position:relative;display:block;top:0;right:-1px;box-shadow:none}.auto-fold #adminmenu .selected .wp-submenu:after,.auto-fold #adminmenu .wp-menu-open .wp-submenu:after{display:none}.auto-fold #adminmenu .opensub .wp-submenu{display:none}.auto-fold #adminmenu .selected .wp-submenu{display:block}.auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:block}.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{position:relative;right:-1px;left:0;top:0}#adminmenu .wp-not-current-submenu .wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{border:none}#adminmenu .wp-submenu .wp-submenu-head{display:none}#wp-responsive-toggle{position:fixed;top:5px;right:4px;padding-left:10px;z-index:99999;border:none;box-sizing:border-box}#wpadminbar #wp-admin-bar-menu-toggle a{display:block;padding:0;overflow:hidden;outline:0;text-decoration:none;border:1px solid transparent;background:0 0;height:44px;margin-right:-1px}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#2c3338}li#wp-admin-bar-menu-toggle{display:block}#wpadminbar #wp-admin-bar-menu-toggle a:hover{border:1px solid transparent}#wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{content:"\f228";display:inline-block;float:right;font:normal 40px/45px dashicons;vertical-align:middle;outline:0;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:44px;width:50px;padding:0;border:none;text-align:center;text-decoration:none;box-sizing:border-box}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#72aee6}}@media screen and (max-width:600px){#adminmenuback,#adminmenuwrap{display:none}.wp-responsive-open #adminmenuback,.wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu{top:46px}}css/dashboard.min.css000064400000055514152213653150010574 0ustar00/*! This file is auto-generated */ #wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}#wpbody-content #dashboard-widgets.columns-2 .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4{float:right;width:50.5%}#wpbody-content #dashboard-widgets.columns-3 .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets.columns-3 #postbox-container-3,#wpbody-content #dashboard-widgets.columns-3 #postbox-container-4{float:right}#wpbody-content #dashboard-widgets.columns-4 .postbox-container{width:25%}#dashboard-widgets .postbox-container{width:25%}#dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container{border:none!important}#dashboard-widgets-wrap{overflow:hidden;margin:0 -8px}#dashboard-widgets .postbox{border-radius:8px}#dashboard-widgets .postbox-header .hndle{padding:12px 16px}#dashboard-widgets .postbox .inside{margin-bottom:0}#dashboard-widgets .meta-box-sortables{display:flow-root;min-height:0;margin:0 8px 20px}#dashboard-widgets .meta-box-sortables:not(:empty){margin-bottom:16px}#dashboard-widgets .postbox-container .empty-container{outline:2px dashed rgb(0,0,0,.15);outline-offset:-2px;border-radius:8px;height:250px;margin:4px}.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables{border-radius:8px;background:rgb(var(--wp-admin-theme-color--rgb),.04);min-height:100px}.is-dragging-metaboxes #dashboard-widgets .postbox-container .empty-container{background:rgb(0,0,0,.01)}#dashboard-widgets .postbox-container .empty-container:after{content:attr(data-emptystring);margin:auto;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);padding:0 2em;text-align:center;color:#646970;font-size:16px;line-height:1.5;display:none}#the-comment-list td.comment p.comment-author{margin-top:0;margin-left:0}#the-comment-list p.comment-author img{float:left;margin-right:8px}#the-comment-list p.comment-author strong a{border:none}#the-comment-list td{vertical-align:top}#the-comment-list td.comment{word-wrap:break-word}#the-comment-list td.comment img{max-width:100%}.index-php #screen-meta-links{margin:0 20px 8px 0}.welcome-panel{position:relative;overflow:auto;margin:16px 0;border-radius:8px;font-size:14px;line-height:1.3;clear:both}.welcome-panel h2{margin:0;font-size:48px;font-weight:600;line-height:1.25}.welcome-panel h3{margin:0;font-size:20px;font-weight:400;line-height:1.4}.welcome-panel p{font-size:inherit;line-height:inherit}.welcome-panel-header{position:relative;color:#fff}.welcome-panel-header-image{position:absolute!important;top:0;right:0;bottom:0;left:0;z-index:0!important;overflow:hidden}.welcome-panel-header-image svg{display:block;margin:auto;width:100%;height:100%}.rtl .welcome-panel-header-image svg{transform:scaleX(-1)}.welcome-panel-header *{color:inherit;position:relative;z-index:1}.welcome-panel-header a:focus,.welcome-panel-header a:hover{color:inherit;text-decoration:none}.welcome-panel .welcome-panel-close:focus,.welcome-panel-header a:focus{outline-color:currentColor;outline-offset:1px;box-shadow:none}.welcome-panel-header p{margin:.5em 0 0;font-size:20px;line-height:1.4}.welcome-panel .welcome-panel-close{display:flex;align-items:center;position:absolute;top:10px;right:10px;padding:10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none;z-index:1}.welcome-panel .welcome-panel-close:before{transition:all .1s ease-in-out;content:'\f335';font-size:24px;color:#fff}.welcome-panel .welcome-panel-close{color:#fff}.welcome-panel .welcome-panel-close:focus,.welcome-panel .welcome-panel-close:focus::before,.welcome-panel .welcome-panel-close:hover,.welcome-panel .welcome-panel-close:hover::before{color:#fff972}.wp-core-ui .welcome-panel .button.button-hero{margin:15px 13px 3px 0;padding:12px 36px;height:auto;line-height:1.4285714;white-space:normal}.welcome-panel-content{min-height:400px;display:flex;flex-direction:column;justify-content:space-between}.welcome-panel-header-wrap{background-color:#151515}.welcome-panel-header{box-sizing:border-box;margin-left:auto;margin-right:auto;max-width:1500px;width:100%;padding:48px 0 80px 48px}.welcome-panel .welcome-panel-column-container{box-sizing:border-box;width:100%;clear:both;display:grid;z-index:1;padding:24px;grid-template-columns:repeat(3,1fr);gap:32px;align-self:flex-end;background:#fff;border:1px solid #c3c4c7;border-top:0;border-radius:0 0 8px 8px}[class*=welcome-panel-icon]{height:60px;width:60px;background-position:center;background-size:24px 24px;background-repeat:no-repeat;border-radius:100%}.welcome-panel-column>svg{margin-top:4px}.welcome-panel-column{display:grid;grid-template-columns:min-content 1fr;gap:24px}.welcome-panel-icon-pages{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z' /%3E%3C/svg%3E")}.welcome-panel-icon-layout{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z' /%3E%3C/svg%3E")}.welcome-panel-icon-styles{background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' /%3E%3C/svg%3E")}.welcome-panel .welcome-widgets-menus{line-height:1.14285714}.welcome-panel .welcome-panel-column ul{margin:.8em 1em 1em 0}.welcome-panel li{font-size:14px}.welcome-panel li a{text-decoration:none}.welcome-panel .welcome-panel-column li{line-height:1.14285714;list-style-type:none;padding:0 0 8px}.welcome-panel .welcome-icon{background:0 0!important}#dashboard_right_now .search-engines-info:before,#dashboard_right_now li a:before,#dashboard_right_now li span:before,.welcome-panel .welcome-icon:before{color:#646970;font:normal 20px/1 dashicons;display:inline-block;padding:0 10px 0 0;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;vertical-align:top}.welcome-panel .welcome-edit-page:before,.welcome-panel .welcome-write-blog:before{content:"\f119";content:"\f119"/'';top:-3px}.welcome-panel .welcome-add-page:before{content:"\f132";content:"\f132"/'';top:-1px}.welcome-panel .welcome-setup-home:before{content:"\f102";content:"\f102"/'';top:-1px}.welcome-panel .welcome-view-site:before{content:"\f115";content:"\f115"/'';top:-2px}.welcome-panel .welcome-widgets-menus:before{content:"\f116";content:"\f116"/'';top:-2px}.welcome-panel .welcome-widgets:before{content:"\f538";content:"\f538"/'';top:-2px}.welcome-panel .welcome-menus:before{content:"\f163";content:"\f163"/'';top:-2px}.welcome-panel .welcome-comments:before{content:"\f117";content:"\f117"/'';top:-1px}.welcome-panel .welcome-learn-more:before{content:"\f118";content:"\f118"/'';top:-1px}#dashboard_right_now .search-engines-info:before,#dashboard_right_now li a:before,#dashboard_right_now li>span:before{padding:0 5px 0 0;content:"\f159";content:"\f159"/''}#dashboard_right_now .page-count a:before,#dashboard_right_now .page-count span:before{content:"\f105";content:"\f105"/''}#dashboard_right_now .post-count a:before,#dashboard_right_now .post-count span:before{content:"\f109";content:"\f109"/''}#dashboard_right_now .comment-count a:before{content:"\f101";content:"\f101"/''}#dashboard_right_now .comment-mod-count a:before{content:"\f125";content:"\f125"/''}#dashboard_right_now .storage-count a:before{content:"\f104";content:"\f104"/''}#dashboard_right_now .storage-count.warning a:before{content:"\f153";content:"\f153"/''}#dashboard_right_now .search-engines-info:before{content:"\f348";content:"\f348"/'';color:#d63638}.community-events-errors{margin:0}.community-events-loading{padding:10px 12px 8px}.community-events{margin-bottom:6px;padding:0 12px}.community-events .spinner{margin:0 2px 0}.community-events form[aria-hidden=true],.community-events-errors [aria-hidden=true],.community-events-errors[aria-hidden=true],.community-events-loading[aria-hidden=true],.community-events[aria-hidden=true]{display:none}.community-events .activity-block:first-child,.community-events h2{padding-top:12px;padding-bottom:10px}.community-events-form{margin:15px 0 5px;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.community-events-form .regular-text{width:40%;margin:0;min-height:32px;padding:0 8px}#dashboard-widgets .community-events-form .button{min-height:32px;line-height:2.30769231;padding:0 12px}.community-events li.event-none{border-left:4px solid var(--wp-admin-theme-color,#3858e9)}#dashboard-widgets .community-events li.event-none a{text-decoration:underline}.community-events-form label{line-height:2.14285714}.community-events .activity-block>p{margin-bottom:0;display:inline}.community-events-toggle-location{vertical-align:middle}#dashboard-widgets .community-events-cancel.button-link{text-decoration:underline}.community-events ul{background-color:rgba(var(--wp-admin-theme-color--rgb),.08);padding-left:0;padding-right:0;padding-bottom:0}.community-events li{margin:0;padding:8px 12px;color:#2c3338}.community-events li:first-child{border-top:1px solid #e9e9ed}.community-events li~li{border-top:1px solid #e9e9ed}.community-events .activity-block.last{border-bottom:1px solid #e9e9ed;padding-top:0;margin-top:-1px}.community-events .event-info{display:block}.community-events .ce-separator::before{content:"\2022";content:"\2022"/''}.event-icon{height:18px;padding-right:10px;width:18px;display:none}.event-icon:before{color:#646970;font-size:18px}.event-meetup .event-icon:before{content:"\f484";content:"\f484"/''}.event-wordcamp .event-icon:before{content:"\f486";content:"\f486"/''}.community-events .event-title{font-weight:600;display:block}.community-events .event-date,.community-events .event-time{display:block}.community-events-footer{margin-top:0;margin-bottom:0;padding:12px;border-top:1px solid #f0f0f1;color:#646970}.community-events-footer .screen-reader-text{height:inherit;white-space:nowrap}#dashboard_primary .inside{margin:0;padding:0}#dashboard_primary .widget-loading{padding:12px 12px 0;margin-bottom:1em!important}#dashboard_primary .inside .notice{margin:0}body #dashboard-widgets .postbox form .submit{margin:0}.dashboard-widget-control-form p{margin-top:0}.rssSummary{color:#646970;margin-top:4px}#dashboard_primary .rss-widget{font-size:13px;padding:0 12px}#dashboard_primary .rss-widget:last-child{border-bottom:none;padding-bottom:8px}#dashboard_primary .rss-widget a{font-weight:400}#dashboard_primary .rss-widget span,#dashboard_primary .rss-widget span.rss-date{color:#646970}#dashboard_primary .rss-widget span.rss-date{margin-left:12px}#dashboard_primary .rss-widget ul li{padding:4px 0;margin:0}#dashboard_right_now ul{margin:0;display:inline-block;width:100%}#dashboard_right_now li{width:50%;float:left;margin-bottom:10px}#dashboard_right_now .main p{margin:0}#dashboard_right_now #wp-version-message .button{float:right;position:relative;top:-5px;margin-left:5px}#dashboard_right_now p.search-engines-info{margin:1em 0}.mu-storage{overflow:hidden}#dashboard-widgets h3.mu-storage{margin:0 0 10px;padding:0;font-size:14px;font-weight:400}#network_dashboard_right_now p input{margin:2px 1px;vertical-align:middle}#dashboard_right_now .sub{color:#50575e;background:#f6f7f7;border-top:1px solid #f0f0f1;padding:10px 12px 6px}#dashboard_right_now .sub h3{color:#50575e}#dashboard_right_now .sub p{margin:0 0 1em}#dashboard_right_now .warning a:before,#dashboard_right_now .warning span:before{color:#d63638}#dashboard_quick_press .inside{margin:0;padding:0}#dashboard_quick_press div.updated{margin-bottom:10px;border:1px solid #f0f0f1;border-width:1px 1px 1px 0}#dashboard_quick_press form{margin:12px}#dashboard_quick_press .drafts{padding:10px 0 0}#dashboard_quick_press label{display:inline-block;margin-bottom:4px}#dashboard_quick_press input,#dashboard_quick_press textarea{box-sizing:border-box;margin:0}#dashboard-widgets .postbox form .submit{margin:-39px 0;float:right}#description-wrap{margin-top:12px}#quick-press textarea#content{min-height:90px;max-height:1300px;margin:0 0 8px;padding:8px 12px;resize:none}.js #dashboard_quick_press .drafts{border-top:1px solid #f0f0f1}#dashboard_quick_press .drafts abbr{border:none}#dashboard_quick_press .drafts .view-all{float:right;margin:0 12px 0 0}#dashboard_primary a.rsswidget{font-weight:400}#dashboard_quick_press .drafts ul{margin:0 12px}#dashboard_quick_press .drafts li{margin-bottom:1em}#dashboard_quick_press .drafts li time{color:#646970}#dashboard_quick_press .drafts p{margin:0;word-wrap:break-word}#dashboard_quick_press .draft-title{word-wrap:break-word}#dashboard_quick_press .draft-title a,#dashboard_quick_press .draft-title time{margin:0 5px 0 0}#dashboard-widgets h3,#dashboard-widgets h4,#dashboard_quick_press .drafts h2{margin:0 12px 8px;padding:0;font-size:14px;font-weight:400;color:#1d2327}#dashboard_quick_press .drafts h2{line-height:inherit}#dashboard-widgets .inside h3,#dashboard-widgets .inside h4{margin-left:0;margin-right:0}#dashboard_activity .comment-meta span.approve:before{content:"\f227";content:"\f227"/'';font:20px/.5 dashicons;margin-left:5px;vertical-align:middle;position:relative;top:-1px;margin-right:2px}#dashboard_activity .inside{margin:0;padding:0 12px}#dashboard_activity .no-activity{overflow:hidden;padding:12px 0;text-align:center}#dashboard_activity .no-activity p{color:#646970;font-size:16px}#dashboard_activity .subsubsub{float:none;border-top:1px solid #f0f0f1;margin:0 -12px;padding:8px 12px 4px}#dashboard_activity .subsubsub a .count,#dashboard_activity .subsubsub a.current .count{color:#646970}#future-posts ul,#published-posts ul{margin:8px -12px 0 -12px}#future-posts li,#published-posts li{display:grid;grid-template-columns:clamp(160px,calc(2vw + 140px),200px) auto;column-gap:10px;color:#646970;padding:4px 12px}#future-posts li:nth-child(odd),#published-posts li:nth-child(odd){background-color:#f6f7f7}.activity-block{border-bottom:1px solid #f0f0f1;margin:0 -12px 6px -12px;padding:8px 12px 4px}.activity-block:last-child{border-bottom:none;margin-bottom:0}.activity-block .subsubsub li{color:#646970}#activity-widget #the-comment-list div.undo,#activity-widget #the-comment-list tr.undo{background:0 0;padding:6px 0;margin-left:12px}#activity-widget #the-comment-list .comment-item{background:#f6f7f7;padding:12px;position:relative}#activity-widget #the-comment-list .avatar{position:absolute;top:12px}#activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar{padding-left:63px}#activity-widget #the-comment-list .dashboard-comment-wrap blockquote{margin:1em 0}#activity-widget #the-comment-list .comment-item p.row-actions{margin:4px 0 0}#activity-widget #the-comment-list .comment-item:first-child{border-top:1px solid #f0f0f1}#activity-widget #the-comment-list .unapproved{background-color:#fcf9e8}#activity-widget #the-comment-list .unapproved:before{content:"";display:block;position:absolute;left:0;top:0;bottom:0;background:#d63638;width:4px}#activity-widget #the-comment-list .spam-undo-inside .avatar,#activity-widget #the-comment-list .trash-undo-inside .avatar{position:relative;top:0}#dashboard-widgets #dashboard_browser_nag.postbox .inside{margin:10px}.postbox .button-link .edit-box{display:none}.edit-box{opacity:0}.edit-box:focus,.hndle:hover .edit-box{opacity:1}#dashboard-widgets form .input-text-wrap input{width:100%}#dashboard-widgets form .textarea-wrap textarea{width:100%}#dashboard-widgets .postbox form .submit{float:none;margin:.5em 0 0;padding:0;border:none}#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish{min-width:0}#dashboard-widgets .button-link,#dashboard-widgets li a,.community-events-footer a{text-decoration:none}#dashboard-widgets h2 a{text-decoration:underline}#dashboard-widgets .hndle .postbox-title-action{float:right;line-height:1.2}#dashboard_plugins h5{font-size:14px}#latest-comments #the-comment-list{position:relative;margin:0 -12px}#activity-widget #the-comment-list .comment,#activity-widget #the-comment-list .pingback{box-shadow:inset 0 1px 0 rgba(0,0,0,.06)}#activity-widget .comments #the-comment-list .alt{background-color:transparent}#activity-widget #latest-comments #the-comment-list .comment-item{min-height:50px;margin:0;padding:12px}#latest-comments #the-comment-list .pingback{padding-left:12px!important}#latest-comments #the-comment-list .comment-item:first-child{border-top:none}#latest-comments #the-comment-list .comment-meta{line-height:1.5;margin:0;color:#646970}#latest-comments #the-comment-list .comment-meta cite{font-style:normal;font-weight:400}#latest-comments #the-comment-list .comment-item blockquote,#latest-comments #the-comment-list .comment-item blockquote p{margin:0;padding:0;display:inline}#latest-comments #the-comment-list .comment-item p.row-actions{margin:3px 0 0;padding:0;font-size:13px}.rss-widget ul{margin:0;padding:0;list-style:none}a.rsswidget{font-size:13px;font-weight:600;line-height:1.4}.rss-widget ul li{line-height:1.5;margin-bottom:12px}.rss-widget span.rss-date{color:#646970;font-size:13px;margin-left:3px}.rss-widget cite{display:block;text-align:right;margin:0 0 1em;padding:0}.rss-widget cite:before{content:"\2014";content:"\2014"/''}.dashboard-comment-wrap{word-wrap:break-word}#dashboard_browser_nag a.update-browser-link{font-size:1.2em;font-weight:600}#dashboard_browser_nag a{text-decoration:underline}#dashboard_browser_nag p.browser-update-nag.has-browser-icon{padding-right:128px}#dashboard_browser_nag .browser-icon{margin-top:-32px}#dashboard_browser_nag.postbox{background-color:#b32d2e;background-image:none;border-color:#b32d2e;color:#fff;box-shadow:none}#dashboard_browser_nag.postbox h2{border-bottom-color:transparent;background:transparent none;color:#fff;box-shadow:none}#dashboard_browser_nag a{color:#fff}#dashboard_browser_nag.postbox .postbox-header{border-color:transparent}#dashboard_browser_nag h2.hndle{border:none;font-weight:600;font-size:20px;padding-top:10px}.postbox#dashboard_browser_nag p a.dismiss{font-size:14px}.postbox#dashboard_browser_nag a,.postbox#dashboard_browser_nag p,.postbox#dashboard_browser_nag p.browser-update-nag{font-size:16px}#dashboard_php_nag .dashicons-warning{color:#dba617;padding-right:6px}#dashboard_php_nag.php-no-security-updates .dashicons-warning,#dashboard_php_nag.php-version-lower-than-future-minimum .dashicons-warning{color:#d63638}#dashboard_php_nag h2{display:inline-block}#dashboard_php_nag p{margin:12px 0}.bigger-bolder-text{font-weight:600;font-size:14px}@media only screen and (min-width:1600px){.welcome-panel .welcome-panel-column-container{display:flex;justify-content:center}.welcome-panel-column{width:100%;max-width:460px}}@media only screen and (max-width:799px){#wpbody-content #dashboard-widgets .postbox-container{width:100%}#dashboard-widgets .meta-box-sortables{min-height:0}.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables{min-height:100px}#dashboard-widgets .meta-box-sortables.empty-container{margin-bottom:0}}@media only screen and (min-width:800px) and (max-width:1499px){#wpbody-content #dashboard-widgets .postbox-container{width:49.5%}#wpbody-content #dashboard-widgets #postbox-container-2,#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:right;width:50.5%}#dashboard-widgets #postbox-container-3 .empty-container,#dashboard-widgets #postbox-container-4 .empty-container{border:none;height:0;min-height:0;margin-bottom:0;display:none}#dashboard-widgets #postbox-container-3 .empty-container:after,#dashboard-widgets #postbox-container-4 .empty-container:after{display:none}#wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container{width:100%}#wpbody #dashboard-widgets .metabox-holder.columns-1 .postbox-container .empty-container{border:none;height:0;min-height:0;margin-bottom:0}.index-php .columns-prefs,.index-php .screen-layout{display:block}.columns-prefs .columns-prefs-3,.columns-prefs .columns-prefs-4{display:none}#dashboard-widgets .postbox-container .empty-container:after{display:block}}@media only screen and (min-width:1500px) and (max-width:1800px){#wpbody-content #dashboard-widgets .postbox-container{width:33.5%}#wpbody-content #dashboard-widgets #postbox-container-1{width:33%}#wpbody-content #dashboard-widgets #postbox-container-3,#wpbody-content #dashboard-widgets #postbox-container-4{float:right}#dashboard-widgets #postbox-container-4 .empty-container{border:none;height:0;min-height:0;margin-bottom:0;display:none}#dashboard-widgets #postbox-container-4 .empty-container:after{display:none}#dashboard-widgets .postbox-container .empty-container:after{display:block}}@media only screen and (min-width:1801px){#dashboard-widgets .postbox-container .empty-container:after{display:block}}@media screen and (max-width:870px){.welcome-panel .welcome-panel-column li{display:inline-block;margin-right:13px}.welcome-panel .welcome-panel-column ul{margin:.4em 0 0}}@media screen and (max-width:1180px) and (min-width:783px){.welcome-panel-column{grid-template-columns:1fr}.welcome-panel-column>svg,[class*=welcome-panel-icon]{display:none}}@media screen and (max-width:782px){.welcome-panel .welcome-panel-column-container{grid-template-columns:1fr;box-sizing:border-box;padding:32px;width:100%}.welcome-panel .welcome-panel-column-content{max-width:520px}.welcome-panel .welcome-panel-close{overflow:hidden;text-indent:40px;white-space:nowrap;width:20px;height:20px;padding:5px;top:5px;right:5px}.welcome-panel .welcome-panel-close::before{position:absolute;top:5px;left:-35px}#dashboard-widgets h2{padding:12px}#dashboard_recent_comments #the-comment-list .comment-item .avatar{height:30px;width:30px;margin:4px 10px 5px 0}.community-events-toggle-location{height:38px;vertical-align:baseline}#community-events-submit{margin-bottom:0}#dashboard-widgets .community-events-cancel.button-link,.community-events-form label{font-size:14px;line-height:normal;padding:6px 0;border:1px solid transparent}}@media screen and (max-width:600px){.welcome-panel-header{padding:32px 32px 64px}.welcome-panel-header-image{display:none}}@media screen and (max-width:480px){.welcome-panel-column{gap:16px}}@media screen and (max-width:360px){.welcome-panel-column{grid-template-columns:1fr}.welcome-panel-column>svg,[class*=welcome-panel-icon]{display:none}}@media screen and (min-width:355px){.community-events .event-info{display:table-row;float:left;max-width:59%}.event-icon,.event-icon[aria-hidden=true]{display:table-cell}.event-info-inner{display:table-cell}.community-events .event-date-time{float:right;max-width:39%}.community-events .event-date,.community-events .event-time{text-align:right}}css/media.css000064400000066753152213653150007151 0ustar00/*------------------------------------------------------------------------------ 14.0 - Media Screen ------------------------------------------------------------------------------*/ .media-item .describe { border-collapse: collapse; width: 100%; border-top: 1px solid #dcdcde; clear: both; cursor: default; } .media-item.media-blank .describe { border: 0; } .media-item .describe th { vertical-align: top; text-align: left; padding: 5px 10px 10px; width: 140px; } .media-item .describe .align th { padding-top: 0; } .media-item .media-item-info tr { background-color: transparent; } .media-item .describe td { padding: 0 8px 8px 0; vertical-align: top; } .media-item thead.media-item-info td { padding: 4px 10px 0; } .media-item .media-item-info .A1B1 { padding: 0 0 0 10px; } .media-item td.savesend { padding-bottom: 15px; } .media-item .thumbnail { max-height: 128px; max-width: 128px; } .media-list-subtitle { display: block; } .media-list-title { display: block; } #wpbody-content #async-upload-wrap a { display: none; } .media-upload-form { margin-top: 20px; } .media-upload-form td label { margin-right: 6px; margin-left: 2px; } .media-upload-form .align .field label { display: inline; padding: 0 0 0 23px; margin: 0 1em 0 3px; font-weight: 600; } .media-upload-form tr.image-size label { margin: 0 0 0 5px; font-weight: 600; } .media-upload-form th.label label { font-weight: 600; margin: 0.5em; font-size: 13px; } .media-upload-form th.label label span { padding: 0 5px; } .media-item .describe input[type="text"], .media-item .describe textarea { width: 460px; } .media-item .describe p.help { margin: 0; padding: 0 0 0 5px; } .describe-toggle-on, .describe-toggle-off { display: block; line-height: 2.76923076; float: right; margin-right: 10px; } .media-item .attachment-tools { display: flex; align-items: center; } .media-item .edit-attachment { padding: 14px 0; display: block; margin-right: 10px; } .media-item .edit-attachment.copy-to-clipboard-container { display: flex; margin-top: 0; } .media-item-copy-container .success { line-height: 0; } .media-item button .copy-attachment-url { margin-top: 14px; } .media-item .copy-to-clipboard-container { margin-top: 7px; } .media-item .describe-toggle-off, .media-item.open .describe-toggle-on { display: none; } .media-item.open .describe-toggle-off { display: block; } .media-upload-form .media-item { min-height: 70px; margin-bottom: 1px; position: relative; width: 100%; background: #fff; } .media-upload-form .media-item, .media-upload-form .media-item .error { box-shadow: 0 1px 0 #dcdcde; } #media-items:empty { border: 0 none; } .media-item .filename { padding: 14px 2px; overflow: hidden; margin-left: 4px; } .media-item .pinkynail { float: left; margin: 14px; max-height: 70px; max-width: 70px; } .media-item .startopen, .media-item .startclosed { display: none; } .media-item .progress { display: inline-block; height: 22px; margin: 0 6px 7px; width: 200px; line-height: 2em; padding: 0; overflow: hidden; border-radius: 22px; background: #dcdcde; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .media-item .bar { z-index: 9; width: 0; height: 100%; margin-top: -22px; border-radius: 22px; background-color: #2271b1; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3); } .media-item .progress .percent { z-index: 10; position: relative; width: 200px; padding: 0; color: #fff; text-align: center; line-height: 22px; font-weight: 400; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .upload-php .fixed .column-parent { width: 15%; } .js .html-uploader #plupload-upload-ui { display: none; } .js .html-uploader #html-upload-ui { display: block; } #html-upload-ui #async-upload { font-size: 1em; } .media-upload-form .media-item.error, .media-upload-form .media-item .error { width: auto; margin: 0 0 1px; } .media-upload-form .media-item .error { padding: 10px 0 10px 14px; min-height: 50px; } .media-item .error-div button.dismiss { float: right; margin: 0 10px 0 15px; } /*------------------------------------------------------------------------------ 14.1 - Media Library ------------------------------------------------------------------------------*/ .find-box { background-color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); width: 600px; overflow: hidden; margin-left: -300px; position: fixed; top: 30px; bottom: 30px; left: 50%; z-index: 100105; } .find-box-head { background: #fff; border-bottom: 1px solid #dcdcde; height: 36px; font-size: 18px; font-weight: 600; line-height: 2; padding: 0 36px 0 16px; position: absolute; top: 0; left: 0; right: 0; } .find-box-inside { overflow: auto; padding: 16px; background-color: #fff; position: absolute; top: 37px; bottom: 45px; overflow-y: scroll; width: 100%; box-sizing: border-box; } .find-box-search { padding-bottom: 16px; } .find-box-search .spinner { float: none; left: 105px; position: absolute; } .find-box-search, #find-posts-response { position: relative; /* RTL fix, #WP28010 */ } #find-posts-input, #find-posts-search { float: left; } #find-posts-input { width: 140px; height: 28px; margin: 0 4px 0 0; } .widefat .found-radio { padding-right: 0; width: 16px; } #find-posts-close { width: 36px; height: 36px; border: none; padding: 0; position: absolute; top: 0; right: 0; cursor: pointer; text-align: center; background: none; color: #646970; } #find-posts-close:hover, #find-posts-close:focus { color: var(--wp-admin-theme-color-darker-20, #183ad6); } #find-posts-close:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } #find-posts-close:before { font: normal 20px/36px dashicons; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\f158"; content: "\f158" / ''; } .find-box-buttons { padding: 8px 16px; background: #fff; border-top: 1px solid #dcdcde; position: absolute; bottom: 0; left: 0; right: 0; } @media screen and (max-width: 782px) { .find-box-inside { bottom: 57px; } } @media screen and (max-width: 660px) { .find-box { top: 0; bottom: 0; left: 0; right: 0; margin: 0; width: 100%; } } .ui-find-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; opacity: 0.7; filter: alpha(opacity=70); z-index: 100100; } .drag-drop #drag-drop-area { border: 4px dashed #c3c4c7; height: 200px; } .drag-drop .drag-drop-inside { margin: 60px auto 0; width: 250px; } .drag-drop-inside p { font-size: 14px; margin: 5px 0; display: none; } .drag-drop .drag-drop-inside p { text-align: center; } .drag-drop-inside p.drag-drop-info { font-size: 20px; } .drag-drop .drag-drop-inside p, .drag-drop-inside p.drag-drop-buttons { display: block; } /* #drag-drop-area:-moz-drag-over { border-color: #83b4d8; } border color while dragging a file over the uploader drop area */ .drag-drop.drag-over #drag-drop-area { border-color: #9ec2e6; } #plupload-upload-ui { position: relative; } .post-type-attachment .wp-filter select { margin: 0 6px 0 0; } /** * Media Library grid view */ .media-frame.mode-grid, .media-frame.mode-grid .media-frame-content, .media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments, .media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper, .media-frame.mode-grid .uploader-inline-content { position: static; } /* Regions we don't use at all */ .media-frame.mode-grid .media-frame-title, .media-frame.mode-grid .media-frame-router, .media-frame.mode-grid .media-frame-menu { display: none; } .media-frame.mode-grid .media-frame-content { background-color: transparent; border: none; } .upload-php .mode-grid .media-sidebar { position: relative; width: auto; margin-top: 12px; padding: 0 16px; border-left: 4px solid #d63638; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); background-color: #fff; } .upload-php .mode-grid .hide-sidebar .media-sidebar { display: none; } .upload-php .mode-grid .media-sidebar .media-uploader-status { border-bottom: none; padding-bottom: 0; max-width: 100%; } .upload-php .mode-grid .media-sidebar .upload-error { margin: 12px 0; padding: 4px 0 0; border: none; box-shadow: none; background: none; } .upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2 { display: none; } .media-frame.mode-grid .uploader-inline { position: relative; top: auto; right: auto; left: auto; bottom: auto; padding-top: 0; margin-top: 20px; border: 4px dashed #c3c4c7; } .media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments, .media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper { position: relative; top: 94px; /* prevent jumping up when the toolbar becomes fixed */ padding-bottom: 94px; /* offset for above so the bottom doesn't get cut off */ } .media-frame.mode-grid .attachment:focus, .media-frame.mode-grid .selected.attachment:focus, .media-frame.mode-grid .attachment.details:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -6px; } .media-frame.mode-grid .selected.attachment { box-shadow: inset 0 0 0 5px #f0f0f1, inset 0 0 0 7px #c3c4c7; } .media-frame.mode-grid .attachment.details { box-shadow: inset 0 0 0 3px #f0f0f1, inset 0 0 0 7px var(--wp-admin-theme-color, #3858e9); } .media-frame.mode-grid.mode-select .attachment .thumbnail { opacity: 0.65; } .media-frame.mode-select .attachment.selected .thumbnail { opacity: 1; } .media-frame.mode-grid .media-toolbar { margin-bottom: 15px; height: auto; } .media-frame.mode-grid .media-toolbar label:not(.media-search-input-label) { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } .media-frame.mode-grid .media-toolbar select { margin: 0 10px 0 0; min-height: 32px; line-height: 2.14285714; /* 30px for 32px height with 14px font */ padding: 0 24px 0 8px; } .media-frame.mode-grid .media-toolbar input[type="search"] { min-height: 32px; padding: 0 8px; } .media-frame.mode-grid .media-toolbar-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button { margin: 0 8px 0 0; height: 100%; } .media-frame.mode-grid .attachments-browser .bulk-select { display: inline-block; margin: 0 10px 0 0; } .media-frame.mode-grid .search { margin-top: 0; } .media-frame-content .media-search-input-label { vertical-align: baseline; } .attachments-browser .media-toolbar-secondary > .media-button { margin-right: 10px; } .media-frame.mode-select .attachments-browser.fixed .media-toolbar { position: fixed; top: 32px; left: auto; right: 20px; margin-top: 0; } .media-frame.mode-grid .attachments-browser { padding: 0; } .media-frame.mode-grid .attachments-browser .attachments { padding: 2px; } .media-frame.mode-grid .attachments-browser .no-media { color: #646970; /* same as no plugins and no themes */ font-size: 18px; font-style: normal; margin: 0; padding: 100px 0 0; text-align: center; } /** * Attachment details modal */ .edit-attachment-frame { display: block; height: 100%; width: 100%; } .edit-attachment-frame .edit-media-header { overflow: hidden; } .upload-php .media-modal-close .media-modal-icon:before { content: "\f335"; content: "\f335" / ''; font-size: 22px; } .upload-php .media-modal-close, .edit-attachment-frame .edit-media-header .left, .edit-attachment-frame .edit-media-header .right { cursor: pointer; color: #787c82; background-color: transparent; height: 50px; width: 50px; padding: 0; position: absolute; text-align: center; border: 0; border-left: 1px solid #dcdcde; transition: color .1s ease-in-out, background .1s ease-in-out; } .upload-php .media-modal-close { top: 0; right: 0; } .edit-attachment-frame .edit-media-header .left { right: 102px; } .edit-attachment-frame .edit-media-header .right { right: 51px; } .edit-attachment-frame .media-frame-title { left: 0; right: 150px; /* leave space for prev/next/close */ } .edit-attachment-frame .edit-media-header .right:before, .edit-attachment-frame .edit-media-header .left:before { font: normal 20px/50px dashicons !important; display: inline; font-weight: 300; } .upload-php .media-modal-close:hover, .upload-php .media-modal-close:focus, .edit-attachment-frame .edit-media-header .left:hover, .edit-attachment-frame .edit-media-header .right:hover, .edit-attachment-frame .edit-media-header .left:focus, .edit-attachment-frame .edit-media-header .right:focus { background: #dcdcde; border-color: #c3c4c7; color: #000; outline: none; box-shadow: none; } .upload-php .media-modal-close:focus, .edit-attachment-frame .edit-media-header .left:focus, .edit-attachment-frame .edit-media-header .right:focus { /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .upload-php .media-modal-close:focus .media-modal-icon:before, .upload-php .media-modal-close:hover .media-modal-icon:before { color: #000; } .edit-attachment-frame .edit-media-header .left:before { content: "\f341"; content: "\f341" / ''; } .edit-attachment-frame .edit-media-header .right:before { content: "\f345"; content: "\f345" / ''; } .edit-attachment-frame .edit-media-header [disabled], .edit-attachment-frame .edit-media-header [disabled]:hover { color: #c3c4c7; background: inherit; cursor: default; } .edit-attachment-frame .media-frame-content, .edit-attachment-frame .media-frame-router { left: 0; } .edit-attachment-frame .media-frame-content { border-bottom: none; bottom: 0; top: 50px; } .edit-attachment-frame .attachment-details { position: absolute; overflow: auto; top: 0; bottom: 0; right: 0; left: 0; box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, 0.1); } .edit-attachment-frame .attachment-media-view { float: left; width: 65%; height: 100%; } .edit-attachment-frame .attachment-media-view .thumbnail { box-sizing: border-box; padding: 16px; height: 100%; } .edit-attachment-frame .attachment-media-view .details-image { display: block; margin: 0 auto 16px; max-width: 100%; max-height: 90%; max-height: calc( 100% - 42px ); /* leave space for actions underneath */ background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 0 0, 10px 10px; background-size: 20px 20px; } .edit-attachment-frame .attachment-media-view .details-image.icon { background: none; } .edit-attachment-frame .attachment-media-view .attachment-actions { text-align: center; } .edit-attachment-frame .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } .edit-attachment-frame .wp-media-wrapper { margin-bottom: 12px; } .edit-attachment-frame input, .edit-attachment-frame textarea { padding: 4px 8px; line-height: 1.42857143; } .edit-attachment-frame .attachment-info { overflow: auto; box-sizing: border-box; margin-bottom: 0; padding: 12px 16px 0; width: 35%; height: 100%; box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, 0.1); border-bottom: 0; border-left: 1px solid #dcdcde; background: #f6f7f7; } .edit-attachment-frame .attachment-info .details, .edit-attachment-frame .attachment-info .settings { position: relative; /* RTL fix, #WP29352 */ overflow: hidden; float: none; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #dcdcde; } .edit-attachment-frame .attachment-info .filename { font-weight: 400; color: #646970; } .edit-attachment-frame .attachment-info .thumbnail { margin-bottom: 12px; } .attachment-info .actions { margin-bottom: 16px; } .attachment-info .actions a { display: inline; text-decoration: none; } .copy-to-clipboard-container { display: flex; align-items: center; margin-top: 8px; clear: both; } .copy-to-clipboard-container .copy-attachment-url { white-space: normal; } .copy-to-clipboard-container .success { color: #007017; margin-left: 8px; } /*------------------------------------------------------------------------------ 14.2 - Image Editor ------------------------------------------------------------------------------*/ .wp_attachment_details .attachment-alt-text { margin-bottom: 5px; } .wp_attachment_details #attachment_alt { max-width: 500px; height: 3.28571428em; } .wp_attachment_details .attachment-alt-text-description { margin-top: 5px; } .wp_attachment_details label[for="content"] { font-size: 13px; line-height: 1.5; margin: 1em 0; } .wp_attachment_details #attachment_caption { height: 4em; } .describe .image-editor { vertical-align: top; } .imgedit-wrap { position: relative; padding-top: 10px; } .image-editor p, .image-editor fieldset { margin: 8px 0; } .image-editor legend { margin-bottom: 5px; } .describe .imgedit-wrap .image-editor { padding: 0 5px; } .wp_attachment_holder div.updated { margin-top: 0; } .wp_attachment_holder .imgedit-wrap > div { height: auto; } .imgedit-panel-content { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; } .imgedit-settings { max-width: 240px; /* Prevent reflow when help info is expanded. */ } .imgedit-group-controls > * { display: none; } .imgedit-panel-active .imgedit-group-controls > * { display: block; } .imgedit-panel-active .imgedit-group-controls > .imgedit-crop-apply { display: flex; } .imgedit-crop-apply { gap: 4px; flex-wrap: wrap; } .wp_attachment_holder .imgedit-wrap .image-editor { float: right; width: 250px; } .image-editor input { margin-top: 0; vertical-align: middle; } .imgedit-wait { position: absolute; top: 0; bottom: 0; width: 100%; background: #fff; opacity: 0.7; filter: alpha(opacity=70); display: none; } .imgedit-wait:before { content: ""; display: block; width: 20px; height: 20px; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -10px; background: transparent url(../images/spinner.gif) no-repeat center; background-size: 20px 20px; transform: translateZ(0); } .no-float { float: none; } .media-disabled, .image-editor .disabled { /* WCAG 1.4.3 Text or images of text that are part of an inactive user interface component ... have no contrast requirement. */ color: #a7aaad; } .A1B1 { overflow: hidden; } .wp_attachment_image .button, .A1B1 .button { float: left; } .no-js .wp_attachment_image .button { display: none; } .wp_attachment_image .spinner, .A1B1 .spinner { float: left; } .imgedit-menu .note-no-rotate { clear: both; margin: 0; padding: 1em 0 0; } .imgedit-menu .button:after, .imgedit-menu .button:before { font: normal 16px/1 dashicons; margin-right: 8px; vertical-align: middle; position: relative; top: -2px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .imgedit-menu .imgedit-rotate.button:after { content: '\f140'; margin-left: 2px; margin-right: 0; } .imgedit-menu .imgedit-rotate.button[aria-expanded="true"]:after { content: '\f142'; } .imgedit-menu .button.disabled { color: #a7aaad; border-color: #dcdcde; background: #f6f7f7; box-shadow: none; text-shadow: 0 1px 0 #fff; cursor: default; transform: none; } .imgedit-crop:before { content: "\f165"; content: "\f165" / ''; } .imgedit-scale:before { content: "\f211"; content: "\f211" / ''; } .imgedit-rotate:before { content: "\f167"; content: "\f167" / ''; } .imgedit-undo:before { content: "\f171"; content: "\f171" / ''; } .imgedit-redo:before { content: "\f172"; content: "\f172" / ''; } .imgedit-crop-wrap { position: relative; } .imgedit-crop-wrap img { background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 0 0, 10px 10px; background-size: 20px 20px; } .imgedit-crop-wrap { padding: 20px; background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 0 0, 10px 10px; background-size: 20px 20px; } .imgedit-crop { margin: 0 8px 0 0; } .imgedit-rotate { margin: 0 8px 0 3px; } .imgedit-undo { margin: 0 3px; } .imgedit-redo { margin: 0 8px 0 3px; } .imgedit-thumbnail-preview-group { display: flex; flex-wrap: wrap; column-gap: 10px; } .imgedit-thumbnail-preview { margin: 10px 8px 0 0; } .imgedit-thumbnail-preview-caption { display: block; } #poststuff .imgedit-group-top h2 { display: inline-block; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; } #poststuff .imgedit-group-top .button-link { text-decoration: none; color: #1d2327; } .imgedit-applyto .imgedit-label { display: block; padding: .5em 0 0; } .imgedit-popup-menu, .imgedit-help { display: none; padding-bottom: 8px; } .imgedit-panel-tools > .imgedit-menu { display: flex; column-gap: 4px; align-items: flex-start; flex-wrap: wrap; } .imgedit-popup-menu { width: calc( 100% - 20px ); position: absolute; background: #fff; padding: 10px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); } .image-editor .imgedit-menu .imgedit-popup-menu button { display: block; margin: 2px 0; width: 100%; white-space: break-spaces; line-height: 1.5; padding-top: 3px; padding-bottom: 2px; } .imgedit-rotate-menu-container { position: relative; } .imgedit-help.imgedit-restore { padding-bottom: 0; } /* higher specificity than buttons */ .image-editor .imgedit-settings .imgedit-help-toggle, .image-editor .imgedit-settings .imgedit-help-toggle:hover, .image-editor .imgedit-settings .imgedit-help-toggle:active { border: 1px solid transparent; margin: -1px 0 0 -1px; padding: 0; background: transparent; color: #2271b1; font-size: 20px; line-height: 1; cursor: pointer; box-sizing: content-box; box-shadow: none; } .image-editor .imgedit-settings .imgedit-help-toggle:focus { color: #2271b1; border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .form-table td.imgedit-response { padding: 0; } .imgedit-submit-btn { margin-left: 20px; } .imgedit-wrap .nowrap { white-space: nowrap; font-size: 12px; line-height: inherit; } span.imgedit-scale-warn { display: flex; align-items: center; margin: 4px; gap: 4px; color: #b32d2e; font-style: normal; visibility: hidden; vertical-align: middle; } .imgedit-save-target { margin: 8px 0; } .imgedit-save-target legend { font-weight: 600; } .imgedit-group { margin-bottom: 20px; } .image-editor .imgedit-original-dimensions { display: inline-block; } .image-editor .imgedit-scale-controls input[type="text"], .image-editor .imgedit-crop-ratio input[type="text"], .image-editor .imgedit-crop-sel input[type="text"], .image-editor .imgedit-scale-controls input[type="number"], .image-editor .imgedit-crop-ratio input[type="number"], .image-editor .imgedit-crop-sel input[type="number"] { width: 80px; font-size: 14px; padding: 0 8px; } .imgedit-separator { display: inline-block; width: 7px; text-align: center; font-size: 13px; color: #3c434a; } .image-editor .imgedit-scale-button-wrapper { margin-top: 0.3077em; display: block; } .image-editor .imgedit-scale-controls .button { margin-bottom: 0; } audio, video { display: inline-block; max-width: 100%; } .wp-core-ui .mejs-container { width: 100%; max-width: 100%; } .wp-core-ui .mejs-container * { box-sizing: border-box; } .wp-core-ui .mejs-time { box-sizing: content-box; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { .imgedit-wait:before { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 782px) { .edit-attachment-frame input, .edit-attachment-frame textarea { line-height: 1.5; } .wp_attachment_details label[for="content"] { font-size: 14px; line-height: 1.5; } .wp_attachment_details textarea { line-height: 1.5; } .wp_attachment_details #attachment_alt { height: 3.375em; } .media-upload-form .media-item.error, .media-upload-form .media-item .error { font-size: 13px; line-height: 1.5; } .media-upload-form .media-item.error { padding: 1px 10px; } .media-upload-form .media-item .error { padding: 10px 0 10px 12px; } .image-editor .imgedit-scale input[type="text"], .image-editor .imgedit-crop-ratio input[type="text"], .image-editor .imgedit-crop-sel input[type="text"] { font-size: 16px; padding: 6px 10px; } .wp_attachment_holder .imgedit-wrap .imgedit-panel-content, .wp_attachment_holder .imgedit-wrap .image-editor { float: none; width: auto; max-width: none; padding-bottom: 16px; } .copy-to-clipboard-container .success { font-size: 14px; } /* Restructure image editor on narrow viewports. */ .imgedit-crop-wrap img{ width: 100%; } .media-modal .imgedit-wrap .imgedit-panel-content, .media-modal .imgedit-wrap .image-editor { position: initial !important; } .media-modal .imgedit-wrap .image-editor { box-sizing: border-box; width: 100% !important; } .image-editor .imgedit-scale-button-wrapper { display: inline-block; } } @media only screen and (max-width: 600px) { .media-item-wrapper { grid-template-columns: 1fr; } } /** * Media queries for media grid. */ @media only screen and (max-width: 1120px) { /* override for media-views.css */ #wp-media-grid .wp-filter .attachment-filters { max-width: 100%; } } @media only screen and (max-width: 1000px) { /* override for forms.css */ .wp-filter p.search-box { float: none; width: 100%; margin-bottom: 20px; display: flex; flex-wrap: nowrap; column-gap: 0; } .wp-filter p.search-box #media-search-input { width: 100%; } } @media only screen and (max-width: 782px) { .media-frame.mode-select .attachments-browser.fixed .media-toolbar { top: 46px; right: 10px; } } @media only screen and (max-width: 600px) { .media-frame.mode-select .attachments-browser.fixed .media-toolbar { top: 0; } } @media only screen and (max-width: 480px) { .edit-attachment-frame .media-frame-title { right: 110px; } .upload-php .media-modal-close, .edit-attachment-frame .edit-media-header .left, .edit-attachment-frame .edit-media-header .right { width: 40px; height: 40px; } .edit-attachment-frame .edit-media-header .right:before, .edit-attachment-frame .edit-media-header .left:before { line-height: 40px !important; } .edit-attachment-frame .edit-media-header .left { right: 82px; } .edit-attachment-frame .edit-media-header .right { right: 41px; } .edit-attachment-frame .media-frame-content { top: 40px; } .edit-attachment-frame .attachment-media-view { float: none; height: auto; width: 100%; } .edit-attachment-frame .attachment-info { height: auto; width: 100%; } } @media only screen and (max-width: 640px), screen and (max-height: 400px) { .upload-php .mode-grid .media-sidebar{ max-width: 100%; } } @media only screen and (max-width: 375px) { .media-item .attachment-tools { align-items: baseline; } .media-item .edit-attachment.copy-to-clipboard-container { flex-direction: column; } .copy-to-clipboard-container .success { line-height: normal; margin-top: 10px; } } css/widgets-rtl.css000064400000042737152213653150010333 0ustar00/*! This file is auto-generated */ /* General Widgets Styles */ .widget { margin: 0 auto 10px; position: relative; box-sizing: border-box; } .widget.open { z-index: 99; } .widget.open:focus-within { z-index: 100; } .widget-top { font-size: 13px; font-weight: 600; background: #f6f7f7; } .widget-top .widget-action { border: 0; margin: 0; padding: 10px; background: none; cursor: pointer; } .widget-title h3, .widget-title h4 { margin: 0; padding: 15px; font-size: 1em; line-height: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-user-select: none; user-select: none; } .widgets-holder-wrap .widget-inside { border-top: none; padding: 1px 15px 15px; line-height: 1.23076923; } .widget.widget-dirty .widget-control-close-wrapper { display: none; } .in-widget-title, #widgets-right a.widget-control-edit, #available-widgets .widget-description { color: #646970; } .deleting .widget-title, .deleting .widget-top .widget-action .toggle-indicator:before { color: #a7aaad; } /* Media Widgets */ .wp-core-ui .media-widget-control.selected .placeholder, .wp-core-ui .media-widget-control.selected .not-selected, .wp-core-ui .media-widget-control .selected { display: none; } .media-widget-control.selected .selected { display: inline-block; } .media-widget-buttons { text-align: right; margin-top: 0; } .media-widget-control .media-widget-buttons .button { width: auto; height: auto; margin-top: 12px; white-space: normal; } .media-widget-buttons .button:first-child { margin-left: 8px; } .media-widget-control .attachment-media-view .button-add-media, .media-widget-control .placeholder { border: 1px dashed #c3c4c7; box-sizing: border-box; cursor: pointer; line-height: 1.6; padding: 9px 0; position: relative; text-align: center; width: 100%; } .media-widget-control .attachment-media-view .button-add-media { cursor: pointer; background-color: #f0f0f1; color: #2c3338; } .media-widget-control .attachment-media-view .button-add-media:hover { background-color: #fff; } .media-widget-control .attachment-media-view .button-add-media:focus { background-color: #fff; border-style: solid; border-color: #4f94d4; box-shadow: 0 0 3px rgba(34, 113, 177, 0.8); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .media-widget-control .media-widget-preview { background: transparent; text-align: center; } .media-widget-control .media-widget-preview .notice { text-align: initial; } .media-frame .media-widget-embed-notice p code, .media-widget-control .notice p code { padding: 0 0 0 3px; } .media-frame .media-widget-embed-notice { margin-top: 16px; } .media-widget-control .media-widget-preview img { max-width: 100%; vertical-align: middle; background-image: linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(-45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 100% 0, 10px 10px; background-size: 20px 20px; } .media-widget-control .media-widget-preview .wp-video-shortcode { background: #000; } .media-frame.media-widget .media-toolbar-secondary { min-width: 300px; } .media-frame.media-widget .image-details .embed-media-settings .setting.align, .media-frame.media-widget .attachment-display-settings .setting.align, .media-frame.media-widget .embed-media-settings .setting.align, .media-frame.media-widget .embed-media-settings .legend-inline, .media-frame.media-widget .embed-link-settings .setting.link-text, .media-frame.media-widget .replace-attachment, .media-frame.media-widget .checkbox-setting.autoplay { display: none; } .media-widget-video-preview { width: 100%; } .media-widget-video-link { display: inline-block; min-height: 132px; width: 100%; background: #000; } .media-widget-video-link .dashicons { font: normal 60px/1 'dashicons'; position: relative; width: 100%; top: -90px; color: #fff; text-decoration: none; } .media-widget-video-link.no-poster .dashicons { top: 30px; } .media-frame #embed-url-field.invalid, .media-widget-image-link > .link:invalid { border: 1px solid #d63638; } .media-widget-image-link { margin: 1em 0; } .media-widget-gallery-preview { display: flex; justify-content: flex-start; flex-wrap: wrap; margin: -1.79104477%; } .media-widget-preview.media_gallery, .media-widget-preview.media_image { cursor: pointer; } .media-widget-preview .placeholder { background: #f0f0f1; } .media-widget-gallery-preview .gallery-item { box-sizing: border-box; width: 50%; margin: 0; background: transparent; } .media-widget-gallery-preview .gallery-item .gallery-icon { margin: 4.5%; } /* * Use targeted nth-last-child selectors to control the size of each image * based on how many gallery items are present in the grid. * See: https://alistapart.com/article/quantity-queries-for-css */ .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child, .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child ~ .gallery-item, .media-widget-gallery-preview .gallery-item:nth-last-child(n+5), .media-widget-gallery-preview .gallery-item:nth-last-child(n+5) ~ .gallery-item, .media-widget-gallery-preview .gallery-item:nth-last-child(n+6), .media-widget-gallery-preview .gallery-item:nth-last-child(n+6) ~ .gallery-item { max-width: 33.33%; } .media-widget-gallery-preview .gallery-item img { height: auto; vertical-align: bottom; } .media-widget-gallery-preview .gallery-icon { position: relative; } .media-widget-gallery-preview .gallery-icon-placeholder { position: absolute; top: 0; bottom: 0; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.5); } .media-widget-gallery-preview .gallery-icon-placeholder-text { font-weight: 600; font-size: 2em; color: #fff; } /* Widget Dragging Helpers */ .widget.ui-draggable-dragging { min-width: 100%; } .widget.ui-sortable-helper { opacity: 0.8; } .widget-placeholder { border: 1px dashed #c3c4c7; margin: 0 auto 10px; height: 45px; width: 100%; box-sizing: border-box; } #widgets-right .widget-placeholder { margin-top: 0; } #widgets-right .closed .widget-placeholder { height: 0; border: 0; margin-top: -10px; } /* Widget Sidebars */ .sidebar-name { position: relative; box-sizing: border-box; } .js .sidebar-name { cursor: pointer; } .sidebar-name .handlediv { float: left; width: 38px; height: 38px; border: 0; margin: 0; padding: 8px; background: none; cursor: pointer; outline: none; } #widgets-right .sidebar-name .handlediv { margin: 5px 0 0 3px; } .sidebar-name .handlediv:focus { box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } #widgets-left .sidebar-name .toggle-indicator { display: none; } #widgets-left .widgets-holder-wrap.closed .sidebar-name .toggle-indicator, #widgets-left .sidebar-name:hover .toggle-indicator, #widgets-left .sidebar-name .handlediv:focus .toggle-indicator { display: block; } .sidebar-name .toggle-indicator:before { padding: 1px 0 1px 2px; border-radius: 50%; } .sidebar-name .handlediv:focus .toggle-indicator:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .sidebar-name h2, .sidebar-name h3 { margin: 0; padding: 8px 10px; overflow: hidden; white-space: normal; line-height: 1.5; } .widgets-holder-wrap .description { padding: 0 0 15px; margin: 0; font-style: normal; color: #646970; } .widget-holder .description, .inactive-sidebar .description { color: #50575e; } #widgets-right .widgets-holder-wrap .description { padding-right: 7px; padding-left: 7px; } /* Widgets 2-col Layout */ div.widget-liquid-left { margin: 0; width: 38%; float: right; } div.widget-liquid-right { float: left; width: 58%; } /* Widgets Left - Available Widgets */ div#widgets-left { padding-top: 12px; } div#widgets-left .closed .sidebar-name, div#widgets-left .inactive-sidebar.closed .sidebar-name { margin-bottom: 10px; } div#widgets-left .sidebar-name h2, div#widgets-left .sidebar-name h3 { padding: 10px 0; margin: 0 0 0 10px; } #widgets-left .widgets-holder-wrap, div#widgets-left .widget-holder { background: transparent; border: none; } #widgets-left .widgets-holder-wrap { border: none; box-shadow: none; } #available-widgets .widget { margin: 0; } #available-widgets .widget:nth-child(odd) { clear: both; } #available-widgets .widget .widget-description { display: block; padding: 10px 15px; font-size: 12px; overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-word; hyphens: auto; } #available-widgets #widget-list { position: relative; } /* Inactive Sidebars */ #widgets-left .inactive-sidebar { clear: both; width: 100%; background: transparent; padding: 0; margin: 0 0 20px; border: none; box-shadow: none; } #widgets-left .inactive-sidebar.first { margin-top: 40px; } /* Not sure what this is for... */ div#widgets-left .inactive-sidebar .widget.expanded { right: auto; } .widget-title-action { float: left; position: relative; } div#widgets-left .inactive-sidebar .widgets-sortables { min-height: 42px; padding: 0; background: transparent; margin: 0; position: relative; } /* Widgets Right */ div#widgets-right .sidebars-column-1, div#widgets-right .sidebars-column-2 { max-width: 450px; } div#widgets-right .widgets-holder-wrap { margin: 10px 0 0; } div#widgets-right .sidebar-description { min-height: 20px; margin-top: -5px; } div#widgets-right .sidebar-name h2, div#widgets-right .sidebar-name h3 { padding: 15px 7px 15px 15px; } div#widgets-right .widget-top { padding: 0; } div#widgets-right .widgets-sortables { padding: 0 8px; margin-bottom: 9px; position: relative; min-height: 123px; } div#widgets-right .closed .widgets-sortables { min-height: 0; margin-bottom: 0; } .sidebar-name .spinner, .remove-inactive-widgets .spinner { float: none; position: relative; top: -2px; margin: -5px 5px; } .sidebar-name .spinner { position: absolute; top: 18px; left: 30px; } /* Dragging a widget over a closed sidebar */ #widgets-right .widgets-holder-wrap.widget-hover { border-color: #787c82; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } /* Accessibility Mode */ .widget-access-link { float: left; margin: -5px 10px 10px 0; } .widgets_access #widgets-left .widget .widget-top { cursor: auto; } .widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description, .widgets_access #wpwrap .widgets-holder-wrap.closed .widget, .widgets_access #wpwrap .widget-control-edit { display: block; } .widgets_access #widgets-left .widget .widget-top:hover, .widgets_access #widgets-right .widget .widget-top:hover { border-color: #dcdcde; } #available-widgets .widget-control-edit .edit, #available-widgets .widget-action .edit, #widgets-left .inactive-sidebar .widget-control-edit .add, #widgets-left .inactive-sidebar .widget-action .add, #widgets-right .widget-control-edit .add, #widgets-right .widget-action .add { display: none; } .widget-control-edit { display: block; color: #646970; background: #f0f0f1; padding: 0 15px; line-height: 3.30769230; border-right: 1px solid #dcdcde; } #widgets-left .widget-control-edit:hover, #widgets-right .widget-control-edit:hover { color: #fff; background: #3c434a; border-right: 0; outline: 1px solid #3c434a; } .widgets-holder-wrap .sidebar-name, .widgets-holder-wrap .sidebar-description { -webkit-user-select: none; user-select: none; } .editwidget { margin: 0 auto; } .editwidget .widget-inside { display: block; padding: 0 15px; } .widget-control-actions { display: flex; align-items: center; justify-content: space-between; } .editwidget .widget-control-actions { margin-top: 20px; } .js .widgets-holder-wrap.closed .widget, .js .widgets-holder-wrap.closed .sidebar-description, .js .widgets-holder-wrap.closed .remove-inactive-widgets, .js .widgets-holder-wrap.closed .description, .js .closed br.clear { display: none; } .js .widgets-holder-wrap.closed .widget.ui-sortable-helper { display: block; } /* Hide Widget Settings by Default */ .widget-inside, .widget-description { display: none; } .widget-inside { background: #fff; } .widget-inside select { max-width: 100%; } /* Dragging widgets over the available widget area show's a "Deactivate" message */ #removing-widget { display: none; font-weight: 400; padding-right: 15px; font-size: 12px; line-height: 1; color: #000; } .js #removing-widget { color: #72aee6; } .widget-control-noform, #access-off, .widgets_access .widget-action, .widgets_access .handlediv, .widgets_access #access-on, .widgets_access .widget-holder .description, .no-js .widget-holder .description { display: none; } .widgets_access .widget-holder, .widgets_access #widget-list { padding-top: 10px; } .widgets_access #access-off { display: inline; } .widgets_access .sidebar-name, .widgets_access .widget .widget-top { cursor: default; } /* Widgets Area Chooser */ .widget-liquid-left #widgets-left.chooser #available-widgets .widget, .widget-liquid-left #widgets-left.chooser .inactive-sidebar { transition: opacity 0.1s linear; } .widget-liquid-left #widgets-left.chooser #available-widgets .widget, .widget-liquid-left #widgets-left.chooser .inactive-sidebar { /* -webkit-filter: blur(1px); */ opacity: 0.2; pointer-events: none; } .widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question { /* -webkit-filter: none; */ opacity: 1; pointer-events: auto; } .widgets-chooser ul, #widgets-left .widget-in-question .widget-top, #available-widgets .widget-top:hover, div#widgets-right .widget-top:hover, #widgets-left .widget-top:hover { border-color: #8c8f94; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .widgets-chooser ul.widgets-chooser-sidebars { margin: 0; list-style-type: none; max-height: 300px; overflow: auto; } .widgets-chooser { display: none; } .widgets-chooser ul { border: 1px solid #c3c4c7; } .widgets-chooser li { border-bottom: 1px solid #c3c4c7; background: #fff; margin: 0; position: relative; } .widgets-chooser .widgets-chooser-button { width: 100%; padding: 10px 35px 10px 15px; background: transparent; border: 0; box-sizing: border-box; text-align: right; cursor: pointer; transition: background 0.2s ease-in-out; } /* @todo looks like these hover/focus states are overridden by .widgets-chooser-selected */ .widgets-chooser .widgets-chooser-button:hover, .widgets-chooser .widgets-chooser-button:focus { outline: none; text-decoration: underline; } .widgets-chooser li:last-child { border: none; } .widgets-chooser .widgets-chooser-selected .widgets-chooser-button { background: var(--wp-admin-theme-color, #3858e9); color: #fff; } .widgets-chooser .widgets-chooser-selected:before { content: "\f147"; content: "\f147" / ''; display: block; -webkit-font-smoothing: antialiased; font: normal 26px/1 dashicons; color: #fff; position: absolute; top: 7px; right: 5px; } .widgets-chooser .widgets-chooser-actions { padding: 10px 0 12px; text-align: center; } #available-widgets .widget .widget-top { cursor: pointer; } #available-widgets .widget.ui-draggable-dragging .widget-top { cursor: move; } /* =Specific widget styling -------------------------------------------------------------- */ .text-widget-fields { position: relative; } .text-widget-fields [hidden] { display: none; } .text-widget-fields .wp-pointer.wp-pointer-top { position: absolute; z-index: 3; top: 100px; left: 10px; right: 10px; } .text-widget-fields .wp-pointer .wp-pointer-arrow { right: auto; left: 15px; } .text-widget-fields .wp-pointer .wp-pointer-buttons { line-height: 1.4; } .custom-html-widget-fields > p > .CodeMirror { border: 1px solid #dcdcde; } .custom-html-widget-fields code { padding-top: 1px; padding-bottom: 1px; } ul.CodeMirror-hints { z-index: 101; /* Due to z-index 100 set on .widget.open */ } .widget-control-actions .custom-html-widget-save-button.button.validation-blocked { cursor: not-allowed; } /* =Media Queries -------------------------------------------------------------- */ @media screen and (max-width: 782px) { .widgets-holder-wrap .widget-inside input[type="checkbox"], .widgets-holder-wrap .widget-inside input[type="radio"], .editwidget .widget-inside input[type="checkbox"], /* Selectors for the "accessibility mode" page. */ .editwidget .widget-inside input[type="radio"] { margin: 0.25rem 0 0.25rem 0.25rem; } } @media screen and (max-width: 480px) { div.widget-liquid-left { width: 100%; float: none; border-left: none; padding-left: 0; } #widgets-left .sidebar-name { margin-left: 0; } #widgets-left #available-widgets .widget-top { margin-left: 0; } #widgets-left .inactive-sidebar .widgets-sortables { margin-left: 0; } div.widget-liquid-right { width: 100%; float: none; } div.widget { max-width: 480px; } .widget-access-link { float: none; margin: 15px 0 0; } } @media screen and (max-width: 320px) { div.widget { max-width: 320px; } } @media only screen and (min-width: 1250px) { #widgets-left #available-widgets .widget { width: 49%; float: right; } .widget.ui-draggable-dragging { min-width: 49%; } #widgets-left #available-widgets .widget:nth-child(even) { float: left; } #widgets-right .sidebars-column-1, #widgets-right .sidebars-column-2 { float: right; width: 49%; } #widgets-right .sidebars-column-1 { margin-left: 2%; } #widgets-right.single-sidebar .sidebars-column-1, #widgets-right.single-sidebar .sidebars-column-2 { float: none; width: 100%; margin: 0; } } css/customize-nav-menus.css000064400000054130152213653150012005 0ustar00#customize-theme-controls #accordion-section-menu_locations { position: relative; margin-top: 30px; } #customize-theme-controls #accordion-section-menu_locations > .accordion-section-title { border-bottom-color: #dcdcde; margin-top: 15px; } #customize-theme-controls .customize-section-title-nav_menus-heading, #customize-theme-controls .customize-section-title-menu_locations-heading, #customize-theme-controls .customize-section-title-menu_locations-description { padding: 0 12px; } #customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description { /* Override the default italic style for control descriptions */ font-style: normal; } .menu-in-location, .menu-in-locations { display: block; font-weight: 600; font-size: 10px; } #customize-controls .theme-location-set, #customize-controls .control-section .accordion-section-title:focus .menu-in-location, #customize-controls .control-section .accordion-section-title:hover .menu-in-location { color: #50575e; } /* The `edit-menu` and `create-menu` buttons also use the `button-link` class. */ .customize-control-nav_menu_location .edit-menu, .customize-control-nav_menu_location .create-menu { margin-left: 6px; vertical-align: middle; line-height: 2.2; } #customize-controls .customize-control-nav_menu_name { margin-bottom: 12px; } .customize-control-nav_menu_name p:last-of-type { margin-bottom: 0; } #customize-new-menu-submit { float: right; min-width: 85px; } .wp-customizer .menu-item-bar .menu-item-handle, .wp-customizer .menu-item-settings, .wp-customizer .menu-item-settings .description-thin { box-sizing: border-box; } .wp-customizer .menu-item-bar { margin: 0; } .wp-customizer .menu-item-bar .menu-item-handle { width: 100%; max-width: 100%; background: #fff; } .wp-customizer .menu-item-handle .item-title { margin-right: 0; } .wp-customizer .menu-item-handle .item-type { padding: 1px 21px 0 5px; float: right; text-align: right; } .wp-customizer .menu-item-handle:hover { z-index: 8; } .customize-control-nav_menu_item.has-notifications .menu-item-handle { border-left: 4px solid #72aee6; } .wp-customizer .menu-item-settings { max-width: 100%; overflow: hidden; z-index: 8; padding: 10px; background: #f0f0f1; border: 1px solid #8c8f94; border-top: none; } .wp-customizer .menu-item-settings .description-thin { width: 100%; height: auto; margin: 0 0 8px; } .wp-customizer .menu-item-settings input[type="text"] { width: 100%; } .wp-customizer .menu-item-settings .submitbox { margin: 0; padding: 0; } .wp-customizer .menu-item-settings .link-to-original { padding: 5px 0; border: none; font-style: normal; margin: 0; width: 100%; } .wp-customizer .menu-item .submitbox .submitdelete { float: left; margin: 6px 0 0; padding: 0; cursor: pointer; } /** * Menu items reordering styles */ .menu-item-reorder-nav { display: none; background-color: #fff; position: absolute; top: 0; right: 0; } .menus-move-left:before { content: "\f341"; content: "\f341" / ''; } .menus-move-right:before { content: "\f345"; content: "\f345" / ''; } .reordering .menu-item .item-controls, .reordering .menu-item .item-type { display: none; } .reordering .menu-item-reorder-nav { display: block; } .customize-control input.menu-name-field { width: 100%; /* Override the 98% default for customizer inputs, to align with the size of menu items. */ } .wp-customizer .menu-item .item-edit { position: absolute; right: -19px; top: 2px; display: block; width: 30px; height: 38px; margin-right: 0 !important; box-shadow: none; outline: none; overflow: hidden; cursor: pointer; text-align: center; } .wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before { content: "\f142"; content: "\f142" / ''; } .wp-customizer .menu-item-settings p.description { font-style: normal; } .wp-customizer .menu-settings dl { margin: 12px 0 0; padding: 0; } .wp-customizer .menu-settings .checkbox-input { margin-top: 8px; } .wp-customizer .menu-settings .menu-theme-locations { border-top: 1px solid #c3c4c7; } .wp-customizer .menu-settings { margin-top: 36px; border-top: none; } .wp-customizer .menu-location-settings { margin-top: 12px; border-top: none; } .wp-customizer .control-section-nav_menu .menu-location-settings { margin-top: 24px; border-top: 1px solid #dcdcde; } .wp-customizer .control-section-nav_menu .menu-location-settings, .customize-control-nav_menu_auto_add { padding-top: 12px; } .menu-location-settings .customize-control-checkbox .theme-location-set { line-height: 1; } .customize-control-nav_menu_auto_add label { vertical-align: top; } .menu-location-settings .new-menu-locations-widget-note { display: block; } .customize-control-menu { margin-top: 4px; } #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle { color: #50575e; } /* Screen Options */ .customize-screen-options-toggle { background: none; border: none; color: #50575e; cursor: pointer; margin: 0; padding: 20px; position: absolute; right: 0; top: 30px; } #customize-controls .customize-info .customize-help-toggle { padding: 20px; } #customize-controls .customize-info .customize-help-toggle:before { padding: 4px; } .customize-screen-options-toggle:hover, .customize-screen-options-toggle:active, .customize-screen-options-toggle:focus, .active-menu-screen-options .customize-screen-options-toggle, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active, #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus { color: var(--wp-admin-theme-color); } .customize-screen-options-toggle:focus, #customize-controls .customize-info .customize-help-toggle:focus { /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .customize-screen-options-toggle:before { -moz-osx-font-smoothing: grayscale; border: none; content: "\f111"; content: "\f111" / ''; display: block; font: 18px/1 dashicons; padding: 5px; text-align: center; text-decoration: none !important; text-indent: 0; left: 6px; position: absolute; top: 6px; } .customize-screen-options-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before { border-radius: 100%; } .wp-customizer #screen-options-wrap { display: none; background: #fff; border-top: 1px solid #dcdcde; padding: 4px 15px 15px; } .wp-customizer .metabox-prefs label { display: block; padding-right: 0; line-height: 30px; } /* rework the arrow indicator implementation for NVDA bug same as #32715 */ .wp-customizer .toggle-indicator { display: inline-block; font-size: 20px; line-height: 1; } .rtl .wp-customizer .toggle-indicator { text-indent: 1px; /* account for the dashicon alignment */ } .wp-customizer .menu-item .item-edit .toggle-indicator:before, #available-menu-items .accordion-section-title .toggle-indicator:before { content: "\f140"; content: "\f140" / ''; display: block; padding: 1px 2px 1px 0; border-radius: 50%; color: #787c82; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; } .control-section-nav_menu .field-link-target, .control-section-nav_menu .field-title-attribute, .control-section-nav_menu .field-css-classes, .control-section-nav_menu .field-xfn, .control-section-nav_menu .field-description { display: none; } .control-section-nav_menu.field-link-target-active .field-link-target, .control-section-nav_menu.field-title-attribute-active .field-title-attribute, .control-section-nav_menu.field-css-classes-active .field-css-classes, .control-section-nav_menu.field-xfn-active .field-xfn, .control-section-nav_menu.field-description-active .field-description { display: block; } /* WARNING: The 20px factor is hard-coded in JS. */ .menu-item-depth-0 { margin-left: 0; } .menu-item-depth-1 { margin-left: 20px; } .menu-item-depth-2 { margin-left: 40px; } .menu-item-depth-3 { margin-left: 60px; } .menu-item-depth-4 { margin-left: 80px; } .menu-item-depth-5 { margin-left: 100px; } .menu-item-depth-6 { margin-left: 120px; } .menu-item-depth-7 { margin-left: 140px; } .menu-item-depth-8 { margin-left: 160px; } /* Not likely to be used or useful beyond this depth */ .menu-item-depth-9 { margin-left: 180px; } .menu-item-depth-10 { margin-left: 200px; } .menu-item-depth-11 { margin-left: 220px; } /* @todo handle .menu-item-settings width */ .menu-item-depth-0 > .menu-item-bar { margin-right: 0; } .menu-item-depth-1 > .menu-item-bar { margin-right: 20px; } .menu-item-depth-2 > .menu-item-bar { margin-right: 40px; } .menu-item-depth-3 > .menu-item-bar { margin-right: 60px; } .menu-item-depth-4 > .menu-item-bar { margin-right: 80px; } .menu-item-depth-5 > .menu-item-bar { margin-right: 100px; } .menu-item-depth-6 > .menu-item-bar { margin-right: 120px; } .menu-item-depth-7 > .menu-item-bar { margin-right: 140px; } .menu-item-depth-8 > .menu-item-bar { margin-right: 160px; } .menu-item-depth-9 > .menu-item-bar { margin-right: 180px; } .menu-item-depth-10 > .menu-item-bar { margin-right: 200px; } .menu-item-depth-11 > .menu-item-bar { margin-right: 220px; } /* Submenu left margin. */ .menu-item-depth-0 .menu-item-transport { margin-left: 0; } .menu-item-depth-1 .menu-item-transport { margin-left: -20px; } .menu-item-depth-3 .menu-item-transport { margin-left: -60px; } .menu-item-depth-4 .menu-item-transport { margin-left: -80px; } .menu-item-depth-2 .menu-item-transport { margin-left: -40px; } .menu-item-depth-5 .menu-item-transport { margin-left: -100px; } .menu-item-depth-6 .menu-item-transport { margin-left: -120px; } .menu-item-depth-7 .menu-item-transport { margin-left: -140px; } .menu-item-depth-8 .menu-item-transport { margin-left: -160px; } .menu-item-depth-9 .menu-item-transport { margin-left: -180px; } .menu-item-depth-10 .menu-item-transport { margin-left: -200px; } .menu-item-depth-11 .menu-item-transport { margin-left: -220px; } /* WARNING: The 20px factor is hard-coded in JS. */ .reordering .menu-item-depth-0 { margin-left: 0; } .reordering .menu-item-depth-1 { margin-left: 15px; } .reordering .menu-item-depth-2 { margin-left: 30px; } .reordering .menu-item-depth-3 { margin-left: 45px; } .reordering .menu-item-depth-4 { margin-left: 60px; } .reordering .menu-item-depth-5 { margin-left: 75px; } .reordering .menu-item-depth-6 { margin-left: 90px; } .reordering .menu-item-depth-7 { margin-left: 105px; } .reordering .menu-item-depth-8 { margin-left: 120px; } /* Not likely to be used or useful beyond this depth */ .reordering .menu-item-depth-9 { margin-left: 135px; } .reordering .menu-item-depth-10 { margin-left: 150px; } .reordering .menu-item-depth-11 { margin-left: 165px; } .reordering .menu-item-depth-0 > .menu-item-bar { margin-right: 0; } .reordering .menu-item-depth-1 > .menu-item-bar { margin-right: 15px; } .reordering .menu-item-depth-2 > .menu-item-bar { margin-right: 30px; } .reordering .menu-item-depth-3 > .menu-item-bar { margin-right: 45px; } .reordering .menu-item-depth-4 > .menu-item-bar { margin-right: 60px; } .reordering .menu-item-depth-5 > .menu-item-bar { margin-right: 75px; } .reordering .menu-item-depth-6 > .menu-item-bar { margin-right: 90px; } .reordering .menu-item-depth-7 > .menu-item-bar { margin-right: 105px; } .reordering .menu-item-depth-8 > .menu-item-bar { margin-right: 120px; } .reordering .menu-item-depth-9 > .menu-item-bar { margin-right: 135px; } .reordering .menu-item-depth-10 > .menu-item-bar { margin-right: 150px; } .reordering .menu-item-depth-11 > .menu-item-bar { margin-right: 165px; } .control-section-nav_menu.menu .menu-item-edit-active { margin-left: 0; } .control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar { margin-right: 0; } .control-section-nav_menu.menu .sortable-placeholder { margin-top: 0; margin-bottom: 1px; max-width: calc(100% - 2px); float: left; display: list-item; border-color: #a7aaad; } .menu-item-transport li.customize-control { float: none; } .control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar { margin-top: 0; } /** * Add-menu-items mode */ .adding-menu-items .control-section { opacity: .4; } .adding-menu-items .control-panel.control-section, .adding-menu-items .control-section.open { opacity: 1; } .menu-item-bar .item-delete { color: #d63638; position: absolute; top: 2px; right: -19px; width: 30px; height: 38px; cursor: pointer; display: none; } .menu-item-bar .item-delete:before { content: "\f335"; content: "\f335" / ''; position: absolute; top: 9px; left: 5px; border-radius: 50%; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .menu-item-bar .item-delete:hover, .menu-item-bar .item-delete:focus { box-shadow: none; outline: none; color: #d63638; } .adding-menu-items .menu-item-bar .item-edit { display: none; } .adding-menu-items .menu-item-bar .item-delete { display: block; } /** * Styles for menu-item addition panel */ #available-menu-items.opening { overflow-y: hidden; /* avoid scrollbar jitter with animating heights */ } #available-menu-items #available-menu-items-search.open { height: 100%; border-bottom: none; } #available-menu-items .accordion-section-title { border-left: none; border-right: none; background: #fff; transition: background-color 0.15s; /* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */ -webkit-user-select: auto; user-select: auto; } #available-menu-items .open .accordion-section-title, #available-menu-items #available-menu-items-search .accordion-section-title { background: #f0f0f1; } /* rework the arrow indicator implementation for NVDA bug see #32715 */ #available-menu-items .accordion-section-title:after { content: none !important; } #available-menu-items .accordion-section-title:hover .toggle-indicator:before, #available-menu-items .button-link:hover .toggle-indicator:before, #available-menu-items .button-link:focus .toggle-indicator:before { color: #1d2327; } #available-menu-items .open .accordion-section-title .toggle-indicator:before { content: "\f142"; color: #1d2327; } #available-menu-items .available-menu-items-list { overflow-y: auto; max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */ background: transparent; } #available-menu-items .accordion-section-title button .toggle-indicator { display: flex; align-items: center; width: 28px; height: 35px; position: absolute; top: 5px; right: 5px; box-shadow: none; outline: none; cursor: pointer; text-align: center; } #available-menu-items .accordion-section-title .no-items, #available-menu-items .cannot-expand .accordion-section-title .spinner, #available-menu-items .cannot-expand .accordion-section-title > button:not(#available-menu-items-search button.is-visible) { display: none; } #available-menu-items-search.cannot-expand .accordion-section-title .spinner { display: block; } #available-menu-items .cannot-expand .accordion-section-title .no-items { float: right; color: #50575e; font-weight: 400; margin-left: 5px; } #available-menu-items .accordion-section-content { max-height: 290px; margin: 0; padding: 0; position: relative; background: transparent; } #available-menu-items .accordion-section-content .available-menu-items-list { margin: 0 0 64px; padding: 1px 15px 15px; } #available-menu-items .accordion-section-content .available-menu-items-list:only-child { /* Types that do not support new items for the current user */ margin-bottom: 0; } #new-custom-menu-item .accordion-section-content { padding: 0 15px 15px; } #available-menu-items .menu-item-tpl { margin: 0; } #custom-menu-item-name.invalid, #custom-menu-item-url.invalid, .edit-menu-item-url.invalid, .menu-name-field.invalid, .menu-name-field.invalid:focus, #available-menu-items .new-content-item .create-item-input.invalid, #available-menu-items .new-content-item .create-item-input.invalid:focus { border: 1px solid #d63638; } #available-menu-items .menu-item-handle .item-type { padding-right: 0; } #available-menu-items .menu-item-handle .item-title { padding-left: 20px; } #available-menu-items .menu-item-handle { cursor: pointer; } #available-menu-items .menu-item-handle { box-shadow: none; margin-top: -1px; } #available-menu-items .menu-item-handle:hover { z-index: 1; } #available-menu-items .item-title h4 { padding: 0 0 5px; font-size: 14px; } #available-menu-items .item-add { position: absolute; top: 1px; left: 1px; color: #8c8f94; width: 30px; height: 38px; box-shadow: none; outline: none; cursor: pointer; text-align: center; } #available-menu-items .menu-item-handle .item-add:focus { color: #1d2327; } #available-menu-items .item-add:before { content: "\f543"; content: "\f543" / ''; position: relative; left: 2px; top: 3px; display: inline-block; height: 20px; border-radius: 50%; font: normal 20px/1.05 dashicons; /* line height is to account for the dashicon's vertical alignment */ } #available-menu-items .menu-item-handle.item-added .item-type, #available-menu-items .menu-item-handle.item-added .item-title, #available-menu-items .menu-item-handle.item-added:hover .item-add, #available-menu-items .menu-item-handle.item-added .item-add:focus { color: #646970; } #available-menu-items .menu-item-handle.item-added .item-add:before { content: "\f147"; content: "\f147" / ''; } #available-menu-items .accordion-section-title.loading .spinner, #available-menu-items-search.loading .accordion-section-title .spinner { visibility: visible; margin: 0 20px; } #available-menu-items-search .spinner { position: absolute; bottom: 24px; /* 13 container padding +1 input margin +10 ( ( 40 input height - 20 spinner height ) / 2 ) */ right: 21px; margin: 0 !important; } /* search results list */ #available-menu-items #available-menu-items-search .accordion-section-content { position: absolute; left: 0; top: 83px; /* below title div / search input (75 + 8 for 40px input) */ bottom: 0; /* 100% height that still triggers lazy load */ max-height: none; width: 100%; padding: 1px 15px 15px; box-sizing: border-box; } #available-menu-items-search .nothing-found { /* Compensate the 1px top padding of the container. */ margin-top: -1px; } #available-menu-items-search .accordion-section-title:after { display: none; } #available-menu-items-search .accordion-section-content:empty { min-height: 0; padding: 0; } #available-menu-items-search.loading .accordion-section-content div { opacity: .5; } #available-menu-items-search.loading.loading-more .accordion-section-content div { opacity: 1; } @media (prefers-reduced-motion: no-preference) { #customize-preview { transition: all 0.2s; } } body.adding-menu-items #available-menu-items { left: 0; visibility: visible; } body.adding-menu-items .wp-full-overlay-main { left: 300px; } body.adding-menu-items #customize-preview { opacity: 0.4; } body.adding-menu-items #customize-preview iframe { pointer-events: none; } .menu-item-handle .spinner { display: none; float: left; margin: 0 8px 0 0; } .nav-menu-inserted-item-loading .spinner { display: block; } .nav-menu-inserted-item-loading .menu-item-handle .item-type { padding: 0 0 0 8px; } .nav-menu-inserted-item-loading .menu-item-handle, .added-menu-item .menu-item-handle.loading { padding: 10px 15px 10px 8px; cursor: default; opacity: .5; background: #fff; color: #787c82; } .added-menu-item .menu-item-handle { transition-property: opacity, background, color; transition-duration: 1.25s; transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); /* Replacement for .hide().fadeIn('slow') in JS to add emphasis when it's loaded. */ } /* Add/delete Menus */ #customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title { border-bottom-color: #dcdcde; } /* @todo update selector */ #accordion-section-add_menu { margin: 15px 12px; } #accordion-section-add_menu h3 { text-align: right; } #accordion-section-add_menu h3, #accordion-section-add_menu .customize-add-menu-button { margin: 0; } #accordion-section-add_menu .customize-add-menu-button { font-weight: 400; } #create-new-menu-submit { float: right; margin: 0 0 12px; } .menu-delete-item { float: left; padding: 1em 0; width: 100%; } .assigned-menu-locations-title p { margin: 0 0 8px; } li.assigned-to-menu-location .menu-delete-item { display: none; } li.assigned-to-menu-location .add-new-menu-item { margin-bottom: 1em; } .menu-item-handle { margin-top: -1px; } .ui-sortable-disabled .menu-item-handle { cursor: default; } .menu-item-handle:hover { position: relative; z-index: 10; color: var(--wp-admin-theme-color); } .menu-item-handle:hover .item-type, .menu-item-handle:hover .item-edit, #available-menu-items .menu-item-handle:hover .item-add { color: var(--wp-admin-theme-color); } .menu-item-edit-active .menu-item-handle { border-color: #8c8f94; border-bottom: none; } .customize-control-nav_menu_item { margin-bottom: 0; } .customize-control-nav_menu .new-menu-item-invitation { margin-top: 0; margin-bottom: 0; } .customize-control-nav_menu .customize-control-nav_menu-buttons { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; margin-top: 12px; } /** * box-shadows */ .wp-customizer .menu-item .submitbox .submitdelete:focus, .customize-screen-options-toggle:focus:before, #customize-controls .customize-info .customize-help-toggle:focus:before, .wp-customizer button:focus .toggle-indicator:before, .menu-delete:focus, .menu-item-bar .item-delete:focus:before, #available-menu-items .item-add:focus:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } @media screen and (max-width: 782px) { #available-menu-items #available-menu-items-search .accordion-section-content { top: 71px; /* 63 + 8 for 40px input */ } } @media screen and (max-width: 640px) { #available-menu-items #available-menu-items-search .accordion-section-content { top: 154px; /* 146 + 8 for 40px input */ } } css/install-rtl.min.css000064400000012220152213653150011075 0ustar00/*! This file is auto-generated */ html{background:#f0f0f1;margin:0 20px}body{background:#fff;border:1px solid #c3c4c7;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:140px auto 25px;padding:20px 20px 10px;max-width:700px;-webkit-font-smoothing:subpixel-antialiased;box-shadow:0 1px 1px rgba(0,0,0,.04)}a{color:var(--wp-admin-theme-color)}a:active,a:hover{color:var(--wp-admin-theme-color-darker-20)}a:focus{color:var(--wp-admin-theme-color-darker-20);border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}h1,h2{border-bottom:1px solid #dcdcde;clear:both;color:#646970;font-size:24px;padding:0 0 7px;font-weight:400}h3{font-size:16px}dd,dt,li,p{padding-bottom:2px;font-size:14px;line-height:1.5}.code,code{font-family:Consolas,Monaco,monospace}dl,ol,ul{padding:5px 22px 5px 5px}a img{border:0}abbr{border:0;font-variant:normal}fieldset{border:0;padding:0;margin:0}#logo{margin:-130px auto 25px;padding:0 0 25px;width:84px;height:84px;overflow:hidden;background-image:url(../images/w-logo-gray.png?ver=20260303);background-image:none,url(../images/wordpress-logo-gray.svg?ver=20260303);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;font-size:20px;font-weight:400;line-height:1.3em;text-decoration:none;text-align:center;text-indent:-9999px;outline:0}.step{margin:20px 0 15px}.step,th{text-align:right;padding:0}.language-chooser.wp-core-ui .step .button.button-large{font-size:14px}textarea{border:1px solid #dcdcde;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;width:100%;box-sizing:border-box}.form-table{border-collapse:collapse;margin-top:1em;width:100%}.form-table td{margin-bottom:9px;padding:10px 0 10px 20px;font-size:14px;vertical-align:top}.form-table th{font-size:14px;text-align:right;padding:10px 0 10px 20px;width:115px;vertical-align:top}.form-table code{line-height:1.28571428;font-size:14px}.form-table p{margin:4px 0 0;font-size:11px}.form-table .setup-description{margin:4px 0 0;line-height:1.6}.form-table input{line-height:1.33333333;font-size:15px;padding:3px 5px}.wp-pwd{margin-top:0}.form-table .wp-pwd{display:flex;column-gap:4px}.form-table .password-input-wrapper{width:100%}input,submit{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#pass-strength-result,.form-table input[type=email],.form-table input[type=password],.form-table input[type=text],.form-table input[type=url]{width:100%}.form-table th p{font-weight:400}.form-table.install-success td,.form-table.install-success th{vertical-align:middle;padding:16px 0 16px 20px}.form-table.install-success td p{margin:0;font-size:14px}.form-table.install-success td code{margin:0;font-size:18px}#error-page{margin-top:50px}#error-page p{font-size:14px;line-height:1.28571428;margin:25px 0 20px}#error-page code,.code{font-family:Consolas,Monaco,monospace}.message{border-right:4px solid #d63638;padding:.7em .6em;background-color:#fcf0f1}#admin_email,#dbhost,#dbname,#pass1,#pass2,#prefix,#pwd,#uname,#user_login{direction:ltr}.rtl input,.rtl submit,.rtl textarea,body.rtl{font-family:Tahoma,sans-serif}:lang(he-il) .rtl input,:lang(he-il) .rtl submit,:lang(he-il) .rtl textarea,:lang(he-il) body.rtl{font-family:Arial,sans-serif}@media only screen and (max-width:799px){body{margin-top:115px}#logo a{margin:-125px auto 30px}}@media screen and (max-width:782px){.form-table{margin-top:0}.form-table td,.form-table th{display:block;width:auto;vertical-align:middle}.form-table th{padding:20px 0 0}.form-table td{padding:5px 0;border:0;margin:0}input,textarea{font-size:16px}.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td input[type=url],.form-table td select,.form-table td textarea{width:100%;font-size:16px;line-height:1.5;padding:7px 10px;display:block;max-width:none;box-sizing:border-box}#pwd{padding-left:2.5rem}.wp-pwd #pass1{padding-left:50px}.wp-pwd .button.wp-hide-pw{left:0}#pass-strength-result{width:100%}}body.language-chooser{max-width:300px}.language-chooser select{padding:8px;width:100%;display:block;border:1px solid #dcdcde;background:#fff;color:#2c3338;font-size:16px;font-family:Arial,sans-serif;font-weight:400}.language-chooser select:focus{color:#2c3338}.language-chooser select option:focus,.language-chooser select option:hover{color:var(--wp-admin-theme-color-darker-20)}.language-chooser .step{text-align:left}.screen-reader-input,.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;visibility:hidden;opacity:.7;width:20px;height:20px;margin:2px 5px 0}.step .spinner{display:inline-block;vertical-align:middle;margin-left:15px}.button.hide-if-no-js,.hide-if-no-js{display:none}@media print,(min-resolution:120dpi){.spinner{background-image:url(../images/spinner-2x.gif)}}css/l10n.min.css000064400000006200152213653150007403 0ustar00/*! This file is auto-generated */ body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}body[class*=locale-de-] .inline-edit-row fieldset label span.title,body[class*=locale-de-] .inline-edit-row fieldset.inline-edit-date legend{width:7em}body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-left:7em}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-left:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-right:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-left:8em}.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title,.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,body[class*=locale-de-] .quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-left:0}}css/nav-menus-rtl.css000064400000043337152213653150010573 0ustar00/*! This file is auto-generated */ /* nav-menu */ /* @todo: determine if this is truly for nav menus only */ .no-js #message { display: block; } ul.add-menu-item-tabs li { padding: 3px 8px 4px 5px; } .accordion-section ul.category-tabs, .accordion-section ul.add-menu-item-tabs, .accordion-section ul.wp-tab-bar { margin: 0; } .accordion-section .categorychecklist { margin: 13px 0; } #nav-menu-meta .accordion-section-content { padding: 18px 13px; resize: vertical; } #nav-menu-meta .button-controls { margin-bottom: 0; } .has-no-menu-item .button-controls { display: none; } #nav-menus-frame { margin-right: 300px; margin-top: 23px; } #wpbody-content #menu-settings-column { display: inline; width: 281px; margin-right: -300px; clear: both; float: right; padding-top: 0; } #menu-settings-column .inside { clear: both; margin: 10px 0 0; height: 100%; max-height: inherit; } #menu-settings-column .categorydiv, #menu-settings-column .customlinkdiv, #menu-settings-column .posttypediv, #menu-settings-column .taxonomydiv { max-height: inherit; height: 100%; } #menu-settings-column .wp-tab-panel, #menu-settings-column .categorydiv div.tabs-panel, #menu-settings-column .customlinkdiv div.tabs-panel, #menu-settings-column .posttypediv div.tabs-panel, #menu-settings-column .taxonomydiv div.tabs-panel { /* Allow space for content after tab panels in nav menu editor. */ max-height: calc( 100% - 75px ); height: 100%; } .metabox-holder-disabled .postbox, .metabox-holder-disabled .accordion-section-content, .metabox-holder-disabled .accordion-section-title { opacity: 0.5; filter: alpha(opacity=50); } .metabox-holder-disabled .button-controls .select-all { display: none; } #wpbody { position: relative; } .is-submenu { color: #50575e; /* #fafafa background */ font-style: italic; font-weight: 400; margin-right: 4px; } .manage-menus { margin-top: 23px; padding: 10px; overflow: hidden; background: #fff; } .manage-menus .selected-menu, .manage-menus select, .manage-menus .submit-btn, .nav-menus-php .add-new-menu-action { display: inline-block; margin-left: 3px; vertical-align: middle; } .manage-menus select, .menu-location-menus select { max-width: 100%; } .menu-edit #post-body-content h3 { margin: 1em 0 10px; } #nav-menu-bulk-actions-top { margin: 1em 0; } #nav-menu-bulk-actions-bottom { margin: 1em 0; margin: calc( 1em + 9px ) 0; } .bulk-actions input.button { margin-left: 12px; } .bulk-select-button { position: relative; display: inline-block; padding: 0 10px; font-size: 13px; line-height: 2.15384615; height: auto; min-height: 30px; background: #f6f7f7; vertical-align: top; border: 1px solid #dcdcde; margin: 0; cursor: pointer; border-radius: 3px; white-space: nowrap; box-sizing: border-box; } .bulk-selection .bulk-select-button { color: #2271b1; border-color: #2271b1; background: #f6f7f7; vertical-align: top; } #pending-menu-items-to-delete { display: none; } .bulk-selection #pending-menu-items-to-delete { display: block; margin-top: 1em; } #pending-menu-items-to-delete p { margin-bottom: 0; } #pending-menu-items-to-delete ul { margin-top: 0; list-style: none; } #pending-menu-items-to-delete ul li { display: inline; } input.bulk-select-switcher + .bulk-select-button-label { vertical-align: inherit; } label.bulk-select-button:hover, label.bulk-select-button:active, label.bulk-select-button:focus-within { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; } input.bulk-select-switcher:focus + .bulk-select-button-label { color: #0a4b78; } .bulk-actions input.menu-items-delete { appearance: none; font-size: inherit; border: 0; line-height: 2.1em; background: none; cursor: pointer; text-decoration: underline; color: #b32d2e; } .bulk-actions input.menu-items-delete:hover { color: #b32d2e; border: none; } .bulk-actions input.menu-items-delete.disabled { display: none; } .menu-settings { border-top: 1px solid #f0f0f1; margin-top: 2em; } .menu-settings-group { margin: 0 0 10px; padding-right: 20%; } .menu-settings-group:last-of-type { margin-bottom: 0; } .menu-settings-input { float: right; margin: 0; width: 100%; } .menu-settings-group-name { float: right; clear: both; width: 25%; padding: 3px 0 0; margin-right: -25%; /* 20 container left padding x ( 100 container % width / 80 this % width ) */ } .menu-settings label { vertical-align: baseline; } .menu-edit .checkbox-input { margin-top: 4px; } .theme-location-set { color: #646970; font-size: 11px; } /* Menu Container */ /* @todo: responsive view. */ #menu-management-liquid { float: right; min-width: 100%; margin-top: 3px; } /* @todo: responsive view. */ #menu-management { position: relative; margin-left: 20px; margin-top: -3px; width: 100%; } #menu-management .menu-edit { margin-bottom: 20px; } .nav-menus-php #post-body { padding: 0 10px; border-top: 1px solid #fff; border-bottom: 1px solid #dcdcde; background: #fff; } #nav-menu-header, #nav-menu-footer { padding: 0 10px; background: #f6f7f7; } #nav-menu-header { border-bottom: 1px solid #dcdcde; margin-bottom: 0; } #nav-menu-header .menu-name-label { display: inline-block; vertical-align: middle; margin-left: 7px; } .nav-menus-php #post-body div.updated, .nav-menus-php #post-body div.error { margin: 0; } .nav-menus-php #post-body-content { position: relative; float: none; } .nav-menus-php #post-body-content .post-body-plain { margin-bottom: 0; } #menu-management .menu-add-new abbr { font-weight: 600; } #select-nav-menu-container { text-align: left; padding: 0 10px 3px; margin-bottom: 5px; } #select-nav-menu { width: 100px; display: inline; } #menu-name-label { margin-top: -2px; } .widefat .menu-locations .menu-location-title { padding: 13px 10px 0; } .menu-location-title label { font-weight: 600; } .menu-location-menus select { float: right; } #locations-nav-menu-wrapper { padding: 5px 0; } .locations-nav-menu-select select { float: right; width: 160px; margin-left: 5px; } .locations-row-links { float: right; margin: 6px 6px 0 0; } .locations-edit-menu-link, .locations-add-menu-link { margin: 0 3px; } .locations-edit-menu-link { padding-left: 3px; border-left: 1px solid #c3c4c7; } #menu-management .inside { padding: 0 10px; } /* Add Menu Item Boxes */ .postbox .howto input { width: 180px; float: left; } .accordion-container .outer-border { margin: 0; } .customlinkdiv p { margin-top: 0 } #nav-menu-theme-locations .howto select { width: 100%; } #nav-menu-theme-locations .button-controls { text-align: left; } .add-menu-item-view-all { height: 400px; } /* Button Primary Actions */ #menu-container .submit { margin: 0 0 10px; padding: 0; } /* @todo: is this actually used? */ #cancel-save { text-decoration: underline; font-size: 12px; margin-right: 20px; margin-top: 5px; } .button.right, .button-secondary.right, .button-primary.right { float: left; } /* Button Secondary Actions */ .list-controls { float: right; } .add-to-menu { float: left; } .button-controls { clear: both; margin: 10px 0; } .show-all, .hide-all { cursor: pointer; } .hide-all { display: none; } /* Create Menu */ #menu-name { width: 270px; vertical-align: middle; } #manage-menu .inside { padding: 0; } /* Custom Links */ #available-links dt { display: block; } #add-custom-link .howto { font-size: 12px; } #add-custom-link label span { display: block; float: right; margin-top: 5px; padding-left: 5px; } .menu-item-textbox { width: 180px; } .customlinkdiv .menu-item-textbox { width: 100%; } .nav-menus-php .howto span { float: right; margin-top: 6px; } /* Menu item types */ .quick-search { width: 190px; } .quick-search-wrap .spinner { float: none; margin: -3px 0 0 -10px; } .nav-menus-php .list-wrap { display: none; clear: both; margin-bottom: 10px; } .nav-menus-php .postbox p.submit { margin-bottom: 0; } /* Listings */ .nav-menus-php .list li { display: none; margin: 0 0 5px; } .nav-menus-php .list li .menu-item-title { cursor: pointer; display: block; } .nav-menus-php .list li .menu-item-title input { margin-left: 3px; margin-top: -3px; } .menu-item-title input[type=checkbox] { display: inline-block; margin-top: -4px; } .menu-item-title .post-state { font-weight: 600; } /* Nav Menu */ #menu-container .inside { padding-bottom: 10px; } .menu { padding-top: 1em; } #menu-to-edit { margin: 0; padding: 0.1em 0; } .menu ul { width: 100%; } .menu li { margin-bottom: 0; position: relative; } .menu-item-bar { clear: both; line-height: 1.5; position: relative; margin: 9px 0 0; } .menu-item-bar .menu-item-handle { border: 1px solid #dcdcde; position: relative; padding: 10px 15px; height: auto; min-height: 20px; max-width: 382px; line-height: 2.30769230; overflow: hidden; word-wrap: break-word; } .menu-item-bar .menu-item-handle:hover { border-color: #8c8f94; } #menu-to-edit .menu-item-invalid .menu-item-handle { background: #fcf0f1; border-color: #d63638; } .no-js .menu-item-edit-active .item-edit { display: none; } .js .menu-item-handle { cursor: move; } .menu li.deleting .menu-item-handle { background-image: none; background-color: #f86368; } .menu-item-handle .item-title { font-size: 13px; font-weight: 600; line-height: 1.53846153; display: block; /* @todo: responsive view. */ margin-left: 13em; } .menu-item-handle .menu-item-checkbox { display: none; } .bulk-selection .menu-item-handle .menu-item-checkbox { display: inline-block; margin-left: 6px; } .menu-item-handle .menu-item-title.no-title { color: #646970; } /* Sortables */ li.menu-item.ui-sortable-helper .menu-item-bar { margin-top: 0; } li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar { margin-top: 9px; /* Must use the same value used by the dragged item .menu-item-bar */ } .menu .sortable-placeholder { height: 35px; width: 410px; margin-top: 9px; /* Must use the same value used by the dragged item .menu-item-bar */ } /* Hide the transport list when it's empty */ .menu-item .menu-item-transport:empty { display: none; } /* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */ .menu-item-depth-0 { margin-right: 0; } .menu-item-depth-1 { margin-right: 30px; } .menu-item-depth-2 { margin-right: 60px; } .menu-item-depth-3 { margin-right: 90px; } .menu-item-depth-4 { margin-right: 120px; } .menu-item-depth-5 { margin-right: 150px; } .menu-item-depth-6 { margin-right: 180px; } .menu-item-depth-7 { margin-right: 210px; } .menu-item-depth-8 { margin-right: 240px; } .menu-item-depth-9 { margin-right: 270px; } .menu-item-depth-10 { margin-right: 300px; } .menu-item-depth-11 { margin-right: 330px; } .menu-item-depth-0 .menu-item-transport { margin-right: 0; } .menu-item-depth-1 .menu-item-transport { margin-right: -30px; } .menu-item-depth-2 .menu-item-transport { margin-right: -60px; } .menu-item-depth-3 .menu-item-transport { margin-right: -90px; } .menu-item-depth-4 .menu-item-transport { margin-right: -120px; } .menu-item-depth-5 .menu-item-transport { margin-right: -150px; } .menu-item-depth-6 .menu-item-transport { margin-right: -180px; } .menu-item-depth-7 .menu-item-transport { margin-right: -210px; } .menu-item-depth-8 .menu-item-transport { margin-right: -240px; } .menu-item-depth-9 .menu-item-transport { margin-right: -270px; } .menu-item-depth-10 .menu-item-transport { margin-right: -300px; } .menu-item-depth-11 .menu-item-transport { margin-right: -330px; } body.menu-max-depth-0 { min-width: 950px !important; } body.menu-max-depth-1 { min-width: 980px !important; } body.menu-max-depth-2 { min-width: 1010px !important; } body.menu-max-depth-3 { min-width: 1040px !important; } body.menu-max-depth-4 { min-width: 1070px !important; } body.menu-max-depth-5 { min-width: 1100px !important; } body.menu-max-depth-6 { min-width: 1130px !important; } body.menu-max-depth-7 { min-width: 1160px !important; } body.menu-max-depth-8 { min-width: 1190px !important; } body.menu-max-depth-9 { min-width: 1220px !important; } body.menu-max-depth-10 { min-width: 1250px !important; } body.menu-max-depth-11 { min-width: 1280px !important; } /* Menu item controls */ .item-type { display: inline-block; padding: 12px 16px; color: #646970; font-size: 12px; line-height: 1.5; } .item-controls { font-size: 12px; position: absolute; left: 20px; top: -1px; } .item-controls a { text-decoration: none; } .item-controls a:hover { cursor: pointer; } .item-controls .item-order { padding-left: 10px; } .nav-menus-php .item-edit { position: absolute; left: -20px; top: 0; display: block; width: 30px; height: 40px; outline: none; } .no-js.nav-menus-php .item-edit { position: static; float: left; width: auto; height: auto; margin: 12px 0 12px -10px; padding: 0; color: #2271b1; text-decoration: underline; font-size: 12px; line-height: 1.5; } .no-js.nav-menus-php .item-edit .screen-reader-text { position: static; clip-path: none; width: auto; height: auto; margin: 0; } .nav-menus-php .item-edit:before { margin-top: 10px; margin-right: 4px; width: 20px; border-radius: 50%; text-indent: -1px; /* account for the dashicon alignment */ } .no-js.nav-menus-php .item-edit:before { display: none; } .rtl .nav-menus-php .item-edit:before { text-indent: 1px; /* account for the dashicon alignment */ } .js.nav-menus-php .item-edit:focus { box-shadow: none; } .nav-menus-php .item-edit:focus:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /* Menu editing */ .menu-instructions-inactive { display: none; } .menu-item-settings { display: block; max-width: 392px; padding: 10px; position: relative; z-index: 10; /* Keep .item-title's shadow from appearing on top of .menu-item-settings */ border: 1px solid #c3c4c7; border-top: none; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } .menu-item-settings .field-move { margin: 3px 0 5px; line-height: 1.5; } .field-move-visual-label { float: right; margin-left: 4px; } .menu-item-settings .field-move .button-link { display: none; margin: 0 2px; } .menu-item-edit-active .menu-item-settings { display: block; } .menu-item-edit-inactive .menu-item-settings { display: none; } .add-menu-item-pagelinks { margin: .5em -10px; text-align: center; } .add-menu-item-pagelinks .page-numbers { display: inline-block; min-width: 20px; } .add-menu-item-pagelinks .page-numbers.dots { min-width: 0; } .link-to-original { display: block; margin: 0 0 15px; padding: 3px 5px 5px; border: 1px solid #dcdcde; color: #646970; font-size: 12px; } .link-to-original a { padding-right: 4px; font-style: normal; } .hidden-field { display: none; } .description-group { display: flex; column-gap: 10px; } .description-group > * { flex-grow: 1; } .menu-item-actions { padding-top: 15px; padding-bottom: 7px; } #cancel-save { cursor: pointer; } /* Major/minor publishing actions (classes) */ .nav-menus-php .major-publishing-actions { padding: 10px 0; display: flex; align-items: center; } .nav-menus-php .major-publishing-actions > * { margin-left: 10px; } .nav-menus-php .major-publishing-actions .form-invalid { padding-right: 4px; margin-right: -4px; } #nav-menus-frame, #menu-item-url-wrap, #menu-item-name-wrap { display: block; } .button-controls { display: flex; align-items: center; justify-content: space-between; } .button-controls-customlinkdiv { justify-content: flex-end; } /* =Media Queries -------------------------------------------------------------- */ @media only screen and (min-width: 769px) and (max-width: 1000px) { body.menu-max-depth-0 { min-width: 0 !important; } #menu-management-liquid { width: 100%; } .nav-menus-php #post-body-content { min-width: 0; } } @media screen and (max-width: 782px) { body.nav-menus-php, body.wp-customizer { min-width: 0 !important; } #nav-menus-frame { margin-right: 0; float: none; width: 100%; } #wpbody-content #menu-settings-column { display: block; width: 100%; float: none; margin-right: 0; } #side-sortables .add-menu-item-tabs { margin: 15px 0 14px; } ul.add-menu-item-tabs li.tabs { padding: 13px 15px 14px; } .nav-menus-php .customlinkdiv .howto input { width: 65%; } .nav-menus-php .quick-search { width: 85%; } #menu-management-liquid { margin-top: 25px; } .nav-menus-php .menu-name-label.howto span { margin-top: 13px } #menu-name { width: 100%; } .nav-menus-php #nav-menu-header .major-publishing-actions .publishing-action { padding-top: 1em; } .nav-menus-php .delete-action { font-size: 14px; line-height: 2.14285714; } .menu-item-bar .menu-item-handle, .menu-item-settings { width: auto; } .menu-item-settings { padding: 10px; } .menu-item-settings .description-group { display: block; } .menu-item-settings input { width: 100%; } .menu-item-settings input[type="checkbox"], .menu-item-settings input[type="radio"] { width: 25px; } .menu-settings-group { padding-right: 0; overflow: visible; } .menu-settings-group-name { float: none; width: auto; margin-right: 0; margin-bottom: 15px; } .menu-settings-input { float: none; margin-bottom: 15px; } .menu-edit .checkbox-input { margin-top: 0; } .manage-menus select { margin: 0.5em 0; } .wp-core-ui .manage-menus .button { margin-bottom: 0; } .widefat .menu-locations .menu-location-title { padding-top: 16px; } } @media only screen and (min-width: 783px) { @supports (position: sticky) and (scroll-margin-bottom: 130px) { #nav-menu-footer { position: sticky; bottom: 0; z-index: 10; box-shadow: 0 -1px 0 0 #ddd; } #save_menu_header { display: none; } } } @media only screen and (max-width: 768px) { /* menu locations */ #menu-locations-wrap .widefat { width: 100%; } .bulk-select-button { padding: 5px 10px; } } css/farbtastic-rtl.min.css000064400000001032152213653150011550 0ustar00/*! This file is auto-generated */ .farbtastic{position:relative}.farbtastic *{position:absolute;cursor:crosshair}.farbtastic,.farbtastic .wheel{width:195px;height:195px}.farbtastic .color,.farbtastic .overlay{top:47px;right:47px;width:101px;height:101px}.farbtastic .wheel{background:url(../images/wheel.png) no-repeat;width:195px;height:195px}.farbtastic .overlay{background:url(../images/mask.png) no-repeat}.farbtastic .marker{width:17px;height:17px;margin:-8px -8px 0 0;overflow:hidden;background:url(../images/marker.png) no-repeat}css/admin-menu-rtl.css000064400000044443152213653150010713 0ustar00/*! This file is auto-generated */ #adminmenuback, #adminmenuwrap, #adminmenu, #adminmenu .wp-submenu { width: 160px; background-color: #1d2327; } #adminmenuback { position: fixed; top: 0; bottom: -120px; z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */ /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } .php-error #adminmenuback { position: absolute; } .php-error #adminmenuback, .php-error #adminmenuwrap { margin-top: 2em; } #adminmenu { clear: right; margin: 12px 0; padding: 0; list-style: none; } .folded #adminmenuback, .folded #adminmenuwrap, .folded #adminmenu, .folded #adminmenu li.menu-top { width: 36px; } /* New Menu icons */ /* hide background-image for icons above */ .menu-icon-dashboard div.wp-menu-image, .menu-icon-post div.wp-menu-image, .menu-icon-media div.wp-menu-image, .menu-icon-links div.wp-menu-image, .menu-icon-page div.wp-menu-image, .menu-icon-comments div.wp-menu-image, .menu-icon-appearance div.wp-menu-image, .menu-icon-plugins div.wp-menu-image, .menu-icon-users div.wp-menu-image, .menu-icon-tools div.wp-menu-image, .menu-icon-settings div.wp-menu-image, .menu-icon-site div.wp-menu-image, .menu-icon-generic div.wp-menu-image { background-image: none !important; } /*------------------------------------------------------------------------------ 7.0 - Main Navigation (Left Menu) ------------------------------------------------------------------------------*/ #adminmenuwrap { position: relative; float: right; z-index: 9990; } /* side admin menu */ #adminmenu * { -webkit-user-select: none; user-select: none; } #adminmenu li { margin: 0; padding: 0; } #adminmenu a { display: block; line-height: 1.3; padding: 2px 5px; color: #f0f0f1; } #adminmenu .wp-submenu a { color: #c3c4c7; color: rgba(240, 246, 252, 0.7); font-size: 13px; line-height: 1.4; margin: 0; padding: 5px 0; } #adminmenu .wp-submenu a:hover, #adminmenu .wp-submenu a:focus { background: none; } #adminmenu a:hover, #adminmenu li.menu-top > a:focus, #adminmenu .wp-submenu a:hover, #adminmenu .wp-submenu a:focus { color: #72aee6; } #adminmenu a:hover, #adminmenu a:focus, .folded #adminmenu .wp-submenu-head:hover { box-shadow: inset -4px 0 0 0 currentColor; transition: box-shadow .1s linear; border-radius: 0; } #adminmenu li.menu-top { border: none; min-height: 34px; position: relative; } #adminmenu .wp-submenu { list-style: none; position: absolute; top: -1000em; right: 160px; overflow: visible; word-wrap: break-word; padding: 6px 0; z-index: 9999; background-color: #2c3338; box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); } .js #adminmenu .sub-open, .js #adminmenu .opensub .wp-submenu, #adminmenu a.menu-top:focus + .wp-submenu, .no-js li.wp-has-submenu:hover .wp-submenu { top: -1px; } #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { top: 0; } #adminmenu .wp-has-current-submenu .wp-submenu, .no-js li.wp-has-current-submenu:hover .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, #adminmenu .wp-has-current-submenu.opensub .wp-submenu { position: relative; z-index: 3; top: auto; right: auto; left: auto; bottom: auto; border: 0 none; margin-top: 0; box-shadow: none; } .folded #adminmenu .wp-has-current-submenu .wp-submenu { box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); } /* ensure that wp-submenu's box shadow doesn't appear on top of the focused menu item's background. */ #adminmenu li.menu-top:hover, #adminmenu li.opensub > a.menu-top, #adminmenu li > a.menu-top:focus { position: relative; background-color: #1d2327; color: #72aee6; } .folded #adminmenu li.menu-top:hover, .folded #adminmenu li.opensub > a.menu-top, .folded #adminmenu li > a.menu-top:focus { z-index: 10000; } #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head { background: #2271b1; color: #fff; } .folded #adminmenu .wp-submenu.sub-open, .folded #adminmenu .opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, .folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu a.menu-top:focus + .wp-submenu, .folded #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu, .no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu { top: 0; right: 36px; } .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu { position: absolute; top: -1000em; } #adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu { min-width: 160px; width: auto; border: 1px solid transparent; border-right-width: 5px; } #adminmenu .wp-submenu li.current, #adminmenu .wp-submenu li.current a, #adminmenu .opensub .wp-submenu li.current a, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, #adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus { color: #fff; } #adminmenu .wp-not-current-submenu li > a, .folded #adminmenu .wp-has-current-submenu li > a { padding-left: 16px; padding-right: 14px; /* Exclude from the transition the outline for Windows High Contrast mode */ transition: all .1s ease-in-out, outline 0s; } #adminmenu .wp-has-current-submenu ul > li > a, .folded #adminmenu li.menu-top .wp-submenu > li > a { padding: 5px 12px; } #adminmenu a.menu-top, #adminmenu .wp-submenu-head { font-size: 14px; font-weight: 400; line-height: 1.3; padding: 0; } #adminmenu .wp-submenu-head { display: none; } .folded #adminmenu .wp-menu-name { position: absolute; right: -999px; } .folded #adminmenu .wp-submenu-head { display: block; } #adminmenu .wp-submenu li { padding: 0; margin: 0; } #adminmenu .wp-menu-image img { padding: 9px 0 0; opacity: 0.6; filter: alpha(opacity=60); } #adminmenu div.wp-menu-name { padding: 8px 36px 8px 8px; overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-word; hyphens: auto; } #adminmenu div.wp-menu-image { float: right; width: 36px; height: 34px; margin: 0; text-align: center; } #adminmenu div.wp-menu-image.svg { background-repeat: no-repeat; background-position: center; background-size: 20px auto; } div.wp-menu-image:before { color: #a7aaad; color: rgba(240, 246, 252, 0.6); padding: 7px 0; transition: all .1s ease-in-out; } #adminmenu div.wp-menu-image:before { color: #a7aaad; color: rgba(240, 246, 252, 0.6); } #adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before, #adminmenu .wp-has-current-submenu div.wp-menu-image:before, #adminmenu .current div.wp-menu-image:before, #adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before, #adminmenu a.current:hover div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before { color: #fff; } #adminmenu li:hover div.wp-menu-image:before, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before { color: #72aee6; } .folded #adminmenu div.wp-menu-image { width: 35px; height: 30px; position: absolute; z-index: 25; } .folded #adminmenu a.menu-top { height: 34px; } /* Sticky admin menu */ .sticky-menu #adminmenuwrap { position: fixed; } ul#adminmenu a.wp-has-current-submenu { position: relative; } ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu > li.current > a.current:after { left: 0; border: solid 8px transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-left-color: #f0f0f1; top: 50%; margin-top: -8px; } .folded ul#adminmenu li:hover a.wp-has-current-submenu:after, .folded ul#adminmenu li.wp-has-current-submenu:focus-within a.wp-has-current-submenu:after { display: none; } .folded ul#adminmenu a.wp-has-current-submenu:after, .folded ul#adminmenu > li a.current:after { border-width: 4px; margin-top: -4px; } /* flyout menu arrow */ #adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { left: 0; border: 8px solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; top: 10px; z-index: 10000; } .folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, .folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-width: 4px; margin-top: -4px; top: 18px; } #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after, #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-left-color: #2c3338; } #adminmenu li.menu-top:hover .wp-menu-image img, #adminmenu li.wp-has-current-submenu .wp-menu-image img { opacity: 1; filter: alpha(opacity=100); } #adminmenu li.wp-menu-separator { height: 5px; padding: 0; margin: 0 0 6px; cursor: inherit; } /* @todo: is this even needed given that it's nested beneath the above li.wp-menu-separator? */ #adminmenu div.separator { height: 2px; padding: 0; } #adminmenu .wp-submenu .wp-submenu-head { color: #fff; font-weight: 400; font-size: 14px; padding: 5px 11px 5px 4px; margin: -8px -5px 4px -1px; border-width: 3px 5px 3px 1px; border-style: solid; border-color: transparent; } #adminmenu li.current, .folded #adminmenu li.wp-menu-open { border: 0 none; } /* @todo: consider to use a single rule for these counters and the list table comments counters. */ #adminmenu .menu-counter, #adminmenu .awaiting-mod, #adminmenu .update-plugins { display: inline-block; vertical-align: top; box-sizing: border-box; margin: 1px 2px -1px 0; padding: 0 5px; min-width: 18px; height: 18px; border-radius: 9px; background-color: #d63638; color: #fff; font-size: 11px; line-height: 1.6; text-align: center; z-index: 26; } #adminmenu li.current a .awaiting-mod, #adminmenu li a.wp-has-current-submenu .update-plugins { background-color: #d63638; color: #fff; } #adminmenu li span.count-0 { display: none; } #collapse-button { display: block; width: 100%; height: 34px; margin: 0; border: none; padding: 0; position: relative; overflow: visible; background: none; color: #a7aaad; cursor: pointer; } #collapse-button:hover { color: #72aee6; } #collapse-button:focus { color: #72aee6; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; outline-offset: -1px; } #collapse-button .collapse-button-icon, #collapse-button .collapse-button-label { /* absolutely positioned to avoid 1px shift in IE when button is pressed */ display: block; position: absolute; top: 0; right: 0; } #collapse-button .collapse-button-label { top: 8px; } #collapse-button .collapse-button-icon { width: 36px; height: 34px; } #collapse-button .collapse-button-label { padding: 0 36px 0 0; } .folded #collapse-button .collapse-button-label { display: none; } #collapse-button .collapse-button-icon:after { content: "\f148"; content: "\f148" / ''; display: block; position: relative; top: 7px; text-align: center; font: normal 20px/1 dashicons !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* rtl:ignore */ .folded #collapse-button .collapse-button-icon:after, .rtl #collapse-button .collapse-button-icon:after { transform: rotate(180deg); } .rtl.folded #collapse-button .collapse-button-icon:after { transform: none; } #collapse-button .collapse-button-icon:after, #collapse-button .collapse-button-label { transition: all .1s ease-in-out; } /** * Toolbar menu toggle */ li#wp-admin-bar-menu-toggle { display: none; } /* Hide-if-customize for items we can't add classes to */ .customize-support #menu-appearance a[href="themes.php?page=custom-header"], .customize-support #menu-appearance a[href="themes.php?page=custom-background"] { display: none; } /* Auto-folding of the admin menu */ @media only screen and (max-width: 960px) { .auto-fold #wpcontent, .auto-fold #wpfooter { margin-right: 36px; } .auto-fold #adminmenuback, .auto-fold #adminmenuwrap, .auto-fold #adminmenu, .auto-fold #adminmenu li.menu-top { width: 36px; } .auto-fold #adminmenu .wp-submenu.sub-open, .auto-fold #adminmenu .opensub .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open, .auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { top: 0; right: 36px; } .auto-fold #adminmenu a.wp-has-current-submenu:focus + .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { position: absolute; top: -1000em; margin-left: -1px; padding: 6px 0; z-index: 9999; } .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { min-width: 160px; width: auto; border: 1px solid transparent; border-right-width: 5px; } .auto-fold #adminmenu .wp-has-current-submenu li > a { padding-left: 16px; padding-right: 14px; } .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { padding-right: 12px; } .auto-fold #adminmenu .wp-menu-name { position: absolute; right: -999px; } .auto-fold #adminmenu .wp-submenu-head { display: block; } .auto-fold #adminmenu div.wp-menu-image { height: 30px; width: 34px; position: absolute; z-index: 25; } .auto-fold #adminmenu a.menu-top { min-height: 34px; } .auto-fold #adminmenu li.wp-menu-open { border: 0 none; } .auto-fold #adminmenu .wp-has-current-submenu.menu-top-last { margin-bottom: 0; } .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after, .auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after { display: none; } .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { border-width: 4px; margin-top: -4px; top: 16px; } .auto-fold ul#adminmenu a.wp-has-current-submenu:after, .auto-fold ul#adminmenu > li a.current:after { border-width: 4px; margin-top: -4px; } .auto-fold #adminmenu li.menu-top:hover, .auto-fold #adminmenu li.opensub > a.menu-top, .auto-fold #adminmenu li > a.menu-top:focus { z-index: 10000; } .auto-fold #collapse-menu .collapse-button-label { display: none; } /* rtl:ignore */ .auto-fold #collapse-button .collapse-button-icon:after { transform: rotate(180deg); } .rtl.auto-fold #collapse-button .collapse-button-icon:after { transform: none; } } @media screen and (max-width: 782px) { .auto-fold #wpcontent { position: relative; margin-right: 0; padding-right: 10px; } .sticky-menu #adminmenuwrap { position: relative; z-index: auto; top: 0; } /* Sidebar Adjustments */ .auto-fold #adminmenu, .auto-fold #adminmenuback, .auto-fold #adminmenuwrap { position: absolute; width: 190px; z-index: 100; } .auto-fold #adminmenuback { position: fixed; } .auto-fold #adminmenuback, .auto-fold #adminmenuwrap { display: none; } .auto-fold .wp-responsive-open #adminmenuback, .auto-fold .wp-responsive-open #adminmenuwrap { display: block; } .auto-fold #adminmenu li.menu-top { width: 100%; } /* Resize the admin menu items to a comfortable touch size */ .auto-fold #adminmenu li a { font-size: 16px; padding: 5px; } .auto-fold #adminmenu li.menu-top .wp-submenu > li > a { padding: 10px 20px 10px 10px; } /* Restore the menu names */ .auto-fold #adminmenu .wp-menu-name { position: static; } /* Switch the arrow side */ .auto-fold ul#adminmenu a.wp-has-current-submenu:after, .auto-fold ul#adminmenu > li.current > a.current:after { border-width: 8px; margin-top: -8px; } .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after, .auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after { display: none; } /* Make the submenus appear correctly when tapped. */ #adminmenu .wp-submenu { position: relative; display: none; } .auto-fold #adminmenu .selected .wp-submenu, .auto-fold #adminmenu .wp-menu-open .wp-submenu { position: relative; display: block; top: 0; right: -1px; box-shadow: none; } .auto-fold #adminmenu .selected .wp-submenu:after, .auto-fold #adminmenu .wp-menu-open .wp-submenu:after { display: none; } .auto-fold #adminmenu .opensub .wp-submenu { display: none; } .auto-fold #adminmenu .selected .wp-submenu { display: block; } .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after, .auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after { display: block; } .auto-fold #adminmenu a.menu-top:focus + .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus + .wp-submenu { position: relative; right: -1px; left: 0; top: 0; } #adminmenu .wp-not-current-submenu .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, .auto-fold #adminmenu .wp-has-current-submenu .wp-submenu { border: none; } /* Remove submenu headers and adjust sub meu*/ #adminmenu .wp-submenu .wp-submenu-head { display: none; } /* Toolbar menu toggle */ #wp-responsive-toggle { position: fixed; top: 5px; right: 4px; padding-left: 10px; z-index: 99999; border: none; box-sizing: border-box; } #wpadminbar #wp-admin-bar-menu-toggle a { display: block; padding: 0; overflow: hidden; outline: none; text-decoration: none; border: 1px solid transparent; background: none; height: 44px; margin-right: -1px; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { background: #2c3338; } li#wp-admin-bar-menu-toggle { display: block; } #wpadminbar #wp-admin-bar-menu-toggle a:hover { border: 1px solid transparent; } #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { content: "\f228"; display: inline-block; float: right; font: normal 40px/45px dashicons; vertical-align: middle; outline: none; margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; height: 44px; width: 50px; padding: 0; border: none; text-align: center; text-decoration: none; box-sizing: border-box; } .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { color: #72aee6; } } /* Smartphone */ @media screen and (max-width: 600px) { #adminmenuwrap, #adminmenuback { display: none; } .wp-responsive-open #adminmenuwrap, .wp-responsive-open #adminmenuback { display: block; } .auto-fold #adminmenu { top: 46px; } } css/farbtastic.css000064400000001143152213653150010172 0ustar00 .farbtastic { position: relative; } .farbtastic * { position: absolute; cursor: crosshair; } .farbtastic, .farbtastic .wheel { width: 195px; height: 195px; } .farbtastic .color, .farbtastic .overlay { top: 47px; left: 47px; width: 101px; height: 101px; } .farbtastic .wheel { background: url(../images/wheel.png) no-repeat; width: 195px; height: 195px; } .farbtastic .overlay { background: url(../images/mask.png) no-repeat; } .farbtastic .marker { width: 17px; height: 17px; margin: -8px 0 0 -8px; overflow: hidden; background: url(../images/marker.png) no-repeat; } css/code-editor.min.css000064400000002633152213653150011035 0ustar00/*! This file is auto-generated */ .wp-core-ui [class*=CodeMirror-lint-message],.wrap .CodeMirror-lint-marker-multiple,.wrap [class*=CodeMirror-lint-marker]{background-image:none}.wp-core-ui .CodeMirror-lint-marker-error,.wp-core-ui .CodeMirror-lint-marker-warning{cursor:help}.wrap .CodeMirror-lint-marker-multiple{position:absolute;top:0}.wrap [class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;position:relative;top:-2px}.wp-core-ui [class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;left:16px;position:absolute}.wp-core-ui .CodeMirror-lint-message-error,.wp-core-ui .CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin:5px 0 2px;padding:3px 12px 3px 28px}.wp-core-ui .CodeMirror-lint-message-warning{background-color:#fcf9e8;border-left:4px solid #dba617}.wp-core-ui .CodeMirror-lint-message-warning:before,.wrap .CodeMirror-lint-marker-warning:before{content:"\f534";color:#dba617}.wp-core-ui .CodeMirror-lint-message-error{background-color:#fcf0f1;border-left:4px solid #d63638}.wp-core-ui .CodeMirror-lint-message-error:before,.wrap .CodeMirror-lint-marker-error:before{content:"\f153";color:#d63638}.wp-core-ui .CodeMirror-lint-tooltip{background:0 0;border:none;border-radius:0;direction:ltr}.wrap .CodeMirror .CodeMirror-matchingbracket{background:rgba(219,166,23,.3);color:inherit}.CodeMirror{text-align:left}.wrap .CodeMirror .CodeMirror-linenumber{color:#646970}css/customize-widgets.min.css000064400000024216152213653150012326 0ustar00/*! This file is auto-generated */ .wp-full-overlay-sidebar{overflow:visible}.control-section.control-section-sidebar,.customize-control-sidebar_widgets .hide-if-js,.customize-control-sidebar_widgets label{display:none}.control-section.control-section-sidebar .accordion-section-content.ui-sortable{overflow:visible}.customize-control-widget_form .widget-top{background:#fff;transition:opacity .5s}.customize-control .widget-action{color:#787c82}.customize-control .widget-action:focus,.customize-control .widget-top:hover .widget-action{color:#1d2327}.customize-control-widget_form:not(.widget-rendered) .widget-top{opacity:.5}.customize-control-widget_form .widget-control-save{display:none}.customize-control-widget_form .spinner{visibility:hidden;margin-top:0}.customize-control-widget_form.previewer-loading .spinner{visibility:visible}.customize-control-widget_form.widget-form-disabled .widget-content{opacity:.7;pointer-events:none;-webkit-user-select:none;user-select:none}.customize-control-widget_form .widget{margin-bottom:0}.customize-control-widget_form.wide-widget-control .widget-inside{position:fixed;left:299px;top:25%;border:1px solid #dcdcde;overflow:auto}.customize-control-widget_form.wide-widget-control .widget-inside>.form{padding:20px}.customize-control-widget_form.wide-widget-control .widget-top{transition:background-color .4s}.customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top,.customize-control-widget_form.wide-widget-control.expanding .widget-top{background-color:#dcdcde}.widget-inside{padding:1px 10px 10px;border-top:none;line-height:1.23076923}.customize-control-widget_form.expanded .widget-action .toggle-indicator:before{content:"\f142"}.customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before{content:"\f139"}.customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before{content:"\f141"}.widget-title-action{cursor:pointer}.customize-control-widget_form .widget .customize-control-title,.widget-top{cursor:move}.control-section.accordion-section.highlighted>.accordion-section-title,.customize-control-widget_form.highlighted{outline:0;box-shadow:0 0 2px rgba(79,148,212,.8);position:relative;z-index:1}#widget-customizer-control-templates{display:none}#customize-theme-controls .widget-reorder-nav{display:none;float:right;background-color:#f6f7f7}.move-widget:before{content:"\f504";content:"\f504"/''}#customize-theme-controls .move-widget-area{display:none;background:#fff;border:1px solid #c3c4c7;border-top:none;cursor:auto}#customize-theme-controls .reordering .move-widget-area.active{display:block}#customize-theme-controls .move-widget-area .description{margin:0;padding:15px 20px;font-weight:400}#customize-theme-controls .widget-area-select{margin:0;padding:0;list-style:none}#customize-theme-controls .widget-area-select li{position:relative;margin:0;padding:13px 15px 15px 42px;color:#50575e;border-top:1px solid #c3c4c7;cursor:pointer;-webkit-user-select:none;user-select:none}#customize-theme-controls .widget-area-select li:before{display:none;content:"\f147";content:"\f147"/'';position:absolute;top:12px;left:10px;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#customize-theme-controls .widget-area-select li:last-child{border-bottom:1px solid #c3c4c7}#customize-theme-controls .widget-area-select .selected{color:#fff;background:var(--wp-admin-theme-color)}#customize-theme-controls .widget-area-select .selected:before{display:block}#customize-theme-controls .move-widget-actions{text-align:right;padding:12px}#customize-theme-controls .reordering .widget-title-action{display:none}#customize-theme-controls .reordering .widget-reorder-nav{display:block}.wp-customizer div.mce-inline-toolbar-grp,.wp-customizer div.mce-tooltip{z-index:500100!important}.wp-customizer .ui-autocomplete.wplink-autocomplete{z-index:500110}.wp-customizer #wp-link-backdrop{z-index:500100}.wp-customizer #wp-link-wrap{z-index:500105}#widgets-left #available-widgets .widget{float:none!important;width:auto!important}#available-widgets .widget-action{display:none}.ios #available-widgets{transition:left 0s}#available-widgets .widget-tpl.selected,#available-widgets .widget-tpl:hover{background:#f6f7f7;border-bottom-color:#c3c4c7;color:var(--wp-admin-theme-color);border-left:4px solid var(--wp-admin-theme-color)}#customize-controls .widget-title h3{font-size:1em}#available-widgets .widget-title h3{padding:0 0 5px;font-size:14px}#available-widgets .widget .widget-description{padding:0;color:#646970}@media (prefers-reduced-motion:no-preference){#customize-preview{transition:all .2s}}body.adding-widget #available-widgets{left:0;visibility:visible}body.adding-widget .wp-full-overlay-main{left:300px}body.adding-widget #customize-preview{opacity:.4}#available-widgets .widget-title{position:relative}#available-widgets .widget-title:before{content:"\f132";content:"\f132"/'';position:absolute;top:-3px;right:100%;margin-right:20px;width:20px;height:20px;color:#2c3338;font:normal 20px/1 dashicons;text-align:center;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-widgets [class*=easy] .widget-title:before{content:"\f328";content:"\f328"/'';top:-4px}#available-widgets [class*=like] .widget-title:before,#available-widgets [class*=super] .widget-title:before{content:"\f155";content:"\f155"/'';top:-4px}#available-widgets [class*=meta] .widget-title:before{content:"\f120";content:"\f120"/''}#available-widgets [class*=archives] .widget-title:before{content:"\f480";content:"\f480"/'';top:-4px}#available-widgets [class*=categor] .widget-title:before{content:"\f318";content:"\f318"/'';top:-4px}#available-widgets [class*=chat] .widget-title:before,#available-widgets [class*=comment] .widget-title:before,#available-widgets [class*=testimonial] .widget-title:before{content:"\f101";content:"\f101"/''}#available-widgets [class*=post] .widget-title:before{content:"\f109";content:"\f109"/''}#available-widgets [class*=page] .widget-title:before{content:"\f105";content:"\f105"/''}#available-widgets [class*=text] .widget-title:before{content:"\f478";content:"\f478"/''}#available-widgets [class*=link] .widget-title:before{content:"\f103";content:"\f103"/''}#available-widgets [class*=search] .widget-title:before{content:"\f179";content:"\f179"/''}#available-widgets [class*=menu] .widget-title:before,#available-widgets [class*=nav] .widget-title:before{content:"\f333";content:"\f333"/''}#available-widgets [class*=tag] .widget-title:before{content:"\f479";content:"\f479"/''}#available-widgets [class*=rss] .widget-title:before{content:"\f303";content:"\f303"/'';top:-6px}#available-widgets [class*=calendar] .widget-title:before,#available-widgets [class*=event] .widget-title:before{content:"\f145";content:"\f145"/'';top:-4px}#available-widgets [class*=image] .widget-title:before,#available-widgets [class*=instagram] .widget-title:before,#available-widgets [class*=photo] .widget-title:before,#available-widgets [class*=slide] .widget-title:before{content:"\f128";content:"\f128"/''}#available-widgets [class*=album] .widget-title:before,#available-widgets [class*=galler] .widget-title:before{content:"\f161";content:"\f161"/''}#available-widgets [class*=tube] .widget-title:before,#available-widgets [class*=video] .widget-title:before{content:"\f126";content:"\f126"/''}#available-widgets [class*=audio] .widget-title:before,#available-widgets [class*=music] .widget-title:before,#available-widgets [class*=radio] .widget-title:before{content:"\f127";content:"\f127"/''}#available-widgets [class*=avatar] .widget-title:before,#available-widgets [class*=grofile] .widget-title:before,#available-widgets [class*=login] .widget-title:before,#available-widgets [class*=member] .widget-title:before,#available-widgets [class*=profile] .widget-title:before,#available-widgets [class*=subscriber] .widget-title:before,#available-widgets [class*=user] .widget-title:before{content:"\f110";content:"\f110"/''}#available-widgets [class*=cart] .widget-title:before,#available-widgets [class*=commerce] .widget-title:before,#available-widgets [class*=shop] .widget-title:before{content:"\f174";content:"\f174"/'';top:-4px}#available-widgets [class*=firewall] .widget-title:before,#available-widgets [class*=secur] .widget-title:before{content:"\f332";content:"\f332"/''}#available-widgets [class*=analytic] .widget-title:before,#available-widgets [class*=poll] .widget-title:before,#available-widgets [class*=stat] .widget-title:before{content:"\f185";content:"\f185"/''}#available-widgets [class*=form] .widget-title:before{content:"\f175";content:"\f175"/''}#available-widgets [class*=contact] .widget-title:before,#available-widgets [class*=mail] .widget-title:before,#available-widgets [class*=news] .widget-title:before,#available-widgets [class*=subscribe] .widget-title:before{content:"\f466";content:"\f466"/''}#available-widgets [class*=share] .widget-title:before,#available-widgets [class*=socia] .widget-title:before{content:"\f237";content:"\f237"/''}#available-widgets [class*=lang] .widget-title:before,#available-widgets [class*=translat] .widget-title:before{content:"\f326";content:"\f326"/''}#available-widgets [class*=locat] .widget-title:before,#available-widgets [class*=map] .widget-title:before{content:"\f231";content:"\f231"/''}#available-widgets [class*=download] .widget-title:before{content:"\f316";content:"\f316"/''}#available-widgets [class*=weather] .widget-title:before{content:"\f176";content:"\f176"/'';top:-4px}#available-widgets [class*=facebook] .widget-title:before{content:"\f304";content:"\f304"/''}#available-widgets [class*=tweet] .widget-title:before,#available-widgets [class*=twitter] .widget-title:before{content:"\f301";content:"\f301"/''}@media screen and (max-height:700px) and (min-width:981px){.customize-control-widget_form{margin-bottom:0}.widget-top{box-shadow:none;margin-top:-1px}.widget-top:hover{position:relative;z-index:1}.last-widget{margin-bottom:15px}.widget-title h3{padding:13px 15px}.widget-top .widget-action{padding:8px 10px}.widget-reorder-nav span{height:39px}.widget-reorder-nav span:before{line-height:39px}#customize-theme-controls .widget-area-select li{padding:9px 15px 11px 42px}#customize-theme-controls .widget-area-select li:before{top:8px}}css/wp-admin.css000064400000000613152213653150007565 0ustar00@import url(common.css); @import url(forms.css); @import url(admin-menu.css); @import url(dashboard.css); @import url(list-tables.css); @import url(edit.css); @import url(revisions.css); @import url(media.css); @import url(themes.css); @import url(about.css); @import url(nav-menus.css); @import url(widgets.css); @import url(site-icon.css); @import url(l10n.css); @import url(site-health.css); css/admin-menu.min.css000064400000035457152213653150010703 0ustar00/*! This file is auto-generated */ #adminmenu,#adminmenu .wp-submenu,#adminmenuback,#adminmenuwrap{width:160px;background-color:#1d2327}#adminmenuback{position:fixed;top:0;bottom:-120px;z-index:1;outline:1px solid transparent}.php-error #adminmenuback{position:absolute}.php-error #adminmenuback,.php-error #adminmenuwrap{margin-top:2em}#adminmenu{clear:left;margin:12px 0;padding:0;list-style:none}.folded #adminmenu,.folded #adminmenu li.menu-top,.folded #adminmenuback,.folded #adminmenuwrap{width:36px}.menu-icon-appearance div.wp-menu-image,.menu-icon-comments div.wp-menu-image,.menu-icon-dashboard div.wp-menu-image,.menu-icon-generic div.wp-menu-image,.menu-icon-links div.wp-menu-image,.menu-icon-media div.wp-menu-image,.menu-icon-page div.wp-menu-image,.menu-icon-plugins div.wp-menu-image,.menu-icon-post div.wp-menu-image,.menu-icon-settings div.wp-menu-image,.menu-icon-site div.wp-menu-image,.menu-icon-tools div.wp-menu-image,.menu-icon-users div.wp-menu-image{background-image:none!important}#adminmenuwrap{position:relative;float:left;z-index:9990}#adminmenu *{-webkit-user-select:none;user-select:none}#adminmenu li{margin:0;padding:0}#adminmenu a{display:block;line-height:1.3;padding:2px 5px;color:#f0f0f1}#adminmenu .wp-submenu a{color:#c3c4c7;color:rgba(240,246,252,.7);font-size:13px;line-height:1.4;margin:0;padding:5px 0}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover{background:0 0}#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a:hover,#adminmenu li.menu-top>a:focus{color:#72aee6}#adminmenu a:focus,#adminmenu a:hover,.folded #adminmenu .wp-submenu-head:hover{box-shadow:inset 4px 0 0 0 currentColor;transition:box-shadow .1s linear;border-radius:0}#adminmenu li.menu-top{border:none;min-height:34px;position:relative}#adminmenu .wp-submenu{list-style:none;position:absolute;top:-1000em;left:160px;overflow:visible;word-wrap:break-word;padding:6px 0;z-index:9999;background-color:#2c3338;box-shadow:0 3px 5px rgba(0,0,0,.2)}#adminmenu a.menu-top:focus+.wp-submenu,.js #adminmenu .opensub .wp-submenu,.js #adminmenu .sub-open,.no-js li.wp-has-submenu:hover .wp-submenu{top:-1px}#adminmenu a.wp-has-current-submenu:focus+.wp-submenu{top:0}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,.no-js li.wp-has-current-submenu:hover .wp-submenu{position:relative;z-index:3;top:auto;left:auto;right:auto;bottom:auto;border:0 none;margin-top:0;box-shadow:none}.folded #adminmenu .wp-has-current-submenu .wp-submenu{box-shadow:0 3px 5px rgba(0,0,0,.2)}#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{position:relative;background-color:#1d2327;color:#72aee6}.folded #adminmenu li.menu-top:hover,.folded #adminmenu li.opensub>a.menu-top,.folded #adminmenu li>a.menu-top:focus{z-index:10000}#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,#adminmenu li.current a.menu-top,#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu{background:#2271b1;color:#fff}.folded #adminmenu .opensub .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.folded #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.folded #adminmenu .wp-submenu.sub-open,.folded #adminmenu a.menu-top:focus+.wp-submenu,.no-js.folded #adminmenu .wp-has-submenu:hover .wp-submenu{top:0;left:36px}.folded #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em}#adminmenu .wp-not-current-submenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{min-width:160px;width:auto;border:1px solid transparent;border-left-width:5px}#adminmenu .opensub .wp-submenu li.current a,#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:focus,#adminmenu .wp-submenu li.current a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu li.current a{color:#fff}#adminmenu .wp-not-current-submenu li>a,.folded #adminmenu .wp-has-current-submenu li>a{padding-right:16px;padding-left:14px;transition:all .1s ease-in-out,outline 0s}#adminmenu .wp-has-current-submenu ul>li>a,.folded #adminmenu li.menu-top .wp-submenu>li>a{padding:5px 12px}#adminmenu .wp-submenu-head,#adminmenu a.menu-top{font-size:14px;font-weight:400;line-height:1.3;padding:0}#adminmenu .wp-submenu-head{display:none}.folded #adminmenu .wp-menu-name{position:absolute;left:-999px}.folded #adminmenu .wp-submenu-head{display:block}#adminmenu .wp-submenu li{padding:0;margin:0}#adminmenu .wp-menu-image img{padding:9px 0 0;opacity:.6}#adminmenu div.wp-menu-name{padding:8px 8px 8px 36px;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;hyphens:auto}#adminmenu div.wp-menu-image{float:left;width:36px;height:34px;margin:0;text-align:center}#adminmenu div.wp-menu-image.svg{background-repeat:no-repeat;background-position:center;background-size:20px auto}div.wp-menu-image:before{color:#a7aaad;color:rgba(240,246,252,.6);padding:7px 0;transition:all .1s ease-in-out}#adminmenu div.wp-menu-image:before{color:#a7aaad;color:rgba(240,246,252,.6)}#adminmenu .current div.wp-menu-image:before,#adminmenu .wp-has-current-submenu div.wp-menu-image:before,#adminmenu a.current:hover div.wp-menu-image:before,#adminmenu a.wp-has-current-submenu:hover div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,#adminmenu li.wp-has-current-submenu:hover div.wp-menu-image:before{color:#fff}#adminmenu li a:focus div.wp-menu-image:before,#adminmenu li.opensub div.wp-menu-image:before,#adminmenu li:hover div.wp-menu-image:before{color:#72aee6}.folded #adminmenu div.wp-menu-image{width:35px;height:30px;position:absolute;z-index:25}.folded #adminmenu a.menu-top{height:34px}.sticky-menu #adminmenuwrap{position:fixed}ul#adminmenu a.wp-has-current-submenu{position:relative}ul#adminmenu a.wp-has-current-submenu:after,ul#adminmenu>li.current>a.current:after{right:0;border:solid 8px transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-right-color:#f0f0f1;top:50%;margin-top:-8px}.folded ul#adminmenu li.wp-has-current-submenu:focus-within a.wp-has-current-submenu:after,.folded ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.folded ul#adminmenu a.wp-has-current-submenu:after,.folded ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{right:0;border:8px solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;top:10px;z-index:10000}.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,.folded ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:18px}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after{border-right-color:#2c3338}#adminmenu li.menu-top:hover .wp-menu-image img,#adminmenu li.wp-has-current-submenu .wp-menu-image img{opacity:1}#adminmenu li.wp-menu-separator{height:5px;padding:0;margin:0 0 6px;cursor:inherit}#adminmenu div.separator{height:2px;padding:0}#adminmenu .wp-submenu .wp-submenu-head{color:#fff;font-weight:400;font-size:14px;padding:5px 4px 5px 11px;margin:-8px -1px 4px -5px;border-width:3px 1px 3px 5px;border-style:solid;border-color:transparent}#adminmenu li.current,.folded #adminmenu li.wp-menu-open{border:0 none}#adminmenu .awaiting-mod,#adminmenu .menu-counter,#adminmenu .update-plugins{display:inline-block;vertical-align:top;box-sizing:border-box;margin:1px 0 -1px 2px;padding:0 5px;min-width:18px;height:18px;border-radius:9px;background-color:#d63638;color:#fff;font-size:11px;line-height:1.6;text-align:center;z-index:26}#adminmenu li a.wp-has-current-submenu .update-plugins,#adminmenu li.current a .awaiting-mod{background-color:#d63638;color:#fff}#adminmenu li span.count-0{display:none}#collapse-button{display:block;width:100%;height:34px;margin:0;border:none;padding:0;position:relative;overflow:visible;background:0 0;color:#a7aaad;cursor:pointer}#collapse-button:hover{color:#72aee6}#collapse-button:focus{color:#72aee6;outline:1px solid transparent;outline-offset:-1px}#collapse-button .collapse-button-icon,#collapse-button .collapse-button-label{display:block;position:absolute;top:0;left:0}#collapse-button .collapse-button-label{top:8px}#collapse-button .collapse-button-icon{width:36px;height:34px}#collapse-button .collapse-button-label{padding:0 0 0 36px}.folded #collapse-button .collapse-button-label{display:none}#collapse-button .collapse-button-icon:after{content:"\f148";content:"\f148"/'';display:block;position:relative;top:7px;text-align:center;font:normal 20px/1 dashicons!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.folded #collapse-button .collapse-button-icon:after,.rtl #collapse-button .collapse-button-icon:after{transform:rotate(180deg)}.rtl.folded #collapse-button .collapse-button-icon:after{transform:none}#collapse-button .collapse-button-icon:after,#collapse-button .collapse-button-label{transition:all .1s ease-in-out}li#wp-admin-bar-menu-toggle{display:none}.customize-support #menu-appearance a[href="themes.php?page=custom-background"],.customize-support #menu-appearance a[href="themes.php?page=custom-header"]{display:none}@media only screen and (max-width:960px){.auto-fold #wpcontent,.auto-fold #wpfooter{margin-left:36px}.auto-fold #adminmenu,.auto-fold #adminmenu li.menu-top,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{width:36px}.auto-fold #adminmenu .opensub .wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu.opensub .wp-submenu,.auto-fold #adminmenu .wp-submenu.sub-open,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{top:0;left:36px}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu,.auto-fold #adminmenu a.wp-has-current-submenu:focus+.wp-submenu{position:absolute;top:-1000em;margin-right:-1px;padding:6px 0;z-index:9999}.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu{min-width:160px;width:auto;border:1px solid transparent;border-left-width:5px}.auto-fold #adminmenu .wp-has-current-submenu li>a{padding-right:16px;padding-left:14px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding-left:12px}.auto-fold #adminmenu .wp-menu-name{position:absolute;left:-999px}.auto-fold #adminmenu .wp-submenu-head{display:block}.auto-fold #adminmenu div.wp-menu-image{height:30px;width:34px;position:absolute;z-index:25}.auto-fold #adminmenu a.menu-top{min-height:34px}.auto-fold #adminmenu li.wp-menu-open{border:0 none}.auto-fold #adminmenu .wp-has-current-submenu.menu-top-last{margin-bottom:0}.auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:none}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{border-width:4px;margin-top:-4px;top:16px}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li a.current:after{border-width:4px;margin-top:-4px}.auto-fold #adminmenu li.menu-top:hover,.auto-fold #adminmenu li.opensub>a.menu-top,.auto-fold #adminmenu li>a.menu-top:focus{z-index:10000}.auto-fold #collapse-menu .collapse-button-label{display:none}.auto-fold #collapse-button .collapse-button-icon:after{transform:rotate(180deg)}.rtl.auto-fold #collapse-button .collapse-button-icon:after{transform:none}}@media screen and (max-width:782px){.auto-fold #wpcontent{position:relative;margin-left:0;padding-left:10px}.sticky-menu #adminmenuwrap{position:relative;z-index:auto;top:0}.auto-fold #adminmenu,.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{position:absolute;width:190px;z-index:100}.auto-fold #adminmenuback{position:fixed}.auto-fold #adminmenuback,.auto-fold #adminmenuwrap{display:none}.auto-fold .wp-responsive-open #adminmenuback,.auto-fold .wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu li.menu-top{width:100%}.auto-fold #adminmenu li a{font-size:16px;padding:5px}.auto-fold #adminmenu li.menu-top .wp-submenu>li>a{padding:10px 10px 10px 20px}.auto-fold #adminmenu .wp-menu-name{position:static}.auto-fold ul#adminmenu a.wp-has-current-submenu:after,.auto-fold ul#adminmenu>li.current>a.current:after{border-width:8px;margin-top:-8px}.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,.auto-fold ul#adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after{display:none}#adminmenu .wp-submenu{position:relative;display:none}.auto-fold #adminmenu .selected .wp-submenu,.auto-fold #adminmenu .wp-menu-open .wp-submenu{position:relative;display:block;top:0;left:-1px;box-shadow:none}.auto-fold #adminmenu .selected .wp-submenu:after,.auto-fold #adminmenu .wp-menu-open .wp-submenu:after{display:none}.auto-fold #adminmenu .opensub .wp-submenu{display:none}.auto-fold #adminmenu .selected .wp-submenu{display:block}.auto-fold ul#adminmenu li:focus-within a.wp-has-current-submenu:after,.auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after{display:block}.auto-fold #adminmenu .wp-has-current-submenu a.menu-top:focus+.wp-submenu,.auto-fold #adminmenu a.menu-top:focus+.wp-submenu{position:relative;left:-1px;right:0;top:0}#adminmenu .wp-not-current-submenu .wp-submenu,.auto-fold #adminmenu .wp-has-current-submenu .wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{border:none}#adminmenu .wp-submenu .wp-submenu-head{display:none}#wp-responsive-toggle{position:fixed;top:5px;left:4px;padding-right:10px;z-index:99999;border:none;box-sizing:border-box}#wpadminbar #wp-admin-bar-menu-toggle a{display:block;padding:0;overflow:hidden;outline:0;text-decoration:none;border:1px solid transparent;background:0 0;height:44px;margin-left:-1px}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a{background:#2c3338}li#wp-admin-bar-menu-toggle{display:block}#wpadminbar #wp-admin-bar-menu-toggle a:hover{border:1px solid transparent}#wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{content:"\f228";display:inline-block;float:left;font:normal 40px/45px dashicons;vertical-align:middle;outline:0;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:44px;width:50px;padding:0;border:none;text-align:center;text-decoration:none;box-sizing:border-box}.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before{color:#72aee6}}@media screen and (max-width:600px){#adminmenuback,#adminmenuwrap{display:none}.wp-responsive-open #adminmenuback,.wp-responsive-open #adminmenuwrap{display:block}.auto-fold #adminmenu{top:46px}}css/common.min.css000064400000167607152213653150010144 0ustar00/*! This file is auto-generated */ #wpwrap{height:auto;min-height:100%;width:100%;position:relative;-webkit-font-smoothing:subpixel-antialiased}#wpcontent{height:100%;padding-left:20px}#wpcontent,#wpfooter{margin-left:160px}.folded #wpcontent,.folded #wpfooter{margin-left:36px}#wpbody-content{padding-bottom:65px;float:left;width:100%;overflow:visible}.inner-sidebar{float:right;clear:right;display:none;width:281px;position:relative}.columns-2 .inner-sidebar{margin-right:auto;width:286px;display:block}.columns-2 .inner-sidebar #side-sortables,.inner-sidebar #side-sortables{min-height:300px;width:280px;padding:0}.has-right-sidebar .inner-sidebar{display:block}.has-right-sidebar #post-body{float:left;clear:left;width:100%;margin-right:-2000px}.has-right-sidebar #post-body-content{margin-right:300px;float:none;width:auto}#col-left{float:left;width:35%}#col-right{float:right;width:65%}#col-left .col-wrap{padding:0 6px 0 0}#col-right .col-wrap{padding:0 0 0 6px}.alignleft{float:left}.alignright{float:right}.textleft{text-align:left}.textright{text-align:right}.clear{clear:both}.wp-clearfix:after{content:"";display:table;clear:both}.screen-reader-text,.screen-reader-text span,.ui-helper-hidden-accessible{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}.button .screen-reader-text{height:auto}.screen-reader-text+.dashicons-external{margin-top:-1px;margin-left:2px;text-decoration:none}.screen-reader-shortcut{position:absolute;top:-1000em;left:6px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#fff;color:var(--wp-admin-theme-color,#3858e9);z-index:100000;line-height:normal}.screen-reader-shortcut:focus{top:-25px;color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);text-decoration:none;outline:2px solid transparent;outline-offset:-2px}.hidden,.js .closed .inside,.js .hide-if-js,.js .wp-core-ui .hide-if-js,.js.wp-core-ui .hide-if-js,.no-js .hide-if-no-js,.no-js .wp-core-ui .hide-if-no-js,.no-js.wp-core-ui .hide-if-no-js{display:none}#menu-management .menu-edit,#menu-settings-column .accordion-container,.comment-ays,.feature-filter,.manage-menus,.menu-item-handle,.popular-tags,.stuffbox,.widget-inside,.widget-top,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04)}.comment-ays,.feature-filter,.popular-tags,.stuffbox,.widgets-holder-wrap,.wp-editor-container,p.popular-tags,table.widefat{background:#fff}body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4em;min-width:600px}body.iframe{min-width:0;padding-top:1px}body.modal-open{overflow:hidden}body.mobile.modal-open #wpwrap{overflow:hidden;position:fixed;height:100%}iframe,img{border:0}td{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit}a{color:#2271b1;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a,div{outline:0}a:active,a:hover{color:#135e96}.wp-person a:focus .gravatar,a:focus,a:focus .media-icon img,a:focus .plugin-icon{color:#043959;border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#adminmenu a:focus{box-shadow:none;outline:1px solid transparent;outline-offset:-1px}.screen-reader-text:focus{box-shadow:none;outline:0}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}.wp-die-message,p{font-size:13px;line-height:1.5;margin:1em 0}blockquote{margin:1em}dd,li{margin-bottom:6px}h1,h2,h3,h4,h5,h6{display:block;font-weight:600}h1{color:#1d2327;font-size:2em;margin:.67em 0}h2,h3{color:#1d2327;font-size:1.3em;margin:1em 0}.update-core-php h2{margin-top:4em}.update-messages h2,.update-php h2,h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}ol,ul{padding:0}ul{list-style:none}ol{list-style-type:decimal;margin-left:2em}ul.ul-disc{list-style:disc outside}ul.ul-square{list-style:square outside}ol.ol-decimal{list-style:decimal outside}ol.ol-decimal,ul.ul-disc,ul.ul-square{margin-left:1.8em}ol.ol-decimal>li,ul.ul-disc>li,ul.ul-square>li{margin:0 0 .5em}.ltr{direction:ltr}.code,code{font-family:Consolas,Monaco,monospace;direction:ltr;unicode-bidi:embed}code,kbd{padding:3px 5px 2px;margin:0 1px;background:#f0f0f1;background:rgba(0,0,0,.07);font-size:13px}.subsubsub{list-style:none;margin:8px 0 0;padding:0;font-size:13px;float:left;color:#646970}.subsubsub a{line-height:2;padding:.2em;text-decoration:none}.subsubsub a .count,.subsubsub a.current .count{color:#50575e;font-weight:400}.subsubsub a.current{font-weight:600;border:none}.subsubsub li{display:inline-block;margin:0;padding:0;white-space:nowrap}.widefat{border-spacing:0;width:100%;clear:both;margin:0}.widefat *{word-wrap:break-word}.widefat a,.widefat button.button-link{text-decoration:none}.widefat td,.widefat th{padding:8px 10px}.widefat thead td,.widefat thead th{border-bottom:1px solid #c3c4c7}.widefat tfoot td,.widefat tfoot th{border-top:1px solid #c3c4c7;border-bottom:none}.widefat .no-items td{border-bottom-width:0}.widefat td{vertical-align:top}.widefat td,.widefat td ol,.widefat td p,.widefat td ul{font-size:13px;line-height:1.5em}.widefat tfoot td,.widefat th,.widefat thead td{text-align:left;line-height:1.3em;font-size:14px}.updates-table td input,.widefat tfoot td input,.widefat th input,.widefat thead td input{margin:0 0 0 8px;padding:0;vertical-align:text-top}.widefat .check-column{width:2.2em;padding:6px 0 25px;vertical-align:top}.widefat tbody th.check-column{padding:9px 0 22px}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:11px 0 0 3px}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:4px;vertical-align:middle}.update-php div.error,.update-php div.updated{margin-left:0}.js-update-details-toggle .dashicons{text-decoration:none}.js-update-details-toggle[aria-expanded=true] .dashicons::before{content:"\f142";content:"\f142"/''}.no-js .widefat tfoot .check-column input,.no-js .widefat thead .check-column input{display:none}.column-comments,.column-links,.column-posts,.widefat .num{text-align:center}.widefat th#comments{vertical-align:middle}.wrap{margin:10px 20px 0 2px}.postbox .inside h2,.wrap [class$=icon32]+h2,.wrap h1,.wrap>h2:first-child{font-size:23px;font-weight:400;margin:0;padding:9px 0 4px;line-height:1.3}.wrap h1.wp-heading-inline{display:inline-block;margin-right:5px}.wp-header-end{visibility:hidden;margin:-2px 0 0}.subtitle{margin:0;padding-left:25px;color:#50575e;font-size:14px;font-weight:400;line-height:1}.subtitle strong{word-break:break-all}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{display:inline-block;position:relative;box-sizing:border-box;cursor:pointer;white-space:nowrap;text-decoration:none;text-shadow:none;top:-3px;margin-left:4px;border:1px solid #2271b1;border-radius:2px;background:0 0;font-size:13px;font-weight:500;min-height:32px;line-height:2.30769231;color:#2271b1;padding:0 12px;-webkit-appearance:none}.wrap .wp-heading-inline+.page-title-action{margin-left:0}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{border-color:#0a4b78;color:#0a4b78}.page-title-action:focus{color:#0a4b78}.form-table th label[for=WPLANG] .dashicons,.form-table th label[for=locale] .dashicons{margin-left:5px}.wrap .page-title-action:focus{border-color:#3582c4;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.wrap h1.long-header{padding-right:0}.wp-dialog{background-color:#fff}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.sorthelper{background-color:#c5d9ed}.ac_match,.subsubsub a.current{color:#000}.alternate,.striped>tbody>:nth-child(odd),ul.striped>:nth-child(odd){background-color:#f6f7f7}.bar{background-color:#f0f0f1;border-right-color:var(--wp-admin-theme-color)}.highlight{background-color:rgba(var(--wp-admin-theme-color--rgb),.08);color:#3c434a}.wp-ui-primary{color:#fff;background-color:#2c3338}.wp-ui-text-primary{color:#2c3338}.wp-ui-highlight{color:#fff;background-color:#2271b1}.wp-ui-text-highlight{color:#2271b1}.wp-ui-notification{color:#fff;background-color:#d63638}.wp-ui-text-notification{color:#d63638}.wp-ui-text-icon{color:#8c8f94}img.emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#nav-menu-footer,#nav-menu-header,#your-profile #rich_editing,.checkbox,.control-section .accordion-section-title,.menu-item-handle,.postbox .hndle,.side-info,.sidebar-name,.stuffbox .hndle,.widefat tfoot td,.widefat tfoot th,.widefat thead td,.widefat thead th,.widget .widget-top{line-height:1.4em}.menu-item-handle,.widget .widget-top{background:#f6f7f7;color:#1d2327}.stuffbox .hndle{border-bottom:1px solid #c3c4c7}.quicktags{background-color:#c3c4c7;color:#000;font-size:12px}.icon32{display:none}#bulk-titles .ntdelbutton:before,.notice-dismiss:before,.tagchecklist .ntdelbutton .remove-tag-icon:before,.welcome-panel .welcome-panel-close:before{background:0 0;color:#1e1e1e;content:"\f335";content:"\f335"/'';display:block;font:normal 20px/1 dashicons;height:1em;text-align:center;width:1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.welcome-panel .welcome-panel-close:before{margin:0}.tagchecklist .ntdelbutton .remove-tag-icon:before{margin-left:2px;border-radius:50%;color:var(--wp-admin-theme-color,#3858e9);line-height:1.1}.tagchecklist .ntdelbutton:focus{outline:0}#bulk-titles .ntdelbutton:focus:before,#bulk-titles .ntdelbutton:hover:before,.tagchecklist .ntdelbutton:focus .remove-tag-icon:before,.tagchecklist .ntdelbutton:hover .remove-tag-icon:before{color:#d63638}.tagchecklist .ntdelbutton:focus .remove-tag-icon:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.key-labels label{line-height:24px}b,strong{font-weight:600}.pre{white-space:pre-wrap;word-wrap:break-word}.howto{color:#646970;display:block}p.install-help{margin:8px 0;font-style:italic}.no-break{white-space:nowrap}hr{border:0;border-top:1px solid #dcdcde;border-bottom:1px solid #f6f7f7}#all-plugins-table .plugins a.delete,#delete-link a.delete,#media-items a.delete,#media-items a.delete-permanently,#nav-menu-footer .menu-delete,#search-plugins-table .plugins a.delete,.plugins a.delete,.privacy_requests .remove-personal-data .remove-personal-data-handle,.row-actions span.delete a,.row-actions span.spam a,.row-actions span.trash a,.submitbox .submitdelete,a#remove-post-thumbnail{color:#b32d2e}#all-plugins-table .plugins a.delete:hover,#delete-link a.delete:hover,#media-items a.delete-permanently:hover,#media-items a.delete:hover,#nav-menu-footer .menu-delete:hover,#search-plugins-table .plugins a.delete:hover,.file-error,.plugins a.delete:hover,.privacy_requests .remove-personal-data .remove-personal-data-handle:hover,.row-actions .delete a:hover,.row-actions .spam a:hover,.row-actions .trash a:hover,.submitbox .submitdelete:hover,a#remove-post-thumbnail:hover,abbr.required,span.required{color:#b32d2e;border:none}.application-password-display .success{color:#007017;margin-left:.5rem}#major-publishing-actions{padding:10px;clear:both;border-top:1px solid #dcdcde;background:#f6f7f7;display:flex;align-items:center;justify-content:space-between}#delete-action{line-height:2.30769231}#delete-link a{text-decoration:none}#publishing-action{text-align:right;margin-left:auto;line-height:1.9}#publishing-action .spinner{float:none}#misc-publishing-actions{padding:6px 0 0}.misc-pub-section{padding:6px 10px 8px}.misc-pub-filename,.word-wrap-break-word{word-wrap:break-word}#minor-publishing-actions{padding:10px 10px 0;text-align:right}#save-post{float:left}.preview{float:right}#sticky-span{margin-left:18px}.approve,.unapproved .unapprove{display:none}.spam .approve,.trash .approve,.unapproved .approve{display:inline}td.action-links,th.action-links{text-align:right}#misc-publishing-actions .notice{margin-left:10px;margin-right:10px}.wp-filter{display:inline-block;position:relative;box-sizing:border-box;margin:12px 0 25px;padding:0 10px;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #c3c4c7;background:#fff;color:#50575e;font-size:13px}.wp-filter a{text-decoration:none}.filter-count{display:inline-block;vertical-align:middle;min-width:4em}.filter-count .count,.title-count{display:inline-block;position:relative;top:-1px;padding:4px 10px;border-radius:30px;background:#646970;color:#fff;font-size:14px;font-weight:600}.title-count{display:inline;top:-3px;margin-left:5px;margin-right:20px}.filter-items{float:left}.filter-links{display:inline-block;margin:0}.filter-links li{display:inline-block;margin:0}.filter-links li>a{display:inline-block;margin:0 10px;padding:15px 0;border-bottom:4px solid #fff;color:#646970;cursor:pointer}.filter-links .current{box-shadow:none;border-bottom:4px solid var(--wp-admin-theme-color);color:#1d2327}.filter-links li>a:focus,.filter-links li>a:hover,.show-filters .filter-links a.current:focus,.show-filters .filter-links a.current:hover{color:var(--wp-admin-theme-color)}.wp-filter .search-form{float:right;display:flex;align-items:center;column-gap:.5rem}.wp-filter .search-form input[type=search]{width:280px;max-width:100%}.wp-filter .search-form select{margin:0}.wp-filter .search-form input[type=search]{min-height:32px;padding:0 8px}.wp-filter .filter-items select,.wp-filter .search-form select{min-height:32px;line-height:2.14285714;padding:0 24px 0 8px}.wp-filter .button{min-height:32px;line-height:2.30769231;padding:0 12px}.plugin-install-php .wp-filter,.upload-php .wp-filter{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.no-js .wp-filter .search-form.search-plugins .button,.wp-filter .search-form.search-plugins .wp-filter-search,.wp-filter .search-form.search-plugins select{display:inline-block;vertical-align:top}.wp-filter .button.drawer-toggle{margin:10px 9px 0;padding:0 10px 0 6px;border-color:transparent;background-color:transparent;color:#646970;vertical-align:baseline;box-shadow:none}.wp-filter .drawer-toggle:before{content:"\f111";content:"\f111"/'';margin:0 5px 0 0;color:#646970;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-filter .button.drawer-toggle:focus,.wp-filter .button.drawer-toggle:hover,.wp-filter .drawer-toggle:focus:before,.wp-filter .drawer-toggle:hover:before{background-color:transparent;color:var(--wp-admin-theme-color)}.wp-filter .button.drawer-toggle:focus:active,.wp-filter .button.drawer-toggle:hover{border-color:transparent}.wp-filter .button.drawer-toggle:focus{border-color:var(--wp-admin-theme-color)}.wp-filter .button.drawer-toggle:active{background:0 0;box-shadow:none;transform:none}.wp-filter .drawer-toggle.current:before{color:#fff}.filter-drawer,.wp-filter .favorites-form{display:none;margin:0 -10px 0 -20px;padding:20px;border-top:1px solid #f0f0f1;background:#f6f7f7;overflow:hidden}.wp-filter .favorites-form .favorites-username{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.wp-filter .favorites-form .favorites-username input{margin:0}.show-favorites-form .favorites-form,.show-filters .filter-drawer{display:block}.show-filters .filter-links a.current{border-bottom:none}.show-filters .wp-filter .button.drawer-toggle{border-radius:2px;background:#646970;color:#fff}.show-filters .wp-filter .drawer-toggle:focus,.show-filters .wp-filter .drawer-toggle:hover{background:var(--wp-admin-theme-color)}.show-filters .wp-filter .drawer-toggle:before{color:#fff}.filter-group{box-sizing:border-box;position:relative;float:left;margin:0 1% 0 0;padding:20px 10px 10px;width:24%;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04)}.filter-group legend{position:absolute;top:10px;display:block;margin:0;padding:0;font-size:1em;font-weight:600}.filter-drawer .filter-group-feature{margin:28px 0 0;list-style-type:none;font-size:12px}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:1.4}.filter-drawer .filter-group-feature input{position:absolute;margin:0}.filter-group .filter-group-feature label{display:block;margin:14px 0 14px 23px}.filter-drawer .buttons{clear:both;margin-bottom:20px}.filter-drawer .filter-group+.buttons{margin-bottom:0;padding-top:20px}.filter-drawer .buttons .button span{display:inline-block;opacity:.8;font-size:12px;text-indent:10px}.wp-filter .button.clear-filters{display:none;margin-left:10px}.wp-filter .button-link.edit-filters{padding:0 5px;line-height:2.2}.filtered-by{display:none;margin:0}.filtered-by>span{font-weight:600}.filtered-by a{margin-left:10px}.filtered-by .tags{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}.filtered-by .tag{padding:4px 8px;border:1px solid #dcdcde;box-shadow:0 1px 1px rgba(0,0,0,.04);background:#fff;font-size:11px}.filters-applied .filter-drawer .buttons,.filters-applied .filter-drawer br,.filters-applied .filter-group{display:none}.filters-applied .filtered-by{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.filters-applied .filter-drawer{padding:20px}.error .content-filterable,.loading-content .content-filterable,.show-filters .content-filterable,.show-filters .favorites-form,.show-filters.filters-applied.loading-content .content-filterable{display:none}.show-filters.filters-applied .content-filterable{display:block}.loading-content .spinner{display:block;margin:40px auto 0;float:none}@media only screen and (max-width:1138px){.wp-filter .search-form{margin:11px 0}}@media only screen and (max-width:1250px){.wp-filter:has(.plugin-install-search) .search-form{margin:11px 0}}@media only screen and (max-width:1120px){.filter-drawer{border-bottom:1px solid #f0f0f1}.filter-group{margin-bottom:0;margin-top:5px;width:100%}.filter-group li{margin:10px 0}}@media only screen and (max-width:1000px){.filter-items{float:none}.wp-filter .media-toolbar-primary,.wp-filter .media-toolbar-secondary,.wp-filter .search-form{float:none;position:relative;max-width:100%}.wp-filter .search-form{margin:11px 0;flex-wrap:wrap;row-gap:10px}}@media only screen and (max-width:782px){.filter-group li{padding:0;width:50%}}@media only screen and (max-width:320px){.filter-count{display:none}.wp-filter .drawer-toggle{margin:10px 0}.filter-group li,.wp-filter .search-form input[type=search]{width:100%}}.notice,div.error,div.updated{background:#fff;border:none;border-left:4px solid #c3c4c7;box-shadow:none;margin:5px 15px 2px;padding:8px 12px}div[class=update-message]{padding:.5em 12px .5em 0}.form-table td .notice p,.notice p,.notice-title,div.error p,div.updated p{margin:.5em 0;padding:0;font-size:13px;line-height:1.54;color:#1e1e1e}div.error a,div.notice a,div.updated a{color:var(--wp-admin-theme-color-darker-10);text-decoration:underline}div.error a:hover,div.notice a:hover,div.updated a:hover{color:var(--wp-admin-theme-color-darker-20)}div.error a:focus,div.notice a:focus,div.updated a:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent;border-radius:2px}.notice-alt{box-shadow:none}.notice-large{padding:10px 20px}.notice-title{display:inline-block;color:#1d2327;font-size:18px}.wp-core-ui .notice.is-dismissible{padding-right:48px;position:relative}.notice-dismiss{position:absolute;top:12px;right:12px;border:none;margin:0;padding:0;background:0 0;color:#1e1e1e;cursor:pointer;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:2px}.notice-dismiss:active:before,.notice-dismiss:hover:before{color:#1e1e1e;opacity:.7}.notice-dismiss:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.notice-dismiss:focus:before{color:#1e1e1e}.notice-success,div.updated{border-left-color:#4ab866;background-color:#eff9f1}.notice-success.notice-alt,div.updated.notice-alt{background-color:#eff9f1}.notice-warning{border-left-color:#f0b849;background-color:#fef8ee}.notice-warning.notice-alt{background-color:#fef8ee}.notice-error,div.error{border-left-color:#cc1818;background-color:#fcf0f0}.notice-error.notice-alt,div.error.notice-alt{background-color:#fcf0f0}.notice-info{border-left-color:#3858e9;background-color:#fff}.notice-info.notice-alt{background-color:#fff}#plugin-information-footer .update-now:not(.button-disabled):before{color:#d63638;content:"\f463";content:"\f463"/'';display:inline-block;font:normal 20px/1 dashicons;margin:-3px 5px 0 -2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}#plugin-information-footer .notice{margin-top:-5px}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updated-message p:before,.updating-message p:before{display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.media-upload-form .notice,.media-upload-form div.error,.wrap .notice,.wrap div.error,.wrap div.updated{margin:5px 0 15px}.wrap #templateside .notice{display:block;margin:0;padding:5px 8px;font-weight:600;text-decoration:none}.wrap #templateside span.notice{margin-left:-12px}#templateside li.notice a{padding:0}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.update-message p:before,.updating-message p:before{color:#d63638;content:"\f463";content:"\f463"/''}.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:rotation 2s infinite linear}@media (prefers-reduced-motion:reduce){.button.activating-message:before,.button.installing:before,.button.updating-message:before,.import-php .updating-message:before,.plugins .column-auto-updates .dashicons-update.spin,.theme-overlay .theme-autoupdate .dashicons-update.spin,.updating-message p:before{animation:none}}.theme-overlay .theme-autoupdate .dashicons-update.spin{margin-right:3px}.button.activated-message:before,.button.updated-message:before,.installed p:before,.updated-message p:before{color:#68de7c;content:"\f147";content:"\f147"/''}.update-message.notice-error p:before{color:#d63638;content:"\f534";content:"\f534"/''}.import-php .updating-message:before,.wrap .notice p:before{margin-right:6px}.import-php .updating-message:before{vertical-align:bottom}#update-nag,.update-nag{display:inline-block;line-height:1.4;padding:11px 15px;font-size:14px;margin:25px 20px 0 2px}ul#dismissed-updates{display:none}#dismissed-updates li>p{margin-top:0}#dismiss,#undismiss{margin-left:.5em}form.upgrade{margin-top:8px}form.upgrade .hint{font-style:italic;font-size:85%;margin:-.5em 0 2em}.update-php .spinner{float:none;margin:-4px 0}h2.wp-current-version{margin-bottom:.3em}p.update-last-checked{margin-top:0}p.auto-update-status{margin-top:2em;line-height:1.8}#ajax-loading,.ajax-feedback,.ajax-loading,.imgedit-wait-spin,.list-ajax-loading{visibility:hidden}#ajax-response.alignleft{margin-left:2em}.button.activated-message:before,.button.activating-message:before,.button.installed:before,.button.installing:before,.button.updated-message:before,.button.updating-message:before{margin:0 5px 0 -2px;line-height:1.9;vertical-align:top}#plugin-information-footer .button{padding:0 14px;line-height:2.71428571;font-size:14px;vertical-align:middle;min-height:40px;margin-bottom:4px}#plugin-information-footer .button.activated-message:before,#plugin-information-footer .button.activating-message:before,#plugin-information-footer .button.installed:before,#plugin-information-footer .button.installing:before,#plugin-information-footer .button.updated-message:before,#plugin-information-footer .button.updating-message:before{margin:0 5px 0 -2px;line-height:1.9;vertical-align:top}#plugin-information-footer .button.update-now.updating-message:before{margin:0 5px 0 -2px}.button-primary.activating-message:before,.button-primary.updating-message:before{color:#fff}.button-primary.activated-message:before,.button-primary.updated-message:before{color:#9ec2e6}.button.activated-message,.button.updated-message{transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}#adminmenu a,#catlist a,#taglist a{text-decoration:none}#contextual-help-wrap,#screen-options-wrap{margin:0;padding:8px 20px 12px;position:relative}#contextual-help-wrap{overflow:auto;margin-left:0}#screen-meta-links{float:right;margin:0 20px 0 0}#screen-meta{display:none;margin:0 20px -1px 0;position:relative;background-color:#fff;border:1px solid #c3c4c7;border-top:none;box-shadow:0 0 0 transparent}#contextual-help-link-wrap,#screen-options-link-wrap{float:left;margin:0 0 0 6px}#screen-meta-links .screen-meta-toggle{position:relative;top:0}#screen-meta-links .show-settings{border:1px solid #c3c4c7;border-top:none;height:auto;min-height:32px;margin-bottom:0;padding:0 6px 0 16px;background:#fff;border-radius:0 0 4px 4px;color:#646970;line-height:2.30769231;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear}#screen-meta-links .show-settings:active,#screen-meta-links .show-settings:focus,#screen-meta-links .show-settings:hover{color:#2c3338}#screen-meta-links .show-settings:focus{border-color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#screen-meta-links .show-settings:active{transform:none}#screen-meta-links .show-settings:after{right:0;content:"\f140";content:"\f140"/'';font:normal 20px/1.5 dashicons;display:inline-block;padding:0 5px 0 0;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}#screen-meta-links .screen-meta-active:after{content:"\f142";content:"\f142"/''}.toggle-arrow{background-repeat:no-repeat;background-position:top left;background-color:transparent;height:22px;line-height:22px;display:block}.toggle-arrow-active{background-position:bottom left}#contextual-help-wrap h5,#screen-options-wrap h5,#screen-options-wrap legend{margin:0;padding:8px 0;font-size:13px;font-weight:600}.metabox-prefs label{display:inline-block;padding-right:15px;line-height:2.35}#number-of-columns{display:inline-block;vertical-align:middle;line-height:30px}.metabox-prefs input[type=checkbox]{margin-top:0;margin-right:6px}.metabox-prefs label input,.metabox-prefs label input[type=checkbox]{margin:-4px 5px 0 0}.metabox-prefs .columns-prefs label input{margin:-1px 2px 0 0}.metabox-prefs label a{display:none}.metabox-prefs .screen-options input,.metabox-prefs .screen-options label{margin-top:0;margin-bottom:0;vertical-align:middle}.metabox-prefs .screen-options .screen-per-page{margin-right:15px;padding-right:0}.metabox-prefs .screen-options label{line-height:2.2;padding-right:0}.screen-options+.screen-options{margin-top:10px}.metabox-prefs .submit{margin-top:1em;padding:0}#contextual-help-wrap{padding:0}#contextual-help-columns{position:relative}#contextual-help-back{position:absolute;top:0;bottom:0;left:150px;right:170px;border:1px solid #c3c4c7;border-top:none;border-bottom:none;background:rgba(var(--wp-admin-theme-color--rgb),.08)}#contextual-help-wrap.no-sidebar #contextual-help-back{right:0;border-right-width:0;border-bottom-right-radius:2px}.contextual-help-tabs{float:left;width:150px;margin:0}.contextual-help-tabs ul{margin:1em 0}.contextual-help-tabs li{margin-bottom:0;list-style-type:none;border-style:solid;border-width:0 0 0 2px;border-color:transparent}.contextual-help-tabs a{display:block;padding:5px 5px 5px 12px;line-height:1.4;text-decoration:none;border:1px solid transparent;border-right:none;border-left:none}.contextual-help-tabs a:hover{color:#2c3338}.contextual-help-tabs .active{padding:0;margin:0 -1px 0 0;border-left:2px solid var(--wp-admin-theme-color);background:color-mix(in srgb,var(--wp-admin-theme-color) 8%,#fff);box-shadow:0 2px 0 rgba(0,0,0,.02),0 1px 0 rgba(0,0,0,.02)}.contextual-help-tabs .active a{border-color:#c3c4c7;color:#2c3338}.contextual-help-tabs-wrap{padding:0 20px;overflow:auto}.help-tab-content{display:none;margin:0 22px 12px 0;line-height:1.6}.help-tab-content.active{display:block}.help-tab-content ul li{list-style-type:disc;margin-left:18px}.contextual-help-sidebar{width:150px;float:right;padding:0 8px 0 12px;overflow:auto}html.wp-toolbar{padding-top:var(--wp-admin--admin-bar--height);box-sizing:border-box;-ms-overflow-style:scrollbar}.widefat td,.widefat th{color:#50575e}.widefat tfoot td,.widefat th,.widefat thead td{font-weight:400}.widefat tfoot tr td,.widefat tfoot tr th,.widefat thead tr td,.widefat thead tr th{color:#2c3338}.widefat td p{margin:2px 0 .8em}.widefat ol,.widefat p,.widefat ul{color:#2c3338}.widefat .column-comment p{margin:.6em 0}.widefat .column-comment ul{list-style:initial;margin-left:2em}.postbox-container{float:left}.postbox-container .meta-box-sortables{box-sizing:border-box}#wpbody-content .metabox-holder{padding-top:10px}.metabox-holder .postbox-container .meta-box-sortables{min-height:1px;position:relative}#post-body-content{width:100%;min-width:463px;float:left}#post-body.columns-2 #postbox-container-1{float:right;margin-right:-300px;width:280px}#post-body.columns-2 #side-sortables{min-height:250px}@media only screen and (max-width:799px){#wpbody-content .metabox-holder .postbox-container .empty-container{outline:0;height:0;min-height:0}}.js .postbox .hndle,.js .widget .widget-top{cursor:move}.js .postbox .hndle.is-non-sortable,.js .widget .widget-top.is-non-sortable{cursor:auto}.hndle a{font-size:12px;font-weight:400}.postbox-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #c3c4c7}.postbox-header .hndle{flex-grow:1;display:flex;justify-content:space-between;align-items:center}.postbox-header .handle-actions{flex-shrink:0}.postbox .handle-order-higher,.postbox .handle-order-lower,.postbox .handlediv{width:1.62rem;height:1.62rem;margin:0;padding:0;border:0;background:0 0;cursor:pointer}.postbox .handle-order-higher,.postbox .handle-order-lower{color:#646970;width:1.62rem}.edit-post-meta-boxes-area .postbox .handle-order-higher,.edit-post-meta-boxes-area .postbox .handle-order-lower{width:44px;height:44px;color:#1d2327}.postbox .handle-order-higher[aria-disabled=true],.postbox .handle-order-lower[aria-disabled=true]{cursor:default;color:#a7aaad}.sortable-placeholder:not(.empty-container .sortable-placeholder){border:1px dashed #c3c4c7;border-radius:8px;margin-bottom:20px}.postbox,.stuffbox{margin-bottom:20px;padding:0;line-height:1}.postbox.closed .postbox-header{border-bottom:0}.postbox .hndle,.stuffbox .hndle{-webkit-user-select:none;user-select:none}.postbox .inside{padding:0 12px 12px;line-height:1.4;font-size:13px}.stuffbox .inside{padding:0;line-height:1.4;font-size:13px;margin-top:0}.postbox .inside{margin:11px 0;position:relative}.postbox .inside>p:last-child,.rss-widget ul li:last-child{margin-bottom:1px!important}.postbox.closed h3{border:none;box-shadow:none}.postbox table.form-table{margin-bottom:0}.postbox table.widefat{box-shadow:none}.temp-border{border:1px dotted #c3c4c7}.columns-prefs label{padding:0 10px 0 0}#adminmenu .wp-submenu li.current,#adminmenu .wp-submenu li.current a,#adminmenu .wp-submenu li.current a:hover,#comment-status-display,#dashboard_right_now .versions .b,#ed_reply_toolbar #ed_reply_strong,#pass-strength-result.short,#pass-strength-result.strong,#post-status-display,#post-visibility-display,.feature-filter .feature-name,.item-controls .item-order a,.media-item .percent,.plugins .name{font-weight:600}#wpfooter{position:absolute;bottom:0;left:0;right:0;padding:10px 20px;color:#50575e}#wpfooter p{font-size:13px;margin:0;line-height:1.55}#footer-thankyou{font-style:italic}.nav-tab{float:left;border:1px solid #c3c4c7;border-bottom:none;margin-left:.5em;padding:5px 10px;font-size:14px;line-height:1.71428571;font-weight:600;background:#dcdcde;color:#50575e;text-decoration:none;white-space:nowrap}.nav-tab-small .nav-tab,h3 .nav-tab{padding:5px 14px;font-size:12px;line-height:1.33}.nav-tab:focus,.nav-tab:hover{background-color:#fff;color:#3c434a}.nav-tab-active,.nav-tab:focus:active{box-shadow:none}.nav-tab-active{margin-bottom:-1px;color:#3c434a}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #f0f0f1;background:#f0f0f1;color:#000}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:1px solid #c3c4c7;margin:0;padding-top:9px;padding-bottom:0;line-height:inherit}.nav-tab-wrapper:not(.wp-clearfix):after{content:"";display:table;clear:both}.spinner{background:url(../images/spinner.gif) no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;float:right;vertical-align:middle;opacity:.7;width:20px;height:20px;margin:10px 10px 0}.loading-content .spinner,.spinner.is-active{visibility:visible}#template>div{margin-right:16em}#template .notice{margin-top:1em;margin-right:3%}#template .notice p{width:auto}#template .submit .spinner{float:none;vertical-align:top}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2.hndle,.metabox-holder h3.hndle{font-size:14px;padding:8px 12px;margin:0;line-height:1.4}.nav-menus-php .metabox-holder h3{padding:0}.accordion-container h3.accordion-section-title{padding:0!important}.accordion-section-title button.accordion-trigger,.nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger{background:inherit;color:#1d2327;display:block;position:relative;text-align:left;width:100%;outline:0;border:0;padding:10px 10px 11px 14px;line-height:1.5;cursor:pointer}.accordion-section-title button.accordion-trigger:focus,.nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.accordion-section-title span.dashicons.dashicons-arrow-down,.nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down{position:absolute;right:10px;left:auto;color:#787c82;border-radius:50px;top:50%;transform:translateY(-50%)}.accordion-section-title:hover span.dashicons.dashicons-arrow-down,.nav-menus-php .metabox-holder .accordion-section-title:hover span.dashicons.dashicons-arrow-down{color:#1d2327}.accordion-section-title span.dashicons.dashicons-arrow-down::before,.nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down::before{position:relative;left:-1px}.accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down,.nav-menus-php .metabox-holder .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down{transform:rotate(180deg) translate(0,50%)}#templateside ul li a{text-decoration:none}.plugin-install #description,.plugin-install-network #description{width:60%}table .column-rating,table .column-visible,table .vers{text-align:left}.attention,.error-message{color:#d63638;font-weight:600}body.iframe{height:98%}.lp-show-latest p{display:none}.lp-show-latest .lp-error p,.lp-show-latest p:last-child{display:block}.media-icon{width:62px;text-align:center}.media-icon img{border:1px solid #dcdcde;border:1px solid rgba(0,0,0,.07)}#howto{font-size:11px;margin:0 5px;display:block}.importers{font-size:16px;width:auto}.importers td{padding-right:14px;line-height:1.4}.importers .import-system{max-width:250px}.importers td.desc{max-width:500px}.importer-action,.importer-desc,.importer-title{display:block}.importer-title{color:#000;font-size:14px;font-weight:400;margin-bottom:.2em}.importer-action{line-height:1.55;color:#50575e;margin-bottom:1em}#post-body #post-body-content #namediv h2,#post-body #post-body-content #namediv h3{margin-top:0}.edit-comment-author{color:#1d2327;border-bottom:1px solid #f0f0f1}#namediv h2 label,#namediv h3 label{vertical-align:baseline}#namediv table{width:100%}#namediv td.first{width:10px;white-space:nowrap}#namediv input{width:100%}#namediv p{margin:10px 0}.zerosize{height:0;width:0;margin:0;border:0;padding:0;overflow:hidden;position:absolute}br.clear{height:2px;line-height:.15}.checkbox{border:none;margin:0;padding:0}fieldset{border:0;padding:0;margin:0}.post-categories{display:inline;margin:0;padding:0}.post-categories li{display:inline}div.star-holder{position:relative;height:17px;width:100px;background:url(../images/stars.png?ver=20121108) repeat-x bottom left}div.star-holder .star-rating{background:url(../images/stars.png?ver=20121108) repeat-x top left;height:17px;float:left}.star-rating{white-space:nowrap}.star-rating .star{display:inline-block;width:20px;height:20px;-webkit-font-smoothing:antialiased;font-size:20px;line-height:1;font-family:dashicons;text-decoration:inherit;font-weight:400;font-style:normal;vertical-align:top;transition:color .1s ease-in;text-align:center;color:#dba617}.star-rating .star-full:before{content:"\f155";content:"\f155"/''}.star-rating .star-half:before{content:"\f459";content:"\f459"/''}.rtl .star-rating .star-half{transform:rotateY(180deg)}.star-rating .star-empty:before{content:"\f154";content:"\f154"/''}div.action-links{font-weight:400;margin:6px 0 0}#plugin-information{background:#fff;position:fixed;top:0;right:0;bottom:0;left:0;height:100%;padding:0}#plugin-information-scrollable{overflow:auto;-webkit-overflow-scrolling:touch;height:100%}#plugin-information-title{padding:0 26px;background:#f6f7f7;font-size:22px;font-weight:600;line-height:2.4;position:relative;height:56px}#plugin-information-title.with-banner{margin-right:0;height:250px;background-size:cover}#plugin-information-title h2{font-size:1em;font-weight:600;padding:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#plugin-information-title.with-banner h2{position:relative;font-family:"Helvetica Neue",sans-serif;display:inline-block;font-size:30px;line-height:1.68;box-sizing:border-box;max-width:100%;padding:0 15px;margin-top:174px;color:#fff;background:rgba(29,35,39,.9);text-shadow:0 1px 3px rgba(0,0,0,.4);box-shadow:0 0 30px rgba(255,255,255,.1);border-radius:8px}#plugin-information-title div.vignette{display:none}#plugin-information-title.with-banner div.vignette{position:absolute;display:block;top:0;left:0;height:250px;width:100%;background:0 0;box-shadow:inset 0 0 50px 4px rgba(0,0,0,.2),inset 0 -1px 0 rgba(0,0,0,.1)}#plugin-information-tabs{padding:0 16px;position:relative;right:0;left:0;min-height:36px;font-size:0;z-index:1;border-bottom:1px solid #dcdcde;background:#f6f7f7}#plugin-information-tabs a{position:relative;display:inline-block;padding:9px 10px;margin:0;height:18px;line-height:1.3;font-size:14px;text-decoration:none;transition:none}#plugin-information-tabs a.current{margin:0 -1px -1px;background:#fff;border:1px solid #dcdcde;border-bottom-color:#fff;padding-top:8px;color:#2c3338}#plugin-information-tabs.with-banner a.current{border-top:none;padding-top:9px}#plugin-information-tabs a:active,#plugin-information-tabs a:focus{outline:0}#plugin-information-content{overflow:hidden;background:#fff;position:relative;top:0;right:0;left:0;min-height:100%;min-height:calc(100% - 152px)}#plugin-information-content.with-banner{min-height:calc(100% - 346px)}#section-holder{position:relative;top:0;right:250px;bottom:0;left:0;margin-top:10px;margin-right:250px;padding:10px 26px 99999px;margin-bottom:-99932px}#section-holder .notice{margin:5px 0 15px}#section-holder .updated{margin:16px 0}#plugin-information .fyi{float:right;position:relative;top:0;right:0;padding:16px 16px 99999px;margin-bottom:-99932px;width:217px;border-left:1px solid #dcdcde;background:#f6f7f7;color:#646970}#plugin-information .fyi strong{color:#3c434a}#plugin-information .fyi h3{font-weight:600;text-transform:uppercase;font-size:12px;color:#646970;margin:24px 0 8px}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-right:0}#plugin-information .fyi ul{padding:0;margin:0;list-style:none}#plugin-information .fyi li{margin:0 0 10px}#plugin-information .fyi-description{margin-top:0}#plugin-information .counter-container{margin:3px 0}#plugin-information .counter-label{float:left;margin-right:5px;min-width:55px}#plugin-information .counter-back{height:17px;width:92px;background-color:#dcdcde;float:left}#plugin-information .counter-bar{height:17px;background-color:#f0c33c;float:left}#plugin-information .counter-count{margin-left:5px}#plugin-information .fyi ul.contributors{margin-top:10px}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li{display:inline-block;margin-right:8px;vertical-align:middle}#plugin-information .fyi ul.contributors li img{vertical-align:middle;margin-right:4px}#plugin-information-footer{padding:13px 16px;position:absolute;right:0;bottom:0;left:0;height:40px;border-top:1px solid #dcdcde;background:#f6f7f7}#plugin-information .section{direction:ltr}#plugin-information .section ol,#plugin-information .section ul{list-style-type:disc;margin-left:24px}#plugin-information .section,#plugin-information .section p{font-size:14px;line-height:1.7}#plugin-information #section-screenshots ol{list-style:none;margin:0}#plugin-information #section-screenshots li img{vertical-align:text-top;margin-top:16px;max-width:100%;width:auto;height:auto;box-shadow:0 1px 2px rgba(0,0,0,.3)}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px}#plugin-information pre{padding:7px;overflow:auto;border:1px solid #c3c4c7}#plugin-information blockquote{border-left:2px solid #dcdcde;color:#646970;font-style:italic;margin:1em 0;padding:0 0 0 1em}#plugin-information .review{overflow:hidden;width:100%;margin-bottom:20px;border-bottom:1px solid #dcdcde}#plugin-information .review-title-section{overflow:hidden}#plugin-information .review-title-section h4{display:inline-block;float:left;margin:0 6px 0 0}#plugin-information .reviewer-info p{clear:both;margin:0;padding-top:2px}#plugin-information .reviewer-info .avatar{float:left;margin:4px 6px 0 0}#plugin-information .reviewer-info .star-rating{float:left}#plugin-information .review-meta{float:left;margin-left:.75em}#plugin-information .review-body{float:left;width:100%}.plugin-version-author-uri{font-size:13px}.update-php .button.button-primary{margin-right:1em}@media screen and (max-width:771px){#plugin-information-title.with-banner{height:100px}#plugin-information-title.with-banner h2{margin-top:30px;font-size:20px;line-height:2;max-width:85%}#plugin-information-title.with-banner div.vignette{height:100px}#plugin-information-tabs{overflow:hidden;padding:0;height:auto}#plugin-information-tabs a.current{margin-bottom:0;border-bottom:none}#plugin-information .fyi{float:none;border:1px solid #dcdcde;position:static;width:auto;margin:26px 26px 0;padding-bottom:0}#section-holder{position:static;margin:0;padding-bottom:70px}#plugin-information .fyi h3,#plugin-information .fyi small{display:none}#plugin-information-footer{padding:12px 16px 0;height:46px}}#TB_window.plugin-details-modal{background:#fff}#TB_window.plugin-details-modal.thickbox-loading:before{content:"";display:block;width:20px;height:20px;position:absolute;left:50%;top:50%;z-index:-1;margin:-10px 0 0 -10px;background:#fff url(../images/spinner.gif) no-repeat center;background-size:20px 20px;transform:translateZ(0)}@media print,(min-resolution:120dpi){#TB_window.plugin-details-modal.thickbox-loading:before{background-image:url(../images/spinner-2x.gif)}}.plugin-details-modal #TB_title{float:left;height:1px}.plugin-details-modal #TB_ajaxWindowTitle{display:none}.plugin-details-modal #TB_closeWindowButton{left:auto;right:-30px;color:#f0f0f1}.plugin-details-modal #TB_closeWindowButton:focus,.plugin-details-modal #TB_closeWindowButton:hover{outline:0;box-shadow:none}.plugin-details-modal #TB_closeWindowButton:focus::after,.plugin-details-modal #TB_closeWindowButton:hover::after{outline:2px solid;outline-offset:-4px;border-radius:4px}.plugin-details-modal .tb-close-icon{display:none}.plugin-details-modal #TB_closeWindowButton:after{content:"\f335";content:"\f335"/'';font:normal 32px/29px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media screen and (max-width:830px){.plugin-details-modal #TB_closeWindowButton{right:0;top:-30px}}img{border:none}.bulk-action-notice .toggle-indicator::before,.meta-box-sortables .postbox .order-higher-indicator::before,.meta-box-sortables .postbox .order-lower-indicator::before,.meta-box-sortables .postbox .toggle-indicator::before,.privacy-text-box .toggle-indicator::before,.sidebar-name .toggle-indicator::before{content:"\f142";content:"\f142"/'';display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before,.js .widgets-holder-wrap.closed .toggle-indicator::before,.meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before,.privacy-text-box.closed .toggle-indicator::before{content:"\f140";content:"\f140"/''}.postbox .handle-order-higher .order-higher-indicator::before{content:"\f343";content:"\f343"/'';color:inherit}.postbox .handle-order-lower .order-lower-indicator::before{content:"\f347";content:"\f347"/'';color:inherit}.postbox .handle-order-higher .order-higher-indicator::before,.postbox .handle-order-lower .order-lower-indicator::before{position:relative;top:.11rem;width:20px;height:20px}.postbox .handlediv .toggle-indicator::before{width:20px;border-radius:50%}.postbox .handlediv .toggle-indicator::before{position:relative;top:.05rem;text-indent:-1px}.rtl .postbox .handlediv .toggle-indicator::before{text-indent:1px}.bulk-action-notice .toggle-indicator::before{line-height:16px;vertical-align:top;color:#787c82}.postbox .handle-order-higher:focus,.postbox .handle-order-lower:focus,.postbox .handlediv:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);border-radius:50%;outline:2px solid transparent}.postbox .handle-order-higher:focus .order-higher-indicator::before,.postbox .handle-order-lower:focus .order-lower-indicator::before,.postbox .handlediv:focus .toggle-indicator::before{box-shadow:none;outline:1px solid transparent}#photo-add-url-div input[type=text]{width:300px}.alignleft h2{margin:0}#template textarea{font-family:Consolas,Monaco,monospace;font-size:13px;background:#f6f7f7;tab-size:4}#template .CodeMirror,#template textarea{width:100%;min-height:60vh;height:calc(100vh - 295px);border:1px solid #dcdcde;box-sizing:border-box}#templateside>h2{padding-top:6px;padding-bottom:7px;margin:0}#templateside ol,#templateside ul{margin:0;padding:0}#templateside>ul{box-sizing:border-box;margin-top:0;overflow:auto;padding:0;min-height:60vh;height:calc(100vh - 295px);background-color:#f6f7f7;border:1px solid #dcdcde;border-left:none}#templateside ul ul{padding-left:12px}#templateside>ul>li>ul[role=group]{padding-left:0}[role=treeitem][aria-expanded=false]>ul{display:none}[role=treeitem] span[aria-hidden]{display:inline;font-family:dashicons;font-size:20px;position:absolute;pointer-events:none}[role=treeitem][aria-expanded=false]>.folder-label .icon:after{content:"\f139";content:"\f139"/''}[role=treeitem][aria-expanded=true]>.folder-label .icon:after{content:"\f140";content:"\f140"/''}[role=treeitem] .folder-label{display:block;padding:3px 3px 3px 12px;cursor:pointer}[role=treeitem]{outline:0}[role=treeitem] .folder-label.focus,[role=treeitem] a:focus{color:#043959;box-shadow:none;outline:2px solid var(--wp-admin-theme-color,#3858e9);outline-offset:-2px}[role=treeitem] .folder-label.hover,[role=treeitem].hover{background-color:#f0f0f1}.tree-folder{margin:0;position:relative}[role=treeitem] li{position:relative}.tree-folder .tree-folder::after{content:"";display:block;position:absolute;left:2px;border-left:1px solid #c3c4c7;top:-13px;bottom:10px}.tree-folder>li::before{content:"";position:absolute;display:block;border-left:1px solid #c3c4c7;left:2px;top:-5px;height:18px;width:7px;border-bottom:1px solid #c3c4c7}.tree-folder>li::after{content:"";position:absolute;display:block;border-left:1px solid #c3c4c7;left:2px;bottom:-7px;top:0}#templateside .current-file{margin:-4px 0 -2px}.tree-folder>.current-file::before{left:4px;height:15px;width:0;border-left:none;top:3px}.tree-folder>.current-file::after{bottom:-4px;height:7px;left:2px;top:auto}.tree-folder li:last-child>.tree-folder::after,.tree-folder>li:last-child::after{display:none}#documentation label,#theme-plugin-editor-label,#theme-plugin-editor-selector{font-weight:600}#theme-plugin-editor-label{display:inline-block;margin-bottom:1em}#docs-list,#template textarea{direction:ltr}.fileedit-sub #plugin,.fileedit-sub #theme{max-width:40%}.fileedit-sub .alignright{text-align:right}#template p{width:97%}#file-editor-linting-error{margin-top:1em;margin-bottom:1em}#file-editor-linting-error>.notice{margin:0;display:inline-block}#file-editor-linting-error>.notice>p{width:auto}#template .submit{margin-top:1em;padding:0}#template .submit input[type=submit][disabled]{cursor:not-allowed}#templateside{float:right;width:16em;word-wrap:break-word}#postcustomstuff p.submit{margin:0}#templateside h4{margin:1em 0 0}#templateside li{margin:4px 0}#templateside li:not(.howto) a,.theme-editor-php .highlight{display:block;padding:3px 0 3px 12px;text-decoration:none}#templateside li.current-file>a{padding-bottom:0}#templateside li:not(.howto)>a:first-of-type{padding-top:0}#templateside li.howto{padding:6px 12px 12px}.theme-editor-php .highlight{margin:-3px 3px -3px -12px}#templateside .highlight{border:none;font-weight:600}.nonessential{color:#646970;font-size:11px;font-style:italic;padding-left:12px}#documentation{margin-top:10px}#documentation label{line-height:1.8;vertical-align:baseline}.fileedit-sub{padding:10px 0 8px;line-height:180%}#file-editor-warning .file-editor-warning-content{margin:25px}.nav-menus-php .item-edit:before,.widget-top .widget-action .toggle-indicator:before,.wp-customizer .accordion-section-title:after,.wp-customizer .control-section .accordion-section-title:after{content:"\f140";content:"\f140"/'';font:normal 20px/1 dashicons;display:block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none}.widget-top .widget-action .toggle-indicator:before{padding:1px 2px 1px 0;border-radius:50%}.handlediv,.item-edit,.postbox .handlediv.button-link,.toggle-indicator{color:#646970}.widget-action{color:#50575e}.handlediv:focus,.handlediv:hover,.item-edit:focus,.item-edit:hover,.postbox .handlediv.button-link:focus,.postbox .handlediv.button-link:hover,.sidebar-name:hover .toggle-indicator,.widget-action:focus,.widget-top:hover .widget-action{color:#1d2327;outline:2px solid transparent}.widget-top .widget-action:focus .toggle-indicator:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#customize-info.open .accordion-section-title:after,.nav-menus-php .menu-item-edit-active .item-edit:before,.widget.open .widget-top .widget-action .toggle-indicator:before,.widget.widget-in-question .widget-top .widget-action .toggle-indicator:before{content:"\f142";content:"\f142"/''}/*! * jQuery UI Draggable/Sortable 1.11.4 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */.ui-draggable-handle,.ui-sortable-handle{touch-action:none}.accordion-section{border-bottom:1px solid #dcdcde;margin:0}.accordion-section.open .accordion-section-content,.no-js .accordion-section .accordion-section-content{display:block}.accordion-section.open:hover{border-bottom-color:#dcdcde}.accordion-section-content{display:none;padding:10px 20px 15px;overflow:hidden;background:#fff}.accordion-section-title{margin:0;position:relative;border-left:1px solid #dcdcde;border-right:1px solid #dcdcde;-webkit-user-select:none;user-select:none}.js .accordion-section-title{cursor:pointer}.js .accordion-section-title:after{position:absolute;top:12px;right:10px;z-index:1}.accordion-section-title:focus{outline:1px solid transparent}.accordion-section-title:focus:after,.accordion-section-title:hover:after{border-color:#a7aaad transparent;outline:1px solid transparent}.cannot-expand .accordion-section-title{cursor:auto}.cannot-expand .accordion-section-title:after{display:none}.control-section .accordion-section-title,.customize-pane-child .accordion-section-title{border-left:none;border-right:none;padding:10px 10px 11px 14px;line-height:1.55;background:#fff}.control-section .accordion-section-title:after,.customize-pane-child .accordion-section-title:after{top:calc(50% - 10px)}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{color:#1d2327;background:#f6f7f7}.control-section.open .accordion-section-title{border-bottom:1px solid #dcdcde}.network-admin .edit-site-actions{margin-top:0}.my-sites{display:block;overflow:auto;zoom:1}.my-sites li{display:block;padding:8px 3%;min-height:130px;margin:0}@media only screen and (max-width:599px){.my-sites li{min-height:0}}@media only screen and (min-width:600px){.my-sites.striped li{background-color:#fff;position:relative}.my-sites.striped li:after{content:"";width:1px;height:100%;position:absolute;top:0;right:0;background:#c3c4c7}}@media only screen and (min-width:600px) and (max-width:699px){.my-sites li{float:left;width:44%}.my-sites.striped li{background-color:#fff}.my-sites.striped li:nth-of-type(odd){clear:left}.my-sites.striped li:nth-of-type(2n+2):after{content:none}.my-sites li:nth-of-type(4n+1),.my-sites li:nth-of-type(4n+2){background-color:#f6f7f7}}@media only screen and (min-width:700px) and (max-width:1199px){.my-sites li{float:left;width:27.333333%;background-color:#fff}.my-sites.striped li:nth-of-type(3n+3):after{content:none}.my-sites li:nth-of-type(6n+1),.my-sites li:nth-of-type(6n+2),.my-sites li:nth-of-type(6n+3){background-color:#f6f7f7}}@media only screen and (min-width:1200px) and (max-width:1399px){.my-sites li{float:left;width:21%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(4n+1){clear:left}.my-sites.striped li:nth-of-type(4n+4):after{content:none}.my-sites li:nth-of-type(8n+1),.my-sites li:nth-of-type(8n+2),.my-sites li:nth-of-type(8n+3),.my-sites li:nth-of-type(8n+4){background-color:#f6f7f7}}@media only screen and (min-width:1400px) and (max-width:1599px){.my-sites li{float:left;width:16%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(5n+1){clear:left}.my-sites.striped li:nth-of-type(5n+5):after{content:none}.my-sites li:nth-of-type(10n+1),.my-sites li:nth-of-type(10n+2),.my-sites li:nth-of-type(10n+3),.my-sites li:nth-of-type(10n+4),.my-sites li:nth-of-type(10n+5){background-color:#f6f7f7}}@media only screen and (min-width:1600px){.my-sites li{float:left;width:12.666666%;padding:8px 2%;background-color:#fff}.my-sites.striped li:nth-of-type(6n+1){clear:left}.my-sites.striped li:nth-of-type(6n+6):after{content:none}.my-sites li:nth-of-type(12n+1),.my-sites li:nth-of-type(12n+2),.my-sites li:nth-of-type(12n+3),.my-sites li:nth-of-type(12n+4),.my-sites li:nth-of-type(12n+5),.my-sites li:nth-of-type(12n+6){background-color:#f6f7f7}}.my-sites li a{text-decoration:none}@media print,(min-resolution:120dpi){div.star-holder,div.star-holder .star-rating{background:url(../images/stars-2x.png?ver=20121108) repeat-x bottom left;background-size:21px 37px}.spinner{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){html.wp-toolbar{padding-top:var(--wp-admin--admin-bar--height)}.screen-reader-shortcut:focus{top:-39px}.block-editor-page .screen-reader-shortcut:focus{top:7px}.screen-reader-shortcut[href="#wp-toolbar"]{display:none}body{min-width:240px;overflow-x:hidden}body *{-webkit-tap-highlight-color:transparent!important}#wpcontent{position:relative;margin-left:0;padding-left:10px}#wpbody-content{padding-bottom:100px}.wrap{clear:both;margin-right:12px;margin-left:0}#col-left,#col-right{float:none;width:auto}#col-left .col-wrap,#col-right .col-wrap{padding:0}#collapse-menu,.post-format-select{display:none!important}.wrap h1.wp-heading-inline{margin-bottom:.5em}.wrap .add-new-h2,.wrap .add-new-h2:active,.wrap .page-title-action,.wrap .page-title-action:active{padding:0 14px;font-size:14px;white-space:nowrap;min-height:40px;line-height:2.71428571;vertical-align:middle}.media-upload-form div.error,.notice,.wrap div.error,.wrap div.updated{margin:20px 0 10px;padding:5px 10px;font-size:14px;line-height:175%}.wp-core-ui .notice.is-dismissible{padding-right:46px}.notice-dismiss{padding:13px}.wrap .icon32+h2{margin-top:-2px}.wp-responsive-open #wpbody{right:-16em}code{word-wrap:break-word;word-wrap:anywhere;word-break:break-word}.postbox{font-size:14px}.metabox-holder .postbox>h3,.metabox-holder .stuffbox>h3,.metabox-holder h2,.metabox-holder h3.hndle{padding:12px}.nav-menus-php .metabox-holder h3{padding:0}.postbox .handlediv{margin-top:3px}.subsubsub{font-size:16px;text-align:center;margin-bottom:15px}#template .CodeMirror,#template textarea{box-sizing:border-box}#templateside{float:none;width:auto}#templateside>ul{border-left:1px solid #dcdcde}#templateside li{margin:0}#templateside li:not(.howto) a{display:block;padding:5px}#templateside li.howto{padding:12px}#templateside .highlight{padding:5px;margin-left:-5px;margin-top:-5px}#template .notice,#template>div{float:none;margin:1em 0;width:auto}#template .CodeMirror,#template textarea{width:100%}#templateside ul ul{padding-left:1.5em}[role=treeitem] .folder-label{display:block;padding:5px}.tree-folder .tree-folder::after,.tree-folder>li::after,.tree-folder>li::before{left:-8px}.tree-folder>li::before{top:0;height:13px}.tree-folder>.current-file::before{left:-5px;top:7px;width:4px}.tree-folder>.current-file::after{height:9px;left:-8px}.wrap #templateside span.notice{margin-left:-5px;width:100%}.fileedit-sub .alignright{float:left;margin-top:15px;width:100%;text-align:left}.fileedit-sub .alignright label{display:block}.fileedit-sub #plugin,.fileedit-sub #theme{margin-left:0;max-width:70%}.fileedit-sub input[type=submit]{margin-bottom:0}#documentation label[for=docs-list]{display:block}#documentation select[name=docs-list]{margin-left:0;max-width:60%}#documentation input[type=button]{margin-bottom:0}#wpfooter{display:none}#comments-form .checkforspam{display:none}.edit-comment-author{margin:2px 0 0}.filter-drawer .filter-group-feature input,.filter-drawer .filter-group-feature label{line-height:2.1}.filter-drawer .filter-group-feature label{margin-left:32px}.wp-filter .button.drawer-toggle{font-size:13px;line-height:2;height:28px}#screen-meta #contextual-help-wrap{overflow:visible}#screen-meta #contextual-help-back,#screen-meta .contextual-help-sidebar{display:none}#screen-meta .contextual-help-tabs{clear:both;width:100%;float:none}#screen-meta .contextual-help-tabs ul{margin:0 0 1em;padding:1em 0 0}#screen-meta .contextual-help-tabs .active{margin:0}#screen-meta .contextual-help-tabs-wrap{clear:both;max-width:100%;float:none}#screen-meta,#screen-meta-links{margin-right:10px}#screen-meta-links{margin-bottom:20px}.wp-filter .search-form input[type=search]{font-size:1rem}.wp-filter .search-form.search-plugins{min-width:100%}}@media screen and (max-width:600px){#wpwrap.wp-responsive-open{overflow-x:hidden}html.wp-toolbar{padding-top:0}.screen-reader-shortcut:focus{top:7px}#wpbody{padding-top:46px}div#post-body.metabox-holder.columns-1{overflow-x:hidden}.nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{border-bottom:0}h1 .nav-tab,h2 .nav-tab,h3 .nav-tab,nav .nav-tab{margin:10px 10px 0 0;border-bottom:1px solid #c3c4c7}.nav-tab-active:focus,.nav-tab-active:focus:active,.nav-tab-active:hover{border-bottom:1px solid #c3c4c7}.wp-filter .search-form.search-plugins label{width:100%}}@media screen and (max-width:480px){.metabox-prefs-container{display:grid}.metabox-prefs-container>*{display:inline-block;padding:2px}}@media screen and (max-width:320px){#network_dashboard_right_now .subsubsub{font-size:14px;text-align:left}}css/customize-widgets-rtl.css000064400000032432152213653150012342 0ustar00/*! This file is auto-generated */ .wp-full-overlay-sidebar { overflow: visible; } /** * Hide all sidebar sections by default, only show them (via JS) once the * preview loads and we know whether the sidebars are used in the template. */ .control-section.control-section-sidebar, .customize-control-sidebar_widgets label, .customize-control-sidebar_widgets .hide-if-js { /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */ display: none; } .control-section.control-section-sidebar .accordion-section-content.ui-sortable { overflow: visible; } /* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */ .customize-control-widget_form .widget-top { background: #fff; transition: opacity 0.5s; } .customize-control .widget-action { color: #787c82; } .customize-control .widget-top:hover .widget-action, .customize-control .widget-action:focus { color: #1d2327; } .customize-control-widget_form:not(.widget-rendered) .widget-top { opacity: 0.5; } .customize-control-widget_form .widget-control-save { display: none; } .customize-control-widget_form .spinner { visibility: hidden; margin-top: 0; } .customize-control-widget_form.previewer-loading .spinner { visibility: visible; } .customize-control-widget_form.widget-form-disabled .widget-content { opacity: 0.7; pointer-events: none; -webkit-user-select: none; user-select: none; } .customize-control-widget_form .widget { margin-bottom: 0; } .customize-control-widget_form.wide-widget-control .widget-inside { position: fixed; right: 299px; top: 25%; border: 1px solid #dcdcde; overflow: auto; } .customize-control-widget_form.wide-widget-control .widget-inside > .form { padding: 20px; } .customize-control-widget_form.wide-widget-control .widget-top { transition: background-color 0.4s; } .customize-control-widget_form.wide-widget-control.expanding .widget-top, .customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top { background-color: #dcdcde; } .widget-inside { padding: 1px 10px 10px; border-top: none; line-height: 1.23076923; } .customize-control-widget_form.expanded .widget-action .toggle-indicator:before { content: "\f142"; } .customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before { content: "\f141"; } .customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before { content: "\f139"; } .widget-title-action { cursor: pointer; } .widget-top, .customize-control-widget_form .widget .customize-control-title { cursor: move; } .control-section.accordion-section.highlighted > .accordion-section-title, .customize-control-widget_form.highlighted { outline: none; box-shadow: 0 0 2px rgba(79, 148, 212, 0.8); position: relative; z-index: 1; } #widget-customizer-control-templates { display: none; } /** * Widget reordering styles */ #customize-theme-controls .widget-reorder-nav { display: none; float: left; background-color: #f6f7f7; } .move-widget:before { content: "\f504"; content: "\f504" / ''; } #customize-theme-controls .move-widget-area { display: none; background: #fff; border: 1px solid #c3c4c7; border-top: none; cursor: auto; } #customize-theme-controls .reordering .move-widget-area.active { display: block; } #customize-theme-controls .move-widget-area .description { margin: 0; padding: 15px 20px; font-weight: 400; } #customize-theme-controls .widget-area-select { margin: 0; padding: 0; list-style: none; } #customize-theme-controls .widget-area-select li { position: relative; margin: 0; padding: 13px 42px 15px 15px; color: #50575e; border-top: 1px solid #c3c4c7; cursor: pointer; -webkit-user-select: none; user-select: none; } #customize-theme-controls .widget-area-select li:before { display: none; content: "\f147"; content: "\f147" / ''; position: absolute; top: 12px; right: 10px; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #customize-theme-controls .widget-area-select li:last-child { border-bottom: 1px solid #c3c4c7; } #customize-theme-controls .widget-area-select .selected { color: #fff; background: var(--wp-admin-theme-color); } #customize-theme-controls .widget-area-select .selected:before { display: block; } #customize-theme-controls .move-widget-actions { text-align: left; padding: 12px; } #customize-theme-controls .reordering .widget-title-action { display: none; } #customize-theme-controls .reordering .widget-reorder-nav { display: block; } /* Text Widget */ .wp-customizer div.mce-inline-toolbar-grp, .wp-customizer div.mce-tooltip { z-index: 500100 !important; } .wp-customizer .ui-autocomplete.wplink-autocomplete { z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */ } .wp-customizer #wp-link-backdrop { z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */ } .wp-customizer #wp-link-wrap { z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */ } /** * Styles for new widget addition panel */ /* override widgets admin page rules in wp-admin/css/widgets.css */ #widgets-left #available-widgets .widget { float: none !important; width: auto !important; } /* Keep rule that is no longer necessary on widgets.php. */ #available-widgets .widget-action { display: none; } .ios #available-widgets { transition: right 0s; } #available-widgets .widget-tpl:hover, #available-widgets .widget-tpl.selected { background: #f6f7f7; border-bottom-color: #c3c4c7; color: var(--wp-admin-theme-color);; border-right: 4px solid var(--wp-admin-theme-color); } #customize-controls .widget-title h3 { font-size: 1em; } #available-widgets .widget-title h3 { padding: 0 0 5px; font-size: 14px; } #available-widgets .widget .widget-description { padding: 0; color: #646970; } @media (prefers-reduced-motion: no-preference) { #customize-preview { transition: all 0.2s; } } body.adding-widget #available-widgets { right: 0; visibility: visible; } body.adding-widget .wp-full-overlay-main { right: 300px; } body.adding-widget #customize-preview { opacity: 0.4; } /** * Widget Icon styling * No plurals in naming. * Ordered from lowest to highest specificity. */ #available-widgets .widget-title { position: relative; } #available-widgets .widget-title:before { content: "\f132"; content: "\f132" / ''; position: absolute; top: -3px; left: 100%; margin-left: 20px; width: 20px; height: 20px; color: #2c3338; font: normal 20px/1 dashicons; text-align: center; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* dashicons-smiley */ #available-widgets [class*="easy"] .widget-title:before { content: "\f328"; content: "\f328" / ''; top: -4px; } /* dashicons-star-filled */ #available-widgets [class*="super"] .widget-title:before, #available-widgets [class*="like"] .widget-title:before { content: "\f155"; content: "\f155" / ''; top: -4px; } /* dashicons-wordpress */ #available-widgets [class*="meta"] .widget-title:before { content: "\f120"; content: "\f120" / ''; } /* dashicons-archive */ #available-widgets [class*="archives"] .widget-title:before { content: "\f480"; content: "\f480" / ''; top: -4px; } /* dashicons-category */ #available-widgets [class*="categor"] .widget-title:before { content: "\f318"; content: "\f318" / ''; top: -4px; } /* dashicons-admin-comments */ #available-widgets [class*="comment"] .widget-title:before, #available-widgets [class*="testimonial"] .widget-title:before, #available-widgets [class*="chat"] .widget-title:before { content: "\f101"; content: "\f101" / ''; } /* dashicons-admin-post */ #available-widgets [class*="post"] .widget-title:before { content: "\f109"; content: "\f109" / ''; } /* dashicons-admin-page */ #available-widgets [class*="page"] .widget-title:before { content: "\f105"; content: "\f105" / ''; } /* dashicons-text */ #available-widgets [class*="text"] .widget-title:before { content: "\f478"; content: "\f478" / ''; } /* dashicons-admin-links */ #available-widgets [class*="link"] .widget-title:before { content: "\f103"; content: "\f103" / ''; } /* dashicons-search */ #available-widgets [class*="search"] .widget-title:before { content: "\f179"; content: "\f179" / ''; } /* dashicons-menu */ #available-widgets [class*="menu"] .widget-title:before, #available-widgets [class*="nav"] .widget-title:before { content: "\f333"; content: "\f333" / ''; } /* dashicons-tagcloud */ #available-widgets [class*="tag"] .widget-title:before { content: "\f479"; content: "\f479" / ''; } /* dashicons-rss */ #available-widgets [class*="rss"] .widget-title:before { content: "\f303"; content: "\f303" / ''; top: -6px; } /* dashicons-calendar */ #available-widgets [class*="event"] .widget-title:before, #available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; content: "\f145" / ''; top: -4px; } /* dashicons-format-image */ #available-widgets [class*="image"] .widget-title:before, #available-widgets [class*="photo"] .widget-title:before, #available-widgets [class*="slide"] .widget-title:before, #available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; content: "\f128" / ''; } /* dashicons-format-gallery */ #available-widgets [class*="album"] .widget-title:before, #available-widgets [class*="galler"] .widget-title:before { content: "\f161"; content: "\f161" / ''; } /* dashicons-format-video */ #available-widgets [class*="video"] .widget-title:before, #available-widgets [class*="tube"] .widget-title:before { content: "\f126"; content: "\f126" / ''; } /* dashicons-format-audio */ #available-widgets [class*="music"] .widget-title:before, #available-widgets [class*="radio"] .widget-title:before, #available-widgets [class*="audio"] .widget-title:before { content: "\f127"; content: "\f127" / ''; } /* dashicons-admin-users */ #available-widgets [class*="login"] .widget-title:before, #available-widgets [class*="user"] .widget-title:before, #available-widgets [class*="member"] .widget-title:before, #available-widgets [class*="avatar"] .widget-title:before, #available-widgets [class*="subscriber"] .widget-title:before, #available-widgets [class*="profile"] .widget-title:before, #available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; content: "\f110" / ''; } /* dashicons-cart */ #available-widgets [class*="commerce"] .widget-title:before, #available-widgets [class*="shop"] .widget-title:before, #available-widgets [class*="cart"] .widget-title:before { content: "\f174"; content: "\f174" / ''; top: -4px; } /* dashicons-shield */ #available-widgets [class*="secur"] .widget-title:before, #available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; content: "\f332" / ''; } /* dashicons-chart-bar */ #available-widgets [class*="analytic"] .widget-title:before, #available-widgets [class*="stat"] .widget-title:before, #available-widgets [class*="poll"] .widget-title:before { content: "\f185"; content: "\f185" / ''; } /* dashicons-feedback */ #available-widgets [class*="form"] .widget-title:before { content: "\f175"; content: "\f175" / ''; } /* dashicons-email-alt */ #available-widgets [class*="subscribe"] .widget-title:before, #available-widgets [class*="news"] .widget-title:before, #available-widgets [class*="contact"] .widget-title:before, #available-widgets [class*="mail"] .widget-title:before { content: "\f466"; content: "\f466" / ''; } /* dashicons-share */ #available-widgets [class*="share"] .widget-title:before, #available-widgets [class*="socia"] .widget-title:before { content: "\f237"; content: "\f237" / ''; } /* dashicons-translation */ #available-widgets [class*="lang"] .widget-title:before, #available-widgets [class*="translat"] .widget-title:before { content: "\f326"; content: "\f326" / ''; } /* dashicons-location-alt */ #available-widgets [class*="locat"] .widget-title:before, #available-widgets [class*="map"] .widget-title:before { content: "\f231"; content: "\f231" / ''; } /* dashicons-download */ #available-widgets [class*="download"] .widget-title:before { content: "\f316"; content: "\f316" / ''; } /* dashicons-cloud */ #available-widgets [class*="weather"] .widget-title:before { content: "\f176"; content: "\f176" / ''; top: -4px; } /* dashicons-facebook */ #available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; content: "\f304" / ''; } /* dashicons-twitter */ #available-widgets [class*="tweet"] .widget-title:before, #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; content: "\f301" / ''; } @media screen and (max-height: 700px) and (min-width: 981px) { /* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */ .customize-control-widget_form { margin-bottom: 0; } .widget-top { box-shadow: none; margin-top: -1px; } .widget-top:hover { position: relative; z-index: 1; } .last-widget { margin-bottom: 15px; } .widget-title h3 { padding: 13px 15px; } .widget-top .widget-action { padding: 8px 10px; } .widget-reorder-nav span { height: 39px; } .widget-reorder-nav span:before { line-height: 39px; } /* Compact the move widget areas. */ #customize-theme-controls .widget-area-select li { padding: 9px 42px 11px 15px; } #customize-theme-controls .widget-area-select li:before { top: 8px; } } css/site-icon-rtl.css000064400000011050152213653150010537 0ustar00/*! This file is auto-generated */ /*------------------------------------------------------------------------------ 28.0 - Site Icon ------------------------------------------------------------------------------*/ .site-icon-section { --site-icon-removal: #b32d2e; } .site-icon-preview { --site-icon-input-border: #8c8f94; --site-icon-preview-background: #fff; --site-icon-preview-browser-top: #dcdcde; --site-icon-preview-browser-bottom: #a7aaad; --site-icon-preview-browser-border: rgba(255, 255, 255, 0.2); --site-icon-address-bar-background: #f0f0f1; --site-icon-address-bar-close: #646970; --site-icon-address-bar-text: #3c434a; --site-icon-shadow-1: rgba(0, 0, 0, 0.1); --site-icon-shadow-2: rgba(0, 0, 0, 0.2); --site-icon-shadow-3: rgba(0, 0, 0, 0.5); direction: initial; display: flex; height: 60px; padding: 8px 8px 0 0; align-items: flex-start; position: relative; overflow: hidden; box-sizing: border-box; border: 1px solid var(--site-icon-input-border); border-radius: 4px; background-color: var(--site-icon-preview-background); width: 275px; } @media (prefers-color-scheme: dark) { .site-icon-preview { --site-icon-preview-browser-top: #2c3338; --site-icon-preview-browser-bottom: #111; --site-icon-address-bar-background: #3c434a; --site-icon-address-bar-close: #f0f0f1; --site-icon-address-bar-text: #f0f0f1; } } .site-icon-preview.settings { height: 88px; padding: 16px 16px 0 0; width: 350px; margin: 0 0 16px 0; } .site-icon-preview.crop { width: 258px; height: 100%; display: grid; grid-template-columns: 8px 1fr; grid-template-rows: 64px 1fr; padding-right: 0; row-gap: 16px; direction: inherit; } .site-icon-preview.hidden { display: none; } .site-icon-preview .direction-wrap { grid-template-columns: 44px 1fr; gap: 8px; display: grid; direction: rtl; height: 100%; width: 100%; } .site-icon-preview.settings .direction-wrap { grid-template-columns: 58px 1fr; gap: 16px; } .site-icon-preview:after { --after-size: 150%; aspect-ratio: 1/1; content: ""; display: block; position: absolute; top: 0; right: 0; width: var(--after-size);; transform: translate(calc(-1*(var(--after-size) * -0.125)), calc(var(--after-size) * -0.125)); filter: blur(5px); opacity: 0.5; background: var(--site-icon-url); } .site-icon-preview .app-icon-preview { aspect-ratio: 1/1; border-radius: 10px; box-shadow: 0 1px 5px 0 var(--site-icon-shadow-3); flex-shrink: 0; width: 100%; z-index: 1; } .site-icon-preview-browser { display: flex; padding: 4px 12px 0 4px; align-items: flex-start; gap: 16px; flex: 1 0 0; z-index: 1; border-top-right-radius: 10px; border-top: 1px solid var(--site-icon-preview-browser-border); border-right: 1px solid var(--site-icon-preview-browser-border); background: linear-gradient(-180deg, var(--site-icon-preview-browser-top) 0%, var(--site-icon-preview-browser-bottom) 100%); box-shadow: 0 10px 22px 0 var(--site-icon-shadow-2); } .site-icon-preview .browser-buttons { width: 48px; height: 40px; fill: var(--site-icon-input-border); } .site-icon-preview-tab { padding: 8px; align-items: center; gap: 8px; flex: 1 0 0; border-radius: 4px; background-color: var(--site-icon-address-bar-background); box-shadow: 0 1px 3px 0 var(--site-icon-shadow-1); display: grid; grid-template-columns: 24px auto 24px; } .site-icon-preview-browser .browser-icon-preview { box-shadow: 0 0 20px 0 var(--site-icon-shadow-1); } .site-icon-preview-tab > img, .site-icon-preview-tab > svg { width: 24px; height: 24px; } .site-icon-preview-tab > svg { fill: var(--site-icon-address-bar-close); } .site-icon-preview-site-title { color: var(--site-icon-address-bar-text); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; font-weight: 500; } .site-icon-preview-crop-modal .image-preview-wrap.app-icon-preview { width: 64px; height: 64px; margin: 0; grid-column: 2; } .site-icon-preview-crop-modal .site-icon-preview-browser { grid-column: 2; } .site-icon-preview-crop-modal .image-preview-wrap { overflow: hidden; aspect-ratio: 1/1; } .site-icon-preview-crop-modal .image-preview-wrap.browser { width: 24px; height: 24px; } button.reset.remove-site-icon { color: var(--site-icon-removal); text-decoration: none; border-color: currentColor; box-shadow: none; background: transparent; } button.reset.remove-site-icon:focus, button.reset.remove-site-icon:hover { background: var(--site-icon-removal); color: #fff; border-color: var(--site-icon-removal); box-shadow: 0 0 0 1px var(--site-icon-removal); } .site-icon-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; } css/about-rtl.css000064400000067534152213653150010001 0ustar00/*! This file is auto-generated */ /*------------------------------------------------------------------------------ 22.0 - About Pages 1.0 Global: About, Credits, Freedoms, Privacy, Get Involved 1.1 Layout 1.2 Typography & Elements 1.3 Header 2.0 Credits Page 3.0 Freedoms Page 4.0 Privacy Page x.2.0 Legacy About Styles: Global x.2.1 Typography x.2.2 Structure x.2.3 Point Releases x.3.0 Legacy About Styles: About Page x.3.1 Typography x.3.2 Structure x.4.0 Legacy About Styles: Credits & Freedoms Pages x.5.0 Legacy About Styles: Media Queries ------------------------------------------------------------------------------*/ .about__container { /* Section backgrounds */ --background: #ebe8e5; --subtle-background: #ebe8e5; /* Main text color */ --text: #1e1e1e; --text-light: #fff; /* Accent colors: used in header, on special classes. */ --accent-1: #3858e9; /* Link color */ --accent-2: #183ad6; /* Accent background */ --accent-3: #ececec; /* hr background */ /* Header background on small screens */ --accent-gradient: linear-gradient(-90deg, #000000 4.7%, var(--accent-1) 83.84%)/*rtl:linear-gradient(-90deg, #000000 4.7%, var(--accent-1) 83.84%)*/; /* Navigation colors. */ --nav-background: #fff; --nav-border: transparent; --nav-color: var(--text); --nav-current: var(--accent-1); --border-radius: 0.5rem; --gap: 2rem; } /*------------------------------------------------------------------------------ 1.0 - Global: About, Credits, Freedoms, Privacy, Get Involved ------------------------------------------------------------------------------*/ .about-php, .credits-php, .freedoms-php, .privacy-php, .contribute-php { background: #fff; } .about-php #wpcontent, .credits-php #wpcontent, .freedoms-php #wpcontent, .privacy-php #wpcontent, .contribute-php #wpcontent { background: #fff; padding: 0 24px; } @media screen and (max-width: 782px) { .about-php.auto-fold #wpcontent, .credits-php.auto-fold #wpcontent, .freedoms-php.auto-fold #wpcontent, .privacy-php.auto-fold #wpcontent, .contribute-php.auto-fold #wpcontent { padding-right: 24px; } } .about__container { max-width: 1000px; margin: 24px auto; clear: both; } .about__container .alignleft { float: right; } .about__container .alignright { float: left; } .about__container .aligncenter { text-align: center; } .about__container .is-vertically-aligned-top { align-self: start; } .about__container .is-vertically-aligned-center { align-self: center; } .about__container .is-vertically-aligned-bottom { align-self: end; } .about__section { background: transparent; clear: both; } .about__container .has-accent-background-color { color: var(--text-light); background-color: var(--accent-2); } .about__container .has-transparent-background-color { background-color: transparent; } .about__container .has-accent-color { color: var(--accent-2); } .about__container .has-border { border: 3px solid currentColor; } .about__container .has-subtle-background-color { background-color: var(--subtle-background); border-radius: var(--border-radius); } .about__container .has-background-image { background-size: contain; background-repeat: no-repeat; background-position: center; } /* 1.1 - Layout */ .about__section { margin: 0; } .about__section .column:not(.is-edge-to-edge) { padding: var(--gap); } .about__section .column.is-left-padding-zero { padding-right: 0; } .about__section .column.is-right-padding-zero { padding-left: 0; } .about__section + .about__section .is-section-header { padding-bottom: var(--gap); } .about__section .column[class*="background-color"]:not(.is-edge-to-edge), .about__section:where([class*="background-color"]) .column:not(.is-edge-to-edge), .about__section .column.has-border:not(.is-edge-to-edge) { padding-top: var(--gap); padding-bottom: var(--gap); } .about__section .column p:first-of-type { margin-top: 0; } .about__section .column p:last-of-type { margin-bottom: 0; } .about__section .has-text-columns { columns: 2; column-gap: calc(var(--gap) * 2); } .about__section .is-section-header { margin-bottom: 0; padding: var(--gap) var(--gap) 0; } .about__section .is-section-header p:last-child { margin-bottom: 0; } /* Section header is alone in a container. */ .about__section .is-section-header:first-child:last-child { padding: 0; } .about__section.is-feature { padding: var(--gap); } .about__section.is-feature p { margin: 0; } .about__section.is-feature p + p { margin-top: calc(var(--gap) / 2); } .about__section.has-1-column { margin-right: auto; margin-left: auto; max-width: 36em; } .about__section.has-2-columns, .about__section.has-3-columns, .about__section.has-4-columns, .about__section.has-overlap-style { display: grid; } .about__section.has-gutters { gap: var(--gap); margin-bottom: var(--gap); } .about__section.has-2-columns { grid-template-columns: 1fr 1fr; } .about__section.has-2-columns.is-wider-right { grid-template-columns: 2fr 3fr; } .about__section.has-2-columns.is-wider-left { grid-template-columns: 3fr 2fr; } .about__section .is-section-header { grid-column-start: 1; grid-column-end: -1; } .about__section.has-3-columns { grid-template-columns: repeat(3, 1fr); } .about__section.has-4-columns { grid-template-columns: repeat(4, 1fr); } .about__section.has-overlap-style { grid-template-columns: repeat(7, 1fr); } .about__section.has-overlap-style .column { grid-row-start: 1; } .about__section.has-overlap-style .column:nth-of-type(2n+1) { grid-column-start: 2; grid-column-end: span 3; } .about__section.has-overlap-style .column:nth-of-type(2n) { grid-column-start: 4; grid-column-end: span 3; } .about__section.has-overlap-style .column.is-top-layer { z-index: 1; } @media screen and (max-width: 782px) { .about__section.has-2-columns.is-wider-right, .about__section.has-2-columns.is-wider-left, .about__section.has-3-columns { display: block; margin-bottom: calc(var(--gap) / 2); } .about__section .column:not(.is-edge-to-edge) { padding-top: var(--gap); padding-bottom: var(--gap); } .about__section.has-2-columns.has-gutters.is-wider-right, .about__section.has-2-columns.has-gutters.is-wider-left, .about__section.has-3-columns.has-gutters { margin-bottom: calc(var(--gap) * 2); } .about__section.has-2-columns.has-gutters .column, .about__section.has-2-columns.has-gutters .column, .about__section.has-3-columns.has-gutters .column { margin-bottom: var(--gap); } .about__section.has-2-columns.has-gutters .column:last-child, .about__section.has-2-columns.has-gutters .column:last-child, .about__section.has-3-columns.has-gutters .column:last-child { margin-bottom: 0; } .about__section.has-3-columns .column:nth-of-type(n) { padding-top: calc(var(--gap) / 2); padding-bottom: calc(var(--gap) / 2); } .about__section.has-4-columns { grid-template-columns: repeat(2, 1fr); } .about__section.has-overlap-style { grid-template-columns: 1fr; } /* At this size, the two columns fully overlap */ .about__section.has-overlap-style .column.column { grid-column-start: 1; grid-column-end: 2; grid-row-start: 1; grid-row-end: 2; } } @media screen and (max-width: 600px) { .about__section.has-2-columns { display: block; margin-bottom: var(--gap); } .about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n) { padding-top: calc(var(--gap) / 2); padding-bottom: calc(var(--gap) / 2); } .about__section.has-2-columns.has-gutters { margin-bottom: calc(var(--gap) * 2); } .about__section.has-2-columns.has-gutters .column { margin-bottom: var(--gap); } .about__section.has-2-columns.has-gutters .column:last-child { margin-bottom: 0; } .about__section .column.is-left-padding-zero { padding-left: 0; } .about__section .column.is-right-padding-zero { padding-right: 0; } } @media screen and (max-width: 480px) { .about__section.is-feature .column, .about__section .is-section-header { padding: 0; } .about__section.has-4-columns { display: block; padding-bottom: calc(var(--gap) / 2); } .about__section.has-4-columns.has-gutters .column { margin-bottom: calc(var(--gap) / 2); } .about__section.has-4-columns.has-gutters .column:last-child { margin-bottom: 0; } .about__section.has-4-columns .column:nth-of-type(n) { padding-top: calc(var(--gap) / 2); padding-bottom: calc(var(--gap) / 2); } } /* 1.2 - Typography & Elements */ .about__container { line-height: 1.4; color: var(--text); } .about__container h1 { padding: 0; } .about__container h1, .about__container h2, .about__container h3.is-larger-heading { margin-top: 0; margin-bottom: calc(0.5 * var(--gap)); font-size: 2rem; font-weight: 700; line-height: 1.16; } .about__container h3, .about__container h1.is-smaller-heading, .about__container h2.is-smaller-heading { margin-top: 0; margin-bottom: calc(0.5 * var(--gap)); font-size: 1.625rem; font-weight: 700; line-height: 1.4; } .about__container h4, .about__container h3.is-smaller-heading { margin-top: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.6; } .about__container h1, .about__container h2, .about__container h3, .about__container h4 { text-wrap: pretty; color: inherit; } .about__container :is(h1, h2, h3, h4, .about__header-text):lang(en) { text-wrap: balance; } .about__container p { text-wrap: pretty; } .about__container p { font-size: inherit; line-height: inherit; } .about__container p.is-subheading { margin-top: 0; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 300; line-height: 160%; } .about__section a { color: var(--accent-1); text-decoration: underline; } .about__section a:hover, .about__section a:active, .about__section a:focus { color: var(--accent-1); text-decoration: none; } .wp-credits-list a { text-decoration: none; } .wp-credits-list a:hover, .wp-credits-list a:active, .wp-credits-list a:focus { text-decoration: underline; } .about__section a.button.button-hero { padding-top: 1.1875rem; padding-bottom: 1.1875rem; font-size: 1.5rem; line-height: 1.4; white-space: normal; text-wrap: pretty; } .about__container ul { list-style: disc; margin-right: calc(var(--gap) / 2); } .about__container li { margin-bottom: 0.5rem; } .about__container img { margin: 0; max-width: 100%; vertical-align: middle; } .about__container .about__image { margin: 0; } .about__container .about__image img { max-width: 100%; width: 100%; height: auto; border-radius: var(--border-radius); } .about__container .about__image figcaption { margin-top: 0.5em; text-align: center; } .about__container .about__image .wp-video { margin-right: auto; margin-left: auto; } .about__container .about__image svg { vertical-align: middle; } .about__container .about__image + h3 { margin-top: calc(0.75 * var(--gap)); } .about__container hr { margin: calc(var(--gap) / 2) var(--gap); height: 0; border: none; border-top: 4px solid var(--accent-3); } .about__container hr.is-small { margin-top: 0; margin-bottom: 0; } .about__container hr.is-large { margin: var(--gap) auto; } .about__container hr.is-invisible { border: none; } .about__container div.updated, .about__container div.error, .about__container .notice { display: none !important; } .about__container code { font-size: inherit; } .about__section { font-size: 1.125rem; line-height: 1.55; } .about__section.is-feature { font-size: 1.6em; } .about__section.has-3-columns, .about__section.has-4-columns { font-size: 1rem; } @media screen and (max-width: 480px) { .about__section.is-feature { font-size: 1.4em; } .about__container h1, .about__container h2, .about__container h3.is-larger-heading { font-size: 2em; } } /* 1.3 - Header */ .about__header { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; box-sizing: border-box; padding: calc(var(--gap) * 1.5); padding-left: 26rem; /* Space for the background image. */ min-height: clamp(10rem, 25vw, 18.75rem); border-radius: var(--border-radius); background-image: url( "../images/about-header-default.webp?ver=20260514" ); background-repeat: no-repeat; background-position: left center; background-size: cover; background-color: var(--background); color: var(--text-light); } .credits-php .about__header { background-image: url( "../images/about-header-credits.webp?ver=20260514" ); } .freedoms-php .about__header { background-image: url( "../images/about-header-freedoms.webp?ver=20260514" ); } .privacy-php .about__header { background-image: url( "../images/about-header-privacy.webp?ver=20260514" ); } .contribute-php .about__header { background-image: url( "../images/about-header-get-involved.webp?ver=20260514" ); } [dir="rtl"] .about__header { background-image: url( "../images/about-header-default-rtl.webp?ver=20260514" ); } [dir="rtl"] .credits-php .about__header { background-image: url( "../images/about-header-credits-rtl.webp?ver=20260514" ); } [dir="rtl"] .freedoms-php .about__header { background-image: url( "../images/about-header-freedoms-rtl.webp?ver=20260514" ); } [dir="rtl"] .privacy-php .about__header { background-image: url( "../images/about-header-privacy-rtl.webp?ver=20260514" ); } [dir="rtl"] .contribute-php .about__header { background-image: url( "../images/about-header-get-involved-rtl.webp?ver=20260514" ); } .about__header-image { margin: 0 0 calc(var(--gap) * 1.5); } .about__header-title { box-sizing: border-box; margin: 0; padding: 0; } .about__header-title h1 { margin: 0; padding: 0; /* Fluid font size scales on browser size 960px - 1200px. */ font-size: clamp(2rem, 20vw - 9rem, 4rem); line-height: 1; font-weight: 600; color: var(--text); } .about-php .about__header-title h1, .credits-php .about__header-title h1, .freedoms-php .about__header-title h1, .privacy-php .about__header-title h1, .contribute-php .about__header-title h1 { /* Fluid font size scales on browser size 960px - 1200px. */ font-size: clamp(2rem, 20vw - 9rem, 4rem); } .about__header-text { box-sizing: border-box; max-width: 26em; margin: 1rem 0 0; padding: 0; font-size: 1.6rem; line-height: 1.15; color: var(--text); } .about__header-navigation { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 0; margin-bottom: var(--gap); background: var(--nav-background); color: var(--nav-color); border-bottom: 3px solid var(--nav-border); } .about__header-navigation::after { display: none; } .about__header-navigation .nav-tab { margin-right: 0; padding: calc(var(--gap) * 0.75) var(--gap); float: none; font-size: 1.4em; line-height: 1; border-width: 0 0 3px; border-style: solid; border-color: transparent; background: transparent; color: inherit; } .about__header-navigation .nav-tab:hover, .about__header-navigation .nav-tab:active { background-color: var(--nav-current); color: var(--text-light); border-radius: var(--border-radius); } .about__header-navigation .nav-tab-active { margin-bottom: -3px; color: var(--nav-current); border-width: 0 0 6px; border-color: var(--nav-current); } .about__header-navigation .nav-tab-active:hover, .about__header-navigation .nav-tab-active:active { background-color: var(--nav-current); color: var(--text-light); border-color: var(--nav-current); border-radius: var(--border-radius); } @media screen and (max-width: 960px) { .about__header { padding-left: 21rem; } .about-php .about__header-title h1, .credits-php .about__header-title h1, .freedoms-php .about__header-title h1, .privacy-php .about__header-title h1, .contribute-php .about__header-title h1 { /* Fluid font size scales on browser size 600px - 960px. */ font-size: clamp(2rem, 20vw - 9rem, 4rem); } .about__header-navigation .nav-tab { padding: calc(var(--gap) * 0.75) calc(var(--gap) * 0.5); } } @media screen and (max-width: 782px) { .about__container .about__header-text { font-size: 1.4em; } .about__header-container { display: block; } .about__header { padding: var(--gap); padding-left: 17rem; } .about__header-text { margin-top: 0.5rem; } .about__header-navigation .nav-tab { margin-top: 0; margin-left: 0; font-size: 1.2em; } } @media screen and (max-width: 600px) { .about__header { min-height: auto; padding-left: var(--gap); } .about__header-navigation { display: block; } .about__header-navigation .nav-tab { display: block; margin-bottom: 0; padding: calc(var(--gap) / 2); border-right-width: 6px; border-bottom: none; } .about__header-navigation .nav-tab-active { border-bottom: none; border-right-width: 6px; } } /*------------------------------------------------------------------------------ 2.0 - Credits Page ------------------------------------------------------------------------------*/ .about__section .wp-people-group-title { margin-bottom: calc(var(--gap) * 2 - 10px); text-align: center; } .about__section .wp-people-group { margin: 0; display: flex; flex-wrap: wrap; } .about__section .wp-person { display: inline-block; vertical-align: top; box-sizing: border-box; margin-bottom: calc(var(--gap) - 10px); width: 25%; text-align: center; } .about__section .compact .wp-person { height: auto; width: 20%; } .about__section .wp-person-avatar { display: block; margin: 0 auto calc(var(--gap) / 2); width: 140px; height: 140px; border-radius: 100%; overflow: hidden; } .about__section .wp-person .gravatar { width: 140px; height: 140px; filter: grayscale(100%); } .about__section .compact .wp-person-avatar, .about__section .compact .wp-person .gravatar { width: 80px; height: 80px; } .about__section .wp-person .web { display: block; font-size: 1.4em; font-weight: 600; padding: 10px 10px 0; text-decoration: none; } .about__section .wp-person .web:hover { text-decoration: underline; } .about__section .compact .wp-person .web { font-size: 1.2em; } .about__section .wp-person .title { display: block; margin-top: 0.5em; } @media screen and (max-width: 782px) { .about__section .wp-person { width: 33%; } .about__section .compact .wp-person { width: 25%; } .about__section .wp-person-avatar, .about__section .wp-person .gravatar { width: 120px; height: 120px; } } @media screen and (max-width: 600px) { .about__section .wp-person { width: 50%; } .about__section .compact .wp-person { width: 33%; } .about__section .wp-person .web { font-size: 1.2em; } } @media screen and (max-width: 480px) { .about__section .wp-person { min-width: 100%; } .about__section .wp-person .web { font-size: 1em; } .about__section .compact .wp-person .web { font-size: 1em; } } /*------------------------------------------------------------------------------ 3.0 - Freedoms Page ------------------------------------------------------------------------------*/ .about__section .column .freedom-image { margin-bottom: var(--gap); max-height: 180px; } /*------------------------------------------------------------------------------ 4.0 - Privacy Page ------------------------------------------------------------------------------*/ .about__section .column .privacy-image { display: block; margin-right: auto; margin-left: auto; max-width: 25rem; } /*------------------------------------------------------------------------------ x.2.0 - Legacy About Styles: Global ------------------------------------------------------------------------------*/ .about-wrap { position: relative; margin: 25px 20px 0 40px; max-width: 1050px; /* readability */ font-size: 15px; } .about-wrap.full-width-layout { max-width: 1200px; } .about-wrap-content { max-width: 1050px; } .about-wrap div.updated, .about-wrap div.error, .about-wrap .notice { display: none !important; } .about-wrap hr { border: 0; height: 0; margin: 3em 0 0; border-top: 1px solid rgba(0, 0, 0, 0.1); } .about-wrap img { margin: 0; width: 100%; height: auto; vertical-align: middle; } .about-wrap .inline-svg img { max-width: 100%; width: auto; height: auto; } .about-wrap video { margin: 1.5em auto; } /* WordPress Version Badge */ .wp-badge { background: #0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat; background-position: center 25px; background-size: 80px 80px; color: #fff; font-size: 14px; text-align: center; font-weight: 600; margin: 5px 0 0; padding-top: 120px; height: 40px; display: inline-block; width: 140px; text-rendering: optimizeLegibility; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } .svg .wp-badge { background-image: url(../images/wordpress-logo-white.svg?ver=20160308); } .about-wrap .wp-badge { position: absolute; top: 0; left: 0; } /* Tabs */ .about-wrap .nav-tab { padding-left: 15px; padding-right: 15px; font-size: 18px; line-height: 1.33333333; } /* x.2.1 - Typography */ .about-wrap h1 { margin: 0.2em 0 0 200px; padding: 0; color: #32373c; line-height: 1.2; font-size: 2.8em; font-weight: 400; } .about-wrap h2 { margin: 40px 0 0.6em; font-size: 2.7em; line-height: 1.3; font-weight: 300; text-align: center; } .about-wrap h3 { margin: 1.25em 0 0.6em; font-size: 1.4em; line-height: 1.5; } .about-wrap h4 { font-size: 16px; color: #23282d; } .about-wrap p { line-height: 1.5; font-size: 16px; } .about-wrap code, .about-wrap ol li p { font-size: 14px; font-weight: 400; } .about-wrap figcaption { font-size: 13px; text-align: center; color: white; text-overflow: ellipsis; } .about-wrap .about-description, .about-wrap .about-text { margin-top: 1.4em; font-weight: 400; line-height: 1.6; font-size: 19px; } .about-wrap .about-text { margin: 1em 0 1em 200px; color: #555d66; } /* x.2.2 - Structure */ .about-wrap .has-1-columns, .about-wrap .has-2-columns, .about-wrap .has-3-columns, .about-wrap .has-4-columns { display: grid; max-width: 800px; margin-top: 40px; margin-right: auto; margin-left: auto; } .about-wrap .column { margin-left: 20px; margin-right: 20px; } .about-wrap .is-wide { max-width: 760px; } .about-wrap .is-fullwidth { max-width: 100%; } .about-wrap .has-1-columns { display: block; max-width: 680px; margin: 0 auto 40px; } .about-wrap .has-2-columns { grid-template-columns: 1fr 1fr; } .about-wrap .has-2-columns .column:nth-of-type(2n+1) { grid-column-start: 1; } .about-wrap .has-2-columns .column:nth-of-type(2n) { grid-column-start: 2; } .about-wrap .has-2-columns.is-wider-right { grid-template-columns: 1fr 2fr; } .about-wrap .has-2-columns.is-wider-left { grid-template-columns: 2fr 1fr; } .about-wrap .has-3-columns { grid-template-columns: repeat(3, 1fr); } .about-wrap .has-3-columns .column:nth-of-type(3n+1) { grid-column-start: 1; } .about-wrap .has-3-columns .column:nth-of-type(3n+2) { grid-column-start: 2; } .about-wrap .has-3-columns .column:nth-of-type(3n) { grid-column-start: 3; } .about-wrap .has-4-columns { grid-template-columns: repeat(4, 1fr); } .about-wrap .has-4-columns .column:nth-of-type(4n+1) { grid-column-start: 1; } .about-wrap .has-4-columns .column:nth-of-type(4n+2) { grid-column-start: 2; } .about-wrap .has-4-columns .column:nth-of-type(4n+3) { grid-column-start: 3; } .about-wrap .has-4-columns .column:nth-of-type(4n) { grid-column-start: 4; } .about-wrap .column :first-child { margin-top: 0; } .about-wrap .aligncenter { text-align: center; } .about-wrap .alignleft { float: right; margin-left: 40px; } .about-wrap .alignright { float: left; margin-right: 40px; } .about-wrap .is-vertically-aligned-top { align-self: flex-start; } .about-wrap .is-vertically-aligned-center { align-self: center; } .about-wrap .is-vertically-aligned-bottom { align-self: end; } /* x.2.3 - Point Releases */ .about-wrap .point-releases { margin-top: 5px; border-bottom: 1px solid #ddd; } .about-wrap .changelog { margin-bottom: 40px; } .about-wrap .changelog.point-releases h3 { padding-top: 35px; } .about-wrap .changelog.point-releases h3:first-child { padding-top: 7px; } .about-wrap .changelog.feature-section .col { margin-top: 40px; } /*------------------------------------------------------------------------------ x.3.0 - Legacy About Styles: About Page ------------------------------------------------------------------------------*/ /* x.3.1 - Typography */ .about-wrap .lead-description { font-size: 1.5em; text-align: center; } .about-wrap .feature-section p { margin-top: 0.6em; } /* x.3.2 - Structure */ .about-wrap .headline-feature { margin: 0 auto 40px; max-width: 680px; } .about-wrap .headline-feature h2 { margin: 50px 0 0; } .about-wrap .headline-feature img { max-width: 600px; width: 100%; } /* Go to Dashboard Home link */ .about-wrap .return-to-dashboard { margin: 30px -5px 0 0; font-size: 14px; font-weight: 600; } .about-wrap .return-to-dashboard a { text-decoration: none; padding: 0 5px; } /*------------------------------------------------------------------------------ x.4.0 - Legacy About Styles: Credits & Freedoms Pages ------------------------------------------------------------------------------*/ /* Credits */ .about-wrap h2.wp-people-group { margin: 2.6em 0 1.33em; padding: 0; font-size: 16px; line-height: inherit; font-weight: 600; text-align: right; } .about-wrap .wp-people-group { padding: 0 5px; margin: 0 -5px 0 -15px; } .about-wrap .compact { margin-bottom: 0; } .about-wrap .wp-person { display: inline-block; vertical-align: top; margin-left: 10px; padding-bottom: 15px; height: 70px; width: 280px; } .about-wrap .compact .wp-person { height: auto; width: 180px; padding-bottom: 0; margin-bottom: 0; } .about-wrap .wp-person .gravatar { float: right; margin: 0 0 10px 10px; padding: 1px; width: 60px; height: 60px; } .about-wrap .compact .wp-person .gravatar { width: 30px; height: 30px; } .about-wrap .wp-person .web { margin: 6px 0 2px; font-size: 16px; font-weight: 400; line-height: 2; text-decoration: none; } .about-wrap .wp-person .title { display: block; } .about-wrap #wp-people-group-validators + p.wp-credits-list { margin-top: 0; } .about-wrap p.wp-credits-list a { white-space: nowrap; } /* Freedoms */ .freedoms-php .about-wrap ol { margin: 40px 60px; } .freedoms-php .about-wrap ol li { list-style-type: decimal; font-weight: 600; } .freedoms-php .about-wrap ol p { font-weight: 400; margin: 0.6em 0; } /*------------------------------------------------------------------------------ x.5.0 - Legacy About Styles: Media Queries ------------------------------------------------------------------------------*/ @media screen and (max-width: 782px) { .about-wrap .has-3-columns, .about-wrap .has-4-columns { grid-template-columns: 1fr 1fr; } .about-wrap .has-3-columns .column:nth-of-type(3n+1), .about-wrap .has-4-columns .column:nth-of-type(4n+1) { grid-column-start: 1; grid-row-start: 1; } .about-wrap .has-3-columns .column:nth-of-type(3n+2), .about-wrap .has-4-columns .column:nth-of-type(4n+2) { grid-column-start: 2; grid-row-start: 1; } .about-wrap .has-3-columns .column:nth-of-type(3n), .about-wrap .has-4-columns .column:nth-of-type(4n+3) { grid-column-start: 1; grid-row-start: 2; } .about-wrap .has-4-columns .column:nth-of-type(4n) { grid-column-start: 2; grid-row-start: 2; } } @media screen and (max-width: 600px) { .about-wrap .has-2-columns, .about-wrap .has-3-columns, .about-wrap .has-4-columns { display: block; } .about-wrap :not(.is-wider-right):not(.is-wider-left) .column { margin-left: 0; margin-right: 0; } .about-wrap .has-2-columns.is-wider-right, .about-wrap .has-2-columns.is-wider-left { display: grid; } } @media only screen and (max-width: 500px) { .about-wrap { margin-left: 20px; margin-right: 10px; } .about-wrap h1, .about-wrap .about-text { margin-left: 0; } .about-wrap .about-text { margin-bottom: 0.25em; } .about-wrap .wp-badge { position: relative; margin-bottom: 1.5em; width: 100%; } } @media only screen and (max-width: 480px) { .about-wrap .has-2-columns.is-wider-right, .about-wrap .has-2-columns.is-wider-left { display: block; } .about-wrap .column { margin-left: 0; margin-right: 0; } .about-wrap .has-2-columns.is-wider-right img, .about-wrap .has-2-columns.is-wider-left img { max-width: 160px; } } css/about.min.css000064400000052571152213653150007757 0ustar00/*! This file is auto-generated */ .about__container{--background:#ebe8e5;--subtle-background:#ebe8e5;--text:#1e1e1e;--text-light:#fff;--accent-1:#3858e9;--accent-2:#183ad6;--accent-3:#ececec;--accent-gradient:linear-gradient(90deg, #000000 4.7%, var(--accent-1) 83.84%);--nav-background:#fff;--nav-border:transparent;--nav-color:var(--text);--nav-current:var(--accent-1);--border-radius:0.5rem;--gap:2rem}.about-php,.contribute-php,.credits-php,.freedoms-php,.privacy-php{background:#fff}.about-php #wpcontent,.contribute-php #wpcontent,.credits-php #wpcontent,.freedoms-php #wpcontent,.privacy-php #wpcontent{background:#fff;padding:0 24px}@media screen and (max-width:782px){.about-php.auto-fold #wpcontent,.contribute-php.auto-fold #wpcontent,.credits-php.auto-fold #wpcontent,.freedoms-php.auto-fold #wpcontent,.privacy-php.auto-fold #wpcontent{padding-left:24px}}.about__container{max-width:1000px;margin:24px auto;clear:both}.about__container .alignleft{float:left}.about__container .alignright{float:right}.about__container .aligncenter{text-align:center}.about__container .is-vertically-aligned-top{align-self:start}.about__container .is-vertically-aligned-center{align-self:center}.about__container .is-vertically-aligned-bottom{align-self:end}.about__section{background:0 0;clear:both}.about__container .has-accent-background-color{color:var(--text-light);background-color:var(--accent-2)}.about__container .has-transparent-background-color{background-color:transparent}.about__container .has-accent-color{color:var(--accent-2)}.about__container .has-border{border:3px solid currentColor}.about__container .has-subtle-background-color{background-color:var(--subtle-background);border-radius:var(--border-radius)}.about__container .has-background-image{background-size:contain;background-repeat:no-repeat;background-position:center}.about__section{margin:0}.about__section .column:not(.is-edge-to-edge){padding:var(--gap)}.about__section .column.is-left-padding-zero{padding-left:0}.about__section .column.is-right-padding-zero{padding-right:0}.about__section+.about__section .is-section-header{padding-bottom:var(--gap)}.about__section .column.has-border:not(.is-edge-to-edge),.about__section .column[class*=background-color]:not(.is-edge-to-edge),.about__section:where([class*=background-color]) .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section .column p:first-of-type{margin-top:0}.about__section .column p:last-of-type{margin-bottom:0}.about__section .has-text-columns{columns:2;column-gap:calc(var(--gap) * 2)}.about__section .is-section-header{margin-bottom:0;padding:var(--gap) var(--gap) 0}.about__section .is-section-header p:last-child{margin-bottom:0}.about__section .is-section-header:first-child:last-child{padding:0}.about__section.is-feature{padding:var(--gap)}.about__section.is-feature p{margin:0}.about__section.is-feature p+p{margin-top:calc(var(--gap)/ 2)}.about__section.has-1-column{margin-left:auto;margin-right:auto;max-width:36em}.about__section.has-2-columns,.about__section.has-3-columns,.about__section.has-4-columns,.about__section.has-overlap-style{display:grid}.about__section.has-gutters{gap:var(--gap);margin-bottom:var(--gap)}.about__section.has-2-columns{grid-template-columns:1fr 1fr}.about__section.has-2-columns.is-wider-right{grid-template-columns:2fr 3fr}.about__section.has-2-columns.is-wider-left{grid-template-columns:3fr 2fr}.about__section .is-section-header{grid-column-start:1;grid-column-end:-1}.about__section.has-3-columns{grid-template-columns:repeat(3,1fr)}.about__section.has-4-columns{grid-template-columns:repeat(4,1fr)}.about__section.has-overlap-style{grid-template-columns:repeat(7,1fr)}.about__section.has-overlap-style .column{grid-row-start:1}.about__section.has-overlap-style .column:nth-of-type(odd){grid-column-start:2;grid-column-end:span 3}.about__section.has-overlap-style .column:nth-of-type(2n){grid-column-start:4;grid-column-end:span 3}.about__section.has-overlap-style .column.is-top-layer{z-index:1}@media screen and (max-width:782px){.about__section.has-2-columns.is-wider-left,.about__section.has-2-columns.is-wider-right,.about__section.has-3-columns{display:block;margin-bottom:calc(var(--gap)/ 2)}.about__section .column:not(.is-edge-to-edge){padding-top:var(--gap);padding-bottom:var(--gap)}.about__section.has-2-columns.has-gutters.is-wider-left,.about__section.has-2-columns.has-gutters.is-wider-right,.about__section.has-3-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column,.about__section.has-3-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child,.about__section.has-3-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-3-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns{grid-template-columns:repeat(2,1fr)}.about__section.has-overlap-style{grid-template-columns:1fr}.about__section.has-overlap-style .column.column{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:2}}@media screen and (max-width:600px){.about__section.has-2-columns{display:block;margin-bottom:var(--gap)}.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}.about__section.has-2-columns.has-gutters{margin-bottom:calc(var(--gap) * 2)}.about__section.has-2-columns.has-gutters .column{margin-bottom:var(--gap)}.about__section.has-2-columns.has-gutters .column:last-child{margin-bottom:0}.about__section .column.is-left-padding-zero{padding-right:0}.about__section .column.is-right-padding-zero{padding-left:0}}@media screen and (max-width:480px){.about__section .is-section-header,.about__section.is-feature .column{padding:0}.about__section.has-4-columns{display:block;padding-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column{margin-bottom:calc(var(--gap)/ 2)}.about__section.has-4-columns.has-gutters .column:last-child{margin-bottom:0}.about__section.has-4-columns .column:nth-of-type(n){padding-top:calc(var(--gap)/ 2);padding-bottom:calc(var(--gap)/ 2)}}.about__container{line-height:1.4;color:var(--text)}.about__container h1{padding:0}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:2rem;font-weight:700;line-height:1.16}.about__container h1.is-smaller-heading,.about__container h2.is-smaller-heading,.about__container h3{margin-top:0;margin-bottom:calc(.5 * var(--gap));font-size:1.625rem;font-weight:700;line-height:1.4}.about__container h3.is-smaller-heading,.about__container h4{margin-top:0;font-size:1.125rem;font-weight:600;line-height:1.6}.about__container h1,.about__container h2,.about__container h3,.about__container h4{text-wrap:pretty;color:inherit}.about__container :is(h1,h2,h3,h4,.about__header-text):lang(en){text-wrap:balance}.about__container p{text-wrap:pretty}.about__container p{font-size:inherit;line-height:inherit}.about__container p.is-subheading{margin-top:0;margin-bottom:1rem;font-size:1.5rem;font-weight:300;line-height:160%}.about__section a{color:var(--accent-1);text-decoration:underline}.about__section a:active,.about__section a:focus,.about__section a:hover{color:var(--accent-1);text-decoration:none}.wp-credits-list a{text-decoration:none}.wp-credits-list a:active,.wp-credits-list a:focus,.wp-credits-list a:hover{text-decoration:underline}.about__section a.button.button-hero{padding-top:1.1875rem;padding-bottom:1.1875rem;font-size:1.5rem;line-height:1.4;white-space:normal;text-wrap:pretty}.about__container ul{list-style:disc;margin-left:calc(var(--gap)/ 2)}.about__container li{margin-bottom:.5rem}.about__container img{margin:0;max-width:100%;vertical-align:middle}.about__container .about__image{margin:0}.about__container .about__image img{max-width:100%;width:100%;height:auto;border-radius:var(--border-radius)}.about__container .about__image figcaption{margin-top:.5em;text-align:center}.about__container .about__image .wp-video{margin-left:auto;margin-right:auto}.about__container .about__image svg{vertical-align:middle}.about__container .about__image+h3{margin-top:calc(.75 * var(--gap))}.about__container hr{margin:calc(var(--gap)/ 2) var(--gap);height:0;border:none;border-top:4px solid var(--accent-3)}.about__container hr.is-small{margin-top:0;margin-bottom:0}.about__container hr.is-large{margin:var(--gap) auto}.about__container hr.is-invisible{border:none}.about__container .notice,.about__container div.error,.about__container div.updated{display:none!important}.about__container code{font-size:inherit}.about__section{font-size:1.125rem;line-height:1.55}.about__section.is-feature{font-size:1.6em}.about__section.has-3-columns,.about__section.has-4-columns{font-size:1rem}@media screen and (max-width:480px){.about__section.is-feature{font-size:1.4em}.about__container h1,.about__container h2,.about__container h3.is-larger-heading{font-size:2em}}.about__header{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:calc(var(--gap) * 1.5);padding-right:26rem;min-height:clamp(10rem,25vw,18.75rem);border-radius:var(--border-radius);background-image:url("../images/about-header-default.webp?ver=20260514");background-repeat:no-repeat;background-position:right center;background-size:cover;background-color:var(--background);color:var(--text-light)}.credits-php .about__header{background-image:url("../images/about-header-credits.webp?ver=20260514")}.freedoms-php .about__header{background-image:url("../images/about-header-freedoms.webp?ver=20260514")}.privacy-php .about__header{background-image:url("../images/about-header-privacy.webp?ver=20260514")}.contribute-php .about__header{background-image:url("../images/about-header-get-involved.webp?ver=20260514")}[dir=rtl] .about__header{background-image:url("../images/about-header-default-rtl.webp?ver=20260514")}[dir=rtl] .credits-php .about__header{background-image:url("../images/about-header-credits-rtl.webp?ver=20260514")}[dir=rtl] .freedoms-php .about__header{background-image:url("../images/about-header-freedoms-rtl.webp?ver=20260514")}[dir=rtl] .privacy-php .about__header{background-image:url("../images/about-header-privacy-rtl.webp?ver=20260514")}[dir=rtl] .contribute-php .about__header{background-image:url("../images/about-header-get-involved-rtl.webp?ver=20260514")}.about__header-image{margin:0 0 calc(var(--gap) * 1.5)}.about__header-title{box-sizing:border-box;margin:0;padding:0}.about__header-title h1{margin:0;padding:0;font-size:clamp(2rem, 20vw - 9rem, 4rem);line-height:1;font-weight:600;color:var(--text)}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-text{box-sizing:border-box;max-width:26em;margin:1rem 0 0;padding:0;font-size:1.6rem;line-height:1.15;color:var(--text)}.about__header-navigation{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;padding-top:0;margin-bottom:var(--gap);background:var(--nav-background);color:var(--nav-color);border-bottom:3px solid var(--nav-border)}.about__header-navigation::after{display:none}.about__header-navigation .nav-tab{margin-left:0;padding:calc(var(--gap) * .75) var(--gap);float:none;font-size:1.4em;line-height:1;border-width:0 0 3px;border-style:solid;border-color:transparent;background:0 0;color:inherit}.about__header-navigation .nav-tab:active,.about__header-navigation .nav-tab:hover{background-color:var(--nav-current);color:var(--text-light);border-radius:var(--border-radius)}.about__header-navigation .nav-tab-active{margin-bottom:-3px;color:var(--nav-current);border-width:0 0 6px;border-color:var(--nav-current)}.about__header-navigation .nav-tab-active:active,.about__header-navigation .nav-tab-active:hover{background-color:var(--nav-current);color:var(--text-light);border-color:var(--nav-current);border-radius:var(--border-radius)}@media screen and (max-width:960px){.about__header{padding-right:21rem}.about-php .about__header-title h1,.contribute-php .about__header-title h1,.credits-php .about__header-title h1,.freedoms-php .about__header-title h1,.privacy-php .about__header-title h1{font-size:clamp(2rem, 20vw - 9rem, 4rem)}.about__header-navigation .nav-tab{padding:calc(var(--gap) * .75) calc(var(--gap) * .5)}}@media screen and (max-width:782px){.about__container .about__header-text{font-size:1.4em}.about__header-container{display:block}.about__header{padding:var(--gap);padding-right:17rem}.about__header-text{margin-top:.5rem}.about__header-navigation .nav-tab{margin-top:0;margin-right:0;font-size:1.2em}}@media screen and (max-width:600px){.about__header{min-height:auto;padding-right:var(--gap)}.about__header-navigation{display:block}.about__header-navigation .nav-tab{display:block;margin-bottom:0;padding:calc(var(--gap)/ 2);border-left-width:6px;border-bottom:none}.about__header-navigation .nav-tab-active{border-bottom:none;border-left-width:6px}}.about__section .wp-people-group-title{margin-bottom:calc(var(--gap) * 2 - 10px);text-align:center}.about__section .wp-people-group{margin:0;display:flex;flex-wrap:wrap}.about__section .wp-person{display:inline-block;vertical-align:top;box-sizing:border-box;margin-bottom:calc(var(--gap) - 10px);width:25%;text-align:center}.about__section .compact .wp-person{height:auto;width:20%}.about__section .wp-person-avatar{display:block;margin:0 auto calc(var(--gap)/ 2);width:140px;height:140px;border-radius:100%;overflow:hidden}.about__section .wp-person .gravatar{width:140px;height:140px;filter:grayscale(100%)}.about__section .compact .wp-person .gravatar,.about__section .compact .wp-person-avatar{width:80px;height:80px}.about__section .wp-person .web{display:block;font-size:1.4em;font-weight:600;padding:10px 10px 0;text-decoration:none}.about__section .wp-person .web:hover{text-decoration:underline}.about__section .compact .wp-person .web{font-size:1.2em}.about__section .wp-person .title{display:block;margin-top:.5em}@media screen and (max-width:782px){.about__section .wp-person{width:33%}.about__section .compact .wp-person{width:25%}.about__section .wp-person .gravatar,.about__section .wp-person-avatar{width:120px;height:120px}}@media screen and (max-width:600px){.about__section .wp-person{width:50%}.about__section .compact .wp-person{width:33%}.about__section .wp-person .web{font-size:1.2em}}@media screen and (max-width:480px){.about__section .wp-person{min-width:100%}.about__section .wp-person .web{font-size:1em}.about__section .compact .wp-person .web{font-size:1em}}.about__section .column .freedom-image{margin-bottom:var(--gap);max-height:180px}.about__section .column .privacy-image{display:block;margin-left:auto;margin-right:auto;max-width:25rem}.about-wrap{position:relative;margin:25px 40px 0 20px;max-width:1050px;font-size:15px}.about-wrap.full-width-layout{max-width:1200px}.about-wrap-content{max-width:1050px}.about-wrap .notice,.about-wrap div.error,.about-wrap div.updated{display:none!important}.about-wrap hr{border:0;height:0;margin:3em 0 0;border-top:1px solid rgba(0,0,0,.1)}.about-wrap img{margin:0;width:100%;height:auto;vertical-align:middle}.about-wrap .inline-svg img{max-width:100%;width:auto;height:auto}.about-wrap video{margin:1.5em auto}.wp-badge{background:#0073aa url(../images/w-logo-white.png?ver=20160308) no-repeat;background-position:center 25px;background-size:80px 80px;color:#fff;font-size:14px;text-align:center;font-weight:600;margin:5px 0 0;padding-top:120px;height:40px;display:inline-block;width:140px;text-rendering:optimizeLegibility;box-shadow:0 1px 3px rgba(0,0,0,.2)}.svg .wp-badge{background-image:url(../images/wordpress-logo-white.svg?ver=20160308)}.about-wrap .wp-badge{position:absolute;top:0;right:0}.about-wrap .nav-tab{padding-right:15px;padding-left:15px;font-size:18px;line-height:1.33333333}.about-wrap h1{margin:.2em 200px 0 0;padding:0;color:#32373c;line-height:1.2;font-size:2.8em;font-weight:400}.about-wrap h2{margin:40px 0 .6em;font-size:2.7em;line-height:1.3;font-weight:300;text-align:center}.about-wrap h3{margin:1.25em 0 .6em;font-size:1.4em;line-height:1.5}.about-wrap h4{font-size:16px;color:#23282d}.about-wrap p{line-height:1.5;font-size:16px}.about-wrap code,.about-wrap ol li p{font-size:14px;font-weight:400}.about-wrap figcaption{font-size:13px;text-align:center;color:#fff;text-overflow:ellipsis}.about-wrap .about-description,.about-wrap .about-text{margin-top:1.4em;font-weight:400;line-height:1.6;font-size:19px}.about-wrap .about-text{margin:1em 200px 1em 0;color:#555d66}.about-wrap .has-1-columns,.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:grid;max-width:800px;margin-top:40px;margin-left:auto;margin-right:auto}.about-wrap .column{margin-right:20px;margin-left:20px}.about-wrap .is-wide{max-width:760px}.about-wrap .is-fullwidth{max-width:100%}.about-wrap .has-1-columns{display:block;max-width:680px;margin:0 auto 40px}.about-wrap .has-2-columns{grid-template-columns:1fr 1fr}.about-wrap .has-2-columns .column:nth-of-type(odd){grid-column-start:1}.about-wrap .has-2-columns .column:nth-of-type(2n){grid-column-start:2}.about-wrap .has-2-columns.is-wider-right{grid-template-columns:1fr 2fr}.about-wrap .has-2-columns.is-wider-left{grid-template-columns:2fr 1fr}.about-wrap .has-3-columns{grid-template-columns:repeat(3,1fr)}.about-wrap .has-3-columns .column:nth-of-type(3n+1){grid-column-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2){grid-column-start:2}.about-wrap .has-3-columns .column:nth-of-type(3n){grid-column-start:3}.about-wrap .has-4-columns{grid-template-columns:repeat(4,1fr)}.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1}.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:3}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:4}.about-wrap .column :first-child{margin-top:0}.about-wrap .aligncenter{text-align:center}.about-wrap .alignleft{float:left;margin-right:40px}.about-wrap .alignright{float:right;margin-left:40px}.about-wrap .is-vertically-aligned-top{align-self:flex-start}.about-wrap .is-vertically-aligned-center{align-self:center}.about-wrap .is-vertically-aligned-bottom{align-self:end}.about-wrap .point-releases{margin-top:5px;border-bottom:1px solid #ddd}.about-wrap .changelog{margin-bottom:40px}.about-wrap .changelog.point-releases h3{padding-top:35px}.about-wrap .changelog.point-releases h3:first-child{padding-top:7px}.about-wrap .changelog.feature-section .col{margin-top:40px}.about-wrap .lead-description{font-size:1.5em;text-align:center}.about-wrap .feature-section p{margin-top:.6em}.about-wrap .headline-feature{margin:0 auto 40px;max-width:680px}.about-wrap .headline-feature h2{margin:50px 0 0}.about-wrap .headline-feature img{max-width:600px;width:100%}.about-wrap .return-to-dashboard{margin:30px 0 0 -5px;font-size:14px;font-weight:600}.about-wrap .return-to-dashboard a{text-decoration:none;padding:0 5px}.about-wrap h2.wp-people-group{margin:2.6em 0 1.33em;padding:0;font-size:16px;line-height:inherit;font-weight:600;text-align:left}.about-wrap .wp-people-group{padding:0 5px;margin:0 -15px 0 -5px}.about-wrap .compact{margin-bottom:0}.about-wrap .wp-person{display:inline-block;vertical-align:top;margin-right:10px;padding-bottom:15px;height:70px;width:280px}.about-wrap .compact .wp-person{height:auto;width:180px;padding-bottom:0;margin-bottom:0}.about-wrap .wp-person .gravatar{float:left;margin:0 10px 10px 0;padding:1px;width:60px;height:60px}.about-wrap .compact .wp-person .gravatar{width:30px;height:30px}.about-wrap .wp-person .web{margin:6px 0 2px;font-size:16px;font-weight:400;line-height:2;text-decoration:none}.about-wrap .wp-person .title{display:block}.about-wrap #wp-people-group-validators+p.wp-credits-list{margin-top:0}.about-wrap p.wp-credits-list a{white-space:nowrap}.freedoms-php .about-wrap ol{margin:40px 60px}.freedoms-php .about-wrap ol li{list-style-type:decimal;font-weight:600}.freedoms-php .about-wrap ol p{font-weight:400;margin:.6em 0}@media screen and (max-width:782px){.about-wrap .has-3-columns,.about-wrap .has-4-columns{grid-template-columns:1fr 1fr}.about-wrap .has-3-columns .column:nth-of-type(3n+1),.about-wrap .has-4-columns .column:nth-of-type(4n+1){grid-column-start:1;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n+2),.about-wrap .has-4-columns .column:nth-of-type(4n+2){grid-column-start:2;grid-row-start:1}.about-wrap .has-3-columns .column:nth-of-type(3n),.about-wrap .has-4-columns .column:nth-of-type(4n+3){grid-column-start:1;grid-row-start:2}.about-wrap .has-4-columns .column:nth-of-type(4n){grid-column-start:2;grid-row-start:2}}@media screen and (max-width:600px){.about-wrap .has-2-columns,.about-wrap .has-3-columns,.about-wrap .has-4-columns{display:block}.about-wrap :not(.is-wider-right):not(.is-wider-left) .column{margin-right:0;margin-left:0}.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:grid}}@media only screen and (max-width:500px){.about-wrap{margin-right:20px;margin-left:10px}.about-wrap .about-text,.about-wrap h1{margin-right:0}.about-wrap .about-text{margin-bottom:.25em}.about-wrap .wp-badge{position:relative;margin-bottom:1.5em;width:100%}}@media only screen and (max-width:480px){.about-wrap .has-2-columns.is-wider-left,.about-wrap .has-2-columns.is-wider-right{display:block}.about-wrap .column{margin-right:0;margin-left:0}.about-wrap .has-2-columns.is-wider-left img,.about-wrap .has-2-columns.is-wider-right img{max-width:160px}}css/list-tables.min.css000064400000110127152213653150011060 0ustar00/*! This file is auto-generated */ .response-links{display:block;margin-bottom:1em}.response-links a{display:block}.response-links a.comments-edit-item-link{font-weight:600}.response-links a.comments-view-item-link{font-size:12px}.post-com-count-wrapper strong{font-weight:400}.comments-view-item-link{display:inline-block;clear:both}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:nowrap;word-wrap:normal}.column-comments .post-com-count,.column-response .post-com-count{display:inline-block;vertical-align:top}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:5px}.column-comments .comment-count-approved,.column-comments .comment-count-no-comments,.column-response .comment-count-approved,.column-response .comment-count-no-comments{box-sizing:border-box;display:block;padding:0 8px;min-width:24px;height:2em;border-radius:5px;background-color:#646970;color:#fff;font-size:11px;line-height:1.90909090;text-align:center}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:"";display:block;margin-left:8px;width:0;height:0;border-top:5px solid #646970;border-right:5px solid transparent}.column-comments a.post-com-count-approved:focus .comment-count-approved,.column-comments a.post-com-count-approved:hover .comment-count-approved,.column-response a.post-com-count-approved:focus .comment-count-approved,.column-response a.post-com-count-approved:hover .comment-count-approved{background:#3858e9}.column-comments a.post-com-count-approved:focus:after,.column-comments a.post-com-count-approved:hover:after,.column-response a.post-com-count-approved:focus:after,.column-response a.post-com-count-approved:hover:after{border-top-color:#3858e9}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:relative;left:-3px;padding:0 5px;min-width:7px;height:17px;border:2px solid #fff;border-radius:11px;background:#d63638;color:#fff;font-size:9px;line-height:1.88888888;text-align:center}.column-comments .post-com-count-no-pending,.column-response .post-com-count-no-pending{display:none}.commentlist li{padding:1em 1em .2em;margin:0;border-bottom:1px solid #c3c4c7}.commentlist li li{border-bottom:0;padding:0}.commentlist p{padding:0;margin:0 0 .8em}#submitted-on,.submitted-on{color:#50575e}#replyrow td{padding:2px}#replysubmit{margin:0;padding:5px 7px 10px;overflow:hidden}#replysubmit .reply-submit-buttons{margin-bottom:0}#replysubmit .button{margin-right:5px}#replysubmit .spinner{float:none;margin:-4px 0 0}#replyrow.inline-edit-row fieldset.comment-reply{font-size:inherit;line-height:inherit}#replyrow legend{margin:0;padding:.2em 5px 0;font-size:13px;line-height:1.4;font-weight:600}#replyrow.inline-edit-row label{display:inline;vertical-align:baseline;line-height:inherit}#commentsdiv #edithead .inside,#edithead .inside{float:left;padding:3px 0 2px 5px;margin:0;text-align:center}#edithead .inside input{width:180px}#edithead label{padding:2px 0}#replycontainer{padding:5px}#replycontent{height:120px;box-shadow:none}#replyerror{border-color:#dcdcde;background-color:#f6f7f7}.commentlist .avatar{vertical-align:text-top}#the-comment-list div.undo,#the-comment-list tr.undo{background-color:#f6f7f7}#the-comment-list .unapproved td,#the-comment-list .unapproved th{background-color:#fcf9e8}#the-comment-list .unapproved th.check-column{border-left:4px solid #d63638}#the-comment-list .unapproved th.check-column input{margin-left:4px}#the-comment-list .approve a{color:#007017}#the-comment-list .unapprove a{color:#996800}#the-comment-list td,#the-comment-list th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}#the-comment-list tr:last-child td,#the-comment-list tr:last-child th{box-shadow:none}#the-comment-list tr.unapproved+tr.approved td,#the-comment-list tr.unapproved+tr.approved th{border-top:1px solid rgba(0,0,0,.03)}.vim-current,.vim-current td,.vim-current th{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)!important}th .comment-grey-bubble{width:16px;position:relative;top:2px}th .comment-grey-bubble:before{content:"\f101";content:"\f101"/'';font:normal 20px/.5 dashicons;display:inline-block;padding:0;top:4px;left:-4px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}table.fixed{table-layout:fixed}.fixed .column-rating,.fixed .column-visible{width:8%}.fixed .column-author,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%}.fixed .column-date{width:14%}.column-date span[title]{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.fixed .column-posts{width:74px}.fixed .column-posts,.fixed .column-role{hyphens:auto}.fixed .column-comment .comment-author{display:none}.fixed .column-categories,.fixed .column-rel,.fixed .column-response,.fixed .column-role,.fixed .column-tags{width:15%}.fixed .column-slug{width:25%}.fixed .column-locations{width:35%}.fixed .column-comments{width:5.5em;text-align:left}.fixed .column-comments .vers{padding-left:3px}td.column-title strong,td.plugin-title strong{display:block;margin-bottom:.2em;font-size:14px}td.column-title p,td.plugin-title p{margin:6px 0}table.media .column-title .media-icon{float:left;min-height:60px;margin:0 9px 0 0}table.media .column-title .media-icon img{max-width:60px;height:auto;vertical-align:top}table.media .column-title .has-media-icon~.row-actions{margin-left:70px}table.media .column-title .filename{margin-bottom:.2em}.media .row-actions .copy-to-clipboard-container{display:inline;position:relative}.media .row-actions .copy-to-clipboard-container .success{position:absolute;left:50%;transform:translate(-50%,-100%);background:#000;color:#fff;border-radius:5px;margin:0;padding:2px 5px}.wp-list-table a{transition:none}#the-list tr:last-child td,#the-list tr:last-child th{border-bottom:none!important;box-shadow:none}#comments-form .fixed .column-author{width:20%}#commentsdiv.postbox .inside{margin:0;padding:0}#commentsdiv .inside .row-actions{line-height:1.38461538}#commentsdiv .inside .column-author{width:25%}#commentsdiv .column-comment p{margin:.6em 0;padding:0}#commentsdiv #replyrow td{padding:0}#commentsdiv p{padding:8px 10px;margin:0}#commentsdiv .comments-box{border:0 none}#commentsdiv .comments-box thead td,#commentsdiv .comments-box thead th{background:0 0;padding:0 7px 4px}#commentsdiv .comments-box tr:last-child td{border-bottom:0 none}#commentsdiv #edithead .inside input{width:160px}.sorting-indicators{display:grid}.sorting-indicator{display:block;width:10px;height:4px;margin-top:4px;margin-left:7px}.sorting-indicator:before{font:normal 20px/1 dashicons;display:inline-block;padding:0;top:-4px;left:-8px;line-height:.5;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#a7aaad}.sorting-indicator.asc:before{content:"\f142";content:"\f142"/''}.sorting-indicator.desc:before{content:"\f140";content:"\f140"/''}th.sorted.desc .sorting-indicator.desc:before{color:#1d2327}th.sorted.asc .sorting-indicator.asc:before{color:#1d2327}th.sorted.asc a:focus .sorting-indicator.asc:before,th.sorted.asc:hover .sorting-indicator.asc:before,th.sorted.desc a:focus .sorting-indicator.desc:before,th.sorted.desc:hover .sorting-indicator.desc:before{color:#a7aaad}th.sorted.asc a:focus .sorting-indicator.desc:before,th.sorted.asc:hover .sorting-indicator.desc:before,th.sorted.desc a:focus .sorting-indicator.asc:before,th.sorted.desc:hover .sorting-indicator.asc:before{color:#1d2327}.wp-list-table .toggle-row{position:absolute;right:8px;top:10px;display:none;padding:0;width:40px;height:40px;border:none;outline:0;background:0 0}.wp-list-table .toggle-row:hover{cursor:pointer}.wp-list-table .toggle-row:focus:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.wp-list-table .toggle-row:active{box-shadow:none}.wp-list-table .toggle-row:before{position:absolute;top:-5px;left:10px;border-radius:50%;display:block;padding:1px 2px 1px 0;color:#3c434a;content:"\f140";content:"\f140"/'';font:normal 20px/1 dashicons;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-list-table .is-expanded .toggle-row:before{content:"\f142";content:"\f142"/''}.check-column{position:relative}.check-column label{box-sizing:border-box;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.check-column input{position:relative;z-index:1}.check-column .label-covers-full-cell:hover+input:not(:disabled){box-shadow:0 0 0 1px #2271b1}.check-column input:hover+label,.check-column label:hover{background:rgba(0,0,0,.05)}.locked-indicator{display:none;margin-left:6px;height:20px;width:16px}.locked-indicator-icon:before{color:#8c8f94;content:"\f160";content:"\f160"/'';display:inline-block;font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.locked-info{display:none;margin-top:4px}.locked-text{vertical-align:top}.wp-locked .locked-indicator,.wp-locked .locked-info{display:block}tr.wp-locked .check-column input[type=checkbox],tr.wp-locked .check-column label,tr.wp-locked .row-actions .inline,tr.wp-locked .row-actions .trash{display:none}#menu-locations-wrap .widefat{width:60%}.widefat th.sortable,.widefat th.sorted{padding:0}th.sortable a,th.sorted a{display:block;overflow:hidden;padding:8px}th.sortable a:focus,th.sorted a:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}th.sortable a span,th.sorted a span{float:left;cursor:pointer}.tablenav-pages .current-page{vertical-align:top;margin:0 2px 0 0;font-size:13px;text-align:center;min-height:32px;padding:0 8px}.tablenav .total-pages{margin-right:2px}.tablenav #table-paging{margin-left:2px}.tablenav{clear:both;height:32px;margin:6px 0 4px;vertical-align:middle}.tablenav.themes{max-width:98%}.tablenav .tablenav-pages{float:right;margin:0 0 9px}.tablenav .no-pages,.tablenav .one-page .pagination-links{display:none}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:32px;min-height:32px;margin:0;padding:0 4px;font-size:16px;line-height:1.875;text-align:center}.tablenav .displaying-num{margin-right:7px}.tablenav .one-page .displaying-num{display:inline-block;margin:5px 0}.tablenav .actions{padding:0 8px 0 0}.wp-filter .actions{display:inline-block;vertical-align:middle}.tablenav .delete{margin-right:20px}.tablenav .view-switch{float:right;margin:0 5px;padding-top:3px}.wp-filter .view-switch{display:inline-block;vertical-align:middle;padding:12px 0;margin:0 8px 0 2px}.media-toolbar.wp-filter .view-switch{margin:0 12px 0 2px}.view-switch a{float:left;width:28px;height:28px;text-align:center;line-height:1.84615384;text-decoration:none}.view-switch a:before{color:#c3c4c7;display:inline-block;font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.view-switch a:focus:before,.view-switch a:hover:before{color:#787c82}.view-switch a.current:before{color:#2271b1}.view-switch .view-list:before{content:"\f163";content:"\f163"/''}.view-switch .view-excerpt:before{content:"\f164";content:"\f164"/''}.view-switch .view-grid:before{content:"\f509";content:"\f509"/''}.filter{float:left;margin:-5px 0 0 10px}.filter .subsubsub{margin-left:-10px;margin-top:13px}.screen-per-page{width:4em}#posts-filter .wp-filter{margin-bottom:0}#posts-filter fieldset{float:left;margin:0 1.5ex 1em 0;padding:0}#posts-filter fieldset legend{padding:0 0 .2em 1px}p.pagenav{margin:0;display:inline}.pagenav span{font-weight:600;margin:0 6px}.row-title{font-size:14px!important;font-weight:600}.column-comment .comment-author{margin-bottom:.6em}.column-author img,.column-comment .comment-author img,.column-username img{float:left;margin-right:10px;margin-top:1px}.row-actions{color:#646970;font-size:13px;padding:2px 0 0;position:relative;left:-9999em}.rtl .row-actions a{display:inline-block}.row-actions .network_active,.row-actions .network_only{color:#000}.comment-item:hover .row-actions,.mobile .row-actions,.no-js .row-actions,.row-actions.visible,tr:hover .row-actions{position:static}.row-actions-visible{padding:2px 0 0}#wpbody-content .inline-edit-row fieldset{float:left;margin:0;padding:0 12px 0 0;width:100%;box-sizing:border-box}#wpbody-content .inline-edit-row td fieldset:last-of-type{padding-right:0}tr.inline-edit-row td{padding:0;position:relative}.inline-edit-wrapper{display:flow-root;padding:0 12px;border:1px solid transparent;border-radius:4px}.inline-edit-wrapper:focus{border-color:var(--wp-admin-theme-color,#3858e9);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#wpbody-content .quick-edit-row-post .inline-edit-col-left{width:40%}#wpbody-content .quick-edit-row-post .inline-edit-col-right{width:39%}#wpbody-content .inline-edit-row-post .inline-edit-col-center{width:20%}#wpbody-content .quick-edit-row-page .inline-edit-col-left{width:50%}#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .quick-edit-row-page .inline-edit-col-right{width:50%}#wpbody-content .bulk-edit-row .inline-edit-col-left{width:30%}#wpbody-content .bulk-edit-row-page .inline-edit-col-right{width:69%}#wpbody-content .bulk-edit-row .inline-edit-col-bottom{float:right;width:69%}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:27px}.inline-edit-row fieldset .inline-edit-group{clear:both;line-height:2.5}.inline-edit-row .submit{display:flex;flex-wrap:wrap;align-items:center;clear:both;margin:0;padding:.5em 0 1em}.inline-edit-save.submit .button{margin-right:8px}.inline-edit-save .spinner{float:none;margin:0}.inline-edit-row .notice-error{box-sizing:border-box;min-width:100%;margin-top:1em}.inline-edit-row .notice-error .error{margin:.5em 0;padding:2px}#the-list .inline-edit-row .inline-edit-legend{margin:0;padding:.2em 0;line-height:2.5;font-weight:600}.inline-edit-row fieldset span.checkbox-title,.inline-edit-row fieldset span.title{margin:0;padding:0}.inline-edit-row fieldset label,.inline-edit-row fieldset span.inline-edit-categories-label{display:block;margin:.2em 0;line-height:2.5}.inline-edit-row fieldset.inline-edit-date label{display:inline-block;margin:0;vertical-align:baseline;line-height:2}.inline-edit-row fieldset label.inline-edit-tags{margin-top:0}.inline-edit-row fieldset label.inline-edit-tags span.title{margin:.2em 0;width:auto}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{display:block;float:left;width:6em;line-height:2.5}#posts-filter fieldset.inline-edit-date legend{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{display:block;margin-left:6em}.quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto;padding-right:.5em}.inline-edit-row .inline-edit-or{margin:.2em 6px .2em 0;line-height:2.5}.inline-edit-row .input-text-wrap input[type=text]{width:100%}.inline-edit-row fieldset label input[type=checkbox]{vertical-align:middle}.inline-edit-row fieldset label textarea{width:100%;height:4em;vertical-align:top}.inline-edit-row input:where(:not([type=checkbox],[type=radio],[type=submit],[type=button])),.inline-edit-row select{min-height:32px;padding:0 8px 0 8px}.inline-edit-row select{line-height:2.14285714;padding-right:24px}#wpbody-content .bulk-edit-row fieldset .inline-edit-group label{max-width:50%}#wpbody-content .quick-edit-row fieldset .inline-edit-group label.alignleft:first-child{margin-right:.5em}.inline-edit-col-right .input-text-wrap input.inline-edit-menu-order-input{width:6em}.inline-edit-row .inline-edit-legend{text-transform:uppercase}.inline-edit-row fieldset .inline-edit-date{float:left}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{vertical-align:middle;text-align:center;padding:0 4px}.inline-edit-row fieldset label input.inline-edit-password-input{width:8em}#bulk-titles-list,#bulk-titles-list li,.inline-edit-row fieldset ul.cat-checklist input,.inline-edit-row fieldset ul.cat-checklist li{margin:0;position:relative}.inline-edit-row fieldset ul.cat-checklist input{margin-top:-1px;margin-left:3px}.inline-edit-row fieldset label input.inline-edit-menu-order-input{width:3em}.inline-edit-row fieldset label input.inline-edit-slug-input{width:75%}.inline-edit-row select[name=page_template],.inline-edit-row select[name=post_parent]{max-width:80%}.quick-edit-row-post fieldset label.inline-edit-status{float:left}#bulk-titles,ul.cat-checklist{height:14em;border:1px solid #ddd;margin:0 0 5px;padding:.2em 5px;overflow-y:scroll}ul.cat-checklist input[name="post_category[]"]:indeterminate::before{content:'';border-top:2px solid grey;width:65%;height:2px;position:absolute;top:calc(50% + 1px);left:50%;transform:translate(-50%,-50%)}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{display:inline-block;margin:0;padding:3px 0;line-height:20px;vertical-align:top}#bulk-titles .ntdelitem{padding-left:23px}#bulk-titles .ntdelbutton{width:26px;height:26px;margin:0 0 0 -26px;text-align:center;border-radius:3px}#bulk-titles .ntdelbutton:before{display:inline-block;vertical-align:top}#bulk-titles .ntdelbutton:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent;outline-offset:0}.plugins tbody,.plugins tbody th.check-column{padding:8px 0 0 2px}.plugins tbody th.check-column input[type=checkbox]{margin-top:4px}.updates-table .plugin-title p{margin-top:0}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:6px}.plugins,.plugins td,.plugins th{color:#000}.plugins tr{background:#fff}.plugins p{margin:0 4px;padding:0}.plugins .desc p{margin:0 0 8px}.plugins td.desc{line-height:1.5}.plugins .desc ol,.plugins .desc ul{margin:0 0 0 2em}.plugins .desc ul{list-style-type:disc}.plugins .row-actions{font-size:13px;padding:0}.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th{padding:10px 9px}.plugins .active td,.plugins .active th{background-color:rgba(var(--wp-admin-theme-color--rgb),.08)}.plugins .update td,.plugins .update th{border-bottom:0}.plugin-install #the-list td,.plugins .active td,.plugins .active th,.plugins .inactive td,.plugins .inactive th,.upgrade .plugins td,.upgrade .plugins th{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th,.plugins tr.active.plugin-update-tr+tr.inactive td,.plugins tr.active.plugin-update-tr+tr.inactive th{border-top:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #dcdcde}.plugins .update td,.plugins .update th,.plugins .updated td,.plugins .updated th,.plugins tr.active+tr.inactive.update td,.plugins tr.active+tr.inactive.update th,.plugins tr.active+tr.inactive.updated td,.plugins tr.active+tr.inactive.updated th,.upgrade .plugins tr:last-of-type td,.upgrade .plugins tr:last-of-type th{box-shadow:none}.plugin-update-tr.active td,.plugins .active th.check-column{border-left:4px solid var(--wp-admin-theme-color)}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-right:12px;white-space:nowrap}.plugins .plugin-title .dashicons,.plugins .plugin-title img.plugin-icon,.plugins .plugin-title img.updates-table-screenshot{float:left;padding:0 10px 0 0;width:64px;height:64px}.plugins .plugin-title .dashicons:before{padding:2px;background-color:#f0f0f1;box-shadow:inset 0 0 10px rgba(167,170,173,.15);font-size:60px;color:#c3c4c7}#update-themes-table .plugin-title .dashicons,#update-themes-table .plugin-title img.updates-table-screenshot{width:85px}.plugins .column-auto-updates{width:14.2em}.plugins .inactive .plugin-title strong{font-weight:400}.plugins .row-actions,.plugins .second{padding:0 0 5px}.plugins .row-actions{white-space:normal;min-width:12em}.plugins .update .row-actions,.plugins .update .second,.plugins .updated .row-actions,.plugins .updated .second{padding-bottom:0}.plugins-php .widefat tfoot td,.plugins-php .widefat tfoot th{border-top-style:solid;border-top-width:1px}.plugins .plugin-update-tr .plugin-update{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);overflow:hidden;padding:0}.plugins .plugin-update-tr .notice,.plugins .plugin-update-tr div[class=update-message]{margin:5px 20px 15px 40px}.plugins .notice p{margin:.5em 0}.plugins .plugin-description a,.plugins .plugin-update a,.updates-table .plugin-title a{text-decoration:underline}.plugins tr.paused th.check-column{border-left:4px solid #b32d2e}.plugins tr.paused td,.plugins tr.paused th{background-color:#f6f7f7}.plugins .paused .dashicons-warning,.plugins tr.paused .plugin-title{color:#b32d2e}.plugins .paused .error-display code,.plugins .paused .error-display p{font-size:90%;color:rgba(0,0,0,.7)}.plugins .resume-link{color:#b32d2e}.plugin-card .update-now:before{color:#d63638;content:"\f463";content:"\f463"/'';display:inline-block;font:normal 16px/1.875 dashicons;margin:0 5px 0 -2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.plugin-card .updating-message:before{content:"\f463";content:"\f463"/'';animation:rotation 2s infinite linear}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.plugin-card .updated-message:before{color:#68de7c;content:"\f147";content:"\f147"/''}.plugin-card .updated-message:before,.plugin-card .updating-message:before{line-height:1;position:relative;top:-2px;vertical-align:middle}.plugin-install-php #the-list{display:flex;flex-wrap:wrap}.plugin-install-php .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.plugin-install-php h2{clear:both}.plugin-install-php h3{margin:2.5em 0 8px}.plugin-install-php .wp-filter{margin-bottom:0}.plugin-group{overflow:hidden;margin-top:1.5em}.plugin-group h3{margin-top:0}.plugin-card{float:left;margin:0 8px 16px;width:48.5%;width:calc(50% - 8px);background-color:#fff;border:1px solid rgb(0,0,0,.1);border-radius:8px;box-sizing:border-box;overflow:hidden}.plugin-card:nth-child(odd){clear:both;margin-left:0}.plugin-card:nth-child(2n){margin-right:0}@media screen and (min-width:1600px) and (max-width:2299px){.plugin-card{width:30%;width:calc(33.1% - 8px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(2n){margin-right:8px}.plugin-card:nth-child(3n+1){clear:both;margin-left:0}.plugin-card:nth-child(3n){margin-right:0}}@media screen and (min-width:2300px){.plugin-card{width:25%;width:calc(25% - 12px)}.plugin-card:nth-child(odd){clear:none;margin-left:8px}.plugin-card:nth-child(2n){margin-right:8px}.plugin-card:nth-child(4n+1){clear:both;margin-left:0}.plugin-card:nth-child(4n){margin-right:0}}.plugin-card-top{position:relative;padding:16px;min-height:135px}.plugin-action-buttons,div.action-links{margin:0}.plugin-action-buttons li .button{min-height:32px;line-height:2.30769231;padding:0 12px}.plugin-card h3{margin:0 12px 16px 0;font-size:18px;line-height:1.3}.plugin-card .desc{margin-inline:0}.plugin-card .desc>p,.plugin-card .name{margin-left:148px}@media (min-width:1101px){.plugin-card .desc>p,.plugin-card .name{margin-right:128px}}@media (min-width:481px) and (max-width:781px){.plugin-card .desc>p,.plugin-card .name{margin-right:128px}}.plugin-card .column-description{display:flex;flex-direction:column;justify-content:flex-start}.plugin-card .column-description>p{margin-top:0}.plugin-card .column-description p:empty{display:none}.plugin-card .notice.plugin-dependencies{margin:auto 20px 20px;padding:15px}.plugin-card .plugin-dependencies-explainer-text{margin-block:0}.plugin-card .plugin-dependency{align-items:center;display:flex;flex-wrap:wrap;margin-top:.5em;column-gap:1%;row-gap:.5em}.plugin-card .plugin-dependency:last-child,.plugin-card .plugin-dependency:nth-child(2){margin-top:1em}.plugin-card .plugin-dependency-name{flex-basis:74%}.plugin-card .plugin-dependency .more-details-link{margin-left:auto}.rtl .plugin-card .plugin-dependency .more-details-link{margin-right:auto}@media (max-width:939px){.plugin-card .plugin-dependency-name{flex-basis:69%}}.plugins #the-list .required-by,.plugins #the-list .requires{margin-top:1em}.plugin-card .action-links{position:absolute;top:20px;right:20px;width:120px}.plugin-action-buttons{clear:right;float:right;margin-bottom:1em;text-align:right}.plugin-action-buttons li{margin-bottom:10px}.plugin-card-bottom{clear:both;padding:16px;background-color:#f6f7f7;border-top:1px solid rgb(0,0,0,.1);overflow:hidden}.plugin-card-bottom .star-rating{display:inline}.plugin-card-update-failed .update-now{font-weight:600}.plugin-card-update-failed .notice-error{margin:0;padding-left:16px;box-shadow:0 -1px 0 #dcdcde}.plugin-card-update-failed .plugin-card-bottom{display:none}.plugin-card .column-rating{line-height:1.76923076}.plugin-card .column-rating,.plugin-card .column-updated{margin-bottom:4px}.plugin-card .column-downloaded,.plugin-card .column-rating{float:left;clear:left;max-width:180px}.plugin-card .column-compatibility,.plugin-card .column-updated{text-align:right;float:right;clear:right;width:65%;width:calc(100% - 180px)}.plugin-card .column-compatibility span:before{font:normal 20px/.5 dashicons;display:inline-block;padding:0;top:4px;left:-2px;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#3c434a}.plugin-card .column-compatibility .compatibility-incompatible:before{content:"\f158";content:"\f158"/'';color:#d63638}.plugin-card .column-compatibility .compatibility-compatible:before{content:"\f147";content:"\f147"/'';color:#007017}.plugin-card .notice{margin:20px 20px 0}.plugin-card .plugin-icon{position:absolute;top:20px;left:20px;width:128px;height:128px;margin:0 20px 20px 0}.no-plugin-results{color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0 0;width:100%;text-align:center}.wp-list-table .site-archived,.wp-list-table .site-deleted,.wp-list-table tr.site-archived,.wp-list-table tr.site-deleted{background:#fcf0f1}.wp-list-table .site-mature,.wp-list-table .site-spammed,.wp-list-table tr.site-mature,.wp-list-table tr.site-spammed{background:#fcf9e8}.sites.fixed .column-lastupdated,.sites.fixed .column-registered{width:20%}.sites.fixed .column-users{width:80px}@media screen and (max-width:1100px) and (min-width:782px),(max-width:480px){.plugin-card .action-links{position:static;margin-left:148px;width:auto}.plugin-action-buttons{float:none;margin:1em 0 0;text-align:left}.plugin-action-buttons li{display:inline-block;vertical-align:middle}.plugin-action-buttons li .button{margin-right:20px}.plugin-card h3{margin-right:24px}.plugin-card .desc,.plugin-card .name{margin-right:0}.plugin-card .desc p:first-of-type{margin-top:0}}@media screen and (max-width:782px){.tablenav{height:auto}.tablenav.top{margin:20px 0 5px}.tablenav.bottom{position:relative;margin-top:15px}.tablenav br{display:none}.tablenav br.clear{display:block}.tablenav .view-switch,.tablenav.top .actions{display:none}.view-switch a{width:36px;height:36px;line-height:2.53846153}.tablenav.top .displaying-num{display:none}.tablenav.bottom .displaying-num{position:absolute;right:0;top:11px;margin:0;font-size:14px}.tablenav .tablenav-pages{width:100%;text-align:center;margin:0 0 25px}.tablenav.bottom .tablenav-pages{margin-top:25px}.tablenav.top .tablenav-pages.one-page{display:none}.tablenav.bottom .actions select{margin-bottom:5px}.tablenav.bottom .actions.alignleft+.actions.alignleft{clear:left;margin-top:10px}.tablenav.bottom .tablenav-pages.one-page{margin-top:15px;height:0}.tablenav-pages .pagination-links{font-size:16px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{min-width:44px;padding:12px 8px;font-size:18px;line-height:1}.tablenav-pages .pagination-links .current-page{min-width:44px;padding:12px 6px;font-size:16px;line-height:1.125}.form-wrap>p{display:none}.wp-list-table th.column-primary~th,.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){display:none}.wp-list-table thead th.column-primary{width:100%}.wp-list-table tr th.check-column{display:table-cell}.wp-list-table .check-column{width:2.5em}.wp-list-table .column-primary .toggle-row{display:block}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){position:relative;clear:both;width:auto!important}.wp-list-table td.column-primary{padding-right:50px}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column){padding:3px 8px 3px 35%}.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before{position:absolute;left:10px;display:block;overflow:hidden;width:32%;content:attr(data-colname);white-space:nowrap;text-overflow:ellipsis}.wp-list-table .is-expanded td:not(.hidden){display:block!important;overflow:hidden}.column-posts,.widefat .num{text-align:left}#comments-form .fixed .column-author,#commentsdiv .fixed .column-author{display:none!important}.fixed .column-comment .comment-author{display:block}.fixed .column-author.hidden~.column-comment .comment-author{display:none}#the-comment-list .is-expanded td{box-shadow:none}#the-comment-list .is-expanded td:last-child{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.post-com-count .screen-reader-text{position:static;clip-path:none;width:auto;height:auto;margin:0}.column-comments .post-com-count-approved:after,.column-comments .post-com-count-no-comments:after,.column-response .post-com-count-approved:after,.column-response .post-com-count-no-comments:after{content:none}.column-comments .post-com-count [aria-hidden=true],.column-response .post-com-count [aria-hidden=true]{display:none}.column-comments .post-com-count-wrapper,.column-response .post-com-count-wrapper{white-space:normal}.column-comments .post-com-count-wrapper>a,.column-response .post-com-count-wrapper>a{display:block}.column-comments .post-com-count-approved,.column-comments .post-com-count-no-comments,.column-response .post-com-count-approved,.column-response .post-com-count-no-comments{margin-top:0;margin-right:.5em}.column-comments .post-com-count-pending,.column-response .post-com-count-pending{position:static;height:auto;min-width:0;padding:0;border:none;border-radius:0;background:0 0;color:#b32d2e;font-size:inherit;line-height:inherit;text-align:left}.column-comments .post-com-count-pending:hover,.column-response .post-com-count-pending:hover{color:#d63638}.widefat tfoot td.check-column,.widefat thead td.check-column{padding-top:10px}.row-actions{margin-right:-8px;padding-top:4px}body:not(.plugins-php) .row-actions{display:flex;flex-wrap:wrap;gap:8px;color:transparent}.row-actions span{font-size:0}.row-actions span .button-link,.row-actions span a{display:inline-block;padding:4px 16px 4px 0;font-size:13px;line-height:1.5}.row-actions span.approve:before,.row-actions span.unapprove:before{content:"| "}#wpbody-content .bulk-edit-row .inline-edit-col-bottom,#wpbody-content .bulk-edit-row .inline-edit-col-left,#wpbody-content .bulk-edit-row-page .inline-edit-col-right,#wpbody-content .bulk-edit-row-post .inline-edit-col-right,#wpbody-content .inline-edit-row-post .inline-edit-col-center,#wpbody-content .quick-edit-row-page .inline-edit-col-left,#wpbody-content .quick-edit-row-page .inline-edit-col-right,#wpbody-content .quick-edit-row-post .inline-edit-col-left,#wpbody-content .quick-edit-row-post .inline-edit-col-right{float:none;width:100%;padding:0}#the-list .inline-edit-row .inline-edit-legend,.inline-edit-row span.title{font-size:16px}.inline-edit-row p.howto{font-size:14px}#wpbody-content .inline-edit-row-page .inline-edit-col-right{margin-top:0}#wpbody-content .bulk-edit-row fieldset .inline-edit-col label,#wpbody-content .bulk-edit-row fieldset .inline-edit-group label,#wpbody-content .quick-edit-row fieldset .inline-edit-col label,#wpbody-content .quick-edit-row fieldset .inline-edit-group label{max-width:none;float:none;margin-bottom:5px}#wpbody .bulk-edit-row fieldset select{display:block;width:100%;max-width:none;box-sizing:border-box}.inline-edit-row fieldset input[name=aa],.inline-edit-row fieldset input[name=hh],.inline-edit-row fieldset input[name=jj],.inline-edit-row fieldset input[name=mn]{font-size:16px;line-height:2;padding:3px 4px}#bulk-titles .ntdelbutton,#bulk-titles .ntdeltitle,.inline-edit-row fieldset ul.cat-checklist label{padding:6px 0;font-size:16px;line-height:28px}#bulk-titles .ntdelitem{padding-left:37px}#bulk-titles .ntdelbutton{width:40px;height:40px;margin:0 0 0 -40px;overflow:hidden}#bulk-titles .ntdelbutton:before{font-size:20px;line-height:28px}.inline-edit-row fieldset label span.title,.inline-edit-row fieldset.inline-edit-date legend{float:none}.inline-edit-row fieldset .inline-edit-col label.inline-edit-tags{padding:0}.inline-edit-row fieldset .timestamp-wrap,.inline-edit-row fieldset label span.input-text-wrap{margin-left:0}.inline-edit-row .inline-edit-or{margin:0 6px 0 0}#commentsdiv #edithead .inside,#edithead .inside{float:none;text-align:left;padding:3px 5px}#commentsdiv #edithead .inside input,#edithead .inside input{width:100%}#edithead label{display:block}#wpbody-content .updates-table .plugin-title{width:auto;white-space:normal}.link-manager-php #posts-filter{margin-top:25px}.link-manager-php .tablenav.bottom{overflow:hidden}.comments-box .toggle-row,.wp-list-table.plugins .toggle-row{display:none}#wpbody-content .wp-list-table.plugins td{display:block;width:auto;padding:10px 9px}#wpbody-content .wp-list-table.plugins .no-items td,#wpbody-content .wp-list-table.plugins .plugin-deleted-tr td{display:table-cell}#wpbody-content .wp-list-table.plugins .desc.hidden{display:none}#wpbody-content .wp-list-table.plugins .column-description{padding-top:2px}#wpbody-content .wp-list-table.plugins .plugin-title,#wpbody-content .wp-list-table.plugins .theme-title{padding-right:12px;white-space:normal}.wp-list-table.plugins .plugin-title,.wp-list-table.plugins .theme-title{padding-top:13px;padding-bottom:4px}.plugins #the-list .update td,.plugins #the-list .update th,.plugins #the-list tr>td:not(:last-child),.wp-list-table.plugins #the-list .theme-title{box-shadow:none;border-top:none}.plugins #the-list tr td{border-top:none}.plugins tbody{padding:1px 0 0}.plugins .plugin-update-tr:before,.plugins tr.active+tr.inactive td.column-description,.plugins tr.active+tr.inactive th.check-column{box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugins tr.active+tr.inactive td,.plugins tr.active+tr.inactive th.check-column{border-top:none}.plugins .plugin-update-tr:before{content:"";display:table-cell}.plugins #the-list .plugin-update-tr .plugin-update{border-left:none}.plugin-update-tr .update-message{margin-left:0}.plugins .active.update+.plugin-update-tr:before,.plugins .active.updated+.plugin-update-tr:before{background-color:rgba(var(--wp-admin-theme-color--rgb),.08);border-left:4px solid var(--wp-admin-theme-color)}.plugins .plugin-update-tr .update-message{margin-left:0}.wp-list-table.plugins .plugin-title strong,.wp-list-table.plugins .theme-title strong{font-size:1.4em;line-height:1.5}.plugins tbody th.check-column{padding:8px 0 0 5px}.plugins .inactive th.check-column,.plugins tfoot td.check-column,.plugins thead td.check-column{padding-left:9px}table.plugin-install .column-description,table.plugin-install .column-name,table.plugin-install .column-rating,table.plugin-install .column-version{display:block;width:auto}table.plugin-install th.column-description,table.plugin-install th.column-name,table.plugin-install th.column-rating,table.plugin-install th.column-version{display:none}table.plugin-install td.column-name strong{font-size:1.4em;line-height:1.6em}table.plugin-install #the-list td{box-shadow:none}table.plugin-install #the-list tr{display:block;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.plugin-card{margin-left:0;margin-right:0;width:100%}table.media .column-title .has-media-icon~.row-actions{margin-left:0;clear:both}}@media screen and (max-width:480px){.tablenav-pages .current-page{margin:0}.tablenav.bottom .displaying-num{position:relative;top:0;display:block;text-align:right;padding-bottom:.5em}.tablenav.bottom .tablenav-pages.one-page{height:auto}.tablenav-pages .tablenav-paging-text{float:left;width:100%;padding-top:.5em}}css/widgets.css000064400000042672152213653150007532 0ustar00/* General Widgets Styles */ .widget { margin: 0 auto 10px; position: relative; box-sizing: border-box; } .widget.open { z-index: 99; } .widget.open:focus-within { z-index: 100; } .widget-top { font-size: 13px; font-weight: 600; background: #f6f7f7; } .widget-top .widget-action { border: 0; margin: 0; padding: 10px; background: none; cursor: pointer; } .widget-title h3, .widget-title h4 { margin: 0; padding: 15px; font-size: 1em; line-height: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-user-select: none; user-select: none; } .widgets-holder-wrap .widget-inside { border-top: none; padding: 1px 15px 15px; line-height: 1.23076923; } .widget.widget-dirty .widget-control-close-wrapper { display: none; } .in-widget-title, #widgets-right a.widget-control-edit, #available-widgets .widget-description { color: #646970; } .deleting .widget-title, .deleting .widget-top .widget-action .toggle-indicator:before { color: #a7aaad; } /* Media Widgets */ .wp-core-ui .media-widget-control.selected .placeholder, .wp-core-ui .media-widget-control.selected .not-selected, .wp-core-ui .media-widget-control .selected { display: none; } .media-widget-control.selected .selected { display: inline-block; } .media-widget-buttons { text-align: left; margin-top: 0; } .media-widget-control .media-widget-buttons .button { width: auto; height: auto; margin-top: 12px; white-space: normal; } .media-widget-buttons .button:first-child { margin-right: 8px; } .media-widget-control .attachment-media-view .button-add-media, .media-widget-control .placeholder { border: 1px dashed #c3c4c7; box-sizing: border-box; cursor: pointer; line-height: 1.6; padding: 9px 0; position: relative; text-align: center; width: 100%; } .media-widget-control .attachment-media-view .button-add-media { cursor: pointer; background-color: #f0f0f1; color: #2c3338; } .media-widget-control .attachment-media-view .button-add-media:hover { background-color: #fff; } .media-widget-control .attachment-media-view .button-add-media:focus { background-color: #fff; border-style: solid; border-color: #4f94d4; box-shadow: 0 0 3px rgba(34, 113, 177, 0.8); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .media-widget-control .media-widget-preview { background: transparent; text-align: center; } .media-widget-control .media-widget-preview .notice { text-align: initial; } .media-frame .media-widget-embed-notice p code, .media-widget-control .notice p code { padding: 0 3px 0 0; } .media-frame .media-widget-embed-notice { margin-top: 16px; } .media-widget-control .media-widget-preview img { max-width: 100%; vertical-align: middle; background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7); background-position: 0 0, 10px 10px; background-size: 20px 20px; } .media-widget-control .media-widget-preview .wp-video-shortcode { background: #000; } .media-frame.media-widget .media-toolbar-secondary { min-width: 300px; } .media-frame.media-widget .image-details .embed-media-settings .setting.align, .media-frame.media-widget .attachment-display-settings .setting.align, .media-frame.media-widget .embed-media-settings .setting.align, .media-frame.media-widget .embed-media-settings .legend-inline, .media-frame.media-widget .embed-link-settings .setting.link-text, .media-frame.media-widget .replace-attachment, .media-frame.media-widget .checkbox-setting.autoplay { display: none; } .media-widget-video-preview { width: 100%; } .media-widget-video-link { display: inline-block; min-height: 132px; width: 100%; background: #000; } .media-widget-video-link .dashicons { font: normal 60px/1 'dashicons'; position: relative; width: 100%; top: -90px; color: #fff; text-decoration: none; } .media-widget-video-link.no-poster .dashicons { top: 30px; } .media-frame #embed-url-field.invalid, .media-widget-image-link > .link:invalid { border: 1px solid #d63638; } .media-widget-image-link { margin: 1em 0; } .media-widget-gallery-preview { display: flex; justify-content: flex-start; flex-wrap: wrap; margin: -1.79104477%; } .media-widget-preview.media_gallery, .media-widget-preview.media_image { cursor: pointer; } .media-widget-preview .placeholder { background: #f0f0f1; } .media-widget-gallery-preview .gallery-item { box-sizing: border-box; width: 50%; margin: 0; background: transparent; } .media-widget-gallery-preview .gallery-item .gallery-icon { margin: 4.5%; } /* * Use targeted nth-last-child selectors to control the size of each image * based on how many gallery items are present in the grid. * See: https://alistapart.com/article/quantity-queries-for-css */ .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child, .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child ~ .gallery-item, .media-widget-gallery-preview .gallery-item:nth-last-child(n+5), .media-widget-gallery-preview .gallery-item:nth-last-child(n+5) ~ .gallery-item, .media-widget-gallery-preview .gallery-item:nth-last-child(n+6), .media-widget-gallery-preview .gallery-item:nth-last-child(n+6) ~ .gallery-item { max-width: 33.33%; } .media-widget-gallery-preview .gallery-item img { height: auto; vertical-align: bottom; } .media-widget-gallery-preview .gallery-icon { position: relative; } .media-widget-gallery-preview .gallery-icon-placeholder { position: absolute; top: 0; bottom: 0; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.5); } .media-widget-gallery-preview .gallery-icon-placeholder-text { font-weight: 600; font-size: 2em; color: #fff; } /* Widget Dragging Helpers */ .widget.ui-draggable-dragging { min-width: 100%; } .widget.ui-sortable-helper { opacity: 0.8; } .widget-placeholder { border: 1px dashed #c3c4c7; margin: 0 auto 10px; height: 45px; width: 100%; box-sizing: border-box; } #widgets-right .widget-placeholder { margin-top: 0; } #widgets-right .closed .widget-placeholder { height: 0; border: 0; margin-top: -10px; } /* Widget Sidebars */ .sidebar-name { position: relative; box-sizing: border-box; } .js .sidebar-name { cursor: pointer; } .sidebar-name .handlediv { float: right; width: 38px; height: 38px; border: 0; margin: 0; padding: 8px; background: none; cursor: pointer; outline: none; } #widgets-right .sidebar-name .handlediv { margin: 5px 3px 0 0; } .sidebar-name .handlediv:focus { box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } #widgets-left .sidebar-name .toggle-indicator { display: none; } #widgets-left .widgets-holder-wrap.closed .sidebar-name .toggle-indicator, #widgets-left .sidebar-name:hover .toggle-indicator, #widgets-left .sidebar-name .handlediv:focus .toggle-indicator { display: block; } .sidebar-name .toggle-indicator:before { padding: 1px 2px 1px 0; border-radius: 50%; } .sidebar-name .handlediv:focus .toggle-indicator:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .sidebar-name h2, .sidebar-name h3 { margin: 0; padding: 8px 10px; overflow: hidden; white-space: normal; line-height: 1.5; } .widgets-holder-wrap .description { padding: 0 0 15px; margin: 0; font-style: normal; color: #646970; } .widget-holder .description, .inactive-sidebar .description { color: #50575e; } #widgets-right .widgets-holder-wrap .description { padding-left: 7px; padding-right: 7px; } /* Widgets 2-col Layout */ div.widget-liquid-left { margin: 0; width: 38%; float: left; } div.widget-liquid-right { float: right; width: 58%; } /* Widgets Left - Available Widgets */ div#widgets-left { padding-top: 12px; } div#widgets-left .closed .sidebar-name, div#widgets-left .inactive-sidebar.closed .sidebar-name { margin-bottom: 10px; } div#widgets-left .sidebar-name h2, div#widgets-left .sidebar-name h3 { padding: 10px 0; margin: 0 10px 0 0; } #widgets-left .widgets-holder-wrap, div#widgets-left .widget-holder { background: transparent; border: none; } #widgets-left .widgets-holder-wrap { border: none; box-shadow: none; } #available-widgets .widget { margin: 0; } #available-widgets .widget:nth-child(odd) { clear: both; } #available-widgets .widget .widget-description { display: block; padding: 10px 15px; font-size: 12px; overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-word; hyphens: auto; } #available-widgets #widget-list { position: relative; } /* Inactive Sidebars */ #widgets-left .inactive-sidebar { clear: both; width: 100%; background: transparent; padding: 0; margin: 0 0 20px; border: none; box-shadow: none; } #widgets-left .inactive-sidebar.first { margin-top: 40px; } /* Not sure what this is for... */ div#widgets-left .inactive-sidebar .widget.expanded { left: auto; } .widget-title-action { float: right; position: relative; } div#widgets-left .inactive-sidebar .widgets-sortables { min-height: 42px; padding: 0; background: transparent; margin: 0; position: relative; } /* Widgets Right */ div#widgets-right .sidebars-column-1, div#widgets-right .sidebars-column-2 { max-width: 450px; } div#widgets-right .widgets-holder-wrap { margin: 10px 0 0; } div#widgets-right .sidebar-description { min-height: 20px; margin-top: -5px; } div#widgets-right .sidebar-name h2, div#widgets-right .sidebar-name h3 { padding: 15px 15px 15px 7px; } div#widgets-right .widget-top { padding: 0; } div#widgets-right .widgets-sortables { padding: 0 8px; margin-bottom: 9px; position: relative; min-height: 123px; } div#widgets-right .closed .widgets-sortables { min-height: 0; margin-bottom: 0; } .sidebar-name .spinner, .remove-inactive-widgets .spinner { float: none; position: relative; top: -2px; margin: -5px 5px; } .sidebar-name .spinner { position: absolute; top: 18px; right: 30px; } /* Dragging a widget over a closed sidebar */ #widgets-right .widgets-holder-wrap.widget-hover { border-color: #787c82; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } /* Accessibility Mode */ .widget-access-link { float: right; margin: -5px 0 10px 10px; } .widgets_access #widgets-left .widget .widget-top { cursor: auto; } .widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description, .widgets_access #wpwrap .widgets-holder-wrap.closed .widget, .widgets_access #wpwrap .widget-control-edit { display: block; } .widgets_access #widgets-left .widget .widget-top:hover, .widgets_access #widgets-right .widget .widget-top:hover { border-color: #dcdcde; } #available-widgets .widget-control-edit .edit, #available-widgets .widget-action .edit, #widgets-left .inactive-sidebar .widget-control-edit .add, #widgets-left .inactive-sidebar .widget-action .add, #widgets-right .widget-control-edit .add, #widgets-right .widget-action .add { display: none; } .widget-control-edit { display: block; color: #646970; background: #f0f0f1; padding: 0 15px; line-height: 3.30769230; border-left: 1px solid #dcdcde; } #widgets-left .widget-control-edit:hover, #widgets-right .widget-control-edit:hover { color: #fff; background: #3c434a; border-left: 0; outline: 1px solid #3c434a; } .widgets-holder-wrap .sidebar-name, .widgets-holder-wrap .sidebar-description { -webkit-user-select: none; user-select: none; } .editwidget { margin: 0 auto; } .editwidget .widget-inside { display: block; padding: 0 15px; } .widget-control-actions { display: flex; align-items: center; justify-content: space-between; } .editwidget .widget-control-actions { margin-top: 20px; } .js .widgets-holder-wrap.closed .widget, .js .widgets-holder-wrap.closed .sidebar-description, .js .widgets-holder-wrap.closed .remove-inactive-widgets, .js .widgets-holder-wrap.closed .description, .js .closed br.clear { display: none; } .js .widgets-holder-wrap.closed .widget.ui-sortable-helper { display: block; } /* Hide Widget Settings by Default */ .widget-inside, .widget-description { display: none; } .widget-inside { background: #fff; } .widget-inside select { max-width: 100%; } /* Dragging widgets over the available widget area show's a "Deactivate" message */ #removing-widget { display: none; font-weight: 400; padding-left: 15px; font-size: 12px; line-height: 1; color: #000; } .js #removing-widget { color: #72aee6; } .widget-control-noform, #access-off, .widgets_access .widget-action, .widgets_access .handlediv, .widgets_access #access-on, .widgets_access .widget-holder .description, .no-js .widget-holder .description { display: none; } .widgets_access .widget-holder, .widgets_access #widget-list { padding-top: 10px; } .widgets_access #access-off { display: inline; } .widgets_access .sidebar-name, .widgets_access .widget .widget-top { cursor: default; } /* Widgets Area Chooser */ .widget-liquid-left #widgets-left.chooser #available-widgets .widget, .widget-liquid-left #widgets-left.chooser .inactive-sidebar { transition: opacity 0.1s linear; } .widget-liquid-left #widgets-left.chooser #available-widgets .widget, .widget-liquid-left #widgets-left.chooser .inactive-sidebar { /* -webkit-filter: blur(1px); */ opacity: 0.2; pointer-events: none; } .widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question { /* -webkit-filter: none; */ opacity: 1; pointer-events: auto; } .widgets-chooser ul, #widgets-left .widget-in-question .widget-top, #available-widgets .widget-top:hover, div#widgets-right .widget-top:hover, #widgets-left .widget-top:hover { border-color: #8c8f94; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .widgets-chooser ul.widgets-chooser-sidebars { margin: 0; list-style-type: none; max-height: 300px; overflow: auto; } .widgets-chooser { display: none; } .widgets-chooser ul { border: 1px solid #c3c4c7; } .widgets-chooser li { border-bottom: 1px solid #c3c4c7; background: #fff; margin: 0; position: relative; } .widgets-chooser .widgets-chooser-button { width: 100%; padding: 10px 15px 10px 35px; background: transparent; border: 0; box-sizing: border-box; text-align: left; cursor: pointer; transition: background 0.2s ease-in-out; } /* @todo looks like these hover/focus states are overridden by .widgets-chooser-selected */ .widgets-chooser .widgets-chooser-button:hover, .widgets-chooser .widgets-chooser-button:focus { outline: none; text-decoration: underline; } .widgets-chooser li:last-child { border: none; } .widgets-chooser .widgets-chooser-selected .widgets-chooser-button { background: var(--wp-admin-theme-color, #3858e9); color: #fff; } .widgets-chooser .widgets-chooser-selected:before { content: "\f147"; content: "\f147" / ''; display: block; -webkit-font-smoothing: antialiased; font: normal 26px/1 dashicons; color: #fff; position: absolute; top: 7px; left: 5px; } .widgets-chooser .widgets-chooser-actions { padding: 10px 0 12px; text-align: center; } #available-widgets .widget .widget-top { cursor: pointer; } #available-widgets .widget.ui-draggable-dragging .widget-top { cursor: move; } /* =Specific widget styling -------------------------------------------------------------- */ .text-widget-fields { position: relative; } .text-widget-fields [hidden] { display: none; } .text-widget-fields .wp-pointer.wp-pointer-top { position: absolute; z-index: 3; top: 100px; right: 10px; left: 10px; } .text-widget-fields .wp-pointer .wp-pointer-arrow { left: auto; right: 15px; } .text-widget-fields .wp-pointer .wp-pointer-buttons { line-height: 1.4; } .custom-html-widget-fields > p > .CodeMirror { border: 1px solid #dcdcde; } .custom-html-widget-fields code { padding-top: 1px; padding-bottom: 1px; } ul.CodeMirror-hints { z-index: 101; /* Due to z-index 100 set on .widget.open */ } .widget-control-actions .custom-html-widget-save-button.button.validation-blocked { cursor: not-allowed; } /* =Media Queries -------------------------------------------------------------- */ @media screen and (max-width: 782px) { .widgets-holder-wrap .widget-inside input[type="checkbox"], .widgets-holder-wrap .widget-inside input[type="radio"], .editwidget .widget-inside input[type="checkbox"], /* Selectors for the "accessibility mode" page. */ .editwidget .widget-inside input[type="radio"] { margin: 0.25rem 0.25rem 0.25rem 0; } } @media screen and (max-width: 480px) { div.widget-liquid-left { width: 100%; float: none; border-right: none; padding-right: 0; } #widgets-left .sidebar-name { margin-right: 0; } #widgets-left #available-widgets .widget-top { margin-right: 0; } #widgets-left .inactive-sidebar .widgets-sortables { margin-right: 0; } div.widget-liquid-right { width: 100%; float: none; } div.widget { max-width: 480px; } .widget-access-link { float: none; margin: 15px 0 0; } } @media screen and (max-width: 320px) { div.widget { max-width: 320px; } } @media only screen and (min-width: 1250px) { #widgets-left #available-widgets .widget { width: 49%; float: left; } .widget.ui-draggable-dragging { min-width: 49%; } #widgets-left #available-widgets .widget:nth-child(even) { float: right; } #widgets-right .sidebars-column-1, #widgets-right .sidebars-column-2 { float: left; width: 49%; } #widgets-right .sidebars-column-1 { margin-right: 2%; } #widgets-right.single-sidebar .sidebars-column-1, #widgets-right.single-sidebar .sidebars-column-2 { float: none; width: 100%; margin: 0; } } css/revisions.min.css000064400000021140152213653150010652 0ustar00/*! This file is auto-generated */ .revisions-control-frame,.revisions-diff-frame{position:relative}.revisions-diff-frame{top:10px}.revisions-controls{padding-top:40px;z-index:1}.revisions-controls input[type=checkbox]{position:relative;top:-1px;vertical-align:text-bottom}.revisions.pinned .revisions-controls{position:fixed;top:0;height:82px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-tickmarks{position:relative;margin:0 auto;height:.7em;top:7px;max-width:70%;box-sizing:border-box;background-color:#fff}.revisions-tickmarks>div{position:absolute;height:100%;border-left:1px solid #a7aaad;box-sizing:border-box}.revisions-tickmarks>div:first-child{border-width:0}.comparing-two-revisions .revisions-controls{height:140px}.comparing-two-revisions.pinned .revisions-controls{height:124px}.revisions .diff-error{position:absolute;text-align:center;margin:0 auto;width:100%;display:none}.revisions.diff-error .diff-error{display:block}.revisions .loading-indicator{position:absolute;vertical-align:middle;opacity:0;width:100%;width:calc(100% - 30px);top:50%;top:calc(50% - 10px);transition:opacity .5s}body.folded .revisions .loading-indicator{margin-left:-32px}.revisions .loading-indicator span.spinner{display:block;margin:0 auto;float:none}.revisions.loading .loading-indicator{opacity:1}.revisions .diff{transition:opacity .5s}.revisions.loading .diff{opacity:.5}.revisions.diff-error .diff{visibility:hidden}.revisions-meta{margin-top:20px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1);overflow:hidden}.revisions.pinned .revisions-meta{box-shadow:none}.revision-toggle-compare-mode{position:absolute;top:0;right:0}.comparing-two-revisions .revisions-next,.comparing-two-revisions .revisions-previous,.revisions-meta .diff-meta-to strong{display:none}.revisions-controls .author-card .date{color:#646970}.revisions-controls .author-card.autosave{color:#d63638}.revisions-controls .author-card .author-name{font-weight:600}.comparing-two-revisions .diff-meta-to strong{display:block}.revisions.pinned .revisions-buttons{padding:0 11px}.revisions-next,.revisions-previous{position:relative;z-index:1}.revisions-previous{float:left}.revisions-next{float:right}.revisions-controls .wp-slider{max-width:70%;margin:0 auto;top:-3px}.revisions-diff{padding:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.revisions-diff h3:first-child{margin-top:0}#revisions-meta-restored img,.post-revisions li img{vertical-align:middle}table.diff{table-layout:fixed;width:100%;white-space:pre-wrap}table.diff col.content{width:auto}table.diff col.content.diffsplit{width:48%}table.diff col.diffsplit.middle{width:auto}table.diff col.ltype{width:30px}table.diff tr{background-color:transparent}table.diff td,table.diff th{font-family:Consolas,Monaco,monospace;font-size:14px;line-height:1.57142857;padding:.5em .5em .5em 2em;vertical-align:top;word-wrap:break-word}table.diff td h1,table.diff td h2,table.diff td h3,table.diff td h4,table.diff td h5,table.diff td h6{margin:0}table.diff .diff-addedline ins,table.diff .diff-deletedline del{text-decoration:none}table.diff .diff-deletedline{position:relative;background-color:#fcf0f1}table.diff .diff-deletedline del{background-color:#ffabaf}table.diff .diff-addedline{position:relative;background-color:#edfaef}table.diff .diff-addedline .dashicons,table.diff .diff-deletedline .dashicons{position:absolute;top:.85714286em;left:.5em;width:1em;height:1em;font-size:1em;line-height:1}table.diff .diff-addedline .dashicons{top:.92857143em}table.diff .diff-addedline ins{background-color:#68de7c}.diff-meta{padding:5px;clear:both;min-height:32px}.diff-title strong{line-height:2.46153846;min-width:60px;text-align:right;float:left;margin-right:5px}.revisions-controls .author-card .author-info{font-size:12px;line-height:1.33333333}.revisions-controls .author-card .author-info,.revisions-controls .author-card .avatar{float:left;margin-left:6px;margin-right:6px}.revisions-controls .author-card .byline{display:block;font-size:12px}.revisions-controls .author-card .avatar{vertical-align:middle}.diff-meta input.restore-revision{float:right;margin-left:6px;margin-right:6px}.diff-meta-from{display:none}.comparing-two-revisions .diff-meta-from{display:block}.revisions-tooltip{position:absolute;bottom:105px;margin-right:0;margin-left:-69px;z-index:0;max-width:350px;min-width:130px;padding:8px 4px;display:none;opacity:0}.revisions-tooltip.flipped{margin-left:0;margin-right:-70px}.revisions.pinned .revisions-tooltip{display:none!important}.comparing-two-revisions .revisions-tooltip{bottom:145px}.revisions-tooltip-arrow{width:70px;height:15px;overflow:hidden;position:absolute;left:0;margin-left:35px;bottom:-15px}.revisions-tooltip.flipped .revisions-tooltip-arrow{margin-left:0;margin-right:35px;left:auto;right:0}.revisions-tooltip-arrow>span{content:"";position:absolute;left:20px;top:-20px;width:25px;height:25px;transform:rotate(45deg)}.revisions-tooltip.flipped .revisions-tooltip-arrow>span{left:auto;right:20px}.revisions-tooltip,.revisions-tooltip-arrow>span{border:1px solid #dcdcde;background-color:#fff}.revisions-tooltip{display:none}.arrow{width:70px;height:16px;overflow:hidden;position:absolute;left:0;margin-left:-35px;bottom:90px;z-index:10000}.arrow:after{z-index:9999;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.1)}.arrow.top{top:-16px;bottom:auto}.arrow.left{left:20%}.arrow:after{content:"";position:absolute;left:20px;top:-20px;width:25px;height:25px;transform:rotate(45deg)}.revisions-tooltip,.revisions-tooltip-arrow:after{border-width:1px;border-style:solid}div.revisions-controls>.wp-slider>.ui-slider-handle{margin-left:-10px}.rtl div.revisions-controls>.wp-slider>.ui-slider-handle{margin-right:-10px}.wp-slider.ui-slider{position:relative;border:1px solid #dcdcde;text-align:left;cursor:pointer}.wp-slider .ui-slider-handle{border-radius:50%;height:18px;margin-top:-5px;outline:0;padding:2px;position:absolute;width:18px;z-index:2;touch-action:none}.wp-slider .ui-slider-handle{background:#f6f7f7;border:1px solid #c3c4c7;box-shadow:0 1px 0 #c3c4c7}.wp-slider .ui-slider-handle.ui-state-hover,.wp-slider .ui-slider-handle:hover{background:#f6f7f7;border-color:#8c8f94}.wp-slider .ui-slider-handle.ui-state-active,.wp-slider .ui-slider-handle:active{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}.wp-slider .ui-slider-handle.ui-state-focus,.wp-slider .ui-slider-handle:focus{background:#f0f0f1;border-color:#8c8f94;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.wp-slider .ui-slider-handle:before{background:0 0;position:absolute;top:2px;left:2px;color:#50575e;content:"\f229";content:"\f229"/'';font:normal 18px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-slider .ui-slider-handle.ui-state-hover:before,.wp-slider .ui-slider-handle:hover:before{color:#1d2327}.wp-slider .ui-slider-handle.from-handle:before,.wp-slider .ui-slider-handle.to-handle:before{font-size:20px!important;margin:-1px 0 0 -1px}.wp-slider .ui-slider-handle.from-handle:before{content:"\f139";content:"\f139"/''}.wp-slider .ui-slider-handle.to-handle:before{content:"\f141";content:"\f141"/''}.rtl .wp-slider .ui-slider-handle.from-handle:before{content:"\f141";content:"\f141"/''}.rtl .wp-slider .ui-slider-handle.to-handle:before{content:"\f139";content:"\f139"/'';right:-1px}.wp-slider .ui-slider-range{position:absolute;font-size:.7em;display:block;border:0;background-color:transparent;background-image:none}.wp-slider.ui-slider-horizontal{height:.7em}.wp-slider.ui-slider-horizontal .ui-slider-handle{top:-.25em;margin-left:-.6em}.wp-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.wp-slider.ui-slider-horizontal .ui-slider-range-min{left:0}.wp-slider.ui-slider-horizontal .ui-slider-range-max{right:0}@media print,(min-resolution:120dpi){.revision-tick.completed-false{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:600px){.revisions-meta .author-card:not(.comparing-two-revisions .author-card){display:flex;flex-direction:column;width:fit-content;gap:16px}.comparing-two-revisions .revisions-meta .restore-revision{margin-top:16px}.revisions-controls{padding-top:0}.revision-toggle-compare-mode{position:relative;padding:1rem 0}}@media screen and (max-width:782px){#diff-next-revision,#diff-previous-revision{margin-top:-1em}.revisions-buttons{overflow:hidden;margin-bottom:15px}.comparing-two-revisions .revisions-controls,.revisions-controls{height:fit-content}.revisions-tooltip{bottom:155px;z-index:2}.comparing-two-revisions .revisions-tooltip{bottom:200px}.diff-meta{overflow:hidden}table.diff{-ms-word-break:break-all;word-break:break-all;word-wrap:break-word}}css/l10n-rtl.min.css000064400000006204152213653150010206 0ustar00/*! This file is auto-generated */ body.rtl,body.rtl .press-this a.wp-switch-editor{font-family:Tahoma,Arial,sans-serif}.rtl h1,.rtl h2,.rtl h3,.rtl h4,.rtl h5,.rtl h6{font-family:Arial,sans-serif;font-weight:600}body.locale-he-il,body.locale-he-il .press-this a.wp-switch-editor{font-family:Arial,sans-serif}.locale-he-il em{font-style:normal;font-weight:600}.locale-zh-cn #local-time,.locale-zh-cn #utc-time,.locale-zh-cn .form-wrap p,.locale-zh-cn .howto,.locale-zh-cn .inline-edit-row fieldset span.checkbox-title,.locale-zh-cn .inline-edit-row fieldset span.title,.locale-zh-cn .js .input-with-default-title,.locale-zh-cn .link-to-original,.locale-zh-cn .tablenav .displaying-num,.locale-zh-cn p.description,.locale-zh-cn p.help,.locale-zh-cn p.install-help,.locale-zh-cn span.description{font-style:normal}.locale-zh-cn .hdnle a{font-size:12px}.locale-zh-cn form.upgrade .hint{font-style:normal;font-size:100%}.locale-zh-cn #sort-buttons{font-size:1em!important}.locale-de-de #customize-header-actions .button,.locale-de-de-formal #customize-header-actions .button{padding:0 5px 1px}.locale-de-de #customize-header-actions .spinner,.locale-de-de-formal #customize-header-actions .spinner{margin:16px 3px 0}body[class*=locale-de-] .inline-edit-row fieldset label span.title,body[class*=locale-de-] .inline-edit-row fieldset.inline-edit-date legend{width:7em}body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-right:7em}.locale-ru-ru #adminmenu{width:inherit}.locale-ru-ru #adminmenu,.locale-ru-ru #wpbody{margin-right:0}.locale-ru-ru .inline-edit-row fieldset label span.title,.locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-ru-ru.post-new-php .tagsdiv .newtag,.locale-ru-ru.post-php .tagsdiv .newtag{width:165px}.locale-ru-ru.press-this .posting{margin-left:277px}.locale-ru-ru .press-this-sidebar{width:265px}.locale-ru-ru #customize-header-actions .button{padding:0 5px 1px}.locale-ru-ru #customize-header-actions .spinner{margin:16px 3px 0}.locale-lt-lt .inline-edit-row fieldset label span.title,.locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend{width:8em}.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap{margin-right:8em}.locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title,.locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title,body[class*=locale-de-] .quick-edit-row-post fieldset.inline-edit-col-right label span.title{width:auto}@media screen and (max-width:782px){.locale-lt-lt .inline-edit-row fieldset .timestamp-wrap,.locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap,.locale-ru-ru .inline-edit-row fieldset .timestamp-wrap,.locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap,body[class*=locale-de-] .inline-edit-row fieldset .timestamp-wrap,body[class*=locale-de-] .inline-edit-row fieldset label span.input-text-wrap{margin-right:0}}css/dashboard.css000064400000073311152213653150010005 0ustar00#wpbody-content #dashboard-widgets.columns-1 .postbox-container { width: 100%; } #wpbody-content #dashboard-widgets.columns-2 .postbox-container { width: 49.5%; } #wpbody-content #dashboard-widgets.columns-2 #postbox-container-2, #wpbody-content #dashboard-widgets.columns-2 #postbox-container-3, #wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { float: right; width: 50.5%; } #wpbody-content #dashboard-widgets.columns-3 .postbox-container { width: 33.5%; } #wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 { width: 33%; } #wpbody-content #dashboard-widgets.columns-3 #postbox-container-3, #wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 { float: right; } #wpbody-content #dashboard-widgets.columns-4 .postbox-container { width: 25%; } #dashboard-widgets .postbox-container { width: 25%; } #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { border: none !important; } #dashboard-widgets-wrap { overflow: hidden; margin: 0 -8px; } #dashboard-widgets .postbox { border-radius: 8px; } #dashboard-widgets .postbox-header .hndle { padding: 12px 16px; } #dashboard-widgets .postbox .inside { margin-bottom: 0; } #dashboard-widgets .meta-box-sortables { display: flow-root; /* avoid margin collapsing between parent and first/last child elements */ /* Required min-height to make the jQuery UI Sortable drop zone work. */ min-height: 0; margin: 0 8px 20px; } #dashboard-widgets .meta-box-sortables:not(:empty) { margin-bottom: 16px; } #dashboard-widgets .postbox-container .empty-container { outline: 2px dashed rgb(0, 0, 0, 0.15); outline-offset: -2px; border-radius: 8px; height: 250px; margin: 4px; } /* Only highlight drop zones when dragging. */ .is-dragging-metaboxes #dashboard-widgets .meta-box-sortables { border-radius: 8px; background: rgb(var(--wp-admin-theme-color--rgb), 0.04); min-height: 100px; } .is-dragging-metaboxes #dashboard-widgets .postbox-container .empty-container { background: rgb(0, 0, 0, 0.01); } #dashboard-widgets .postbox-container .empty-container:after { content: attr(data-emptystring); margin: auto; position: absolute; top: 50%; left: 0; right: 0; transform: translateY( -50% ); padding: 0 2em; text-align: center; color: #646970; font-size: 16px; line-height: 1.5; display: none; } /* @todo: this was originally in this section, but likely belongs elsewhere */ #the-comment-list td.comment p.comment-author { margin-top: 0; margin-left: 0; } #the-comment-list p.comment-author img { float: left; margin-right: 8px; } #the-comment-list p.comment-author strong a { border: none; } #the-comment-list td { vertical-align: top; } #the-comment-list td.comment { word-wrap: break-word; } #the-comment-list td.comment img { max-width: 100%; } /* Screen meta exception for when the "Dashboard" heading is missing or located below the Welcome Panel. */ .index-php #screen-meta-links { margin: 0 20px 8px 0; } /* Welcome Panel */ .welcome-panel { position: relative; overflow: auto; margin: 16px 0; border-radius: 8px; font-size: 14px; line-height: 1.3; clear: both; } .welcome-panel h2 { margin: 0; font-size: 48px; font-weight: 600; line-height: 1.25; } .welcome-panel h3 { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.4; } .welcome-panel p { font-size: inherit; line-height: inherit; } .welcome-panel-header { position: relative; color: #fff; } .welcome-panel-header-image { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; z-index: 0 !important; overflow: hidden; } .welcome-panel-header-image svg { display: block; margin: auto; width: 100%; height: 100%; } .rtl .welcome-panel-header-image svg { transform: scaleX(-1); } .welcome-panel-header * { color: inherit; position: relative; z-index: 1; } .welcome-panel-header a:focus, .welcome-panel-header a:hover { color: inherit; text-decoration: none; } .welcome-panel-header a:focus, .welcome-panel .welcome-panel-close:focus { outline-color: currentColor; outline-offset: 1px; box-shadow: none; } .welcome-panel-header p { margin: 0.5em 0 0; font-size: 20px; line-height: 1.4; } .welcome-panel .welcome-panel-close { display: flex; align-items: center; position: absolute; top: 10px; right: 10px; padding: 10px 15px; font-size: 13px; line-height: 1.23076923; /* Chrome rounding, needs to be 16px equivalent */ text-decoration: none; z-index: 1; /* Raise above the version image. */ } .welcome-panel .welcome-panel-close:before { transition: all .1s ease-in-out; content: '\f335'; font-size: 24px; color: #fff; } .welcome-panel .welcome-panel-close { color: #fff; } .welcome-panel .welcome-panel-close:hover, .welcome-panel .welcome-panel-close:focus, .welcome-panel .welcome-panel-close:hover::before, .welcome-panel .welcome-panel-close:focus::before { color: #fff972; } /* @deprecated 5.9.0 -- Button removed from panel. */ .wp-core-ui .welcome-panel .button.button-hero { margin: 15px 13px 3px 0; padding: 12px 36px; height: auto; line-height: 1.4285714; white-space: normal; } .welcome-panel-content { min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; } .welcome-panel-header-wrap { background-color: #151515; } .welcome-panel-header { box-sizing: border-box; margin-left: auto; margin-right: auto; max-width: 1500px; width: 100%; padding: 48px 0 80px 48px; } .welcome-panel .welcome-panel-column-container { box-sizing: border-box; width: 100%; clear: both; display: grid; z-index: 1; padding: 24px; grid-template-columns: repeat(3, 1fr); gap: 32px; align-self: flex-end; background: #ffffff; border: 1px solid #c3c4c7; border-top: 0; border-radius: 0 0 8px 8px; } [class*="welcome-panel-icon"] { height: 60px; width: 60px; background-position: center; background-size: 24px 24px; background-repeat: no-repeat; border-radius: 100%; } .welcome-panel-column > svg { margin-top: 4px; } .welcome-panel-column { display: grid; grid-template-columns: min-content 1fr; gap: 24px; } .welcome-panel-icon-pages { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z' /%3E%3C/svg%3E"); } .welcome-panel-icon-layout { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z' /%3E%3C/svg%3E"); } .welcome-panel-icon-styles { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fff' d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' /%3E%3C/svg%3E"); } /* @deprecated 5.9.0 -- Section removed from welcome panel. */ .welcome-panel .welcome-widgets-menus { line-height: 1.14285714; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column ul { margin: 0.8em 1em 1em 0; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel li { font-size: 14px; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel li a { text-decoration: none; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column li { line-height: 1.14285714; list-style-type: none; padding: 0 0 8px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-icon { background: transparent !important; } /* Welcome Panel and Right Now common Icons style */ /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-icon:before, #dashboard_right_now li a:before, #dashboard_right_now li span:before, #dashboard_right_now .search-engines-info:before { color: #646970; font: normal 20px/1 dashicons; display: inline-block; padding: 0 10px 0 0; position: relative; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none !important; vertical-align: top; } /* Welcome Panel specific Icons styles */ /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-write-blog:before, .welcome-panel .welcome-edit-page:before { content: "\f119"; content: "\f119" / ''; top: -3px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-add-page:before { content: "\f132"; content: "\f132" / ''; top: -1px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-setup-home:before { content: "\f102"; content: "\f102" / ''; top: -1px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-view-site:before { content: "\f115"; content: "\f115" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-widgets-menus:before { content: "\f116"; content: "\f116" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-widgets:before { content: "\f538"; content: "\f538" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-menus:before { content: "\f163"; content: "\f163" / ''; top: -2px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-comments:before { content: "\f117"; content: "\f117" / ''; top: -1px; } /* @deprecated 5.9.0 -- Icons removed from welcome panel. */ .welcome-panel .welcome-learn-more:before { content: "\f118"; content: "\f118" / ''; top: -1px; } /* Right Now specific Icons styles */ #dashboard_right_now .search-engines-info:before, #dashboard_right_now li a:before, #dashboard_right_now li > span:before { /* get only the first level span to exclude screen-reader-text in mu-storage */ padding: 0 5px 0 0; /* generic icon for items added by CPTs ? */ content: "\f159"; content: "\f159" / ''; } #dashboard_right_now .page-count a:before, #dashboard_right_now .page-count span:before { content: "\f105"; content: "\f105" / ''; } #dashboard_right_now .post-count a:before, #dashboard_right_now .post-count span:before { content: "\f109"; content: "\f109" / ''; } #dashboard_right_now .comment-count a:before { content: "\f101"; content: "\f101" / ''; } #dashboard_right_now .comment-mod-count a:before { content: "\f125"; content: "\f125" / ''; } #dashboard_right_now .storage-count a:before { content: "\f104"; content: "\f104" / ''; } #dashboard_right_now .storage-count.warning a:before { content: "\f153"; content: "\f153" / ''; } #dashboard_right_now .search-engines-info:before { content: "\f348"; content: "\f348" / ''; color: #d63638; } /* Dashboard WordPress events */ .community-events-errors { margin: 0; } .community-events-loading { padding: 10px 12px 8px; } .community-events { margin-bottom: 6px; padding: 0 12px; } .community-events .spinner { margin: 0 2px 0; } .community-events-errors[aria-hidden="true"], .community-events-errors [aria-hidden="true"], .community-events-loading[aria-hidden="true"], .community-events[aria-hidden="true"], .community-events form[aria-hidden="true"] { display: none; } .community-events .activity-block:first-child, .community-events h2 { padding-top: 12px; padding-bottom: 10px; } .community-events-form { margin: 15px 0 5px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; } .community-events-form .regular-text { width: 40%; margin: 0; min-height: 32px; padding: 0 8px; } #dashboard-widgets .community-events-form .button { min-height: 32px; line-height: 2.30769231; padding: 0 12px; } .community-events li.event-none { border-left: 4px solid var(--wp-admin-theme-color, #3858e9); } #dashboard-widgets .community-events li.event-none a { text-decoration: underline; } .community-events-form label { line-height: 2.14285714; } .community-events .activity-block > p { margin-bottom: 0; display: inline; } .community-events-toggle-location { vertical-align: middle; } /* Needs higher specificity than #dashboard-widgets .button-link */ #dashboard-widgets .community-events-cancel.button-link { text-decoration: underline; } .community-events ul { background-color: rgba(var(--wp-admin-theme-color--rgb),.08); padding-left: 0; padding-right: 0; padding-bottom: 0; } .community-events li { margin: 0; padding: 8px 12px; color: #2c3338; } .community-events li:first-child { border-top: 1px solid #e9e9ed; } .community-events li ~ li { border-top: 1px solid #e9e9ed; } .community-events .activity-block.last { border-bottom: 1px solid #e9e9ed; padding-top: 0; margin-top: -1px; } .community-events .event-info { display: block; } .community-events .ce-separator::before { content: "\2022"; content: "\2022" / ''; } .event-icon { height: 18px; padding-right: 10px; width: 18px; display: none; /* Hide on smaller screens */ } .event-icon:before { color: #646970; font-size: 18px; } .event-meetup .event-icon:before { content: "\f484"; content: "\f484" / ''; } .event-wordcamp .event-icon:before { content: "\f486"; content: "\f486" / ''; } .community-events .event-title { font-weight: 600; display: block; } .community-events .event-date, .community-events .event-time { display: block; } .community-events-footer { margin-top: 0; margin-bottom: 0; padding: 12px; border-top: 1px solid #f0f0f1; color: #646970; } /* Safari 10 + VoiceOver specific: without this, the hidden text gets read out before the link. */ .community-events-footer .screen-reader-text { height: inherit; white-space: nowrap; } /* Dashboard WordPress news */ #dashboard_primary .inside { margin: 0; padding: 0; } #dashboard_primary .widget-loading { padding: 12px 12px 0; margin-bottom: 1em !important; /* Needs to override `.postbox .inside > p:last-child` in common.css */ } /* Notice when JS is off. */ #dashboard_primary .inside .notice { margin: 0; } body #dashboard-widgets .postbox form .submit { margin: 0; } /* Used only for configurable widgets. */ .dashboard-widget-control-form p { margin-top: 0; } .rssSummary { color: #646970; margin-top: 4px; } #dashboard_primary .rss-widget { font-size: 13px; padding: 0 12px; } #dashboard_primary .rss-widget:last-child { border-bottom: none; padding-bottom: 8px; } #dashboard_primary .rss-widget a { font-weight: 400; } #dashboard_primary .rss-widget span, #dashboard_primary .rss-widget span.rss-date { color: #646970; } #dashboard_primary .rss-widget span.rss-date { margin-left: 12px; } #dashboard_primary .rss-widget ul li { padding: 4px 0; margin: 0; } /* Dashboard right now */ #dashboard_right_now ul { margin: 0; /* contain floats but don't use overflow: hidden */ display: inline-block; width: 100%; } #dashboard_right_now li { width: 50%; float: left; margin-bottom: 10px; } #dashboard_right_now .main p { margin: 0; } #dashboard_right_now #wp-version-message .button { float: right; position: relative; top: -5px; margin-left: 5px; } #dashboard_right_now p.search-engines-info { margin: 1em 0; } .mu-storage { overflow: hidden; } #dashboard-widgets h3.mu-storage { margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 400; } #network_dashboard_right_now p input { margin: 2px 1px; vertical-align: middle; } /* Dashboard right now - Colors */ #dashboard_right_now .sub { color: #50575e; background: #f6f7f7; border-top: 1px solid #f0f0f1; padding: 10px 12px 6px; } #dashboard_right_now .sub h3 { color: #50575e; } #dashboard_right_now .sub p { margin: 0 0 1em; } #dashboard_right_now .warning a:before, #dashboard_right_now .warning span:before { color: #d63638; } /* Dashboard Quick Draft */ #dashboard_quick_press .inside { margin: 0; padding: 0; } #dashboard_quick_press div.updated { margin-bottom: 10px; border: 1px solid #f0f0f1; border-width: 1px 1px 1px 0; } #dashboard_quick_press form { margin: 12px; } #dashboard_quick_press .drafts { padding: 10px 0 0; } /* Dashboard Quick Draft - Form styling */ #dashboard_quick_press label { display: inline-block; margin-bottom: 4px; } #dashboard_quick_press input, #dashboard_quick_press textarea { box-sizing: border-box; margin: 0; } #dashboard-widgets .postbox form .submit { margin: -39px 0; float: right; } #description-wrap { margin-top: 12px; } #quick-press textarea#content { min-height: 90px; max-height: 1300px; margin: 0 0 8px; padding: 8px 12px; resize: none; } /* Dashboard Quick Draft - Drafts list */ .js #dashboard_quick_press .drafts { border-top: 1px solid #f0f0f1; } #dashboard_quick_press .drafts abbr { border: none; } #dashboard_quick_press .drafts .view-all { float: right; margin: 0 12px 0 0; } #dashboard_primary a.rsswidget { font-weight: 400; } #dashboard_quick_press .drafts ul { margin: 0 12px; } #dashboard_quick_press .drafts li { margin-bottom: 1em; } #dashboard_quick_press .drafts li time { color: #646970; } #dashboard_quick_press .drafts p { margin: 0; word-wrap: break-word; } #dashboard_quick_press .draft-title { word-wrap: break-word; } #dashboard_quick_press .draft-title a, #dashboard_quick_press .draft-title time { margin: 0 5px 0 0; } /* Dashboard common styles */ #dashboard-widgets h4, /* Back-compat for pre-4.4 */ #dashboard-widgets h3, #dashboard_quick_press .drafts h2 { margin: 0 12px 8px; padding: 0; font-size: 14px; font-weight: 400; color: #1d2327; } #dashboard_quick_press .drafts h2 { line-height: inherit; } #dashboard-widgets .inside h4, /* Back-compat for pre-4.4 */ #dashboard-widgets .inside h3 { margin-left: 0; margin-right: 0; } /* Dashboard activity widget */ #dashboard_activity .comment-meta span.approve:before { content: "\f227"; content: "\f227" / ''; font: 20px/.5 dashicons; margin-left: 5px; vertical-align: middle; position: relative; top: -1px; margin-right: 2px; } #dashboard_activity .inside { margin: 0; padding: 0 12px; } #dashboard_activity .no-activity { overflow: hidden; padding: 12px 0; text-align: center; } #dashboard_activity .no-activity p { color: #646970; font-size: 16px; } #dashboard_activity .subsubsub { float: none; border-top: 1px solid #f0f0f1; margin: 0 -12px; padding: 8px 12px 4px; } #dashboard_activity .subsubsub a .count, #dashboard_activity .subsubsub a.current .count { color: #646970; /* white background on the dashboard but #f0f0f1 on list tables */ } #future-posts ul, #published-posts ul { margin: 8px -12px 0 -12px; } #future-posts li, #published-posts li { display: grid; grid-template-columns: clamp(160px, calc(2vw + 140px), 200px) auto; column-gap: 10px; color: #646970; padding: 4px 12px; } #future-posts li:nth-child(odd), #published-posts li:nth-child(odd) { background-color: #f6f7f7; } .activity-block { border-bottom: 1px solid #f0f0f1; margin: 0 -12px 6px -12px; padding: 8px 12px 4px; } .activity-block:last-child { border-bottom: none; margin-bottom: 0; } .activity-block .subsubsub li { color: #646970; } /* Dashboard activity widget - Comments */ /* @todo: needs serious de-duplication */ #activity-widget #the-comment-list tr.undo, #activity-widget #the-comment-list div.undo { background: none; padding: 6px 0; margin-left: 12px; } #activity-widget #the-comment-list .comment-item { background: #f6f7f7; padding: 12px; position: relative; } #activity-widget #the-comment-list .avatar { position: absolute; top: 12px; } #activity-widget #the-comment-list .dashboard-comment-wrap.has-avatar { padding-left: 63px; } #activity-widget #the-comment-list .dashboard-comment-wrap blockquote { margin: 1em 0; } #activity-widget #the-comment-list .comment-item p.row-actions { margin: 4px 0 0; } #activity-widget #the-comment-list .comment-item:first-child { border-top: 1px solid #f0f0f1; } #activity-widget #the-comment-list .unapproved { background-color: #fcf9e8; } #activity-widget #the-comment-list .unapproved:before { content: ""; display: block; position: absolute; left: 0; top: 0; bottom: 0; background: #d63638; width: 4px; } #activity-widget #the-comment-list .spam-undo-inside .avatar, #activity-widget #the-comment-list .trash-undo-inside .avatar { position: relative; top: 0; } /* Browse happy box */ #dashboard-widgets #dashboard_browser_nag.postbox .inside { margin: 10px; } .postbox .button-link .edit-box { display: none; } .edit-box { opacity: 0; } .hndle:hover .edit-box, .edit-box:focus { opacity: 1; } #dashboard-widgets form .input-text-wrap input { width: 100%; } #dashboard-widgets form .textarea-wrap textarea { width: 100%; } #dashboard-widgets .postbox form .submit { float: none; margin: .5em 0 0; padding: 0; border: none; } #dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish { min-width: 0; } #dashboard-widgets li a, #dashboard-widgets .button-link, .community-events-footer a { text-decoration: none; } #dashboard-widgets h2 a { text-decoration: underline; } #dashboard-widgets .hndle .postbox-title-action { float: right; line-height: 1.2; } #dashboard_plugins h5 { font-size: 14px; } /* Recent Comments */ #latest-comments #the-comment-list { position: relative; margin: 0 -12px; } #activity-widget #the-comment-list .comment, #activity-widget #the-comment-list .pingback { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); } #activity-widget .comments #the-comment-list .alt { background-color: transparent; } #activity-widget #latest-comments #the-comment-list .comment-item { /* the row-actions paragraph is output only for users with 'edit_comment' capabilities, for other users this needs a min height equal to the gravatar image */ min-height: 50px; margin: 0; padding: 12px; } #latest-comments #the-comment-list .pingback { padding-left: 12px !important; } #latest-comments #the-comment-list .comment-item:first-child { border-top: none; } #latest-comments #the-comment-list .comment-meta { line-height: 1.5; margin: 0; color: #646970; } #latest-comments #the-comment-list .comment-meta cite { font-style: normal; font-weight: 400; } #latest-comments #the-comment-list .comment-item blockquote, #latest-comments #the-comment-list .comment-item blockquote p { margin: 0; padding: 0; display: inline; } #latest-comments #the-comment-list .comment-item p.row-actions { margin: 3px 0 0; padding: 0; font-size: 13px; } /* Feeds */ .rss-widget ul { margin: 0; padding: 0; list-style: none; } a.rsswidget { font-size: 13px; font-weight: 600; line-height: 1.4; } .rss-widget ul li { line-height: 1.5; margin-bottom: 12px; } .rss-widget span.rss-date { color: #646970; font-size: 13px; margin-left: 3px; } .rss-widget cite { display: block; text-align: right; margin: 0 0 1em; padding: 0; } .rss-widget cite:before { content: "\2014"; content: "\2014" / ''; } .dashboard-comment-wrap { word-wrap: break-word; } /* Browser Nag */ #dashboard_browser_nag a.update-browser-link { font-size: 1.2em; font-weight: 600; } #dashboard_browser_nag a { text-decoration: underline; } #dashboard_browser_nag p.browser-update-nag.has-browser-icon { padding-right: 128px; } #dashboard_browser_nag .browser-icon { margin-top: -32px; } #dashboard_browser_nag.postbox { background-color: #b32d2e; background-image: none; border-color: #b32d2e; color: #fff; box-shadow: none; } #dashboard_browser_nag.postbox h2 { border-bottom-color: transparent; background: transparent none; color: #fff; box-shadow: none; } #dashboard_browser_nag a { color: #fff; } #dashboard_browser_nag.postbox .postbox-header { border-color: transparent; } #dashboard_browser_nag h2.hndle { border: none; font-weight: 600; font-size: 20px; padding-top: 10px; } .postbox#dashboard_browser_nag p a.dismiss { font-size: 14px; } .postbox#dashboard_browser_nag p, .postbox#dashboard_browser_nag a, .postbox#dashboard_browser_nag p.browser-update-nag { font-size: 16px; } /* PHP Nag */ #dashboard_php_nag .dashicons-warning { color: #dba617; padding-right: 6px; } #dashboard_php_nag.php-no-security-updates .dashicons-warning, #dashboard_php_nag.php-version-lower-than-future-minimum .dashicons-warning { color: #d63638; } #dashboard_php_nag h2 { display: inline-block; } #dashboard_php_nag p { margin: 12px 0; } .bigger-bolder-text { font-weight: 600; font-size: 14px; } /* =Media Queries -------------------------------------------------------------- */ @media only screen and (min-width: 1600px) { .welcome-panel .welcome-panel-column-container { display: flex; justify-content: center; } .welcome-panel-column { width: 100%; max-width: 460px; } } /* one column on the dash */ @media only screen and (max-width: 799px) { #wpbody-content #dashboard-widgets .postbox-container { width: 100%; } #dashboard-widgets .meta-box-sortables { min-height: 0; } .is-dragging-metaboxes #dashboard-widgets .meta-box-sortables { min-height: 100px; } #dashboard-widgets .meta-box-sortables.empty-container { margin-bottom: 0; } } /* two columns on the dash, but keep the setting if one is selected */ @media only screen and (min-width: 800px) and (max-width: 1499px) { #wpbody-content #dashboard-widgets .postbox-container { width: 49.5%; } #wpbody-content #dashboard-widgets #postbox-container-2, #wpbody-content #dashboard-widgets #postbox-container-3, #wpbody-content #dashboard-widgets #postbox-container-4 { float: right; width: 50.5%; } #dashboard-widgets #postbox-container-3 .empty-container, #dashboard-widgets #postbox-container-4 .empty-container { border: none; height: 0; min-height: 0; margin-bottom: 0; display: none; } #dashboard-widgets #postbox-container-3 .empty-container:after, #dashboard-widgets #postbox-container-4 .empty-container:after { display: none; } #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { width: 100%; } #wpbody #dashboard-widgets .metabox-holder.columns-1 .postbox-container .empty-container { border: none; height: 0; min-height: 0; margin-bottom: 0; } /* show the radio buttons for column prefs only for one or two columns */ .index-php .screen-layout, .index-php .columns-prefs { display: block; } .columns-prefs .columns-prefs-3, .columns-prefs .columns-prefs-4 { display: none; } #dashboard-widgets .postbox-container .empty-container:after { display: block; } } /* three columns on the dash */ @media only screen and (min-width: 1500px) and (max-width: 1800px) { #wpbody-content #dashboard-widgets .postbox-container { width: 33.5%; } #wpbody-content #dashboard-widgets #postbox-container-1 { width: 33%; } #wpbody-content #dashboard-widgets #postbox-container-3, #wpbody-content #dashboard-widgets #postbox-container-4 { float: right; } #dashboard-widgets #postbox-container-4 .empty-container { border: none; height: 0; min-height: 0; margin-bottom: 0; display: none; } #dashboard-widgets #postbox-container-4 .empty-container:after { display: none; } #dashboard-widgets .postbox-container .empty-container:after { display: block; } } /* Always show the "Drag boxes here" CSS generated content on large screens. */ @media only screen and (min-width: 1801px) { #dashboard-widgets .postbox-container .empty-container:after { display: block; } } @media screen and (max-width: 870px) { /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column li { display: inline-block; margin-right: 13px; } /* @deprecated 5.9.0 -- Lists removed from welcome panel. */ .welcome-panel .welcome-panel-column ul { margin: 0.4em 0 0; } } @media screen and (max-width: 1180px) and (min-width: 783px) { .welcome-panel-column { grid-template-columns: 1fr; } [class*="welcome-panel-icon"], .welcome-panel-column > svg { display: none; } } @media screen and (max-width: 782px) { .welcome-panel .welcome-panel-column-container { grid-template-columns: 1fr; box-sizing: border-box; padding: 32px; width: 100%; } .welcome-panel .welcome-panel-column-content { max-width: 520px; } /* Keep the close icon from overlapping the Welcome text. */ .welcome-panel .welcome-panel-close { overflow: hidden; text-indent: 40px; white-space: nowrap; width: 20px; height: 20px; padding: 5px; top: 5px; right: 5px; } .welcome-panel .welcome-panel-close::before { position: absolute; top: 5px; left: -35px; } #dashboard-widgets h2 { padding: 12px; } #dashboard_recent_comments #the-comment-list .comment-item .avatar { height: 30px; width: 30px; margin: 4px 10px 5px 0; } .community-events-toggle-location { height: 38px; vertical-align: baseline; } #community-events-submit { margin-bottom: 0; } .community-events-form label, #dashboard-widgets .community-events-cancel.button-link { /* Same properties as the submit button for cross-browsers alignment. */ font-size: 14px; line-height: normal; padding: 6px 0; border: 1px solid transparent; } } /* Smartphone */ @media screen and (max-width: 600px) { .welcome-panel-header { padding: 32px 32px 64px; } .welcome-panel-header-image { display: none; } } @media screen and (max-width: 480px) { .welcome-panel-column { gap: 16px; } } @media screen and (max-width: 360px) { .welcome-panel-column { grid-template-columns: 1fr; } [class*="welcome-panel-icon"], .welcome-panel-column > svg { display: none; } } @media screen and (min-width: 355px) { .community-events .event-info { display: table-row; float: left; max-width: 59%; } .event-icon, .event-icon[aria-hidden="true"] { display: table-cell; } .event-info-inner { display: table-cell; } .community-events .event-date-time { float: right; max-width: 39%; } .community-events .event-date, .community-events .event-time { text-align: right; } } css/widgets-rtl.min.css000064400000034436152213653150011112 0ustar00/*! This file is auto-generated */ .widget{margin:0 auto 10px;position:relative;box-sizing:border-box}.widget.open{z-index:99}.widget.open:focus-within{z-index:100}.widget-top{font-size:13px;font-weight:600;background:#f6f7f7}.widget-top .widget-action{border:0;margin:0;padding:10px;background:0 0;cursor:pointer}.widget-title h3,.widget-title h4{margin:0;padding:15px;font-size:1em;line-height:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none}.widgets-holder-wrap .widget-inside{border-top:none;padding:1px 15px 15px;line-height:1.23076923}.widget.widget-dirty .widget-control-close-wrapper{display:none}#available-widgets .widget-description,#widgets-right a.widget-control-edit,.in-widget-title{color:#646970}.deleting .widget-title,.deleting .widget-top .widget-action .toggle-indicator:before{color:#a7aaad}.wp-core-ui .media-widget-control .selected,.wp-core-ui .media-widget-control.selected .not-selected,.wp-core-ui .media-widget-control.selected .placeholder{display:none}.media-widget-control.selected .selected{display:inline-block}.media-widget-buttons{text-align:right;margin-top:0}.media-widget-control .media-widget-buttons .button{width:auto;height:auto;margin-top:12px;white-space:normal}.media-widget-buttons .button:first-child{margin-left:8px}.media-widget-control .attachment-media-view .button-add-media,.media-widget-control .placeholder{border:1px dashed #c3c4c7;box-sizing:border-box;cursor:pointer;line-height:1.6;padding:9px 0;position:relative;text-align:center;width:100%}.media-widget-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.media-widget-control .attachment-media-view .button-add-media:hover{background-color:#fff}.media-widget-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-style:solid;border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8);outline:2px solid transparent;outline-offset:-2px}.media-widget-control .media-widget-preview{background:0 0;text-align:center}.media-widget-control .media-widget-preview .notice{text-align:initial}.media-frame .media-widget-embed-notice p code,.media-widget-control .notice p code{padding:0 0 0 3px}.media-frame .media-widget-embed-notice{margin-top:16px}.media-widget-control .media-widget-preview img{max-width:100%;vertical-align:middle;background-image:linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7),linear-gradient(-45deg,#c3c4c7 25%,transparent 25%,transparent 75%,#c3c4c7 75%,#c3c4c7);background-position:100% 0,10px 10px;background-size:20px 20px}.media-widget-control .media-widget-preview .wp-video-shortcode{background:#000}.media-frame.media-widget .media-toolbar-secondary{min-width:300px}.media-frame.media-widget .attachment-display-settings .setting.align,.media-frame.media-widget .checkbox-setting.autoplay,.media-frame.media-widget .embed-link-settings .setting.link-text,.media-frame.media-widget .embed-media-settings .legend-inline,.media-frame.media-widget .embed-media-settings .setting.align,.media-frame.media-widget .image-details .embed-media-settings .setting.align,.media-frame.media-widget .replace-attachment{display:none}.media-widget-video-preview{width:100%}.media-widget-video-link{display:inline-block;min-height:132px;width:100%;background:#000}.media-widget-video-link .dashicons{font:normal 60px/1 dashicons;position:relative;width:100%;top:-90px;color:#fff;text-decoration:none}.media-widget-video-link.no-poster .dashicons{top:30px}.media-frame #embed-url-field.invalid,.media-widget-image-link>.link:invalid{border:1px solid #d63638}.media-widget-image-link{margin:1em 0}.media-widget-gallery-preview{display:flex;justify-content:flex-start;flex-wrap:wrap;margin:-1.79104477%}.media-widget-preview.media_gallery,.media-widget-preview.media_image{cursor:pointer}.media-widget-preview .placeholder{background:#f0f0f1}.media-widget-gallery-preview .gallery-item{box-sizing:border-box;width:50%;margin:0;background:0 0}.media-widget-gallery-preview .gallery-item .gallery-icon{margin:4.5%}.media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child,.media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child~.gallery-item,.media-widget-gallery-preview .gallery-item:nth-last-child(n+5),.media-widget-gallery-preview .gallery-item:nth-last-child(n+5)~.gallery-item,.media-widget-gallery-preview .gallery-item:nth-last-child(n+6),.media-widget-gallery-preview .gallery-item:nth-last-child(n+6)~.gallery-item{max-width:33.33%}.media-widget-gallery-preview .gallery-item img{height:auto;vertical-align:bottom}.media-widget-gallery-preview .gallery-icon{position:relative}.media-widget-gallery-preview .gallery-icon-placeholder{position:absolute;top:0;bottom:0;width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.5)}.media-widget-gallery-preview .gallery-icon-placeholder-text{font-weight:600;font-size:2em;color:#fff}.widget.ui-draggable-dragging{min-width:100%}.widget.ui-sortable-helper{opacity:.8}.widget-placeholder{border:1px dashed #c3c4c7;margin:0 auto 10px;height:45px;width:100%;box-sizing:border-box}#widgets-right .widget-placeholder{margin-top:0}#widgets-right .closed .widget-placeholder{height:0;border:0;margin-top:-10px}.sidebar-name{position:relative;box-sizing:border-box}.js .sidebar-name{cursor:pointer}.sidebar-name .handlediv{float:left;width:38px;height:38px;border:0;margin:0;padding:8px;background:0 0;cursor:pointer;outline:0}#widgets-right .sidebar-name .handlediv{margin:5px 0 0 3px}.sidebar-name .handlediv:focus{box-shadow:none;outline:1px solid transparent}#widgets-left .sidebar-name .toggle-indicator{display:none}#widgets-left .sidebar-name .handlediv:focus .toggle-indicator,#widgets-left .sidebar-name:hover .toggle-indicator,#widgets-left .widgets-holder-wrap.closed .sidebar-name .toggle-indicator{display:block}.sidebar-name .toggle-indicator:before{padding:1px 0 1px 2px;border-radius:50%}.sidebar-name .handlediv:focus .toggle-indicator:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.sidebar-name h2,.sidebar-name h3{margin:0;padding:8px 10px;overflow:hidden;white-space:normal;line-height:1.5}.widgets-holder-wrap .description{padding:0 0 15px;margin:0;font-style:normal;color:#646970}.inactive-sidebar .description,.widget-holder .description{color:#50575e}#widgets-right .widgets-holder-wrap .description{padding-right:7px;padding-left:7px}div.widget-liquid-left{margin:0;width:38%;float:right}div.widget-liquid-right{float:left;width:58%}div#widgets-left{padding-top:12px}div#widgets-left .closed .sidebar-name,div#widgets-left .inactive-sidebar.closed .sidebar-name{margin-bottom:10px}div#widgets-left .sidebar-name h2,div#widgets-left .sidebar-name h3{padding:10px 0;margin:0 0 0 10px}#widgets-left .widgets-holder-wrap,div#widgets-left .widget-holder{background:0 0;border:none}#widgets-left .widgets-holder-wrap{border:none;box-shadow:none}#available-widgets .widget{margin:0}#available-widgets .widget:nth-child(odd){clear:both}#available-widgets .widget .widget-description{display:block;padding:10px 15px;font-size:12px;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;hyphens:auto}#available-widgets #widget-list{position:relative}#widgets-left .inactive-sidebar{clear:both;width:100%;background:0 0;padding:0;margin:0 0 20px;border:none;box-shadow:none}#widgets-left .inactive-sidebar.first{margin-top:40px}div#widgets-left .inactive-sidebar .widget.expanded{right:auto}.widget-title-action{float:left;position:relative}div#widgets-left .inactive-sidebar .widgets-sortables{min-height:42px;padding:0;background:0 0;margin:0;position:relative}div#widgets-right .sidebars-column-1,div#widgets-right .sidebars-column-2{max-width:450px}div#widgets-right .widgets-holder-wrap{margin:10px 0 0}div#widgets-right .sidebar-description{min-height:20px;margin-top:-5px}div#widgets-right .sidebar-name h2,div#widgets-right .sidebar-name h3{padding:15px 7px 15px 15px}div#widgets-right .widget-top{padding:0}div#widgets-right .widgets-sortables{padding:0 8px;margin-bottom:9px;position:relative;min-height:123px}div#widgets-right .closed .widgets-sortables{min-height:0;margin-bottom:0}.remove-inactive-widgets .spinner,.sidebar-name .spinner{float:none;position:relative;top:-2px;margin:-5px 5px}.sidebar-name .spinner{position:absolute;top:18px;left:30px}#widgets-right .widgets-holder-wrap.widget-hover{border-color:#787c82;box-shadow:0 1px 2px rgba(0,0,0,.3)}.widget-access-link{float:left;margin:-5px 10px 10px 0}.widgets_access #widgets-left .widget .widget-top{cursor:auto}.widgets_access #wpwrap .widget-control-edit,.widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description,.widgets_access #wpwrap .widgets-holder-wrap.closed .widget{display:block}.widgets_access #widgets-left .widget .widget-top:hover,.widgets_access #widgets-right .widget .widget-top:hover{border-color:#dcdcde}#available-widgets .widget-action .edit,#available-widgets .widget-control-edit .edit,#widgets-left .inactive-sidebar .widget-action .add,#widgets-left .inactive-sidebar .widget-control-edit .add,#widgets-right .widget-action .add,#widgets-right .widget-control-edit .add{display:none}.widget-control-edit{display:block;color:#646970;background:#f0f0f1;padding:0 15px;line-height:3.30769230;border-right:1px solid #dcdcde}#widgets-left .widget-control-edit:hover,#widgets-right .widget-control-edit:hover{color:#fff;background:#3c434a;border-right:0;outline:1px solid #3c434a}.widgets-holder-wrap .sidebar-description,.widgets-holder-wrap .sidebar-name{-webkit-user-select:none;user-select:none}.editwidget{margin:0 auto}.editwidget .widget-inside{display:block;padding:0 15px}.widget-control-actions{display:flex;align-items:center;justify-content:space-between}.editwidget .widget-control-actions{margin-top:20px}.js .closed br.clear,.js .widgets-holder-wrap.closed .description,.js .widgets-holder-wrap.closed .remove-inactive-widgets,.js .widgets-holder-wrap.closed .sidebar-description,.js .widgets-holder-wrap.closed .widget{display:none}.js .widgets-holder-wrap.closed .widget.ui-sortable-helper{display:block}.widget-description,.widget-inside{display:none}.widget-inside{background:#fff}.widget-inside select{max-width:100%}#removing-widget{display:none;font-weight:400;padding-right:15px;font-size:12px;line-height:1;color:#000}.js #removing-widget{color:#72aee6}#access-off,.no-js .widget-holder .description,.widget-control-noform,.widgets_access #access-on,.widgets_access .handlediv,.widgets_access .widget-action,.widgets_access .widget-holder .description{display:none}.widgets_access #widget-list,.widgets_access .widget-holder{padding-top:10px}.widgets_access #access-off{display:inline}.widgets_access .sidebar-name,.widgets_access .widget .widget-top{cursor:default}.widget-liquid-left #widgets-left.chooser #available-widgets .widget,.widget-liquid-left #widgets-left.chooser .inactive-sidebar{transition:opacity .1s linear}.widget-liquid-left #widgets-left.chooser #available-widgets .widget,.widget-liquid-left #widgets-left.chooser .inactive-sidebar{opacity:.2;pointer-events:none}.widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question{opacity:1;pointer-events:auto}#available-widgets .widget-top:hover,#widgets-left .widget-in-question .widget-top,#widgets-left .widget-top:hover,.widgets-chooser ul,div#widgets-right .widget-top:hover{border-color:#8c8f94;box-shadow:0 1px 2px rgba(0,0,0,.1)}.widgets-chooser ul.widgets-chooser-sidebars{margin:0;list-style-type:none;max-height:300px;overflow:auto}.widgets-chooser{display:none}.widgets-chooser ul{border:1px solid #c3c4c7}.widgets-chooser li{border-bottom:1px solid #c3c4c7;background:#fff;margin:0;position:relative}.widgets-chooser .widgets-chooser-button{width:100%;padding:10px 35px 10px 15px;background:0 0;border:0;box-sizing:border-box;text-align:right;cursor:pointer;transition:background .2s ease-in-out}.widgets-chooser .widgets-chooser-button:focus,.widgets-chooser .widgets-chooser-button:hover{outline:0;text-decoration:underline}.widgets-chooser li:last-child{border:none}.widgets-chooser .widgets-chooser-selected .widgets-chooser-button{background:var(--wp-admin-theme-color,#3858e9);color:#fff}.widgets-chooser .widgets-chooser-selected:before{content:"\f147";content:"\f147"/'';display:block;-webkit-font-smoothing:antialiased;font:normal 26px/1 dashicons;color:#fff;position:absolute;top:7px;right:5px}.widgets-chooser .widgets-chooser-actions{padding:10px 0 12px;text-align:center}#available-widgets .widget .widget-top{cursor:pointer}#available-widgets .widget.ui-draggable-dragging .widget-top{cursor:move}.text-widget-fields{position:relative}.text-widget-fields [hidden]{display:none}.text-widget-fields .wp-pointer.wp-pointer-top{position:absolute;z-index:3;top:100px;left:10px;right:10px}.text-widget-fields .wp-pointer .wp-pointer-arrow{right:auto;left:15px}.text-widget-fields .wp-pointer .wp-pointer-buttons{line-height:1.4}.custom-html-widget-fields>p>.CodeMirror{border:1px solid #dcdcde}.custom-html-widget-fields code{padding-top:1px;padding-bottom:1px}ul.CodeMirror-hints{z-index:101}.widget-control-actions .custom-html-widget-save-button.button.validation-blocked{cursor:not-allowed}@media screen and (max-width:782px){.editwidget .widget-inside input[type=checkbox],.editwidget .widget-inside input[type=radio],.widgets-holder-wrap .widget-inside input[type=checkbox],.widgets-holder-wrap .widget-inside input[type=radio]{margin:.25rem 0 .25rem .25rem}}@media screen and (max-width:480px){div.widget-liquid-left{width:100%;float:none;border-left:none;padding-left:0}#widgets-left .sidebar-name{margin-left:0}#widgets-left #available-widgets .widget-top{margin-left:0}#widgets-left .inactive-sidebar .widgets-sortables{margin-left:0}div.widget-liquid-right{width:100%;float:none}div.widget{max-width:480px}.widget-access-link{float:none;margin:15px 0 0}}@media screen and (max-width:320px){div.widget{max-width:320px}}@media only screen and (min-width:1250px){#widgets-left #available-widgets .widget{width:49%;float:right}.widget.ui-draggable-dragging{min-width:49%}#widgets-left #available-widgets .widget:nth-child(2n){float:left}#widgets-right .sidebars-column-1,#widgets-right .sidebars-column-2{float:right;width:49%}#widgets-right .sidebars-column-1{margin-left:2%}#widgets-right.single-sidebar .sidebars-column-1,#widgets-right.single-sidebar .sidebars-column-2{float:none;width:100%;margin:0}}css/forms.min.css000064400000072765152213653150010002 0ustar00/*! This file is auto-generated */ button,input,select,textarea{box-sizing:border-box;font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea{font-size:14px}textarea{overflow:auto;padding:8px 12px;line-height:1.42857143;resize:vertical}input,select{margin:0 1px}textarea.code{padding:8px 12px}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{box-shadow:0 0 0 transparent;border-radius:2px;border:1px solid #949494;background-color:#fff;color:#1e1e1e}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{padding:0 12px;min-height:40px}select{padding:0 24px 0 12px;line-height:2.71428571;min-height:40px}::-webkit-datetime-edit{line-height:1.85714286}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:2px solid transparent}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.ltr,input[type=email],input[type=password],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #1e1e1e;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;height:1rem;margin:-.25rem .25rem 0 0;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:1rem;min-width:1rem;-webkit-appearance:none;box-shadow:none;transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#949494}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#135e96}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{display:inline-flex;border-radius:50%;margin-right:.25rem;align-items:center;justify-content:center}input[type=checkbox]:checked::before,input[type=radio]:checked::before{float:left;display:inline-block;vertical-align:middle;width:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked::before{content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E");content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E")/'';margin:-.1875rem 0 0 -.25rem;height:1.3125rem;width:1.3125rem}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked::before{content:"";border-radius:50%;width:.5rem;height:.5rem;margin:auto;background-color:#fff;outline:4px solid transparent}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}input[type=search]::-webkit-search-cancel-button{cursor:pointer}.wp-admin input[type=file]{padding:3px 0;cursor:pointer}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#f0f0f0}::-webkit-input-placeholder{color:#757575}::-moz-placeholder{color:#757575}.form-invalid .form-required,.form-invalid .form-required:focus,.form-invalid.form-required input,.form-invalid.form-required input:focus,.form-invalid.form-required select,.form-invalid.form-required select:focus{border-color:#d63638!important;box-shadow:0 0 2px rgba(214,54,56,.8)}.form-table .form-required.form-invalid td:after{content:"\f534";content:"\f534"/'';font:normal 20px/1 dashicons;color:#d63638;margin-left:-25px;vertical-align:middle}.form-table .form-required.user-pass1-wrap.form-invalid td:after{content:""}.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after{content:"\f534";content:"\f534"/'';font:normal 20px/1 dashicons;color:#d63638;margin:0 6px 0 -29px;vertical-align:middle}.form-input-tip{color:#646970}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:#f0f0f0;border-color:#ccc;box-shadow:none;color:#949494}input[type=file].disabled,input[type=file]:disabled,input[type=file][aria-disabled=true],input[type=range].disabled,input[type=range]:disabled,input[type=range][aria-disabled=true]{background:0 0;box-shadow:none;cursor:default}input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=checkbox][aria-disabled=true],input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=radio][aria-disabled=true]{opacity:.7;cursor:default}.wp-core-ui select{font-size:14px;line-height:2.71428571;color:#1e1e1e;border-color:#949494;box-shadow:none;border-radius:2px;padding:0 24px 0 12px;min-height:40px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%231e1e1e%22%2F%3E%3C%2Fsvg%3E') no-repeat right 8px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle}.wp-core-ui select:hover{color:#1e1e1e;border-color:#1e1e1e}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);color:#1e1e1e;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui select:active{border-color:#949494;box-shadow:none}.wp-core-ui select.disabled,.wp-core-ui select:disabled{color:#a7aaad;border-color:#dcdcde;background-color:#f6f7f7;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.wp-core-ui select[aria-disabled=true]{cursor:default}.wp-core-ui select:-moz-focusring{color:transparent;text-shadow:0 0 0 #0a4b78}.wp-core-ui select::-ms-value{background:0 0;color:#50575e}.wp-core-ui select:hover::-ms-value{color:#1e1e1e}.wp-core-ui select:focus::-ms-value{color:#0a4b78}.wp-core-ui select.disabled::-ms-value,.wp-core-ui select:disabled::-ms-value{color:#a7aaad}.wp-core-ui select::-ms-expand{display:none}.wp-admin .button-cancel{display:inline-block;min-height:28px;padding:0 5px;line-height:2}.meta-box-sortables select{max-width:100%}.meta-box-sortables input{vertical-align:middle}.misc-pub-post-status select{margin-top:0}.wp-core-ui select[multiple]{height:auto;padding-right:8px;background:#fff}.submit{padding:1.5em 0;margin:5px 0;border-bottom-left-radius:3px;border-bottom-right-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:left;max-width:100%;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:right}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}.regular-text{width:25em}input.small-text{width:50px;padding:0 8px}label input.small-text{margin-top:-4px}input[type=number].small-text{width:65px;padding-right:4px}input.tiny-text{width:35px}input[type=number].tiny-text{width:45px;padding-right:0}#doaction,#doaction2,#post-query-submit{margin:0 8px 0 0;min-height:32px;line-height:2.30769231;padding:0 12px}.no-js input#changeit2,.no-js input#doaction2,.no-js label[for=bulk-action-selector-bottom],.no-js label[for=new_role2],.no-js select#bulk-action-selector-bottom,.no-js select#new_role2{display:none}.wp-core-ui .tablenav input[type=date],.wp-core-ui .tablenav input[type=datetime-local],.wp-core-ui .tablenav input[type=datetime],.wp-core-ui .tablenav input[type=email],.wp-core-ui .tablenav input[type=month],.wp-core-ui .tablenav input[type=number],.wp-core-ui .tablenav input[type=password],.wp-core-ui .tablenav input[type=search],.wp-core-ui .tablenav input[type=tel],.wp-core-ui .tablenav input[type=text],.wp-core-ui .tablenav input[type=time],.wp-core-ui .tablenav input[type=url],.wp-core-ui .tablenav input[type=week],.wp-core-ui .tablenav select{padding:0 12px;line-height:2.14285714;min-height:32px}.wp-core-ui .tablenav select{float:left;margin-right:6px;max-width:12.5rem;padding:0 24px 0 8px}.wp-core-ui .tablenav .button{min-height:32px;line-height:2.30769231;padding:0 12px}#timezone_string option{margin-left:1em}.wp-core-ui .button.wp-cancel-pw>.dashicons,.wp-core-ui .button.wp-hide-pw>.dashicons{width:1.25rem;height:1.25rem;font-size:20px;line-height:1;vertical-align:middle}.button.wp-hide-pw.user-new-password-toggle{display:inline-flex;align-items:center;column-gap:4px}.wp-cancel-pw .dashicons-no{display:none}#your-profile label+a,label{vertical-align:middle}#your-profile label+a,fieldset label{vertical-align:middle}.options-media-php [for*="_size_"]{min-width:10em;vertical-align:baseline}.options-media-php .small-text[name*="_size_"]{margin:0 0 1em}.wp-generate-pw{margin-top:1em;position:relative}.wp-pwd button{height:min-content}.wp-pwd{margin-top:1em;position:relative}.mailserver-pass-wrap .wp-pwd{display:inline-block;margin-top:0}#mailserver_pass{padding-right:2.5rem}.mailserver-pass-wrap .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;min-width:40px;margin:0;padding:0 9px;position:absolute;right:0;top:0}.mailserver-pass-wrap .button.wp-hide-pw:hover{background:0 0;border-color:transparent}.mailserver-pass-wrap .button.wp-hide-pw:focus{background:0 0;border-color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.mailserver-pass-wrap .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}#misc-publishing-actions label{vertical-align:baseline}#pass-strength-result{background-color:#f0f0f0;border:1px solid #ccc;border-radius:2px;color:#1e1e1e;margin:-1px 1px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#ffabaf;border-color:#e65054;opacity:1}#pass-strength-result.bad{background-color:#facfd2;border-color:#f86368;opacity:1}#pass-strength-result.good{background-color:#f5e6ab;border-color:#f0c33c;opacity:1}#pass-strength-result.strong{background-color:#b8e6bf;border-color:#68de7c;opacity:1}.password-input-wrapper{display:inline-block}.password-input-wrapper input{font-family:Consolas,Monaco,monospace}#pass1-text.short,#pass1.short{border-color:#e65054}#pass1-text.bad,#pass1.bad{border-color:#f86368}#pass1-text.good,#pass1.good{border-color:#f0c33c}#pass1-text.strong,#pass1.strong{border-color:#68de7c}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.pw-weak{display:none}.indicator-hint{padding-top:8px}.wp-pwd [type=password],.wp-pwd [type=text]{margin-bottom:0;min-height:40px}.wp-pwd input::-ms-reveal{display:none}#pass1-text,.show-password #pass1{display:none}#pass1-text::-ms-clear{display:none}.show-password #pass1-text{display:inline-block}.wp-pwd .caps-warning{display:none;position:relative;background:#fcf9e8;border:1px solid #f0c33c;color:#1d2327;padding:6px 10px;top:-8px}.profile-php .wp-pwd .caps-warning{padding:3px 5px;top:-4px;border-radius:2px}.wp-pwd .caps-icon{display:inline-flex;justify-content:center;width:20px;height:20px;margin-right:5px;vertical-align:middle}.wp-pwd .caps-warning-text{vertical-align:middle}p.search-box{display:flex;flex-wrap:wrap;align-items:center;column-gap:.5rem;position:relative;float:right;margin:11px 0}p.search-box input[type=search],p.search-box input[type=text]{min-height:32px;padding:0 8px}p.search-box .button{min-height:32px;line-height:2.30769231;padding:0 12px}.network-admin.themes-php p.search-box{clear:left}.tablenav .search-plugins input[name="s"]{float:left;margin:0 4px 0 0}.tagsdiv .newtag{margin:0}.js.plugins-php .search-box .wp-filter-search{margin:0;width:280px}input[type=email].ui-autocomplete-loading,input[type=text].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:right 5px center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 0 0 14px}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:left;cursor:pointer}.ui-autocomplete .ui-state-focus{background-color:#dcdcde}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color);color:#fff;outline:2px solid transparent}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#1d2327;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:left;padding:20px 10px 20px 0;width:200px;line-height:1.3;font-weight:600}.form-table .td-full,.form-table th.th-full{width:auto;padding:20px 10px 20px 0;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table .date-time-doc{margin-top:1em}.form-table p.timezone-info{margin:1em 0;display:flex;flex-direction:column}#local-time{margin-top:.5em}.form-table td fieldset label{margin:.35em 0 .5em!important;display:inline-block}.form-table td fieldset p label{margin-top:0!important}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-right:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px}.color-option.selected,.color-option:hover{background:#dcdcde}.color-palette{display:table;width:100%;border-spacing:0;border-collapse:collapse}.color-palette .color-palette-shade,.color-palette td{display:table-cell;height:20px;padding:0;border:none}.color-option{cursor:pointer}.create-application-password .form-field{max-width:25em}.create-application-password label{font-weight:600}.create-application-password p.submit{margin-bottom:0;padding-bottom:0;display:block}#application-passwords-section .notice{margin-top:20px;margin-bottom:0;word-wrap:break-word}.application-password-display input.code{margin-bottom:6px;width:100%;max-width:20em}.auth-app-card.card{max-width:768px}.authorize-application-php .form-wrap p{display:block}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.label-responsive{vertical-align:middle}#export-filters p{margin:0 0 1em}#export-filters p.submit{margin:7px 0 5px}.card{position:relative;margin-top:20px;padding:16px 24px;min-width:255px;max-width:520px;border:1px solid rgb(0,0,0,.1);border-radius:8px;background:#fff;box-sizing:border-box}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}#pressthis-code-wrap{overflow:auto}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#2c3338;background:#dcdcde;border-radius:5px;border:1px solid #c3c4c7;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:"";width:70%;height:55%;z-index:-1;position:absolute;right:10px;bottom:9px;background:0 0;transform:skew(20deg) rotate(6deg);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{transform:skew(20deg) rotate(9deg);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 12px 8px 9px}.pressthis-bookmarklet span:before{color:#787c82;font:normal 20px/1 dashicons;content:"\f157";content:"\f157"/'';position:relative;display:inline-block;top:4px;margin-right:4px}.pressthis-js-toggle{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle.button.button{margin-left:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle .dashicons{margin:5px 8px 6px 7px;color:#50575e}.timezone-info code{white-space:nowrap}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php .date-time-text{display:inline-block;min-width:10em}.options-general-php input.small-text{width:56px;margin:-2px 0;min-height:32px}.options-general-php .spinner{float:none;margin:-3px 3px 0}.options-general-php .language-install-spinner,.profile-php .language-install-spinner,.settings-php .language-install-spinner,.user-edit-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.form-table.permalink-structure .available-structure-tags{margin-top:8px}.form-table.permalink-structure .available-structure-tags ul{display:flex;flex-wrap:wrap;margin:8px 0 0}.form-table.permalink-structure .available-structure-tags li{margin:6px 5px 0 0}.form-table.permalink-structure .available-structure-tags li:last-child{margin-right:0}.form-table.permalink-structure .structure-selection .row{margin-bottom:16px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 24px);display:inline-flex;flex-direction:column}.form-table.permalink-structure .structure-selection .row label{font-weight:600}.form-table.permalink-structure .structure-selection .row p{margin-top:0}.permalink-structure-optional-description code{display:inline-block}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:60%}.configuration-rules-label{font-weight:600;margin-bottom:4px}.request-filesystem-credentials-dialog{display:none;visibility:visible}.request-filesystem-credentials-dialog .notification-dialog{top:10%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}#request-filesystem-credentials-title{font-size:1.3em;margin:1em 0}.request-filesystem-credentials-form legend{font-size:1em;padding:1.33em 0;font-weight:600}.request-filesystem-credentials-form input[type=password],.request-filesystem-credentials-form input[type=text]{display:block}.request-filesystem-credentials-dialog input[type=password],.request-filesystem-credentials-dialog input[type=text]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=private_key],.request-filesystem-credentials-dialog label[for=public_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:left;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-left:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:right}.request-filesystem-credentials-dialog label[for=ftp]{margin-right:10px}.request-filesystem-credentials-dialog #auth-keys-desc{margin-bottom:0}#request-filesystem-credentials-dialog .button:not(:last-child){margin-right:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:none;width:auto}.request-filesystem-credentials-dialog .ftp-username{margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password{margin:0}.request-filesystem-credentials-dialog .ftp-password em{color:#757575}.request-filesystem-credentials-dialog label{display:block;line-height:1.5;margin-bottom:1em}.request-filesystem-credentials-form legend{padding-bottom:0}.request-filesystem-credentials-form #ssh-keys legend{font-size:1.3em}.request-filesystem-credentials-form .notice{margin:0 0 20px;clear:both}.tools-privacy-policy-page form{margin-bottom:1.3em}.tools-privacy-policy-page input.button{margin:0 1px 0 6px}.tools-privacy-policy-page select{margin:0 1px .5em 6px}.tools-privacy-edit{margin:1.5em 0}.tools-privacy-policy-page span{line-height:2}.privacy_requests .column-email{width:40%}.privacy_requests .column-type{text-align:center}.privacy_requests tfoot td:first-child,.privacy_requests thead td:first-child{border-left:4px solid #fff}.privacy_requests tbody th{border-left:4px solid #fff;background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests .row-actions{color:#787c82}.privacy_requests .row-actions.processing{position:static}.privacy_requests tbody .has-request-results th{box-shadow:none}.privacy_requests tbody .request-results th .notice{margin:0 0 5px}.privacy_requests tbody td{background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests tbody .has-request-results td{box-shadow:none}.privacy_requests .next_steps .button{word-wrap:break-word;white-space:normal}.privacy_requests .status-request-confirmed td,.privacy_requests .status-request-confirmed th{background-color:#fff;border-left-color:#72aee6}.privacy_requests .status-request-failed td,.privacy_requests .status-request-failed th{background-color:#f6f7f7;border-left-color:#d63638}.privacy_requests .export_personal_data_failed a{vertical-align:baseline}.status-label{font-weight:600}.status-label.status-request-pending{font-weight:400;font-style:italic;color:#646970}.status-label.status-request-failed{color:#d63638;font-weight:600}.privacy_requests .status-date{display:block;font-weight:400}.wp-privacy-request-form{clear:both}.wp-privacy-request-form-field{margin:1.5em 0}.wp-privacy-request-form input{margin:0}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:0 12px;min-height:40px}::-webkit-datetime-edit{line-height:1.875}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{width:1.875rem;height:1.875rem;margin:-.1875rem -.3125rem}input[type=checkbox],input[type=radio]{height:1.5625rem;width:1.5625rem}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-.1875rem}input[type=radio]:checked:before{vertical-align:middle;width:.5625rem;height:.5625rem;margin:.4375rem;line-height:.76190476}.wp-admin .form-table select,.wp-core-ui select{min-height:40px;font-size:16px;line-height:2.5;padding:0 24px 0 12px}.wp-admin .button-cancel{margin-bottom:0;padding:2px 0;font-size:14px;vertical-align:middle}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{box-sizing:border-box}.form-table td,.form-table th,.label-responsive{display:block;width:auto;vertical-align:middle}.label-responsive{margin:.5em 0}.export-filters li{margin-bottom:0}.form-table .color-palette .color-palette-shade,.form-table .color-palette td{display:table-cell;width:15px;height:30px;padding:0}.form-table .color-palette{margin-right:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td select,.form-table td textarea{width:100%;display:block;max-width:none;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:right;margin:-30px 3px 0 0}.form-table input[type=text].small-text,input[type=number].small-text,input[type=password].small-text,input[type=search].small-text,input[type=text].small-text{width:auto;max-width:4.375em;display:inline;padding:3px 6px;margin:0 3px}.form-table .regular-text~input[type=text].small-text{margin-top:5px}#pass-strength-result{width:100%;box-sizing:border-box;padding:8px}.profile-php .wp-pwd .caps-warning{padding:8px}.password-input-wrapper{display:block}p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}p.search-box input[name="s"]{width:100%;float:none;margin-bottom:10px;vertical-align:middle}.js.plugins-php .search-box .wp-filter-search{width:100%;margin-bottom:0}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4;font-size:14px}.form-table th{padding:10px 0 0;border-bottom:0}.form-table td{margin-bottom:0;padding:4px 0 6px}.form-table.permalink-structure td code{display:inline-block}.form-table.permalink-structure .structure-selection{margin-top:8px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 36px);width:100%}.form-table.permalink-structure td input[type=text]{margin-top:4px}.permalink-structure-has-blog-prefix{display:flex;align-items:center}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table td>label:first-child{display:inline-block;margin-top:.35em}.background-position-control .button-group>label{font-size:0}.form-table fieldset label{display:block}.form-field #domain{max-width:none}.wp-pwd{position:relative}#profile-page .form-table #pass1{padding-right:90px}.wp-pwd button.button{background:0 0;border:1px solid transparent;box-shadow:none;line-height:2;margin:0;padding:5px 9px;position:absolute;right:0;top:0;width:2.375rem;height:2.375rem;min-width:40px;min-height:40px}.wp-pwd button.wp-hide-pw{right:2.5rem}body.user-new-php .wp-pwd button.wp-hide-pw{right:0}.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd button.button:active{background:0 0;box-shadow:none;transform:none}.wp-pwd .button .text{display:none}.wp-pwd [type=password],.wp-pwd [type=text]{line-height:2;padding-right:5rem}body.user-new-php .wp-pwd [type=password],body.user-new-php .wp-pwd [type=text]{padding-right:2.5rem}.wp-cancel-pw .dashicons-no{display:inline-block}.mailserver-pass-wrap .wp-pwd{display:block}#mailserver_pass{padding-left:10px}.options-general-php input[type=text].small-text{max-width:6.25em;margin:0}.tools-privacy-policy-page form.wp-create-privacy-page{margin-bottom:1em}.tools-privacy-policy-page input#set-page,.tools-privacy-policy-page select{margin:10px 0 0}.tools-privacy-policy-page .wp-create-privacy-page span{display:block;margin-bottom:1em}.tools-privacy-policy-page .wp-create-privacy-page .button{margin-left:0}.wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column){display:table-cell}.wp-list-table.privacy_requests.widefat th input,.wp-list-table.privacy_requests.widefat thead td input{margin-left:5px}.wp-privacy-request-form-field input[type=text]{width:100%;margin-bottom:10px;vertical-align:middle}.regular-text{max-width:100%}}@media only screen and (max-width:768px){.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}}@media only screen and (max-height:480px),screen and (max-width:450px){.file-editor-warning .notification-dialog,.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;left:0}}@media screen and (max-width:600px){.color-option{width:49%}}@media only screen and (max-width:320px){.options-general-php .date-time-text.date-time-custom-text{min-width:0;margin-right:.5em}}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}css/common-rtl.css000064400000235547152213653150010160 0ustar00/*! This file is auto-generated */ /* 2 column liquid layout */ #wpwrap { height: auto; min-height: 100%; width: 100%; position: relative; -webkit-font-smoothing: subpixel-antialiased; } #wpcontent { height: 100%; padding-right: 20px; } #wpcontent, #wpfooter { margin-right: 160px; } .folded #wpcontent, .folded #wpfooter { margin-right: 36px; } #wpbody-content { padding-bottom: 65px; float: right; width: 100%; overflow: visible; } /* inner 2 column liquid layout */ .inner-sidebar { float: left; clear: left; display: none; width: 281px; position: relative; } .columns-2 .inner-sidebar { margin-left: auto; width: 286px; display: block; } .inner-sidebar #side-sortables, .columns-2 .inner-sidebar #side-sortables { min-height: 300px; width: 280px; padding: 0; } .has-right-sidebar .inner-sidebar { display: block; } .has-right-sidebar #post-body { float: right; clear: right; width: 100%; margin-left: -2000px; } .has-right-sidebar #post-body-content { margin-left: 300px; float: none; width: auto; } /* 2 columns main area */ #col-left { float: right; width: 35%; } #col-right { float: left; width: 65%; } #col-left .col-wrap { padding: 0 0 0 6px; } #col-right .col-wrap { padding: 0 6px 0 0; } /* utility classes */ .alignleft { float: right; } .alignright { float: left; } .textleft { text-align: right; } .textright { text-align: left; } .clear { clear: both; } /* modern clearfix */ .wp-clearfix:after { content: ""; display: table; clear: both; } /* Hide visually but not from screen readers */ .screen-reader-text, .screen-reader-text span, .ui-helper-hidden-accessible { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ word-wrap: normal !important; word-break: normal !important; } .button .screen-reader-text { height: auto; /* Fixes a Safari+VoiceOver bug, see ticket #42006 */ } .screen-reader-text + .dashicons-external { margin-top: -1px; margin-right: 2px; text-decoration: none; } .screen-reader-shortcut { position: absolute; top: -1000em; right: 6px; height: auto; width: auto; display: block; font-size: 14px; font-weight: 600; padding: 15px 23px 14px; /* Background and color set to prevent false positives in automated accessibility tests. */ background: #ffffff; color: var(--wp-admin-theme-color, #3858e9); z-index: 100000; line-height: normal; } .screen-reader-shortcut:focus { top: -25px; /* Overrides a:focus in the admin. See ticket #56789. */ color: var(--wp-admin-theme-color, #3858e9); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); text-decoration: none; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; outline-offset: -2px; } .hidden, .js .closed .inside, .js .hide-if-js, .no-js .hide-if-no-js, .js.wp-core-ui .hide-if-js, .js .wp-core-ui .hide-if-js, .no-js.wp-core-ui .hide-if-no-js, .no-js .wp-core-ui .hide-if-no-js { display: none; } /* @todo: Take a second look. Large chunks of shared color, from the colors.css merge */ .widget-top, .menu-item-handle, .widget-inside, #menu-settings-column .accordion-container, #menu-management .menu-edit, .manage-menus, table.widefat, .stuffbox, p.popular-tags, .widgets-holder-wrap, .wp-editor-container, .popular-tags, .feature-filter, .comment-ays { border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } table.widefat, .wp-editor-container, .stuffbox, p.popular-tags, .widgets-holder-wrap, .popular-tags, .feature-filter, .comment-ays { background: #fff; } /* general */ html, body { height: 100%; margin: 0; padding: 0; } body { background: #f0f0f1; color: #3c434a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.4em; min-width: 600px; } body.iframe { min-width: 0; padding-top: 1px; } body.modal-open { overflow: hidden; } body.mobile.modal-open #wpwrap { overflow: hidden; position: fixed; height: 100%; } iframe, img { border: 0; } td { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; } /* Any change to the default link style must be applied to button-link too. */ a { color: #2271b1; transition-property: border, background, color; transition-duration: .05s; transition-timing-function: ease-in-out; } a, div { outline: 0; } a:hover, a:active { color: #135e96; } a:focus, a:focus .media-icon img, a:focus .plugin-icon, .wp-person a:focus .gravatar { color: #043959; border-radius: 2px; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #adminmenu a:focus { box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; outline-offset: -1px; } .screen-reader-text:focus { box-shadow: none; outline: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; } p, .wp-die-message { font-size: 13px; line-height: 1.5; margin: 1em 0; } blockquote { margin: 1em; } li, dd { margin-bottom: 6px; } h1, h2, h3, h4, h5, h6 { display: block; font-weight: 600; } h1 { color: #1d2327; font-size: 2em; margin: .67em 0; } h2, h3 { color: #1d2327; font-size: 1.3em; margin: 1em 0; } .update-core-php h2 { margin-top: 4em; } .update-php h2, .update-messages h2, h4 { font-size: 1em; margin: 1.33em 0; } h5 { font-size: 0.83em; margin: 1.67em 0; } h6 { font-size: 0.67em; margin: 2.33em 0; } ul, ol { padding: 0; } ul { list-style: none; } ol { list-style-type: decimal; margin-right: 2em; } ul.ul-disc { list-style: disc outside; } ul.ul-square { list-style: square outside; } ol.ol-decimal { list-style: decimal outside; } ul.ul-disc, ul.ul-square, ol.ol-decimal { margin-right: 1.8em; } ul.ul-disc > li, ul.ul-square > li, ol.ol-decimal > li { margin: 0 0 0.5em; } /* rtl:ignore */ .ltr { direction: ltr; } /* rtl:ignore */ .code, code { font-family: Consolas, Monaco, monospace; direction: ltr; unicode-bidi: embed; } kbd, code { padding: 3px 5px 2px; margin: 0 1px; background: #f0f0f1; background: rgba(0, 0, 0, 0.07); font-size: 13px; } .subsubsub { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; float: right; color: #646970; } .subsubsub a { line-height: 2; padding: .2em; text-decoration: none; } .subsubsub a .count, .subsubsub a.current .count { color: #50575e; /* #f1f1f1 background */ font-weight: 400; } .subsubsub a.current { font-weight: 600; border: none; } .subsubsub li { display: inline-block; margin: 0; padding: 0; white-space: nowrap; } /* .widefat - main style for tables */ .widefat { border-spacing: 0; width: 100%; clear: both; margin: 0; } .widefat * { word-wrap: break-word; } .widefat a, .widefat button.button-link { text-decoration: none; } .widefat td, .widefat th { padding: 8px 10px; } .widefat thead th, .widefat thead td { border-bottom: 1px solid #c3c4c7; } .widefat tfoot th, .widefat tfoot td { border-top: 1px solid #c3c4c7; border-bottom: none; } .widefat .no-items td { border-bottom-width: 0; } .widefat td { vertical-align: top; } .widefat td, .widefat td p, .widefat td ol, .widefat td ul { font-size: 13px; line-height: 1.5em; } .widefat th, .widefat thead td, .widefat tfoot td { text-align: right; line-height: 1.3em; font-size: 14px; } .widefat th input, .updates-table td input, .widefat thead td input, .widefat tfoot td input { margin: 0 8px 0 0; padding: 0; vertical-align: text-top; } .widefat .check-column { width: 2.2em; padding: 6px 0 25px; vertical-align: top; } .widefat tbody th.check-column { padding: 9px 0 22px; } .widefat thead td.check-column, .widefat tbody th.check-column, .updates-table tbody td.check-column, .widefat tfoot td.check-column { padding: 11px 3px 0 0; } .widefat thead td.check-column, .widefat tfoot td.check-column { padding-top: 4px; vertical-align: middle; } .update-php div.updated, .update-php div.error { margin-right: 0; } .js-update-details-toggle .dashicons { text-decoration: none; } .js-update-details-toggle[aria-expanded="true"] .dashicons::before { content: "\f142"; content: "\f142" / ''; } .no-js .widefat thead .check-column input, .no-js .widefat tfoot .check-column input { display: none; } .widefat .num, .column-comments, .column-links, .column-posts { text-align: center; } .widefat th#comments { vertical-align: middle; } .wrap { margin: 10px 2px 0 20px; } .wrap > h2:first-child, /* Back-compat for pre-4.4 */ .wrap [class$="icon32"] + h2, /* Back-compat for pre-4.4 */ .postbox .inside h2, /* Back-compat for pre-4.4 */ .wrap h1 { font-size: 23px; font-weight: 400; margin: 0; padding: 9px 0 4px; line-height: 1.3; } .wrap h1.wp-heading-inline { display: inline-block; margin-left: 5px; } .wp-header-end { visibility: hidden; margin: -2px 0 0; } .subtitle { margin: 0; padding-right: 25px; color: #50575e; font-size: 14px; font-weight: 400; line-height: 1; } .subtitle strong { word-break: break-all; } .wrap .add-new-h2, /* deprecated */ .wrap .add-new-h2:active, /* deprecated */ .wrap .page-title-action, .wrap .page-title-action:active { display: inline-block; position: relative; box-sizing: border-box; cursor: pointer; white-space: nowrap; text-decoration: none; text-shadow: none; top: -3px; margin-right: 4px; border: 1px solid #2271b1; border-radius: 2px; background: transparent; font-size: 13px; font-weight: 500; min-height: 32px; line-height: 2.30769231; /* 30px for 32px height */ color: #2271b1; /* use the standard color used for buttons */ padding: 0 12px; -webkit-appearance: none; } .wrap .wp-heading-inline + .page-title-action { margin-right: 0; } .wrap .add-new-h2:hover, /* deprecated */ .wrap .page-title-action:hover { border-color: #0a4b78; color: #0a4b78; } /* lower specificity: color needs to be overridden by :hover and :active */ .page-title-action:focus { color: #0a4b78; } /* Dashicon for language options on General Settings and Profile screens */ .form-table th label[for="locale"] .dashicons, .form-table th label[for="WPLANG"] .dashicons { margin-right: 5px; } .wrap .page-title-action:focus { border-color: #3582c4; box-shadow: 0 0 0 1px #3582c4; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .wrap h1.long-header { padding-left: 0; } .wp-dialog { background-color: #fff; } .widgets-chooser ul, #widgets-left .widget-in-question .widget-top, #available-widgets .widget-top:hover, div#widgets-right .widget-top:hover, #widgets-left .widget-top:hover { border-color: #8c8f94; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .sorthelper { background-color: #c5d9ed; } .ac_match, .subsubsub a.current { color: #000; } .striped > tbody > :nth-child(odd), ul.striped > :nth-child(odd), .alternate { background-color: #f6f7f7; } .bar { background-color: #f0f0f1; border-left-color: var(--wp-admin-theme-color); } /* Helper classes for plugins to leverage the active WordPress color scheme */ .highlight { background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08); color: #3c434a; } .wp-ui-primary { color: #fff; background-color: #2c3338; } .wp-ui-text-primary { color: #2c3338; } .wp-ui-highlight { color: #fff; background-color: #2271b1; } .wp-ui-text-highlight { color: #2271b1; } .wp-ui-notification { color: #fff; background-color: #d63638; } .wp-ui-text-notification { color: #d63638; } .wp-ui-text-icon { color: #8c8f94; /* same as new icons */ } /* For emoji replacement images */ img.emoji { display: inline !important; border: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; box-shadow: none !important; } /*------------------------------------------------------------------------------ 1.0 - Text Styles ------------------------------------------------------------------------------*/ .widget .widget-top, .postbox .hndle, .stuffbox .hndle, .control-section .accordion-section-title, .sidebar-name, #nav-menu-header, #nav-menu-footer, .menu-item-handle, .checkbox, .side-info, #your-profile #rich_editing, .widefat thead th, .widefat thead td, .widefat tfoot th, .widefat tfoot td { line-height: 1.4em; } .widget .widget-top, .menu-item-handle { background: #f6f7f7; color: #1d2327; } .stuffbox .hndle { border-bottom: 1px solid #c3c4c7; } .quicktags { background-color: #c3c4c7; color: #000; font-size: 12px; } .icon32 { display: none; } /* @todo can we combine these into a class or use an existing dashicon one? */ .welcome-panel .welcome-panel-close:before, .tagchecklist .ntdelbutton .remove-tag-icon:before, #bulk-titles .ntdelbutton:before, .notice-dismiss:before { background: none; color: #1e1e1e; content: "\f335"; content: "\f335" / ''; display: block; font: normal 20px/1 dashicons; height: 1em; text-align: center; width: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .welcome-panel .welcome-panel-close:before { margin: 0; } .tagchecklist .ntdelbutton .remove-tag-icon:before { margin-right: 2px; border-radius: 50%; color: var(--wp-admin-theme-color, #3858e9); /* vertically center the icon cross browsers */ line-height: 1.1; } .tagchecklist .ntdelbutton:focus { outline: 0; } .tagchecklist .ntdelbutton:hover .remove-tag-icon:before, .tagchecklist .ntdelbutton:focus .remove-tag-icon:before, #bulk-titles .ntdelbutton:hover:before, #bulk-titles .ntdelbutton:focus:before { color: #d63638; } .tagchecklist .ntdelbutton:focus .remove-tag-icon:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .key-labels label { line-height: 24px; } strong, b { font-weight: 600; } .pre { /* https://developer.mozilla.org/en-US/docs/CSS/white-space */ white-space: pre-wrap; /* css-3 */ word-wrap: break-word; /* IE 5.5 - 7 */ } .howto { color: #646970; display: block; } p.install-help { margin: 8px 0; font-style: italic; } .no-break { white-space: nowrap; } hr { border: 0; border-top: 1px solid #dcdcde; border-bottom: 1px solid #f6f7f7; } .row-actions span.delete a, .row-actions span.trash a, .row-actions span.spam a, .plugins a.delete, #all-plugins-table .plugins a.delete, #search-plugins-table .plugins a.delete, .submitbox .submitdelete, #media-items a.delete, #media-items a.delete-permanently, #nav-menu-footer .menu-delete, #delete-link a.delete, a#remove-post-thumbnail, .privacy_requests .remove-personal-data .remove-personal-data-handle { color: #b32d2e; } abbr.required, span.required, .file-error, .row-actions .delete a:hover, .row-actions .trash a:hover, .row-actions .spam a:hover, .plugins a.delete:hover, #all-plugins-table .plugins a.delete:hover, #search-plugins-table .plugins a.delete:hover, .submitbox .submitdelete:hover, #media-items a.delete:hover, #media-items a.delete-permanently:hover, #nav-menu-footer .menu-delete:hover, #delete-link a.delete:hover, a#remove-post-thumbnail:hover, .privacy_requests .remove-personal-data .remove-personal-data-handle:hover { color: #b32d2e; border: none; } .application-password-display .success { color: #007017; margin-right: 0.5rem; } /*------------------------------------------------------------------------------ 3.0 - Actions ------------------------------------------------------------------------------*/ #major-publishing-actions { padding: 10px; clear: both; border-top: 1px solid #dcdcde; background: #f6f7f7; display: flex; align-items: center; justify-content: space-between; } #delete-action { line-height: 2.30769231; /* 30px */ } #delete-link a { text-decoration: none; } #publishing-action { text-align: left; margin-right: auto; line-height: 1.9; } #publishing-action .spinner { float: none; } #misc-publishing-actions { padding: 6px 0 0; } .misc-pub-section { padding: 6px 10px 8px; } .word-wrap-break-word, .misc-pub-filename { word-wrap: break-word; } #minor-publishing-actions { padding: 10px 10px 0; text-align: left; } #save-post { float: right; } .preview { float: left; } #sticky-span { margin-right: 18px; } .approve, .unapproved .unapprove { display: none; } .unapproved .approve, .spam .approve, .trash .approve { display: inline; } td.action-links, th.action-links { text-align: left; } #misc-publishing-actions .notice { margin-right: 10px; margin-left: 10px; } /* Filter bar */ .wp-filter { display: inline-block; position: relative; box-sizing: border-box; margin: 12px 0 25px; padding: 0 10px; width: 100%; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); border: 1px solid #c3c4c7; background: #fff; color: #50575e; font-size: 13px; } .wp-filter a { text-decoration: none; } .filter-count { display: inline-block; vertical-align: middle; min-width: 4em; } .title-count, .filter-count .count { display: inline-block; position: relative; top: -1px; padding: 4px 10px; border-radius: 30px; background: #646970; color: #fff; font-size: 14px; font-weight: 600; } /* not a part of filter bar, but derived from it, so here for now */ .title-count { display: inline; top: -3px; margin-right: 5px; margin-left: 20px; } .filter-items { float: right; } .filter-links { display: inline-block; margin: 0; } .filter-links li { display: inline-block; margin: 0; } .filter-links li > a { display: inline-block; margin: 0 10px; padding: 15px 0; border-bottom: 4px solid #fff; color: #646970; cursor: pointer; } .filter-links .current { box-shadow: none; border-bottom: 4px solid var(--wp-admin-theme-color); color: #1d2327; } .filter-links li > a:hover, .filter-links li > a:focus, .show-filters .filter-links a.current:hover, .show-filters .filter-links a.current:focus { color: var(--wp-admin-theme-color); } .wp-filter .search-form { float: left; display: flex; align-items: center; column-gap: .5rem; } .wp-filter .search-form input[type="search"] { width: 280px; max-width: 100%; } .wp-filter .search-form select { margin: 0; } .wp-filter .search-form input[type="search"] { min-height: 32px; padding: 0 8px; } .wp-filter .search-form select, .wp-filter .filter-items select { min-height: 32px; line-height: 2.14285714; /* 30px for 32px height with 14px font */ padding: 0 8px 0 24px; } .wp-filter .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } /* Use flexbox only on the plugins install page and upload page. The `filter-links` and search form children will become flex items. */ .plugin-install-php .wp-filter, .upload-php .wp-filter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; } .wp-filter .search-form.search-plugins select, .wp-filter .search-form.search-plugins .wp-filter-search, .no-js .wp-filter .search-form.search-plugins .button { display: inline-block; vertical-align: top; } .wp-filter .button.drawer-toggle { margin: 10px 9px 0; padding: 0 6px 0 10px; border-color: transparent; background-color: transparent; color: #646970; vertical-align: baseline; box-shadow: none; } .wp-filter .drawer-toggle:before { content: "\f111"; content: "\f111" / ''; margin: 0 0 0 5px; color: #646970; font: normal 16px/1 dashicons; vertical-align: text-bottom; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wp-filter .button.drawer-toggle:hover, .wp-filter .drawer-toggle:hover:before, .wp-filter .button.drawer-toggle:focus, .wp-filter .drawer-toggle:focus:before { background-color: transparent; color: var(--wp-admin-theme-color); } .wp-filter .button.drawer-toggle:hover, .wp-filter .button.drawer-toggle:focus:active { border-color: transparent; } .wp-filter .button.drawer-toggle:focus { border-color: var(--wp-admin-theme-color); } .wp-filter .button.drawer-toggle:active { background: transparent; box-shadow: none; transform: none; } .wp-filter .drawer-toggle.current:before { color: #fff; } .filter-drawer, .wp-filter .favorites-form { display: none; margin: 0 -20px 0 -10px; padding: 20px; border-top: 1px solid #f0f0f1; background: #f6f7f7; overflow: hidden; } .wp-filter .favorites-form .favorites-username { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; } .wp-filter .favorites-form .favorites-username input { margin: 0; } .show-filters .filter-drawer, .show-favorites-form .favorites-form { display: block; } .show-filters .filter-links a.current { border-bottom: none; } .show-filters .wp-filter .button.drawer-toggle { border-radius: 2px; background: #646970; color: #fff; } .show-filters .wp-filter .drawer-toggle:hover, .show-filters .wp-filter .drawer-toggle:focus { background: var(--wp-admin-theme-color); } .show-filters .wp-filter .drawer-toggle:before { color: #fff; } .filter-group { box-sizing: border-box; position: relative; float: right; margin: 0 0 0 1%; padding: 20px 10px 10px; width: 24%; background: #fff; border: 1px solid #dcdcde; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); } .filter-group legend { position: absolute; top: 10px; display: block; margin: 0; padding: 0; font-size: 1em; font-weight: 600; } .filter-drawer .filter-group-feature { margin: 28px 0 0; list-style-type: none; font-size: 12px; } .filter-drawer .filter-group-feature input, .filter-drawer .filter-group-feature label { line-height: 1.4; } .filter-drawer .filter-group-feature input { position: absolute; margin: 0; } .filter-group .filter-group-feature label { display: block; margin: 14px 23px 14px 0; } .filter-drawer .buttons { clear: both; margin-bottom: 20px; } .filter-drawer .filter-group + .buttons { margin-bottom: 0; padding-top: 20px; } .filter-drawer .buttons .button span { display: inline-block; opacity: 0.8; font-size: 12px; text-indent: 10px; } .wp-filter .button.clear-filters { display: none; margin-right: 10px; } .wp-filter .button-link.edit-filters { padding: 0 5px; line-height: 2.2; } .filtered-by { display: none; margin: 0; } .filtered-by > span { font-weight: 600; } .filtered-by a { margin-right: 10px; } .filtered-by .tags { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; } .filtered-by .tag { padding: 4px 8px; border: 1px solid #dcdcde; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); background: #fff; font-size: 11px; } .filters-applied .filter-group, .filters-applied .filter-drawer .buttons, .filters-applied .filter-drawer br { display: none; } .filters-applied .filtered-by { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } .filters-applied .filter-drawer { padding: 20px; } .show-filters .favorites-form, .show-filters .content-filterable, .show-filters.filters-applied.loading-content .content-filterable, .loading-content .content-filterable, .error .content-filterable { display: none; } .show-filters.filters-applied .content-filterable { display: block; } .loading-content .spinner { display: block; margin: 40px auto 0; float: none; } @media only screen and (max-width: 1138px) { .wp-filter .search-form { margin: 11px 0; } } @media only screen and (max-width: 1250px) { .wp-filter:has(.plugin-install-search) .search-form { margin: 11px 0; } } @media only screen and (max-width: 1120px) { .filter-drawer { border-bottom: 1px solid #f0f0f1; } .filter-group { margin-bottom: 0; margin-top: 5px; width: 100%; } .filter-group li { margin: 10px 0; } } @media only screen and (max-width: 1000px) { .filter-items { float: none; } .wp-filter .media-toolbar-primary, .wp-filter .media-toolbar-secondary, .wp-filter .search-form { float: none; /* Remove float from media-views.css */ position: relative; max-width: 100%; } .wp-filter .search-form { margin: 11px 0; flex-wrap: wrap; row-gap: 10px; } } @media only screen and (max-width: 782px) { .filter-group li { padding: 0; width: 50%; } } @media only screen and (max-width: 320px) { .filter-count { display: none; } .wp-filter .drawer-toggle { margin: 10px 0; } .filter-group li, .wp-filter .search-form input[type="search"] { width: 100%; } } /*------------------------------------------------------------------------------ 4.0 - Notifications ------------------------------------------------------------------------------*/ .notice, div.updated, div.error { background: #fff; border: none; border-right: 4px solid #c3c4c7; box-shadow: none; margin: 5px 15px 2px; padding: 8px 12px; } div[class="update-message"] { /* back-compat for pre-4.6 */ padding: 0.5em 0 0.5em 12px; } .notice p, .notice-title, div.updated p, div.error p, .form-table td .notice p { margin: 0.5em 0; padding: 0; font-size: 13px; line-height: 1.54; color: #1e1e1e; } div.notice a, div.error a, div.updated a { color: var(--wp-admin-theme-color-darker-10); text-decoration: underline; } div.notice a:hover, div.error a:hover, div.updated a:hover { color: var(--wp-admin-theme-color-darker-20); } div.notice a:focus, div.error a:focus, div.updated a:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); outline: 2px solid transparent; border-radius: 2px; } .notice-alt { box-shadow: none; } .notice-large { padding: 10px 20px; } .notice-title { display: inline-block; color: #1d2327; font-size: 18px; } .wp-core-ui .notice.is-dismissible { padding-left: 48px; position: relative; } .notice-dismiss { position: absolute; top: 12px; left: 12px; border: none; margin: 0; padding: 0; background: none; color: #1e1e1e; cursor: pointer; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 2px; } .notice-dismiss:hover:before, .notice-dismiss:active:before { color: #1e1e1e; opacity: 0.7; } .notice-dismiss:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .notice-dismiss:focus:before { color: #1e1e1e; } .notice-success, div.updated { border-right-color: #4ab866; background-color: #eff9f1; } .notice-success.notice-alt, div.updated.notice-alt { background-color: #eff9f1; } .notice-warning { border-right-color: #f0b849; background-color: #fef8ee; } .notice-warning.notice-alt { background-color: #fef8ee; } .notice-error, div.error { border-right-color: #cc1818; background-color: #fcf0f0; } .notice-error.notice-alt, div.error.notice-alt { background-color: #fcf0f0; } .notice-info { border-right-color: #3858e9; background-color: #fff; } .notice-info.notice-alt { background-color: #fff; } #plugin-information-footer .update-now:not(.button-disabled):before { color: #d63638; content: "\f463"; content: "\f463" / ''; display: inline-block; font: normal 20px/1 dashicons; margin: -3px -2px 0 5px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: middle; } #plugin-information-footer .notice { margin-top: -5px; } .update-message p:before, .updating-message p:before, .updated-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.updated-message:before, .button.installed:before, .button.installing:before, .button.activating-message:before, .button.activated-message:before { display: inline-block; font: normal 20px/1 'dashicons'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: top; } .wrap .notice, .wrap div.updated, .wrap div.error, .media-upload-form .notice, .media-upload-form div.error { margin: 5px 0 15px; } .wrap #templateside .notice { display: block; margin: 0; padding: 5px 8px; font-weight: 600; text-decoration: none; } .wrap #templateside span.notice { margin-right: -12px; } #templateside li.notice a { padding: 0; } /* Update icon. */ .update-message p:before, .updating-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.installing:before, .button.activating-message:before { color: #d63638; content: "\f463"; content: "\f463" / ''; } /* Spins the update icon. */ .updating-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.installing:before, .button.activating-message:before, .plugins .column-auto-updates .dashicons-update.spin, .theme-overlay .theme-autoupdate .dashicons-update.spin { animation: rotation 2s infinite linear; } @media (prefers-reduced-motion: reduce) { .updating-message p:before, .import-php .updating-message:before, .button.updating-message:before, .button.installing:before, .button.activating-message:before, .plugins .column-auto-updates .dashicons-update.spin, .theme-overlay .theme-autoupdate .dashicons-update.spin { animation: none; } } .theme-overlay .theme-autoupdate .dashicons-update.spin { margin-left: 3px; } /* Updated icon (check mark). */ .updated-message p:before, .installed p:before, .button.updated-message:before, .button.activated-message:before { color: #68de7c; content: "\f147"; content: "\f147" / ''; } /* Error icon. */ .update-message.notice-error p:before { color: #d63638; content: "\f534"; content: "\f534" / ''; } .wrap .notice p:before, .import-php .updating-message:before { margin-left: 6px; } .import-php .updating-message:before { vertical-align: bottom; } #update-nag, .update-nag { display: inline-block; line-height: 1.4; padding: 11px 15px; font-size: 14px; margin: 25px 2px 0 20px; } ul#dismissed-updates { display: none; } #dismissed-updates li > p { margin-top: 0; } #dismiss, #undismiss { margin-right: 0.5em; } form.upgrade { margin-top: 8px; } form.upgrade .hint { font-style: italic; font-size: 85%; margin: -0.5em 0 2em; } .update-php .spinner { float: none; margin: -4px 0; } h2.wp-current-version { margin-bottom: .3em; } p.update-last-checked { margin-top: 0; } p.auto-update-status { margin-top: 2em; line-height: 1.8; } #ajax-loading, .ajax-loading, .ajax-feedback, .imgedit-wait-spin, .list-ajax-loading { /* deprecated */ visibility: hidden; } #ajax-response.alignleft { margin-right: 2em; } .button.updating-message:before, .button.updated-message:before, .button.installed:before, .button.installing:before, .button.activated-message:before, .button.activating-message:before { margin: 0 -2px 0 5px; line-height: 1.9; /* 38px (20px * 1.9) - matches button */ vertical-align: top; } #plugin-information-footer .button { padding: 0 14px; line-height: 2.71428571; /* 38px */ font-size: 14px; vertical-align: middle; min-height: 40px; margin-bottom: 4px; } #plugin-information-footer .button.installed:before, #plugin-information-footer .button.installing:before, #plugin-information-footer .button.updating-message:before, #plugin-information-footer .button.updated-message:before, #plugin-information-footer .button.activated-message:before, #plugin-information-footer .button.activating-message:before { margin: 0 -2px 0 5px; line-height: 1.9; /* 38px (20px * 1.9) - matches button */ vertical-align: top; } #plugin-information-footer .button.update-now.updating-message:before { margin: 0 -2px 0 5px; } .button-primary.updating-message:before, .button-primary.activating-message:before { color: #fff; } .button-primary.updated-message:before, .button-primary.activated-message:before { color: #9ec2e6; } .button.updated-message, .button.activated-message { transition-property: border, background, color; transition-duration: .05s; transition-timing-function: ease-in-out; } /* @todo: this does not need its own section anymore */ /*------------------------------------------------------------------------------ 6.0 - Admin Header ------------------------------------------------------------------------------*/ #adminmenu a, #taglist a, #catlist a { text-decoration: none; } /*------------------------------------------------------------------------------ 6.1 - Screen Options Tabs ------------------------------------------------------------------------------*/ #screen-options-wrap, #contextual-help-wrap { margin: 0; padding: 8px 20px 12px; position: relative; } #contextual-help-wrap { overflow: auto; margin-right: 0; } #screen-meta-links { float: left; margin: 0 0 0 20px; } /* screen options and help tabs revert */ #screen-meta { display: none; margin: 0 0 -1px 20px; position: relative; background-color: #fff; border: 1px solid #c3c4c7; border-top: none; box-shadow: 0 0 0 transparent; } #screen-options-link-wrap, #contextual-help-link-wrap { float: right; margin: 0 6px 0 0; } #screen-meta-links .screen-meta-toggle { position: relative; top: 0; } #screen-meta-links .show-settings { border: 1px solid #c3c4c7; border-top: none; height: auto; min-height: 32px; /* Compact size for header buttons */ margin-bottom: 0; padding: 0 16px 0 6px; background: #fff; border-radius: 0 0 4px 4px; color: #646970; line-height: 2.30769231; /* 30px - matches compact button */ box-shadow: 0 0 0 transparent; transition: box-shadow 0.1s linear; } #screen-meta-links .show-settings:hover, #screen-meta-links .show-settings:active, #screen-meta-links .show-settings:focus { color: #2c3338; } #screen-meta-links .show-settings:focus { border-color: var(--wp-admin-theme-color, #3858e9); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #screen-meta-links .show-settings:active { transform: none; } #screen-meta-links .show-settings:after { left: 0; content: "\f140"; content: "\f140" / ''; font: normal 20px/1.5 dashicons; /* line-height 1.5 = 30px to match compact button */ display: inline-block; padding: 0 0 0 5px; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none; } #screen-meta-links .screen-meta-active:after { content: "\f142"; content: "\f142" / ''; } /* end screen options and help tabs */ .toggle-arrow { background-repeat: no-repeat; background-position: top right; background-color: transparent; height: 22px; line-height: 22px; display: block; } .toggle-arrow-active { background-position: bottom right; } #screen-options-wrap h5, /* Back-compat for old plugins */ #screen-options-wrap legend, #contextual-help-wrap h5 { margin: 0; padding: 8px 0; font-size: 13px; font-weight: 600; } .metabox-prefs label { display: inline-block; padding-left: 15px; line-height: 2.35; } #number-of-columns { display: inline-block; vertical-align: middle; line-height: 30px; } .metabox-prefs input[type=checkbox] { margin-top: 0; margin-left: 6px; } .metabox-prefs label input, .metabox-prefs label input[type=checkbox] { margin: -4px 0 0 5px; } .metabox-prefs .columns-prefs label input { margin: -1px 0 0 2px; } .metabox-prefs label a { display: none; } .metabox-prefs .screen-options input, .metabox-prefs .screen-options label { margin-top: 0; margin-bottom: 0; vertical-align: middle; } .metabox-prefs .screen-options .screen-per-page { margin-left: 15px; padding-left: 0; } .metabox-prefs .screen-options label { line-height: 2.2; padding-left: 0; } .screen-options + .screen-options { margin-top: 10px; } .metabox-prefs .submit { margin-top: 1em; padding: 0; } /*------------------------------------------------------------------------------ 6.2 - Help Menu ------------------------------------------------------------------------------*/ #contextual-help-wrap { padding: 0; } #contextual-help-columns { position: relative; } #contextual-help-back { position: absolute; top: 0; bottom: 0; right: 150px; left: 170px; border: 1px solid #c3c4c7; border-top: none; border-bottom: none; background: rgba(var(--wp-admin-theme-color--rgb), 0.08); } #contextual-help-wrap.no-sidebar #contextual-help-back { left: 0; border-left-width: 0; border-bottom-left-radius: 2px; } .contextual-help-tabs { float: right; width: 150px; margin: 0; } .contextual-help-tabs ul { margin: 1em 0; } .contextual-help-tabs li { margin-bottom: 0; list-style-type: none; border-style: solid; border-width: 0 2px 0 0; border-color: transparent; } .contextual-help-tabs a { display: block; padding: 5px 12px 5px 5px; line-height: 1.4; text-decoration: none; border: 1px solid transparent; border-left: none; border-right: none; } .contextual-help-tabs a:hover { color: #2c3338; } .contextual-help-tabs .active { padding: 0; margin: 0 0 0 -1px; border-right: 2px solid var(--wp-admin-theme-color); background: color-mix(in srgb, var(--wp-admin-theme-color) 8%, white); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 1px 0 rgba(0, 0, 0, 0.02); } .contextual-help-tabs .active a { border-color: #c3c4c7; color: #2c3338; } .contextual-help-tabs-wrap { padding: 0 20px; overflow: auto; } .help-tab-content { display: none; margin: 0 0 12px 22px; line-height: 1.6; } .help-tab-content.active { display: block; } .help-tab-content ul li { list-style-type: disc; margin-right: 18px; } .contextual-help-sidebar { width: 150px; float: left; padding: 0 12px 0 8px; overflow: auto; } /*------------------------------------------------------------------------------ 8.0 - Layout Blocks ------------------------------------------------------------------------------*/ html.wp-toolbar { padding-top: var(--wp-admin--admin-bar--height); box-sizing: border-box; -ms-overflow-style: scrollbar; /* See ticket #48545 */ } .widefat th, .widefat td { color: #50575e; } .widefat th, .widefat thead td, .widefat tfoot td { font-weight: 400; } .widefat thead tr th, .widefat thead tr td, .widefat tfoot tr th, .widefat tfoot tr td { color: #2c3338; } .widefat td p { margin: 2px 0 0.8em; } .widefat p, .widefat ol, .widefat ul { color: #2c3338; } .widefat .column-comment p { margin: 0.6em 0; } .widefat .column-comment ul { list-style: initial; margin-right: 2em; } /* Screens with postboxes */ .postbox-container { float: right; } .postbox-container .meta-box-sortables { box-sizing: border-box; } #wpbody-content .metabox-holder { padding-top: 10px; } .metabox-holder .postbox-container .meta-box-sortables { /* The jQuery UI Sortables need some initial height to work properly. */ min-height: 1px; position: relative; } #post-body-content { width: 100%; min-width: 463px; float: right; } #post-body.columns-2 #postbox-container-1 { float: left; margin-left: -300px; width: 280px; } #post-body.columns-2 #side-sortables { min-height: 250px; } /* one column on the dash */ @media only screen and (max-width: 799px) { #wpbody-content .metabox-holder .postbox-container .empty-container { outline: none; height: 0; min-height: 0; } } .js .widget .widget-top, .js .postbox .hndle { cursor: move; } .js .widget .widget-top.is-non-sortable, .js .postbox .hndle.is-non-sortable { cursor: auto; } /* Configurable dashboard widgets "Configure" edit-box link. */ .hndle a { font-size: 12px; font-weight: 400; } .postbox-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #c3c4c7; } .postbox-header .hndle { flex-grow: 1; /* Handle the alignment for the configurable dashboard widgets "Configure" edit-box link. */ display: flex; justify-content: space-between; align-items: center; } .postbox-header .handle-actions { flex-shrink: 0; } /* Post box order and toggle buttons. */ .postbox .handle-order-higher, .postbox .handle-order-lower, .postbox .handlediv { width: 1.62rem; height: 1.62rem; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; } .postbox .handle-order-higher, .postbox .handle-order-lower { color: #646970; width: 1.62rem; } /* Post box order buttons in the block editor meta boxes area. */ .edit-post-meta-boxes-area .postbox .handle-order-higher, .edit-post-meta-boxes-area .postbox .handle-order-lower { width: 44px; height: 44px; color: #1d2327 } .postbox .handle-order-higher[aria-disabled="true"], .postbox .handle-order-lower[aria-disabled="true"] { cursor: default; color: #a7aaad; } .sortable-placeholder:not(.empty-container .sortable-placeholder) { border: 1px dashed #c3c4c7; border-radius: 8px; margin-bottom: 20px; } .postbox, .stuffbox { margin-bottom: 20px; padding: 0; line-height: 1; } .postbox.closed .postbox-header { border-bottom: 0; } /* user-select is not a part of the CSS standard - may change behavior in the future */ .postbox .hndle, .stuffbox .hndle { -webkit-user-select: none; user-select: none; } .postbox .inside { padding: 0 12px 12px; line-height: 1.4; font-size: 13px; } .stuffbox .inside { padding: 0; line-height: 1.4; font-size: 13px; margin-top: 0; } .postbox .inside { margin: 11px 0; position: relative; } .postbox .inside > p:last-child, .rss-widget ul li:last-child { margin-bottom: 1px !important; } .postbox.closed h3 { border: none; box-shadow: none; } .postbox table.form-table { margin-bottom: 0; } .postbox table.widefat { box-shadow: none; } .temp-border { border: 1px dotted #c3c4c7; } .columns-prefs label { padding: 0 0 0 10px; } /* @todo: what is this doing here */ #dashboard_right_now .versions .b, #post-status-display, #post-visibility-display, #adminmenu .wp-submenu li.current, #adminmenu .wp-submenu li.current a, #adminmenu .wp-submenu li.current a:hover, .media-item .percent, .plugins .name, #pass-strength-result.strong, #pass-strength-result.short, #ed_reply_toolbar #ed_reply_strong, .item-controls .item-order a, .feature-filter .feature-name, #comment-status-display { font-weight: 600; } /*------------------------------------------------------------------------------ 21.0 - Admin Footer ------------------------------------------------------------------------------*/ #wpfooter { position: absolute; bottom: 0; right: 0; left: 0; padding: 10px 20px; color: #50575e; } #wpfooter p { font-size: 13px; margin: 0; line-height: 1.55; } #footer-thankyou { font-style: italic; } /*------------------------------------------------------------------------------ 25.0 - Tabbed Admin Screen Interface (Experimental) ------------------------------------------------------------------------------*/ .nav-tab { float: right; border: 1px solid #c3c4c7; border-bottom: none; margin-right: 0.5em; /* half the font size so set the font size properly */ padding: 5px 10px; font-size: 14px; line-height: 1.71428571; font-weight: 600; background: #dcdcde; color: #50575e; text-decoration: none; white-space: nowrap; } h3 .nav-tab, /* Back-compat for pre-4.4 */ .nav-tab-small .nav-tab { padding: 5px 14px; font-size: 12px; line-height: 1.33; } .nav-tab:hover, .nav-tab:focus { background-color: #fff; color: #3c434a; } .nav-tab-active, .nav-tab:focus:active { box-shadow: none; } .nav-tab-active { margin-bottom: -1px; color: #3c434a; } .nav-tab-active, .nav-tab-active:hover, .nav-tab-active:focus, .nav-tab-active:focus:active { border-bottom: 1px solid #f0f0f1; background: #f0f0f1; color: #000; } h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */ .wrap h2.nav-tab-wrapper, /* higher specificity to override .wrap > h2:first-child */ .nav-tab-wrapper { border-bottom: 1px solid #c3c4c7; margin: 0; padding-top: 9px; padding-bottom: 0; line-height: inherit; } /* Back-compat for plugins. Deprecated. Use .wp-clearfix instead. */ .nav-tab-wrapper:not(.wp-clearfix):after { content: ""; display: table; clear: both; } /*------------------------------------------------------------------------------ 26.0 - Misc ------------------------------------------------------------------------------*/ .spinner { background: url(../images/spinner.gif) no-repeat; background-size: 20px 20px; display: inline-block; visibility: hidden; float: left; vertical-align: middle; opacity: 0.7; filter: alpha(opacity=70); width: 20px; height: 20px; margin: 10px 10px 0; } .spinner.is-active, .loading-content .spinner { visibility: visible; } #template > div { margin-left: 16em; } #template .notice { margin-top: 1em; margin-left: 3%; } #template .notice p { width: auto; } #template .submit .spinner { float: none; vertical-align: top; } .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */ .metabox-holder h2.hndle { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; } /* Back-compat for nav-menus screen */ .nav-menus-php .metabox-holder h3 { padding: 0; } .accordion-container h3.accordion-section-title { padding: 0 !important; } .accordion-section-title button.accordion-trigger, .nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger { background: inherit; color: #1d2327; display: block; position: relative; text-align: right; width: 100%; outline: none; border: 0; padding: 10px 14px 11px 10px; line-height: 1.5; cursor: pointer; } .accordion-section-title button.accordion-trigger:focus, .nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger:focus { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); outline: 2px solid transparent; } .accordion-section-title span.dashicons.dashicons-arrow-down, .nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down { position: absolute; left: 10px; right: auto; color: #787c82; border-radius: 50px; top: 50%; transform: translateY(-50%); } .accordion-section-title:hover span.dashicons.dashicons-arrow-down, .nav-menus-php .metabox-holder .accordion-section-title:hover span.dashicons.dashicons-arrow-down { color: #1d2327; } .accordion-section-title span.dashicons.dashicons-arrow-down::before, .nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down::before { position: relative; right: -1px; } .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down, .nav-menus-php .metabox-holder .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down { transform: rotate(-180deg) translate(0, 50%); } #templateside ul li a { text-decoration: none; } .plugin-install #description, .plugin-install-network #description { width: 60%; } table .vers, table .column-visible, table .column-rating { text-align: right; } .attention, .error-message { color: #d63638; font-weight: 600; } /* Scrollbar fix for bulk upgrade iframe */ body.iframe { height: 98%; } /* Upgrader styles, Specific to Language Packs */ .lp-show-latest p { display: none; } .lp-show-latest p:last-child, .lp-show-latest .lp-error p { display: block; } /* - Only used once or twice in all of WP - deprecate for global style ------------------------------------------------------------------------------*/ .media-icon { width: 62px; /* icon + border */ text-align: center; } .media-icon img { border: 1px solid #dcdcde; border: 1px solid rgba(0, 0, 0, 0.07); } #howto { font-size: 11px; margin: 0 5px; display: block; } .importers { font-size: 16px; width: auto; } .importers td { padding-left: 14px; line-height: 1.4; } .importers .import-system { max-width: 250px; } .importers td.desc { max-width: 500px; } .importer-title, .importer-desc, .importer-action { display: block; } .importer-title { color: #000; font-size: 14px; font-weight: 400; margin-bottom: .2em; } .importer-action { line-height: 1.55; /* Same as with .updating-message */ color: #50575e; margin-bottom: 1em; } #post-body #post-body-content #namediv h3, /* Back-compat for pre-4.4 */ #post-body #post-body-content #namediv h2 { margin-top: 0; } .edit-comment-author { color: #1d2327; border-bottom: 1px solid #f0f0f1; } #namediv h3 label, /* Back-compat for pre-4.4 */ #namediv h2 label { vertical-align: baseline; } #namediv table { width: 100%; } #namediv td.first { width: 10px; white-space: nowrap; } #namediv input { width: 100%; } #namediv p { margin: 10px 0; } /* - Used - but could/should be deprecated with a CSS reset ------------------------------------------------------------------------------*/ .zerosize { height: 0; width: 0; margin: 0; border: 0; padding: 0; overflow: hidden; position: absolute; } br.clear { height: 2px; line-height: 0.15; } .checkbox { border: none; margin: 0; padding: 0; } fieldset { border: 0; padding: 0; margin: 0; } .post-categories { display: inline; margin: 0; padding: 0; } .post-categories li { display: inline; } /* Star Ratings - Back-compat for pre-3.8 */ div.star-holder { position: relative; height: 17px; width: 100px; background: url(../images/stars.png?ver=20121108) repeat-x bottom right; } div.star-holder .star-rating { background: url(../images/stars.png?ver=20121108) repeat-x top right; height: 17px; float: right; } /* Star Ratings */ .star-rating { white-space: nowrap; } .star-rating .star { display: inline-block; width: 20px; height: 20px; -webkit-font-smoothing: antialiased; font-size: 20px; line-height: 1; font-family: dashicons; text-decoration: inherit; font-weight: 400; font-style: normal; vertical-align: top; transition: color .1s ease-in; text-align: center; color: #dba617; } .star-rating .star-full:before { content: "\f155"; content: "\f155" / ''; } .star-rating .star-half:before { content: "\f459"; content: "\f459" / ''; } .rtl .star-rating .star-half { transform: rotateY(-180deg); } .star-rating .star-empty:before { content: "\f154"; content: "\f154" / ''; } div.action-links { font-weight: 400; margin: 6px 0 0; } /* Plugin install thickbox */ #plugin-information { background: #fff; position: fixed; top: 0; left: 0; bottom: 0; right: 0; height: 100%; padding: 0; } #plugin-information-scrollable { overflow: auto; -webkit-overflow-scrolling: touch; height: 100%; } #plugin-information-title { padding: 0 26px; background: #f6f7f7; font-size: 22px; font-weight: 600; line-height: 2.4; position: relative; height: 56px; } #plugin-information-title.with-banner { margin-left: 0; height: 250px; background-size: cover; } #plugin-information-title h2 { font-size: 1em; font-weight: 600; padding: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #plugin-information-title.with-banner h2 { position: relative; font-family: "Helvetica Neue", sans-serif; display: inline-block; font-size: 30px; line-height: 1.68; box-sizing: border-box; max-width: 100%; padding: 0 15px; margin-top: 174px; color: #fff; background: rgba(29, 35, 39, 0.9); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); border-radius: 8px; } #plugin-information-title div.vignette { display: none; } #plugin-information-title.with-banner div.vignette { position: absolute; display: block; top: 0; right: 0; height: 250px; width: 100%; background: transparent; box-shadow: inset 0 0 50px 4px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1); } #plugin-information-tabs { padding: 0 16px; position: relative; left: 0; right: 0; min-height: 36px; font-size: 0; z-index: 1; border-bottom: 1px solid #dcdcde; background: #f6f7f7; } #plugin-information-tabs a { position: relative; display: inline-block; padding: 9px 10px; margin: 0; height: 18px; line-height: 1.3; font-size: 14px; text-decoration: none; transition: none; } #plugin-information-tabs a.current { margin: 0 -1px -1px; background: #fff; border: 1px solid #dcdcde; border-bottom-color: #fff; padding-top: 8px; color: #2c3338; } #plugin-information-tabs.with-banner a.current { border-top: none; padding-top: 9px; } #plugin-information-tabs a:active, #plugin-information-tabs a:focus { outline: none; } #plugin-information-content { overflow: hidden; /* equal height column trick */ background: #fff; position: relative; top: 0; left: 0; right: 0; min-height: 100%; /* Height of title + tabs + install now */ min-height: calc( 100% - 152px ); } #plugin-information-content.with-banner { /* Height of banner + tabs + install now */ min-height: calc( 100% - 346px ); } #section-holder { position: relative; top: 0; left: 250px; bottom: 0; right: 0; margin-top: 10px; margin-left: 250px; /* FYI box */ padding: 10px 26px 99999px; /* equal height column trick */ margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */ } #section-holder .notice { margin: 5px 0 15px; } #section-holder .updated { margin: 16px 0; } #plugin-information .fyi { float: left; position: relative; top: 0; left: 0; padding: 16px 16px 99999px; /* equal height column trick */ margin-bottom: -99932px; /* 67px less than the padding below to accommodate footer height */ width: 217px; border-right: 1px solid #dcdcde; background: #f6f7f7; color: #646970; } #plugin-information .fyi strong { color: #3c434a; } #plugin-information .fyi h3 { font-weight: 600; text-transform: uppercase; font-size: 12px; color: #646970; margin: 24px 0 8px; } #plugin-information .fyi h2 { font-size: 0.9em; margin-bottom: 0; margin-left: 0; } #plugin-information .fyi ul { padding: 0; margin: 0; list-style: none; } #plugin-information .fyi li { margin: 0 0 10px; } #plugin-information .fyi-description { margin-top: 0; } #plugin-information .counter-container { margin: 3px 0; } #plugin-information .counter-label { float: right; margin-left: 5px; min-width: 55px; } #plugin-information .counter-back { height: 17px; width: 92px; background-color: #dcdcde; float: right; } #plugin-information .counter-bar { height: 17px; background-color: #f0c33c; /* slightly lighter than stars due to larger expanse */ float: right; } #plugin-information .counter-count { margin-right: 5px; } #plugin-information .fyi ul.contributors { margin-top: 10px; } #plugin-information .fyi ul.contributors li { display: inline-block; margin-left: 8px; vertical-align: middle; } #plugin-information .fyi ul.contributors li { display: inline-block; margin-left: 8px; vertical-align: middle; } #plugin-information .fyi ul.contributors li img { vertical-align: middle; margin-left: 4px; } #plugin-information-footer { padding: 13px 16px; position: absolute; left: 0; bottom: 0; right: 0; height: 40px; /* actual height: 40+13+13+1=67 */ border-top: 1px solid #dcdcde; background: #f6f7f7; } /* rtl:ignore */ #plugin-information .section { direction: ltr; } /* rtl:ignore */ #plugin-information .section ul, #plugin-information .section ol { list-style-type: disc; margin-left: 24px; } #plugin-information .section, #plugin-information .section p { font-size: 14px; line-height: 1.7; } #plugin-information #section-screenshots ol { list-style: none; margin: 0; } #plugin-information #section-screenshots li img { vertical-align: text-top; margin-top: 16px; max-width: 100%; width: auto; height: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } /* rtl:ignore */ #plugin-information #section-screenshots li p { font-style: italic; padding-left: 20px; } #plugin-information pre { padding: 7px; overflow: auto; border: 1px solid #c3c4c7; } #plugin-information blockquote { border-right: 2px solid #dcdcde; color: #646970; font-style: italic; margin: 1em 0; padding: 0 1em 0 0; } /* rtl:ignore */ #plugin-information .review { overflow: hidden; /* clearfix */ width: 100%; margin-bottom: 20px; border-bottom: 1px solid #dcdcde; } #plugin-information .review-title-section { overflow: hidden; /* clearfix */ } /* rtl:ignore */ #plugin-information .review-title-section h4 { display: inline-block; float: left; margin: 0 6px 0 0; } #plugin-information .reviewer-info p { clear: both; margin: 0; padding-top: 2px; } /* rtl:ignore */ #plugin-information .reviewer-info .avatar { float: left; margin: 4px 6px 0 0; } /* rtl:ignore */ #plugin-information .reviewer-info .star-rating { float: left; } /* rtl:ignore */ #plugin-information .review-meta { float: left; margin-left: 0.75em; } /* rtl:ignore */ #plugin-information .review-body { float: left; width: 100%; } .plugin-version-author-uri { font-size: 13px; } /* For non-js plugin installation screen ticket #36430. */ .update-php .button.button-primary { margin-left: 1em; } @media screen and (max-width: 771px) { #plugin-information-title.with-banner { height: 100px; } #plugin-information-title.with-banner h2 { margin-top: 30px; font-size: 20px; line-height: 2; max-width: 85%; } #plugin-information-title.with-banner div.vignette { height: 100px; } #plugin-information-tabs { overflow: hidden; /* clearfix */ padding: 0; height: auto; /* let tabs wrap */ } #plugin-information-tabs a.current { margin-bottom: 0; border-bottom: none; } #plugin-information .fyi { float: none; border: 1px solid #dcdcde; position: static; width: auto; margin: 26px 26px 0; padding-bottom: 0; /* reset from the two column height fix */ } #section-holder { position: static; margin: 0; padding-bottom: 70px; /* reset from the two column height fix, plus accommodate footer */ } #plugin-information .fyi h3, #plugin-information .fyi small { display: none; } #plugin-information-footer { padding: 12px 16px 0; height: 46px; } } /* Thickbox for the Plugin details modal. */ #TB_window.plugin-details-modal { background: #fff; } #TB_window.plugin-details-modal.thickbox-loading:before { content: ""; display: block; width: 20px; height: 20px; position: absolute; right: 50%; top: 50%; z-index: -1; margin: -10px -10px 0 0; background: #fff url(../images/spinner.gif) no-repeat center; background-size: 20px 20px; transform: translateZ(0); } @media print, (min-resolution: 120dpi) { #TB_window.plugin-details-modal.thickbox-loading:before { background-image: url(../images/spinner-2x.gif); } } .plugin-details-modal #TB_title { float: right; height: 1px; } .plugin-details-modal #TB_ajaxWindowTitle { display: none; } .plugin-details-modal #TB_closeWindowButton { right: auto; left: -30px; color: #f0f0f1; } .plugin-details-modal #TB_closeWindowButton:hover, .plugin-details-modal #TB_closeWindowButton:focus { outline: none; box-shadow: none; } .plugin-details-modal #TB_closeWindowButton:hover::after, .plugin-details-modal #TB_closeWindowButton:focus::after { outline: 2px solid; outline-offset: -4px; border-radius: 4px; } .plugin-details-modal .tb-close-icon { display: none; } .plugin-details-modal #TB_closeWindowButton:after { content: "\f335"; content: "\f335" / ''; font: normal 32px/29px 'dashicons'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* move plugin install close icon to top on narrow screens */ @media screen and (max-width: 830px) { .plugin-details-modal #TB_closeWindowButton { left: 0; top: -30px; } } /* @todo: move this. */ img { border: none; } /* Metabox collapse arrow indicators */ .sidebar-name .toggle-indicator::before, .meta-box-sortables .postbox .toggle-indicator::before, .meta-box-sortables .postbox .order-higher-indicator::before, .meta-box-sortables .postbox .order-lower-indicator::before, .bulk-action-notice .toggle-indicator::before, .privacy-text-box .toggle-indicator::before { content: "\f142"; content: "\f142" / ''; display: inline-block; font: normal 20px/1 dashicons; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none; } .js .widgets-holder-wrap.closed .toggle-indicator::before, .meta-box-sortables .postbox.closed .handlediv .toggle-indicator::before, .bulk-action-notice .bulk-action-errors-collapsed .toggle-indicator::before, .privacy-text-box.closed .toggle-indicator::before { content: "\f140"; content: "\f140" / ''; } .postbox .handle-order-higher .order-higher-indicator::before { content: "\f343"; content: "\f343" / ''; color: inherit; } .postbox .handle-order-lower .order-lower-indicator::before { content: "\f347"; content: "\f347" / ''; color: inherit; } .postbox .handle-order-higher .order-higher-indicator::before, .postbox .handle-order-lower .order-lower-indicator::before { position: relative; top: 0.11rem; width: 20px; height: 20px; } .postbox .handlediv .toggle-indicator::before { width: 20px; border-radius: 50%; } .postbox .handlediv .toggle-indicator::before { position: relative; top: 0.05rem; text-indent: -1px; /* account for the dashicon glyph uneven horizontal alignment */ } .rtl .postbox .handlediv .toggle-indicator::before { text-indent: 1px; /* account for the dashicon glyph uneven horizontal alignment */ } .bulk-action-notice .toggle-indicator::before { line-height: 16px; vertical-align: top; color: #787c82; } .postbox .handle-order-higher:focus, .postbox .handle-order-lower:focus, .postbox .handlediv:focus { box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); border-radius: 50%; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .postbox .handle-order-higher:focus .order-higher-indicator::before, .postbox .handle-order-lower:focus .order-lower-indicator::before, .postbox .handlediv:focus .toggle-indicator::before { box-shadow: none; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } /* @todo: appears to be Press This only and overridden */ #photo-add-url-div input[type="text"] { width: 300px; } /* Theme/Plugin file editor */ .alignleft h2 { margin: 0; } #template textarea { font-family: Consolas, Monaco, monospace; font-size: 13px; background: #f6f7f7; tab-size: 4; } #template textarea, #template .CodeMirror { width: 100%; min-height: 60vh; height: calc( 100vh - 295px ); border: 1px solid #dcdcde; box-sizing: border-box; } #templateside > h2 { padding-top: 6px; padding-bottom: 7px; margin: 0; } #templateside ol, #templateside ul { margin: 0; padding: 0; } #templateside > ul { box-sizing: border-box; margin-top: 0; overflow: auto; padding: 0; min-height: 60vh; height: calc(100vh - 295px); background-color: #f6f7f7; border: 1px solid #dcdcde; border-right: none; } #templateside ul ul { padding-right: 12px; } #templateside > ul > li > ul[role=group] { padding-right: 0; } /* * Styles for Theme and Plugin file editors. */ /* Hide collapsed items. */ [role="treeitem"][aria-expanded="false"] > ul { display: none; } /* Use arrow dashicons for folder states, but hide from screen readers. */ [role="treeitem"] span[aria-hidden] { display: inline; font-family: dashicons; font-size: 20px; position: absolute; pointer-events: none; } [role="treeitem"][aria-expanded="false"] > .folder-label .icon:after { content: "\f141"; content: "\f139" / ''; } [role="treeitem"][aria-expanded="true"] > .folder-label .icon:after { content: "\f140"; content: "\f140" / ''; } [role="treeitem"] .folder-label { display: block; padding: 3px 12px 3px 3px; cursor: pointer; } /* Remove outline, and create our own focus and hover styles */ [role="treeitem"] { outline: 0; } [role="treeitem"] a:focus, [role="treeitem"] .folder-label.focus { color: #043959; /* Reset default focus style. */ box-shadow: none; /* Use an inset outline instead, so it's visible also over the current file item. */ outline: 2px solid var(--wp-admin-theme-color, #3858e9); outline-offset: -2px; } [role="treeitem"].hover, [role="treeitem"] .folder-label.hover { background-color: #f0f0f1; } .tree-folder { margin: 0; position: relative; } [role="treeitem"] li { position: relative; } /* Styles for folder indicators/depth */ .tree-folder .tree-folder::after { content: ""; display: block; position: absolute; right: 2px; border-right: 1px solid #c3c4c7; top: -13px; bottom: 10px; } .tree-folder > li::before { content: ""; position: absolute; display: block; border-right: 1px solid #c3c4c7; right: 2px; top: -5px; height: 18px; width: 7px; border-bottom: 1px solid #c3c4c7; } .tree-folder > li::after { content: ""; position: absolute; display: block; border-right: 1px solid #c3c4c7; right: 2px; bottom: -7px; top: 0; } /* current-file needs to adjustment for .notice styles */ #templateside .current-file { margin: -4px 0 -2px; } .tree-folder > .current-file::before { right: 4px; height: 15px; width: 0; border-right: none; top: 3px; } .tree-folder > .current-file::after { bottom: -4px; height: 7px; right: 2px; top: auto; } /* Lines shouldn't continue on last item */ .tree-folder > li:last-child::after, .tree-folder li:last-child > .tree-folder::after { display: none; } #theme-plugin-editor-selector, #theme-plugin-editor-label, #documentation label { font-weight: 600; } #theme-plugin-editor-label { display: inline-block; margin-bottom: 1em; } /* rtl:ignore */ #template textarea, #docs-list { direction: ltr; } .fileedit-sub #theme, .fileedit-sub #plugin { max-width: 40%; } .fileedit-sub .alignright { text-align: left; } #template p { width: 97%; } #file-editor-linting-error { margin-top: 1em; margin-bottom: 1em; } #file-editor-linting-error > .notice { margin: 0; display: inline-block; } #file-editor-linting-error > .notice > p { width: auto; } #template .submit { margin-top: 1em; padding: 0; } #template .submit input[type=submit][disabled] { cursor: not-allowed; } #templateside { float: left; width: 16em; word-wrap: break-word; } #postcustomstuff p.submit { margin: 0; } #templateside h4 { margin: 1em 0 0; } #templateside li { margin: 4px 0; } #templateside li:not(.howto) a, .theme-editor-php .highlight { display: block; padding: 3px 12px 3px 0; text-decoration: none; } #templateside li.current-file > a { padding-bottom: 0; } #templateside li:not(.howto) > a:first-of-type { padding-top: 0; } #templateside li.howto { padding: 6px 12px 12px; } .theme-editor-php .highlight { margin: -3px -12px -3px 3px; } #templateside .highlight { border: none; font-weight: 600; } .nonessential { color: #646970; font-size: 11px; font-style: italic; padding-right: 12px; } #documentation { margin-top: 10px; } #documentation label { line-height: 1.8; vertical-align: baseline; } .fileedit-sub { padding: 10px 0 8px; line-height: 180%; } #file-editor-warning .file-editor-warning-content { margin: 25px; } /* @todo: can we use a common class for these? */ .nav-menus-php .item-edit:before, .wp-customizer .control-section .accordion-section-title:after, .wp-customizer .accordion-section-title:after, .widget-top .widget-action .toggle-indicator:before { content: "\f140"; content: "\f140" / ''; font: normal 20px/1 dashicons; display: block; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-decoration: none; } .widget-top .widget-action .toggle-indicator:before { padding: 1px 0 1px 2px; border-radius: 50%; } .handlediv, .postbox .handlediv.button-link, .item-edit, .toggle-indicator { color: #646970; } .widget-action { color: #50575e; /* #fafafa background in the Widgets screen */ } .widget-top:hover .widget-action, .widget-action:focus, .handlediv:hover, .handlediv:focus, .postbox .handlediv.button-link:hover, .postbox .handlediv.button-link:focus, .item-edit:hover, .item-edit:focus, .sidebar-name:hover .toggle-indicator { color: #1d2327; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .widget-top .widget-action:focus .toggle-indicator:before { box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } #customize-info.open .accordion-section-title:after, .nav-menus-php .menu-item-edit-active .item-edit:before, .widget.open .widget-top .widget-action .toggle-indicator:before, .widget.widget-in-question .widget-top .widget-action .toggle-indicator:before { content: "\f142"; content: "\f142" / ''; } /*! * jQuery UI Draggable/Sortable 1.11.4 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ .ui-draggable-handle, .ui-sortable-handle { touch-action: none; } /* Accordion */ .accordion-section { border-bottom: 1px solid #dcdcde; margin: 0; } .accordion-section.open .accordion-section-content, .no-js .accordion-section .accordion-section-content { display: block; } .accordion-section.open:hover { border-bottom-color: #dcdcde; } .accordion-section-content { display: none; padding: 10px 20px 15px; overflow: hidden; background: #fff; } .accordion-section-title { margin: 0; position: relative; border-right: 1px solid #dcdcde; border-left: 1px solid #dcdcde; -webkit-user-select: none; user-select: none; } .js .accordion-section-title { cursor: pointer; } .js .accordion-section-title:after { position: absolute; top: 12px; left: 10px; z-index: 1; } .accordion-section-title:focus { /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } .accordion-section-title:hover:after, .accordion-section-title:focus:after { border-color: #a7aaad transparent; /* Only visible in Windows High Contrast mode */ outline: 1px solid transparent; } .cannot-expand .accordion-section-title { cursor: auto; } .cannot-expand .accordion-section-title:after { display: none; } .control-section .accordion-section-title, .customize-pane-child .accordion-section-title { border-right: none; border-left: none; padding: 10px 14px 11px 10px; line-height: 1.55; background: #fff; } .control-section .accordion-section-title:after, .customize-pane-child .accordion-section-title:after { top: calc(50% - 10px); /* Arrow height is 20px, so use half of that to vertically center */ } .js .control-section:hover .accordion-section-title, .js .control-section .accordion-section-title:hover, .js .control-section.open .accordion-section-title, .js .control-section .accordion-section-title:focus { color: #1d2327; background: #f6f7f7; } .control-section.open .accordion-section-title { /* When expanded */ border-bottom: 1px solid #dcdcde; } /* Edit Site */ .network-admin .edit-site-actions { margin-top: 0; } /* My Sites */ .my-sites { display: block; overflow: auto; zoom: 1; } .my-sites li { display: block; padding: 8px 3%; min-height: 130px; margin: 0; } @media only screen and (max-width: 599px) { .my-sites li { min-height: 0; } } @media only screen and (min-width: 600px) { .my-sites.striped li { background-color: #fff; position: relative; } .my-sites.striped li:after { content: ""; width: 1px; height: 100%; position: absolute; top: 0; left: 0; background: #c3c4c7; } } @media only screen and (min-width: 600px) and (max-width: 699px) { .my-sites li{ float: right; width: 44%; } .my-sites.striped li { background-color: #fff; } .my-sites.striped li:nth-of-type(2n+1) { clear: right; } .my-sites.striped li:nth-of-type(2n+2):after { content: none; } .my-sites li:nth-of-type(4n+1), .my-sites li:nth-of-type(4n+2) { background-color: #f6f7f7; } } @media only screen and (min-width: 700px) and (max-width: 1199px) { .my-sites li { float: right; width: 27.333333%; background-color: #fff; } .my-sites.striped li:nth-of-type(3n+3):after { content: none; } .my-sites li:nth-of-type(6n+1), .my-sites li:nth-of-type(6n+2), .my-sites li:nth-of-type(6n+3) { background-color: #f6f7f7; } } @media only screen and (min-width: 1200px) and (max-width: 1399px) { .my-sites li { float: right; width: 21%; padding: 8px 2%; background-color: #fff; } .my-sites.striped li:nth-of-type(4n+1) { clear: right; } .my-sites.striped li:nth-of-type(4n+4):after { content: none; } .my-sites li:nth-of-type(8n+1), .my-sites li:nth-of-type(8n+2), .my-sites li:nth-of-type(8n+3), .my-sites li:nth-of-type(8n+4) { background-color: #f6f7f7; } } @media only screen and (min-width: 1400px) and (max-width: 1599px) { .my-sites li { float: right; width: 16%; padding: 8px 2%; background-color: #fff; } .my-sites.striped li:nth-of-type(5n+1) { clear: right; } .my-sites.striped li:nth-of-type(5n+5):after { content: none; } .my-sites li:nth-of-type(10n+1), .my-sites li:nth-of-type(10n+2), .my-sites li:nth-of-type(10n+3), .my-sites li:nth-of-type(10n+4), .my-sites li:nth-of-type(10n+5) { background-color: #f6f7f7; } } @media only screen and (min-width: 1600px) { .my-sites li { float: right; width: 12.666666%; padding: 8px 2%; background-color: #fff; } .my-sites.striped li:nth-of-type(6n+1) { clear: right; } .my-sites.striped li:nth-of-type(6n+6):after { content: none; } .my-sites li:nth-of-type(12n+1), .my-sites li:nth-of-type(12n+2), .my-sites li:nth-of-type(12n+3), .my-sites li:nth-of-type(12n+4), .my-sites li:nth-of-type(12n+5), .my-sites li:nth-of-type(12n+6) { background-color: #f6f7f7; } } .my-sites li a { text-decoration: none; } /* =Media Queries -------------------------------------------------------------- */ /** * HiDPI Displays */ @media print, (min-resolution: 120dpi) { /* Back-compat for pre-3.8 */ div.star-holder, div.star-holder .star-rating { background: url(../images/stars-2x.png?ver=20121108) repeat-x bottom right; background-size: 21px 37px; } .spinner { background-image: url(../images/spinner-2x.gif); } } @media screen and (max-width: 782px) { html.wp-toolbar { padding-top: var(--wp-admin--admin-bar--height); } .screen-reader-shortcut:focus { top: -39px; } .block-editor-page .screen-reader-shortcut:focus { top: 7px; } .screen-reader-shortcut[href="#wp-toolbar"] { display: none; } body { min-width: 240px; overflow-x: hidden; } body * { -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important; } #wpcontent { position: relative; margin-right: 0; padding-right: 10px; } #wpbody-content { padding-bottom: 100px; } .wrap { clear: both; margin-left: 12px; margin-right: 0; } /* categories */ #col-left, #col-right { float: none; width: auto; } #col-left .col-wrap, #col-right .col-wrap { padding: 0; } /* Hidden Elements */ #collapse-menu, .post-format-select { display: none !important; } .wrap h1.wp-heading-inline { margin-bottom: 0.5em; } .wrap .add-new-h2, /* deprecated */ .wrap .add-new-h2:active, /* deprecated */ .wrap .page-title-action, .wrap .page-title-action:active { padding: 0 14px; font-size: 14px; white-space: nowrap; min-height: 40px; line-height: 2.71428571; vertical-align: middle; } /* Feedback Messages */ .notice, .wrap div.updated, .wrap div.error, .media-upload-form div.error { margin: 20px 0 10px; padding: 5px 10px; font-size: 14px; line-height: 175%; } .wp-core-ui .notice.is-dismissible { padding-left: 46px; } .notice-dismiss { padding: 13px; } .wrap .icon32 + h2 { margin-top: -2px; } .wp-responsive-open #wpbody { left: -16em; } code { word-wrap: break-word; word-wrap: anywhere; /* Firefox. Allow breaking long words anywhere */ word-break: break-word; /* Webkit: Treated similarly to word-wrap: break-word */ } /* General Metabox */ .postbox { font-size: 14px; } .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */ .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */ .metabox-holder h2 { padding: 12px; } .nav-menus-php .metabox-holder h3 { padding: 0; } .postbox .handlediv { margin-top: 3px; } /* Subsubsub Nav */ .subsubsub { font-size: 16px; text-align: center; margin-bottom: 15px; } /* Theme/Plugin File Editor */ #template textarea, #template .CodeMirror { box-sizing: border-box; } #templateside { float: none; width: auto; } #templateside > ul { border-right: 1px solid #dcdcde; } #templateside li { margin: 0; } #templateside li:not(.howto) a { display: block; padding: 5px; } #templateside li.howto { padding: 12px; } #templateside .highlight { padding: 5px; margin-right: -5px; margin-top: -5px; } #template > div, #template .notice { float: none; margin: 1em 0; width: auto; } #template .CodeMirror, #template textarea { width: 100%; } #templateside ul ul { padding-right: 1.5em; } [role="treeitem"] .folder-label { display: block; padding: 5px; } .tree-folder > li::before, .tree-folder > li::after, .tree-folder .tree-folder::after { right: -8px; } .tree-folder > li::before { top: 0; height: 13px; } .tree-folder > .current-file::before { right: -5px; top: 7px; width: 4px; } .tree-folder > .current-file::after { height: 9px; right: -8px; } .wrap #templateside span.notice { margin-right: -5px; width: 100%; } .fileedit-sub .alignright { float: right; margin-top: 15px; width: 100%; text-align: right; } .fileedit-sub .alignright label { display: block; } .fileedit-sub #theme, .fileedit-sub #plugin { margin-right: 0; max-width: 70%; } .fileedit-sub input[type="submit"] { margin-bottom: 0; } #documentation label[for="docs-list"] { display: block; } #documentation select[name="docs-list"] { margin-right: 0; max-width: 60%; } #documentation input[type="button"] { margin-bottom: 0; } #wpfooter { display: none; } #comments-form .checkforspam { display: none; } .edit-comment-author { margin: 2px 0 0; } .filter-drawer .filter-group-feature input, .filter-drawer .filter-group-feature label { line-height: 2.1; } .filter-drawer .filter-group-feature label { margin-right: 32px; } .wp-filter .button.drawer-toggle { font-size: 13px; line-height: 2; height: 28px; } /* Fix help tab columns for smaller screens */ #screen-meta #contextual-help-wrap { overflow: visible; } #screen-meta #contextual-help-back, #screen-meta .contextual-help-sidebar { display: none; } #screen-meta .contextual-help-tabs { clear: both; width: 100%; float: none; } #screen-meta .contextual-help-tabs ul { margin: 0 0 1em; padding: 1em 0 0; } #screen-meta .contextual-help-tabs .active { margin: 0; } #screen-meta .contextual-help-tabs-wrap { clear: both; max-width: 100%; float: none; } #screen-meta, #screen-meta-links { margin-left: 10px; } #screen-meta-links { margin-bottom: 20px; /* Add margins beneath links for better spacing between boxes and elements */ } .wp-filter .search-form input[type="search"] { font-size: 1rem; } .wp-filter .search-form.search-plugins { /* This element is a flex item. */ min-width: 100%; } } /* Smartphone */ @media screen and (max-width: 600px) { /* Disable horizontal scroll when responsive menu is open since we push the main content off to the right. */ #wpwrap.wp-responsive-open { overflow-x: hidden; } html.wp-toolbar { padding-top: 0; } .screen-reader-shortcut:focus { top: 7px; } #wpbody { padding-top: 46px; } /* Keep full-width boxes on Edit Post page from causing horizontal scroll */ div#post-body.metabox-holder.columns-1 { overflow-x: hidden; } h1.nav-tab-wrapper, .wrap h2.nav-tab-wrapper, .nav-tab-wrapper { border-bottom: 0; } h1 .nav-tab, h2 .nav-tab, h3 .nav-tab, nav .nav-tab { margin: 10px 0 0 10px; border-bottom: 1px solid #c3c4c7; } .nav-tab-active:hover, .nav-tab-active:focus, .nav-tab-active:focus:active { border-bottom: 1px solid #c3c4c7; } .wp-filter .search-form.search-plugins label { width: 100%; } } @media screen and (max-width: 480px) { .metabox-prefs-container { display: grid; } .metabox-prefs-container > * { display: inline-block; padding: 2px; } } @media screen and (max-width: 320px) { /* Prevent default center alignment and larger font for the Right Now widget when the network dashboard is viewed on a small mobile device. */ #network_dashboard_right_now .subsubsub { font-size: 14px; text-align: right; } } css/forms-rtl.min.css000064400000072764152213653150010600 0ustar00/*! This file is auto-generated */ button,input,select,textarea{box-sizing:border-box;font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea{font-size:14px}textarea{overflow:auto;padding:8px 12px;line-height:1.42857143;resize:vertical}input,select{margin:0 1px}textarea.code{padding:8px 12px}input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,textarea{box-shadow:0 0 0 transparent;border-radius:2px;border:1px solid #949494;background-color:#fff;color:#1e1e1e}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{padding:0 12px;min-height:40px}select{padding:0 12px 0 24px;line-height:2.71428571;min-height:40px}::-webkit-datetime-edit{line-height:1.85714286}input[type=color]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,select:focus,textarea:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color);outline:2px solid transparent}input[type=checkbox]:focus,input[type=radio]:focus{border-color:#1e1e1e;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.ltr,input[type=email],input[type=password],input[type=url]{direction:ltr}input[type=checkbox],input[type=radio]{border:1px solid #1e1e1e;border-radius:2px;background:#fff;color:#1e1e1e;clear:none;cursor:pointer;display:inline-block;line-height:0;height:1rem;margin:-.25rem 0 0 .25rem;outline:0;padding:0!important;text-align:center;vertical-align:middle;width:1rem;min-width:1rem;-webkit-appearance:none;box-shadow:none;transition:.05s border-color ease-in-out}input[type=radio]:checked+label:before{color:#949494}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#135e96}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio],td>input[type=checkbox]{margin-top:0}.wp-admin p label input[type=checkbox]{margin-top:-4px}.wp-admin p label input[type=radio]{margin-top:-2px}input[type=radio]{display:inline-flex;border-radius:50%;margin-left:.25rem;align-items:center;justify-content:center}input[type=checkbox]:checked::before,input[type=radio]:checked::before{float:right;display:inline-block;vertical-align:middle;width:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}input[type=checkbox]:checked::before{content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E");content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E")/'';margin:-.1875rem -.25rem 0 0;height:1.3125rem;width:1.3125rem}input[type=checkbox]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}input[type=radio]:checked::before{content:"";border-radius:50%;width:.5rem;height:.5rem;margin:auto;background-color:#fff;outline:4px solid transparent}@-moz-document url-prefix(){.form-table input.tog,input[type=checkbox],input[type=radio]{margin-bottom:-1px}}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{display:none}input[type=search]::-webkit-search-cancel-button{cursor:pointer}.wp-admin input[type=file]{padding:3px 0;cursor:pointer}input.readonly,input[readonly],textarea.readonly,textarea[readonly]{background-color:#f0f0f0}::-webkit-input-placeholder{color:#757575}::-moz-placeholder{color:#757575}.form-invalid .form-required,.form-invalid .form-required:focus,.form-invalid.form-required input,.form-invalid.form-required input:focus,.form-invalid.form-required select,.form-invalid.form-required select:focus{border-color:#d63638!important;box-shadow:0 0 2px rgba(214,54,56,.8)}.form-table .form-required.form-invalid td:after{content:"\f534";content:"\f534"/'';font:normal 20px/1 dashicons;color:#d63638;margin-right:-25px;vertical-align:middle}.form-table .form-required.user-pass1-wrap.form-invalid td:after{content:""}.form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after{content:"\f534";content:"\f534"/'';font:normal 20px/1 dashicons;color:#d63638;margin:0 -29px 0 6px;vertical-align:middle}.form-input-tip{color:#646970}input.disabled,input:disabled,select.disabled,select:disabled,textarea.disabled,textarea:disabled{background:#f0f0f0;border-color:#ccc;box-shadow:none;color:#949494}input[type=file].disabled,input[type=file]:disabled,input[type=file][aria-disabled=true],input[type=range].disabled,input[type=range]:disabled,input[type=range][aria-disabled=true]{background:0 0;box-shadow:none;cursor:default}input[type=checkbox].disabled,input[type=checkbox].disabled:checked:before,input[type=checkbox]:disabled,input[type=checkbox]:disabled:checked:before,input[type=checkbox][aria-disabled=true],input[type=radio].disabled,input[type=radio].disabled:checked:before,input[type=radio]:disabled,input[type=radio]:disabled:checked:before,input[type=radio][aria-disabled=true]{opacity:.7;cursor:default}.wp-core-ui select{font-size:14px;line-height:2.71428571;color:#1e1e1e;border-color:#949494;box-shadow:none;border-radius:2px;padding:0 12px 0 24px;min-height:40px;max-width:25rem;-webkit-appearance:none;background:#fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%231e1e1e%22%2F%3E%3C%2Fsvg%3E') no-repeat left 8px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle}.wp-core-ui select:hover{color:#1e1e1e;border-color:#1e1e1e}.wp-core-ui select:focus{border-color:var(--wp-admin-theme-color);color:#1e1e1e;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color)}.wp-core-ui select:active{border-color:#949494;box-shadow:none}.wp-core-ui select.disabled,.wp-core-ui select:disabled{color:#a7aaad;border-color:#dcdcde;background-color:#f6f7f7;background-image:url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E');box-shadow:none;text-shadow:0 1px 0 #fff;cursor:default;transform:none}.wp-core-ui select[aria-disabled=true]{cursor:default}.wp-core-ui select:-moz-focusring{color:transparent;text-shadow:0 0 0 #0a4b78}.wp-core-ui select::-ms-value{background:0 0;color:#50575e}.wp-core-ui select:hover::-ms-value{color:#1e1e1e}.wp-core-ui select:focus::-ms-value{color:#0a4b78}.wp-core-ui select.disabled::-ms-value,.wp-core-ui select:disabled::-ms-value{color:#a7aaad}.wp-core-ui select::-ms-expand{display:none}.wp-admin .button-cancel{display:inline-block;min-height:28px;padding:0 5px;line-height:2}.meta-box-sortables select{max-width:100%}.meta-box-sortables input{vertical-align:middle}.misc-pub-post-status select{margin-top:0}.wp-core-ui select[multiple]{height:auto;padding-left:8px;background:#fff}.submit{padding:1.5em 0;margin:5px 0;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:none}form p.submit a.cancel:hover{text-decoration:none}p.submit{text-align:right;max-width:100%;margin-top:20px;padding-top:10px}.textright p.submit{border:none;text-align:left}table.form-table+input+input+p.submit,table.form-table+input+p.submit,table.form-table+p.submit{border-top:none;padding-top:0}#major-publishing-actions input,#minor-publishing-actions .preview,#minor-publishing-actions input{text-align:center}input.all-options,textarea.all-options{width:250px}input.large-text,textarea.large-text{width:99%}.regular-text{width:25em}input.small-text{width:50px;padding:0 8px}label input.small-text{margin-top:-4px}input[type=number].small-text{width:65px;padding-left:4px}input.tiny-text{width:35px}input[type=number].tiny-text{width:45px;padding-left:0}#doaction,#doaction2,#post-query-submit{margin:0 0 0 8px;min-height:32px;line-height:2.30769231;padding:0 12px}.no-js input#changeit2,.no-js input#doaction2,.no-js label[for=bulk-action-selector-bottom],.no-js label[for=new_role2],.no-js select#bulk-action-selector-bottom,.no-js select#new_role2{display:none}.wp-core-ui .tablenav input[type=date],.wp-core-ui .tablenav input[type=datetime-local],.wp-core-ui .tablenav input[type=datetime],.wp-core-ui .tablenav input[type=email],.wp-core-ui .tablenav input[type=month],.wp-core-ui .tablenav input[type=number],.wp-core-ui .tablenav input[type=password],.wp-core-ui .tablenav input[type=search],.wp-core-ui .tablenav input[type=tel],.wp-core-ui .tablenav input[type=text],.wp-core-ui .tablenav input[type=time],.wp-core-ui .tablenav input[type=url],.wp-core-ui .tablenav input[type=week],.wp-core-ui .tablenav select{padding:0 12px;line-height:2.14285714;min-height:32px}.wp-core-ui .tablenav select{float:right;margin-left:6px;max-width:12.5rem;padding:0 8px 0 24px}.wp-core-ui .tablenav .button{min-height:32px;line-height:2.30769231;padding:0 12px}#timezone_string option{margin-right:1em}.wp-core-ui .button.wp-cancel-pw>.dashicons,.wp-core-ui .button.wp-hide-pw>.dashicons{width:1.25rem;height:1.25rem;font-size:20px;line-height:1;vertical-align:middle}.button.wp-hide-pw.user-new-password-toggle{display:inline-flex;align-items:center;column-gap:4px}.wp-cancel-pw .dashicons-no{display:none}#your-profile label+a,label{vertical-align:middle}#your-profile label+a,fieldset label{vertical-align:middle}.options-media-php [for*="_size_"]{min-width:10em;vertical-align:baseline}.options-media-php .small-text[name*="_size_"]{margin:0 0 1em}.wp-generate-pw{margin-top:1em;position:relative}.wp-pwd button{height:min-content}.wp-pwd{margin-top:1em;position:relative}.mailserver-pass-wrap .wp-pwd{display:inline-block;margin-top:0}#mailserver_pass{padding-right:2.5rem}.mailserver-pass-wrap .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;width:2.5rem;min-width:40px;margin:0;padding:0 9px;position:absolute;right:0;top:0}.mailserver-pass-wrap .button.wp-hide-pw:hover{background:0 0;border-color:transparent}.mailserver-pass-wrap .button.wp-hide-pw:focus{background:0 0;border-color:var(--wp-admin-theme-color);border-radius:2px;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.mailserver-pass-wrap .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}#misc-publishing-actions label{vertical-align:baseline}#pass-strength-result{background-color:#f0f0f0;border:1px solid #ccc;border-radius:2px;color:#1e1e1e;margin:-1px 1px 5px;padding:3px 5px;text-align:center;width:25em;box-sizing:border-box;opacity:0}#pass-strength-result.short{background-color:#ffabaf;border-color:#e65054;opacity:1}#pass-strength-result.bad{background-color:#facfd2;border-color:#f86368;opacity:1}#pass-strength-result.good{background-color:#f5e6ab;border-color:#f0c33c;opacity:1}#pass-strength-result.strong{background-color:#b8e6bf;border-color:#68de7c;opacity:1}.password-input-wrapper{display:inline-block}.password-input-wrapper input{font-family:Consolas,Monaco,monospace}#pass1-text.short,#pass1.short{border-color:#e65054}#pass1-text.bad,#pass1.bad{border-color:#f86368}#pass1-text.good,#pass1.good{border-color:#f0c33c}#pass1-text.strong,#pass1.strong{border-color:#68de7c}#pass1-text:focus,#pass1:focus{box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.pw-weak{display:none}.indicator-hint{padding-top:8px}.wp-pwd [type=password],.wp-pwd [type=text]{margin-bottom:0;min-height:40px}.wp-pwd input::-ms-reveal{display:none}#pass1-text,.show-password #pass1{display:none}#pass1-text::-ms-clear{display:none}.show-password #pass1-text{display:inline-block}.wp-pwd .caps-warning{display:none;position:relative;background:#fcf9e8;border:1px solid #f0c33c;color:#1d2327;padding:6px 10px;top:-8px}.profile-php .wp-pwd .caps-warning{padding:3px 5px;top:-4px;border-radius:2px}.wp-pwd .caps-icon{display:inline-flex;justify-content:center;width:20px;height:20px;margin-left:5px;vertical-align:middle}.wp-pwd .caps-warning-text{vertical-align:middle}p.search-box{display:flex;flex-wrap:wrap;align-items:center;column-gap:.5rem;position:relative;float:left;margin:11px 0}p.search-box input[type=search],p.search-box input[type=text]{min-height:32px;padding:0 8px}p.search-box .button{min-height:32px;line-height:2.30769231;padding:0 12px}.network-admin.themes-php p.search-box{clear:right}.tablenav .search-plugins input[name="s"]{float:right;margin:0 0 0 4px}.tagsdiv .newtag{margin:0}.js.plugins-php .search-box .wp-filter-search{margin:0;width:280px}input[type=email].ui-autocomplete-loading,input[type=text].ui-autocomplete-loading{background-image:url(../images/loading.gif);background-repeat:no-repeat;background-position:left 5px center;visibility:visible}input.ui-autocomplete-input.open{border-bottom-color:transparent}ul#add-to-blog-users{margin:0 14px 0 0}.ui-autocomplete{padding:0;margin:0;list-style:none;position:absolute;z-index:10000;border:1px solid #4f94d4;box-shadow:0 1px 2px rgba(79,148,212,.8);background-color:#fff}.ui-autocomplete li{margin-bottom:0;padding:4px 10px;white-space:nowrap;text-align:right;cursor:pointer}.ui-autocomplete .ui-state-focus{background-color:#dcdcde}.wp-tags-autocomplete .ui-state-focus,.wp-tags-autocomplete [aria-selected=true]{background-color:var(--wp-admin-theme-color);color:#fff;outline:2px solid transparent}.form-table{border-collapse:collapse;margin-top:.5em;width:100%;clear:both}.form-table,.form-table td,.form-table td p,.form-table th{font-size:14px}.form-table td{margin-bottom:9px;padding:15px 10px;line-height:1.3;vertical-align:middle}.form-table th,.form-wrap label{color:#1d2327;font-weight:400;text-shadow:none;vertical-align:baseline}.form-table th{vertical-align:top;text-align:right;padding:20px 0 20px 10px;width:200px;line-height:1.3;font-weight:600}.form-table .td-full,.form-table th.th-full{width:auto;padding:20px 0 20px 10px;font-weight:400}.form-table td p{margin-top:4px;margin-bottom:0}.form-table .date-time-doc{margin-top:1em}.form-table p.timezone-info{margin:1em 0;display:flex;flex-direction:column}#local-time{margin-top:.5em}.form-table td fieldset label{margin:.35em 0 .5em!important;display:inline-block}.form-table td fieldset p label{margin-top:0!important}.form-table td fieldset label,.form-table td fieldset li,.form-table td fieldset p{line-height:1.4}.form-table .pre{padding:8px;margin:0}table.form-table td .updated{font-size:13px}table.form-table td .updated p{font-size:13px;margin:.3em 0}#profile-page .form-table textarea{width:500px;margin-bottom:6px}#profile-page .form-table #rich_editing{margin-left:5px}#your-profile legend{font-size:22px}#display_name{width:15em}#adduser .form-field input,#createuser .form-field input{width:25em}.color-option{display:inline-block;width:24%;padding:5px 15px 15px;box-sizing:border-box;margin-bottom:3px}.color-option.selected,.color-option:hover{background:#dcdcde}.color-palette{display:table;width:100%;border-spacing:0;border-collapse:collapse}.color-palette .color-palette-shade,.color-palette td{display:table-cell;height:20px;padding:0;border:none}.color-option{cursor:pointer}.create-application-password .form-field{max-width:25em}.create-application-password label{font-weight:600}.create-application-password p.submit{margin-bottom:0;padding-bottom:0;display:block}#application-passwords-section .notice{margin-top:20px;margin-bottom:0;word-wrap:break-word}.application-password-display input.code{margin-bottom:6px;width:100%;max-width:20em}.auth-app-card.card{max-width:768px}.authorize-application-php .form-wrap p{display:block}.tool-box .title{margin:8px 0;font-size:18px;font-weight:400;line-height:24px}.label-responsive{vertical-align:middle}#export-filters p{margin:0 0 1em}#export-filters p.submit{margin:7px 0 5px}.card{position:relative;margin-top:20px;padding:16px 24px;min-width:255px;max-width:520px;border:1px solid rgb(0,0,0,.1);border-radius:8px;background:#fff;box-sizing:border-box}.pressthis h4{margin:2em 0 1em}.pressthis textarea{width:100%;font-size:1em}#pressthis-code-wrap{overflow:auto}.pressthis-bookmarklet-wrapper{margin:20px 0 8px;vertical-align:top;position:relative;z-index:1}.pressthis-bookmarklet,.pressthis-bookmarklet:active,.pressthis-bookmarklet:focus,.pressthis-bookmarklet:hover{display:inline-block;position:relative;cursor:move;color:#2c3338;background:#dcdcde;border-radius:5px;border:1px solid #c3c4c7;font-style:normal;line-height:16px;font-size:14px;text-decoration:none}.pressthis-bookmarklet:active{outline:0}.pressthis-bookmarklet:after{content:"";width:70%;height:55%;z-index:-1;position:absolute;left:10px;bottom:9px;background:0 0;transform:skew(-20deg) rotate(-6deg);box-shadow:0 10px 8px rgba(0,0,0,.6)}.pressthis-bookmarklet:hover:after{transform:skew(-20deg) rotate(-9deg);box-shadow:0 10px 8px rgba(0,0,0,.7)}.pressthis-bookmarklet span{display:inline-block;margin:0;padding:0 9px 8px 12px}.pressthis-bookmarklet span:before{color:#787c82;font:normal 20px/1 dashicons;content:"\f157";content:"\f157"/'';position:relative;display:inline-block;top:4px;margin-left:4px}.pressthis-js-toggle{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle.button.button{margin-right:10px;padding:0;height:auto;vertical-align:top}.pressthis-js-toggle .dashicons{margin:5px 7px 6px 8px;color:#50575e}.timezone-info code{white-space:nowrap}.defaultavatarpicker .avatar{margin:2px 0;vertical-align:middle}.options-general-php .date-time-text{display:inline-block;min-width:10em}.options-general-php input.small-text{width:56px;margin:-2px 0;min-height:32px}.options-general-php .spinner{float:none;margin:-3px 3px 0}.options-general-php .language-install-spinner,.profile-php .language-install-spinner,.settings-php .language-install-spinner,.user-edit-php .language-install-spinner{display:inline-block;float:none;margin:-3px 5px 0;vertical-align:middle}.form-table.permalink-structure .available-structure-tags{margin-top:8px}.form-table.permalink-structure .available-structure-tags ul{display:flex;flex-wrap:wrap;margin:8px 0 0}.form-table.permalink-structure .available-structure-tags li{margin:6px 0 0 5px}.form-table.permalink-structure .available-structure-tags li:last-child{margin-left:0}.form-table.permalink-structure .structure-selection .row{margin-bottom:16px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 24px);display:inline-flex;flex-direction:column}.form-table.permalink-structure .structure-selection .row label{font-weight:600}.form-table.permalink-structure .structure-selection .row p{margin-top:0}.permalink-structure-optional-description code{display:inline-block}.setup-php textarea{max-width:100%}.form-field #site-address{max-width:25em}.form-field #domain{max-width:22em}.form-field #admin-email,.form-field #blog_last_updated,.form-field #blog_registered,.form-field #path,.form-field #site-title{max-width:25em}.form-field #path{margin-bottom:5px}#search-sites,#search-users{max-width:60%}.configuration-rules-label{font-weight:600;margin-bottom:4px}.request-filesystem-credentials-dialog{display:none;visibility:visible}.request-filesystem-credentials-dialog .notification-dialog{top:10%;max-height:85%}.request-filesystem-credentials-dialog-content{margin:25px}#request-filesystem-credentials-title{font-size:1.3em;margin:1em 0}.request-filesystem-credentials-form legend{font-size:1em;padding:1.33em 0;font-weight:600}.request-filesystem-credentials-form input[type=password],.request-filesystem-credentials-form input[type=text]{display:block}.request-filesystem-credentials-dialog input[type=password],.request-filesystem-credentials-dialog input[type=text]{width:100%}.request-filesystem-credentials-form .field-title{font-weight:600}.request-filesystem-credentials-dialog label[for=hostname],.request-filesystem-credentials-dialog label[for=private_key],.request-filesystem-credentials-dialog label[for=public_key]{display:block;margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:right;width:48%}.request-filesystem-credentials-dialog .ftp-password{margin-right:4%}.request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons{text-align:left}.request-filesystem-credentials-dialog label[for=ftp]{margin-left:10px}.request-filesystem-credentials-dialog #auth-keys-desc{margin-bottom:0}#request-filesystem-credentials-dialog .button:not(:last-child){margin-left:10px}#request-filesystem-credentials-form .cancel-button{display:none}#request-filesystem-credentials-dialog .cancel-button{display:inline}.request-filesystem-credentials-dialog .ftp-password,.request-filesystem-credentials-dialog .ftp-username{float:none;width:auto}.request-filesystem-credentials-dialog .ftp-username{margin-bottom:1em}.request-filesystem-credentials-dialog .ftp-password{margin:0}.request-filesystem-credentials-dialog .ftp-password em{color:#757575}.request-filesystem-credentials-dialog label{display:block;line-height:1.5;margin-bottom:1em}.request-filesystem-credentials-form legend{padding-bottom:0}.request-filesystem-credentials-form #ssh-keys legend{font-size:1.3em}.request-filesystem-credentials-form .notice{margin:0 0 20px;clear:both}.tools-privacy-policy-page form{margin-bottom:1.3em}.tools-privacy-policy-page input.button{margin:0 6px 0 1px}.tools-privacy-policy-page select{margin:0 6px .5em 1px}.tools-privacy-edit{margin:1.5em 0}.tools-privacy-policy-page span{line-height:2}.privacy_requests .column-email{width:40%}.privacy_requests .column-type{text-align:center}.privacy_requests tfoot td:first-child,.privacy_requests thead td:first-child{border-right:4px solid #fff}.privacy_requests tbody th{border-right:4px solid #fff;background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests .row-actions{color:#787c82}.privacy_requests .row-actions.processing{position:static}.privacy_requests tbody .has-request-results th{box-shadow:none}.privacy_requests tbody .request-results th .notice{margin:0 0 5px}.privacy_requests tbody td{background:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.privacy_requests tbody .has-request-results td{box-shadow:none}.privacy_requests .next_steps .button{word-wrap:break-word;white-space:normal}.privacy_requests .status-request-confirmed td,.privacy_requests .status-request-confirmed th{background-color:#fff;border-right-color:#72aee6}.privacy_requests .status-request-failed td,.privacy_requests .status-request-failed th{background-color:#f6f7f7;border-right-color:#d63638}.privacy_requests .export_personal_data_failed a{vertical-align:baseline}.status-label{font-weight:600}.status-label.status-request-pending{font-weight:400;font-style:italic;color:#646970}.status-label.status-request-failed{color:#d63638;font-weight:600}.privacy_requests .status-date{display:block;font-weight:400}.wp-privacy-request-form{clear:both}.wp-privacy-request-form-field{margin:1.5em 0}.wp-privacy-request-form input{margin:0}@media screen and (max-width:782px){textarea{-webkit-appearance:none}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week]{-webkit-appearance:none;padding:0 12px;min-height:40px}::-webkit-datetime-edit{line-height:1.875}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox],input[type=checkbox]{-webkit-appearance:none}.widefat tfoot td input[type=checkbox],.widefat th input[type=checkbox],.widefat thead td input[type=checkbox]{margin-bottom:8px}.widefat tfoot td input[type=checkbox]:before,.widefat th input[type=checkbox]:before,.widefat thead td input[type=checkbox]:before,input[type=checkbox]:checked:before{width:1.875rem;height:1.875rem;margin:-.1875rem -.3125rem}input[type=checkbox],input[type=radio]{height:1.5625rem;width:1.5625rem}.wp-admin p input[type=checkbox],.wp-admin p input[type=radio]{margin-top:-.1875rem}input[type=radio]:checked:before{vertical-align:middle;width:.5625rem;height:.5625rem;margin:.4375rem;line-height:.76190476}.wp-admin .form-table select,.wp-core-ui select{min-height:40px;font-size:16px;line-height:2.5;padding:0 12px 0 24px}.wp-admin .button-cancel{margin-bottom:0;padding:2px 0;font-size:14px;vertical-align:middle}#adduser .form-field input,#createuser .form-field input{width:100%}.form-table{box-sizing:border-box}.form-table td,.form-table th,.label-responsive{display:block;width:auto;vertical-align:middle}.label-responsive{margin:.5em 0}.export-filters li{margin-bottom:0}.form-table .color-palette .color-palette-shade,.form-table .color-palette td{display:table-cell;width:15px;height:30px;padding:0}.form-table .color-palette{margin-left:10px}input,textarea{font-size:16px}#profile-page .form-table textarea,.form-table span.description,.form-table td input[type=email],.form-table td input[type=password],.form-table td input[type=text],.form-table td select,.form-table td textarea{width:100%;display:block;max-width:none;box-sizing:border-box}.form-table .form-required.form-invalid td:after{float:left;margin:-30px 0 0 3px}.form-table input[type=text].small-text,input[type=number].small-text,input[type=password].small-text,input[type=search].small-text,input[type=text].small-text{width:auto;max-width:4.375em;display:inline;padding:3px 6px;margin:0 3px}.form-table .regular-text~input[type=text].small-text{margin-top:5px}#pass-strength-result{width:100%;box-sizing:border-box;padding:8px}.profile-php .wp-pwd .caps-warning{padding:8px}.password-input-wrapper{display:block}p.search-box{float:none;width:100%;margin-bottom:20px;display:flex}p.search-box input[name="s"]{width:100%;float:none;margin-bottom:10px;vertical-align:middle}.js.plugins-php .search-box .wp-filter-search{width:100%;margin-bottom:0}p.search-box input[type=submit]{margin-bottom:10px}.form-table span.description{display:inline;padding:4px 0 0;line-height:1.4;font-size:14px}.form-table th{padding:10px 0 0;border-bottom:0}.form-table td{margin-bottom:0;padding:4px 0 6px}.form-table.permalink-structure td code{display:inline-block}.form-table.permalink-structure .structure-selection{margin-top:8px}.form-table.permalink-structure .structure-selection .row>div{max-width:calc(100% - 36px);width:100%}.form-table.permalink-structure td input[type=text]{margin-top:4px}.permalink-structure-has-blog-prefix{display:flex;align-items:center}.form-table input.regular-text{width:100%}.form-table label{font-size:14px}.form-table td>label:first-child{display:inline-block;margin-top:.35em}.background-position-control .button-group>label{font-size:0}.form-table fieldset label{display:block}.form-field #domain{max-width:none}.wp-pwd{position:relative}#profile-page .form-table #pass1{padding-left:90px}.wp-pwd button.button{background:0 0;border:1px solid transparent;box-shadow:none;line-height:2;margin:0;padding:5px 9px;position:absolute;left:0;top:0;width:2.375rem;height:2.375rem;min-width:40px;min-height:40px}.wp-pwd button.wp-hide-pw{left:2.5rem}body.user-new-php .wp-pwd button.wp-hide-pw{left:0}.wp-pwd button.button:focus,.wp-pwd button.button:hover{background:0 0}.wp-pwd button.button:active{background:0 0;box-shadow:none;transform:none}.wp-pwd .button .text{display:none}.wp-pwd [type=password],.wp-pwd [type=text]{line-height:2;padding-left:5rem}body.user-new-php .wp-pwd [type=password],body.user-new-php .wp-pwd [type=text]{padding-left:2.5rem}.wp-cancel-pw .dashicons-no{display:inline-block}.mailserver-pass-wrap .wp-pwd{display:block}#mailserver_pass{padding-left:10px}.options-general-php input[type=text].small-text{max-width:6.25em;margin:0}.tools-privacy-policy-page form.wp-create-privacy-page{margin-bottom:1em}.tools-privacy-policy-page input#set-page,.tools-privacy-policy-page select{margin:10px 0 0}.tools-privacy-policy-page .wp-create-privacy-page span{display:block;margin-bottom:1em}.tools-privacy-policy-page .wp-create-privacy-page .button{margin-right:0}.wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column){display:table-cell}.wp-list-table.privacy_requests.widefat th input,.wp-list-table.privacy_requests.widefat thead td input{margin-right:5px}.wp-privacy-request-form-field input[type=text]{width:100%;margin-bottom:10px;vertical-align:middle}.regular-text{max-width:100%}}@media only screen and (max-width:768px){.form-field input[type=email],.form-field input[type=password],.form-field input[type=text],.form-field select,.form-field textarea{width:99%}.form-wrap .form-field{padding:0}}@media only screen and (max-height:480px),screen and (max-width:450px){.file-editor-warning .notification-dialog,.request-filesystem-credentials-dialog .notification-dialog{width:100%;height:100%;max-height:100%;position:fixed;top:0;margin:0;right:0}}@media screen and (max-width:600px){.color-option{width:49%}}@media only screen and (max-width:320px){.options-general-php .date-time-text.date-time-custom-text{min-width:0;margin-left:.5em}}@keyframes rotation{0%{transform:rotate(0)}100%{transform:rotate(-359deg)}}css/login.min.css000064400000014757152213653150007761 0ustar00/*! This file is auto-generated */ body,html{height:100%;margin:0;padding:0}body{background:#f0f0f1;min-width:0;color:#3c434a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:var(--wp-admin-theme-color-darker-10);transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:var(--wp-admin-theme-color-darker-20)}a:focus{color:#043959;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}p{line-height:1.5}.login .message,.login .notice,.login .success{border-left:4px solid #3858e9;padding:8px 12px;margin-top:0;margin-left:0;margin-bottom:20px;background-color:#fff;word-wrap:break-word}.login .message p,.login .notice p,.login .success p{font-size:13px;line-height:1.54;margin:.5em 0}.login .success{border-left-color:#4ab866;background-color:#eff9f1}.login .notice-error{border-left-color:#cc1818;background-color:#fcf0f0}.login .login-error-list{list-style:none}.login .login-error-list li+li{margin-top:4px}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:normal;width:2.5rem;height:2.5rem;min-width:40px;min-height:40px;margin:0;padding:5px 9px;position:absolute;right:0;top:0}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{width:1.25rem;height:1.25rem}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin:24px 0;padding:26px 24px;font-weight:400;overflow:hidden;background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 3px rgba(0,0,0,.04)}.login form.shake{animation:shake .2s cubic-bezier(.19,.49,.38,.79) both;animation-iteration-count:3;transform:translateX(0)}@keyframes shake{25%{transform:translateX(-20px)}75%{transform:translateX(20px)}100%{transform:translateX(0)}}@media (prefers-reduced-motion:reduce){.login form.shake{animation:none;transform:none}}.login-action-confirm_admin_email #login{width:60vw;max-width:650px;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{box-sizing:border-box;margin-top:0;padding-left:4vw;padding-right:4vw;width:100vw}}.login form .forgetmenot{font-weight:400;float:left;margin-bottom:0}.login .button-primary{float:right}.login .reset-pass-submit{display:flex;flex-flow:row wrap;justify-content:space-between}.login .reset-pass-submit .button{display:inline-block;float:none;margin-bottom:6px}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:left}.login form p.admin-email__details{margin:1.1em 0}.login .admin-email__heading{border-bottom:1px #f0f0f1 solid;color:#50575e;font-weight:400;padding-bottom:.5em;text-align:left}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-left:.25em;margin-right:.25em}#login form p{margin-bottom:0}#login #reg_passmail,#login form .indicator-hint{margin-bottom:16px}#login form p.submit{margin:0;padding:0}.login label{font-size:14px;line-height:1.5;display:inline-block;margin-bottom:3px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-gray.png?ver=20260303);background-image:none,url(../images/wordpress-logo-gray.svg?ver=20260303);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#3c434a;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 24px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:5% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px}.login #nav{margin:24px 0 0}#backtoblog{margin:16px 0;word-wrap:break-word}.login #backtoblog a,.login #nav a{text-decoration:none;color:#50575e}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:var(--wp-admin-theme-color-darker-20)}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#043959}.login .privacy-policy-page-link{text-align:center;width:100%;margin:3em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;line-height:1.33333333;width:100%;border-width:.0625rem;padding:.1875rem .3125rem;margin:0 6px 16px 0;min-height:40px;max-height:none}.login input.password-input{font-family:Consolas,Monaco,monospace}.js.login input.password-input{padding-right:2.5rem}.js.login-action-resetpass input[type=password],.js.login-action-resetpass input[type=text],.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 5px 16px 0;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}input::-ms-reveal{display:none}#language-switcher{padding:0;overflow:visible;background:0 0;border:none;box-shadow:none}#language-switcher select{margin-right:.25em}.language-switcher{margin:0 auto;padding:0 0 24px;text-align:center}.language-switcher label{margin-right:.25em}.language-switcher label .dashicons{width:auto;height:auto}.login .language-switcher .button{margin-bottom:0}@media screen and (max-height:550px){#login{padding:20px 0}#language-switcher{margin-top:0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{width:1rem;height:1rem}.interim-login input[type=checkbox]:checked:before{width:1.3125rem;height:1.3125rem;margin:-.1875rem 0 0 -.25rem}#language-switcher label,#language-switcher select{margin-right:0}}@media screen and (max-width:400px){.login .language-switcher .button{display:block;margin:5px auto 0}}css/themes-rtl.min.css000064400000103047152213653150010724 0ustar00/*! This file is auto-generated */ .themes-php{overflow-y:scroll}.themes-php #adminmenuwrap{z-index:10001}body.js .theme-browser.search-loading{display:none}.theme-browser .themes{clear:both}.themes-php .wrap h1 .button{margin-right:20px}.themes-php .search-form{display:inline-flex;align-items:center;position:relative;top:0;gap:.5rem;width:100%;justify-content:end}.themes-php .wp-filter-search{position:relative;margin:0;width:280px}.theme .notice,.theme .notice.is-dismissible{right:0;margin:0;position:absolute;left:0;top:0}.theme-browser .theme{cursor:pointer;float:right;margin:0 0 4% 4%;position:relative;width:30.6%;background:#fff;border:1px solid rgb(0,0,0,.1);border-radius:8px;box-sizing:border-box;overflow:hidden}.theme-browser .theme:nth-child(3n){margin-left:0}.theme-browser .theme.focus,.theme-browser .theme:hover{cursor:pointer}.theme-browser .theme .theme-name{font-size:15px;font-weight:600;height:18px;margin:0;padding:16px 15px;border-top:1px solid rgb(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff}.theme-browser .theme .theme-actions{opacity:0;transition:opacity .1s ease-in-out;height:auto;background:rgba(246,247,247,.7);border-right:1px solid rgba(0,0,0,.05)}.theme-browser .theme.focus .theme-actions,.theme-browser .theme:hover .theme-actions{opacity:1}.theme-browser .theme .theme-actions .button-primary{margin-left:3px}.theme-browser .theme .theme-actions .button,.theme-browser .theme .theme-actions .button.updated-message,.theme-browser .theme .theme-actions .button.updating-message{float:none;margin-right:3px;min-height:32px;line-height:2.30769231;padding:0 12px}.theme-browser .theme .theme-actions .button.updated-message::before,.theme-browser .theme .theme-actions .button.updating-message::before{line-height:1;vertical-align:text-bottom;position:relative;top:2px}.theme-browser .theme .theme-actions .button:not(.button-primary){background:#fff}.theme-browser .theme .theme-actions .button:not(.button-primary):hover{background:#f0f0f0}.theme-browser .theme .theme-actions .button:not(.button-primary):focus{background:#fff}.theme-browser .theme .theme-screenshot{display:block;overflow:hidden;position:relative;-webkit-backface-visibility:hidden;transition:opacity .2s ease-in-out}.theme-browser .theme .theme-screenshot:after{content:"";display:block;padding-top:66.66666%}.theme-browser .theme .theme-screenshot img{height:auto;position:absolute;right:0;top:0;width:100%;transition:opacity .2s ease-in-out}.theme-browser .theme.focus .theme-screenshot,.theme-browser .theme:hover .theme-screenshot{background:#fff}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:.4}.theme-browser .theme .more-details{opacity:0;position:absolute;top:35%;left:20%;right:20%;width:60%;background:#1d2327;background:rgba(0,0,0,.7);color:#fff;font-size:15px;text-shadow:0 1px 0 rgba(0,0,0,.6);-webkit-font-smoothing:antialiased;font-weight:600;padding:15px 12px;text-align:center;border-radius:3px;border:none;transition:opacity .1s ease-in-out;cursor:pointer}.theme-browser .theme .more-details:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9)}.theme-browser .theme.focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.theme-browser .theme.focus .more-details{opacity:1}.theme-browser .theme.active.focus .theme-actions{display:block}.theme-browser.rendered .theme.focus .more-details,.theme-browser.rendered .theme:hover .more-details{opacity:1}.theme-browser .theme.active .theme-name{background:#1d2327;color:#fff;padding-left:115px;font-weight:300;box-shadow:inset 0 1px 1px rgba(0,0,0,.5)}.theme-browser .customize-control .theme.active .theme-name{padding-left:15px}.theme-browser .theme.active .theme-name span{font-weight:600}.theme-browser .theme.active .theme-actions{background:0 0;border-right:none;opacity:1}.theme-browser .theme.active .theme-actions .button-primary{border-color:#fff}.theme-id-container{position:relative}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{position:absolute;top:50%;transform:translateY(-50%);left:0;padding:9px 12px}.theme-browser .theme:not(.active) .theme-actions{box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.theme-browser .theme.active .theme-actions .button-primary{margin-left:0}.theme-browser .theme.active .theme-actions .button:not(.button-primary){background:#fff}.theme-browser .theme.active .theme-actions .button:not(.button-primary):hover{background:#f0f0f0}.theme-browser .theme.active .theme-actions .button:not(.button-primary):focus{background:#fff}.theme-browser .theme .theme-author{background:#1d2327;color:#f0f0f1;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute;bottom:56px}.theme-browser .theme.display-author .theme-author{display:block}.theme-browser .theme.display-author .theme-author a{color:inherit}.theme-browser .theme.add-new-theme{background:0 0;border:none;overflow:visible}.theme-browser .theme.add-new-theme a{text-decoration:none;display:block;position:relative;z-index:1}.theme-browser .theme.add-new-theme a:after{display:block;content:"";background:0 0;background:rgba(0,0,0,0);position:absolute;top:0;right:0;left:0;bottom:0;padding:0;text-shadow:none;border:5px dashed #dcdcde;border:5px dashed rgba(0,0,0,.1);box-sizing:border-box}.theme-browser .theme.add-new-theme span:after{background:#dcdcde;background:rgba(140,143,148,.1);border-radius:50%;display:inline-block;content:"\f132";content:"\f132"/'';-webkit-font-smoothing:antialiased;font:normal 74px/115px dashicons;width:100px;height:100px;vertical-align:middle;text-align:center;color:#8c8f94;position:absolute;top:30%;right:50%;margin-right:-50px;text-indent:-4px;padding:0;text-shadow:none;z-index:4}.rtl .theme-browser .theme.add-new-theme span:after{text-indent:4px}.theme-browser .theme.add-new-theme a:focus .theme-screenshot,.theme-browser .theme.add-new-theme a:hover .theme-screenshot{background:0 0}.theme-browser .theme.add-new-theme a:focus span:after,.theme-browser .theme.add-new-theme a:hover span:after{background:#fff;color:#2271b1}.theme-browser .theme.add-new-theme a:focus:after,.theme-browser .theme.add-new-theme a:hover:after{border-color:transparent;color:#fff;background:#2271b1;content:""}.theme-browser .theme.add-new-theme .theme-name{background:0 0;border:none;text-align:center;font-weight:400;position:relative;top:0;margin-top:-18px;padding-top:0;padding-bottom:48px}.theme-browser .theme.add-new-theme a:focus .theme-name,.theme-browser .theme.add-new-theme a:hover .theme-name{color:#fff;z-index:2}.theme-overlay .theme-backdrop{position:absolute;right:-20px;left:0;top:0;bottom:0;background:#f0f0f1;background:rgba(240,240,241,.9);z-index:10000;min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px))}.theme-overlay .theme-header{position:absolute;top:0;right:0;left:0;height:48px;border-bottom:1px solid #dcdcde}.theme-overlay .theme-header button{padding:0}.theme-overlay .theme-header .close{cursor:pointer;height:48px;width:50px;text-align:center;float:left;border:0;border-right:1px solid #dcdcde;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:before{font:normal 22px/50px dashicons!important;color:#787c82;display:inline-block;content:"\f335";content:"\f335"/'';font-weight:300}.theme-overlay .theme-header .left,.theme-overlay .theme-header .right{cursor:pointer;color:#787c82;background-color:transparent;height:48px;width:54px;float:right;text-align:center;border:0;border-left:1px solid #dcdcde;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .close:hover,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .left:hover,.theme-overlay .theme-header .right:focus,.theme-overlay .theme-header .right:hover{background:#dcdcde;border-color:#c3c4c7;color:#000}.theme-overlay .theme-header .close:focus:before,.theme-overlay .theme-header .close:hover:before{color:#000}.theme-overlay .theme-header .close:focus,.theme-overlay .theme-header .left:focus,.theme-overlay .theme-header .right:focus{box-shadow:none;outline:0}.theme-overlay .theme-header .left.disabled,.theme-overlay .theme-header .left.disabled:hover,.theme-overlay .theme-header .right.disabled,.theme-overlay .theme-header .right.disabled:hover{color:#c3c4c7;background:inherit;cursor:inherit}.theme-overlay .theme-header .left:before,.theme-overlay .theme-header .right:before{font:normal 20px/50px dashicons!important;display:inline;font-weight:300}.theme-overlay .theme-header .left:before{content:"\f345";content:"\f341"/''}.theme-overlay .theme-header .right:before{content:"\f341";content:"\f345"/''}.theme-overlay .theme-wrap{clear:both;position:fixed;top:9%;right:190px;left:30px;bottom:3%;background:#fff;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);z-index:10000;box-sizing:border-box;-webkit-overflow-scrolling:touch}body.folded .theme-browser~.theme-overlay .theme-wrap{right:70px}.theme-overlay .theme-about{position:absolute;top:49px;bottom:57px;right:0;left:0;overflow:auto;padding:2% 4%}.theme-overlay .theme-actions{position:absolute;text-align:center;bottom:0;right:0;left:0;padding:10px 25px 5px;background:#f6f7f7;z-index:30;box-sizing:border-box;border-top:1px solid #f0f0f1;display:flex;justify-content:center;gap:5px}.theme-overlay .theme-actions .button{margin-bottom:5px}.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-background"],.customize-support .theme-overlay .theme-actions a[href="themes.php?page=custom-header"]{display:none}.broken-themes a.delete-theme,.theme-overlay .theme-actions .delete-theme{color:#b32d2e;text-decoration:none;border-color:transparent;box-shadow:none;background:0 0}.broken-themes a.delete-theme:focus,.broken-themes a.delete-theme:hover,.theme-overlay .theme-actions .delete-theme:focus,.theme-overlay .theme-actions .delete-theme:hover{background:#b32d2e;color:#fff;border-color:#b32d2e;box-shadow:0 0 0 1px #b32d2e}.theme-overlay .theme-actions .active-theme,.theme-overlay.active .theme-actions .inactive-theme{display:none}.theme-overlay .theme-actions .inactive-theme,.theme-overlay.active .theme-actions .active-theme{display:block}.theme-overlay .theme-screenshots{float:right;margin:0 0 0 30px;width:55%;max-width:1200px;text-align:center}.theme-overlay .screenshot{border:1px solid #fff;box-sizing:border-box;overflow:hidden;position:relative;box-shadow:0 0 0 1px rgba(0,0,0,.2)}.theme-overlay .screenshot:after{content:"";display:block;padding-top:75%}.theme-overlay .screenshot img{height:auto;position:absolute;right:0;top:0;width:100%}.theme-overlay.small-screenshot .theme-screenshots{position:absolute;width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:350px;width:auto}.theme-overlay .screenshot.thumb{background:#c3c4c7;border:1px solid #f0f0f1;float:none;display:inline-block;margin:10px 5px 0;width:140px;height:80px;cursor:pointer}.theme-overlay .screenshot.thumb:after{content:"";display:block;padding-top:100%}.theme-overlay .screenshot.thumb img{cursor:pointer;height:auto;position:absolute;right:0;top:0;width:100%;height:auto}.theme-overlay .screenshot.selected{background:0 0;border:2px solid #72aee6}.theme-overlay .screenshot.selected img{opacity:.8}.theme-browser .theme .theme-screenshot.blank,.theme-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.theme-overlay .theme-info{width:40%;float:right}.theme-overlay .current-label{background:#2c3338;color:#fff;font-size:11px;display:inline-block;padding:2px 8px;border-radius:2px;margin:0 0 -10px;-webkit-user-select:none;user-select:none}.theme-overlay .theme-name{color:#1d2327;font-size:32px;font-weight:100;margin:10px 0 0;line-height:1.3;word-wrap:break-word;overflow-wrap:break-word}.theme-overlay .theme-version{color:#646970;font-size:13px;font-weight:400;float:none;display:inline-block;margin-right:10px}.theme-overlay .theme-author{margin:15px 0 25px;color:#646970;font-size:16px;font-weight:400;line-height:inherit}.theme-overlay .toggle-auto-update{display:inline-flex;align-items:center;min-height:20px;vertical-align:top}.theme-overlay .theme-autoupdate .toggle-auto-update{text-decoration:none}.theme-overlay .theme-autoupdate .toggle-auto-update .label{text-decoration:underline}.theme-overlay .theme-description{color:#50575e;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.theme-overlay .theme-tags{border-top:3px solid #f0f0f1;color:#646970;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.theme-overlay .theme-tags span{color:#3c434a;font-weight:600;margin-left:5px}.theme-overlay .parent-theme{background:#fff;border:1px solid #f0f0f1;border-right:4px solid #72aee6;font-size:14px;font-weight:400;margin-top:30px;padding:10px 20px 10px 10px}.theme-overlay .parent-theme strong{font-weight:600}.single-theme .theme,.single-theme .theme-overlay .theme-backdrop,.single-theme .theme-overlay .theme-header{display:none}.single-theme .theme-overlay .theme-wrap{clear:both;min-height:330px;position:relative;right:auto;left:auto;top:auto;bottom:auto;z-index:10}.single-theme .theme-overlay .theme-about{padding:30px 30px 70px;position:static}.single-theme .theme-overlay .theme-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .theme-browser .theme{width:17.6%;margin:0 0 3% 3%}#wpwrap .theme-browser .theme:nth-child(3n),#wpwrap .theme-browser .theme:nth-child(4n){margin-left:3%}#wpwrap .theme-browser .theme:nth-child(5n){margin-left:0}}@media only screen and (min-width:1680px){.theme-overlay .theme-wrap{width:1450px;margin:0 auto}}@media only screen and (min-width:1640px){.theme-browser .theme{width:22.7%;margin:0 0 3% 3%}.theme-browser .theme .theme-screenshot:after{padding-top:75%}.theme-browser .theme:nth-child(3n){margin-left:3%}.theme-browser .theme:nth-child(4n){margin-left:0}}@media only screen and (max-width:1120px){.theme-browser .theme{width:47.5%;margin-left:0}.theme-browser .theme:nth-child(2n){margin-left:0}.theme-browser .theme:nth-child(odd){margin-left:5%}}@media only screen and (max-width:960px){.theme-overlay .theme-wrap{right:65px}}@media only screen and (max-width:782px){.theme-overlay .theme-wrap,body.folded .theme-overlay .theme-wrap{top:0;left:0;bottom:0;right:0;padding:70px 20px 20px;border:none;z-index:100000;position:fixed}.theme-browser .theme.active .theme-name span{display:none}.theme-overlay .theme-screenshots{width:40%}.theme-overlay .theme-info{width:50%}.single-theme .theme-wrap{padding:10px}.theme-browser .theme .theme-actions{padding:5px 10px 4px}.theme-overlay.small-screenshot .theme-screenshots{position:static;float:none;max-width:302px}.theme-overlay.small-screenshot .theme-info{margin-right:0;width:auto}.theme.focus .more-details,.theme:hover .more-details,.theme:not(.active):focus .theme-actions,.theme:not(.active):hover .theme-actions{display:none}.theme-browser.rendered .theme.focus .theme-screenshot img,.theme-browser.rendered .theme:hover .theme-screenshot img{opacity:1}}@media only screen and (max-width:480px){.theme-browser .theme{width:100%;margin-left:0}.theme-browser .theme:nth-child(2n),.theme-browser .theme:nth-child(3n){margin-left:0}.theme-overlay .theme-about{bottom:105px}.theme-overlay .theme-actions{padding-right:4%;padding-left:4%}.theme-install-php .wp-filter .filter-count{margin-top:10px}}@media only screen and (max-width:650px){.theme-overlay .theme-description{margin-right:0}.theme-overlay .theme-actions .delete-theme{position:relative;left:auto;bottom:auto}.theme-overlay .theme-actions .inactive-theme{display:inline}.theme-overlay .theme-screenshots{width:100%;float:none;margin:0}.theme-overlay .theme-info{width:100%}.theme-overlay .theme-author{margin:5px 0 15px}.theme-overlay .current-label{margin-top:10px;font-size:13px}.themes-php .wp-filter-search{width:100%}.theme-install-php .wp-filter p.search-box{display:grid;row-gap:.5rem}.theme-browser .theme.add-new-theme span:after{font:normal 60px/90px dashicons;width:80px;height:80px;top:30%;right:50%;text-indent:0;margin-right:-40px}.single-theme .theme-wrap{margin:0 -10px 0 -12px;padding:10px}.single-theme .theme-overlay .theme-about{padding:10px;overflow:visible}.single-theme .current-label{display:none}.single-theme .theme-overlay .theme-actions{position:static}}.broken-themes{clear:both}.broken-themes table{text-align:right;width:50%;border-spacing:3px;padding:3px}.update-php .wrap{max-width:40rem}.theme-browser .theme .theme-installed{background:#2271b1}.theme-browser .theme .notice-success p:before{color:#68de7c;content:"\f147";content:"\f147"/'';display:inline-block;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.theme-install.updated-message:before{content:""}.theme-install-php .wp-filter{padding-right:20px}@media only screen and (max-width:1000px){.theme-install-php .wp-filter p.search-box{column-gap:.5rem}}.theme-install-php a.browse-themes,.theme-install-php a.upload{cursor:pointer}.plugin-install-tab-upload .upload-view-toggle .upload,.upload-view-toggle .browse{display:none}.plugin-install-tab-upload .upload-view-toggle .browse{display:inline}.upload-plugin,.upload-theme{box-sizing:border-box;display:none;margin:0;padding:50px 0;width:100%;overflow:hidden;position:relative;top:10px;text-align:center}.plugin-install-tab-upload .upload-plugin,.show-upload-view .upload-plugin,.show-upload-view .upload-plugin-wrap,.show-upload-view .upload-theme{display:block}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{position:relative;margin:30px;display:inline-flex;justify-content:space-between;align-items:center;border:1px solid #c3c4c7;background:#f6f7f7}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{background:0 0;margin:0;padding:30px 30px 30px 0}.wp-upload-form input[type=submit].button{margin-left:30px}.upload-plugin .install-help,.upload-theme .install-help{color:#50575e;font-size:18px;font-style:normal;margin:0;padding:0;text-align:center}p.no-themes,p.no-themes-local{clear:both;color:#646970;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center;display:none}.no-results p.no-themes{display:block}.theme-install-php .add-new-theme{display:none!important}@media only screen and (max-width:1120px){.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{margin:20px 0;max-width:100%}.upload-theme .install-help{font-size:15px;padding:20px 0 0}}.theme-details .theme-rating{line-height:1.9}.theme-details .star-rating{display:inline}.theme-details .no-rating,.theme-details .num-ratings{font-size:11px;color:#646970}.theme-details .no-rating{display:block;line-height:1.9}.update-from-upload-comparison{border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;text-align:right;margin:1rem 0 1.4rem;border-collapse:collapse;width:100%}.update-from-upload-comparison tr:last-child td{height:1.4rem;vertical-align:top}.update-from-upload-comparison tr:first-child th{font-weight:700;height:1.4rem;vertical-align:bottom}.update-from-upload-comparison td.name-label{text-align:left}.update-from-upload-comparison td,.update-from-upload-comparison th{padding:.4rem 1.4rem}.update-from-upload-comparison td.warning{color:#d63638}.update-from-upload-actions{margin-top:1.4rem}.appearance_page_custom-header #headimg{border:1px solid #dcdcde;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:right;margin:0 0 20px 20px}.appearance_page_custom-header .random-header{clear:both;margin:0 0 20px 20px;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-left:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{min-height:100px;border:1px solid #dcdcde}div#custom-background-image img{max-width:400px;max-height:300px}.background-position-control input[type=radio]:checked~.button{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);z-index:1}.background-position-control input[type=radio]:focus~.button{border-color:#4f94d4;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5),0 0 3px rgba(34,113,177,.8);color:#1d2327}.background-position-control .background-position-center-icon,.background-position-control .background-position-center-icon:before{display:inline-block;line-height:1;text-align:center;transition:background-color .1s ease-in}.background-position-control .background-position-center-icon{height:20px;margin-top:13px;vertical-align:top;width:20px}.background-position-control .background-position-center-icon:before{background-color:#50575e;border-radius:50%;content:"";height:12px;width:12px}.background-position-control .button:hover .background-position-center-icon:before,.background-position-control input[type=radio]:focus~.button .background-position-center-icon:before{background-color:#1d2327}.background-position-control .button-group{display:block}.background-position-control .button-group .button{border-radius:0;box-shadow:none;height:40px!important;line-height:2.9!important;margin:0 0 0 -1px!important;padding:0 10px 1px!important;position:relative}.background-position-control .button-group .button:active,.background-position-control .button-group .button:focus,.background-position-control .button-group .button:hover{z-index:1}.background-position-control .button-group:last-child .button{box-shadow:0 1px 0 #c3c4c7}.background-position-control .button-group>label{margin:0!important}.background-position-control .button-group:first-child>label:first-child .button{border-radius:0 3px 0 0}.background-position-control .button-group:first-child>label:first-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group:first-child>label:last-child .button{border-radius:3px 0 0 0}.background-position-control .button-group:first-child>label:last-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:last-child>label:first-child .button{border-radius:0 0 3px 0}.background-position-control .button-group:last-child>label:first-child .dashicons{transform:rotate(45deg)}.background-position-control .button-group:last-child>label:last-child .button{border-radius:0 0 0 3px}.background-position-control .button-group:last-child>label:last-child .dashicons{transform:rotate(-45deg)}.background-position-control .button-group+.button-group{margin-top:-1px}body.full-overlay-active{overflow:hidden;visibility:hidden}.wp-full-overlay{background:0 0;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%;min-width:0}.wp-full-overlay-sidebar{box-sizing:border-box;position:fixed;min-width:300px;max-width:600px;width:18%;height:100%;top:0;bottom:0;right:0;padding:0;margin:0;z-index:10;background:#f0f0f1;border-left:none}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-right:0!important}.wp-full-overlay.expanded{margin-right:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-300px}@media screen and (min-width:1667px){.wp-full-overlay.expanded{margin-right:18%}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-18%}}@media screen and (min-width:3333px){.wp-full-overlay.expanded{margin-right:600px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{margin-right:-600px}}.wp-full-overlay-sidebar:after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;width:3px;z-index:1000}.wp-full-overlay-main{position:absolute;right:0;left:0;top:0;bottom:0;height:100%}.wp-full-overlay-sidebar .wp-full-overlay-header{position:absolute;right:0;left:0;height:45px;padding:0 15px;line-height:3.2;z-index:10;margin:0;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:3px}.wp-full-overlay-sidebar .wp-full-overlay-footer{bottom:0;border-bottom:none;border-top:none;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{position:absolute;top:45px;bottom:45px;right:0;left:0;overflow:auto}.theme-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{display:block;position:relative;float:right;width:45px;height:45px;background:#f0f0f1;border-left:1px solid #dcdcde;color:#3c434a;cursor:pointer;text-decoration:none;transition:color .1s ease-in-out,background .1s ease-in-out}.theme-install-overlay .close-full-overlay:focus,.theme-install-overlay .close-full-overlay:hover,.theme-install-overlay .next-theme:focus,.theme-install-overlay .next-theme:hover,.theme-install-overlay .previous-theme:focus,.theme-install-overlay .previous-theme:hover{background:#dcdcde;border-color:#c3c4c7;color:#000;outline:0;box-shadow:none}.theme-install-overlay .close-full-overlay:before{font:normal 22px/1 dashicons;content:"\f335";content:"\f335"/'';position:relative;top:7px;right:13px}.theme-install-overlay .previous-theme:before{font:normal 20px/1 dashicons;content:"\f345";content:"\f341"/'';position:relative;top:6px;right:14px}.theme-install-overlay .next-theme:before{font:normal 20px/1 dashicons;content:"\f341";content:"\f345"/'';position:relative;top:6px;right:13px}.theme-install-overlay .next-theme.disabled,.theme-install-overlay .next-theme.disabled:focus,.theme-install-overlay .next-theme.disabled:hover,.theme-install-overlay .previous-theme.disabled,.theme-install-overlay .previous-theme.disabled:focus,.theme-install-overlay .previous-theme.disabled:hover{color:#c3c4c7;background:#f0f0f1;cursor:default;pointer-events:none}.theme-install-overlay .close-full-overlay,.theme-install-overlay .next-theme,.theme-install-overlay .previous-theme{border-right:0;border-top:0;border-bottom:0}.theme-install-overlay .close-full-overlay:before,.theme-install-overlay .next-theme:before,.theme-install-overlay .previous-theme:before{top:2px;right:0}.wp-core-ui .wp-full-overlay .collapse-sidebar{position:fixed;bottom:0;right:0;padding:9px 10px 9px 0;height:45px;color:#646970;outline:0;line-height:1;background-color:transparent!important;border:none!important;box-shadow:none!important;border-radius:0!important}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#2271b1}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;vertical-align:middle;line-height:1.6}.wp-full-overlay .collapse-sidebar-arrow{width:20px;height:20px;margin:0 2px;border-radius:50%;overflow:hidden}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.wp-full-overlay .collapse-sidebar-label{margin-right:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow:before{display:block;content:"\f148";content:"\f148"/'';background:#f0f0f1;font:normal 20px/1 dashicons;padding:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.wp-core-ui .wp-full-overlay.collapsed .collapse-sidebar{padding:9px 10px}.rtl .wp-full-overlay .collapse-sidebar-arrow:before,.wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before{transform:none}@media (prefers-reduced-motion:no-preference){.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-property:right,left,top,bottom,width,margin;transition-duration:.2s}}.wp-full-overlay{background:#1d2327}.wp-full-overlay-main{background-color:#f0f0f1}.expanded .wp-full-overlay-footer{position:fixed;bottom:0;right:0;min-width:299px;max-width:599px;width:18%;width:calc(18% - 1px);height:45px;border-top:1px solid #dcdcde;background:#f0f0f1}.wp-full-overlay-footer .devices-wrapper{float:left}.wp-full-overlay-footer .devices{position:relative;background:#f0f0f1;box-shadow:20px 0 10px -5px #f0f0f1}.wp-full-overlay-footer .devices button{cursor:pointer;background:0 0;border:none;height:45px;padding:0 3px;margin:0 -4px 0 0;box-shadow:none;border-top:1px solid transparent;border-bottom:4px solid transparent;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0}.wp-full-overlay-footer .devices button:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:3px 0;padding:4px 8px;color:#646970}.wp-full-overlay-footer .devices button.active{border-bottom-color:#1d2327}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button.active:hover,.wp-full-overlay-footer .devices button:focus{border-bottom-color:#2271b1}.wp-full-overlay-footer .devices button.active:before{color:#1d2327}.wp-full-overlay-footer .devices button:focus:before,.wp-full-overlay-footer .devices button:hover:before{color:#2271b1}.wp-full-overlay-footer .devices .preview-desktop:before{content:"\f472";content:"\f472"/''}.wp-full-overlay-footer .devices .preview-tablet:before{content:"\f471";content:"\f471"/''}.wp-full-overlay-footer .devices .preview-mobile:before{content:"\f470";content:"\f470"/''}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.collapsed .wp-full-overlay-footer .devices button:before{display:none}.preview-mobile .wp-full-overlay-main{margin:auto -160px auto 0;width:320px;height:480px;max-height:100%;max-width:100%;right:50%}.preview-tablet .wp-full-overlay-main{margin:auto -360px auto 0;width:720px;height:1080px;max-height:100%;max-width:100%;right:50%}.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}#customize-container,#customize-controls .notice.notification-overlay{background:#f0f0f1;z-index:500000;position:fixed;overflow:visible;top:0;bottom:0;right:0;left:0;height:100%}#customize-container{display:none}#customize-container,.theme-install-overlay{visibility:visible}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.theme-install-overlay iframe{height:100%;width:100%;z-index:20;transition:opacity .3s}#customize-controls{margin-top:0}.theme-install-overlay{display:none}.theme-install-overlay.single-theme{display:block}.install-theme-info{display:none;padding:10px 20px 60px}.single-theme .install-theme-info{padding-top:15px}.theme-install-overlay .install-theme-info{display:block}.install-theme-info .theme-install{float:left;margin-top:18px}.install-theme-info .theme-name{font-size:16px;line-height:1.5;margin-bottom:0;margin-top:0}.install-theme-info .theme-screenshot{margin:15px 0;width:258px;border:1px solid #c3c4c7;position:relative;overflow:hidden}.install-theme-info .theme-screenshot>img{width:100%;height:auto;position:absolute;right:0;top:0}.install-theme-info .theme-screenshot:after{content:"";display:block;padding-top:66.66666666%}.install-theme-info .theme-details{overflow:hidden}.theme-details .theme-version{margin:15px 0}.theme-details .theme-description{float:right;color:#646970;line-height:1.6;max-width:100%}.theme-install-overlay .wp-full-overlay-header .button{float:left;margin:7px 0 0 10px}.theme-install-overlay .wp-full-overlay-sidebar{background:#f0f0f1;border-left:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.theme-install-overlay .wp-full-overlay-main{position:absolute;z-index:0;background-color:#f0f0f1}.customize-loading #customize-container{background-color:#f0f0f1}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{content:"";display:block;width:20px;height:20px;position:absolute;right:50%;top:50%;z-index:-1;margin:-10px -10px 0 0;transform:translateZ(0);background:transparent url(../images/spinner.gif) no-repeat center center;background-size:20px 20px}#customize-preview.wp-full-overlay-main.iframe-ready:before,.theme-install-overlay.iframe-ready .wp-full-overlay-main:before{background-image:none}@media print,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-controls .notice.notification-overlay.notification-loading:before,#customize-preview.wp-full-overlay-main:before,.customize-loading #customize-container:before,.theme-install-overlay .wp-full-overlay-main:before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-theme .action-links .delete-theme{float:none;margin:0;padding:0;clear:both}.available-theme .action-links .delete-theme a{padding:0}.broken-themes table{width:100%}.theme-install-overlay .wp-full-overlay-header .button{font-size:13px}.theme-browser .theme .theme-actions .button{margin-bottom:0}.theme-browser .theme .theme-actions,.theme-browser .theme.active .theme-actions{padding-top:4px;padding-bottom:4px}.upload-plugin .wp-upload-form,.upload-theme .wp-upload-form{width:100%;box-sizing:border-box}.upload-plugin .wp-upload-form input[type=file],.upload-theme .wp-upload-form input[type=file]{padding:30px 30px 30px 0;width:100%}}css/l10n-rtl.css000064400000010743152213653150007427 0ustar00/*! This file is auto-generated */ /*------------------------------------------------------------------------------ 27.0 - Localization ------------------------------------------------------------------------------*/ /* RTL except Hebrew (see below): Tahoma as the first font; */ body.rtl, body.rtl .press-this a.wp-switch-editor { font-family: Tahoma, Arial, sans-serif; } /* Arial is best for RTL headings. */ .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 { font-family: Arial, sans-serif; font-weight: 600; } /* he_IL: Remove Tahoma from the font stack. Arial is best for Hebrew. */ body.locale-he-il, body.locale-he-il .press-this a.wp-switch-editor { font-family: Arial, sans-serif; } /* he_IL: Have be bold rather than italic. */ .locale-he-il em { font-style: normal; font-weight: 600; } /* zh_CN: Remove italic properties. */ .locale-zh-cn .howto, .locale-zh-cn .tablenav .displaying-num, .locale-zh-cn .js .input-with-default-title, .locale-zh-cn .link-to-original, .locale-zh-cn .inline-edit-row fieldset span.title, .locale-zh-cn .inline-edit-row fieldset span.checkbox-title, .locale-zh-cn #utc-time, .locale-zh-cn #local-time, .locale-zh-cn p.install-help, .locale-zh-cn p.help, .locale-zh-cn p.description, .locale-zh-cn span.description, .locale-zh-cn .form-wrap p { font-style: normal; } /* zh_CN: Enlarge dashboard widget 'Configure' link */ .locale-zh-cn .hdnle a { font-size: 12px; } /* zn_CH: Enlarge font size, set font-size: normal */ .locale-zh-cn form.upgrade .hint { font-style: normal; font-size: 100%; } /* zh_CN: Enlarge font-size. */ .locale-zh-cn #sort-buttons { font-size: 1em !important; } /* de_DE: Text needs more space for translation */ .locale-de-de #customize-header-actions .button, .locale-de-de-formal #customize-header-actions .button { padding: 0 5px 1px; /* default 0 10px 1px */ } .locale-de-de #customize-header-actions .spinner, .locale-de-de-formal #customize-header-actions .spinner { margin: 16px 3px 0; /* default 16px 4px 0 5px */ } body[class*="locale-de-"] .inline-edit-row fieldset label span.title, body[class*="locale-de-"] .inline-edit-row fieldset.inline-edit-date legend { width: 7em; /* default 6em */ } body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap, body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap { margin-right: 7em; /* default 6em */ } /* ru_RU: Text needs more room to breathe. */ .locale-ru-ru #adminmenu { width: inherit; /* back-compat for pre-3.2 */ } .locale-ru-ru #adminmenu, .locale-ru-ru #wpbody { margin-right: 0; /* back-compat for pre-3.2 */ } .locale-ru-ru .inline-edit-row fieldset label span.title, .locale-ru-ru .inline-edit-row fieldset.inline-edit-date legend { width: 8em; /* default 6em */ } .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap { margin-right: 8em; /* default 6em */ } .locale-ru-ru.post-php .tagsdiv .newtag, .locale-ru-ru.post-new-php .tagsdiv .newtag { width: 165px; /* default 180px - 15px */ } .locale-ru-ru.press-this .posting { margin-left: 277px; /* default 252px + 25px */ } .locale-ru-ru .press-this-sidebar { width: 265px; /* default 240px + 25px */ } .locale-ru-ru #customize-header-actions .button { padding: 0 5px 1px; /* default 0 10px 1px */ } .locale-ru-ru #customize-header-actions .spinner { margin: 16px 3px 0; /* default 16px 4px 0 5px */ } /* lt_LT: QuickEdit */ .locale-lt-lt .inline-edit-row fieldset label span.title, .locale-lt-lt .inline-edit-row fieldset.inline-edit-date legend { width: 8em; /* default 6em */ } .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { margin-right: 8em; /* default 6em */ } /* Fix overridden width for adjusted locales */ body[class*="locale-de-"] .quick-edit-row-post fieldset.inline-edit-col-right label span.title, .locale-ru-ru .quick-edit-row-post fieldset.inline-edit-col-right label span.title, .locale-lt-lt .quick-edit-row-post fieldset.inline-edit-col-right label span.title { width: auto; } @media screen and (max-width: 782px) { body[class*="locale-de-"] .inline-edit-row fieldset label span.input-text-wrap, body[class*="locale-de-"] .inline-edit-row fieldset .timestamp-wrap, .locale-ru-ru .inline-edit-row fieldset label span.input-text-wrap, .locale-ru-ru .inline-edit-row fieldset .timestamp-wrap, .locale-lt-lt .inline-edit-row fieldset label span.input-text-wrap, .locale-lt-lt .inline-edit-row fieldset .timestamp-wrap { margin-right: 0; } } css/customize-controls-rtl.min.css000064400000166071152213653150013330 0ustar00/*! This file is auto-generated */ body{overflow:hidden;-webkit-text-size-adjust:100%}.customize-controls-close,.widget-control-actions a{text-decoration:none}#customize-controls h3{font-size:14px}#customize-controls img{max-width:100%}#customize-controls .submit{text-align:center}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked{background-color:rgba(0,0,0,.7);padding:25px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message{margin-right:auto;margin-left:auto;max-width:366px;min-height:64px;width:auto;padding:25px;position:relative;background:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;overflow-y:auto;text-align:right;top:calc(50% - 100px)}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .customize-changeset-locked-message.has-avatar{padding-right:109px}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .currently-editing{margin-top:0}#customize-controls #customize-notifications-area .notice.notification-overlay.notification-changeset-locked .action-buttons{margin-bottom:0}.customize-changeset-locked-avatar{width:64px;position:absolute;right:25px;top:25px}.wp-core-ui.wp-customizer .customize-changeset-locked-message a.button{margin-left:10px;margin-top:0}#customize-controls .description{color:#50575e}#customize-save-button-wrapper{float:left;margin-top:7px}body:not(.ready) #customize-save-button-wrapper .save{visibility:hidden}#customize-save-button-wrapper .save{float:right;border-radius:3px;box-shadow:none;margin-top:0}#customize-save-button-wrapper .save.has-next-sibling{border-radius:0 3px 3px 0}#customize-sidebar-outer-content{position:absolute;top:0;bottom:0;right:0;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;margin:0;z-index:-1;background:#f0f0f1;transition:right .18s;border-left:1px solid #dcdcde;border-right:1px solid #dcdcde;height:100%}@media (prefers-reduced-motion:reduce){#customize-sidebar-outer-content{transition:none}}#customize-theme-controls .control-section-outer{display:none!important}#customize-outer-theme-controls .accordion-section-content{padding:12px}#customize-outer-theme-controls .accordion-section-content.open{display:block}.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{visibility:visible;right:100%;transition:right .18s}@media (prefers-reduced-motion:reduce){.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{transition:none}}.customize-outer-pane-parent{margin:0}.outer-section-open .wp-full-overlay.expanded .wp-full-overlay-main{right:300px;opacity:.4}.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-menu-items .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-tablet .wp-full-overlay-main{right:64%}#customize-outer-theme-controls li.notice{padding-top:8px;padding-bottom:8px;margin-right:0;margin-bottom:10px}#publish-settings{text-indent:0;border-radius:3px 0 0 3px;padding-right:0;padding-left:0;box-shadow:none;font-size:14px;width:30px;float:right;transform:none;margin-top:0;line-height:2}body.trashing #customize-save-button-wrapper .save,body.trashing #publish-settings,body:not(.ready) #publish-settings{display:none}#customize-header-actions .spinner{margin-top:13px;margin-left:4px}.saving #customize-header-actions .spinner,.trashing #customize-header-actions .spinner{visibility:visible}#customize-header-actions{border-bottom:1px solid #dcdcde}#customize-controls .wp-full-overlay-sidebar-content{overflow-y:auto;overflow-x:hidden}.outer-section-open #customize-controls .wp-full-overlay-sidebar-content{background:#f0f0f1}#customize-controls .customize-info{border:none;border-bottom:1px solid #dcdcde;margin-bottom:15px}#customize-control-changeset_preview_link input,#customize-control-changeset_status .customize-inside-control-row{background-color:#fff;border-bottom:1px solid #dcdcde;box-sizing:content-box;width:100%;margin-right:-12px;padding-right:12px;padding-left:12px}#customize-control-trash_changeset{margin-top:20px}#customize-control-trash_changeset .button-link{position:relative;padding-right:24px;display:inline-block}#customize-control-trash_changeset .button-link:before{content:"\f182";content:"\f182"/'';font:normal 22px dashicons;text-decoration:none;position:absolute;right:0;top:-2px}#customize-controls .date-input:invalid{border-color:#d63638}#customize-control-changeset_status .customize-inside-control-row{padding-top:10px;padding-bottom:10px;font-weight:500}#customize-control-changeset_status .customize-inside-control-row:first-of-type{border-top:1px solid #dcdcde}#customize-control-changeset_status .customize-control-title{margin-bottom:6px}#customize-control-changeset_status input{margin-right:0}#customize-control-changeset_preview_link{position:relative;display:block}.preview-link-wrapper .customize-copy-preview-link.preview-control-element.button{margin:0;position:absolute;top:50%;transform:translateY(-50%)!important;left:0;background:#fff!important}.preview-link-wrapper{position:relative}.customize-copy-preview-link:after,.customize-copy-preview-link:before{content:"";height:40px;position:absolute;background:#fff;top:0}.customize-copy-preview-link:before{right:-10px;width:9px;opacity:.75}.customize-copy-preview-link:after{right:-5px;width:4px;opacity:.8}#customize-control-changeset_preview_link input{line-height:2.85714286;border-top:1px solid #dcdcde;border-right:none;border-left:none;text-indent:-999px;color:#fff;min-height:40px}#customize-control-changeset_preview_link label{position:relative;display:block}#customize-control-changeset_preview_link a{display:inline-block;position:absolute;white-space:nowrap;overflow:hidden;width:90%;bottom:14px;font-size:14px;text-decoration:none}#customize-control-changeset_preview_link a.disabled,#customize-control-changeset_preview_link a.disabled:active,#customize-control-changeset_preview_link a.disabled:focus,#customize-control-changeset_preview_link a.disabled:visited{color:#000;opacity:.4;cursor:default;outline:0;box-shadow:none}#sub-accordion-section-publish_settings .customize-section-description-container{display:none}#customize-controls .customize-info.section-meta{margin-bottom:15px}.customize-control-date_time .customize-control-description+.date-time-fields.includes-time{margin-top:10px}.customize-control.customize-control-date_time .date-time-fields .date-input.day{margin-left:0}.date-time-fields .date-input.month{width:auto;margin:0}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:46px}.customize-control-date_time select{vertical-align:top}.date-time-fields .date-input.year{width:65px}.date-time-fields .date-input.meridian{width:auto;margin:0}.date-time-fields .time-row{margin-top:12px}#customize-control-changeset_preview_link{margin-top:6px}#customize-control-changeset_status{margin-bottom:0;padding-bottom:0}#customize-control-changeset_scheduled_date{box-sizing:content-box;width:100%;margin-right:-12px;padding:12px;background:#fff;border-bottom:1px solid #dcdcde;margin-bottom:0}#customize-control-changeset_scheduled_date .customize-control-description,#customize-control-site_icon .customize-control-description{font-style:normal}#customize-controls .customize-info.is-in-view,#customize-controls .customize-section-title.is-in-view{position:absolute;z-index:9;width:100%;box-shadow:0 1px 0 rgba(0,0,0,.1)}#customize-controls .customize-section-title.is-in-view{margin-top:0}#customize-controls .customize-info.is-in-view+.accordion-section{margin-top:15px}#customize-controls .customize-info.is-sticky,#customize-controls .customize-section-title.is-sticky{position:fixed;top:46px}#customize-controls .customize-info .accordion-section-title{background:#fff;color:#50575e;border-right:none;border-left:none;border-bottom:none;cursor:default;padding:10px 14px 11px 10px}#customize-controls .customize-info .accordion-section-title:focus:after,#customize-controls .customize-info .accordion-section-title:hover:after,#customize-controls .customize-info.open .accordion-section-title:after{color:#2c3338}#customize-controls .customize-info .accordion-section-title:after{display:none}#customize-controls .customize-info .preview-notice{font-size:13px;line-height:1.9;margin:0;font-weight:400;color:#50575e}#customize-controls .customize-info .panel-title,#customize-controls .customize-pane-child .customize-section-title h3,#customize-controls .customize-pane-child h3.customize-section-title,#customize-outer-theme-controls .customize-pane-child .customize-section-title h3,#customize-outer-theme-controls .customize-pane-child h3.customize-section-title{font-size:20px;font-weight:200;line-height:26px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-section-title span.customize-action{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#customize-controls .customize-info .customize-help-toggle{position:absolute;top:4px;left:1px;padding:20px 10px 10px 20px;width:20px;height:20px;cursor:pointer;box-shadow:none;background:0 0;color:#50575e;border:none}#customize-controls .customize-info .customize-help-toggle:before{position:absolute;top:5px;right:6px}#customize-controls .customize-info .customize-panel-description,#customize-controls .customize-info .customize-section-description,#customize-controls .no-widget-areas-rendered-notice,#customize-outer-theme-controls .customize-info .customize-section-description{color:#50575e;display:none;background:#fff;padding:12px 15px;border-top:1px solid #dcdcde}#customize-controls .customize-info .customize-panel-description.open+.no-widget-areas-rendered-notice{border-top:none}.no-widget-areas-rendered-notice{font-style:italic}.no-widget-areas-rendered-notice p:first-child{margin-top:0}.no-widget-areas-rendered-notice p:last-child{margin-bottom:0}#customize-controls .customize-info .customize-section-description{margin-bottom:15px}#customize-controls .customize-info .customize-panel-description p:first-child,#customize-controls .customize-info .customize-section-description p:first-child{margin-top:0}#customize-controls .customize-info .customize-panel-description p:last-child,#customize-controls .customize-info .customize-section-description p:last-child{margin-bottom:0}#customize-controls .current-panel .control-section>h3.accordion-section-title{padding-left:30px}#customize-outer-theme-controls .control-section,#customize-theme-controls .control-section{border:none}#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{color:#50575e;background-color:#fff;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out}#customize-controls .current-panel .control-section>h3.accordion-section-title:has(button.accordion-trigger),.accordion-section-title:has(button.accordion-trigger){padding:0}.accordion-section-title button.accordion-trigger{all:unset;width:100%;padding:10px 14px 11px 30px;display:flex;align-items:center;box-sizing:border-box}.accordion-section-title button.accordion-trigger:has(.menu-in-location){display:block}.accordion-section-title button.accordion-trigger .spinner{margin-top:0}@media (prefers-reduced-motion:reduce){#customize-outer-theme-controls .accordion-section-title,#customize-theme-controls .accordion-section-title{transition:none}}#customize-controls #customize-theme-controls .customize-themes-panel .accordion-section-title{color:#50575e;background-color:#fff;border-right:4px solid #fff}#customize-outer-theme-controls .accordion-section-title:after,#customize-theme-controls .accordion-section-title:after{content:"\f341";content:"\f345"/'';color:#a7aaad;pointer-events:none}#customize-outer-theme-controls .accordion-section-content,#customize-theme-controls .accordion-section-content{color:#50575e;background:0 0}#accordion-section-themes+.control-section{border-top:1px solid #dcdcde}.js .control-section .accordion-section-title:focus,.js .control-section .accordion-section-title:hover,.js .control-section.open .accordion-section-title,.js .control-section:hover .accordion-section-title{background:#f6f7f7}#customize-theme-controls .control-section.open{border-bottom:1px solid #f0f0f1}#customize-outer-theme-controls .control-section.open .accordion-section-title,#customize-theme-controls .control-section.open .accordion-section-title{border-bottom-color:#f0f0f1!important}#customize-theme-controls .control-section:last-of-type.open,#customize-theme-controls .control-section:last-of-type>.accordion-section-title{border-bottom-color:#dcdcde}#customize-theme-controls .control-panel-content:not(.control-panel-nav_menus) .control-section:nth-child(2),#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu,#customize-theme-controls .control-section-nav_menu_locations .accordion-section-title{border-top:1px solid #dcdcde}#customize-theme-controls .control-panel-nav_menus .control-section-nav_menu+.control-section-nav_menu{border-top:none}#customize-theme-controls>ul{margin:0}#customize-theme-controls .accordion-section-content{position:absolute;top:0;right:100%;width:100%;margin:0;padding:12px;box-sizing:border-box}#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{overflow:visible;width:100%;margin:0;padding:0;box-sizing:border-box;transition:.18s transform cubic-bezier(.645, .045, .355, 1)}@media (prefers-reduced-motion:reduce){#customize-info,#customize-theme-controls .customize-pane-child,#customize-theme-controls .customize-pane-parent{transition:none}}#customize-theme-controls .customize-pane-child.skip-transition{transition:none}#customize-info,#customize-theme-controls .customize-pane-parent{position:relative;visibility:visible;height:auto;max-height:none;overflow:auto;transform:none}#customize-theme-controls .customize-pane-child{position:absolute;top:0;right:0;visibility:hidden;height:0;max-height:none;overflow:hidden;transform:translateX(-100%)}#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open{transform:none}.in-sub-panel #customize-info,.in-sub-panel #customize-theme-controls .customize-pane-parent,.in-sub-panel.section-open #customize-theme-controls .customize-pane-child.current-panel,.section-open #customize-info,.section-open #customize-theme-controls .customize-pane-parent{visibility:hidden;height:0;overflow:hidden;transform:translateX(100%)}#customize-theme-controls .customize-pane-child.busy,#customize-theme-controls .customize-pane-child.current-panel,#customize-theme-controls .customize-pane-child.open,.busy.section-open.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel,.in-sub-panel #customize-info.busy,.in-sub-panel #customize-theme-controls .customize-pane-parent.busy,.section-open #customize-info.busy,.section-open #customize-theme-controls .customize-pane-parent.busy{visibility:visible;height:auto;overflow:auto}#customize-theme-controls .customize-pane-child.accordion-section-content,#customize-theme-controls .customize-pane-child.accordion-sub-container{display:block;overflow-x:hidden}#customize-theme-controls .customize-pane-child.accordion-section-content{padding:12px}#customize-theme-controls .customize-pane-child.menu li{position:static}.control-section-nav_menu .customize-section-description-container,.control-section-new_menu .customize-section-description-container,.customize-section-description-container{margin-bottom:15px}.control-section-nav_menu .customize-control,.control-section-new_menu .customize-control{margin-bottom:0}.customize-section-title{margin:-12px -12px 0;border-bottom:1px solid #dcdcde;background:#fff}div.customize-section-description{margin-top:22px}.customize-info div.customize-section-description{margin-top:0}div.customize-section-description p:first-child{margin-top:0}div.customize-section-description p:last-child{margin-bottom:0}#customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{border-bottom:1px solid #dcdcde;padding:12px}.ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child{padding:12px 12px 13px}.customize-section-title h3,h3.customize-section-title{padding:10px 14px 12px 10px;margin:0;line-height:21px;color:#50575e}.accordion-sub-container.control-panel-content{display:none;position:absolute;top:0;width:100%}.accordion-sub-container.control-panel-content.busy{display:block}.current-panel .accordion-sub-container.control-panel-content{width:100%}.customize-controls-close{display:block;position:absolute;top:0;right:0;width:45px;height:41px;padding:0 0 0 2px;background:#f0f0f1;border:none;border-top:4px solid #f0f0f1;border-left:1px solid #dcdcde;color:#3c434a;text-align:right;cursor:pointer;box-sizing:content-box}@media (prefers-reduced-motion:no-preference){.customize-controls-close{transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}}.customize-panel-back,.customize-section-back{display:block;float:right;width:48px;height:71px;padding:0 0 0 24px;margin:0;background:#fff;border:none;border-left:1px solid #dcdcde;border-right:4px solid #fff;box-shadow:none;cursor:pointer;transition:color .15s ease-in-out,border-color .15s ease-in-out,background .15s ease-in-out}.customize-section-back{height:74px}.ios .customize-panel-back{display:none}.ios .expanded.in-sub-panel .customize-panel-back{display:block}#customize-controls .panel-meta.customize-info .accordion-section-title{margin-right:48px;border-right:none}#customize-controls .cannot-expand:hover .accordion-section-title,#customize-controls .panel-meta.customize-info .accordion-section-title:hover{background:#fff;color:#50575e;border-right-color:#fff}.customize-controls-close:focus,.customize-controls-close:hover,.customize-controls-preview-toggle:focus,.customize-controls-preview-toggle:hover{background:#fff;box-shadow:none;outline:1px solid transparent}#customize-theme-controls .accordion-section-title:focus .customize-action{outline:1px solid transparent;outline-offset:1px}.customize-panel-back:focus,.customize-panel-back:hover,.customize-section-back:focus,.customize-section-back:hover{background:#f6f7f7;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.customize-controls-close:before{font:normal 22px/45px dashicons;content:"\f335";content:"\f335"/'';position:relative;top:-3px;right:13px}.customize-panel-back:before,.customize-section-back:before{font:normal 20px/72px dashicons;content:"\f345";content:"\f341"/'';position:relative;right:9px}.wp-full-overlay-sidebar .wp-full-overlay-header{background-color:#f0f0f1;transition:padding ease-in-out .18s}.in-sub-panel .wp-full-overlay-sidebar .wp-full-overlay-header{padding-right:62px}p.customize-section-description{font-style:normal;margin-top:22px;margin-bottom:0}.customize-section-description ul{margin-right:1em}.customize-section-description ul>li{list-style:disc}.section-description-buttons{text-align:left}.customize-control{width:100%;float:right;clear:both;margin-bottom:12px}.customize-control input[type=email],.customize-control input[type=number],.customize-control input[type=password],.customize-control input[type=range],.customize-control input[type=search],.customize-control input[type=tel],.customize-control input[type=text],.customize-control input[type=url]{width:100%;margin:0}.customize-control-hidden{margin:0}.customize-control-textarea textarea{width:100%;resize:vertical}.customize-control select{width:100%}.customize-control select[multiple]{height:auto}.customize-control-title{display:block;font-size:14px;line-height:1.75;font-weight:600;margin-bottom:4px}.customize-control-description{display:block;font-style:italic;line-height:1.4;margin-top:0;margin-bottom:5px}.customize-section-description a.external-link:after{font:16px/11px dashicons;content:"\f504";content:"\f504"/'';top:3px;position:relative;padding-right:3px;display:inline-block;text-decoration:none}.customize-control-color .color-picker,.customize-control-upload div{line-height:28px}.customize-control .customize-inside-control-row{line-height:1.6;display:block;margin-right:24px;padding-top:6px;padding-bottom:6px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-left:4px;margin-right:-24px}.customize-control-radio{padding:5px 0 10px}.customize-control-radio .customize-control-title{margin-bottom:0;line-height:1.6}.customize-control-radio .customize-control-title+.customize-control-description{margin-top:7px}.customize-control-checkbox label,.customize-control-radio label{vertical-align:top}.customize-control .attachment-thumb.type-icon{float:right;margin:10px;width:auto}.customize-control .attachment-title{font-weight:600;margin:0;padding:5px 10px}.customize-control .attachment-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 10px}.customize-control .attachment-meta-title{padding-top:7px}.customize-control .thumbnail-image,.customize-control .wp-media-wrapper.wp-video,.customize-control-header .current{line-height:0}.customize-control .thumbnail-image img{cursor:pointer}#customize-controls .thumbnail-audio .thumbnail{max-width:64px;max-height:64px;margin:10px;float:right}#available-menu-items .accordion-section-content .new-content-item-wrapper,.customize-control-dropdown-pages .new-content-item-wrapper{width:calc(100% - 30px);padding:8px 15px;position:absolute;bottom:0;z-index:10;background:#f0f0f1}.customize-control-dropdown-pages .new-content-item-wrapper{width:100%;padding:0;position:static}#available-menu-items .new-content-item-wrapper>label,.customize-control-dropdown-pages .new-content-item-wrapper>label{margin-bottom:4px;display:block}#available-menu-items .accordion-section-content .new-content-item,.customize-control-dropdown-pages .new-content-item{display:flex}.customize-control-dropdown-pages .new-content-item{width:100%;padding:5px 1px 5px 0;position:relative}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item{padding:0}.customize-control-dropdown-pages .new-content-item-wrapper .new-content-item label{line-height:1.6}#available-menu-items .new-content-item .create-item-input,.customize-control-dropdown-pages .new-content-item .create-item-input{flex-grow:10;width:100%}#available-menu-items .new-content-item .create-item-input{min-height:32px;line-height:2.15384615}#available-menu-items .new-content-item .add-content,.customize-control-dropdown-pages .new-content-item .add-content{margin:0 6px 0 0;flex-grow:1}#available-menu-items .new-content-item .add-content{min-height:32px;line-height:2.30769231}.customize-control-dropdown-pages .new-content-item .create-item-input.invalid{border:1px solid #d63638}.customize-control-dropdown-pages .add-new-toggle{margin-right:1px;font-weight:600;line-height:2.2}#customize-preview iframe{width:100%;height:100%;position:absolute}#customize-preview iframe+iframe{visibility:hidden}.wp-full-overlay-sidebar{background:#f0f0f1;border-left:1px solid #dcdcde}#customize-controls .customize-control-notifications-container{margin:4px 0 8px;padding:0;cursor:default}#customize-controls .customize-control-widget_form.has-error .widget .widget-top,.customize-control-nav_menu_item.has-error .menu-item-bar .menu-item-handle{box-shadow:inset 0 0 0 2px #d63638;transition:.15s box-shadow linear}#customize-controls .customize-control-notifications-container li.notice{list-style:none;margin:0 0 6px;padding:9px 14px;overflow:hidden}#customize-controls .customize-control-notifications-container .notice.is-dismissible{padding-left:38px}.customize-control-notifications-container li.notice:last-child{margin-bottom:0}#customize-controls .customize-control-nav_menu_item .customize-control-notifications-container{margin-top:0}#customize-controls .customize-control-widget_form .customize-control-notifications-container{margin-top:8px}.customize-control-text.has-error input{outline:2px solid #d63638}#customize-controls #customize-notifications-area{position:absolute;top:46px;width:100%;border-bottom:1px solid #dcdcde;display:block;padding:0;margin:0}.wp-full-overlay.collapsed #customize-controls #customize-notifications-area{display:none!important}#customize-controls #customize-notifications-area:not(.has-overlay-notifications),#customize-controls .customize-section-title>.customize-control-notifications-container:not(.has-overlay-notifications),#customize-controls .panel-meta>.customize-control-notifications-container:not(.has-overlay-notifications){max-height:210px;overflow-x:hidden;overflow-y:auto}#customize-controls #customize-notifications-area .notice,#customize-controls #customize-notifications-area>ul,#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container .notice{margin:0}#customize-controls .customize-section-title>.customize-control-notifications-container,#customize-controls .panel-meta>.customize-control-notifications-container{border-top:1px solid #dcdcde}#customize-controls #customize-notifications-area .notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice{padding:9px 14px}#customize-controls #customize-notifications-area .notice.is-dismissible,#customize-controls .customize-section-title>.customize-control-notifications-container .notice.is-dismissible,#customize-controls .panel-meta>.customize-control-notifications-container .notice.is-dismissible{padding-left:38px}#customize-controls #customize-notifications-area .notice+.notice,#customize-controls .customize-section-title>.customize-control-notifications-container .notice+.notice,#customize-controls .panel-meta>.customize-control-notifications-container .notice+.notice{margin-top:1px}@keyframes customize-fade-in{0%{opacity:0}100%{opacity:1}}#customize-controls #customize-notifications-area .notice.notification-overlay,#customize-controls .notice.notification-overlay{margin:0;border-right:0}#customize-controls .customize-control-notifications-container.has-overlay-notifications{animation:customize-fade-in .5s;z-index:30}#customize-controls #customize-notifications-area .notice.notification-overlay .notification-message{clear:both;color:#1d2327;font-size:18px;font-style:normal;margin:0;padding:2em 0;text-align:center;width:100%;display:block;top:50%;position:relative}#customize-control-show_on_front.has-error{margin-bottom:0}#customize-control-show_on_front.has-error .customize-control-notifications-container{margin-top:12px}.accordion-section .dropdown{float:right;display:block;position:relative;cursor:pointer}.accordion-section .dropdown-content{overflow:hidden;float:right;min-width:30px;height:16px;line-height:16px;margin-left:16px;padding:4px 5px;border:2px solid #f0f0f1;-webkit-user-select:none;user-select:none}.customize-control .dropdown-arrow{position:absolute;top:0;bottom:0;left:0;width:20px;background:#f0f0f1}.customize-control .dropdown-arrow:after{content:"\f140";content:"\f140"/'';font:normal 20px/1 dashicons;display:block;padding:0;text-indent:0;text-align:center;position:relative;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#2c3338}.customize-control .dropdown-status{color:#2c3338;background:#f0f0f1;display:none;max-width:112px}.customize-control-color .dropdown{margin-left:5px;margin-bottom:5px}.customize-control-color .dropdown .dropdown-content{background-color:#50575e;border:1px solid rgba(0,0,0,.15)}.customize-control-color .dropdown:hover .dropdown-content{border-color:rgba(0,0,0,.25)}.ios .wp-full-overlay{position:relative}.ios #customize-controls .wp-full-overlay-sidebar-content{-webkit-overflow-scrolling:touch}.customize-control .actions .button{margin-top:12px}.customize-control-header .actions,.customize-control-header .uploaded{margin-bottom:18px}.customize-control-header .default button:not(.random),.customize-control-header .uploaded button:not(.random){width:100%;padding:0;margin:0;background:0 0;border:none;color:inherit;cursor:pointer}.customize-control-header button img{display:block}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control .attachment-media-view .upload-button,.customize-control-header button.new,.customize-control-header button.remove{width:auto;height:auto;white-space:normal}.customize-control .attachment-media-view .upload-button{width:100%;text-align:center}.customize-control .attachment-media-view .upload-button.control-focus{width:auto}.customize-control.customize-control-header .actions .upload-button.button.new{width:100%;text-align:center}.customize-control .attachment-media-view .thumbnail,.customize-control-header .current .container{overflow:hidden}.customize-control .attachment-media-view .button-add-media,.customize-control .attachment-media-view .placeholder,.customize-control-header .placeholder{width:100%;position:relative;text-align:center;cursor:default;border:1px dashed #c3c4c7;box-sizing:border-box;padding:9px 0;line-height:1.6}.customize-control .attachment-media-view .button-add-media{cursor:pointer;background-color:#f0f0f1;color:#2c3338}.customize-control .attachment-media-view .button-add-media:hover{background-color:#fff}.customize-control .attachment-media-view .button-add-media:focus{background-color:#fff;border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;outline:2px solid transparent}.customize-control-header .inner{display:none;position:absolute;width:100%;color:#50575e;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.customize-control-header .inner,.customize-control-header .inner .dashicons{line-height:20px;top:8px}.customize-control-header .list .inner,.customize-control-header .list .inner .dashicons{top:9px}.customize-control-header .header-view{position:relative;width:100%;margin-bottom:12px}.customize-control-header .header-view:last-child{margin-bottom:0}.customize-control-header .header-view:after{border:0}.customize-control-header .header-view.selected .choice:focus{outline:0}.customize-control-header .header-view.selected:after{content:"";position:absolute;height:auto;top:0;right:0;bottom:0;left:0;border:4px solid #72aee6;border-radius:2px}.customize-control-header .header-view.button.selected{border:0}.customize-control-header .uploaded .header-view .close{font-size:20px;color:#fff;background:#50575e;background:rgba(0,0,0,.5);position:absolute;top:10px;right:-999px;z-index:1;width:26px;height:26px;cursor:pointer}.customize-control-header .header-view .close:focus,.customize-control-header .header-view:hover .close{right:auto;left:10px}.customize-control-header .header-view .close:focus{outline:1px solid #4f94d4}.customize-control-header .random.placeholder{cursor:pointer;border-radius:2px;height:40px}.customize-control-header button.random{width:100%;height:auto;min-height:40px;white-space:normal}.customize-control-header button.random .dice{margin-top:0}.customize-control-header .header-view:hover>button.random .dice,.customize-control-header .placeholder:hover .dice{animation:dice-color-change 3s infinite}.button-see-me{animation:bounce .7s 1;transform-origin:center bottom}@keyframes bounce{20%,53%,80%,from,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0)}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-12px,0)}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-6px,0)}90%{transform:translate3d(0,-1px,0)}}.customize-control-header .choice{position:relative;display:block;margin-bottom:9px}.customize-control-header .choice:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.customize-control-header .uploaded div:last-child>.choice{margin-bottom:0}.customize-control .attachment-media-view .thumbnail-image img,.customize-control-header img{max-width:100%}.customize-control .attachment-media-view .default-button,.customize-control .attachment-media-view .remove-button,.customize-control-header .remove{margin-left:8px}.customize-control-background_position .background-position-control .button-group{display:block}.customize-control-code_editor textarea{width:100%;font-family:Consolas,Monaco,monospace;font-size:12px;padding:6px 8px;tab-size:2}.customize-control-code_editor .CodeMirror,.customize-control-code_editor textarea{height:14em}#customize-controls .customize-section-description-container.section-meta.customize-info{border-bottom:none}#sub-accordion-section-custom_css .customize-control-notifications-container{margin-bottom:15px}#customize-control-custom_css textarea{display:block;height:500px}.customize-section-description-container+#customize-control-custom_css .customize-control-title{margin-right:12px}.customize-section-description-container+#customize-control-custom_css:last-child textarea{border-left:0;border-right:0;height:calc(100vh - 185px);resize:none}.customize-section-description-container+#customize-control-custom_css:last-child{margin-right:-12px;width:299px;width:calc(100% + 24px);margin-bottom:-12px}.customize-section-description-container+#customize-control-custom_css:last-child .CodeMirror{height:calc(100vh - 185px)}.CodeMirror-hints,.CodeMirror-lint-tooltip{z-index:500000!important}.customize-section-description-container+#customize-control-custom_css:last-child .customize-control-notifications-container{margin-right:12px;margin-left:12px}.theme-browser .theme.active .theme-actions,.wp-customizer .theme-browser .theme .theme-actions{padding:9px 15px}.theme-browser .theme:not(.active) .theme-actions{box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}@media screen and (max-width:640px){.customize-section-description-container+#customize-control-custom_css:last-child{margin-left:0}.customize-section-description-container+#customize-control-custom_css:last-child textarea{height:calc(100vh - 140px)}}#customize-theme-controls .control-panel-themes{border-bottom:none}#customize-theme-controls .control-panel-themes>.accordion-section-title,#customize-theme-controls .control-panel-themes>.accordion-section-title:hover{cursor:default;background:#fff;color:#50575e;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde;border-right:none;border-left:none;margin:0 0 15px;padding:12px 15px 15px 100px}#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child,#customize-theme-controls .control-section-themes .customize-themes-panel .accordion-section-title:first-child:hover{border-top:0}#customize-theme-controls .control-section-themes>.accordion-section-title,#customize-theme-controls .control-section-themes>.accordion-section-title:hover{margin:0 0 15px}#customize-controls .customize-themes-panel .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title:hover{margin:15px -8px}#customize-controls .control-section-themes .accordion-section-title,#customize-controls .customize-themes-panel .accordion-section-title{padding-left:100px}#customize-controls .control-section-themes .accordion-section-title span.customize-action,#customize-controls .customize-section-title span.customize-action,.control-panel-themes .accordion-section-title span.customize-action{font-size:13px;display:block;font-weight:400}#customize-theme-controls .control-panel-themes .accordion-section-title .change-theme{position:absolute;left:10px;top:50%;margin-top:-20px;font-weight:400}#customize-notifications-area .notification-message button.switch-to-editor{display:block;margin-top:6px;font-weight:400}#customize-theme-controls .control-panel-themes>.accordion-section-title:after{display:none}.control-panel-themes .customize-themes-full-container{position:fixed;top:0;right:0;transition:.18s right ease-in-out;margin:0 300px 0 0;padding:71px 0 25px;overflow-y:scroll;width:calc(100% - 300px);height:calc(100% - 96px);background:#f0f0f1;z-index:20}@media (prefers-reduced-motion:reduce){.control-panel-themes .customize-themes-full-container{transition:none}}@media screen and (min-width:1670px){.control-panel-themes .customize-themes-full-container{width:82%;left:0;right:initial}}.modal-open .control-panel-themes .customize-themes-full-container{overflow-y:visible}#customize-header-actions .customize-controls-preview-toggle,#customize-header-actions .spinner,#customize-save-button-wrapper{transition:.18s margin ease-in-out}#customize-footer-actions,#customize-footer-actions .collapse-sidebar{bottom:0;transition:.18s bottom ease-in-out}.in-themes-panel:not(.animating) #customize-footer-actions,.in-themes-panel:not(.animating) #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel:not(.animating) #customize-header-actions .spinner,.in-themes-panel:not(.animating) #customize-preview{visibility:hidden}.wp-full-overlay.in-themes-panel{background:#f0f0f1}.in-themes-panel #customize-header-actions .customize-controls-preview-toggle,.in-themes-panel #customize-header-actions .spinner,.in-themes-panel #customize-save-button-wrapper{margin-top:-46px}.in-themes-panel #customize-footer-actions,.in-themes-panel #customize-footer-actions .collapse-sidebar{bottom:-45px}.in-themes-panel.animating .control-panel-themes .filter-themes-count{display:none}.in-themes-panel.wp-full-overlay .wp-full-overlay-sidebar-content{bottom:0}.themes-filter-bar .feature-filter-toggle{min-height:32px;line-height:2.30769231}.themes-filter-bar .feature-filter-toggle:before{content:"\f111";content:"\f111"/'';margin:0 0 0 5px;font:normal 16px/1 dashicons;vertical-align:text-bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .feature-filter-toggle.open{background:#f0f0f1;border-color:#8c8f94;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}.themes-filter-bar .feature-filter-toggle .filter-count-filters{display:none}.filter-drawer{box-sizing:border-box;width:100%;position:absolute;top:46px;right:0;padding:25px 25px 25px 0;border-top:0;margin:0;background:#f0f0f1;border-bottom:1px solid #dcdcde}.filter-drawer .filter-group{margin:0 0 0 25px;width:calc((100% - 75px)/ 3);min-width:200px;max-width:320px}@keyframes themes-fade-in{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.control-panel-themes .customize-themes-full-container.animate{animation:.6s themes-fade-in 1}.in-themes-panel:not(.animating) .control-panel-themes .filter-themes-count{animation:.6s themes-fade-in 1}.control-panel-themes .filter-themes-count .themes-displayed{font-weight:600;color:#50575e}.customize-themes-notifications{margin:0}.control-panel-themes .customize-themes-notifications .notice{margin:0 0 25px}.customize-themes-full-container .customize-themes-section{display:none!important;overflow:hidden}.customize-themes-full-container .customize-themes-section.current-section{display:list-item!important}.control-section .customize-section-text-before{padding:0 15px 8px 0;margin:15px 0 0;line-height:16px;border-bottom:1px solid #dcdcde;color:#50575e}.control-panel-themes .customize-themes-section-title{width:100%;background:#fff;box-shadow:none;outline:0;border-top:none;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;border-left:none;cursor:pointer;padding:10px 15px;position:relative;text-align:right;font-size:14px;font-weight:600;color:#50575e;text-shadow:none}.control-panel-themes #accordion-section-installed_themes{border-top:1px solid #dcdcde}.control-panel-themes .theme-section{margin:0;position:relative}.control-panel-themes .customize-themes-section-title:focus,.control-panel-themes .customize-themes-section-title:hover{background:#f6f7f7}.customize-themes-section-title:not(.selected):after{content:"";display:block;position:absolute;top:9px;left:15px;width:18px;height:18px;border-radius:100%;border:1px solid #c3c4c7;background:#fff}.control-panel-themes .theme-section .customize-themes-section-title.selected:after{content:"\f147";content:"\f147"/'';font:16px/1 dashicons;box-sizing:border-box;width:20px;height:20px;padding:3px 1px 1px 3px;border-radius:100%;position:absolute;top:9px;left:15px;color:#fff}#customize-theme-controls .themes.accordion-section-content{position:relative;right:0;padding:0;width:100%}.loading .customize-themes-section .spinner{display:block;visibility:visible;position:relative;clear:both;width:20px;height:20px;right:calc(50% - 10px);float:none;margin-top:50px}.customize-themes-section .no-themes,.customize-themes-section .no-themes-local{display:none}.themes-section-installed_themes .theme .notice-success:not(.updated-message){display:none}.customize-control-theme .theme{width:100%;margin:0;border:1px solid #dcdcde;background:#fff}.customize-control-theme .theme .theme-actions,.customize-control-theme .theme .theme-name{background:#fff;border:none}.customize-control.customize-control-theme{box-sizing:border-box;width:25%;max-width:600px;margin:0 0 25px 25px;padding:0;clear:none}@media screen and (min-width:2101px){.customize-control.customize-control-theme{width:calc((100% - 125px)/ 5 - 1px)}}@media screen and (min-width:1601px) and (max-width:2100px){.customize-control.customize-control-theme{width:calc((100% - 100px)/ 4 - 1px)}}@media screen and (min-width:1201px) and (max-width:1600px){.customize-control.customize-control-theme{width:calc((100% - 75px)/ 3 - 1px)}}@media screen and (min-width:851px) and (max-width:1200px){.customize-control.customize-control-theme{width:calc((100% - 50px)/ 2 - 1px)}}@media screen and (max-width:850px){.customize-control.customize-control-theme{width:100%}}.wp-customizer .theme-browser .themes{padding:0 25px 25px 0;transition:.18s margin-top linear}.wp-customizer .theme-browser .theme .theme-actions{opacity:1}#customize-controls h3.theme-name{font-size:15px}#customize-controls .theme-overlay .theme-name{font-size:32px}.customize-preview-header.themes-filter-bar{position:fixed;top:0;right:300px;width:calc(100% - 300px);height:46px;background:#f0f0f1;z-index:10;padding:6px 25px;box-sizing:border-box;border-bottom:1px solid #dcdcde}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.customize-preview-header.themes-filter-bar .search-form-input{position:relative}.customize-preview-header .filter-themes-wrapper{display:grid;align-items:center;gap:10px;grid-template-columns:auto 1fr}.customize-preview-header .filter-themes-wrapper .filter-themes-count{justify-self:end}@media screen and (min-width:1670px){.customize-preview-header.themes-filter-bar{width:82%;left:0;right:initial}}.themes-filter-bar .themes-filter-container{margin:0;padding:0;display:flex;align-items:center;gap:10px}.themes-filter-bar .wp-filter-search{padding:0 30px 0 10px;max-width:100%;width:40%;min-width:300px;height:32px;min-height:32px;margin:1px 0;top:0;right:0}@media screen and (max-height:540px),screen and (max-width:1018px){.customize-preview-header.themes-filter-bar{position:relative;right:0;width:100%;margin:0 0 25px}.filter-drawer{top:46px}.wp-customizer .theme-browser .themes{padding:0 25px 25px 0;overflow:hidden}.control-panel-themes .customize-themes-full-container{margin-top:0;padding:0;height:100%;width:calc(100% - 300px)}}@media screen and (max-width:1018px){.filter-drawer .filter-group{width:calc((100% - 50px)/ 2)}}@media screen and (max-width:960px){.customize-preview-header.themes-filter-bar{height:96px}}@media screen and (max-width:900px){.themes-filter-bar .wp-filter-search{width:100%;margin:0;min-width:200px}.customize-preview-header.themes-filter-bar,.customize-preview-header.themes-filter-bar .search-form .themes-filter-bar .themes-filter-container{display:grid;gap:4px}.customize-preview-header.themes-filter-bar .search-form-input{display:flex;flex-grow:1}.filter-drawer{top:86px}.control-panel-themes .filter-themes-count{float:right}}@media screen and (max-width:792px){.filter-drawer .filter-group{width:calc(100% - 25px)}}.control-panel-themes .customize-themes-mobile-back{display:none}@media screen and (max-width:600px){.filter-drawer{top:132px}.wp-full-overlay.showing-themes .control-panel-themes .filter-themes-count .filter-themes{display:block;float:left}.control-panel-themes .customize-themes-full-container{width:100%;margin:0;padding-top:46px;height:calc(100% - 46px);z-index:1;display:none}.showing-themes .control-panel-themes .customize-themes-full-container{display:block}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back{display:block;position:fixed;top:0;right:0;background:#f0f0f1;color:#3c434a;border-radius:0;box-shadow:none;border:none;height:46px;width:100%;z-index:10;text-align:right;text-shadow:none;border-bottom:1px solid #dcdcde;border-right:4px solid transparent;margin:0;padding:0;font-size:0;overflow:hidden}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:before{right:0;top:0;height:46px;width:26px;display:block;line-height:2.3;padding:0 8px;border-left:1px solid #dcdcde}.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus,.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover{background:#f6f7f7;box-shadow:none;outline:2px solid transparent;outline-offset:-2px}.showing-themes #customize-header-actions{display:none}#customize-controls{width:100%}}.wp-customizer .theme-overlay{display:none}.wp-customizer.modal-open .theme-overlay{position:fixed;right:0;top:0;left:0;bottom:0;z-index:109}.wp-customizer.modal-open #customize-header-actions,.wp-customizer.modal-open .control-panel-themes .customize-themes-section-title.selected:after,.wp-customizer.modal-open .control-panel-themes .filter-themes-count{z-index:-1}.wp-full-overlay.in-themes-panel.themes-panel-expanded #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-overlay .theme-backdrop{background:rgba(240,240,241,.75);position:fixed;z-index:110}.wp-customizer .theme-overlay .star-rating{float:right;margin-left:8px}.wp-customizer .theme-rating .num-ratings{line-height:20px}.wp-customizer .theme-overlay .theme-wrap{right:90px;left:90px;top:45px;bottom:45px;z-index:120}.wp-customizer .theme-overlay .theme-actions{text-align:left;padding:10px 25px 5px;background:#f0f0f1;border-top:1px solid #dcdcde}.wp-customizer .theme-overlay .theme-actions .theme-install.preview{margin-right:8px}.modal-open .in-themes-panel #customize-controls .wp-full-overlay-sidebar-content{overflow:visible}.wp-customizer .theme-header{background:#f0f0f1}.wp-customizer .theme-overlay .theme-header .close:before,.wp-customizer .theme-overlay .theme-header button{color:#3c434a}.wp-customizer .theme-overlay .theme-header .close:focus,.wp-customizer .theme-overlay .theme-header .close:hover,.wp-customizer .theme-overlay .theme-header .left:focus,.wp-customizer .theme-overlay .theme-header .left:hover,.wp-customizer .theme-overlay .theme-header .right:focus,.wp-customizer .theme-overlay .theme-header .right:hover{background:#fff}.wp-customizer .theme-overlay .theme-header .close:focus:before,.wp-customizer .theme-overlay .theme-header .close:hover:before{color:var(--wp-admin-theme-color)}.wp-customizer .theme-overlay .theme-header button.disabled,.wp-customizer .theme-overlay .theme-header button.disabled:focus,.wp-customizer .theme-overlay .theme-header button.disabled:hover{border-bottom:none;background:0 0;color:#c3c4c7}@media (max-width:850px),(max-height:472px){.wp-customizer .theme-overlay .theme-wrap{right:0;left:0;top:0;bottom:0}.wp-customizer .theme-browser .themes{padding-left:25px}}body.cheatin{font-size:medium;height:auto;background:#fff;border:1px solid #c3c4c7;margin:50px auto 2em;padding:1em 2em;max-width:700px;min-width:0;box-shadow:0 1px 1px rgba(0,0,0,.04)}body.cheatin h1{border-bottom:1px solid #dcdcde;clear:both;color:#50575e;font-size:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;margin:30px 0 0;padding:0 0 7px}body.cheatin p{font-size:14px;line-height:1.5;margin:25px 0 20px}#customize-theme-controls .add-new-menu-item,#customize-theme-controls .add-new-widget{cursor:pointer;float:left;margin:0 10px 0 0;transition:all .2s;-webkit-user-select:none;user-select:none;outline:0}.reordering .add-new-menu-item,.reordering .add-new-widget{opacity:.2;pointer-events:none;cursor:not-allowed}#available-menu-items .new-content-item .add-content:before,.add-new-menu-item:before,.add-new-widget:before{content:"\f132";content:"\f132"/'';display:inline-block;position:relative;right:-2px;top:0;font:normal 20px/1 dashicons;vertical-align:middle;transition:all .2s;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reorder-toggle{float:left;padding:5px 8px;text-decoration:none;cursor:pointer;outline:0}.reorder,.reordering .reorder-done{display:block;padding:5px 8px}.reorder-done,.reordering .reorder{display:none}.menu-item-reorder-nav button,.widget-reorder-nav span{position:relative;overflow:hidden;float:right;display:block;width:33px;height:43px;color:#8c8f94;text-indent:-9999px;cursor:pointer;outline:0}.menu-item-reorder-nav button{width:30px;height:40px;background:0 0;border:none;box-shadow:none}.menu-item-reorder-nav button:before,.widget-reorder-nav span:before{display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;font:normal 20px/43px dashicons;text-align:center;text-indent:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.menu-item-reorder-nav button:focus,.menu-item-reorder-nav button:hover,.widget-reorder-nav span:focus,.widget-reorder-nav span:hover{color:#1d2327;background:#f0f0f1}.menus-move-down:before,.move-widget-down:before{content:"\f347";content:"\f347"/''}.menus-move-up:before,.move-widget-up:before{content:"\f343";content:"\f343"/''}#customize-theme-controls .first-widget .move-widget-up,#customize-theme-controls .last-widget .move-widget-down,.move-down-disabled .menus-move-down,.move-left-disabled .menus-move-left,.move-right-disabled .menus-move-right,.move-up-disabled .menus-move-up{color:#dcdcde;background-color:#fff;cursor:default;pointer-events:none}.wp-full-overlay-main{left:auto;width:100%}.add-menu-toggle.open,.add-menu-toggle.open:hover,.adding-menu-items .add-new-menu-item,.adding-menu-items .add-new-menu-item:hover,body.adding-widget .add-new-widget,body.adding-widget .add-new-widget:hover{background:#f0f0f1;border-color:#8c8f94;color:#2c3338;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5)}#accordion-section-add_menu .add-new-menu-item.open:before,.adding-menu-items .add-new-menu-item:before,body.adding-widget .add-new-widget:before{transform:rotate(-45deg)}#available-menu-items,#available-widgets{position:absolute;top:0;bottom:0;right:-301px;visibility:hidden;overflow-x:hidden;overflow-y:auto;width:300px;margin:0;z-index:4;background:#f0f0f1;transition:right .18s;border-left:1px solid #dcdcde}#available-menu-items .accordion-section-title,#available-widgets .accordion-section-title{z-index:2}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;word-break:normal!important}#available-menu-items .customize-section-title button,#available-widgets .customize-section-title button{display:none}#available-widgets-list{top:82px;position:absolute;overflow:auto;bottom:0;width:100%;border-top:1px solid #dcdcde}.no-widgets-found #available-widgets-list{border-top:none}#available-widgets-filter{position:fixed;top:0;z-index:1;width:300px;background:#f0f0f1}#available-menu-items-search .accordion-section-title,#available-widgets-filter{padding:13px 15px;box-sizing:border-box}#available-menu-items-search input,#available-widgets-filter input{width:100%;min-height:40px;margin:1px 0;padding:0 30px}#available-menu-items-search input::-ms-clear,#available-widgets-filter input::-ms-clear{display:none}#available-menu-items-search .search-icon,#available-widgets-filter .search-icon{display:block;position:absolute;bottom:19px;right:16px;width:30px;height:30px;line-height:2.1;text-align:center;color:#646970}#available-menu-items-search .accordion-section-title .clear-results,#available-widgets-filter .clear-results{position:absolute;top:40px;left:16px;width:30px;height:30px;padding:0;border:0;cursor:pointer;background:0 0;color:#d63638;text-decoration:none;outline:0}#available-menu-items-search .clear-results,#available-menu-items-search.loading .clear-results.is-visible,#available-widgets-filter .clear-results{display:none}#available-menu-items-search .clear-results.is-visible,#available-widgets-filter .clear-results.is-visible{display:block}#available-menu-items-search .clear-results:before,#available-widgets-filter .clear-results:before{content:"\f335";content:"\f335"/'';font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-menu-items-search .clear-results:focus,#available-menu-items-search .clear-results:hover,#available-widgets-filter .clear-results:focus,#available-widgets-filter .clear-results:hover{color:#d63638}#available-menu-items-search .clear-results:focus,#available-widgets-filter .clear-results:focus{border-radius:2px;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}#available-menu-items-search .search-icon:after,#available-widgets-filter .search-icon:after,.themes-filter-bar .search-icon:after{content:"\f179";font:normal 20px/1 dashicons;vertical-align:middle;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.themes-filter-bar .search-icon{position:absolute;top:2px;right:2px;z-index:1;color:#646970;height:30px;width:30px;line-height:2;text-align:center}.no-widgets-found-message{display:none;margin:0;padding:0 15px;line-height:inherit}.no-widgets-found .no-widgets-found-message{display:block}#available-menu-items .item-top,#available-menu-items .item-top:hover,#available-widgets .widget-top,#available-widgets .widget-top:hover{border:none;background:0 0;box-shadow:none}#available-menu-items .item-tpl,#available-widgets .widget-tpl{position:relative;padding:15px 60px 15px 15px;background:#fff;border-bottom:1px solid #dcdcde;border-right:4px solid #fff;transition:.15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;cursor:pointer;display:none}#available-menu-items .item,#available-widgets .widget{position:static}.customize-controls-preview-toggle{display:none}@media only screen and (max-width:782px){.wp-customizer .theme:not(.active):focus .theme-actions,.wp-customizer .theme:not(.active):hover .theme-actions{display:block}.wp-customizer .theme-browser .theme.active .theme-name span{display:inline}.customize-control-header button.random .dice{margin-top:0}.customize-control-checkbox .customize-inside-control-row,.customize-control-nav_menu_auto_add .customize-inside-control-row,.customize-control-radio .customize-inside-control-row{margin-right:32px}.customize-control-checkbox input,.customize-control-nav_menu_auto_add input,.customize-control-radio input{margin-right:-32px}.customize-control input[type=checkbox]+label+br,.customize-control input[type=radio]+label+br{line-height:2.5}.customize-control .date-time-fields select{height:39px}.date-time-fields .date-input.month{width:79px}.date-time-fields .date-input.day,.date-time-fields .date-input.hour,.date-time-fields .date-input.minute{width:55px}.date-time-fields .date-input.year{width:80px}#customize-control-changeset_preview_link a{bottom:16px}.media-widget-control .media-widget-buttons .button.change-media,.media-widget-control .media-widget-buttons .button.edit-media,.media-widget-control .media-widget-buttons .button.select-media{margin-top:12px}.customize-preview-header.themes-filter-bar .search-icon{top:6px}}@media screen and (max-width:1200px){.adding-menu-items .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.adding-widget .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main,.outer-section-open .wp-full-overlay.expanded.preview-mobile .wp-full-overlay-main{right:67%}}@media screen and (max-width:640px){.wp-full-overlay.collapsed #customize-controls{margin-right:0}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:0}.customize-controls-preview-toggle{display:block;position:absolute;top:0;right:48px;line-height:2.6;font-size:14px;padding:0 12px 4px;margin:0;height:45px;background:#f0f0f1;border:0;border-left:1px solid #dcdcde;border-top:4px solid #f0f0f1;color:#50575e;cursor:pointer;transition:color .1s ease-in-out,background .1s ease-in-out}#customize-footer-actions,.customize-controls-preview-toggle .controls,.preview-only .customize-controls-preview-toggle .preview,.preview-only .wp-full-overlay-sidebar-content{display:none}.preview-only #customize-save-button-wrapper{margin-top:-46px}.customize-controls-preview-toggle .controls:before,.customize-controls-preview-toggle .preview:before{font:normal 20px/1 dashicons;content:"\f177";content:"\f177"/'';position:relative;top:4px;margin-left:6px}.customize-controls-preview-toggle .controls:before{content:"\f540";content:"\f540"/''}.preview-only #customize-controls{height:45px}.preview-only #customize-preview,.preview-only .customize-controls-preview-toggle .controls{display:block}.wp-core-ui.wp-customizer .button{padding:0 14px;line-height:2.14285714;font-size:14px;vertical-align:middle}.customize-control .attachment-media-view .upload-button{text-align:center}#customize-control-changeset_status .customize-inside-control-row{padding-top:15px}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{width:100%}#available-menu-items .customize-section-title,#available-widgets .customize-section-title{border:0;clip-path:none;height:inherit;margin:0;overflow:hidden;padding:0;width:auto;position:static}#available-menu-items .customize-section-title button,#available-widgets .customize-section-title button{display:block}#available-menu-items .customize-section-back,#available-widgets .customize-section-back{height:69px}#available-menu-items .customize-section-title h3,#available-widgets .customize-section-title h3{font-size:20px;font-weight:200;padding:9px 14px 12px 10px;margin:0;line-height:24px;color:#50575e;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-menu-items .customize-section-title .customize-action,#available-widgets .customize-section-title .customize-action{font-size:13px;display:block;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#available-widgets-filter{position:relative;width:100%;height:auto}#available-widgets-list{top:152px}#available-menu-items-search .clear-results{top:40px;left:16px}.reorder,.reordering .reorder-done{padding:8px}}@media screen and (max-width:600px){.wp-full-overlay.expanded{margin-right:0}body.adding-menu-items div#available-menu-items,body.adding-widget div#available-widgets,body.outer-section-open div#customize-sidebar-outer-content{top:46px;z-index:10}body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content{right:-100%}body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content{right:0}}css/forms-rtl.css000064400000114306152213653150010003 0ustar00/*! This file is auto-generated */ /* Include margin and padding in the width calculation of input and textarea. */ input, select, textarea, button { box-sizing: border-box; font-family: inherit; font-size: inherit; font-weight: inherit; } textarea, input { font-size: 14px; } textarea { overflow: auto; padding: 8px 12px; /* inherits font size 14px */ line-height: 1.42857143; /* 20px */ resize: vertical; } input, select { margin: 0 1px; } textarea.code { padding: 8px 12px; } input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea { box-shadow: 0 0 0 transparent; border-radius: 2px; border: 1px solid #949494; background-color: #fff; color: #1e1e1e; } input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] { padding: 0 12px; /* inherits font size 14px */ min-height: 40px; } select { padding: 0 12px 0 24px; /* inherits font size 14px */ line-height: 2.71428571; /* 38px for 40px min-height */ min-height: 40px; } ::-webkit-datetime-edit { /* inherits font size 14px */ line-height: 1.85714286; /* 26px */ } input[type="text"]:focus, input[type="password"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, select:focus, textarea:focus { border-color: var(--wp-admin-theme-color); box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /* Checkbox and radio use outset focus style */ input[type="checkbox"]:focus, input[type="radio"]:focus { border-color: #1e1e1e; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /* rtl:ignore */ .ltr, input[type="password"], input[type="email"], input[type="url"] { direction: ltr; } input[type="checkbox"], input[type="radio"] { border: 1px solid #1e1e1e; border-radius: 2px; background: #fff; color: #1e1e1e; clear: none; cursor: pointer; display: inline-block; line-height: 0; height: 1rem; margin: -0.25rem 0 0 0.25rem; outline: 0; padding: 0 !important; text-align: center; vertical-align: middle; width: 1rem; min-width: 1rem; -webkit-appearance: none; box-shadow: none; transition: .05s border-color ease-in-out; } input[type="radio"]:checked + label:before { color: #949494; } .wp-core-ui input[type="reset"]:hover, .wp-core-ui input[type="reset"]:active { color: #135e96; } td > input[type="checkbox"], .wp-admin p input[type="checkbox"], .wp-admin p input[type="radio"] { margin-top: 0; } .wp-admin p label input[type="checkbox"] { margin-top: -4px; } .wp-admin p label input[type="radio"] { margin-top: -2px; } input[type="radio"] { display: inline-flex; border-radius: 50%; margin-left: 0.25rem; align-items: center; justify-content: center; } input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { float: right; display: inline-block; vertical-align: middle; width: 1rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } input[type="checkbox"]:checked::before { /* Use the "Yes" SVG Dashicon */ content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E"); content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") / ''; margin: -0.1875rem -0.25rem 0 0; height: 1.3125rem; width: 1.3125rem; } input[type="checkbox"]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type="radio"]:checked { background: var(--wp-admin-theme-color); border-color: var(--wp-admin-theme-color); } input[type="radio"]:checked::before { content: ""; border-radius: 50%; width: 0.5rem; /* 8px */ height: 0.5rem; /* 8px */ margin: auto; background-color: #fff; /* Only visible in Windows High Contrast mode */ outline: 4px solid transparent; } @-moz-document url-prefix() { input[type="checkbox"], input[type="radio"], .form-table input.tog { margin-bottom: -1px; } } /* Search */ input[type="search"] { -webkit-appearance: textfield; } input[type="search"]::-webkit-search-decoration { display: none; } input[type="search"]::-webkit-search-cancel-button { cursor: pointer; } .wp-admin input[type="file"] { padding: 3px 0; cursor: pointer; } input.readonly, input[readonly], textarea.readonly, textarea[readonly] { background-color: #f0f0f0; } ::-webkit-input-placeholder { color: #757575; } ::-moz-placeholder { color: #757575; } .form-invalid .form-required, .form-invalid .form-required:focus, .form-invalid.form-required input, .form-invalid.form-required input:focus, .form-invalid.form-required select, .form-invalid.form-required select:focus { border-color: #d63638 !important; box-shadow: 0 0 2px rgba(214, 54, 56, 0.8); } .form-table .form-required.form-invalid td:after { content: "\f534"; content: "\f534" / ''; font: normal 20px/1 dashicons; color: #d63638; margin-right: -25px; vertical-align: middle; } /* Adjust error indicator for password layout */ .form-table .form-required.user-pass1-wrap.form-invalid td:after { content: ""; } .form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { content: "\f534"; content: "\f534" / ''; font: normal 20px/1 dashicons; color: #d63638; margin: 0 -29px 0 6px; vertical-align: middle; } .form-input-tip { color: #646970; } input:disabled, input.disabled, select:disabled, select.disabled, textarea:disabled, textarea.disabled { background: #f0f0f0; border-color: #cccccc; box-shadow: none; color: #949494; } input[type="file"]:disabled, input[type="file"].disabled, input[type="file"][aria-disabled="true"], input[type="range"]:disabled, input[type="range"].disabled, input[type="range"][aria-disabled="true"] { background: none; box-shadow: none; cursor: default; } input[type="checkbox"]:disabled, input[type="checkbox"].disabled, input[type="checkbox"][aria-disabled="true"], input[type="radio"]:disabled, input[type="radio"].disabled, input[type="radio"][aria-disabled="true"], input[type="checkbox"]:disabled:checked:before, input[type="checkbox"].disabled:checked:before, input[type="radio"]:disabled:checked:before, input[type="radio"].disabled:checked:before { opacity: 0.7; cursor: default; } /*------------------------------------------------------------------------------ 2.0 - Forms ------------------------------------------------------------------------------*/ /* Select styles are based on the default button in buttons.css */ .wp-core-ui select { font-size: 14px; line-height: 2.71428571; /* 38px for 40px min-height */ color: #1e1e1e; border-color: #949494; box-shadow: none; border-radius: 2px; padding: 0 12px 0 24px; min-height: 40px; max-width: 25rem; -webkit-appearance: none; /* The SVG is arrow-down-alt2 from Dashicons. */ background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%231e1e1e%22%2F%3E%3C%2Fsvg%3E') no-repeat left 8px top 55%; background-size: 16px 16px; cursor: pointer; vertical-align: middle; } .wp-core-ui select:hover { color: #1e1e1e; border-color: #1e1e1e; } .wp-core-ui select:focus { border-color: var(--wp-admin-theme-color); color: #1e1e1e; box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color); } .wp-core-ui select:active { border-color: #949494; box-shadow: none; } .wp-core-ui select.disabled, .wp-core-ui select:disabled { color: #a7aaad; border-color: #dcdcde; background-color: #f6f7f7; /* The SVG is arrow-down-alt2 from Dashicons. */ background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23a0a5aa%22%2F%3E%3C%2Fsvg%3E'); box-shadow: none; text-shadow: 0 1px 0 #fff; cursor: default; transform: none; } .wp-core-ui select[aria-disabled="true"] { cursor: default; } /* Reset Firefox inner outline that appears on :focus. */ /* This ruleset overrides the color change on :focus thus needs to be after select:focus. */ .wp-core-ui select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #0a4b78; } /* Remove background focus style from IE11 while keeping focus style available on option elements. */ .wp-core-ui select::-ms-value { background: transparent; color: #50575e; } .wp-core-ui select:hover::-ms-value { color: #1e1e1e; } .wp-core-ui select:focus::-ms-value { color: #0a4b78; } .wp-core-ui select.disabled::-ms-value, .wp-core-ui select:disabled::-ms-value { color: #a7aaad; } /* Hide the native down arrow for select element on IE. */ .wp-core-ui select::-ms-expand { display: none; } .wp-admin .button-cancel { display: inline-block; min-height: 28px; padding: 0 5px; line-height: 2; } .meta-box-sortables select { max-width: 100%; } .meta-box-sortables input { vertical-align: middle; } .misc-pub-post-status select { margin-top: 0; } .wp-core-ui select[multiple] { height: auto; padding-left: 8px; background: #fff; } .submit { padding: 1.5em 0; margin: 5px 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; border: none; } form p.submit a.cancel:hover { text-decoration: none; } p.submit { text-align: right; max-width: 100%; margin-top: 20px; padding-top: 10px; } .textright p.submit { border: none; text-align: left; } table.form-table + p.submit, table.form-table + input + p.submit, table.form-table + input + input + p.submit { border-top: none; padding-top: 0; } #minor-publishing-actions input, #major-publishing-actions input, #minor-publishing-actions .preview { text-align: center; } textarea.all-options, input.all-options { width: 250px; } input.large-text, textarea.large-text { width: 99%; } .regular-text { width: 25em; } input.small-text { width: 50px; padding: 0 8px; } label input.small-text { margin-top: -4px; } input[type="number"].small-text { width: 65px; padding-left: 4px; } input.tiny-text { width: 35px; } input[type="number"].tiny-text { width: 45px; padding-left: 0; } #doaction, #doaction2, #post-query-submit { margin: 0 0 0 8px; min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } /* @since 5.7.0 secondary bulk action controls require JS. */ .no-js label[for="bulk-action-selector-bottom"], .no-js select#bulk-action-selector-bottom, .no-js input#doaction2, .no-js label[for="new_role2"], .no-js select#new_role2, .no-js input#changeit2 { display: none; } .wp-core-ui .tablenav input[type="text"], .wp-core-ui .tablenav input[type="password"], .wp-core-ui .tablenav input[type="date"], .wp-core-ui .tablenav input[type="datetime"], .wp-core-ui .tablenav input[type="datetime-local"], .wp-core-ui .tablenav input[type="email"], .wp-core-ui .tablenav input[type="month"], .wp-core-ui .tablenav input[type="number"], .wp-core-ui .tablenav input[type="search"], .wp-core-ui .tablenav input[type="tel"], .wp-core-ui .tablenav input[type="time"], .wp-core-ui .tablenav input[type="url"], .wp-core-ui .tablenav input[type="week"], .wp-core-ui .tablenav select { padding: 0 12px; /* inherits font size 14px */ line-height: 2.14285714; /* 30px for 32px height with 14px font */ min-height: 32px; } .wp-core-ui .tablenav select { float: right; margin-left: 6px; max-width: 12.5rem; padding: 0 8px 0 24px; } .wp-core-ui .tablenav .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } #timezone_string option { margin-right: 1em; } .wp-core-ui .button.wp-hide-pw > .dashicons, .wp-core-ui .button.wp-cancel-pw > .dashicons { width: 1.25rem; height: 1.25rem; font-size: 20px; line-height: 1; vertical-align: middle; } .button.wp-hide-pw.user-new-password-toggle { display: inline-flex; align-items: center; column-gap: 4px; } .wp-cancel-pw .dashicons-no { display: none; } label, #your-profile label + a { vertical-align: middle; } fieldset label, #your-profile label + a { vertical-align: middle; } .options-media-php [for*="_size_"] { min-width: 10em; vertical-align: baseline; } .options-media-php .small-text[name*="_size_"] { margin: 0 0 1em; } .wp-generate-pw { margin-top: 1em; position: relative; } .wp-pwd button { height: min-content; } .wp-pwd { margin-top: 1em; position: relative; } .mailserver-pass-wrap .wp-pwd { display: inline-block; margin-top: 0; } /* rtl:ignore */ #mailserver_pass { padding-right: 2.5rem; } /* rtl:ignore */ .mailserver-pass-wrap .button.wp-hide-pw { background: transparent; border: 1px solid transparent; box-shadow: none; font-size: 14px; line-height: 2; width: 2.5rem; min-width: 40px; margin: 0; padding: 0 9px; position: absolute; right: 0; top: 0; } .mailserver-pass-wrap .button.wp-hide-pw:hover { background: transparent; border-color: transparent; } .mailserver-pass-wrap .button.wp-hide-pw:focus { background: transparent; border-color: var(--wp-admin-theme-color); border-radius: 2px; box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .mailserver-pass-wrap .button.wp-hide-pw:active { background: transparent; box-shadow: none; transform: none; } #misc-publishing-actions label { vertical-align: baseline; } #pass-strength-result { background-color: #f0f0f0; border: 1px solid #cccccc; border-radius: 2px; color: #1e1e1e; margin: -1px 1px 5px; padding: 3px 5px; text-align: center; width: 25em; box-sizing: border-box; opacity: 0; } #pass-strength-result.short { background-color: #ffabaf; border-color: #e65054; opacity: 1; } #pass-strength-result.bad { background-color: #facfd2; border-color: #f86368; opacity: 1; } #pass-strength-result.good { background-color: #f5e6ab; border-color: #f0c33c; opacity: 1; } #pass-strength-result.strong { background-color: #b8e6bf; border-color: #68de7c; opacity: 1; } .password-input-wrapper { display: inline-block; } .password-input-wrapper input { font-family: Consolas, Monaco, monospace; } #pass1.short, #pass1-text.short { border-color: #e65054; } #pass1.bad, #pass1-text.bad { border-color: #f86368; } #pass1.good, #pass1-text.good { border-color: #f0c33c; } #pass1.strong, #pass1-text.strong { border-color: #68de7c; } #pass1:focus, #pass1-text:focus { box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color); /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } .pw-weak { display: none; } .indicator-hint { padding-top: 8px; } .wp-pwd [type="text"], .wp-pwd [type="password"] { margin-bottom: 0; /* Same height as the buttons */ min-height: 40px; } /* Hide the Edge "reveal password" native button */ .wp-pwd input::-ms-reveal { display: none; } #pass1-text, .show-password #pass1 { display: none; } #pass1-text::-ms-clear { display: none; } .show-password #pass1-text { display: inline-block; } /* Caps lock warning */ .wp-pwd .caps-warning { display: none; position: relative; background: #fcf9e8; border: 1px solid #f0c33c; color: #1d2327; padding: 6px 10px; top: -8px; } .profile-php .wp-pwd .caps-warning { padding: 3px 5px; top: -4px; border-radius: 2px; } .wp-pwd .caps-icon { display: inline-flex; justify-content: center; width: 20px; height: 20px; margin-left: 5px; vertical-align: middle; } .wp-pwd .caps-warning-text { vertical-align: middle; } /* Caps lock warning */ p.search-box { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; position: relative; float: left; margin: 11px 0; } p.search-box input[type="search"], p.search-box input[type="text"] { min-height: 32px; padding: 0 8px; } p.search-box .button { min-height: 32px; line-height: 2.30769231; /* 30px for 32px height with 13px font */ padding: 0 12px; } .network-admin.themes-php p.search-box { clear: right; } .tablenav .search-plugins input[name="s"] { float: right; margin: 0 0 0 4px; } .tagsdiv .newtag { margin: 0; } .js.plugins-php .search-box .wp-filter-search { margin: 0; width: 280px; } input[type="text"].ui-autocomplete-loading, input[type="email"].ui-autocomplete-loading { background-image: url(../images/loading.gif); background-repeat: no-repeat; background-position: left 5px center; visibility: visible; } input.ui-autocomplete-input.open { border-bottom-color: transparent; } ul#add-to-blog-users { margin: 0 14px 0 0; } .ui-autocomplete { padding: 0; margin: 0; list-style: none; position: absolute; z-index: 10000; border: 1px solid #4f94d4; box-shadow: 0 1px 2px rgba(79, 148, 212, 0.8); background-color: #fff; } .ui-autocomplete li { margin-bottom: 0; padding: 4px 10px; white-space: nowrap; text-align: right; cursor: pointer; } /* Colors for the wplink toolbar autocomplete. */ .ui-autocomplete .ui-state-focus { background-color: #dcdcde; } /* Colors for the tags autocomplete. */ .wp-tags-autocomplete .ui-state-focus, .wp-tags-autocomplete [aria-selected="true"] { background-color: var(--wp-admin-theme-color); color: #fff; /* Only visible in Windows High Contrast mode */ outline: 2px solid transparent; } /*------------------------------------------------------------------------------ 15.0 - Comments Screen ------------------------------------------------------------------------------*/ .form-table { border-collapse: collapse; margin-top: 0.5em; width: 100%; clear: both; } .form-table, .form-table td, .form-table th, .form-table td p { font-size: 14px; } .form-table td { margin-bottom: 9px; padding: 15px 10px; line-height: 1.3; vertical-align: middle; } .form-table th, .form-wrap label { color: #1d2327; font-weight: 400; text-shadow: none; vertical-align: baseline; } .form-table th { vertical-align: top; text-align: right; padding: 20px 0 20px 10px; width: 200px; line-height: 1.3; font-weight: 600; } .form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */ .form-table .td-full { width: auto; padding: 20px 0 20px 10px; font-weight: 400; } .form-table td p { margin-top: 4px; margin-bottom: 0; } .form-table .date-time-doc { margin-top: 1em; } .form-table p.timezone-info { margin: 1em 0; display: flex; flex-direction: column; } #local-time { margin-top: 0.5em; } .form-table td fieldset label { margin: 0.35em 0 0.5em !important; display: inline-block; } .form-table td fieldset p label { margin-top: 0 !important; } .form-table td fieldset label, .form-table td fieldset p, .form-table td fieldset li { line-height: 1.4; } .form-table .pre { padding: 8px; margin: 0; } table.form-table td .updated { font-size: 13px; } table.form-table td .updated p { font-size: 13px; margin: 0.3em 0; } /*------------------------------------------------------------------------------ 18.0 - Users ------------------------------------------------------------------------------*/ #profile-page .form-table textarea { width: 500px; margin-bottom: 6px; } #profile-page .form-table #rich_editing { margin-left: 5px } #your-profile legend { font-size: 22px; } #display_name { width: 15em; } #adduser .form-field input, #createuser .form-field input { width: 25em; } .color-option { display: inline-block; width: 24%; padding: 5px 15px 15px; box-sizing: border-box; margin-bottom: 3px; } .color-option:hover, .color-option.selected { background: #dcdcde; } .color-palette { display: table; width: 100%; border-spacing: 0; border-collapse: collapse; } .color-palette .color-palette-shade, .color-palette td { display: table-cell; height: 20px; padding: 0; border: none; } .color-option { cursor: pointer; } .create-application-password .form-field { max-width: 25em; } .create-application-password label { font-weight: 600; } .create-application-password p.submit { margin-bottom: 0; padding-bottom: 0; display: block; } #application-passwords-section .notice { margin-top: 20px; margin-bottom: 0; word-wrap: break-word; } .application-password-display input.code { margin-bottom: 6px; width: 100%; max-width: 20em; } .auth-app-card.card { max-width: 768px; } .authorize-application-php .form-wrap p { display: block; } /*------------------------------------------------------------------------------ 19.0 - Tools ------------------------------------------------------------------------------*/ .tool-box .title { margin: 8px 0; font-size: 18px; font-weight: 400; line-height: 24px; } .label-responsive { vertical-align: middle; } #export-filters p { margin: 0 0 1em; } #export-filters p.submit { margin: 7px 0 5px; } /* Card styles */ .card { position: relative; margin-top: 20px; padding: 16px 24px; min-width: 255px; max-width: 520px; border: 1px solid rgb(0, 0, 0, 0.1); border-radius: 8px; background: #ffffff; box-sizing: border-box; } /* Press this styles */ .pressthis h4 { margin: 2em 0 1em; } .pressthis textarea { width: 100%; font-size: 1em; } #pressthis-code-wrap { overflow: auto; } .pressthis-bookmarklet-wrapper { margin: 20px 0 8px; vertical-align: top; position: relative; z-index: 1; } .pressthis-bookmarklet, .pressthis-bookmarklet:hover, .pressthis-bookmarklet:focus, .pressthis-bookmarklet:active { display: inline-block; position: relative; cursor: move; color: #2c3338; background: #dcdcde; border-radius: 5px; border: 1px solid #c3c4c7; font-style: normal; line-height: 16px; font-size: 14px; text-decoration: none; } .pressthis-bookmarklet:active { outline: none; } .pressthis-bookmarklet:after { content: ""; width: 70%; height: 55%; z-index: -1; position: absolute; left: 10px; bottom: 9px; background: transparent; transform: skew(-20deg) rotate(-6deg); box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6); } .pressthis-bookmarklet:hover:after { transform: skew(-20deg) rotate(-9deg); box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7); } .pressthis-bookmarklet span { display: inline-block; margin: 0; padding: 0 9px 8px 12px; } .pressthis-bookmarklet span:before { color: #787c82; font: normal 20px/1 dashicons; content: "\f157"; content: "\f157" / ''; position: relative; display: inline-block; top: 4px; margin-left: 4px; } .pressthis-js-toggle { margin-right: 10px; padding: 0; height: auto; vertical-align: top; } /* to override the button class being applied */ .pressthis-js-toggle.button.button { margin-right: 10px; padding: 0; height: auto; vertical-align: top; } .pressthis-js-toggle .dashicons { margin: 5px 7px 6px 8px; color: #50575e; } /*------------------------------------------------------------------------------ 20.0 - Settings ------------------------------------------------------------------------------*/ .timezone-info code { white-space: nowrap; } .defaultavatarpicker .avatar { margin: 2px 0; vertical-align: middle; } .options-general-php .date-time-text { display: inline-block; min-width: 10em; } .options-general-php input.small-text { width: 56px; margin: -2px 0; min-height: 32px; } .options-general-php .spinner { float: none; margin: -3px 3px 0; } .settings-php .language-install-spinner, .options-general-php .language-install-spinner, .user-edit-php .language-install-spinner, .profile-php .language-install-spinner { display: inline-block; float: none; margin: -3px 5px 0; vertical-align: middle; } .form-table.permalink-structure .available-structure-tags { margin-top: 8px; } .form-table.permalink-structure .available-structure-tags ul { display: flex; flex-wrap: wrap; margin: 8px 0 0; } .form-table.permalink-structure .available-structure-tags li { margin: 6px 0 0 5px; } .form-table.permalink-structure .available-structure-tags li:last-child { margin-left: 0; } .form-table.permalink-structure .structure-selection .row { margin-bottom: 16px; } .form-table.permalink-structure .structure-selection .row > div { max-width: calc(100% - 24px); display: inline-flex; flex-direction: column; } .form-table.permalink-structure .structure-selection .row label { font-weight: 600; } .form-table.permalink-structure .structure-selection .row p { margin-top: 0; } .permalink-structure-optional-description code { display: inline-block; } /*------------------------------------------------------------------------------ 21.0 - Network Admin ------------------------------------------------------------------------------*/ .setup-php textarea { max-width: 100%; } .form-field #site-address { max-width: 25em; } .form-field #domain { max-width: 22em; } .form-field #site-title, .form-field #admin-email, .form-field #path, .form-field #blog_registered, .form-field #blog_last_updated { max-width: 25em; } .form-field #path { margin-bottom: 5px; } #search-users, #search-sites { max-width: 60%; } .configuration-rules-label { font-weight: 600; margin-bottom: 4px; } /*------------------------------------------------------------------------------ Credentials check dialog for Install and Updates ------------------------------------------------------------------------------*/ .request-filesystem-credentials-dialog { display: none; /* The customizer uses visibility: hidden on the body for full-overlays. */ visibility: visible; } .request-filesystem-credentials-dialog .notification-dialog { top: 10%; max-height: 85%; } .request-filesystem-credentials-dialog-content { margin: 25px; } #request-filesystem-credentials-title { font-size: 1.3em; margin: 1em 0; } .request-filesystem-credentials-form legend { font-size: 1em; padding: 1.33em 0; font-weight: 600; } .request-filesystem-credentials-form input[type="text"], .request-filesystem-credentials-form input[type="password"] { display: block; } .request-filesystem-credentials-dialog input[type="text"], .request-filesystem-credentials-dialog input[type="password"] { width: 100%; } .request-filesystem-credentials-form .field-title { font-weight: 600; } .request-filesystem-credentials-dialog label[for="hostname"], .request-filesystem-credentials-dialog label[for="public_key"], .request-filesystem-credentials-dialog label[for="private_key"] { display: block; margin-bottom: 1em; } .request-filesystem-credentials-dialog .ftp-username, .request-filesystem-credentials-dialog .ftp-password { float: right; width: 48%; } .request-filesystem-credentials-dialog .ftp-password { margin-right: 4%; } .request-filesystem-credentials-dialog .request-filesystem-credentials-action-buttons { text-align: left; } .request-filesystem-credentials-dialog label[for="ftp"] { margin-left: 10px; } .request-filesystem-credentials-dialog #auth-keys-desc { margin-bottom: 0; } #request-filesystem-credentials-dialog .button:not(:last-child) { margin-left: 10px; } #request-filesystem-credentials-form .cancel-button { display: none; } #request-filesystem-credentials-dialog .cancel-button { display: inline; } .request-filesystem-credentials-dialog .ftp-username, .request-filesystem-credentials-dialog .ftp-password { float: none; width: auto; } .request-filesystem-credentials-dialog .ftp-username { margin-bottom: 1em; } .request-filesystem-credentials-dialog .ftp-password { margin: 0; } .request-filesystem-credentials-dialog .ftp-password em { color: #757575; } .request-filesystem-credentials-dialog label { display: block; line-height: 1.5; margin-bottom: 1em; } .request-filesystem-credentials-form legend { padding-bottom: 0; } .request-filesystem-credentials-form #ssh-keys legend { font-size: 1.3em; } .request-filesystem-credentials-form .notice { margin: 0 0 20px; clear: both; } /*------------------------------------------------------------------------------ Privacy Policy settings screen ------------------------------------------------------------------------------*/ .tools-privacy-policy-page form { margin-bottom: 1.3em; } .tools-privacy-policy-page input.button { margin: 0 6px 0 1px; } .tools-privacy-policy-page select { margin: 0 6px 0.5em 1px; } .tools-privacy-edit { margin: 1.5em 0; } .tools-privacy-policy-page span { line-height: 2; } .privacy_requests .column-email { width: 40%; } .privacy_requests .column-type { text-align: center; } .privacy_requests thead td:first-child, .privacy_requests tfoot td:first-child { border-right: 4px solid #fff; } .privacy_requests tbody th { border-right: 4px solid #fff; background: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .privacy_requests .row-actions { color: #787c82; } .privacy_requests .row-actions.processing { position: static; } .privacy_requests tbody .has-request-results th { box-shadow: none; } .privacy_requests tbody .request-results th .notice { margin: 0 0 5px; } .privacy_requests tbody td { background: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .privacy_requests tbody .has-request-results td { box-shadow: none; } .privacy_requests .next_steps .button { word-wrap: break-word; white-space: normal; } .privacy_requests .status-request-confirmed th, .privacy_requests .status-request-confirmed td { background-color: #fff; border-right-color: #72aee6; } .privacy_requests .status-request-failed th, .privacy_requests .status-request-failed td { background-color: #f6f7f7; border-right-color: #d63638; } .privacy_requests .export_personal_data_failed a { vertical-align: baseline; } .status-label { font-weight: 600; } .status-label.status-request-pending { font-weight: 400; font-style: italic; color: #646970; } .status-label.status-request-failed { color: #d63638; font-weight: 600; } .privacy_requests .status-date { display: block; font-weight: 400; } .wp-privacy-request-form { clear: both; } .wp-privacy-request-form-field { margin: 1.5em 0; } .wp-privacy-request-form input { margin: 0; } /* =Media Queries -------------------------------------------------------------- */ @media screen and (max-width: 782px) { /* Input Elements */ textarea { -webkit-appearance: none; } input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] { -webkit-appearance: none; padding: 0 12px; min-height: 40px; } ::-webkit-datetime-edit { line-height: 1.875; /* 30px */ } input[type="checkbox"], .widefat th input[type="checkbox"], .widefat thead td input[type="checkbox"], .widefat tfoot td input[type="checkbox"] { -webkit-appearance: none; } .widefat th input[type="checkbox"], .widefat thead td input[type="checkbox"], .widefat tfoot td input[type="checkbox"] { margin-bottom: 8px; } input[type="checkbox"]:checked:before, .widefat th input[type="checkbox"]:before, .widefat thead td input[type="checkbox"]:before, .widefat tfoot td input[type="checkbox"]:before { width: 1.875rem; height: 1.875rem; margin: -0.1875rem -0.3125rem; } input[type="radio"], input[type="checkbox"] { height: 1.5625rem; width: 1.5625rem; } .wp-admin p input[type="checkbox"], .wp-admin p input[type="radio"] { margin-top: -0.1875rem; } input[type="radio"]:checked:before { vertical-align: middle; width: 0.5625rem; height: 0.5625rem; margin: 0.4375rem; line-height: 0.76190476; } .wp-core-ui select, .wp-admin .form-table select { min-height: 40px; font-size: 16px; line-height: 2.5; /* 40px for 16px font */ padding: 0 12px 0 24px; } .wp-admin .button-cancel { margin-bottom: 0; padding: 2px 0; font-size: 14px; vertical-align: middle; } #adduser .form-field input, #createuser .form-field input { width: 100%; } .form-table { box-sizing: border-box; } .form-table th, .form-table td, .label-responsive { display: block; width: auto; vertical-align: middle; } .label-responsive { margin: 0.5em 0; } .export-filters li { margin-bottom: 0; } .form-table .color-palette .color-palette-shade, .form-table .color-palette td { display: table-cell; width: 15px; height: 30px; padding: 0; } .form-table .color-palette { margin-left: 10px; } textarea, input { font-size: 16px; } .form-table td input[type="text"], .form-table td input[type="email"], .form-table td input[type="password"], .form-table td select, .form-table td textarea, .form-table span.description, #profile-page .form-table textarea { width: 100%; display: block; max-width: none; box-sizing: border-box; } .form-table .form-required.form-invalid td:after { float: left; margin: -30px 0 0 3px; } input[type="text"].small-text, input[type="search"].small-text, input[type="password"].small-text, input[type="number"].small-text, input[type="number"].small-text, .form-table input[type="text"].small-text { width: auto; max-width: 4.375em; /* 70px, enough for 4 digits to fit comfortably */ display: inline; padding: 3px 6px; margin: 0 3px; } .form-table .regular-text ~ input[type="text"].small-text { margin-top: 5px; } #pass-strength-result { width: 100%; box-sizing: border-box; padding: 8px; } .profile-php .wp-pwd .caps-warning { padding: 8px; } .password-input-wrapper { display: block; } p.search-box { float: none; width: 100%; margin-bottom: 20px; display: flex; } p.search-box input[name="s"] { width: 100%; float: none; margin-bottom: 10px; vertical-align: middle; } .js.plugins-php .search-box .wp-filter-search { width: 100%; margin-bottom: 0; } p.search-box input[type="submit"] { margin-bottom: 10px; } .form-table span.description { display: inline; padding: 4px 0 0; line-height: 1.4; font-size: 14px; } .form-table th { padding: 10px 0 0; border-bottom: 0; } .form-table td { margin-bottom: 0; padding: 4px 0 6px; } .form-table.permalink-structure td code { display: inline-block; } .form-table.permalink-structure .structure-selection { margin-top: 8px; } .form-table.permalink-structure .structure-selection .row > div { max-width: calc(100% - 36px); width: 100%; } .form-table.permalink-structure td input[type="text"] { margin-top: 4px; } .permalink-structure-has-blog-prefix { display: flex; align-items: center; } .form-table input.regular-text { width: 100%; } .form-table label { font-size: 14px; } .form-table td > label:first-child { display: inline-block; margin-top: 0.35em; } .background-position-control .button-group > label { font-size: 0; } .form-table fieldset label { display: block; } .form-field #domain { max-width: none; } /* New Password */ .wp-pwd { position: relative; } /* Needs higher specificity than normal input type text and password. */ #profile-page .form-table #pass1 { padding-left: 90px; } .wp-pwd button.button { background: transparent; border: 1px solid transparent; box-shadow: none; line-height: 2; margin: 0; padding: 5px 9px; position: absolute; left: 0; top: 0; width: 2.375rem; height: 2.375rem; min-width: 40px; min-height: 40px; } .wp-pwd button.wp-hide-pw { left: 2.5rem; } body.user-new-php .wp-pwd button.wp-hide-pw { left: 0; } .wp-pwd button.button:hover, .wp-pwd button.button:focus { background: transparent; } .wp-pwd button.button:active { background: transparent; box-shadow: none; transform: none; } .wp-pwd .button .text { display: none; } .wp-pwd [type="text"], .wp-pwd [type="password"] { line-height: 2; padding-left: 5rem; } body.user-new-php .wp-pwd [type="text"], body.user-new-php .wp-pwd [type="password"] { padding-left: 2.5rem; } .wp-cancel-pw .dashicons-no { display: inline-block; } .mailserver-pass-wrap .wp-pwd { display: block; } /* rtl:ignore */ #mailserver_pass { padding-left: 10px; } .options-general-php input[type="text"].small-text { max-width: 6.25em; margin: 0; } /* Privacy Policy settings screen */ .tools-privacy-policy-page form.wp-create-privacy-page { margin-bottom: 1em; } .tools-privacy-policy-page input#set-page, .tools-privacy-policy-page select { margin: 10px 0 0; } .tools-privacy-policy-page .wp-create-privacy-page span { display: block; margin-bottom: 1em; } .tools-privacy-policy-page .wp-create-privacy-page .button { margin-right: 0; } .wp-list-table.privacy_requests tr:not(.inline-edit-row):not(.no-items) td.column-primary:not(.check-column) { display: table-cell; } .wp-list-table.privacy_requests.widefat th input, .wp-list-table.privacy_requests.widefat thead td input { margin-right: 5px; } .wp-privacy-request-form-field input[type="text"] { width: 100%; margin-bottom: 10px; vertical-align: middle; } .regular-text { max-width: 100%; } } @media only screen and (max-width: 768px) { .form-field input[type="text"], .form-field input[type="email"], .form-field input[type="password"], .form-field select, .form-field textarea { width: 99%; } .form-wrap .form-field { padding: 0; } } @media only screen and (max-height: 480px), screen and (max-width: 450px) { /* Request Credentials / File Editor Warning */ .request-filesystem-credentials-dialog .notification-dialog, .file-editor-warning .notification-dialog { width: 100%; height: 100%; max-height: 100%; position: fixed; top: 0; margin: 0; right: 0; } } /* Smartphone */ @media screen and (max-width: 600px) { /* Color Picker Options */ .color-option { width: 49%; } } @media only screen and (max-width: 320px) { .options-general-php .date-time-text.date-time-custom-text { min-width: 0; margin-left: 0.5em; } } @keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(-359deg); } } css/wp-admin-rtl.css000064400000000752152213653150010370 0ustar00/*! This file is auto-generated */ @import url(common-rtl.css); @import url(forms-rtl.css); @import url(admin-menu-rtl.css); @import url(dashboard-rtl.css); @import url(list-tables-rtl.css); @import url(edit-rtl.css); @import url(revisions-rtl.css); @import url(media-rtl.css); @import url(themes-rtl.css); @import url(about-rtl.css); @import url(nav-menus-rtl.css); @import url(widgets-rtl.css); @import url(site-icon-rtl.css); @import url(l10n-rtl.css); @import url(site-health-rtl.css); css/customize-widgets-rtl.min.css000064400000024220152213653150013120 0ustar00/*! This file is auto-generated */ .wp-full-overlay-sidebar{overflow:visible}.control-section.control-section-sidebar,.customize-control-sidebar_widgets .hide-if-js,.customize-control-sidebar_widgets label{display:none}.control-section.control-section-sidebar .accordion-section-content.ui-sortable{overflow:visible}.customize-control-widget_form .widget-top{background:#fff;transition:opacity .5s}.customize-control .widget-action{color:#787c82}.customize-control .widget-action:focus,.customize-control .widget-top:hover .widget-action{color:#1d2327}.customize-control-widget_form:not(.widget-rendered) .widget-top{opacity:.5}.customize-control-widget_form .widget-control-save{display:none}.customize-control-widget_form .spinner{visibility:hidden;margin-top:0}.customize-control-widget_form.previewer-loading .spinner{visibility:visible}.customize-control-widget_form.widget-form-disabled .widget-content{opacity:.7;pointer-events:none;-webkit-user-select:none;user-select:none}.customize-control-widget_form .widget{margin-bottom:0}.customize-control-widget_form.wide-widget-control .widget-inside{position:fixed;right:299px;top:25%;border:1px solid #dcdcde;overflow:auto}.customize-control-widget_form.wide-widget-control .widget-inside>.form{padding:20px}.customize-control-widget_form.wide-widget-control .widget-top{transition:background-color .4s}.customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top,.customize-control-widget_form.wide-widget-control.expanding .widget-top{background-color:#dcdcde}.widget-inside{padding:1px 10px 10px;border-top:none;line-height:1.23076923}.customize-control-widget_form.expanded .widget-action .toggle-indicator:before{content:"\f142"}.customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before{content:"\f141"}.customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before{content:"\f139"}.widget-title-action{cursor:pointer}.customize-control-widget_form .widget .customize-control-title,.widget-top{cursor:move}.control-section.accordion-section.highlighted>.accordion-section-title,.customize-control-widget_form.highlighted{outline:0;box-shadow:0 0 2px rgba(79,148,212,.8);position:relative;z-index:1}#widget-customizer-control-templates{display:none}#customize-theme-controls .widget-reorder-nav{display:none;float:left;background-color:#f6f7f7}.move-widget:before{content:"\f504";content:"\f504"/''}#customize-theme-controls .move-widget-area{display:none;background:#fff;border:1px solid #c3c4c7;border-top:none;cursor:auto}#customize-theme-controls .reordering .move-widget-area.active{display:block}#customize-theme-controls .move-widget-area .description{margin:0;padding:15px 20px;font-weight:400}#customize-theme-controls .widget-area-select{margin:0;padding:0;list-style:none}#customize-theme-controls .widget-area-select li{position:relative;margin:0;padding:13px 42px 15px 15px;color:#50575e;border-top:1px solid #c3c4c7;cursor:pointer;-webkit-user-select:none;user-select:none}#customize-theme-controls .widget-area-select li:before{display:none;content:"\f147";content:"\f147"/'';position:absolute;top:12px;right:10px;font:normal 20px/1 dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#customize-theme-controls .widget-area-select li:last-child{border-bottom:1px solid #c3c4c7}#customize-theme-controls .widget-area-select .selected{color:#fff;background:var(--wp-admin-theme-color)}#customize-theme-controls .widget-area-select .selected:before{display:block}#customize-theme-controls .move-widget-actions{text-align:left;padding:12px}#customize-theme-controls .reordering .widget-title-action{display:none}#customize-theme-controls .reordering .widget-reorder-nav{display:block}.wp-customizer div.mce-inline-toolbar-grp,.wp-customizer div.mce-tooltip{z-index:500100!important}.wp-customizer .ui-autocomplete.wplink-autocomplete{z-index:500110}.wp-customizer #wp-link-backdrop{z-index:500100}.wp-customizer #wp-link-wrap{z-index:500105}#widgets-left #available-widgets .widget{float:none!important;width:auto!important}#available-widgets .widget-action{display:none}.ios #available-widgets{transition:right 0s}#available-widgets .widget-tpl.selected,#available-widgets .widget-tpl:hover{background:#f6f7f7;border-bottom-color:#c3c4c7;color:var(--wp-admin-theme-color);border-right:4px solid var(--wp-admin-theme-color)}#customize-controls .widget-title h3{font-size:1em}#available-widgets .widget-title h3{padding:0 0 5px;font-size:14px}#available-widgets .widget .widget-description{padding:0;color:#646970}@media (prefers-reduced-motion:no-preference){#customize-preview{transition:all .2s}}body.adding-widget #available-widgets{right:0;visibility:visible}body.adding-widget .wp-full-overlay-main{right:300px}body.adding-widget #customize-preview{opacity:.4}#available-widgets .widget-title{position:relative}#available-widgets .widget-title:before{content:"\f132";content:"\f132"/'';position:absolute;top:-3px;left:100%;margin-left:20px;width:20px;height:20px;color:#2c3338;font:normal 20px/1 dashicons;text-align:center;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#available-widgets [class*=easy] .widget-title:before{content:"\f328";content:"\f328"/'';top:-4px}#available-widgets [class*=like] .widget-title:before,#available-widgets [class*=super] .widget-title:before{content:"\f155";content:"\f155"/'';top:-4px}#available-widgets [class*=meta] .widget-title:before{content:"\f120";content:"\f120"/''}#available-widgets [class*=archives] .widget-title:before{content:"\f480";content:"\f480"/'';top:-4px}#available-widgets [class*=categor] .widget-title:before{content:"\f318";content:"\f318"/'';top:-4px}#available-widgets [class*=chat] .widget-title:before,#available-widgets [class*=comment] .widget-title:before,#available-widgets [class*=testimonial] .widget-title:before{content:"\f101";content:"\f101"/''}#available-widgets [class*=post] .widget-title:before{content:"\f109";content:"\f109"/''}#available-widgets [class*=page] .widget-title:before{content:"\f105";content:"\f105"/''}#available-widgets [class*=text] .widget-title:before{content:"\f478";content:"\f478"/''}#available-widgets [class*=link] .widget-title:before{content:"\f103";content:"\f103"/''}#available-widgets [class*=search] .widget-title:before{content:"\f179";content:"\f179"/''}#available-widgets [class*=menu] .widget-title:before,#available-widgets [class*=nav] .widget-title:before{content:"\f333";content:"\f333"/''}#available-widgets [class*=tag] .widget-title:before{content:"\f479";content:"\f479"/''}#available-widgets [class*=rss] .widget-title:before{content:"\f303";content:"\f303"/'';top:-6px}#available-widgets [class*=calendar] .widget-title:before,#available-widgets [class*=event] .widget-title:before{content:"\f145";content:"\f145"/'';top:-4px}#available-widgets [class*=image] .widget-title:before,#available-widgets [class*=instagram] .widget-title:before,#available-widgets [class*=photo] .widget-title:before,#available-widgets [class*=slide] .widget-title:before{content:"\f128";content:"\f128"/''}#available-widgets [class*=album] .widget-title:before,#available-widgets [class*=galler] .widget-title:before{content:"\f161";content:"\f161"/''}#available-widgets [class*=tube] .widget-title:before,#available-widgets [class*=video] .widget-title:before{content:"\f126";content:"\f126"/''}#available-widgets [class*=audio] .widget-title:before,#available-widgets [class*=music] .widget-title:before,#available-widgets [class*=radio] .widget-title:before{content:"\f127";content:"\f127"/''}#available-widgets [class*=avatar] .widget-title:before,#available-widgets [class*=grofile] .widget-title:before,#available-widgets [class*=login] .widget-title:before,#available-widgets [class*=member] .widget-title:before,#available-widgets [class*=profile] .widget-title:before,#available-widgets [class*=subscriber] .widget-title:before,#available-widgets [class*=user] .widget-title:before{content:"\f110";content:"\f110"/''}#available-widgets [class*=cart] .widget-title:before,#available-widgets [class*=commerce] .widget-title:before,#available-widgets [class*=shop] .widget-title:before{content:"\f174";content:"\f174"/'';top:-4px}#available-widgets [class*=firewall] .widget-title:before,#available-widgets [class*=secur] .widget-title:before{content:"\f332";content:"\f332"/''}#available-widgets [class*=analytic] .widget-title:before,#available-widgets [class*=poll] .widget-title:before,#available-widgets [class*=stat] .widget-title:before{content:"\f185";content:"\f185"/''}#available-widgets [class*=form] .widget-title:before{content:"\f175";content:"\f175"/''}#available-widgets [class*=contact] .widget-title:before,#available-widgets [class*=mail] .widget-title:before,#available-widgets [class*=news] .widget-title:before,#available-widgets [class*=subscribe] .widget-title:before{content:"\f466";content:"\f466"/''}#available-widgets [class*=share] .widget-title:before,#available-widgets [class*=socia] .widget-title:before{content:"\f237";content:"\f237"/''}#available-widgets [class*=lang] .widget-title:before,#available-widgets [class*=translat] .widget-title:before{content:"\f326";content:"\f326"/''}#available-widgets [class*=locat] .widget-title:before,#available-widgets [class*=map] .widget-title:before{content:"\f231";content:"\f231"/''}#available-widgets [class*=download] .widget-title:before{content:"\f316";content:"\f316"/''}#available-widgets [class*=weather] .widget-title:before{content:"\f176";content:"\f176"/'';top:-4px}#available-widgets [class*=facebook] .widget-title:before{content:"\f304";content:"\f304"/''}#available-widgets [class*=tweet] .widget-title:before,#available-widgets [class*=twitter] .widget-title:before{content:"\f301";content:"\f301"/''}@media screen and (max-height:700px) and (min-width:981px){.customize-control-widget_form{margin-bottom:0}.widget-top{box-shadow:none;margin-top:-1px}.widget-top:hover{position:relative;z-index:1}.last-widget{margin-bottom:15px}.widget-title h3{padding:13px 15px}.widget-top .widget-action{padding:8px 10px}.widget-reorder-nav span{height:39px}.widget-reorder-nav span:before{line-height:39px}#customize-theme-controls .widget-area-select li{padding:9px 42px 11px 15px}#customize-theme-controls .widget-area-select li:before{top:8px}}css/color-picker.min.css000064400000006176152213653150011236 0ustar00/*! This file is auto-generated */ .wp-color-picker{width:80px;direction:ltr}.wp-picker-container .hidden{display:none}.wp-picker-container .wp-color-result.button{min-height:32px;margin:0 6px 6px 0;padding:0 0 0 30px;font-size:11px}.wp-color-result-text{background:#f6f7f7;border-radius:0 2px 2px 0;border-left:1px solid #c3c4c7;color:#50575e;display:block;line-height:2.72727273;padding:0 6px;text-align:center}.wp-color-result:focus,.wp-color-result:hover{background:#f6f7f7;border-color:#8c8f94;color:#1d2327}.wp-color-result:focus:after,.wp-color-result:hover:after{color:#1d2327;border-color:#a7aaad;border-left:1px solid #8c8f94}.wp-picker-container{display:inline-block}.wp-color-result:focus{border-color:#4f94d4;box-shadow:0 0 3px rgba(34,113,177,.8)}.wp-color-result:active{transform:none!important}.wp-picker-open+.wp-picker-input-wrap{display:inline-block;vertical-align:top}.wp-picker-input-wrap label{display:inline-block;vertical-align:top}.form-table .wp-picker-input-wrap label{margin:0!important}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{margin-left:6px;padding:0 8px;line-height:2.72727273;min-height:32px}.wp-picker-container .iris-square-slider .ui-slider-handle:focus{background-color:#50575e}.wp-picker-container .iris-picker{border-radius:0;border-color:#dcdcde;margin-top:6px}.wp-picker-container input[type=text].wp-color-picker{width:4rem;font-size:12px;font-family:monospace;margin:0;padding:0 5px;vertical-align:top;min-height:32px}.wp-color-picker::-webkit-input-placeholder{color:#646970}.wp-color-picker::-moz-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:var(--wp-admin-theme-color,#3858e9);border-style:solid;box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9);outline:2px solid transparent}.iris-picker .iris-palette:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus,1.5px) var(--wp-admin-theme-color,#3858e9)}@media screen and (max-width:782px){.wp-picker-container input[type=text].wp-color-picker{width:5rem;font-size:16px;line-height:1.875;min-height:32px}.wp-customizer .wp-picker-container input[type=text].wp-color-picker{padding:0 5px}.wp-picker-input-wrap .button.wp-picker-clear,.wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;line-height:2.14285714;min-height:32px}.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear,.wp-customizer .wp-picker-input-wrap .button.wp-picker-default{padding:0 8px;font-size:14px;line-height:2.14285714;min-height:32px}.wp-picker-container .wp-color-result.button{padding:0 0 0 40px;font-size:14px;line-height:2.14285714}.wp-customizer .wp-picker-container .wp-color-result.button{font-size:14px;line-height:2.14285714}.wp-picker-container .wp-color-result-text{padding:0 14px;font-size:inherit;line-height:inherit}.wp-customizer .wp-picker-container .wp-color-result-text{padding:0 10px}}css/view-transitions.min.css000064400000000300152213653150012151 0ustar00/*! This file is auto-generated */ @media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}#adminmenu>.menu-top{view-transition-name:attr(id type(),none)}}css/view-transitions.css000064400000000271152213653150011376 0ustar00@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } #adminmenu > .menu-top { view-transition-name: attr(id type(), none); } } term.php000064400000004311152213653150006226 0ustar00 $taxnow ), $sendback ); } if ( 'post' !== get_current_screen()->post_type ) { $sendback = add_query_arg( 'post_type', get_current_screen()->post_type, $sendback ); } wp_redirect( sanitize_url( $sendback ) ); exit; } $tag_ID = absint( $_REQUEST['tag_ID'] ); $tag = get_term( $tag_ID, $taxnow, OBJECT, 'edit' ); if ( ! $tag instanceof WP_Term ) { wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); } $tax = get_taxonomy( $tag->taxonomy ); $taxonomy = $tax->name; $title = $tax->labels->edit_item; if ( ! in_array( $taxonomy, get_taxonomies( array( 'show_ui' => true ) ), true ) || ! current_user_can( 'edit_term', $tag->term_id ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to edit this item.' ) . '

    ', 403 ); } $post_type = get_current_screen()->post_type; // Default to the first object_type associated with the taxonomy if no post type was passed. if ( empty( $post_type ) ) { $post_type = reset( $tax->object_type ); } if ( 'post' !== $post_type ) { $parent_file = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type"; $submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type"; } elseif ( 'link_category' === $taxonomy ) { $parent_file = 'link-manager.php'; $submenu_file = 'edit-tags.php?taxonomy=link_category'; } else { $parent_file = 'edit.php'; $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; } get_current_screen()->set_screen_reader_content( array( 'heading_pagination' => $tax->labels->items_list_navigation, 'heading_list' => $tax->labels->items_list, ) ); wp_enqueue_script( 'admin-tags' ); require_once ABSPATH . 'wp-admin/admin-header.php'; require ABSPATH . 'wp-admin/edit-tag-form.php'; require_once ABSPATH . 'wp-admin/admin-footer.php'; async-upload.php000064400000012744152213653150007667 0ustar00post_type ) { wp_die( __( 'Invalid post type.' ) ); } switch ( $_REQUEST['fetch'] ) { case 3: ?>
    '; } // Title shouldn't ever be empty, but use filename just in case. $file = get_attached_file( $post->ID ); $file_url = wp_get_attachment_url( $post->ID ); $title = $post->post_title ? $post->post_title : wp_basename( $file ); ?>
    ' . _x( 'Edit', 'media item' ) . ''; } else { echo '' . _x( 'Success', 'media item' ) . ''; } ?>
    false, 'delete' => true, ) ); break; default: add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); echo get_media_item( $id ); break; } exit; } check_admin_referer( 'media-form' ); $post_id = 0; if ( isset( $_REQUEST['post_id'] ) ) { $post_id = absint( $_REQUEST['post_id'] ); if ( ! get_post( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) { $post_id = 0; } } $id = media_handle_upload( 'async-upload', $post_id ); if ( is_wp_error( $id ) ) { $button_unique_id = uniqid( 'dismiss-' ); $error_description_id = uniqid( 'error-description-' ); $message = sprintf( '%s %s
    %s', sprintf( '', esc_attr( $button_unique_id ), esc_attr( $error_description_id ), __( 'Dismiss' ) ), sprintf( /* translators: %s: Name of the file that failed to upload. */ __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ), esc_html( $id->get_error_message() ) ); wp_admin_notice( $message, array( 'id' => $error_description_id, 'additional_classes' => array( 'error-div', 'error' ), 'paragraph_wrap' => false, ) ); $speak_message = sprintf( /* translators: %s: Name of the file that failed to upload. */ __( '%s has failed to upload.' ), $_FILES['async-upload']['name'] ); echo '\n"; exit; } if ( $_REQUEST['short'] ) { // Short form response - attachment ID only. echo $id; } else { // Long form response - big chunk of HTML. $type = $_REQUEST['type']; /** * Filters the returned ID of an uploaded attachment. * * The dynamic portion of the hook name, `$type`, refers to the attachment type. * * Possible hook names include: * * - `async_upload_audio` * - `async_upload_file` * - `async_upload_image` * - `async_upload_video` * * @since 2.5.0 * * @param int $id Uploaded attachment ID. */ echo apply_filters( "async_upload_{$type}", $id ); } about.php000064400000040021152213653150006367 0ustar00






    Learn WordPress is a free resource for new and experienced WordPress users. Learn is stocked with how-to videos on using various features in WordPress, interactive workshops for exploring topics in-depth, and lesson plans for diving deep into specific areas of WordPress.' ), 'https://learn.wordpress.org/', 'https://learn.wordpress.org/online-workshops/' ); ?>


    %2$s | ', esc_url( self_admin_url( 'update-core.php' ) ), is_multisite() ? __( 'Go to Updates' ) : __( 'Go to Dashboard → Updates' ) ); } printf( '%2$s', esc_url( self_admin_url() ), is_blog_admin() ? __( 'Go to Dashboard → Home' ) : __( 'Go to Dashboard' ) ); ?>
    Version %s addressed one security issue.' ); /* translators: %s: WordPress version number. */ __( 'Version %s addressed some security issues.' ); /* translators: 1: WordPress version number, 2: Plural number of bugs. */ _n_noop( 'Version %1$s addressed %2$s bug.', 'Version %1$s addressed %2$s bugs.' ); /* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */ _n_noop( 'Version %1$s addressed a security issue and fixed %2$s bug.', 'Version %1$s addressed a security issue and fixed %2$s bugs.' ); /* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */ _n_noop( 'Version %1$s addressed some security issues and fixed %2$s bug.', 'Version %1$s addressed some security issues and fixed %2$s bugs.' ); /* translators: %s: Documentation URL. */ __( 'For more information, see the release notes.' ); /* translators: 1: WordPress version number, 2: Link to update WordPress */ __( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please update to the latest version of WordPress.' ); /* translators: 1: WordPress version number, 2: Link to update WordPress */ __( 'Important! Your version of WordPress (%1$s) will stop receiving security updates in the near future. To keep your site secure, please update to the latest version of WordPress.' ); /* translators: %s: The major version of WordPress for this branch. */ __( 'This is the final release of WordPress %s' ); /* translators: The localized WordPress download URL. */ __( 'https://wordpress.org/download/' ); upgrade-functions.php000064400000000525152213653150010717 0ustar00name, get_taxonomies( array( 'show_ui' => true ) ), true ) ) { wp_die( __( 'Sorry, you are not allowed to edit terms in this taxonomy.' ) ); } if ( ! current_user_can( $tax->cap->manage_terms ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '

    ', 403 ); } /** * $post_type is set when the WP_Terms_List_Table instance is created. * * @global string $post_type Global post type. */ global $post_type; $wp_list_table = _get_list_table( 'WP_Terms_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); $title = $tax->labels->name; if ( 'post' !== $post_type ) { $parent_file = ( 'attachment' === $post_type ) ? 'upload.php' : "edit.php?post_type=$post_type"; $submenu_file = "edit-tags.php?taxonomy=$taxonomy&post_type=$post_type"; } elseif ( 'link_category' === $tax->name ) { $parent_file = 'link-manager.php'; $submenu_file = 'edit-tags.php?taxonomy=link_category'; } else { $parent_file = 'edit.php'; $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; } add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page', ) ); get_current_screen()->set_screen_reader_content( array( 'heading_pagination' => $tax->labels->items_list_navigation, 'heading_list' => $tax->labels->items_list, ) ); $location = false; $referer = wp_get_referer(); if ( ! $referer ) { // For POST requests. $referer = wp_unslash( $_SERVER['REQUEST_URI'] ); } $referer = remove_query_arg( array( '_wp_http_referer', '_wpnonce', 'error', 'message', 'paged' ), $referer ); switch ( $wp_list_table->current_action() ) { case 'add-tag': check_admin_referer( 'add-tag', '_wpnonce_add-tag' ); if ( ! current_user_can( $tax->cap->edit_terms ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '

    ', 403 ); } $ret = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); if ( $ret && ! is_wp_error( $ret ) ) { $location = add_query_arg( 'message', 1, $referer ); } else { $location = add_query_arg( array( 'error' => true, 'message' => 4, ), $referer ); } break; case 'delete': if ( ! isset( $_REQUEST['tag_ID'] ) ) { break; } $tag_ID = (int) $_REQUEST['tag_ID']; check_admin_referer( 'delete-tag_' . $tag_ID ); if ( ! current_user_can( 'delete_term', $tag_ID ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to delete this item.' ) . '

    ', 403 ); } wp_delete_term( $tag_ID, $taxonomy ); $location = add_query_arg( 'message', 2, $referer ); // When deleting a term, prevent the action from redirecting back to a term that no longer exists. $location = remove_query_arg( array( 'tag_ID', 'action' ), $location ); break; case 'bulk-delete': check_admin_referer( 'bulk-tags' ); if ( ! current_user_can( $tax->cap->delete_terms ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to delete these items.' ) . '

    ', 403 ); } $tags = (array) $_REQUEST['delete_tags']; foreach ( $tags as $tag_ID ) { wp_delete_term( $tag_ID, $taxonomy ); } $location = add_query_arg( 'message', 6, $referer ); break; case 'edit': if ( ! isset( $_REQUEST['tag_ID'] ) ) { break; } $term_id = (int) $_REQUEST['tag_ID']; $term = get_term( $term_id ); if ( ! $term instanceof WP_Term ) { wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); } wp_redirect( sanitize_url( get_edit_term_link( $term_id, $taxonomy, $post_type ) ) ); exit; case 'editedtag': $tag_ID = (int) $_POST['tag_ID']; check_admin_referer( 'update-tag_' . $tag_ID ); if ( ! current_user_can( 'edit_term', $tag_ID ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to edit this item.' ) . '

    ', 403 ); } $tag = get_term( $tag_ID, $taxonomy ); if ( ! $tag ) { wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) ); } $ret = wp_update_term( $tag_ID, $taxonomy, $_POST ); if ( $ret && ! is_wp_error( $ret ) ) { $location = add_query_arg( 'message', 3, $referer ); } else { $location = add_query_arg( array( 'error' => true, 'message' => 5, ), $referer ); } break; default: if ( ! $wp_list_table->current_action() || ! isset( $_REQUEST['delete_tags'] ) ) { break; } check_admin_referer( 'bulk-tags' ); $screen = get_current_screen()->id; $tags = (array) $_REQUEST['delete_tags']; /** This action is documented in wp-admin/edit.php */ $location = apply_filters( "handle_bulk_actions-{$screen}", $location, $wp_list_table->current_action(), $tags ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores break; } if ( ! $location && ! empty( $_REQUEST['_wp_http_referer'] ) ) { $location = remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ); } if ( $location ) { if ( $pagenum > 1 ) { $location = add_query_arg( 'paged', $pagenum, $location ); // $pagenum takes care of $total_pages. } if ( 1 === $pagenum ) { $location = remove_query_arg( 'paged', $location ); } /** * Filters the taxonomy redirect destination URL. * * @since 4.6.0 * * @param string $location The destination URL. * @param WP_Taxonomy $tax The taxonomy object. */ wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) ); exit; } $wp_list_table->prepare_items(); $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); if ( $pagenum > $total_pages && $total_pages > 0 ) { wp_redirect( add_query_arg( 'paged', $total_pages ) ); exit; } wp_enqueue_script( 'admin-tags' ); if ( current_user_can( $tax->cap->edit_terms ) ) { wp_enqueue_script( 'inline-edit-tax' ); } if ( 'category' === $taxonomy || 'link_category' === $taxonomy || 'post_tag' === $taxonomy ) { $help = ''; if ( 'category' === $taxonomy ) { $help = '

    ' . sprintf( /* translators: %s: URL to Writing Settings screen. */ __( 'You can use categories to define sections of your site and group related posts. The default category is “Uncategorized” until you change it in your writing settings.' ), 'options-writing.php' ) . '

    '; } elseif ( 'link_category' === $taxonomy ) { $help = '

    ' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '

    '; } else { $help = '

    ' . __( 'You can assign keywords to your posts using tags. Unlike categories, tags have no hierarchy, meaning there is no relationship from one tag to another.' ) . '

    '; } if ( 'link_category' === $taxonomy ) { $help .= '

    ' . __( 'You can delete Link Categories in the Bulk Action pull-down, but that action does not delete the links within the category. Instead, it moves them to the default Link Category.' ) . '

    '; } else { $help .= '

    ' . __( 'What’s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information in your post (names, subjects, etc) that may or may not recur in other posts, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.' ) . '

    '; } get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $help, ) ); if ( 'category' === $taxonomy || 'post_tag' === $taxonomy ) { if ( 'category' === $taxonomy ) { $help = '

    ' . __( 'When adding a new category on this screen, you’ll fill in the following fields:' ) . '

    '; } else { $help = '

    ' . __( 'When adding a new tag on this screen, you’ll fill in the following fields:' ) . '

    '; } $help .= '
      ' . '
    • ' . __( 'Name — The name is how it appears on your site.' ) . '
    • '; $help .= '
    • ' . __( 'Slug — The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) . '
    • '; if ( 'category' === $taxonomy ) { $help .= '
    • ' . __( 'Parent — Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have child categories for Bebop and Big Band. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.' ) . '
    • '; } $help .= '
    • ' . __( 'Description — The description is not prominent by default; however, some themes may display it.' ) . '
    • ' . '
    ' . '

    ' . __( 'You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.' ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'adding-terms', 'title' => 'category' === $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ), 'content' => $help, ) ); } $help = '

    ' . __( 'For more information:' ) . '

    '; if ( 'category' === $taxonomy ) { $help .= '

    ' . __( 'Documentation on Categories' ) . '

    '; } elseif ( 'link_category' === $taxonomy ) { $help .= '

    ' . __( 'Documentation on Link Categories' ) . '

    '; } else { $help .= '

    ' . __( 'Documentation on Tags' ) . '

    '; } $help .= '

    ' . __( 'Support forums' ) . '

    '; get_current_screen()->set_help_sidebar( $help ); unset( $help ); } require_once ABSPATH . 'wp-admin/admin-header.php'; // Also used by the Edit Tag form. require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php'; if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { $import_link = admin_url( 'admin.php?import=wpcat2tag' ); } else { $import_link = admin_url( 'import.php' ); } ?>

    '; printf( /* translators: %s: Search query. */ __( 'Search results for: %s' ), '' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '' ); echo ''; } ?>
    'message', 'additional_classes' => array( $class ), 'dismissible' => true, ) ); $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'message', 'error' ), $_SERVER['REQUEST_URI'] ); } ?>
    search_box( $tax->labels->search_items, 'tag' ); ?>
    cap->edit_terms ); if ( $can_edit_terms ) { ?>
    0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' ); } elseif ( 'link_category' === $taxonomy ) { /** * Fires before the link category form. * * @since 2.3.0 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead. * * @param object $arg Optional arguments cast to an object. */ do_action_deprecated( 'add_link_category_form_pre', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_pre_add_form' ); } else { /** * Fires before the Add Tag form. * * @since 2.5.0 * @deprecated 3.0.0 Use {@see '{$taxonomy}_pre_add_form'} instead. * * @param string $taxonomy The taxonomy slug. */ do_action_deprecated( 'add_tag_form_pre', array( $taxonomy ), '3.0.0', '{$taxonomy}_pre_add_form' ); } /** * Fires before the Add Term form for all taxonomies. * * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * Possible hook names include: * * - `category_pre_add_form` * - `post_tag_pre_add_form` * * @since 3.0.0 * * @param string $taxonomy The taxonomy slug. */ do_action( "{$taxonomy}_pre_add_form", $taxonomy ); ?>

    labels->add_new_item; ?>

    >

    labels->name_field_description; ?>

    labels->slug_field_description; ?>

    0, 'hide_if_empty' => false, 'taxonomy' => $taxonomy, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => true, 'show_option_none' => __( 'None' ), ); /** * Filters the taxonomy parent drop-down on the Edit Term page. * * @since 3.7.0 * @since 4.2.0 Added `$context` parameter. * * @param array $dropdown_args { * An array of taxonomy parent drop-down arguments. * * @type int|bool $hide_empty Whether to hide terms not attached to any posts. Default 0. * @type bool $hide_if_empty Whether to hide the drop-down if no terms exist. Default false. * @type string $taxonomy The taxonomy slug. * @type string $name Value of the name attribute to use for the drop-down select element. * Default 'parent'. * @type string $orderby The field to order by. Default 'name'. * @type bool $hierarchical Whether the taxonomy is hierarchical. Default true. * @type string $show_option_none Label to display if there are no terms. Default 'None'. * } * @param string $taxonomy The taxonomy slug. * @param string $context Filter context. Accepts 'new' or 'edit'. */ $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' ); $dropdown_args['aria_describedby'] = 'parent-description'; wp_dropdown_categories( $dropdown_args ); ?>

    labels->parent_field_description; ?>

    labels->desc_field_description; ?>

    labels->add_new_item, 'primary', 'submit', false ); ?>

    0 ) ), '3.0.0', '{$taxonomy}_add_form' ); } elseif ( 'link_category' === $taxonomy ) { /** * Fires at the end of the Edit Link form. * * @since 2.3.0 * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead. * * @param object $arg Optional arguments cast to an object. */ do_action_deprecated( 'edit_link_category_form', array( (object) array( 'parent' => 0 ) ), '3.0.0', '{$taxonomy}_add_form' ); } else { /** * Fires at the end of the Add Tag form. * * @since 2.7.0 * @deprecated 3.0.0 Use {@see '{$taxonomy}_add_form'} instead. * * @param string $taxonomy The taxonomy slug. */ do_action_deprecated( 'add_tag_form', array( $taxonomy ), '3.0.0', '{$taxonomy}_add_form' ); } /** * Fires at the end of the Add Term form for all taxonomies. * * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * Possible hook names include: * * - `category_add_form` * - `post_tag_add_form` * * @since 3.0.0 * * @param string $taxonomy The taxonomy slug. */ do_action( "{$taxonomy}_add_form", $taxonomy ); ?>
    views(); ?>
    display(); ?>

    ' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '' ); ?>

    category to tag converter.' ), esc_url( $import_link ) ); ?>

    tag to category converter.' ), esc_url( $import_link ) ); ?>

    inline_edit(); require_once ABSPATH . 'wp-admin/admin-footer.php'; my-sites.php000064400000011337152213653150007037 0ustar00ID ); $updated = false; if ( 'updateblogsettings' === $action && isset( $_POST['primary_blog'] ) ) { check_admin_referer( 'update-my-sites' ); $blog = get_site( (int) $_POST['primary_blog'] ); if ( $blog && isset( $blog->domain ) ) { update_user_meta( $current_user->ID, 'primary_blog', (int) $_POST['primary_blog'] ); $updated = true; } else { wp_die( __( 'The primary site you chose does not exist.' ) ); } } // Used in the HTML title tag. $title = __( 'My Sites' ); $parent_file = 'index.php'; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. They can use the links under each site to visit either the front end or the dashboard for that site.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on My Sites' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; if ( $updated ) { wp_admin_notice( '' . __( 'Settings saved.' ) . '', array( 'type' => 'success', 'dismissible' => true, 'id' => 'message', ) ); } ?>

    %s', esc_url( $sign_up_url ), esc_html__( 'Add New Site' ) ); } if ( empty( $blogs ) ) : wp_admin_notice( '' . __( 'You must be a member of at least one site to use this page.' ) . '', array( 'type' => 'error', 'dismissible' => true, ) ); ?>

      ' . __( 'Global Settings' ) . ''; echo $settings_html; } reset( $blogs ); foreach ( $blogs as $user_blog ) { switch_to_blog( $user_blog->userblog_id ); echo '
    • '; echo "

      {$user_blog->blogname}

      "; $actions = "" . __( 'Visit' ) . ''; if ( current_user_can( 'read' ) ) { $actions .= " | " . __( 'Dashboard' ) . ''; } /** * Filters the row links displayed for each site on the My Sites screen. * * @since MU (3.0.0) * * @param string $actions The HTML site link markup. * @param object $user_blog An object containing the site data. */ $actions = apply_filters( 'myblogs_blog_actions', $actions, $user_blog ); echo "

      " . $actions . '

      '; /** This filter is documented in wp-admin/my-sites.php */ echo apply_filters( 'myblogs_options', '', $user_blog ); echo '
    • '; restore_current_blog(); } ?>
    1 || has_action( 'myblogs_allblogs_options' ) || has_filter( 'myblogs_options' ) ) { ?>
    add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'This screen is where you manage requests for an export of personal data.' ) . '

    ' . '

    ' . __( 'Privacy Laws around the world require businesses and online services to provide an export of some of the data they collect about an individual, and to deliver that export on request. The rights those laws enshrine are sometimes called the "Right of Data Portability". It allows individuals to obtain and reuse their personal data for their own purposes across different services. It allows them to move, copy or transfer personal data easily from one IT environment to another.' ) . '

    ' . '

    ' . __( 'The tool associates data stored in WordPress with a supplied email address, including profile data and comments.' ) . '

    ' . '

    ' . __( 'Note: Since this tool only gathers data from WordPress and participating plugins, you may need to do more to comply with export requests. For example, you should also send the requester some of the data collected from or stored with the 3rd party services your organization uses.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'default-data', 'title' => __( 'Default Data' ), 'content' => '

    ' . __( 'WordPress collects (but never publishes) a limited amount of data from registered users who have logged in to the site. Generally, these users are people who contribute to the site in some way -- content, store management, and so on. With rare exceptions, these users do not include occasional visitors who might have registered to comment on articles or buy products. The data WordPress retains can include:' ) . '

    ' . '

    ' . __( 'Profile Information — user email address, username, display name, nickname, first name, last name, description/bio, and registration date.' ) . '

    ' . '

    ' . __( 'Community Events Location — The IP Address of the user, which populates the Upcoming Community Events dashboard widget with relevant information.' ) . '

    ' . '

    ' . __( 'Session Tokens — User login information, IP Addresses, Expiration Date, User Agent (Browser/OS), and Last Login.' ) . '

    ' . '

    ' . __( 'Comments — For user comments, Email Address, IP Address, User Agent (Browser/OS), Date/Time, Comment Content, and Content URL.' ) . '

    ' . '

    ' . __( 'Media — A list of URLs for media files the user uploads.' ) . '

    ', ) ); $privacy_policy_guide = '

    ' . sprintf( /* translators: %s: URL to Privacy Policy Guide screen. */ __( 'If you are not sure, check the plugin documentation or contact the plugin author to see if the plugin collects data and if it supports the Data Exporter tool. This information may be available in the Privacy Policy Guide.' ), admin_url( 'options-privacy.php?tab=policyguide' ) ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'plugin-data', 'title' => __( 'Plugin Data' ), 'content' => '

    ' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Export Personal Data request should include data from plugins as well.' ) . '

    ' . $privacy_policy_guide . '

    ' . __( 'If you are a plugin author, you can learn more about how to add the Personal Data Exporter to a plugin.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Export Personal Data' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); // Handle list table actions. _wp_personal_data_handle_actions(); // Cleans up failed and expired requests before displaying the list table. _wp_personal_data_cleanup_requests(); wp_enqueue_script( 'privacy-tools' ); add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'export_personal_data_requests_per_page', ) ); $_list_table_args = array( 'plural' => 'privacy_requests', 'singular' => 'privacy_request', ); $requests_table = _get_list_table( 'WP_Privacy_Data_Export_Requests_List_Table', $_list_table_args ); $requests_table->screen->set_screen_reader_content( array( 'heading_views' => __( 'Filter export personal data list' ), 'heading_pagination' => __( 'Export personal data list navigation' ), 'heading_list' => __( 'Export personal data list' ), ) ); $requests_table->process_bulk_action(); $requests_table->prepare_items(); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>



    views(); ?>
    search_box( __( 'Search Requests' ), 'requests' ); ?>
    display(); $requests_table->embed_scripts(); ?>
    'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>

    Site Health Status page.' ), esc_url( admin_url( 'site-health.php' ) ) ); ?>

    $details ) { if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) { continue; } ?>

    upload.php000064400000035631152213653150006554 0ustar00%2$s', esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids=' . ( $_GET['ids'] ?? '' ), 'bulk-media' ) ), __( 'Undo' ) ); $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'trashed' ), $_SERVER['REQUEST_URI'] ); unset( $_GET['trashed'] ); } if ( ! empty( $_GET['untrashed'] ) && absint( $_GET['untrashed'] ) ) { $untrashed = absint( $_GET['untrashed'] ); if ( 1 === $untrashed ) { $message = __( 'Media file restored from the Trash.' ); } else { $message = sprintf( /* translators: %s: Number of media files. */ _n( '%s media file restored from the Trash.', '%s media files restored from the Trash.', $untrashed ), number_format_i18n( $untrashed ) ); } $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'untrashed' ), $_SERVER['REQUEST_URI'] ); unset( $_GET['untrashed'] ); } $messages[1] = __( 'Media file updated.' ); $messages[2] = __( 'Media file permanently deleted.' ); $messages[3] = __( 'Error saving media file.' ); $messages[4] = __( 'Media file moved to the Trash.' ) . sprintf( ' %2$s', esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids=' . ( $_GET['ids'] ?? '' ), 'bulk-media' ) ), __( 'Undo' ) ); $messages[5] = __( 'Media file restored from the Trash.' ); if ( ! empty( $_GET['message'] ) && isset( $messages[ $_GET['message'] ] ) ) { $message = $messages[ $_GET['message'] ]; $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'message' ), $_SERVER['REQUEST_URI'] ); } $modes = array( 'grid', 'list' ); if ( isset( $_GET['mode'] ) && in_array( $_GET['mode'], $modes, true ) ) { $mode = $_GET['mode']; update_user_option( get_current_user_id(), 'media_library_mode', $mode ); } else { $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid'; } if ( 'grid' === $mode ) { wp_enqueue_media(); wp_enqueue_script( 'media-grid' ); wp_enqueue_script( 'media' ); // Remove the error parameter added by deprecation of wp-admin/media.php. add_filter( 'removable_query_args', function () { return array( 'error' ); }, 10, 0 ); $query_string = $_GET; // Let JS handle this. unset( $query_string['s'] ); $query_vars = wp_edit_attachments_query_vars( $query_string ); $ignore = array( 'mode', 'post_type', 'post_status', 'posts_per_page' ); foreach ( $query_vars as $key => $value ) { if ( ! $value || in_array( $key, $ignore, true ) ) { unset( $query_vars[ $key ] ); } } wp_localize_script( 'media-grid', '_wpMediaGridSettings', array( 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ), 'queryVars' => (object) $query_vars, ) ); get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'All the files you’ve uploaded are listed in the Media Library, with the most recent uploads listed first.' ) . '

    ' . '

    ' . __( 'You can view your media in a simple visual grid or a list with columns. Switch between these views using the icons to the left above the media.' ) . '

    ' . '

    ' . __( 'To delete media items, click the Bulk select button at the top of the screen. Select any items you wish to delete, then click the Delete permanently button. Clicking the Cancel button takes you back to viewing your media.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'attachment-details', 'title' => __( 'Attachment Details' ), 'content' => '

    ' . __( 'Clicking an item will display an Attachment Details dialog, which allows you to preview media and make quick edits. Any changes you make to the attachment details will be automatically saved.' ) . '

    ' . '

    ' . __( 'Use the arrow buttons at the top of the dialog, or the left and right arrow keys on your keyboard, to navigate between media items quickly.' ) . '

    ' . '

    ' . __( 'You can also delete individual items and access the extended edit screen from the details dialog.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Media Library' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); // Used in the HTML title tag. $title = __( 'Media Library' ); $parent_file = 'upload.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; ?>


    'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } $js_required_message = sprintf( /* translators: %s: List view URL. */ __( 'The grid view for the Media Library requires JavaScript. Switch to the list view.' ), 'upload.php?mode=list' ); wp_admin_notice( $js_required_message, array( 'additional_classes' => array( 'error', 'hide-if-js' ), ) ); ?>
    get_pagenum(); // Handle bulk actions. $doaction = $wp_list_table->current_action(); if ( $doaction ) { check_admin_referer( 'bulk-media' ); $post_ids = array(); if ( 'delete_all' === $doaction ) { $post_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE post_type='attachment' AND post_status = 'trash'" ); $doaction = 'delete'; } elseif ( isset( $_REQUEST['media'] ) ) { $post_ids = $_REQUEST['media']; } elseif ( isset( $_REQUEST['ids'] ) ) { $post_ids = explode( ',', $_REQUEST['ids'] ); } $post_ids = array_map( 'intval', (array) $post_ids ); $location = 'upload.php'; $referer = wp_get_referer(); if ( $referer ) { if ( str_contains( $referer, 'upload.php' ) ) { $location = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'message', 'ids', 'posted' ), $referer ); } } switch ( $doaction ) { case 'detach': wp_media_attach_action( $_REQUEST['parent_post_id'], 'detach' ); break; case 'attach': wp_media_attach_action( $_REQUEST['found_post_id'] ); break; case 'trash': if ( empty( $post_ids ) ) { break; } foreach ( $post_ids as $post_id ) { if ( ! current_user_can( 'delete_post', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) ); } if ( ! wp_trash_post( $post_id ) ) { wp_die( __( 'Error in moving the item to Trash.' ) ); } } $location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => implode( ',', $post_ids ), ), $location ); break; case 'untrash': if ( empty( $post_ids ) ) { break; } foreach ( $post_ids as $post_id ) { if ( ! current_user_can( 'delete_post', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) ); } if ( ! wp_untrash_post( $post_id ) ) { wp_die( __( 'Error in restoring the item from Trash.' ) ); } } $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); break; case 'delete': if ( empty( $post_ids ) ) { break; } foreach ( $post_ids as $post_id_del ) { if ( ! current_user_can( 'delete_post', $post_id_del ) ) { wp_die( __( 'Sorry, you are not allowed to delete this item.' ) ); } if ( ! wp_delete_attachment( $post_id_del ) ) { wp_die( __( 'Error in deleting the attachment.' ) ); } } $location = add_query_arg( 'deleted', count( $post_ids ), $location ); break; default: $screen = get_current_screen()->id; /** This action is documented in wp-admin/edit.php */ $location = apply_filters( "handle_bulk_actions-{$screen}", $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } wp_redirect( $location ); exit; } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); exit; } $wp_list_table->prepare_items(); // Used in the HTML title tag. $title = __( 'Media Library' ); $parent_file = 'upload.php'; wp_enqueue_script( 'media' ); add_screen_option( 'per_page' ); get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'All the files you’ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '

    ' . '

    ' . __( 'You can narrow the list by file type/status or by date using the dropdown menus above the media table.' ) . '

    ' . '

    ' . __( 'You can view your media in a simple visual grid or a list with columns. Switch between these views using the icons to the left above the media.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'actions-links', 'title' => __( 'Available Actions' ), 'content' => '

    ' . __( 'Hovering over a row reveals action links that allow you to manage media items. You can perform the following actions:' ) . '

    ' . '
      ' . '
    • ' . __( 'Edit takes you to a simple screen to edit that individual file’s metadata. You can also reach that screen by clicking on the media file name or thumbnail.' ) . '
    • ' . '
    • ' . __( 'Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached).' ) . '
    • ' . '
    • ' . __( 'View will take you to a public display page for that file.' ) . '
    • ' . '
    • ' . __( 'Copy URL copies the URL for the media file to your clipboard.' ) . '
    • ' . '
    • ' . __( 'Download file downloads the original media file to your device.' ) . '
    • ' . '
    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'attaching-files', 'title' => __( 'Attaching Files' ), 'content' => '

    ' . __( 'If a media file has not been attached to any content, you will see that in the Uploaded To column, and can click on Attach to launch a small popup that will allow you to search for existing content and attach the file.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Media Library' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); get_current_screen()->set_screen_reader_content( array( 'heading_views' => __( 'Filter media items list' ), 'heading_pagination' => __( 'Media items list navigation' ), 'heading_list' => __( 'Media items list' ), ) ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    '; printf( /* translators: %s: Search query. */ __( 'Search results for: %s' ), '' . get_search_query() . '' ); echo ''; } ?>
    'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } ?>
    views(); ?> display(); ?>
    ' . __( 'You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.' ) . '

    '; if ( ! is_multisite() && ( get_option( 'upload_url_path' ) || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) ) { $media_options_help .= '

    ' . __( 'Uploading Files allows you to choose the folder and path for storing your uploaded files.' ) . '

    '; } $media_options_help .= '

    ' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $media_options_help, ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Media Settings' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    upgrade.php000064400000014366152213653150006721 0ustar00db_version(); $php_compat = version_compare( $php_version, $required_php_version, '>=' ); if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { $mysql_compat = true; } else { $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); } $missing_extensions = array(); if ( isset( $required_php_extensions ) && is_array( $required_php_extensions ) ) { foreach ( $required_php_extensions as $extension ) { if ( extension_loaded( $extension ) ) { continue; } $missing_extensions[] = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: The PHP extension name needed. */ __( 'You cannot upgrade because WordPress %2$s requires the %3$s PHP extension.' ), $version_url, $wp_version, $extension ); } } header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); ?> > <?php _e( 'WordPress › Update' ); ?>

    ' . sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $php_update_message .= '

    ' . $annotation . ''; } if ( ! $mysql_compat && ! $php_compat ) { $message = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number. */ __( 'You cannot update because WordPress %2$s requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message; } elseif ( ! $php_compat ) { $message = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */ __( 'You cannot update because WordPress %2$s requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ) . $php_update_message; } elseif ( ! $mysql_compat ) { $message = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number. */ __( 'You cannot update because WordPress %2$s requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_mysql_version, $mysql_version ); } echo '

    ' . $message . '

    '; elseif ( count( $missing_extensions ) > 0 ) : echo '

    ' . implode( '

    ', $missing_extensions ) . '

    '; else : switch ( $step ) : case 0: $goback = wp_get_referer(); if ( $goback ) { $goback = sanitize_url( $goback ); $goback = urlencode( $goback ); } ?>

    media.php000064400000001463152213653150006343 0ustar00current, get_locale() ); if ( 'en_US' === $update->locale && 'en_US' === get_locale() ) { $version_string = $update->current; } elseif ( 'en_US' === $update->locale && $update->packages->partial && $wp_version === $update->partial_version ) { $updates = get_core_updates(); if ( $updates && 1 === count( $updates ) ) { // If the only available update is a partial builds, it doesn't need a language-specific version string. $version_string = $update->current; } } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() ) { $version_string = sprintf( '%s–%s', $update->current, $update->locale ); } $current = false; if ( ! isset( $update->response ) || 'latest' === $update->response ) { $current = true; } $message = ''; $form_action = 'update-core.php?action=do-core-upgrade'; $php_version = PHP_VERSION; $mysql_version = $wpdb->db_version(); $show_buttons = true; // Nightly build versions have two hyphens and a commit number. if ( preg_match( '/-\w+-\d+/', $update->current ) ) { // Retrieve the major version number. preg_match( '/^\d+.\d+/', $update->current, $update_major ); /* translators: %s: WordPress version. */ $submit = sprintf( __( 'Update to latest %s nightly' ), $update_major[0] ); } else { /* translators: %s: WordPress version. */ $submit = sprintf( __( 'Update to version %s' ), $version_string ); } if ( 'development' === $update->response ) { $message = __( 'You can update to the latest nightly build manually:' ); } else { if ( $current ) { /* translators: %s: WordPress version. */ $submit = sprintf( __( 'Re-install version %s' ), $version_string ); $form_action = 'update-core.php?action=do-core-reinstall'; } else { $php_compat = version_compare( $php_version, $update->php_version, '>=' ); if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { $mysql_compat = true; } else { $mysql_compat = version_compare( $mysql_version, $update->mysql_version, '>=' ); } $version_url = sprintf( /* translators: %s: WordPress version. */ esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ), sanitize_title( $update->current ) ); $php_update_message = '

    ' . sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $php_update_message .= '

    ' . $annotation . ''; } if ( ! $mysql_compat && ! $php_compat ) { $message = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number. */ __( 'You cannot update because WordPress %2$s requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version ) . $php_update_message; } elseif ( ! $php_compat ) { $message = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */ __( 'You cannot update because WordPress %2$s requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->php_version, $php_version ) . $php_update_message; } elseif ( ! $mysql_compat ) { $message = sprintf( /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number. */ __( 'You cannot update because WordPress %2$s requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->mysql_version, $mysql_version ); } else { $message = sprintf( /* translators: 1: Installed WordPress version number, 2: URL to WordPress release notes, 3: New WordPress version number, including locale if necessary. */ __( 'You can update from WordPress %1$s to WordPress %3$s manually:' ), $wp_version, $version_url, $version_string ); } if ( ! $mysql_compat || ! $php_compat ) { $show_buttons = false; } } } echo '

    '; echo $message; echo '

    '; echo '
    '; wp_nonce_field( 'upgrade-core' ); echo '

    '; echo ''; echo ''; if ( $show_buttons ) { if ( $first_pass ) { submit_button( $submit, $current ? '' : 'primary regular', 'upgrade', false ); $first_pass = false; } else { submit_button( $submit, '', 'upgrade', false ); } } if ( 'en_US' !== $update->locale ) { if ( ! isset( $update->dismissed ) || ! $update->dismissed ) { submit_button( __( 'Hide this update' ), '', 'dismiss', false ); } else { submit_button( __( 'Bring back this update' ), '', 'undismiss', false ); } } echo '

    '; if ( 'en_US' !== $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package !== $update->locale ) ) { echo '

    ' . __( 'This localized version contains both the translation and various other localization fixes.' ) . '

    '; } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() && ( ! $update->packages->partial && $wp_version === $update->partial_version ) ) { // Partial builds don't need language-specific warnings. echo '

    ' . sprintf( /* translators: %s: WordPress version. */ __( 'You are about to install WordPress %s in English (US). There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ), 'development' !== $update->response ? $update->current : '' ) . '

    '; } echo '
    '; } /** * Display dismissed updates. * * @since 2.7.0 */ function dismissed_updates() { $dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false, ) ); if ( $dismissed ) { $show_text = esc_js( __( 'Show hidden updates' ) ); $hide_text = esc_js( __( 'Hide hidden updates' ) ); ?>

    '; echo '
      '; foreach ( (array) $dismissed as $update ) { echo '
    • '; list_core_update( $update ); echo '
    • '; } echo '
    '; } } /** * Display upgrade WordPress for downloading latest or upgrading automatically form. * * @since 2.7.0 */ function core_upgrade_preamble() { $updates = get_core_updates(); // Include an unmodified $wp_version. require ABSPATH . WPINC . '/version.php'; $is_development_version = preg_match( '/alpha|beta|RC/', $wp_version ); if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { echo '

    '; _e( 'An updated version of WordPress is available.' ); echo '

    '; $message = sprintf( /* translators: 1: Documentation on WordPress backups, 2: Documentation on updating WordPress. */ __( 'Important: Before updating, please back up your database and files. For help with updates, visit the Updating WordPress documentation page.' ), __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ), __( 'https://wordpress.org/documentation/article/updating-wordpress/' ) ); wp_admin_notice( $message, array( 'type' => 'warning', 'additional_classes' => array( 'inline' ), ) ); } elseif ( $is_development_version ) { echo '

    ' . __( 'You are using a development version of WordPress.' ) . '

    '; } else { echo '

    ' . __( 'You have the latest version of WordPress.' ) . '

    '; } echo '
      '; foreach ( (array) $updates as $update ) { echo '
    • '; list_core_update( $update ); echo '
    • '; } echo '
    '; // Don't show the maintenance mode notice when we are only showing a single re-install option. if ( $updates && ( count( $updates ) > 1 || 'latest' !== $updates[0]->response ) ) { echo '

    ' . __( 'While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, this mode will be deactivated.' ) . '

    '; } elseif ( ! $updates ) { list( $normalized_version ) = explode( '-', $wp_version ); echo '

    ' . sprintf( /* translators: 1: URL to About screen, 2: WordPress version. */ __( 'Learn more about WordPress %2$s.' ), esc_url( self_admin_url( 'about.php' ) ), $normalized_version ) . '

    '; } dismissed_updates(); } /** * Display WordPress auto-updates settings. * * @since 5.6.0 */ function core_auto_updates_settings() { if ( isset( $_GET['core-major-auto-updates-saved'] ) ) { if ( 'enabled' === $_GET['core-major-auto-updates-saved'] ) { $notice_text = __( 'Automatic updates for all WordPress versions have been enabled. Thank you!' ); wp_admin_notice( $notice_text, array( 'type' => 'success', 'dismissible' => true, ) ); } elseif ( 'disabled' === $_GET['core-major-auto-updates-saved'] ) { $notice_text = __( 'WordPress will only receive automatic security and maintenance releases from now on.' ); wp_admin_notice( $notice_text, array( 'type' => 'success', 'dismissible' => true, ) ); } } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $updater = new WP_Automatic_Updater(); // Defaults: $upgrade_dev = get_site_option( 'auto_update_core_dev', 'enabled' ) === 'enabled'; $upgrade_minor = get_site_option( 'auto_update_core_minor', 'enabled' ) === 'enabled'; $upgrade_major = get_site_option( 'auto_update_core_major', 'unset' ) === 'enabled'; $can_set_update_option = true; // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'development', 'branch-development', 'minor', false. if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) { if ( false === WP_AUTO_UPDATE_CORE ) { // Defaults to turned off, unless a filter allows it. $upgrade_dev = false; $upgrade_minor = false; $upgrade_major = false; } elseif ( true === WP_AUTO_UPDATE_CORE || in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc', 'development', 'branch-development' ), true ) ) { // ALL updates for core. $upgrade_dev = true; $upgrade_minor = true; $upgrade_major = true; } elseif ( 'minor' === WP_AUTO_UPDATE_CORE ) { // Only minor updates for core. $upgrade_dev = false; $upgrade_minor = true; $upgrade_major = false; } // The UI is overridden by the `WP_AUTO_UPDATE_CORE` constant. $can_set_update_option = false; } if ( $updater->is_disabled() ) { $upgrade_dev = false; $upgrade_minor = false; $upgrade_major = false; /* * The UI is overridden by the `AUTOMATIC_UPDATER_DISABLED` constant * or the `automatic_updater_disabled` filter, * or by `wp_is_file_mod_allowed( 'automatic_updater' )`. * See `WP_Automatic_Updater::is_disabled()`. */ $can_set_update_option = false; } // Is the UI overridden by a plugin using the `allow_major_auto_core_updates` filter? if ( has_filter( 'allow_major_auto_core_updates' ) ) { $can_set_update_option = false; } /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ $upgrade_dev = apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ); /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ $upgrade_minor = apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor ); /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ $upgrade_major = apply_filters( 'allow_major_auto_core_updates', $upgrade_major ); $auto_update_settings = array( 'dev' => $upgrade_dev, 'minor' => $upgrade_minor, 'major' => $upgrade_major, ); if ( $upgrade_major ) { $wp_version = wp_get_wp_version(); $updates = get_core_updates(); if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) { echo '

    ' . wp_get_auto_update_message() . '

    '; } } $action_url = self_admin_url( 'update-core.php?action=core-major-auto-updates-settings' ); ?>

    is_vcs_checkout( ABSPATH ) ) { _e( 'This site appears to be under version control. Automatic updates are disabled.' ); } elseif ( $upgrade_major ) { _e( 'This site is automatically kept up to date with each new version of WordPress.' ); if ( $can_set_update_option ) { echo '
    '; printf( '%s', wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ), __( 'Switch to automatic updates for maintenance and security releases only.' ) ); } } elseif ( $upgrade_minor ) { _e( 'This site is automatically kept up to date with maintenance and security releases of WordPress only.' ); if ( $can_set_update_option ) { echo '
    '; printf( '%s', wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' ), __( 'Enable automatic updates for all new versions of WordPress.' ) ); } } else { _e( 'This site will not receive automatic updates for new versions of WordPress.' ); } ?>

    ' . __( 'Plugins' ) . ''; echo '

    ' . __( 'Your plugins are all up to date.' ) . '

    '; return; } $form_action = 'update-core.php?action=do-plugin-upgrade'; $core_updates = get_core_updates(); if ( ! isset( $core_updates[0]->response ) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare( $core_updates[0]->current, $cur_wp_version, '=' ) ) { $core_update_version = false; } else { $core_update_version = $core_updates[0]->current; } $plugins_count = count( $plugins ); ?>

    (%d)', __( 'Plugins' ), number_format_i18n( $plugins_count ) ); ?>

    $plugin_data ) { $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true ); $icon = ''; $preferred_icons = array( 'svg', '2x', '1x', 'default' ); foreach ( $preferred_icons as $preferred_icon ) { if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) { $icon = ''; break; } } // Get plugin compat for running version of WordPress. if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) { /* translators: %s: WordPress version. */ $compat = '
    ' . sprintf( __( 'Compatibility with WordPress %s: Yes (according to its author)' ), $cur_wp_version ); } else { /* translators: %s: WordPress version. */ $compat = '
    ' . sprintf( __( 'Compatibility with WordPress %s: Not tested' ), $cur_wp_version ); } // Get plugin compat for updated version of WordPress. if ( $core_update_version ) { if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $core_update_version, '>=' ) ) { /* translators: %s: WordPress version. */ $compat .= '
    ' . sprintf( __( 'Compatibility with WordPress %s: Yes (according to its author)' ), $core_update_version ); } else { /* translators: %s: WordPress version. */ $compat .= '
    ' . sprintf( __( 'Compatibility with WordPress %s: Not tested' ), $core_update_version ); } } $requires_php = $plugin_data->update->requires_php ?? null; $compatible_php = is_php_version_compatible( $requires_php ); if ( ! $compatible_php && current_user_can( 'update_php' ) ) { $compat .= '
    ' . __( 'This update does not work with your version of PHP.' ) . ' '; $compat .= sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $compat .= '

    ' . $annotation . ''; } } // Get the upgrade notice for the new plugin version. if ( isset( $plugin_data->update->upgrade_notice ) ) { $upgrade_notice = '
    ' . strip_tags( $plugin_data->update->upgrade_notice ); } else { $upgrade_notice = ''; } $details_url = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '§ion=changelog&TB_iframe=true&width=640&height=662' ); $details = sprintf( '%3$s', esc_url( $details_url ), /* translators: 1: Plugin name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_data->Name, $plugin_data->update->new_version ) ), /* translators: %s: Plugin version. */ sprintf( __( 'View version %s details.' ), $plugin_data->update->new_version ) ); $checkbox_id = 'checkbox_' . md5( $plugin_file ); ?>

    Name; ?> Version, $plugin_data->update->new_version ); echo ' ' . $details . $compat; if ( in_array( $plugin_file, $auto_updates, true ) ) { echo $auto_update_notice; } echo $upgrade_notice; ?>

    ' . __( 'Themes' ) . ''; echo '

    ' . __( 'Your themes are all up to date.' ) . '

    '; return; } $form_action = 'update-core.php?action=do-theme-upgrade'; $themes_count = count( $themes ); ?>

    (%d)', __( 'Themes' ), number_format_i18n( $themes_count ) ); ?>

    Please Note: Any customizations you have made to theme files will be lost. Please consider using child themes for modifications.' ), __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ); ?>

    $theme ) { $requires_wp = $theme->update['requires'] ?? null; $requires_php = $theme->update['requires_php'] ?? null; $compatible_wp = is_wp_version_compatible( $requires_wp ); $compatible_php = is_php_version_compatible( $requires_php ); $compat = ''; if ( ! $compatible_wp && ! $compatible_php ) { $compat .= '
    ' . __( 'This update does not work with your versions of WordPress and PHP.' ) . ' '; if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { $compat .= sprintf( /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ __( 'Please update WordPress, and then learn more about updating PHP.' ), esc_url( self_admin_url( 'update-core.php' ) ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $compat .= '

    ' . $annotation . ''; } } elseif ( current_user_can( 'update_core' ) ) { $compat .= sprintf( /* translators: %s: URL to WordPress Updates screen. */ __( 'Please update WordPress.' ), esc_url( self_admin_url( 'update-core.php' ) ) ); } elseif ( current_user_can( 'update_php' ) ) { $compat .= sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $compat .= '

    ' . $annotation . ''; } } } elseif ( ! $compatible_wp ) { $compat .= '
    ' . __( 'This update does not work with your version of WordPress.' ) . ' '; if ( current_user_can( 'update_core' ) ) { $compat .= sprintf( /* translators: %s: URL to WordPress Updates screen. */ __( 'Please update WordPress.' ), esc_url( self_admin_url( 'update-core.php' ) ) ); } } elseif ( ! $compatible_php ) { $compat .= '
    ' . __( 'This update does not work with your version of PHP.' ) . ' '; if ( current_user_can( 'update_php' ) ) { $compat .= sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $compat .= '

    ' . $annotation . ''; } } } $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); ?>

    display( 'Name' ); ?> display( 'Version' ), $theme->update['new_version'] ); echo ' ' . $compat; if ( in_array( $stylesheet, $auto_updates, true ) ) { echo $auto_update_notice; } ?>

    ' . __( 'Translations' ) . ''; echo '

    ' . __( 'Your translations are all up to date.' ) . '

    '; } return; } $form_action = 'update-core.php?action=do-translation-upgrade'; ?>

    new_files ) && ! $update->new_files; ?>

    '; return; } if ( ! WP_Filesystem( $credentials, ABSPATH, $allow_relaxed_file_ownership ) ) { // Failed to connect. Error and request again. request_filesystem_credentials( $url, '', true, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ); echo '
    '; return; } if ( $wp_filesystem->errors->has_errors() ) { foreach ( $wp_filesystem->errors->get_error_messages() as $message ) { show_message( $message ); } echo ''; return; } if ( $reinstall ) { $update->response = 'reinstall'; } add_filter( 'update_feedback', 'show_message' ); $upgrader = new Core_Upgrader(); $result = $upgrader->upgrade( $update, array( 'allow_relaxed_file_ownership' => $allow_relaxed_file_ownership, ) ); if ( is_wp_error( $result ) ) { show_message( $result ); if ( 'up_to_date' !== $result->get_error_code() && 'locked' !== $result->get_error_code() ) { show_message( __( 'Installation failed.' ) ); } echo ''; return; } show_message( __( 'WordPress updated successfully.' ) ); show_message( '' . sprintf( /* translators: 1: WordPress version, 2: URL to About screen. */ __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click here.' ), $result, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '' ); show_message( '' . sprintf( /* translators: 1: WordPress version, 2: URL to About screen. */ __( 'Welcome to WordPress %1$s. Learn more.' ), $result, esc_url( self_admin_url( 'about.php?updated' ) ) ) . '' ); ?> ' . __( 'On this screen, you can update to the latest version of WordPress, as well as update your themes, plugins, and translations.' ) . '

    '; $updates_overview .= '

    ' . __( 'If an update is available, you᾿ll see a notification appear in the Toolbar and navigation menu.' ) . ' ' . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $updates_overview, ) ); $updates_howto = '

    ' . __( 'WordPress — Updating your WordPress installation is a simple one-click procedure: just click on the “Update now” button when you are notified that a new version is available.' ) . ' ' . __( 'In most cases, WordPress will automatically apply maintenance and security updates in the background for you.' ) . '

    '; $updates_howto .= '

    ' . __( 'Themes and Plugins — To update individual themes or plugins from this screen, use the checkboxes to make your selection, then click on the appropriate “Update” button. To update all of your themes or plugins at once, you can check the box at the top of the section to select all before clicking the update button.' ) . '

    '; if ( 'en_US' !== get_locale() ) { $updates_howto .= '

    ' . __( 'Translations — The files translating WordPress into your language are updated for you whenever any other updates occur. But if these files are out of date, you can click the “Update Translations” button.' ) . '

    '; } get_current_screen()->add_help_tab( array( 'id' => 'how-to-update', 'title' => __( 'How to Update' ), 'content' => $updates_howto, ) ); $help_sidebar_autoupdates = ''; if ( ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) || ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) ) { $help_tab_autoupdates = '

    ' . __( 'Auto-updates can be enabled or disabled for WordPress major versions and for each individual theme or plugin. Themes or plugins with auto-updates enabled will display the estimated date of the next auto-update. Auto-updates depends on the WP-Cron task scheduling system.' ) . '

    '; $help_tab_autoupdates .= '

    ' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'plugins-themes-auto-updates', 'title' => __( 'Auto-updates' ), 'content' => $help_tab_autoupdates, ) ); $help_sidebar_autoupdates = '

    ' . __( 'Documentation on Auto-updates' ) . '

    '; } $help_sidebar_rollback = ''; if ( current_user_can( 'update_themes' ) || current_user_can( 'update_plugins' ) ) { $rollback_help = '

    ' . __( 'This feature will create a temporary backup of a plugin or theme before it is upgraded. This backup is used to restore the plugin or theme back to its previous state if there is an error during the update process.' ) . '

    '; $rollback_help .= '

    ' . __( 'On systems with fewer resources, this may lead to server timeouts or resource limits being reached. If you encounter an issue during the update process, please create a support forum topic and reference Rollback in the issue title.' ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'rollback-plugins-themes', 'title' => __( 'Restore Plugin or Theme' ), 'content' => $rollback_help, ) ); $help_sidebar_rollback = '

    ' . __( 'Common Errors' ) . '

    '; } get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Updating WordPress' ) . '

    ' . $help_sidebar_autoupdates . '

    ' . __( 'Support forums' ) . '

    ' . $help_sidebar_rollback ); if ( 'upgrade-core' === $action ) { // Force an update check when requested. $force_check = ! empty( $_GET['force-check'] ); wp_version_check( array(), $force_check ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    array( 'error' ), ) ); } } else { $plugin_updates = get_plugin_updates(); if ( ! empty( $plugin_updates ) ) { wp_admin_notice( __( 'Please select one or more plugins to update.' ), array( 'additional_classes' => array( 'error' ), ) ); } } } $last_update_check = false; $current = get_site_transient( 'update_core' ); if ( $current && isset( $current->last_checked ) ) { $last_update_check = $current->last_checked + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); } echo '

    '; /* translators: Current version of WordPress. */ printf( __( 'Current version: %s' ), esc_html( wp_get_wp_version() ) ); echo '

    '; echo '

    '; printf( /* translators: 1: Date, 2: Time. */ __( 'Last checked on %1$s at %2$s.' ), /* translators: Last update date format. See https://www.php.net/manual/datetime.format.php */ date_i18n( __( 'F j, Y' ), $last_update_check ), /* translators: Last update time format. See https://www.php.net/manual/datetime.format.php */ date_i18n( __( 'g:i a T' ), $last_update_check ) ); echo ' ' . __( 'Check again.' ) . ''; echo '

    '; if ( current_user_can( 'update_core' ) ) { core_auto_updates_settings(); core_upgrade_preamble(); } if ( current_user_can( 'update_plugins' ) ) { list_plugin_updates(); } if ( current_user_can( 'update_themes' ) ) { list_theme_updates(); } if ( current_user_can( 'update_languages' ) ) { list_translation_updates(); } /** * Fires after the core, plugin, and theme update tables. * * @since 2.9.0 */ do_action( 'core_upgrade_preamble' ); echo '
    '; wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 'totals' => wp_get_update_data(), ) ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'do-core-upgrade' === $action || 'do-core-reinstall' === $action ) { if ( ! current_user_can( 'update_core' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); } check_admin_referer( 'upgrade-core' ); // Do the (un)dismiss actions before headers, so that they can redirect. if ( isset( $_POST['dismiss'] ) ) { do_dismiss_core_update(); } elseif ( isset( $_POST['undismiss'] ) ) { do_undismiss_core_update(); } require_once ABSPATH . 'wp-admin/admin-header.php'; if ( 'do-core-reinstall' === $action ) { $reinstall = true; } else { $reinstall = false; } if ( isset( $_POST['upgrade'] ) ) { do_core_upgrade( $reinstall ); } wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 'totals' => wp_get_update_data(), ) ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'do-plugin-upgrade' === $action ) { if ( ! current_user_can( 'update_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); } check_admin_referer( 'upgrade-core' ); if ( isset( $_GET['plugins'] ) ) { $plugins = explode( ',', $_GET['plugins'] ); } elseif ( isset( $_POST['checked'] ) ) { $plugins = (array) $_POST['checked']; } else { wp_redirect( admin_url( 'update-core.php' ) ); exit; } $url = 'update.php?action=update-selected&plugins=' . urlencode( implode( ',', $plugins ) ); $url = wp_nonce_url( $url, 'bulk-update-plugins' ); // Used in the HTML title tag. $title = __( 'Update Plugins' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    wp_get_update_data(), ) ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'do-theme-upgrade' === $action ) { if ( ! current_user_can( 'update_themes' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); } check_admin_referer( 'upgrade-core' ); if ( isset( $_GET['themes'] ) ) { $themes = explode( ',', $_GET['themes'] ); } elseif ( isset( $_POST['checked'] ) ) { $themes = (array) $_POST['checked']; } else { wp_redirect( admin_url( 'update-core.php' ) ); exit; } $url = 'update.php?action=update-selected-themes&themes=' . urlencode( implode( ',', $themes ) ); $url = wp_nonce_url( $url, 'bulk-update-themes' ); // Used in the HTML title tag. $title = __( 'Update Themes' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    wp_get_update_data(), ) ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'do-translation-upgrade' === $action ) { if ( ! current_user_can( 'update_languages' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); } check_admin_referer( 'upgrade-translations' ); require_once ABSPATH . 'wp-admin/admin-header.php'; require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $url = 'update-core.php?action=do-translation-upgrade'; $nonce = 'upgrade-translations'; $title = __( 'Update Translations' ); $context = WP_LANG_DIR; $upgrader = new Language_Pack_Upgrader( new Language_Pack_Upgrader_Skin( compact( 'url', 'nonce', 'title', 'context' ) ) ); $result = $upgrader->bulk_upgrade(); wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 'totals' => wp_get_update_data(), ) ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'core-major-auto-updates-settings' === $action ) { if ( ! current_user_can( 'update_core' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site.' ) ); } $redirect_url = self_admin_url( 'update-core.php' ); if ( isset( $_GET['value'] ) ) { check_admin_referer( 'core-major-auto-updates-nonce' ); if ( 'enable' === $_GET['value'] ) { update_site_option( 'auto_update_core_major', 'enabled' ); $redirect_url = add_query_arg( 'core-major-auto-updates-saved', 'enabled', $redirect_url ); } elseif ( 'disable' === $_GET['value'] ) { update_site_option( 'auto_update_core_major', 'disabled' ); $redirect_url = add_query_arg( 'core-major-auto-updates-saved', 'disabled', $redirect_url ); } } wp_redirect( $redirect_url ); exit; } else { /** * Fires for each custom update action on the WordPress Updates screen. * * The dynamic portion of the hook name, `$action`, refers to the * passed update action. The hook fires in lieu of all available * default update actions. * * @since 3.2.0 */ do_action( "update-core-custom_{$action}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } edit.php000064400000046760152213653150006222 0ustar00 true ) ), true ) ) { wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); } if ( 'attachment' === $typenow ) { if ( wp_redirect( admin_url( 'upload.php' ) ) ) { exit; } } /** * @global string $post_type Global post type. * @global WP_Post_Type $post_type_object Global post type object. */ global $post_type, $post_type_object; $post_type = $typenow; $post_type_object = get_post_type_object( $post_type ); if ( ! $post_type_object ) { wp_die( __( 'Invalid post type.' ) ); } if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '

    ', 403 ); } $wp_list_table = _get_list_table( 'WP_Posts_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); // Back-compat for viewing comments of an entry. foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) { if ( ! empty( $_REQUEST[ $_redirect ] ) ) { wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) ); exit; } } unset( $_redirect ); if ( 'post' !== $post_type ) { $parent_file = "edit.php?post_type=$post_type"; $submenu_file = "edit.php?post_type=$post_type"; $post_new_file = "post-new.php?post_type=$post_type"; } else { $parent_file = 'edit.php'; $submenu_file = 'edit.php'; $post_new_file = 'post-new.php'; } $doaction = $wp_list_table->current_action(); if ( $doaction ) { check_admin_referer( 'bulk-posts' ); $sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'locked', 'ids' ), wp_get_referer() ); if ( ! $sendback ) { $sendback = admin_url( $parent_file ); } $sendback = add_query_arg( 'paged', $pagenum, $sendback ); if ( str_contains( $sendback, 'post.php' ) ) { $sendback = admin_url( $post_new_file ); } $post_ids = array(); if ( 'delete_all' === $doaction ) { // Prepare for deletion of all posts with a specified post status (i.e. Empty Trash). $post_status = preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['post_status'] ); // Validate the post status exists. if ( get_post_status_object( $post_status ) ) { /** * @global wpdb $wpdb WordPress database abstraction object. */ global $wpdb; $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%s AND post_status = %s", $post_type, $post_status ) ); } $doaction = 'delete'; } elseif ( isset( $_REQUEST['media'] ) ) { $post_ids = $_REQUEST['media']; } elseif ( isset( $_REQUEST['ids'] ) ) { $post_ids = explode( ',', $_REQUEST['ids'] ); } elseif ( ! empty( $_REQUEST['post'] ) ) { $post_ids = array_map( 'intval', $_REQUEST['post'] ); } if ( empty( $post_ids ) ) { wp_redirect( $sendback ); exit; } switch ( $doaction ) { case 'trash': $trashed = 0; $locked = 0; foreach ( (array) $post_ids as $post_id ) { if ( ! current_user_can( 'delete_post', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) ); } if ( wp_check_post_lock( $post_id ) ) { ++$locked; continue; } if ( ! wp_trash_post( $post_id ) ) { wp_die( __( 'Error in moving the item to Trash.' ) ); } ++$trashed; } $sendback = add_query_arg( array( 'trashed' => $trashed, 'ids' => implode( ',', $post_ids ), 'locked' => $locked, ), $sendback ); break; case 'untrash': $untrashed = 0; if ( isset( $_GET['doaction'] ) && ( 'undo' === $_GET['doaction'] ) ) { add_filter( 'wp_untrash_post_status', 'wp_untrash_post_set_previous_status', 10, 3 ); } foreach ( (array) $post_ids as $post_id ) { if ( ! current_user_can( 'delete_post', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) ); } if ( ! wp_untrash_post( $post_id ) ) { wp_die( __( 'Error in restoring the item from Trash.' ) ); } ++$untrashed; } $sendback = add_query_arg( 'untrashed', $untrashed, $sendback ); remove_filter( 'wp_untrash_post_status', 'wp_untrash_post_set_previous_status', 10 ); break; case 'delete': $deleted = 0; foreach ( (array) $post_ids as $post_id ) { $post_del = get_post( $post_id ); if ( ! current_user_can( 'delete_post', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to delete this item.' ) ); } if ( 'attachment' === $post_del->post_type ) { if ( ! wp_delete_attachment( $post_id ) ) { wp_die( __( 'Error in deleting the attachment.' ) ); } } else { if ( ! wp_delete_post( $post_id ) ) { wp_die( __( 'Error in deleting the item.' ) ); } } ++$deleted; } $sendback = add_query_arg( 'deleted', $deleted, $sendback ); break; case 'edit': if ( isset( $_REQUEST['bulk_edit'] ) ) { $done = bulk_edit_posts( $_REQUEST ); if ( is_array( $done ) ) { $done['updated'] = count( $done['updated'] ); $done['skipped'] = count( $done['skipped'] ); $done['locked'] = count( $done['locked'] ); $sendback = add_query_arg( $done, $sendback ); } } break; default: $screen = get_current_screen()->id; /** * Fires when a custom bulk action should be handled. * * The redirect link should be modified with success or failure feedback * from the action to be used to display feedback to the user. * * The dynamic portion of the hook name, `$screen`, refers to the current screen ID. * * @since 4.7.0 * * @param string $sendback The redirect URL. * @param string $doaction The action being taken. * @param array $items The items to take the action on. Accepts an array of IDs of posts, * comments, terms, links, plugins, attachments, or users. */ $sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores break; } $sendback = remove_query_arg( array( 'action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view' ), $sendback ); wp_redirect( $sendback ); exit; } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); exit; } $wp_list_table->prepare_items(); wp_enqueue_script( 'inline-edit-post' ); wp_enqueue_script( 'heartbeat' ); if ( 'wp_block' === $post_type ) { wp_enqueue_script( 'wp-list-reusable-blocks' ); wp_enqueue_style( 'wp-list-reusable-blocks' ); } // Used in the HTML title tag. $title = $post_type_object->labels->name; if ( 'post' === $post_type ) { get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'screen-content', 'title' => __( 'Screen Content' ), 'content' => '

    ' . __( 'You can customize the display of this screen’s contents in a number of ways:' ) . '

    ' . '
      ' . '
    • ' . __( 'You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.' ) . '
    • ' . '
    • ' . __( 'You can filter the list of posts by post status using the text links above the posts list to only show posts with that status. The default view is to show all posts.' ) . '
    • ' . '
    • ' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '
    • ' . '
    • ' . __( 'You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.' ) . '
    • ' . '
    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'action-links', 'title' => __( 'Available Actions' ), 'content' => '

    ' . __( 'Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:' ) . '

    ' . '
      ' . '
    • ' . __( 'Edit takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '
    • ' . '
    • ' . __( 'Quick Edit provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '
    • ' . '
    • ' . __( 'Trash removes your post from this list and places it in the Trash, from which you can permanently delete it.' ) . '
    • ' . '
    • ' . __( 'Preview will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post’s status.' ) . '
    • ' . '
    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'bulk-actions', 'title' => __( 'Bulk actions' ), 'content' => '

    ' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk actions menu and click Apply.' ) . '

    ' . '

    ' . sprintf( /* translators: %s: The dismiss dashicon used for buttons that dismiss or remove. */ __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the %sremove button next to its name in the Bulk Edit area that appears.' ), '' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Managing Posts' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); } elseif ( 'page' === $post_type ) { get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the “Parent” of the other, creating a group of pages.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'managing-pages', 'title' => __( 'Managing Pages' ), 'content' => '

    ' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '

    ' . '

    ' . __( 'You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk actions menu to edit the metadata for multiple pages at once.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Managing Pages' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); } get_current_screen()->set_screen_reader_content( array( 'heading_views' => $post_type_object->labels->filter_items_list, 'heading_pagination' => $post_type_object->labels->items_list_navigation, 'heading_list' => $post_type_object->labels->items_list, ) ); add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page', ) ); $bulk_counts = array( 'updated' => isset( $_REQUEST['updated'] ) ? absint( $_REQUEST['updated'] ) : 0, 'locked' => isset( $_REQUEST['locked'] ) ? absint( $_REQUEST['locked'] ) : 0, 'deleted' => isset( $_REQUEST['deleted'] ) ? absint( $_REQUEST['deleted'] ) : 0, 'trashed' => isset( $_REQUEST['trashed'] ) ? absint( $_REQUEST['trashed'] ) : 0, 'untrashed' => isset( $_REQUEST['untrashed'] ) ? absint( $_REQUEST['untrashed'] ) : 0, ); $bulk_messages = array(); $bulk_messages['post'] = array( /* translators: %s: Number of posts. */ 'updated' => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ), 'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) : /* translators: %s: Number of posts. */ _n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ), /* translators: %s: Number of posts. */ 'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ), /* translators: %s: Number of posts. */ 'trashed' => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ), /* translators: %s: Number of posts. */ 'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ), ); $bulk_messages['page'] = array( /* translators: %s: Number of pages. */ 'updated' => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ), 'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) : /* translators: %s: Number of pages. */ _n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ), /* translators: %s: Number of pages. */ 'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ), /* translators: %s: Number of pages. */ 'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ), /* translators: %s: Number of pages. */ 'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ), ); $bulk_messages['wp_block'] = array( /* translators: %s: Number of patterns. */ 'updated' => _n( '%s pattern updated.', '%s patterns updated.', $bulk_counts['updated'] ), 'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 pattern not updated, somebody is editing it.' ) : /* translators: %s: Number of patterns. */ _n( '%s pattern not updated, somebody is editing it.', '%s patterns not updated, somebody is editing them.', $bulk_counts['locked'] ), /* translators: %s: Number of patterns. */ 'deleted' => _n( '%s pattern permanently deleted.', '%s patterns permanently deleted.', $bulk_counts['deleted'] ), /* translators: %s: Number of patterns. */ 'trashed' => _n( '%s pattern moved to the Trash.', '%s patterns moved to the Trash.', $bulk_counts['trashed'] ), /* translators: %s: Number of patterns. */ 'untrashed' => _n( '%s pattern restored from the Trash.', '%s patterns restored from the Trash.', $bulk_counts['untrashed'] ), ); /** * Filters the bulk action updated messages. * * By default, custom post types use the messages for the 'post' post type. * * @since 3.7.0 * * @param array[] $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are * keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'. * @param int[] $bulk_counts Array of item counts for each message, used to build internationalized strings. */ $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts ); $bulk_counts = array_filter( $bulk_counts ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    labels->name ); ?>

    cap->create_posts ) ) { echo ' ' . esc_html( $post_type_object->labels->add_new_item ) . ''; } if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { echo ''; printf( /* translators: %s: Search query. */ __( 'Search results for: %s' ), '' . get_search_query() . '' ); echo ''; } ?>
    $count ) { if ( isset( $bulk_messages[ $post_type ][ $message ] ) ) { $messages[] = sprintf( $bulk_messages[ $post_type ][ $message ], number_format_i18n( $count ) ); } elseif ( isset( $bulk_messages['post'][ $message ] ) ) { $messages[] = sprintf( $bulk_messages['post'][ $message ], number_format_i18n( $count ) ); } if ( 'trashed' === $message && isset( $_REQUEST['ids'] ) ) { $ids = preg_replace( '/[^0-9,]/', '', $_REQUEST['ids'] ); $messages[] = sprintf( '%2$s', esc_url( wp_nonce_url( "edit.php?post_type=$post_type&doaction=undo&action=untrash&ids=$ids", 'bulk-posts' ) ), __( 'Undo' ) ); } if ( 'untrashed' === $message && isset( $_REQUEST['ids'] ) ) { $ids = explode( ',', $_REQUEST['ids'] ); if ( 1 === count( $ids ) && current_user_can( 'edit_post', $ids[0] ) ) { $messages[] = sprintf( '%2$s', esc_url( get_edit_post_link( $ids[0] ) ), esc_html( get_post_type_object( get_post_type( $ids[0] ) )->labels->edit_item ) ); } } } if ( $messages ) { wp_admin_notice( implode( ' ', $messages ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } unset( $messages ); $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated', 'deleted', 'trashed', 'untrashed' ), $_SERVER['REQUEST_URI'] ); ?> views(); ?>
    search_box( $post_type_object->labels->search_items, 'post' ); ?> display(); ?>
    has_items() ) { $wp_list_table->inline_edit(); } ?>
    is_block_editor( true ); $block_editor_context = new WP_Block_Editor_Context( array( 'name' => 'core/edit-widgets' ) ); $preload_paths = array( array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), '/wp/v2/widget-types?context=edit&per_page=-1', '/wp/v2/sidebars?context=edit&per_page=-1', '/wp/v2/widgets?context=edit&per_page=-1&_embed=about', ); block_editor_rest_api_preload( $preload_paths, $block_editor_context ); $editor_settings = get_block_editor_settings( array_merge( get_legacy_widget_block_editor_settings(), array( 'styles' => get_block_editor_theme_styles() ) ), $block_editor_context ); // The widgets editor does not support the Block Directory, so don't load any of // its assets. This also prevents 'wp-editor' from being enqueued which we // cannot load in the widgets screen because many widget scripts rely on `wp.editor`. remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' ); wp_add_inline_script( 'wp-edit-widgets', sprintf( 'wp.domReady( function() { wp.editWidgets.initialize( "widgets-editor", %s ); } );', wp_json_encode( $editor_settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) ); // Preload server-registered block schemas. wp_add_inline_script( 'wp-blocks', 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ');' ); // Preload server-registered block bindings sources. $registered_sources = get_all_registered_block_bindings_sources(); if ( ! empty( $registered_sources ) ) { $filtered_sources = array(); foreach ( $registered_sources as $source ) { $filtered_sources[] = array( 'name' => $source->name, 'label' => $source->label, 'usesContext' => $source->uses_context, ); } $script = sprintf( 'for ( const source of %s ) { wp.blocks.registerBlockBindingsSource( source ); }', wp_json_encode( $filtered_sources, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); wp_add_inline_script( 'wp-blocks', $script ); } wp_add_inline_script( 'wp-blocks', sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ), 'after' ); wp_enqueue_script( 'wp-edit-widgets' ); wp_enqueue_script( 'admin-widgets' ); wp_enqueue_style( 'wp-edit-widgets' ); /** This action is documented in wp-admin/edit-form-blocks.php */ do_action( 'enqueue_block_editor_assets' ); /** This action is documented in wp-admin/widgets-form.php */ do_action( 'sidebar_admin_setup' ); require_once ABSPATH . 'wp-admin/admin-header.php'; /** This action is documented in wp-admin/widgets-form.php */ do_action( 'widgets_admin_page' ); ?>

    Classic Widgets plugin.' ), esc_url( $plugin_activate_url ) ); } else { // If Classic Widgets is not installed, provide a link to install it. $installed = false; $plugin_install_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=classic-widgets' ), 'install-plugin_classic-widgets' ); $message = sprintf( /* translators: %s: A link to install the Classic Widgets plugin. */ __( 'The block widgets require JavaScript. Please enable JavaScript in your browser settings, or install the Classic Widgets plugin.' ), esc_url( $plugin_install_url ) ); } /** * Filters the message displayed in the block widget interface when JavaScript is * not enabled in the browser. * * @since 6.4.0 * * @param string $message The message being displayed. * @param bool $installed Whether the Classic Widget plugin is installed. */ $message = apply_filters( 'block_widgets_no_javascript_message', $message, $installed ); wp_admin_notice( $message, array( 'type' => 'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>
    add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '

    ' . '
      ' . '
    • ' . __( 'Drag and drop your files into the area below. Multiple files are allowed.' ) . '
    • ' . '
    • ' . __( 'Clicking Select Files opens a navigation window showing you files in your operating system. Selecting Open after clicking on the file you want activates a progress bar on the uploader screen.' ) . '
    • ' . '
    • ' . __( 'Revert to the Browser Uploader by clicking the link below the drag and drop box.' ) . '
    • ' . '
    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Uploading Media Files' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; $form_class = 'wp-upload-form media-upload-form type-form validate'; if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) { $form_class .= ' html-uploader'; } ?>

    %s', $update_data['counts']['total'], number_format_i18n( $update_data['counts']['total'] ) ) ), $capability, 'update-core.php', ); unset( $capability ); } $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); // $menu[5] = Posts. $menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' ); $submenu['upload.php'][5] = array( _x( 'Library', 'media library menu item' ), 'upload_files', 'upload.php' ); $submenu['upload.php'][10] = array( __( 'Add Media File' ), 'upload_files', 'media-new.php' ); $submenu_index = 15; foreach ( get_taxonomies_for_attachments( 'objects' ) as $taxonomy ) { if ( ! $taxonomy->show_ui || ! $taxonomy->show_in_menu ) { continue; } $submenu['upload.php'][ $submenu_index++ ] = array( esc_attr( $taxonomy->labels->menu_name ), $taxonomy->cap->manage_terms, 'edit-tags.php?taxonomy=' . $taxonomy->name . '&post_type=attachment' ); } unset( $taxonomy, $submenu_index ); $menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' ); $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' ); $submenu['link-manager.php'][10] = array( __( 'Add Link' ), 'manage_links', 'link-add.php' ); $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); // $menu[20] = Pages. // Avoid the comment count query for users who cannot edit_posts. if ( current_user_can( 'edit_posts' ) ) { $awaiting_moderation = wp_count_comments(); $awaiting_moderation = $awaiting_moderation->moderated; $awaiting_moderation_i18n = number_format_i18n( $awaiting_moderation ); /* translators: %s: Number of comments. */ $awaiting_moderation_text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $awaiting_moderation ), $awaiting_moderation_i18n ); $menu[25] = array( /* translators: %s: Number of comments. */ sprintf( __( 'Comments %s' ), '' . $awaiting_moderation_text . '' ), 'edit_posts', 'edit-comments.php', '', 'menu-top menu-icon-comments', 'menu-comments', 'dashicons-admin-comments', ); unset( $awaiting_moderation ); } $submenu['edit-comments.php'][0] = array( __( 'All Comments' ), 'edit_posts', 'edit-comments.php' ); $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group. $post_types = (array) get_post_types( array( 'show_ui' => true, '_builtin' => false, 'show_in_menu' => true, ) ); $builtin = array( 'post', 'page' ); foreach ( array_merge( $builtin, $post_types ) as $post_type ) { $post_type_obj = get_post_type_object( $post_type ); // Check if it should be a submenu. if ( true !== $post_type_obj->show_in_menu ) { continue; } $post_type_menu_position = is_int( $post_type_obj->menu_position ) ? $post_type_obj->menu_position : ++$_wp_last_object_menu; // If we're to use $_wp_last_object_menu, increment it first. $post_type_for_id = sanitize_html_class( $post_type ); $menu_icon = 'dashicons-admin-post'; if ( is_string( $post_type_obj->menu_icon ) ) { // Special handling for an empty div.wp-menu-image, data:image/svg+xml, and Dashicons. if ( 'none' === $post_type_obj->menu_icon || 'div' === $post_type_obj->menu_icon || str_starts_with( $post_type_obj->menu_icon, 'data:image/svg+xml;base64,' ) || str_starts_with( $post_type_obj->menu_icon, 'dashicons-' ) ) { $menu_icon = $post_type_obj->menu_icon; } else { $menu_icon = esc_url( $post_type_obj->menu_icon ); } } elseif ( in_array( $post_type, $builtin, true ) ) { $menu_icon = 'dashicons-admin-' . $post_type; } $menu_class = 'menu-top menu-icon-' . $post_type_for_id; // 'post' special case. if ( 'post' === $post_type ) { $menu_class .= ' open-if-no-js'; $post_type_file = 'edit.php'; $post_new_file = 'post-new.php'; $edit_tags_file = 'edit-tags.php?taxonomy=%s'; } else { $post_type_file = "edit.php?post_type=$post_type"; $post_new_file = "post-new.php?post_type=$post_type"; $edit_tags_file = "edit-tags.php?taxonomy=%s&post_type=$post_type"; } if ( in_array( $post_type, $builtin, true ) ) { $post_type_menu_id = 'menu-' . $post_type_for_id . 's'; } else { $post_type_menu_id = 'menu-posts-' . $post_type_for_id; } /* * If $post_type_menu_position is already populated or will be populated * by a hard-coded value below, increment the position. */ $core_menu_positions = array( 59, 60, 65, 70, 75, 80, 85, 99 ); while ( isset( $menu[ $post_type_menu_position ] ) || in_array( $post_type_menu_position, $core_menu_positions, true ) ) { ++$post_type_menu_position; } $menu[ $post_type_menu_position ] = array( esc_attr( $post_type_obj->labels->menu_name ), $post_type_obj->cap->edit_posts, $post_type_file, '', $menu_class, $post_type_menu_id, $menu_icon ); $submenu[ $post_type_file ][5] = array( $post_type_obj->labels->all_items, $post_type_obj->cap->edit_posts, $post_type_file ); $submenu[ $post_type_file ][10] = array( $post_type_obj->labels->add_new_item, $post_type_obj->cap->create_posts, $post_new_file ); $submenu_index = 15; foreach ( get_taxonomies( array(), 'objects' ) as $taxonomy ) { if ( ! $taxonomy->show_ui || ! $taxonomy->show_in_menu || ! in_array( $post_type, (array) $taxonomy->object_type, true ) ) { continue; } $submenu[ $post_type_file ][ $submenu_index++ ] = array( esc_attr( $taxonomy->labels->menu_name ), $taxonomy->cap->manage_terms, sprintf( $edit_tags_file, $taxonomy->name ) ); } } unset( $post_type, $post_type_obj, $post_type_for_id, $post_type_menu_position, $menu_icon, $submenu_index, $taxonomy, $post_new_file ); $menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' ); $appearance_capability = current_user_can( 'switch_themes' ) ? 'switch_themes' : 'edit_theme_options'; $menu[60] = array( __( 'Appearance' ), $appearance_capability, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); $count = ''; if ( ! is_multisite() && current_user_can( 'update_themes' ) ) { if ( ! isset( $update_data ) ) { $update_data = wp_get_update_data(); } $count = sprintf( '%s', $update_data['counts']['themes'], number_format_i18n( $update_data['counts']['themes'] ) ); } /* translators: %s: Number of available theme updates. */ $submenu['themes.php'][5] = array( sprintf( __( 'Themes %s' ), $count ), $appearance_capability, 'themes.php' ); if ( wp_is_block_theme() ) { $submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' ); } else { $supports_stylebook = ( current_theme_supports( 'editor-styles' ) || wp_theme_has_theme_json() ); if ( $supports_stylebook ) { $submenu['themes.php'][6] = array( _x( 'Design', 'design menu item' ), 'edit_theme_options', 'site-editor.php' ); } else { $submenu['themes.php'][6] = array( _x( 'Patterns', 'patterns menu item' ), 'edit_theme_options', 'site-editor.php?p=/pattern' ); } } // Font Library menu item. $submenu['themes.php'][9] = array( __( 'Fonts' ), 'edit_theme_options', 'font-library.php' ); $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); // Hide Customize link on block themes unless a plugin or theme // is using 'customize_register' to add a setting. if ( ! wp_is_block_theme() || has_action( 'customize_register' ) ) { $submenu['themes.php'][7] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); } if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { $submenu['themes.php'][10] = array( __( 'Menus' ), 'edit_theme_options', 'nav-menus.php' ); } if ( current_theme_supports( 'custom-header' ) && current_user_can( 'customize' ) ) { $customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url ); $submenu['themes.php'][15] = array( _x( 'Header', 'custom image header' ), $appearance_capability, esc_url( $customize_header_url ), '', 'hide-if-no-customize' ); } if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize' ) ) { $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); $submenu['themes.php'][20] = array( _x( 'Background', 'custom background' ), $appearance_capability, esc_url( $customize_background_url ), '', 'hide-if-no-customize' ); } unset( $customize_url, $appearance_capability ); // Add 'Theme File Editor' to the bottom of the Appearance (non-block themes) or Tools (block themes) menu. if ( ! is_multisite() ) { // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook. add_action( 'admin_menu', '_add_themes_utility_last', 101 ); } /** * Adds the 'Theme File Editor' menu item to the bottom of the Appearance (non-block themes) * or Tools (block themes) menu. * * @access private * @since 3.0.0 * @since 5.9.0 Renamed 'Theme Editor' to 'Theme File Editor'. * Relocates to Tools for block themes. */ function _add_themes_utility_last() { add_submenu_page( wp_is_block_theme() ? 'tools.php' : 'themes.php', __( 'Theme File Editor' ), __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' ); } /** * Adds the 'Plugin File Editor' menu item after the 'Themes File Editor' in Tools * for block themes. * * @access private * @since 5.9.0 */ function _add_plugin_file_editor_to_tools() { if ( ! wp_is_block_theme() ) { return; } add_submenu_page( 'tools.php', __( 'Plugin File Editor' ), __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' ); } $count = ''; if ( ! is_multisite() && current_user_can( 'update_plugins' ) ) { if ( ! isset( $update_data ) ) { $update_data = wp_get_update_data(); } $count = sprintf( '%s', $update_data['counts']['plugins'], number_format_i18n( $update_data['counts']['plugins'] ) ); } /* translators: %s: Number of available plugin updates. */ $menu[65] = array( sprintf( __( 'Plugins %s' ), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' ); if ( ! is_multisite() ) { $submenu['plugins.php'][10] = array( __( 'Add Plugin' ), 'install_plugins', 'plugin-install.php' ); if ( wp_is_block_theme() ) { // Place the menu item below the Theme File Editor menu item. add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 ); } else { $submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' ); } } unset( $update_data ); if ( current_user_can( 'list_users' ) ) { $menu[70] = array( __( 'Users' ), 'list_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' ); } else { $menu[70] = array( __( 'Profile' ), 'read', 'profile.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' ); } if ( current_user_can( 'list_users' ) ) { $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. $submenu['users.php'][5] = array( __( 'All Users' ), 'list_users', 'users.php' ); if ( current_user_can( 'create_users' ) ) { $submenu['users.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' ); } elseif ( is_multisite() ) { $submenu['users.php'][10] = array( __( 'Add User' ), 'promote_users', 'user-new.php' ); } $submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' ); } else { $_wp_real_parent_file['users.php'] = 'profile.php'; $submenu['profile.php'][5] = array( __( 'Profile' ), 'read', 'profile.php' ); if ( current_user_can( 'create_users' ) ) { $submenu['profile.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' ); } elseif ( is_multisite() ) { $submenu['profile.php'][10] = array( __( 'Add User' ), 'promote_users', 'user-new.php' ); } } $site_health_count = ''; if ( ! is_multisite() && current_user_can( 'view_site_health_checks' ) ) { $get_issues = get_transient( 'health-check-site-status-result' ); $issue_counts = array(); if ( false !== $get_issues ) { $issue_counts = json_decode( $get_issues, true ); } if ( ! is_array( $issue_counts ) || ! $issue_counts ) { $issue_counts = array( 'good' => 0, 'recommended' => 0, 'critical' => 0, ); } $site_health_count = sprintf( '%s', $issue_counts['critical'], number_format_i18n( $issue_counts['critical'] ) ); } $menu[75] = array( __( 'Tools' ), 'edit_posts', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'dashicons-admin-tools' ); $submenu['tools.php'][5] = array( __( 'Available Tools' ), 'edit_posts', 'tools.php' ); $submenu['tools.php'][10] = array( __( 'Import' ), 'import', 'import.php' ); $submenu['tools.php'][15] = array( __( 'Export' ), 'export', 'export.php' ); /* translators: %s: Number of critical Site Health checks. */ $submenu['tools.php'][20] = array( sprintf( __( 'Site Health %s' ), $site_health_count ), 'view_site_health_checks', 'site-health.php' ); $submenu['tools.php'][25] = array( __( 'Export Personal Data' ), 'export_others_personal_data', 'export-personal-data.php' ); $submenu['tools.php'][30] = array( __( 'Erase Personal Data' ), 'erase_others_personal_data', 'erase-personal-data.php' ); if ( is_multisite() && ! is_main_site() && '1' !== get_site()->deleted ) { $submenu['tools.php'][35] = array( __( 'Delete Site' ), 'delete_site', 'ms-delete-site.php' ); } if ( ! is_multisite() && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) { $submenu['tools.php'][50] = array( __( 'Network Setup' ), 'setup_network', 'network.php' ); } $menu[80] = array( __( 'Settings' ), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); $submenu['options-general.php'][10] = array( _x( 'General', 'settings screen' ), 'manage_options', 'options-general.php' ); $submenu['options-general.php'][12] = array( __( 'Connectors' ), 'manage_options', 'options-connectors.php' ); $submenu['options-general.php'][15] = array( __( 'Writing' ), 'manage_options', 'options-writing.php' ); $submenu['options-general.php'][20] = array( __( 'Reading' ), 'manage_options', 'options-reading.php' ); $submenu['options-general.php'][25] = array( __( 'Discussion' ), 'manage_options', 'options-discussion.php' ); $submenu['options-general.php'][30] = array( __( 'Media' ), 'manage_options', 'options-media.php' ); $submenu['options-general.php'][40] = array( __( 'Permalinks' ), 'manage_options', 'options-permalink.php' ); $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'options-privacy.php' ); $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group. $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' ); // Back-compat for old top-levels. $_wp_real_parent_file['post.php'] = 'edit.php'; $_wp_real_parent_file['post-new.php'] = 'edit.php'; $_wp_real_parent_file['edit-pages.php'] = 'edit.php?post_type=page'; $_wp_real_parent_file['page-new.php'] = 'edit.php?post_type=page'; $_wp_real_parent_file['wpmu-admin.php'] = 'tools.php'; $_wp_real_parent_file['ms-admin.php'] = 'tools.php'; // Ensure backward compatibility. $compat = array( 'index' => 'dashboard', 'edit' => 'posts', 'post' => 'posts', 'upload' => 'media', 'link-manager' => 'links', 'edit-pages' => 'pages', 'page' => 'pages', 'edit-comments' => 'comments', 'options-general' => 'settings', 'themes' => 'appearance', ); require_once ABSPATH . 'wp-admin/includes/menu.php'; ms-edit.php000064400000000330152213653150006616 0ustar00' . __( 'You need a higher level of permission.' ) . '' . '

    ' . __( 'Sorry, you are not allowed to list users.' ) . '

    ', 403 ); } $wp_list_table = _get_list_table( 'WP_Users_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); // Used in the HTML title tag. $title = __( 'Users' ); $parent_file = 'users.php'; add_screen_option( 'per_page' ); // Contextual help - choose Help on the top right of admin panel to preview this. get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.' ) . '

    ' . '

    ' . __( 'To add a new user for your site, click the Add User button at the top of the screen or Add User in the Users menu section.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'screen-content', 'title' => __( 'Screen Content' ), 'content' => '

    ' . __( 'You can customize the display of this screen in a number of ways:' ) . '

    ' . '
      ' . '
    • ' . __( 'You can hide/display columns based on your needs and decide how many users to list per screen using the Screen Options tab.' ) . '
    • ' . '
    • ' . __( 'You can filter the list of users by User Role using the text links above the users list to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users. Unused User Roles are not listed.' ) . '
    • ' . '
    • ' . __( 'You can view all posts made by a user by clicking on the number under the Posts column.' ) . '
    • ' . '
    ', ) ); $help = '

    ' . __( 'Hovering over a row in the users list will display action links that allow you to manage users. You can perform the following actions:' ) . '

    ' . '
      ' . '
    • ' . __( 'Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.' ) . '
    • '; if ( is_multisite() ) { $help .= '
    • ' . __( 'Remove allows you to remove a user from your site. It does not delete their content. You can also remove multiple users at once by using bulk actions.' ) . '
    • '; } else { $help .= '
    • ' . __( 'Delete brings you to the Delete Users screen for confirmation, where you can permanently remove a user from your site and delete their content. You can also delete multiple users at once by using bulk actions.' ) . '
    • '; } $help .= '
    • ' . __( 'View takes you to a public author archive which lists all the posts published by the user.' ) . '
    • '; if ( current_user_can( 'edit_users' ) ) { $help .= '
    • ' . __( 'Send password reset sends the user an email with a link to set a new password.' ) . '
    • '; } $help .= '
    '; get_current_screen()->add_help_tab( array( 'id' => 'action-links', 'title' => __( 'Available Actions' ), 'content' => $help, ) ); unset( $help ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Managing Users' ) . '

    ' . '

    ' . __( 'Descriptions of Roles and Capabilities' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); get_current_screen()->set_screen_reader_content( array( 'heading_views' => __( 'Filter users list' ), 'heading_pagination' => __( 'Users list navigation' ), 'heading_list' => __( 'Users list' ), ) ); if ( empty( $_REQUEST ) ) { $referer = ''; } elseif ( isset( $_REQUEST['wp_http_referer'] ) ) { $redirect = remove_query_arg( array( 'wp_http_referer', 'updated', 'delete_count' ), wp_unslash( $_REQUEST['wp_http_referer'] ) ); $referer = ''; } else { $redirect = 'users.php'; $referer = ''; } $update = ''; switch ( $wp_list_table->current_action() ) { /* Bulk Dropdown menu Role changes */ case 'promote': check_admin_referer( 'bulk-users' ); if ( ! current_user_can( 'promote_users' ) ) { wp_die( __( 'Sorry, you are not allowed to edit this user.' ), 403 ); } if ( empty( $_REQUEST['users'] ) ) { wp_redirect( $redirect ); exit; } $editable_roles = get_editable_roles(); $role = $_REQUEST['new_role']; // Mock `none` as editable role. $editable_roles['none'] = array( 'name' => __( '— No role for this site —' ), ); if ( ! $role || empty( $editable_roles[ $role ] ) ) { wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 ); } if ( 'none' === $role ) { $role = ''; } $user_ids = array_map( 'intval', (array) $_REQUEST['users'] ); $update = 'promote'; foreach ( $user_ids as $id ) { if ( ! current_user_can( 'promote_user', $id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this user.' ), 403 ); } // The new role of the current user must also have the promote_users cap, be a multisite super admin and must not be empty. if ( $id === $current_user->ID ) { if ( '' === $role ) { wp_die( __( 'Sorry, you cannot remove your own role.' ), 403 ); } if ( $wp_roles->role_objects[ $role ]->has_cap( 'promote_users' ) || ( is_multisite() && current_user_can( 'manage_network_users' ) ) ) { continue; } $update = 'err_admin_role'; continue; } // If the user doesn't already belong to the blog, bail. if ( is_multisite() && ! is_user_member_of_blog( $id ) ) { wp_die( '

    ' . __( 'An error occurred.' ) . '

    ' . '

    ' . __( 'One of the selected users is not a member of this site.' ) . '

    ', 403 ); } $user = get_userdata( $id ); // If $role is empty, none will be set. $user->set_role( $role ); } wp_redirect( add_query_arg( 'update', $update, $redirect ) ); exit; case 'dodelete': if ( is_multisite() ) { wp_die( __( 'User deletion is not allowed from this screen.' ), 400 ); } check_admin_referer( 'delete-users' ); if ( empty( $_REQUEST['users'] ) ) { wp_redirect( $redirect ); exit; } $user_ids = array_map( 'intval', (array) $_REQUEST['users'] ); if ( empty( $_REQUEST['delete_option'] ) ) { $url = self_admin_url( 'users.php?action=delete&users[]=' . implode( '&users[]=', $user_ids ) . '&error=true' ); $url = str_replace( '&', '&', wp_nonce_url( $url, 'bulk-users' ) ); wp_redirect( $url ); exit; } if ( ! current_user_can( 'delete_users' ) ) { wp_die( __( 'Sorry, you are not allowed to delete users.' ), 403 ); } $update = 'del'; $delete_count = 0; foreach ( $user_ids as $id ) { if ( ! current_user_can( 'delete_user', $id ) ) { wp_die( __( 'Sorry, you are not allowed to delete that user.' ), 403 ); } if ( $id === $current_user->ID ) { $update = 'err_admin_del'; continue; } switch ( $_REQUEST['delete_option'] ) { case 'delete': wp_delete_user( $id ); break; case 'reassign': wp_delete_user( $id, $_REQUEST['reassign_user'] ); break; } ++$delete_count; } $redirect = add_query_arg( array( 'delete_count' => $delete_count, 'update' => $update, ), $redirect ); wp_redirect( $redirect ); exit; case 'resetpassword': check_admin_referer( 'bulk-users' ); if ( ! current_user_can( 'edit_users' ) ) { $errors = new WP_Error( 'edit_users', __( 'Sorry, you are not allowed to edit users.' ) ); } if ( empty( $_REQUEST['users'] ) ) { wp_redirect( $redirect ); exit(); } $user_ids = array_map( 'intval', (array) $_REQUEST['users'] ); $reset_count = 0; foreach ( $user_ids as $id ) { if ( ! current_user_can( 'edit_user', $id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this user.' ) ); } if ( $id === $current_user->ID ) { $update = 'err_admin_reset'; continue; } // Send the password reset link. $user = get_userdata( $id ); if ( true === retrieve_password( $user->user_login ) ) { ++$reset_count; } } $redirect = add_query_arg( array( 'reset_count' => $reset_count, 'update' => 'resetpassword', ), $redirect ); wp_redirect( $redirect ); exit; case 'delete': if ( is_multisite() ) { wp_die( __( 'User deletion is not allowed from this screen.' ), 400 ); } check_admin_referer( 'bulk-users' ); if ( empty( $_REQUEST['users'] ) && empty( $_REQUEST['user'] ) ) { wp_redirect( $redirect ); exit; } if ( ! current_user_can( 'delete_users' ) ) { $errors = new WP_Error( 'edit_users', __( 'Sorry, you are not allowed to delete users.' ) ); } if ( empty( $_REQUEST['users'] ) ) { $user_ids = array( (int) $_REQUEST['user'] ); } else { $user_ids = array_map( 'intval', (array) $_REQUEST['users'] ); } $all_user_ids = $user_ids; if ( in_array( $current_user->ID, $user_ids, true ) ) { $user_ids = array_diff( $user_ids, array( $current_user->ID ) ); } /** * Filters whether the users being deleted have additional content * associated with them outside of the `post_author` and `link_owner` relationships. * * @since 5.2.0 * * @param bool $users_have_additional_content Whether the users have additional content. Default false. * @param int[] $user_ids Array of IDs for users being deleted. */ $users_have_content = (bool) apply_filters( 'users_have_additional_content', false, $user_ids ); if ( $user_ids && ! $users_have_content ) { if ( $wpdb->get_var( "SELECT ID FROM {$wpdb->posts} WHERE post_author IN( " . implode( ',', $user_ids ) . ' ) LIMIT 1' ) ) { $users_have_content = true; } elseif ( $wpdb->get_var( "SELECT link_id FROM {$wpdb->links} WHERE link_owner IN( " . implode( ',', $user_ids ) . ' ) LIMIT 1' ) ) { $users_have_content = true; } } if ( $users_have_content ) { add_action( 'admin_head', 'delete_users_add_js' ); } require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    ' . __( 'Error:' ) . ' ' . __( 'Please select an option.' ), array( 'additional_classes' => array( 'error' ), ) ); endif; ?>

      ID ) { echo '
    • '; printf( /* translators: 1: User ID, 2: User login. */ __( 'ID #%1$s: %2$s The current user will not be deleted.' ), $id, $user->user_login ); echo "
    • \n"; } else { echo '
    • '; printf( '', esc_attr( $id ) ); printf( /* translators: 1: User ID, 2: User login. */ __( 'ID #%1$s: %2$s' ), $id, $user->user_login ); echo "
    • \n"; ++$go_delete; } } ?>

    • 'reassign_user', 'exclude' => $user_ids, 'show' => 'display_name_with_login', ) ); ?>

    $update ), $redirect ); wp_redirect( $redirect ); exit; case 'remove': check_admin_referer( 'bulk-users' ); if ( ! is_multisite() ) { wp_die( __( 'You cannot remove users.' ), 400 ); } if ( empty( $_REQUEST['users'] ) && empty( $_REQUEST['user'] ) ) { wp_redirect( $redirect ); exit; } if ( ! current_user_can( 'remove_users' ) ) { $error = new WP_Error( 'edit_users', __( 'Sorry, you are not allowed to remove users.' ) ); } if ( empty( $_REQUEST['users'] ) ) { $user_ids = array( (int) $_REQUEST['user'] ); } else { $user_ids = array_map( 'intval', (array) $_REQUEST['users'] ); } require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      '; printf( /* translators: 1: User ID, 2: User login. */ __( 'ID #%1$s: %2$s Sorry, you are not allowed to remove this user.' ), $id, $user->user_login ); echo "\n"; } else { echo '
    • '; printf( '', esc_attr( $id ) ); printf( /* translators: 1: User ID, 2: User login. */ __( 'ID #%1$s: %2$s' ), $id, $user->user_login ); echo "
    • \n"; $go_remove = true; } } ?>

    current_action() && ! empty( $_REQUEST['users'] ) ) { $screen = get_current_screen()->id; $sendback = wp_get_referer(); $user_ids = array_map( 'intval', (array) $_REQUEST['users'] ); /** This action is documented in wp-admin/edit.php */ $sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $wp_list_table->current_action(), $user_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores wp_safe_redirect( $sendback ); exit; } $wp_list_table->prepare_items(); $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); if ( $pagenum > $total_pages && $total_pages > 0 ) { wp_redirect( add_query_arg( 'paged', $total_pages ) ); exit; } require_once ABSPATH . 'wp-admin/admin-header.php'; $messages = array(); if ( isset( $_GET['update'] ) ) : switch ( $_GET['update'] ) { case 'del': case 'del_many': $delete_count = isset( $_GET['delete_count'] ) ? (int) $_GET['delete_count'] : 0; if ( 1 === $delete_count ) { $message = __( 'User deleted.' ); } else { /* translators: %s: Number of users. */ $message = _n( '%s user deleted.', '%s users deleted.', $delete_count ); } $message = sprintf( $message, number_format_i18n( $delete_count ) ); $messages[] = wp_get_admin_notice( $message, array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); break; case 'add': $message = __( 'New user created.' ); $user_id = $_GET['id'] ?? false; if ( $user_id && current_user_can( 'edit_user', $user_id ) ) { $message .= sprintf( ' %2$s', esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), self_admin_url( 'user-edit.php?user_id=' . $user_id ) ) ), __( 'Edit user' ) ); } $messages[] = wp_get_admin_notice( $message, array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); break; case 'resetpassword': $reset_count = isset( $_GET['reset_count'] ) ? (int) $_GET['reset_count'] : 0; if ( 1 === $reset_count ) { $message = __( 'Password reset link sent.' ); } else { /* translators: %s: Number of users. */ $message = _n( 'Password reset links sent to %s user.', 'Password reset links sent to %s users.', $reset_count ); } $message = sprintf( $message, number_format_i18n( $reset_count ) ); $messages[] = wp_get_admin_notice( $message, array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); break; case 'promote': $messages[] = wp_get_admin_notice( __( 'Changed roles.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); break; case 'err_admin_role': $messages[] = wp_get_admin_notice( __( 'You cannot change your own role to one that does not allow managing other users. Your role was not changed.' ), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); $messages[] = wp_get_admin_notice( __( 'Other user roles have been changed.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); break; case 'err_admin_del': $messages[] = wp_get_admin_notice( __( 'You cannot delete the current user.' ), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); $messages[] = wp_get_admin_notice( __( 'Other users have been deleted.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); break; case 'remove': $messages[] = wp_get_admin_notice( __( 'User removed from this site.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated', 'fade' ), 'dismissible' => true, ) ); break; case 'err_admin_remove': $messages[] = wp_get_admin_notice( __( 'You cannot remove the current user.' ), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); $messages[] = wp_get_admin_notice( __( 'Other users have been removed.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated', 'fade' ), 'dismissible' => true, ) ); break; } endif; ?> get_error_messages() as $err ) { $error_message .= "
  • $err
  • \n"; } wp_admin_notice( '
      ' . $error_message . '
    ', array( 'additional_classes' => array( 'error' ), ) ); endif; if ( ! empty( $messages ) ) { foreach ( $messages as $msg ) { echo $msg; } } ?>

    %2$s', esc_url( admin_url( 'user-new.php' ) ), esc_html__( 'Add User' ) ); } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { printf( '%2$s', esc_url( admin_url( 'user-new.php' ) ), esc_html__( 'Add Existing User' ) ); } if ( strlen( $usersearch ) ) { echo ''; printf( /* translators: %s: Search query. */ __( 'Search results for: %s' ), '' . esc_html( $usersearch ) . '' ); echo ''; } ?>
    views(); ?>
    search_box( __( 'Search Users' ), 'user' ); ?> display(); ?>
    ' . __( 'You need a higher level of permission.' ) . '' . '

    ' . __( 'Sorry, you are not allowed to edit comments.' ) . '

    ', 403 ); } $wp_list_table = _get_list_table( 'WP_Comments_List_Table' ); $pagenum = $wp_list_table->get_pagenum(); $doaction = $wp_list_table->current_action(); if ( $doaction ) { check_admin_referer( 'bulk-comments' ); if ( 'delete_all' === $doaction && ! empty( $_REQUEST['pagegen_timestamp'] ) ) { /** * @global wpdb $wpdb WordPress database abstraction object. */ global $wpdb; $comment_status = wp_unslash( $_REQUEST['comment_status'] ); $delete_time = wp_unslash( $_REQUEST['pagegen_timestamp'] ); $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_approved = %s AND %s > comment_date_gmt", $comment_status, $delete_time ) ); $doaction = 'delete'; } elseif ( isset( $_REQUEST['delete_comments'] ) ) { $comment_ids = $_REQUEST['delete_comments']; $doaction = $_REQUEST['action']; } elseif ( isset( $_REQUEST['ids'] ) ) { $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) ); } elseif ( wp_get_referer() ) { wp_safe_redirect( wp_get_referer() ); exit; } $approved = 0; $unapproved = 0; $spammed = 0; $unspammed = 0; $trashed = 0; $untrashed = 0; $deleted = 0; $redirect_to = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'spammed', 'unspammed', 'approved', 'unapproved', 'ids', ), wp_get_referer() ); $redirect_to = add_query_arg( 'paged', $pagenum, $redirect_to ); wp_defer_comment_counting( true ); foreach ( $comment_ids as $comment_id ) { // Check the permissions on each. if ( ! current_user_can( 'edit_comment', $comment_id ) ) { continue; } switch ( $doaction ) { case 'approve': wp_set_comment_status( $comment_id, 'approve' ); ++$approved; break; case 'unapprove': wp_set_comment_status( $comment_id, 'hold' ); ++$unapproved; break; case 'spam': wp_spam_comment( $comment_id ); ++$spammed; break; case 'unspam': wp_unspam_comment( $comment_id ); ++$unspammed; break; case 'trash': wp_trash_comment( $comment_id ); ++$trashed; break; case 'untrash': wp_untrash_comment( $comment_id ); ++$untrashed; break; case 'delete': wp_delete_comment( $comment_id ); ++$deleted; break; } } if ( ! in_array( $doaction, array( 'approve', 'unapprove', 'spam', 'unspam', 'trash', 'delete' ), true ) ) { $screen = get_current_screen()->id; /** This action is documented in wp-admin/edit.php */ $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } wp_defer_comment_counting( false ); if ( $approved ) { $redirect_to = add_query_arg( 'approved', $approved, $redirect_to ); } if ( $unapproved ) { $redirect_to = add_query_arg( 'unapproved', $unapproved, $redirect_to ); } if ( $spammed ) { $redirect_to = add_query_arg( 'spammed', $spammed, $redirect_to ); } if ( $unspammed ) { $redirect_to = add_query_arg( 'unspammed', $unspammed, $redirect_to ); } if ( $trashed ) { $redirect_to = add_query_arg( 'trashed', $trashed, $redirect_to ); } if ( $untrashed ) { $redirect_to = add_query_arg( 'untrashed', $untrashed, $redirect_to ); } if ( $deleted ) { $redirect_to = add_query_arg( 'deleted', $deleted, $redirect_to ); } if ( $trashed || $spammed ) { $redirect_to = add_query_arg( 'ids', implode( ',', $comment_ids ), $redirect_to ); } wp_safe_redirect( $redirect_to ); exit; } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); exit; } $wp_list_table->prepare_items(); wp_enqueue_script( 'admin-comments' ); enqueue_comment_hotkeys_js(); /** * @global int $post_id */ global $post_id; if ( $post_id ) { $comments_count = wp_count_comments( $post_id ); $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); if ( $comments_count->moderated > 0 ) { // Used in the HTML title tag. $title = sprintf( /* translators: 1: Comments count, 2: Post title. */ __( 'Comments (%1$s) on “%2$s”' ), number_format_i18n( $comments_count->moderated ), $draft_or_post_title ); } else { // Used in the HTML title tag. $title = sprintf( /* translators: %s: Post title. */ __( 'Comments on “%s”' ), $draft_or_post_title ); } } else { $comments_count = wp_count_comments(); if ( $comments_count->moderated > 0 ) { // Used in the HTML title tag. $title = sprintf( /* translators: %s: Comments count. */ __( 'Comments (%s)' ), number_format_i18n( $comments_count->moderated ) ); } else { // Used in the HTML title tag. $title = __( 'Comments' ); } } add_screen_option( 'per_page' ); get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the bulk actions.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'moderating-comments', 'title' => __( 'Moderating Comments' ), 'content' => '

    ' . __( 'A red bar on the left means the comment is waiting for you to moderate it.' ) . '

    ' . '

    ' . __( 'In the Author column, in addition to the author’s name, email address, and site URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '

    ' . '

    ' . __( 'In the Comment column, hovering over any comment gives you options to approve, reply (and approve), quick edit, edit, spam mark, or trash that comment.' ) . '

    ' . '

    ' . __( 'In the In response to column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows the number of approved comments that post has received. If there are pending comments, a red notification circle with the number of pending comments is displayed. Clicking the notification circle will filter the comments screen to show only pending comments on that post.' ) . '

    ' . '

    ' . __( 'In the Submitted on column, the date and time the comment was left on your site appears. Clicking on the date/time link will take you to that comment on your live site.' ) . '

    ' . '

    ' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Comments' ) . '

    ' . '

    ' . __( 'Documentation on Comment Spam' ) . '

    ' . '

    ' . __( 'Documentation on Keyboard Shortcuts' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); get_current_screen()->set_screen_reader_content( array( 'heading_views' => __( 'Filter comments list' ), 'heading_pagination' => __( 'Comments list navigation' ), 'heading_list' => __( 'Comments list' ), ) ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    %2$s', get_edit_post_link( $post_id ), wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) ) ); } else { _e( 'Comments' ); } ?>

    %2$s', get_permalink( $post_id ), $post_type_object->labels->view_item ); } } if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { echo ''; printf( /* translators: %s: Search query. */ __( 'Search results for: %s' ), '' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '' ); echo ''; } ?>
    'moderated', 'additional_classes' => array( 'error' ), ) ); } } if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $_REQUEST['trashed'] ) || isset( $_REQUEST['untrashed'] ) || isset( $_REQUEST['spammed'] ) || isset( $_REQUEST['unspammed'] ) || isset( $_REQUEST['same'] ) ) { $approved = (int) ( $_REQUEST['approved'] ?? 0 ); $deleted = (int) ( $_REQUEST['deleted'] ?? 0 ); $trashed = (int) ( $_REQUEST['trashed'] ?? 0 ); $untrashed = (int) ( $_REQUEST['untrashed'] ?? 0 ); $spammed = (int) ( $_REQUEST['spammed'] ?? 0 ); $unspammed = (int) ( $_REQUEST['unspammed'] ?? 0 ); $same = (int) ( $_REQUEST['same'] ?? 0 ); if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) { if ( $approved > 0 ) { $messages[] = sprintf( /* translators: %s: Number of comments. */ _n( '%s comment approved.', '%s comments approved.', $approved ), $approved ); } if ( $spammed > 0 ) { $ids = $_REQUEST['ids'] ?? 0; $messages[] = sprintf( /* translators: %s: Number of comments. */ _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . sprintf( ' %2$s
    ', esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ), __( 'Undo' ) ); } if ( $unspammed > 0 ) { $messages[] = sprintf( /* translators: %s: Number of comments. */ _n( '%s comment restored from the spam.', '%s comments restored from the spam.', $unspammed ), $unspammed ); } if ( $trashed > 0 ) { $ids = $_REQUEST['ids'] ?? 0; $messages[] = sprintf( /* translators: %s: Number of comments. */ _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . sprintf( ' %2$s
    ', esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ), __( 'Undo' ) ); } if ( $untrashed > 0 ) { $messages[] = sprintf( /* translators: %s: Number of comments. */ _n( '%s comment restored from the Trash.', '%s comments restored from the Trash.', $untrashed ), $untrashed ); } if ( $deleted > 0 ) { $messages[] = sprintf( /* translators: %s: Number of comments. */ _n( '%s comment permanently deleted.', '%s comments permanently deleted.', $deleted ), $deleted ); } if ( $same > 0 ) { $comment = get_comment( $same ); if ( $comment ) { switch ( $comment->comment_approved ) { case '1': $messages[] = __( 'This comment is already approved.' ) . sprintf( ' %2$s', esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ), __( 'Edit comment' ) ); break; case 'trash': $messages[] = __( 'This comment is already in the Trash.' ) . sprintf( ' %2$s', esc_url( admin_url( 'edit-comments.php?comment_status=trash' ) ), __( 'View Trash' ) ); break; case 'spam': $messages[] = __( 'This comment is already marked as spam.' ) . sprintf( ' %2$s', esc_url( admin_url( "comment.php?action=editcomment&c=$same" ) ), __( 'Edit comment' ) ); break; } } } wp_admin_notice( implode( "
    \n", $messages ), array( 'id' => 'moderated', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } } ?> views(); ?>
    search_box( __( 'Search Comments' ), 'comment' ); ?> display(); ?>
    theme-editor.php000064400000041577152213653150007664 0ustar00' . __( 'Sorry, you are not allowed to edit templates for this site.' ) . '

    ' ); } // Used in the HTML title tag. $title = __( 'Edit Themes' ); $parent_file = 'themes.php'; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'You can use the theme file editor to edit the individual CSS and PHP files which make up your theme.' ) . '

    ' . '

    ' . __( 'Begin by choosing a theme to edit from the dropdown menu and clicking the Select button. A list then appears of the theme’s template files. Clicking once on any file name causes the file to appear in the large Editor box.' ) . '

    ' . '

    ' . __( 'For PHP files, you can use the documentation dropdown to select from functions recognized in that file. Look Up takes you to a web page with reference material about that particular function.' ) . '

    ' . '

    ' . __( 'When using a keyboard to navigate:' ) . '

    ' . '
      ' . '
    • ' . __( 'In the editing area, the Tab key enters a tab character.' ) . '
    • ' . '
    • ' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '
    • ' . '
    • ' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '
    • ' . '
    ' . '

    ' . __( 'After typing in your edits, click Update File.' ) . '

    ' . '

    ' . __( 'Advice: Think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '

    ' . '

    ' . sprintf( /* translators: %s: Link to documentation on child themes. */ __( 'Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a child theme instead.' ), __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ) . '

    ' . ( is_network_admin() ? '

    ' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '

    ' : '' ), ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Theme Development' ) . '

    ' . '

    ' . __( 'Documentation on Editing Themes' ) . '

    ' . '

    ' . __( 'Documentation on Editing Files' ) . '

    ' . '

    ' . __( 'Documentation on Template Tags' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); $action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : ''; $theme = ! empty( $_REQUEST['theme'] ) ? sanitize_text_field( $_REQUEST['theme'] ) : ''; $file = ! empty( $_REQUEST['file'] ) ? sanitize_text_field( $_REQUEST['file'] ) : ''; $error = ! empty( $_REQUEST['error'] ); if ( $theme ) { $stylesheet = $theme; } else { $stylesheet = get_stylesheet(); } $theme = wp_get_theme( $stylesheet ); if ( ! $theme->exists() ) { wp_die( __( 'The requested theme does not exist.' ) ); } if ( $theme->errors() && 'theme_no_stylesheet' === $theme->errors()->get_error_code() ) { wp_die( __( 'The requested theme does not exist.' ) . ' ' . $theme->errors()->get_error_message() ); } $allowed_files = array(); $style_files = array(); $file_types = wp_get_theme_file_editable_extensions( $theme ); foreach ( $file_types as $type ) { switch ( $type ) { case 'php': $allowed_files += $theme->get_files( 'php', -1 ); break; case 'css': $style_files = $theme->get_files( 'css', -1 ); $allowed_files['style.css'] = $style_files['style.css']; $allowed_files += $style_files; break; default: $allowed_files += $theme->get_files( $type, -1 ); break; } } // Move functions.php and style.css to the top. if ( isset( $allowed_files['functions.php'] ) ) { $allowed_files = array( 'functions.php' => $allowed_files['functions.php'] ) + $allowed_files; } if ( isset( $allowed_files['style.css'] ) ) { $allowed_files = array( 'style.css' => $allowed_files['style.css'] ) + $allowed_files; } if ( empty( $file ) ) { $relative_file = 'style.css'; $file = $allowed_files['style.css']; } else { $relative_file = wp_unslash( $file ); $file = $theme->get_stylesheet_directory() . '/' . $relative_file; } validate_file_to_edit( $file, $allowed_files ); // Handle fallback editing of file when JavaScript is not available. $edit_error = null; $posted_content = null; if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) { $edit_result = wp_edit_theme_plugin_file( wp_unslash( $_POST ) ); if ( is_wp_error( $edit_result ) ) { $edit_error = $edit_result; if ( check_ajax_referer( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce', false ) && isset( $_POST['newcontent'] ) ) { $posted_content = wp_unslash( $_POST['newcontent'] ); } } else { wp_redirect( add_query_arg( array( 'a' => 1, // This means "success" for some reason. 'theme' => $stylesheet, 'file' => $relative_file, ), admin_url( 'theme-editor.php' ) ) ); exit; } } $settings = array( 'codeEditor' => wp_enqueue_code_editor( compact( 'file' ) ), ); wp_enqueue_script( 'wp-theme-plugin-editor' ); wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) ); wp_add_inline_script( 'wp-theme-plugin-editor', 'wp.themePluginEditor.themeOrPlugin = "theme";' ); require_once ABSPATH . 'wp-admin/admin-header.php'; update_recently_edited( $file ); if ( ! is_file( $file ) ) { $error = true; } $content = ''; if ( ! empty( $posted_content ) ) { $content = $posted_content; } elseif ( ! $error && filesize( $file ) > 0 ) { $f = fopen( $file, 'r' ); $content = fread( $f, filesize( $file ) ); if ( str_ends_with( $file, '.php' ) ) { $functions = wp_doc_link_parse( $content ); if ( ! empty( $functions ) ) { $docs_select = ''; } } $content = esc_textarea( $content ); } $file_show = array_search( $file, array_filter( $allowed_files ), true ); ?>

    'message', 'dismissible' => true, 'additional_classes' => array( 'updated' ), ) ); } elseif ( is_wp_error( $edit_error ) ) { $error_code = esc_html( $edit_error->get_error_message() ? $edit_error->get_error_message() : $edit_error->get_error_code() ); $message = '

    ' . __( 'There was an error while trying to update the file. You may need to fix something and try updating again.' ) . '

    ' . $error_code . '
    '; wp_admin_notice( $message, array( 'type' => 'error', 'id' => 'message', ) ); } if ( preg_match( '/\.css$/', $file ) ) { if ( ! wp_is_block_theme() && current_user_can( 'customize' ) ) { $message = '

    ' . __( 'Did you know?' ) . '

    ' . sprintf( /* translators: %s: Link to add custom CSS section in either the Customizer (classic themes) or Site Editor (block themes). */ __( 'There is no need to change your CSS here — you can edit and live preview CSS changes in the built-in CSS editor.' ), esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) ) . '

    '; wp_admin_notice( $message, array( 'type' => 'info', 'id' => 'message', ) ); } elseif ( wp_is_block_theme() && current_user_can( 'edit_theme_options' ) ) { $site_editor_url = admin_url( add_query_arg( urlencode_deep( array( 'p' => '/styles', 'section' => '/css', ) ), 'site-editor.php' ) ); $message = '

    ' . __( 'Did you know?' ) . '

    ' . sprintf( /* translators: %s: Link to add custom CSS section in either the Customizer (classic themes) or Site Editor (block themes). */ __( 'There is no need to change your CSS here — you can edit and live preview CSS changes in the built-in CSS editor.' ), esc_url( $site_editor_url ) ) . '

    '; wp_admin_notice( $message, array( 'type' => 'info', 'id' => 'message', ) ); } if ( file_exists( preg_replace( '/\.css$/', '.min.css', $file ) ) ) { $message = '

    ' . __( 'There is a minified version of this stylesheet.' ) . '

    ' . __( 'It is likely that this unminified stylesheet will not be served to visitors.' ) . '

    '; wp_admin_notice( $message, array( 'type' => 'warning', 'id' => 'wp-css-min-warning', ) ); } } ?>

    get( 'Name' ) === $theme->display( 'Name' ) ) { /* translators: %s: Theme name. */ printf( __( 'Editing %s (active)' ), '' . $theme->display( 'Name' ) . '' ); } else { /* translators: %s: Theme name. */ printf( __( 'Editing %s (inactive)' ), '' . $theme->display( 'Name' ) . '' ); } ?>

    ' . __( 'File: %s' ) . '', esc_html( $file_show ) ); ?>

    errors() ) { wp_admin_notice( '' . __( 'This theme is broken.' ) . ' ' . $theme->errors()->get_error_message(), array( 'additional_classes' => array( 'error' ), ) ); } ?>

      parent() ) : ?>
    • %s', self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ), $theme->parent()->display( 'Name' ) ) ); ?>
    array( 'error' ), ) ); else : ?>
    get_stylesheet() === get_template() ) : $message = ( is_writable( $file ) ) ? '' . __( 'Caution:' ) . ' ' : ''; $message .= __( 'This is a file in your current parent theme.' ); wp_admin_notice( $message, array( 'type' => 'warning', 'additional_classes' => array( 'inline' ), ) ); endif; ?>

    Changing File Permissions for more information.' ), __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' ) ); ?>


    ' . __( 'The fields on this screen determine some of the basics of your site setup.' ) . '

    ' . '

    ' . __( 'Most themes show the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. Many themes also show the tagline.' ) . '

    '; if ( ! is_multisite() ) { $options_help .= '

    ' . __( 'Two terms you will want to know are the WordPress URL and the site URL. The WordPress URL is where the core WordPress installation files are, and the site URL is the address a visitor uses in the browser to go to your site.' ) . '

    ' . '

    ' . sprintf( /* translators: %s: Documentation URL. */ __( 'Though the terms refer to two different concepts, in practice, they can be the same address or different. For example, you can have the core WordPress installation files in the root directory (https://example.com), in which case the two URLs would be the same. Or the WordPress files can be in a subdirectory (https://example.com/wordpress). In that case, the WordPress URL and the site URL would be different.' ), __( 'https://developer.wordpress.org/advanced-administration/server/wordpress-in-directory/' ) ) . '

    ' . '

    ' . sprintf( /* translators: 1: http://, 2: https:// */ __( 'Both WordPress URL and site URL can start with either %1$s or %2$s. A URL starting with %2$s requires an SSL certificate, so be sure that you have one before changing to %2$s. With %2$s, a padlock will appear next to the address in the browser address bar. Both %2$s and the padlock signal that your site meets some basic security requirements, which can build trust with your visitors and with search engines.' ), 'http://', 'https://' ) . '

    ' . '

    ' . __( 'If you want site visitors to be able to register themselves, check the membership box. If you want the site administrator to register every new user, leave the box unchecked. In either case, you can set a default user role for all new users.' ) . '

    '; } $options_help .= '

    ' . __( 'You can set the language, and WordPress will automatically download and install the translation files (available if your filesystem is writable).' ) . '

    ' . '

    ' . __( 'UTC means Coordinated Universal Time.' ) . '

    ' . '

    ' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '

    '; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $options_help, ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on General Settings' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    site_name ); } $tagline_description = sprintf( /* translators: %s: Site tagline example. */ __( 'In a few words, explain what this site is about. Example: “%s.”' ), $sample_tagline ); ?>
    site-editor.php000064400000030112152213653150007505 0ustar00' . __( 'You need a higher level of permission.' ) . '' . '

    ' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '

    ', 403 ); } /** * Maps old site editor urls to the new updated ones. * * @since 6.8.0 * @access private * * @global string $pagenow The filename of the current screen. * * @return string|false The new URL to redirect to, or false if no redirection is needed. */ function _wp_get_site_editor_redirection_url() { global $pagenow; if ( 'site-editor.php' !== $pagenow || isset( $_REQUEST['p'] ) || empty( $_SERVER['QUERY_STRING'] ) ) { return false; } // The following redirects are for the new permalinks in the site editor. if ( isset( $_REQUEST['postType'] ) && 'wp_navigation' === $_REQUEST['postType'] && ! empty( $_REQUEST['postId'] ) ) { return add_query_arg( array( 'p' => '/wp_navigation/' . $_REQUEST['postId'] ), remove_query_arg( array( 'postType', 'postId' ) ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_navigation' === $_REQUEST['postType'] && empty( $_REQUEST['postId'] ) ) { return add_query_arg( array( 'p' => '/navigation' ), remove_query_arg( 'postType' ) ); } if ( isset( $_REQUEST['path'] ) && '/wp_global_styles' === $_REQUEST['path'] ) { return add_query_arg( array( 'p' => '/styles' ), remove_query_arg( 'path' ) ); } if ( isset( $_REQUEST['postType'] ) && 'page' === $_REQUEST['postType'] && ( empty( $_REQUEST['canvas'] ) || empty( $_REQUEST['postId'] ) ) ) { return add_query_arg( array( 'p' => '/page' ), remove_query_arg( 'postType' ) ); } if ( isset( $_REQUEST['postType'] ) && 'page' === $_REQUEST['postType'] && ! empty( $_REQUEST['postId'] ) ) { return add_query_arg( array( 'p' => '/page/' . $_REQUEST['postId'] ), remove_query_arg( array( 'postType', 'postId' ) ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_template' === $_REQUEST['postType'] && ( empty( $_REQUEST['canvas'] ) || empty( $_REQUEST['postId'] ) ) ) { return add_query_arg( array( 'p' => '/template' ), remove_query_arg( 'postType' ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_template' === $_REQUEST['postType'] && ! empty( $_REQUEST['postId'] ) ) { return add_query_arg( array( 'p' => '/wp_template/' . $_REQUEST['postId'] ), remove_query_arg( array( 'postType', 'postId' ) ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_block' === $_REQUEST['postType'] && ( empty( $_REQUEST['canvas'] ) || empty( $_REQUEST['postId'] ) ) ) { return add_query_arg( array( 'p' => '/pattern' ), remove_query_arg( 'postType' ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_block' === $_REQUEST['postType'] && ! empty( $_REQUEST['postId'] ) ) { return add_query_arg( array( 'p' => '/wp_block/' . $_REQUEST['postId'] ), remove_query_arg( array( 'postType', 'postId' ) ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_template_part' === $_REQUEST['postType'] && ( empty( $_REQUEST['canvas'] ) || empty( $_REQUEST['postId'] ) ) ) { return add_query_arg( array( 'p' => '/pattern' ) ); } if ( isset( $_REQUEST['postType'] ) && 'wp_template_part' === $_REQUEST['postType'] && ! empty( $_REQUEST['postId'] ) ) { return add_query_arg( array( 'p' => '/wp_template_part/' . $_REQUEST['postId'] ), remove_query_arg( array( 'postType', 'postId' ) ) ); } // The following redirects are for backward compatibility with the old site editor URLs. if ( isset( $_REQUEST['path'] ) && '/wp_template_part/all' === $_REQUEST['path'] ) { return add_query_arg( array( 'p' => '/pattern', 'postType' => 'wp_template_part', ), remove_query_arg( 'path' ) ); } if ( isset( $_REQUEST['path'] ) && '/page' === $_REQUEST['path'] ) { return add_query_arg( array( 'p' => '/page' ), remove_query_arg( 'path' ) ); } if ( isset( $_REQUEST['path'] ) && '/wp_template' === $_REQUEST['path'] ) { return add_query_arg( array( 'p' => '/template' ), remove_query_arg( 'path' ) ); } if ( isset( $_REQUEST['path'] ) && '/patterns' === $_REQUEST['path'] ) { return add_query_arg( array( 'p' => '/pattern' ), remove_query_arg( 'path' ) ); } if ( isset( $_REQUEST['path'] ) && '/navigation' === $_REQUEST['path'] ) { return add_query_arg( array( 'p' => '/navigation' ), remove_query_arg( 'path' ) ); } return add_query_arg( array( 'p' => '/' ) ); } // Redirect to the site editor to the new URLs if needed. $redirection = _wp_get_site_editor_redirection_url(); if ( false !== $redirection ) { wp_safe_redirect( $redirection ); exit; } // Used in the HTML title tag. $title = _x( 'Editor', 'site editor title tag' ); $parent_file = 'themes.php'; // Flag that we're loading the block editor. $current_screen = get_current_screen(); $current_screen->is_block_editor( true ); // Default to is-fullscreen-mode to avoid jumps in the UI. add_filter( 'admin_body_class', static function ( $classes ) { return "$classes is-fullscreen-mode"; } ); $indexed_template_types = array(); foreach ( get_default_block_template_types() as $slug => $template_type ) { $template_type['slug'] = (string) $slug; $indexed_template_types[] = $template_type; } $context_settings = array( 'name' => 'core/edit-site' ); if ( ! empty( $_GET['postId'] ) && is_numeric( $_GET['postId'] ) ) { $context_settings['post'] = get_post( (int) $_GET['postId'] ); } elseif ( isset( $_GET['p'] ) && preg_match( '/^\/page\/(\d+)$/', $_GET['p'], $matches ) ) { $context_settings['post'] = get_post( (int) $matches[1] ); } $block_editor_context = new WP_Block_Editor_Context( $context_settings ); $custom_settings = array( 'siteUrl' => site_url(), 'postsPerPage' => get_option( 'posts_per_page' ), 'styles' => get_block_editor_theme_styles(), 'defaultTemplateTypes' => $indexed_template_types, 'defaultTemplatePartAreas' => get_allowed_block_template_part_areas(), 'supportsLayout' => wp_theme_has_theme_json(), 'supportsTemplatePartsMode' => ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ), ); // Add additional back-compat patterns registered by `current_screen` et al. $custom_settings['__experimentalAdditionalBlockPatterns'] = WP_Block_Patterns_Registry::get_instance()->get_all_registered( true ); $custom_settings['__experimentalAdditionalBlockPatternCategories'] = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered( true ); $editor_settings = get_block_editor_settings( $custom_settings, $block_editor_context ); if ( isset( $_GET['postType'] ) && ! isset( $_GET['postId'] ) ) { $post_type = get_post_type_object( $_GET['postType'] ); if ( ! $post_type ) { wp_die( __( 'Invalid post type.' ) ); } } $active_global_styles_id = WP_Theme_JSON_Resolver::get_user_global_styles_post_id(); $active_theme = get_stylesheet(); $navigation_rest_route = rest_get_route_for_post_type_items( 'wp_navigation' ); $preload_paths = array( array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ), array( rest_get_route_for_post_type_items( 'page' ), 'OPTIONS' ), '/wp/v2/types?context=view', '/wp/v2/types/wp_template?context=edit', '/wp/v2/types/wp_template_part?context=edit', '/wp/v2/templates?context=edit&per_page=-1', '/wp/v2/template-parts?context=edit&per_page=-1', '/wp/v2/themes?context=edit&status=active', '/wp/v2/global-styles/' . $active_global_styles_id . '?context=edit', array( '/wp/v2/global-styles/' . $active_global_styles_id, 'OPTIONS' ), '/wp/v2/global-styles/themes/' . $active_theme . '?context=view', '/wp/v2/global-styles/themes/' . $active_theme . '/variations?context=view', array( $navigation_rest_route, 'OPTIONS' ), array( add_query_arg( array( 'context' => 'edit', 'per_page' => 100, 'order' => 'desc', 'orderby' => 'date', // array indices are required to avoid query being encoded and not matching in cache. 'status[0]' => 'publish', 'status[1]' => 'draft', ), $navigation_rest_route ), 'GET', ), '/wp/v2/settings', array( '/wp/v2/settings', 'OPTIONS' ), // Used by getBlockPatternCategories in useBlockEditorSettings. '/wp/v2/block-patterns/categories', // @see packages/core-data/src/entities.js '/?_fields=' . implode( ',', array( 'description', 'gmt_offset', 'home', 'image_sizes', 'image_size_threshold', 'image_output_formats', 'jpeg_interlaced', 'png_interlaced', 'gif_interlaced', 'name', 'site_icon', 'site_icon_url', 'site_logo', 'timezone_string', 'url', 'page_for_posts', 'page_on_front', 'show_on_front', ) ), ); if ( $block_editor_context->post ) { $route_for_post = rest_get_route_for_post( $block_editor_context->post ); if ( $route_for_post ) { $preload_paths[] = add_query_arg( 'context', 'edit', $route_for_post ); if ( 'page' === $block_editor_context->post->post_type ) { $preload_paths[] = add_query_arg( 'slug', // @link https://github.com/WordPress/gutenberg/blob/e093fefd041eb6cc4a4e7f67b92ab54fd75c8858/packages/core-data/src/private-selectors.ts#L244-L254 empty( $block_editor_context->post->post_name ) ? 'page' : 'page-' . $block_editor_context->post->post_name, '/wp/v2/templates/lookup' ); } } } else { $preload_paths[] = '/wp/v2/templates/lookup?slug=front-page'; $preload_paths[] = '/wp/v2/templates/lookup?slug=home'; } block_editor_rest_api_preload( $preload_paths, $block_editor_context ); wp_add_inline_script( 'wp-edit-site', sprintf( 'wp.domReady( function() { wp.editSite.initializeEditor( "site-editor", %s ); } );', wp_json_encode( $editor_settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) ); // Preload server-registered block schemas. wp_add_inline_script( 'wp-blocks', 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ');' ); // Preload server-registered block bindings sources. $registered_sources = get_all_registered_block_bindings_sources(); if ( ! empty( $registered_sources ) ) { $filtered_sources = array(); foreach ( $registered_sources as $source ) { $filtered_sources[] = array( 'name' => $source->name, 'label' => $source->label, 'usesContext' => $source->uses_context, ); } $script = sprintf( 'for ( const source of %s ) { wp.blocks.registerBlockBindingsSource( source ); }', wp_json_encode( $filtered_sources, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); wp_add_inline_script( 'wp-blocks', $script ); } wp_add_inline_script( 'wp-blocks', sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( $editor_settings['blockCategories'] ?? array(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ), 'after' ); wp_enqueue_script( 'wp-edit-site' ); wp_enqueue_script( 'wp-format-library' ); wp_enqueue_style( 'wp-edit-site' ); wp_enqueue_style( 'wp-format-library' ); wp_enqueue_media(); if ( current_theme_supports( 'wp-block-styles' ) && ( ! is_array( $editor_styles ) || count( $editor_styles ) === 0 ) ) { wp_enqueue_style( 'wp-block-library-theme' ); } /** This action is documented in wp-admin/edit-form-blocks.php */ do_action( 'enqueue_block_editor_assets' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>
    ' . __( 'An error occurred during the upload process.' ) . '' . '

    ' . __( 'Invalid item ID. You can view all media items in the Media Library.' ) . '

    ', 403 ); } if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post', $_REQUEST['post_id'] ) ) { wp_die( '

    ' . __( 'You need a higher level of permission.' ) . '

    ' . '

    ' . __( 'Sorry, you are not allowed to edit this item.' ) . '

    ', 403 ); } // Upload type: image, video, file, ...? if ( isset( $_GET['type'] ) ) { $type = (string) $_GET['type']; } else { /** * Filters the default media upload type in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string $type The default media upload type. Possible values include * 'image', 'audio', 'video', 'file', etc. Default 'file'. */ $type = apply_filters( 'media_upload_default_type', 'file' ); } // Tab: gallery, library, or type-specific. if ( isset( $_GET['tab'] ) ) { $tab = (string) $_GET['tab']; } else { /** * Filters the default tab in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string $tab The default media popup tab. Default 'type' (From Computer). */ $tab = apply_filters( 'media_upload_default_tab', 'type' ); } $body_id = 'media-upload'; // Let the action code decide how to handle the request. if ( 'type' === $tab || 'type_url' === $tab || ! array_key_exists( $tab, media_upload_tabs() ) ) { /** * Fires inside specific upload-type views in the legacy (pre-3.5.0) * media popup based on the current tab. * * The dynamic portion of the hook name, `$type`, refers to the specific * media upload type. * * The hook only fires if the current `$tab` is 'type' (From Computer), * 'type_url' (From URL), or, if the tab does not exist (i.e., has not * been registered via the {@see 'media_upload_tabs'} filter. * * Possible hook names include: * * - `media_upload_audio` * - `media_upload_file` * - `media_upload_image` * - `media_upload_video` * * @since 2.5.0 */ do_action( "media_upload_{$type}" ); } else { /** * Fires inside limited and specific upload-tab views in the legacy * (pre-3.5.0) media popup. * * The dynamic portion of the hook name, `$tab`, refers to the specific * media upload tab. Possible values include 'library' (Media Library), * or any custom tab registered via the {@see 'media_upload_tabs'} filter. * * @since 2.5.0 */ do_action( "media_upload_{$tab}" ); } widgets-form.php000064400000046213152213653150007675 0ustar00add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

    ' . __( 'Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.' ) . '

    ' . __( 'The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'removing-reusing', 'title' => __( 'Removing and Reusing' ), 'content' => '

    ' . __( 'If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.' ) . '

    ' . __( 'Widgets may be used multiple times. You can give each widget a title, to display on your site, but it’s not required.' ) . '

    ' . __( 'Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.' ) . '

    ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'missing-widgets', 'title' => __( 'Missing Widgets' ), 'content' => '

    ' . __( 'Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.' ) . '

    ' . '

    ' . __( 'When changing themes, there is often some variation in the number and setup of widget areas/sidebars and sometimes these conflicts make the transition a bit less smooth. If you changed themes and seem to be missing widgets, scroll down on this screen to the Inactive Widgets area, where all of your widgets and their settings will have been saved.' ) . '

    ', ) ); get_current_screen()->set_help_sidebar( '

    ' . __( 'For more information:' ) . '

    ' . '

    ' . __( 'Documentation on Widgets' ) . '

    ' . '

    ' . __( 'Support forums' ) . '

    ' ); // These are the widgets grouped by sidebar. $sidebars_widgets = wp_get_sidebars_widgets(); if ( empty( $sidebars_widgets ) ) { $sidebars_widgets = wp_get_widget_defaults(); } foreach ( $sidebars_widgets as $sidebar_id => $widgets ) { if ( 'wp_inactive_widgets' === $sidebar_id ) { continue; } if ( ! is_registered_sidebar( $sidebar_id ) ) { if ( ! empty( $widgets ) ) { // Register the inactive_widgets area as sidebar. register_sidebar( array( 'name' => __( 'Inactive Sidebar (not used)' ), 'id' => $sidebar_id, 'class' => 'inactive-sidebar orphan-sidebar', 'description' => __( 'This sidebar is no longer available and does not show anywhere on your site. Remove each of the widgets below to fully remove this inactive sidebar.' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); } else { unset( $sidebars_widgets[ $sidebar_id ] ); } } } // Register the inactive_widgets area as sidebar. register_sidebar( array( 'name' => __( 'Inactive Widgets' ), 'id' => 'wp_inactive_widgets', 'class' => 'inactive-sidebar', 'description' => __( 'Drag widgets here to remove them from the sidebar but keep their settings.' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); retrieve_widgets(); // We're saving a widget without JS. if ( isset( $_POST['savewidget'] ) || isset( $_POST['removewidget'] ) ) { $widget_id = $_POST['widget-id']; check_admin_referer( "save-delete-widget-$widget_id" ); $number = isset( $_POST['multi_number'] ) ? (int) $_POST['multi_number'] : ''; if ( $number ) { foreach ( $_POST as $key => $val ) { if ( is_array( $val ) && preg_match( '/__i__|%i%/', key( $val ) ) ) { $_POST[ $key ] = array( $number => array_shift( $val ) ); break; } } } $sidebar_id = $_POST['sidebar']; $position = isset( $_POST[ $sidebar_id . '_position' ] ) ? (int) $_POST[ $sidebar_id . '_position' ] - 1 : 0; $id_base = $_POST['id_base']; $sidebar = $sidebars_widgets[ $sidebar_id ] ?? array(); // Delete. if ( isset( $_POST['removewidget'] ) && $_POST['removewidget'] ) { if ( ! in_array( $widget_id, $sidebar, true ) ) { wp_redirect( admin_url( 'widgets.php?error=0' ) ); exit; } $sidebar = array_diff( $sidebar, array( $widget_id ) ); $_POST = array( 'sidebar' => $sidebar_id, 'widget-' . $id_base => array(), 'the-widget-id' => $widget_id, 'delete_widget' => '1', ); /** * Fires immediately after a widget has been marked for deletion. * * @since 4.4.0 * * @param string $widget_id ID of the widget marked for deletion. * @param string $sidebar_id ID of the sidebar the widget was deleted from. * @param string $id_base ID base for the widget. */ do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base ); } $_POST['widget-id'] = $sidebar; foreach ( (array) $wp_registered_widget_updates as $name => $control ) { if ( $name !== $id_base || ! is_callable( $control['callback'] ) ) { continue; } ob_start(); call_user_func_array( $control['callback'], $control['params'] ); ob_end_clean(); break; } $sidebars_widgets[ $sidebar_id ] = $sidebar; // Remove old position. if ( ! isset( $_POST['delete_widget'] ) ) { foreach ( $sidebars_widgets as $sidebar_widget_id => $sidebar_widget ) { if ( is_array( $sidebar_widget ) ) { $sidebars_widgets[ $sidebar_widget_id ] = array_diff( $sidebar_widget, array( $widget_id ) ); } } array_splice( $sidebars_widgets[ $sidebar_id ], $position, 0, $widget_id ); } wp_set_sidebars_widgets( $sidebars_widgets ); wp_redirect( admin_url( 'widgets.php?message=0' ) ); exit; } // Remove inactive widgets without JS. if ( isset( $_POST['removeinactivewidgets'] ) ) { check_admin_referer( 'remove-inactive-widgets', '_wpnonce_remove_inactive_widgets' ); if ( $_POST['removeinactivewidgets'] ) { foreach ( $sidebars_widgets['wp_inactive_widgets'] as $key => $widget_id ) { $pieces = explode( '-', $widget_id ); $multi_number = array_pop( $pieces ); $id_base = implode( '-', $pieces ); $widget = get_option( 'widget_' . $id_base ); unset( $widget[ $multi_number ] ); update_option( 'widget_' . $id_base, $widget ); unset( $sidebars_widgets['wp_inactive_widgets'][ $key ] ); } wp_set_sidebars_widgets( $sidebars_widgets ); } wp_redirect( admin_url( 'widgets.php?message=0' ) ); exit; } // Output the widget form without JS. if ( isset( $_GET['editwidget'] ) && $_GET['editwidget'] ) { $widget_id = $_GET['editwidget']; if ( isset( $_GET['addnew'] ) ) { // Default to the first sidebar. $keys = array_keys( $wp_registered_sidebars ); $sidebar = reset( $keys ); if ( isset( $_GET['base'] ) && isset( $_GET['num'] ) ) { // Multi-widget. // Copy minimal info from an existing instance of this widget to a new instance. foreach ( $wp_registered_widget_controls as $control ) { if ( $_GET['base'] === $control['id_base'] ) { $control_callback = $control['callback']; $multi_number = (int) $_GET['num']; $control['params'][0]['number'] = -1; $control['id'] = $control['id_base'] . '-' . $multi_number; $widget_id = $control['id']; $wp_registered_widget_controls[ $control['id'] ] = $control; break; } } } } if ( isset( $wp_registered_widget_controls[ $widget_id ] ) && ! isset( $control ) ) { $control = $wp_registered_widget_controls[ $widget_id ]; $control_callback = $control['callback']; } elseif ( ! isset( $wp_registered_widget_controls[ $widget_id ] ) && isset( $wp_registered_widgets[ $widget_id ] ) ) { $name = esc_html( strip_tags( $wp_registered_widgets[ $widget_id ]['name'] ) ); } if ( ! isset( $name ) ) { $name = esc_html( strip_tags( $control['name'] ) ); } if ( ! isset( $sidebar ) ) { $sidebar = $_GET['sidebar'] ?? 'wp_inactive_widgets'; } if ( ! isset( $multi_number ) ) { $multi_number = $control['params'][0]['number'] ?? ''; } $id_base = $control['id_base'] ?? $control['id']; // Show the widget form. $width = ' style="width:' . max( $control['width'], 350 ) . 'px"'; $key = isset( $_GET['key'] ) ? (int) $_GET['key'] : 0; require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

    >

    ' . __( 'There are no options for this widget.' ) . "

    \n"; } ?>

    $sidebar_data ) { echo "\t\t\n"; } ?>
    "; if ( 'wp_inactive_widgets' === $sidebar_name || str_starts_with( $sidebar_name, 'orphaned_widgets' ) ) { echo ' '; } else { if ( ! isset( $sidebars_widgets[ $sidebar_name ] ) || ! is_array( $sidebars_widgets[ $sidebar_name ] ) ) { $widget_count = 1; $sidebars_widgets[ $sidebar_name ] = array(); } else { $widget_count = count( $sidebars_widgets[ $sidebar_name ] ); if ( isset( $_GET['addnew'] ) || ! in_array( $widget_id, $sidebars_widgets[ $sidebar_name ], true ) ) { ++$widget_count; } } $selected = ''; echo "\t\t\n"; } echo "
    |

    %2$s', esc_url( add_query_arg( array( array( 'autofocus' => array( 'panel' => 'widgets' ) ), 'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), ), admin_url( 'customize.php' ) ) ), __( 'Manage with Live Preview' ) ); } $nonce = wp_create_nonce( 'widgets-access' ); ?>
    'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } if ( isset( $_GET['error'] ) && isset( $errors[ $_GET['error'] ] ) ) { wp_admin_notice( $errors[ $_GET['error'] ], array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); } /** * Fires before the Widgets administration page content loads. * * @since 3.0.0 */ do_action( 'widgets_admin_page' ); ?>


    $registered_sidebar ) { if ( str_contains( $registered_sidebar['class'], 'inactive-sidebar' ) || str_starts_with( $sidebar, 'orphaned_widgets' ) ) { $wrap_class = 'widgets-holder-wrap'; if ( ! empty( $registered_sidebar['class'] ) ) { $wrap_class .= ' ' . $registered_sidebar['class']; } $is_inactive_widgets = 'wp_inactive_widgets' === $registered_sidebar['id']; ?>

    'inactive-widgets-control-remove' ); if ( empty( $sidebars_widgets['wp_inactive_widgets'] ) ) { $attributes['disabled'] = ''; } submit_button( __( 'Clear Inactive Widgets' ), 'delete', 'removeinactivewidgets', false, $attributes ); ?>

    1 ) { $split = (int) ceil( $sidebars_count / 2 ); } else { $single_sidebar_class = ' single-sidebar'; } ?>


      'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>


      post_parent ) ) { break; } $post = get_post( $revision->post_parent ); if ( ! $post ) { break; } // Don't restore if revisions are disabled and this is not an autosave. if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) { $redirect = 'edit.php?post_type=' . $post->post_type; break; } // Don't restore if the post is locked. if ( wp_check_post_lock( $post->ID ) ) { break; } check_admin_referer( "restore-post_{$revision->ID}" ); /* * Ensure the global $post remains the same after revision is restored. * Because wp_insert_post() and wp_transition_post_status() are called * during the process, plugins can unexpectedly modify $post. */ $backup_global_post = clone $post; wp_restore_post_revision( $revision->ID ); // Restore the global $post as it was before. $post = $backup_global_post; $redirect = add_query_arg( array( 'message' => 5, 'revision' => $revision->ID, ), get_edit_post_link( $post->ID, 'url' ) ); break; case 'view': case 'edit': default: $revision = wp_get_post_revision( $revision_id ); if ( ! $revision ) { break; } $post = get_post( $revision->post_parent ); if ( ! $post ) { break; } if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) ) { break; } // Bail if revisions are disabled and this is not an autosave. if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) { $redirect = 'edit.php?post_type=' . $post->post_type; break; } $post_edit_link = get_edit_post_link(); $post_title = '' . _draft_or_post_title() . ''; /* translators: %s: Post title. */ $h1 = sprintf( __( 'Compare Revisions of “%s”' ), $post_title ); $return_to_post = '' . __( '← Go to editor' ) . ''; // Used in the HTML title tag. $title = __( 'Revisions' ); $redirect = false; break; } // Empty post_type means either malformed object found, or no valid parent was found. if ( ! $redirect && empty( $post->post_type ) ) { $redirect = 'edit.php'; } if ( ! empty( $redirect ) ) { wp_redirect( $redirect ); exit; } // This is so that the correct "Edit" menu item is selected. if ( ! empty( $post->post_type ) && 'post' !== $post->post_type ) { $parent_file = 'edit.php?post_type=' . $post->post_type; } else { $parent_file = 'edit.php'; } $submenu_file = $parent_file; wp_enqueue_script( 'revisions' ); wp_localize_script( 'revisions', '_wpRevisionsSettings', wp_prepare_revisions_for_js( $post, $revision_id, $from ) ); /* Revisions Help Tab */ $revisions_overview = '

      ' . __( 'This screen is used for managing your content revisions.' ) . '

      '; $revisions_overview .= '

      ' . __( 'Revisions are saved copies of your post or page, which are periodically created as you update your content. The red text on the left shows the content that was removed. The green text on the right shows the content that was added.' ) . '

      '; $revisions_overview .= '

      ' . __( 'From this screen you can review, compare, and restore revisions:' ) . '

      '; $revisions_overview .= '
      • ' . __( 'To navigate between revisions, drag the slider handle left or right or use the Previous or Next buttons.' ) . '
      • '; $revisions_overview .= '
      • ' . __( 'Compare two different revisions by selecting the “Compare any two revisions” box to the side.' ) . '
      • '; $revisions_overview .= '
      • ' . __( 'To restore a revision, click Restore This Revision.' ) . '
      '; get_current_screen()->add_help_tab( array( 'id' => 'revisions-overview', 'title' => __( 'Overview' ), 'content' => $revisions_overview, ) ); $revisions_sidebar = '

      ' . __( 'For more information:' ) . '

      '; $revisions_sidebar .= '

      ' . __( 'Revisions Management' ) . '

      '; $revisions_sidebar .= '

      ' . __( 'Support forums' ) . '

      '; get_current_screen()->set_help_sidebar( $revisions_sidebar ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'The Privacy screen lets you either build a new privacy-policy page or choose one you already have to show.' ) . '

      ' . '

      ' . __( 'This screen includes suggestions to help you write your own privacy policy. However, it is your responsibility to use these resources correctly, to provide the information required by your privacy policy, and to keep this information current and accurate.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Privacy Settings' ) . '

      ' ); if ( ! empty( $action ) ) { check_admin_referer( $action ); if ( 'set-privacy-page' === $action ) { $privacy_policy_page_id = isset( $_POST['page_for_privacy_policy'] ) ? (int) $_POST['page_for_privacy_policy'] : 0; update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id ); $privacy_page_updated_message = __( 'Privacy Policy page updated successfully.' ); if ( $privacy_policy_page_id ) { /* * Don't always link to the menu customizer: * * - Unpublished pages can't be selected by default. * - `WP_Customize_Nav_Menus::__construct()` checks the user's capabilities. * - Themes might not "officially" support menus. */ if ( 'publish' === get_post_status( $privacy_policy_page_id ) && current_user_can( 'edit_theme_options' ) && current_theme_supports( 'menus' ) ) { $privacy_page_updated_message = sprintf( /* translators: %s: URL to Customizer -> Menus. */ __( 'Privacy Policy page setting updated successfully. Remember to update your menus!' ), esc_url( add_query_arg( 'autofocus[panel]', 'nav_menus', admin_url( 'customize.php' ) ) ) ); } } add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', $privacy_page_updated_message, 'success' ); } elseif ( 'create-privacy-page' === $action ) { if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; } $privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content(); $privacy_policy_page_id = wp_insert_post( array( 'post_title' => __( 'Privacy Policy' ), 'post_status' => 'draft', 'post_type' => 'page', 'post_content' => $privacy_policy_page_content, ), true ); if ( is_wp_error( $privacy_policy_page_id ) ) { add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', __( 'Unable to create a Privacy Policy page.' ), 'error' ); } else { update_option( 'wp_page_for_privacy_policy', $privacy_policy_page_id ); wp_redirect( admin_url( 'post.php?post=' . $privacy_policy_page_id . '&action=edit' ) ); exit; } } } // If a Privacy Policy page ID is available, make sure the page actually exists. If not, display an error. $privacy_policy_page_exists = false; $privacy_policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' ); if ( ! empty( $privacy_policy_page_id ) ) { $privacy_policy_page = get_post( $privacy_policy_page_id ); if ( ! $privacy_policy_page instanceof WP_Post ) { add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', __( 'The currently selected Privacy Policy page does not exist. Please create or select a new page.' ), 'error' ); } else { if ( 'trash' === $privacy_policy_page->post_status ) { add_settings_error( 'page_for_privacy_policy', 'page_for_privacy_policy', sprintf( /* translators: %s: URL to Pages Trash. */ __( 'The currently selected Privacy Policy page is in the Trash. Please create or select a new Privacy Policy page or restore the current page.' ), 'edit.php?post_status=trash&post_type=page' ), 'error' ); } else { $privacy_policy_page_exists = true; } } } $parent_file = 'options-general.php'; wp_enqueue_script( 'privacy-tools' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>
      'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>

      $privacy_policy_page_id, 'action' => 'edit', ), admin_url( 'post.php' ) ); $view_href = get_permalink( $privacy_policy_page_id ); ?> Edit or view your Privacy Policy page content.' ), esc_url( $edit_href ), esc_url( $view_href ) ); } else { printf( /* translators: 1: URL to edit Privacy Policy page, 2: URL to preview Privacy Policy page. */ __( 'Edit or preview your Privacy Policy page content.' ), esc_url( $edit_href ), esc_url( $view_href ) ); } ?> Check out the privacy policy guide%3$s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ), esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ), '', '' ); ?>


      'page', 'posts_per_page' => 1, 'post_status' => array( 'publish', 'draft', ), ) ); ?>
      ' . __( 'You need a higher level of permission.' ) . '' . '

      ' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '

      ', 403 ); } // Used in the HTML title tag. $title = __( 'Menus' ); wp_enqueue_script( 'nav-menu' ); if ( wp_is_mobile() ) { wp_enqueue_script( 'jquery-touch-punch' ); } // Container for any messages displayed to the user. $messages = array(); // Container that stores the name of the active menu. $nav_menu_selected_title = ''; // The menu id of the current menu being edited. $nav_menu_selected_id = isset( $_REQUEST['menu'] ) ? (int) $_REQUEST['menu'] : 0; // Get existing menu locations assignments. $locations = get_registered_nav_menus(); $menu_locations = get_nav_menu_locations(); $num_locations = count( array_keys( $locations ) ); // Allowed actions: add, update, delete. $action = $_REQUEST['action'] ?? 'edit'; /* * If a JSON blob of navigation menu data is found, expand it and inject it * into `$_POST` to avoid PHP `max_input_vars` limitations. See #14134. */ _wp_expand_nav_menu_post_data(); switch ( $action ) { case 'add-menu-item': check_admin_referer( 'add-menu_item', 'menu-settings-column-nonce' ); if ( isset( $_REQUEST['nav-menu-locations'] ) ) { set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_REQUEST['menu-locations'] ) ); } elseif ( isset( $_REQUEST['menu-item'] ) ) { wp_save_nav_menu_items( $nav_menu_selected_id, $_REQUEST['menu-item'] ); } break; case 'move-down-menu-item': // Moving down a menu item is the same as moving up the next in order. check_admin_referer( 'move-menu_item' ); $menu_item_id = isset( $_REQUEST['menu-item'] ) ? (int) $_REQUEST['menu-item'] : 0; if ( is_nav_menu_item( $menu_item_id ) ) { $menus = isset( $_REQUEST['menu'] ) ? array( (int) $_REQUEST['menu'] ) : wp_get_object_terms( $menu_item_id, 'nav_menu', array( 'fields' => 'ids' ) ); if ( ! is_wp_error( $menus ) && ! empty( $menus[0] ) ) { $menu_id = (int) $menus[0]; $ordered_menu_items = wp_get_nav_menu_items( $menu_id ); $menu_item_data = (array) wp_setup_nav_menu_item( get_post( $menu_item_id ) ); // Set up the data we need in one pass through the array of menu items. $dbids_to_orders = array(); $orders_to_dbids = array(); foreach ( (array) $ordered_menu_items as $ordered_menu_item_object ) { if ( isset( $ordered_menu_item_object->ID ) ) { if ( isset( $ordered_menu_item_object->menu_order ) ) { $dbids_to_orders[ $ordered_menu_item_object->ID ] = $ordered_menu_item_object->menu_order; $orders_to_dbids[ $ordered_menu_item_object->menu_order ] = $ordered_menu_item_object->ID; } } } // Get next in order. if ( isset( $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] + 1 ] ) ) { $next_item_id = $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] + 1 ]; $next_item_data = (array) wp_setup_nav_menu_item( get_post( $next_item_id ) ); // If not siblings of same parent, bubble menu item up but keep order. if ( ! empty( $menu_item_data['menu_item_parent'] ) && ( empty( $next_item_data['menu_item_parent'] ) || (int) $next_item_data['menu_item_parent'] !== (int) $menu_item_data['menu_item_parent'] ) ) { if ( in_array( (int) $menu_item_data['menu_item_parent'], $orders_to_dbids, true ) ) { $parent_db_id = (int) $menu_item_data['menu_item_parent']; } else { $parent_db_id = 0; } $parent_object = wp_setup_nav_menu_item( get_post( $parent_db_id ) ); if ( ! is_wp_error( $parent_object ) ) { $parent_data = (array) $parent_object; $menu_item_data['menu_item_parent'] = $parent_data['menu_item_parent']; // Reset invalid `menu_item_parent`. $menu_item_data = _wp_reset_invalid_menu_item_parent( $menu_item_data ); update_post_meta( $menu_item_data['ID'], '_menu_item_menu_item_parent', (int) $menu_item_data['menu_item_parent'] ); } // Make menu item a child of its next sibling. } else { $next_item_data['menu_order'] = $next_item_data['menu_order'] - 1; $menu_item_data['menu_order'] = $menu_item_data['menu_order'] + 1; $menu_item_data['menu_item_parent'] = $next_item_data['ID']; // Reset invalid `menu_item_parent`. $menu_item_data = _wp_reset_invalid_menu_item_parent( $menu_item_data ); update_post_meta( $menu_item_data['ID'], '_menu_item_menu_item_parent', (int) $menu_item_data['menu_item_parent'] ); wp_update_post( $menu_item_data ); wp_update_post( $next_item_data ); } // The item is last but still has a parent, so bubble up. } elseif ( ! empty( $menu_item_data['menu_item_parent'] ) && in_array( (int) $menu_item_data['menu_item_parent'], $orders_to_dbids, true ) ) { $menu_item_data['menu_item_parent'] = (int) get_post_meta( $menu_item_data['menu_item_parent'], '_menu_item_menu_item_parent', true ); // Reset invalid `menu_item_parent`. $menu_item_data = _wp_reset_invalid_menu_item_parent( $menu_item_data ); update_post_meta( $menu_item_data['ID'], '_menu_item_menu_item_parent', (int) $menu_item_data['menu_item_parent'] ); } } } break; case 'move-up-menu-item': check_admin_referer( 'move-menu_item' ); $menu_item_id = isset( $_REQUEST['menu-item'] ) ? (int) $_REQUEST['menu-item'] : 0; if ( is_nav_menu_item( $menu_item_id ) ) { if ( isset( $_REQUEST['menu'] ) ) { $menus = array( (int) $_REQUEST['menu'] ); } else { $menus = wp_get_object_terms( $menu_item_id, 'nav_menu', array( 'fields' => 'ids' ) ); } if ( ! is_wp_error( $menus ) && ! empty( $menus[0] ) ) { $menu_id = (int) $menus[0]; $ordered_menu_items = wp_get_nav_menu_items( $menu_id ); $menu_item_data = (array) wp_setup_nav_menu_item( get_post( $menu_item_id ) ); // Set up the data we need in one pass through the array of menu items. $dbids_to_orders = array(); $orders_to_dbids = array(); foreach ( (array) $ordered_menu_items as $ordered_menu_item_object ) { if ( isset( $ordered_menu_item_object->ID ) ) { if ( isset( $ordered_menu_item_object->menu_order ) ) { $dbids_to_orders[ $ordered_menu_item_object->ID ] = $ordered_menu_item_object->menu_order; $orders_to_dbids[ $ordered_menu_item_object->menu_order ] = $ordered_menu_item_object->ID; } } } // If this menu item is not first. if ( ! empty( $dbids_to_orders[ $menu_item_id ] ) && ! empty( $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] - 1 ] ) ) { // If this menu item is a child of the previous. if ( ! empty( $menu_item_data['menu_item_parent'] ) && in_array( (int) $menu_item_data['menu_item_parent'], array_keys( $dbids_to_orders ), true ) && isset( $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] - 1 ] ) && ( (int) $menu_item_data['menu_item_parent'] === $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] - 1 ] ) ) { if ( in_array( (int) $menu_item_data['menu_item_parent'], $orders_to_dbids, true ) ) { $parent_db_id = (int) $menu_item_data['menu_item_parent']; } else { $parent_db_id = 0; } $parent_object = wp_setup_nav_menu_item( get_post( $parent_db_id ) ); if ( ! is_wp_error( $parent_object ) ) { $parent_data = (array) $parent_object; /* * If there is something before the parent and parent a child of it, * make menu item a child also of it. */ if ( ! empty( $dbids_to_orders[ $parent_db_id ] ) && ! empty( $orders_to_dbids[ $dbids_to_orders[ $parent_db_id ] - 1 ] ) && ! empty( $parent_data['menu_item_parent'] ) ) { $menu_item_data['menu_item_parent'] = $parent_data['menu_item_parent']; /* * Else if there is something before parent and parent not a child of it, * make menu item a child of that something's parent */ } elseif ( ! empty( $dbids_to_orders[ $parent_db_id ] ) && ! empty( $orders_to_dbids[ $dbids_to_orders[ $parent_db_id ] - 1 ] ) ) { $_possible_parent_id = (int) get_post_meta( $orders_to_dbids[ $dbids_to_orders[ $parent_db_id ] - 1 ], '_menu_item_menu_item_parent', true ); if ( in_array( $_possible_parent_id, array_keys( $dbids_to_orders ), true ) ) { $menu_item_data['menu_item_parent'] = $_possible_parent_id; } else { $menu_item_data['menu_item_parent'] = 0; } // Else there isn't something before the parent. } else { $menu_item_data['menu_item_parent'] = 0; } // Set former parent's [menu_order] to that of menu-item's. $parent_data['menu_order'] = $parent_data['menu_order'] + 1; // Set menu-item's [menu_order] to that of former parent. $menu_item_data['menu_order'] = $menu_item_data['menu_order'] - 1; // Save changes. update_post_meta( $menu_item_data['ID'], '_menu_item_menu_item_parent', (int) $menu_item_data['menu_item_parent'] ); wp_update_post( $menu_item_data ); wp_update_post( $parent_data ); } // Else this menu item is not a child of the previous. } elseif ( empty( $menu_item_data['menu_order'] ) || empty( $menu_item_data['menu_item_parent'] ) || ! in_array( (int) $menu_item_data['menu_item_parent'], array_keys( $dbids_to_orders ), true ) || empty( $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] - 1 ] ) || $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] - 1 ] !== (int) $menu_item_data['menu_item_parent'] ) { // Just make it a child of the previous; keep the order. $menu_item_data['menu_item_parent'] = (int) $orders_to_dbids[ $dbids_to_orders[ $menu_item_id ] - 1 ]; // Reset invalid `menu_item_parent`. $menu_item_data = _wp_reset_invalid_menu_item_parent( $menu_item_data ); update_post_meta( $menu_item_data['ID'], '_menu_item_menu_item_parent', (int) $menu_item_data['menu_item_parent'] ); wp_update_post( $menu_item_data ); } } } } break; case 'delete-menu-item': $menu_item_id = (int) $_REQUEST['menu-item']; check_admin_referer( 'delete-menu_item_' . $menu_item_id ); if ( is_nav_menu_item( $menu_item_id ) && wp_delete_post( $menu_item_id, true ) ) { $messages[] = wp_get_admin_notice( __( 'The menu item has been successfully deleted.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } break; case 'delete': check_admin_referer( 'delete-nav_menu-' . $nav_menu_selected_id ); if ( is_nav_menu( $nav_menu_selected_id ) ) { $deletion = wp_delete_nav_menu( $nav_menu_selected_id ); } else { // Reset the selected menu. $nav_menu_selected_id = 0; unset( $_REQUEST['menu'] ); } if ( ! isset( $deletion ) ) { break; } if ( is_wp_error( $deletion ) ) { $messages[] = wp_get_admin_notice( $deletion->get_error_message(), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); } else { $messages[] = wp_get_admin_notice( __( 'The menu has been successfully deleted.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } break; case 'delete_menus': check_admin_referer( 'nav_menus_bulk_actions' ); foreach ( $_REQUEST['delete_menus'] as $menu_id_to_delete ) { if ( ! is_nav_menu( $menu_id_to_delete ) ) { continue; } $deletion = wp_delete_nav_menu( $menu_id_to_delete ); if ( is_wp_error( $deletion ) ) { $messages[] = wp_get_admin_notice( $deletion->get_error_message(), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); $deletion_error = true; } } if ( empty( $deletion_error ) ) { $messages[] = wp_get_admin_notice( __( 'Selected menus have been successfully deleted.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } break; case 'update': check_admin_referer( 'update-nav_menu', 'update-nav-menu-nonce' ); // Merge new and existing menu locations if any new ones are set. $new_menu_locations = array(); if ( isset( $_POST['menu-locations'] ) ) { $new_menu_locations = array_map( 'absint', $_POST['menu-locations'] ); $menu_locations = array_merge( $menu_locations, $new_menu_locations ); } // Add Menu. if ( 0 === $nav_menu_selected_id ) { $new_menu_title = trim( esc_html( $_POST['menu-name'] ) ); if ( $new_menu_title ) { $_nav_menu_selected_id = wp_update_nav_menu_object( 0, array( 'menu-name' => $new_menu_title ) ); if ( is_wp_error( $_nav_menu_selected_id ) ) { $messages[] = wp_get_admin_notice( $_nav_menu_selected_id->get_error_message(), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); } else { $_menu_object = wp_get_nav_menu_object( $_nav_menu_selected_id ); $nav_menu_selected_id = $_nav_menu_selected_id; $nav_menu_selected_title = $_menu_object->name; if ( isset( $_REQUEST['menu-item'] ) ) { wp_save_nav_menu_items( $nav_menu_selected_id, absint( $_REQUEST['menu-item'] ) ); } if ( isset( $_REQUEST['zero-menu-state'] ) || ! empty( $_POST['auto-add-pages'] ) ) { // If there are menu items, add them. wp_nav_menu_update_menu_items( $nav_menu_selected_id, $nav_menu_selected_title ); } if ( isset( $_REQUEST['zero-menu-state'] ) ) { // Auto-save nav_menu_locations. $locations = get_nav_menu_locations(); foreach ( $locations as $location => $menu_id ) { $locations[ $location ] = $nav_menu_selected_id; break; // There should only be 1. } set_theme_mod( 'nav_menu_locations', $locations ); } elseif ( count( $new_menu_locations ) > 0 ) { // If locations have been selected for the new menu, save those. $locations = get_nav_menu_locations(); foreach ( array_keys( $new_menu_locations ) as $location ) { $locations[ $location ] = $nav_menu_selected_id; } set_theme_mod( 'nav_menu_locations', $locations ); } if ( isset( $_REQUEST['use-location'] ) ) { $locations = get_registered_nav_menus(); $menu_locations = get_nav_menu_locations(); if ( isset( $locations[ $_REQUEST['use-location'] ] ) ) { $menu_locations[ $_REQUEST['use-location'] ] = $nav_menu_selected_id; } set_theme_mod( 'nav_menu_locations', $menu_locations ); } wp_redirect( admin_url( 'nav-menus.php?menu=' . $_nav_menu_selected_id ) ); exit; } } else { $messages[] = wp_get_admin_notice( __( 'Please enter a valid menu name.' ), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); } // Update existing menu. } else { // Remove menu locations that have been unchecked. foreach ( $locations as $location => $description ) { if ( ( empty( $_POST['menu-locations'] ) || empty( $_POST['menu-locations'][ $location ] ) ) && isset( $menu_locations[ $location ] ) && $menu_locations[ $location ] === $nav_menu_selected_id ) { unset( $menu_locations[ $location ] ); } } // Set menu locations. set_theme_mod( 'nav_menu_locations', $menu_locations ); $_menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ); $menu_title = trim( esc_html( $_POST['menu-name'] ) ); if ( ! $menu_title ) { $messages[] = wp_get_admin_notice( __( 'Please enter a valid menu name.' ), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); $menu_title = $_menu_object->name; } if ( ! is_wp_error( $_menu_object ) ) { $_nav_menu_selected_id = wp_update_nav_menu_object( $nav_menu_selected_id, array( 'menu-name' => $menu_title ) ); if ( is_wp_error( $_nav_menu_selected_id ) ) { $_menu_object = $_nav_menu_selected_id; $messages[] = wp_get_admin_notice( $_nav_menu_selected_id->get_error_message(), array( 'id' => 'message', 'additional_classes' => array( 'error' ), 'dismissible' => true, ) ); } else { $_menu_object = wp_get_nav_menu_object( $_nav_menu_selected_id ); $nav_menu_selected_title = $_menu_object->name; } } // Update menu items. if ( ! is_wp_error( $_menu_object ) ) { $messages = array_merge( $messages, wp_nav_menu_update_menu_items( $_nav_menu_selected_id, $nav_menu_selected_title ) ); // If the menu ID changed, redirect to the new URL. if ( $nav_menu_selected_id !== $_nav_menu_selected_id ) { wp_redirect( admin_url( 'nav-menus.php?menu=' . (int) $_nav_menu_selected_id ) ); exit; } } } break; case 'locations': if ( ! $num_locations ) { wp_redirect( admin_url( 'nav-menus.php' ) ); exit; } add_filter( 'screen_options_show_screen', '__return_false' ); if ( isset( $_POST['menu-locations'] ) ) { check_admin_referer( 'save-menu-locations' ); $new_menu_locations = array_map( 'absint', $_POST['menu-locations'] ); $menu_locations = array_merge( $menu_locations, $new_menu_locations ); // Set menu locations. set_theme_mod( 'nav_menu_locations', $menu_locations ); $messages[] = wp_get_admin_notice( __( 'Menu locations updated.' ), array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } break; } // Get all nav menus. $nav_menus = wp_get_nav_menus(); $menu_count = count( $nav_menus ); // Are we on the add new screen? $add_new_screen = ( isset( $_GET['menu'] ) && 0 === (int) $_GET['menu'] ) ? true : false; $locations_screen = ( isset( $_GET['action'] ) && 'locations' === $_GET['action'] ) ? true : false; $page_count = wp_count_posts( 'page' ); /* * If we have one registered menu location, and zero menus, we take them right * into editing their first menu. */ if ( 1 === count( get_registered_nav_menus() ) && ! $add_new_screen && empty( $nav_menus ) && ! empty( $page_count->publish ) ) { $one_theme_location_no_menus = true; } else { $one_theme_location_no_menus = false; } $nav_menus_l10n = array( 'oneThemeLocationNoMenus' => $one_theme_location_no_menus, 'moveUp' => __( 'Move up one' ), 'moveDown' => __( 'Move down one' ), 'moveToTop' => __( 'Move to the top' ), /* translators: %s: Previous item name. */ 'moveUnder' => __( 'Move under %s' ), /* translators: %s: Previous item name. */ 'moveOutFrom' => __( 'Move out from under %s' ), /* translators: %s: Previous item name. */ 'under' => __( 'Under %s' ), /* translators: %s: Previous item name. */ 'outFrom' => __( 'Out from under %s' ), /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items. */ 'menuFocus' => __( 'Edit %1$s (%2$s, %3$d of %4$d)' ), /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items, 5: Item parent. */ 'subMenuFocus' => __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s)' ), /* translators: 1: Item name, 2: Item type, 3: Item index, 4: Total items, 5: Item parent, 6: Item depth. */ 'subMenuMoreDepthFocus' => __( 'Edit %1$s (%2$s, sub-item %3$d of %4$d under %5$s, level %6$d)' ), /* translators: %s: Item name. */ 'menuItemDeletion' => __( 'item %s' ), /* translators: %s: Item name. */ 'itemsDeleted' => __( 'Deleted menu item: %s.' ), 'itemAdded' => __( 'Menu item added' ), 'itemRemoved' => __( 'Menu item removed' ), 'movedUp' => __( 'Menu item moved up' ), 'movedDown' => __( 'Menu item moved down' ), 'movedTop' => __( 'Menu item moved to the top' ), 'movedLeft' => __( 'Menu item moved out of submenu' ), 'movedRight' => __( 'Menu item is now a sub-item' ), 'parentUpdated' => __( 'Menu parent updated' ), 'orderUpdated' => __( 'Menu order updated' ), ); wp_localize_script( 'nav-menu', 'menus', $nav_menus_l10n ); /* * Redirect to add screen if there are no menus and this user has either zero * or more than one registered menu location. */ if ( 0 === $menu_count && ! $add_new_screen && ! $one_theme_location_no_menus ) { wp_redirect( admin_url( 'nav-menus.php?action=edit&menu=0' ) ); } // Get recently edited nav menu. $recently_edited = absint( get_user_option( 'nav_menu_recently_edited' ) ); if ( empty( $recently_edited ) && is_nav_menu( $nav_menu_selected_id ) ) { $recently_edited = $nav_menu_selected_id; } // Use $recently_edited if none are selected. if ( empty( $nav_menu_selected_id ) && ! isset( $_GET['menu'] ) && is_nav_menu( $recently_edited ) ) { $nav_menu_selected_id = $recently_edited; } // On deletion of menu, if another menu exists, show it. if ( ! $add_new_screen && $menu_count > 0 && isset( $_GET['action'] ) && 'delete' === $_GET['action'] ) { $nav_menu_selected_id = $nav_menus[0]->term_id; } // Set $nav_menu_selected_id to 0 if no menus. if ( $one_theme_location_no_menus ) { $nav_menu_selected_id = 0; } elseif ( empty( $nav_menu_selected_id ) && ! empty( $nav_menus ) && ! $add_new_screen ) { // If we have no selection yet, and we have menus, set to the first one in the list. $nav_menu_selected_id = $nav_menus[0]->term_id; } // Update the user's setting. if ( $nav_menu_selected_id !== $recently_edited && is_nav_menu( $nav_menu_selected_id ) ) { update_user_meta( $current_user->ID, 'nav_menu_recently_edited', $nav_menu_selected_id ); } // If there's a menu, get its name. if ( ! $nav_menu_selected_title && is_nav_menu( $nav_menu_selected_id ) ) { $_menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ); $nav_menu_selected_title = ! is_wp_error( $_menu_object ) ? $_menu_object->name : ''; } // Generate truncated menu names. foreach ( (array) $nav_menus as $key => $_nav_menu ) { $nav_menus[ $key ]->truncated_name = wp_html_excerpt( $_nav_menu->name, 40, '…' ); } // Retrieve menu locations. if ( current_theme_supports( 'menus' ) ) { $locations = get_registered_nav_menus(); $menu_locations = get_nav_menu_locations(); } /* * Ensure the user will be able to scroll horizontally * by adding a class for the max menu depth. * * @global int $_wp_nav_menu_max_depth */ global $_wp_nav_menu_max_depth; $_wp_nav_menu_max_depth = 0; // Calling wp_get_nav_menu_to_edit generates $_wp_nav_menu_max_depth. if ( is_nav_menu( $nav_menu_selected_id ) ) { $menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'post_status' => 'any' ) ); $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id ); } /** * Adds a CSS class to display the max depth of the navigation menu. * * @since 3.0.0 * * @global int $_wp_nav_menu_max_depth Maximum depth of the navigation menu. * * @param string $classes Existing CSS classes for the body tag. * @return string Modified CSS classes including the menu max depth class. */ function wp_nav_menu_max_depth( $classes ) { global $_wp_nav_menu_max_depth; return "$classes menu-max-depth-$_wp_nav_menu_max_depth"; } add_filter( 'admin_body_class', 'wp_nav_menu_max_depth' ); wp_nav_menu_setup(); wp_initial_nav_menu_meta_boxes(); if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) { $message_no_theme_support = sprintf( /* translators: %s: URL to Widgets screen. */ __( 'Your theme does not natively support menus, but you can use them in sidebars by adding a “Navigation Menu” widget on the Widgets screen.' ), admin_url( 'widgets.php' ) ); $messages[] = wp_get_admin_notice( $message_no_theme_support, array( 'id' => 'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); } if ( ! $locations_screen ) : // Main tab. $overview = '

      ' . __( 'This screen is used for managing your navigation menus.' ) . '

      '; $overview .= '

      ' . sprintf( /* translators: 1: URL to Widgets screen, 2 and 3: The names of the default themes. */ __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Navigation Menu” widget on the Widgets screen. If your theme does not support the navigation menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Twenty', 'Twenty Twenty-One' ) . '

      '; $overview .= '

      ' . __( 'From this screen you can:' ) . '

      '; $overview .= '
      • ' . __( 'Create, edit, and delete menus' ) . '
      • '; $overview .= '
      • ' . __( 'Add, organize, and modify individual menu items' ) . '
      '; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $overview, ) ); $menu_management = '

      ' . __( 'The menu management box at the top of the screen is used to control which menu is opened in the editor below.' ) . '

      '; $menu_management .= '
      • ' . __( 'To edit an existing menu, choose a menu from the dropdown and click Select' ) . '
      • '; $menu_management .= '
      • ' . __( 'If you have not yet created any menus, click the ’create a new menu’ link to get started' ) . '
      '; $menu_management .= '

      ' . __( 'You can assign individual menus to the theme’s menu locations by selecting the desired settings at the bottom of the menu editor. To assign menus to all theme menu locations at once, visit the Manage Locations tab at the top of the screen.' ) . '

      '; get_current_screen()->add_help_tab( array( 'id' => 'menu-management', 'title' => __( 'Menu Management' ), 'content' => $menu_management, ) ); $editing_menus = '

      ' . __( 'Each navigation menu may contain a mix of links to pages, categories, custom URLs or other content types. Menu links are added by selecting items from the expanding boxes in the left-hand column below.' ) . '

      '; $editing_menus .= '

      ' . __( 'Clicking the arrow to the right of any menu item in the editor will reveal a standard group of settings. Additional settings such as link target, CSS classes, link relationships, and link descriptions can be enabled and disabled via the Screen Options tab.' ) . '

      '; $editing_menus .= '
      • ' . __( 'Add one or several items at once by selecting the checkbox next to each item and clicking Add to Menu' ) . '
      • '; $editing_menus .= '
      • ' . __( 'To add a custom link, expand the Custom Links section, enter a URL and link text, and click Add to Menu' ) . '
      • '; $editing_menus .= '
      • ' . __( 'To reorganize menu items, drag and drop items with your mouse or use your keyboard. Drag or move a menu item a little to the right to make it a submenu' ) . '
      • '; $editing_menus .= '
      • ' . __( 'Delete a menu item by expanding it and clicking the Remove link' ) . '
      '; get_current_screen()->add_help_tab( array( 'id' => 'editing-menus', 'title' => __( 'Editing Menus' ), 'content' => $editing_menus, ) ); else : // Locations tab. $locations_overview = '

      ' . __( 'This screen is used for globally assigning menus to locations defined by your theme.' ) . '

      '; $locations_overview .= '
      • ' . __( 'To assign menus to one or more theme menu locations, select a menu from each location’s dropdown. When you are finished, click Save Changes' ) . '
      • '; $locations_overview .= '
      • ' . __( 'To edit a menu currently assigned to a theme menu location, click the adjacent ’Edit’ link' ) . '
      • '; $locations_overview .= '
      • ' . __( 'To add a new menu instead of assigning an existing one, click the ’Use new menu’ link. Your new menu will be automatically assigned to that location in the theme.' ) . '
      '; get_current_screen()->add_help_tab( array( 'id' => 'locations-overview', 'title' => __( 'Overview' ), 'content' => $locations_overview, ) ); endif; get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Menus' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); // Get the admin header. require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      'menu_locations' ) : array( 'panel' => 'nav_menus' ); printf( ' %2$s', esc_url( add_query_arg( array( array( 'autofocus' => $focus ), 'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), ), admin_url( 'customize.php' ) ) ), __( 'Manage with Live Preview' ) ); endif; $nav_tab_active_class = ''; $nav_aria_current = ''; if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' !== $_GET['action'] ) { $nav_tab_active_class = ' nav-tab-active'; $nav_aria_current = ' aria-current="page"'; } ?>
      ' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '

      '; } else { echo '

      ' . sprintf( /* translators: %s: Number of menus. */ _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '

      '; } ?>
      create a new menu. Do not forget to save your changes!' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0, ), admin_url( 'nav-menus.php' ) ) ) ); ?>
      create a new menu. Do not forget to save your changes!' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0, ), admin_url( 'nav-menus.php' ) ) ) ); ?>
      ms-users.php000064400000000327152213653150007040 0ustar00get_pagenum(); if ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { $location = remove_query_arg( '_wp_http_referer', wp_unslash( $_SERVER['REQUEST_URI'] ) ); if ( ! empty( $_REQUEST['paged'] ) ) { $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location ); } wp_redirect( $location ); exit; } $wp_list_table->prepare_items(); $total_pages = $wp_list_table->get_pagination_arg( 'total_pages' ); if ( $pagenum > $total_pages && $total_pages > 0 ) { wp_redirect( add_query_arg( 'paged', $total_pages ) ); exit; } // Used in the HTML title tag. $title = __( 'Add Plugins' ); $parent_file = 'plugins.php'; wp_enqueue_script( 'plugin-install' ); if ( 'plugin-information' !== $tab ) { add_thickbox(); } $body_id = $tab; wp_enqueue_script( 'updates' ); /** * Fires before each tab on the Install Plugins screen is loaded. * * The dynamic portion of the hook name, `$tab`, allows for targeting * individual tabs. * * Possible hook names include: * * - `install_plugins_pre_beta` * - `install_plugins_pre_favorites` * - `install_plugins_pre_featured` * - `install_plugins_pre_plugin-information` * - `install_plugins_pre_popular` * - `install_plugins_pre_recommended` * - `install_plugins_pre_search` * - `install_plugins_pre_upload` * * @since 2.7.0 */ do_action( "install_plugins_pre_{$tab}" ); /* * Call the pre upload action on every non-upload plugin installation screen * because the form is always displayed on these screens. */ if ( 'upload' !== $tab ) { /** This action is documented in wp-admin/plugin-install.php */ do_action( 'install_plugins_pre_upload' ); } get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . sprintf( /* translators: %s: https://wordpress.org/plugins/ */ __( 'Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official WordPress Plugin Directory are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/plugins/' ) ) . '

      ' . '

      ' . __( 'You can find new plugins to install by searching or browsing the directory right here in your own Plugins section.' ) . ' ' . __( 'The search results will be updated as you type.' ) . '

      ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'adding-plugins', 'title' => __( 'Adding Plugins' ), 'content' => '

      ' . __( 'If you know what you are looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.' ) . '

      ' . '

      ' . __( 'If you just want to get an idea of what’s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '

      ' . '

      ' . __( 'You can also browse a user’s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '

      ' . '

      ' . __( 'If you want to install a plugin that you’ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Installing Plugins' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); get_current_screen()->set_screen_reader_content( array( 'heading_views' => __( 'Filter plugins list' ), 'heading_pagination' => __( 'Plugins list navigation' ), 'heading_list' => __( 'Plugins list' ), ) ); /** * WordPress Administration Template Header. */ require_once ABSPATH . 'wp-admin/admin-header.php'; WP_Plugin_Dependencies::initialize(); WP_Plugin_Dependencies::display_admin_notice_for_unmet_dependencies(); WP_Plugin_Dependencies::display_admin_notice_for_circular_dependencies(); ?>
      ">

      %s%s', ( 'upload' === $tab ) ? self_admin_url( 'plugin-install.php' ) : self_admin_url( 'plugin-install.php?tab=upload' ), __( 'Upload Plugin' ), __( 'Browse Plugins' ) ); } ?>
      views(); } /** * Fires after the plugins list table in each tab of the Install Plugins screen. * * The dynamic portion of the hook name, `$tab`, allows for targeting * individual tabs. * * Possible hook names include: * * - `install_plugins_beta` * - `install_plugins_favorites` * - `install_plugins_featured` * - `install_plugins_plugin-information` * - `install_plugins_popular` * - `install_plugins_recommended` * - `install_plugins_search` * - `install_plugins_upload` * * @since 2.7.0 * * @param int $paged The current page number of the plugins list table. */ do_action( "install_plugins_{$tab}", $paged ); ?>
      add_help_tab( array( 'id' => 'converter', 'title' => __( 'Categories and Tags Converter' ), 'content' => '

      ' . __( 'Categories have hierarchy, meaning that you can nest sub-categories. Tags do not have hierarchy and cannot be nested. Sometimes people start out using one on their posts, then later realize that the other would work better for their content.' ) . '

      ' . '

      ' . __( 'The Categories and Tags Converter link on this screen will take you to the Import screen, where that Converter is one of the plugins you can install. Once that plugin is installed, the Activate Plugin & Run Importer link will take you to a screen where you can choose to convert tags into categories or vice versa.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Tools' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      cap->manage_terms ) || current_user_can( $tags->cap->manage_terms ) ) : ?>

      Categories and Tags Converter available from the Import screen.' ), 'import.php' ); ?>

      tables( 'ms_global' ) as $table => $prefixed_table ) { $wpdb->$table = $prefixed_table; } if ( ! network_domain_check() && ( ! defined( 'WP_ALLOW_MULTISITE' ) || ! WP_ALLOW_MULTISITE ) ) { wp_die( printf( /* translators: 1: WP_ALLOW_MULTISITE, 2: wp-config.php */ __( 'You must define the %1$s constant as true in your %2$s file to allow creation of a Network.' ), 'WP_ALLOW_MULTISITE', 'wp-config.php' ) ); } if ( is_network_admin() ) { // Used in the HTML title tag. $title = __( 'Network Setup' ); $parent_file = 'settings.php'; } else { // Used in the HTML title tag. $title = __( 'Create a Network of WordPress Sites' ); $parent_file = 'tools.php'; } $network_help = '

      ' . __( 'This screen allows you to configure a network as having subdomains (site1.example.com) or subdirectories (example.com/site1). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.' ) . '

      ' . '

      ' . __( 'Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your installation. Fill out the network details, and click Install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).' ) . '

      ' . '

      ' . __( 'The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.' ) . '

      ' . '

      ' . __( 'Add the designated lines of code to wp-config.php (just before /*...stop editing...*/) and .htaccess (replacing the existing WordPress rules).' ) . '

      ' . '

      ' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '

      ' . '

      ' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.' ) . '

      ' . '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Creating a Network' ) . '

      ' . '

      ' . __( 'Documentation on the Network Screen' ) . '

      '; get_current_screen()->add_help_tab( array( 'id' => 'network', 'title' => __( 'Network' ), 'content' => $network_help, ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Creating a Network' ) . '

      ' . '

      ' . __( 'Documentation on the Network Screen' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      get_error_codes() ) && 'no_wildcard_dns' === $result->get_error_code() ) { network_step2( $result ); } else { network_step1( $result ); } } else { network_step2(); } } else { network_step2(); } } elseif ( is_multisite() || network_domain_check() ) { network_step2(); } else { network_step1(); } ?>
      load-styles.php000064400000005663152213653150007532 0ustar00get_etag( $load ); if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) { header( "$protocol 304 Not Modified" ); exit; } foreach ( $load as $handle ) { if ( ! array_key_exists( $handle, $wp_styles->registered ) ) { continue; } $style = $wp_styles->registered[ $handle ]; if ( empty( $style->src ) ) { continue; } $path = ABSPATH . $style->src; if ( $rtl && ! empty( $style->extra['rtl'] ) ) { // All default styles have fully independent RTL files. $path = str_replace( '.min.css', '-rtl.min.css', $path ); } $content = get_file( $path ) . "\n"; // Note: str_starts_with() is not used here, as wp-includes/compat.php is not loaded in this file. if ( 0 === strpos( $style->src, '/' . WPINC . '/css/' ) ) { $content = str_replace( '../images/', '../' . WPINC . '/images/', $content ); $content = str_replace( '../js/tinymce/', '../' . WPINC . '/js/tinymce/', $content ); $content = str_replace( '../fonts/', '../' . WPINC . '/fonts/', $content ); $out .= $content; } else { $out .= str_replace( '../images/', 'images/', $content ); } } header( "Etag: $etag" ); header( 'Content-Type: text/css; charset=UTF-8' ); header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' ); header( "Cache-Control: public, max-age=$expires_offset" ); echo $out; exit; privacy.php000064400000005446152213653150006746 0ustar00
      <?php echo esc_attr( $header_alt_text ); ?>

      WordPress.org stats page.' ), __( 'https://wordpress.org/about/stats/' ) ); ?>

      the WordPress.org Privacy Policy.' ), __( 'https://wordpress.org/about/privacy/' ) ); ?>

      erase-personal-data.php000064400000016521152213653150011114 0ustar00add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'This screen is where you manage requests to erase personal data.' ) . '

      ' . '

      ' . __( 'Privacy Laws around the world require businesses and online services to delete, anonymize, or forget the data they collect about an individual. The rights those laws enshrine are sometimes called the "Right to be Forgotten".' ) . '

      ' . '

      ' . __( 'The tool associates data stored in WordPress with a supplied email address, including profile data and comments.' ) . '

      ' . '

      ' . __( 'Note: As this tool only gathers data from WordPress and participating plugins, you may need to do more to comply with erasure requests. For example, you are also responsible for ensuring that data collected by or stored with the 3rd party services your organization uses gets deleted.' ) . '

      ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'default-data', 'title' => __( 'Default Data' ), 'content' => '

      ' . __( 'WordPress collects (but never publishes) a limited amount of data from logged-in users but then deletes it or anonymizes it. That data can include:' ) . '

      ' . '

      ' . __( 'Profile Information — user email address, username, display name, nickname, first name, last name, description/bio, and registration date.' ) . '

      ' . '

      ' . __( 'Community Events Location — The IP Address of the user which is used for the Upcoming Community Events shown in the dashboard widget.' ) . '

      ' . '

      ' . __( 'Session Tokens — User login information, IP Addresses, Expiration Date, User Agent (Browser/OS), and Last Login.' ) . '

      ' . '

      ' . __( 'Comments — WordPress does not delete comments. The software does anonymize (but, again, never publishes) the associated Email Address, IP Address, and User Agent (Browser/OS).' ) . '

      ' . '

      ' . __( 'Media — A list of URLs for all media file uploads made by the user.' ) . '

      ', ) ); $privacy_policy_guide = '

      ' . sprintf( /* translators: %s: URL to Privacy Policy Guide screen. */ __( 'If you are not sure, check the plugin documentation or contact the plugin author to see if the plugin collects data and if it supports the Data Eraser tool. This information may be available in the Privacy Policy Guide.' ), admin_url( 'options-privacy.php?tab=policyguide' ) ) . '

      '; get_current_screen()->add_help_tab( array( 'id' => 'plugin-data', 'title' => __( 'Plugin Data' ), 'content' => '

      ' . __( 'Many plugins may collect or store personal data either in the WordPress database or remotely. Any Erase Personal Data request should delete data from plugins as well.' ) . '

      ' . $privacy_policy_guide . '

      ' . __( 'If you are a plugin author, you can learn more about how to add the Personal Data Eraser to a plugin.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Erase Personal Data' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); // Handle list table actions. _wp_personal_data_handle_actions(); // Cleans up failed and expired requests before displaying the list table. _wp_personal_data_cleanup_requests(); wp_enqueue_script( 'privacy-tools' ); add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'remove_personal_data_requests_per_page', ) ); $_list_table_args = array( 'plural' => 'privacy_requests', 'singular' => 'privacy_request', ); $requests_table = _get_list_table( 'WP_Privacy_Data_Removal_Requests_List_Table', $_list_table_args ); $requests_table->screen->set_screen_reader_content( array( 'heading_views' => __( 'Filter erase personal data list' ), 'heading_pagination' => __( 'Erase personal data list navigation' ), 'heading_list' => __( 'Erase personal data list' ), ) ); $requests_table->process_bulk_action(); $requests_table->prepare_items(); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>



      views(); ?>
      search_box( __( 'Search Requests' ), 'requests' ); ?>
      display(); $requests_table->embed_scripts(); ?>
      add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'You can export a file of your site’s content in order to import it into another installation or platform. The export file will be an XML file format called WXR. Posts, pages, comments, custom fields, categories, and tags can be included. You can choose for the WXR file to include only certain posts or pages by setting the dropdown filters to limit the export by category, author, date range by month, or publishing status.' ) . '

      ' . '

      ' . __( 'Once generated, your WXR file can be imported by another WordPress site or by another blogging platform able to access this format.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Export' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); // If the 'download' URL parameter is set, a WXR export file is baked and returned. if ( isset( $_GET['download'] ) ) { $args = array(); if ( ! isset( $_GET['content'] ) || 'all' === $_GET['content'] ) { $args['content'] = 'all'; } elseif ( 'posts' === $_GET['content'] ) { $args['content'] = 'post'; if ( $_GET['cat'] ) { $args['category'] = (int) $_GET['cat']; } if ( $_GET['post_author'] ) { $args['author'] = (int) $_GET['post_author']; } if ( $_GET['post_start_date'] || $_GET['post_end_date'] ) { $args['start_date'] = $_GET['post_start_date']; $args['end_date'] = $_GET['post_end_date']; } if ( $_GET['post_status'] ) { $args['status'] = $_GET['post_status']; } } elseif ( 'pages' === $_GET['content'] ) { $args['content'] = 'page'; if ( $_GET['page_author'] ) { $args['author'] = (int) $_GET['page_author']; } if ( $_GET['page_start_date'] || $_GET['page_end_date'] ) { $args['start_date'] = $_GET['page_start_date']; $args['end_date'] = $_GET['page_end_date']; } if ( $_GET['page_status'] ) { $args['status'] = $_GET['page_status']; } } elseif ( 'attachment' === $_GET['content'] ) { $args['content'] = 'attachment'; if ( $_GET['attachment_start_date'] || $_GET['attachment_end_date'] ) { $args['start_date'] = $_GET['attachment_start_date']; $args['end_date'] = $_GET['attachment_end_date']; } } else { $args['content'] = $_GET['content']; } /** * Filters the export args. * * @since 3.5.0 * * @param array $args The arguments to send to the exporter. */ $args = apply_filters( 'export_args', $args ); export_wp( $args ); die(); } require_once ABSPATH . 'wp-admin/admin-header.php'; /** * Creates the date options fields for exporting a given post type. * * @since 3.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param string $post_type The post type. Default 'post'. */ function export_date_options( $post_type = 'post' ) { global $wpdb, $wp_locale; $months = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month FROM $wpdb->posts WHERE post_type = %s AND post_status != 'auto-draft' ORDER BY post_date DESC", $post_type ) ); $month_count = count( $months ); if ( ! $month_count || ( 1 === $month_count && 0 === (int) $months[0]->month ) ) { return; } foreach ( $months as $date ) { if ( 0 === (int) $date->year ) { continue; } $month = zeroise( $date->month, 2 ); printf( '', esc_attr( $date->year . '-' . $month ), $wp_locale->get_month( $month ) . ' ' . $date->year ); } } ?>

      false, 'can_export' => true, ), 'objects' ) as $post_type ) : ?>

      link-manager.php000064400000010411152213653150007622 0ustar00current_action(); if ( $doaction && isset( $_REQUEST['linkcheck'] ) ) { check_admin_referer( 'bulk-bookmarks' ); $redirect_to = admin_url( 'link-manager.php' ); $bulklinks = (array) $_REQUEST['linkcheck']; if ( 'delete' === $doaction ) { foreach ( $bulklinks as $link_id ) { $link_id = (int) $link_id; wp_delete_link( $link_id ); } $redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to ); } else { $screen = get_current_screen()->id; /** This action is documented in wp-admin/edit.php */ $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $bulklinks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } wp_redirect( $redirect_to ); exit; } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ); exit; } $wp_list_table->prepare_items(); // Used in the HTML title tag. $title = __( 'Links' ); $this_file = 'link-manager.php'; $parent_file = $this_file; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . sprintf( /* translators: %s: URL to Widgets screen. */ __( 'You can add links here to be displayed on your site, usually using Widgets. By default, links to several sites in the WordPress community are included as examples.' ), 'widgets.php' ) . '

      ' . '

      ' . __( 'Links may be separated into Link Categories; these are different than the categories used on your posts.' ) . '

      ' . '

      ' . __( 'You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.' ) . '

      ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'deleting-links', 'title' => __( 'Deleting Links' ), 'content' => '

      ' . __( 'If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Managing Links' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); get_current_screen()->set_screen_reader_content( array( 'heading_list' => __( 'Links list' ), ) ); require_once ABSPATH . 'wp-admin/admin-header.php'; if ( ! current_user_can( 'manage_links' ) ) { wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); } ?>

      '; printf( /* translators: %s: Search query. */ __( 'Search results for: %s' ), '' . esc_html( wp_unslash( $_REQUEST['s'] ) ) . '' ); echo ''; } ?>
      'message', 'additional_classes' => array( 'updated' ), 'dismissible' => true, ) ); $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'deleted' ), $_SERVER['REQUEST_URI'] ); } ?>
      search_box( __( 'Search Links' ), 'link' ); ?> display(); ?>
      site_name ) ); } else { wp_die( __( 'Sorry, the link you clicked is stale. Please select another option.' ) ); } } $blog = get_site(); $user = wp_get_current_user(); // Used in the HTML title tag. $title = __( 'Delete Site' ); $parent_file = 'tools.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; echo '
      '; echo '

      ' . esc_html( $title ) . '

      '; if ( isset( $_POST['action'] ) && 'deleteblog' === $_POST['action'] && isset( $_POST['confirmdelete'] ) && '1' === $_POST['confirmdelete'] ) { check_admin_referer( 'delete-blog' ); $hash = wp_generate_password( 20, false ); update_option( 'delete_blog_hash', $hash, false ); $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); $switched_locale = switch_to_locale( get_locale() ); /* translators: Do not translate USERNAME, URL_DELETE, SITENAME, SITEURL: those are placeholders. */ $content = __( "Howdy ###USERNAME###, You recently clicked the 'Delete Site' link on your site and filled in a form on that page. If you really want to delete your site, click the link below. You will not be asked to confirm again so only click this link if you are absolutely certain: ###URL_DELETE### If you delete your site, please consider opening a new site here some time in the future! (But remember that your current site and username are gone forever.) Thank you for using the site, All at ###SITENAME### ###SITEURL###" ); /** * Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted. * * The following strings have a special meaning and will get replaced dynamically: * * - `###USERNAME###` The current user's username. * - `###URL_DELETE###` The link to click on to confirm the site deletion. * - `###SITENAME###` The name of the site. * - `###SITEURL###` The URL to the site. * * @since 3.0.0 * * @param string $content The email text. */ $content = apply_filters( 'delete_site_email_content', $content ); $content = str_replace( '###USERNAME###', $user->user_login, $content ); $content = str_replace( '###URL_DELETE###', $url_delete, $content ); $content = str_replace( '###SITENAME###', get_network()->site_name, $content ); $content = str_replace( '###SITEURL###', network_home_url(), $content ); wp_mail( get_option( 'admin_email' ), sprintf( /* translators: %s: Site title. */ __( '[%s] Delete My Site' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); if ( $switched_locale ) { restore_previous_locale(); } ?>

      Delete My Site Permanently you will be sent an email with a link in it. Click on this link to delete your site.' ), get_network()->site_name ); ?>

      '; require_once ABSPATH . 'wp-admin/admin-footer.php'; load-scripts.php000064400000004026152213653150007666 0ustar00get_etag( $load ); if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) { header( "$protocol 304 Not Modified" ); exit; } foreach ( $load as $handle ) { if ( ! array_key_exists( $handle, $wp_scripts->registered ) ) { continue; } $path = ABSPATH . $wp_scripts->registered[ $handle ]->src; $out .= get_file( $path ) . "\n"; } header( "Etag: $etag" ); header( 'Content-Type: application/javascript; charset=UTF-8' ); header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' ); header( "Cache-Control: public, max-age=$expires_offset" ); echo $out; exit; comment.php000064400000026573152213653150006737 0ustar00comment_post_ID ) ) { wp_die( __( 'You cannot edit this comment because the associated post is in the Trash. Please restore the post first, then try again.' ) ); } } else { $comment_id = 0; $comment = null; } switch ( $action ) { case 'editcomment': // Used in the HTML title tag. $title = __( 'Edit Comment' ); get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'You can edit the information left in a comment if needed. This is often useful when you notice that a commenter has made a typographical error.' ) . '

      ' . '

      ' . __( 'You can also moderate the comment from this screen using the Status box, where you can also change the timestamp of the comment.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Comments' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); wp_enqueue_script( 'comment' ); require_once ABSPATH . 'wp-admin/admin-header.php'; if ( ! $comment ) { comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( ' ' . __( 'Go back' ) . '.', 'javascript:history.go(-1)' ) ); } if ( ! current_user_can( 'edit_comment', $comment_id ) ) { comment_footer_die( __( 'Sorry, you are not allowed to edit this comment.' ) ); } if ( 'trash' === $comment->comment_approved ) { comment_footer_die( __( 'This comment is in the Trash. Please move it out of the Trash if you want to edit it.' ) ); } $comment = get_comment_to_edit( $comment_id ); require ABSPATH . 'wp-admin/edit-form-comment.php'; break; case 'delete': case 'approve': case 'trash': case 'spam': // Used in the HTML title tag. $title = __( 'Moderate Comment' ); if ( ! $comment ) { wp_redirect( admin_url( 'edit-comments.php?error=1' ) ); die(); } if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) { wp_redirect( admin_url( 'edit-comments.php?error=2' ) ); die(); } // No need to re-approve/re-trash/re-spam a comment. if ( str_replace( '1', 'approve', $comment->comment_approved ) === $action ) { wp_redirect( admin_url( 'edit-comments.php?same=' . $comment_id ) ); die(); } require_once ABSPATH . 'wp-admin/admin-header.php'; $formaction = $action . 'comment'; $nonce_action = ( 'approve' === $action ) ? 'approve-comment_' : 'delete-comment_'; $nonce_action .= $comment_id; ?>

      comment_approved ) { // If not unapproved. $message = ''; switch ( $comment->comment_approved ) { case '1': $message = __( 'This comment is currently approved.' ); break; case 'spam': $message = __( 'This comment is currently marked as spam.' ); break; case 'trash': $message = __( 'This comment is currently in the Trash.' ); break; } if ( $message ) { wp_admin_notice( $message, array( 'type' => 'info', 'id' => 'message', ) ); } } wp_admin_notice( '' . __( 'Caution:' ) . ' ' . $caution_msg, array( 'type' => 'warning', 'id' => 'message', ) ); ?>
      comment_post_ID; if ( current_user_can( 'edit_post', $post_id ) ) { $post_link = ""; $post_link .= esc_html( get_the_title( $post_id ) ) . ''; } else { $post_link = esc_html( get_the_title( $post_id ) ); } echo $post_link; if ( $comment->comment_parent ) { $parent = get_comment( $comment->comment_parent ); $parent_link = esc_url( get_comment_link( $parent ) ); $name = get_comment_author( $parent ); printf( /* translators: %s: Comment link. */ ' | ' . __( 'In reply to %s.' ), '' . $name . '' ); } ?>
      comment_post_ID ) ) { echo '' . $submitted . ''; } else { echo $submitted; } ?>

      comment_ID}" ) ); ?>">

      ' . __( 'Go back' ) . '.', 'edit-comments.php' ) ); } if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) { comment_footer_die( __( 'Sorry, you are not allowed to edit comments on this post.' ) ); } if ( wp_get_referer() && ! $noredir && ! str_contains( wp_get_referer(), 'comment.php' ) ) { $redir = wp_get_referer(); } elseif ( wp_get_original_referer() && ! $noredir ) { $redir = wp_get_original_referer(); } elseif ( in_array( $action, array( 'approvecomment', 'unapprovecomment' ), true ) ) { $redir = admin_url( 'edit-comments.php?p=' . absint( $comment->comment_post_ID ) ); } else { $redir = admin_url( 'edit-comments.php' ); } $redir = remove_query_arg( array( 'spammed', 'unspammed', 'trashed', 'untrashed', 'deleted', 'ids', 'approved', 'unapproved' ), $redir ); switch ( $action ) { case 'deletecomment': wp_delete_comment( $comment ); $redir = add_query_arg( array( 'deleted' => '1' ), $redir ); break; case 'trashcomment': wp_trash_comment( $comment ); $redir = add_query_arg( array( 'trashed' => '1', 'ids' => $comment_id, ), $redir ); break; case 'untrashcomment': wp_untrash_comment( $comment ); $redir = add_query_arg( array( 'untrashed' => '1' ), $redir ); break; case 'spamcomment': wp_spam_comment( $comment ); $redir = add_query_arg( array( 'spammed' => '1', 'ids' => $comment_id, ), $redir ); break; case 'unspamcomment': wp_unspam_comment( $comment ); $redir = add_query_arg( array( 'unspammed' => '1' ), $redir ); break; case 'approvecomment': wp_set_comment_status( $comment, 'approve' ); $redir = add_query_arg( array( 'approved' => 1 ), $redir ); break; case 'unapprovecomment': wp_set_comment_status( $comment, 'hold' ); $redir = add_query_arg( array( 'unapproved' => 1 ), $redir ); break; } wp_redirect( $redir ); die; case 'editedcomment': $comment_id = absint( $_POST['comment_ID'] ); $comment_post_id = absint( $_POST['comment_post_ID'] ); check_admin_referer( 'update-comment_' . $comment_id ); $updated = edit_comment(); if ( is_wp_error( $updated ) ) { wp_die( $updated->get_error_message() ); } $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id; /** * Filters the URI the user is redirected to after editing a comment in the admin. * * @since 2.1.0 * * @param string $location The URI the user will be redirected to. * @param int $comment_id The ID of the comment being edited. */ $location = apply_filters( 'comment_edit_redirect', $location, $comment_id ); wp_redirect( $location ); exit; default: wp_die( __( 'Unknown action.' ) ); } // End switch. require_once ABSPATH . 'wp-admin/admin-footer.php'; user/contribute.php000064400000000413152213653150010412 0ustar00domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ) ); /** * Filters whether to redirect the request to the User Admin in Multisite. * * @since 3.2.0 * * @param bool $redirect_user_admin_request Whether the request should be redirected. */ $redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request ); if ( $redirect_user_admin_request ) { wp_redirect( user_admin_url() ); exit; } unset( $redirect_user_admin_request ); user/freedoms.php000064400000000407152213653150010043 0ustar00

      'message', 'additional_classes' => array( 'error' ), ) ); ?>
      1, // This means "success" for some reason. 'plugin' => $plugin, 'file' => $file, ), admin_url( 'plugin-editor.php' ) ) ); exit; } } // List of allowable extensions. $editable_extensions = wp_get_plugin_file_editable_extensions( $plugin ); if ( ! is_file( $real_file ) ) { wp_die( sprintf( '

      %s

      ', __( 'File does not exist! Please double check the name and try again.' ) ) ); } else { // Get the extension of the file. if ( preg_match( '/\.([^.]+)$/', $real_file, $matches ) ) { $extension = strtolower( $matches[1] ); // If extension is not in the acceptable list, skip it. if ( ! in_array( $extension, $editable_extensions, true ) ) { wp_die( sprintf( '

      %s

      ', __( 'Files of this type are not editable.' ) ) ); } } } get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'You can use the plugin file editor to make changes to any of your plugins’ individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.' ) . '

      ' . '

      ' . __( 'Choose a plugin to edit from the dropdown menu and click the Select button. Click once on any file name to load it in the editor, and make your changes. Do not forget to save your changes (Update File) when you are finished.' ) . '

      ' . '

      ' . __( 'The documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Look Up takes you to a web page about that particular function.' ) . '

      ' . '

      ' . __( 'When using a keyboard to navigate:' ) . '

      ' . '
        ' . '
      • ' . __( 'In the editing area, the Tab key enters a tab character.' ) . '
      • ' . '
      • ' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '
      • ' . '
      • ' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '
      • ' . '
      ' . '

      ' . __( 'If you want to make changes but do not want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.' ) . '

      ' . ( is_network_admin() ? '

      ' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '

      ' : '' ), ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Editing Plugins' ) . '

      ' . '

      ' . __( 'Documentation on Writing Plugins' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); $settings = array( 'codeEditor' => wp_enqueue_code_editor( array( 'file' => $real_file ) ), ); wp_enqueue_script( 'wp-theme-plugin-editor' ); wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) ); wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'wp.themePluginEditor.themeOrPlugin = "plugin";' ) ); require_once ABSPATH . 'wp-admin/admin-header.php'; update_recently_edited( WP_PLUGIN_DIR . '/' . $file ); if ( ! empty( $posted_content ) ) { $content = $posted_content; } else { $content = file_get_contents( $real_file ); } if ( str_ends_with( $real_file, '.php' ) ) { $functions = wp_doc_link_parse( $content ); if ( ! empty( $functions ) ) { $docs_select = ''; } } $content = esc_textarea( $content ); ?>

      array( 'updated', 'is-dismissible' ), 'id' => 'message', ) ); elseif ( is_wp_error( $edit_error ) ) : $error = esc_html( $edit_error->get_error_message() ? $edit_error->get_error_message() : $edit_error->get_error_code() ); $message = '

      ' . __( 'There was an error while trying to update the file. You may need to fix something and try updating again.' ) . '

      ' . $error . '
      '; wp_admin_notice( $message, array( 'type' => 'error', 'id' => 'message', 'paragraph_wrap' => false, ) ); endif; ?>

      ' . esc_html( $plugin_name ) . '' ); } else { /* translators: %s: Plugin name. */ printf( __( 'Browsing %s (active)' ), '' . esc_html( $plugin_name ) . '' ); } } else { if ( is_writable( $real_file ) ) { /* translators: %s: Plugin name. */ printf( __( 'Editing %s (inactive)' ), '' . esc_html( $plugin_name ) . '' ); } else { /* translators: %s: Plugin name. */ printf( __( 'Browsing %s (inactive)' ), '' . esc_html( $plugin_name ) . '' ); } } ?>

      ' . __( 'File: %s' ) . '', esc_html( $file ) ); ?>

      Warning: Making changes to active plugins is not recommended.' ), array( 'type' => 'warning', 'additional_classes' => array( 'inline', 'active-plugin-edit-warning' ), ) ); } ?>

      Changing File Permissions for more information.' ), __( 'https://developer.wordpress.org/advanced-administration/server/file-permissions/' ) ); ?>


      add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'You can submit content in several different ways; this screen holds the settings for all of them. The top section controls the editor within the dashboard, while the rest control external publishing methods. For more information on any of these methods, use the documentation links.' ) . '

      ' . '

      ' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '

      ', ) ); /** This filter is documented in wp-admin/options.php */ if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { get_current_screen()->add_help_tab( array( 'id' => 'options-postemail', 'title' => __( 'Post Via Email' ), 'content' => '

      ' . __( 'Post via email settings allow you to send your WordPress installation an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '

      ', ) ); } /** This filter is documented in wp-admin/options-writing.php */ if ( apply_filters( 'enable_update_services_configuration', true ) ) { get_current_screen()->add_help_tab( array( 'id' => 'options-services', 'title' => __( 'Update Services' ), 'content' => '

      ' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '

      ', ) ); } get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Writing Settings' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); wp_enqueue_script( 'user-profile' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      %s', wp_generate_password( 8, false ) ), sprintf( '%s', wp_generate_password( 8, false ) ), sprintf( '%s', wp_generate_password( 8, false ) ) ); ?>

      Update Services because of your site’s visibility settings.' ), __( 'https://developer.wordpress.org/advanced-administration/wordpress/update-services/' ), 'options-reading.php' ); ?>

      site-health.php000064400000024265152213653150007500 0ustar00 _x( 'Status', 'Site Health' ), /* translators: Tab heading for Site Health Info page. */ 'debug' => _x( 'Info', 'Site Health' ), ); /** * Filters the extra tabs for the Site Health navigation bar. * * Add a custom page to the Site Health screen, based on a tab slug and label. * The label you provide will also be used as part of the site title. * * @since 5.8.0 * * @param string[] $tabs An associative array of tab labels keyed by their slug. */ $tabs = apply_filters( 'site_health_navigation_tabs', $tabs ); $wrapper_classes = array( 'health-check-tabs-wrapper', 'hide-if-no-js', 'tab-count-' . count( $tabs ), ); $current_tab = $_GET['tab'] ?? ''; $title = sprintf( // translators: %s: The currently displayed tab. __( 'Site Health - %s' ), ( isset( $tabs[ $current_tab ] ) ? esc_html( $tabs[ $current_tab ] ) : esc_html( reset( $tabs ) ) ) ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_die( __( 'Sorry, you are not allowed to access site health information.' ), '', 403 ); } wp_enqueue_style( 'site-health' ); wp_enqueue_script( 'site-health' ); if ( ! class_exists( 'WP_Site_Health' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; } if ( 'update_https' === $action ) { check_admin_referer( 'wp_update_https' ); if ( ! current_user_can( 'update_https' ) ) { wp_die( __( 'Sorry, you are not allowed to update this site to HTTPS.' ), 403 ); } if ( ! wp_is_https_supported() ) { wp_die( __( 'It looks like HTTPS is not supported for your website at this point.' ) ); } $result = wp_update_urls_to_https(); wp_redirect( add_query_arg( 'https_updated', (int) $result, wp_get_referer() ) ); exit; } $health_check_site_status = WP_Site_Health::get_instance(); get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'This screen allows you to obtain a health diagnosis of your site, and displays an overall rating of the status of your installation.' ) . '

      ' . '

      ' . __( 'In the Status tab, you can see critical information about your WordPress configuration, along with anything else that requires your attention.' ) . '

      ' . '

      ' . __( 'In the Info tab, you will find all the details about the configuration of your WordPress site, server, and database. There is also an export feature that allows you to copy all of the information about your site to the clipboard, to help solve problems on your site when obtaining support.' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Site Health tool' ) . '

      ' ); // Start by checking if this is a special request checking for the existence of certain filters. $health_check_site_status->check_wp_version_check_exists(); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      'success', 'id' => 'message', 'dismissible' => true, ) ); } else { wp_admin_notice( __( 'Site URLs could not be switched to HTTPS.' ), array( 'type' => 'error', 'id' => 'message', 'dismissible' => true, ) ); } } ?>

      'error', 'additional_classes' => array( 'hide-if-js' ), ) ); ?>

      ' . __( 'You need a higher level of permission.' ) . '' . '

      ' . __( 'Sorry, you are not allowed to manage options for this site.' ) . '

      ', 403 ); } // Handle admin email change requests. if ( ! empty( $_GET['adminhash'] ) ) { $new_admin_details = get_option( 'adminhash' ); $redirect = 'options-general.php?updated=false'; if ( is_array( $new_admin_details ) && hash_equals( $new_admin_details['hash'], $_GET['adminhash'] ) && ! empty( $new_admin_details['newemail'] ) ) { update_option( 'admin_email', $new_admin_details['newemail'] ); delete_option( 'adminhash' ); delete_option( 'new_admin_email' ); $redirect = 'options-general.php?updated=true'; } wp_redirect( admin_url( $redirect ) ); exit; } elseif ( ! empty( $_GET['dismiss'] ) && 'new_admin_email' === $_GET['dismiss'] ) { check_admin_referer( 'dismiss-' . get_current_blog_id() . '-new_admin_email' ); delete_option( 'adminhash' ); delete_option( 'new_admin_email' ); wp_redirect( admin_url( 'options-general.php?updated=true' ) ); exit; } if ( is_multisite() && ! current_user_can( 'manage_network_options' ) && 'update' !== $action ) { wp_die( '

      ' . __( 'You need a higher level of permission.' ) . '

      ' . '

      ' . __( 'Sorry, you are not allowed to delete these items.' ) . '

      ', 403 ); } $allowed_options = array( 'general' => array( 'blogname', 'blogdescription', 'site_icon', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string', 'WPLANG', 'new_admin_email', ), 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_previously_approved', 'comment_max_links', 'moderation_keys', 'disallowed_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration', 'show_comments_cookies_opt_in', 'wp_notes_notify', ), 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', ), 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'show_on_front', 'page_on_front', 'page_for_posts', 'blog_public', ), 'writing' => array( 'default_category', 'default_email_category', 'default_link_category', 'default_post_format', ), ); $allowed_options['misc'] = array(); $allowed_options['options'] = array(); $allowed_options['privacy'] = array(); /** * Filters whether the post-by-email functionality is enabled. * * @since 3.0.0 * * @param bool $enabled Whether post-by-email configuration is enabled. Default true. */ if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { $allowed_options['writing'][] = 'mailserver_url'; $allowed_options['writing'][] = 'mailserver_port'; $allowed_options['writing'][] = 'mailserver_login'; $allowed_options['writing'][] = 'mailserver_pass'; } if ( ! is_utf8_charset() ) { $allowed_options['reading'][] = 'blog_charset'; } if ( get_site_option( 'initial_db_version' ) < 32453 ) { $allowed_options['writing'][] = 'use_smilies'; $allowed_options['writing'][] = 'use_balanceTags'; } if ( ! is_multisite() ) { if ( ! defined( 'WP_SITEURL' ) ) { $allowed_options['general'][] = 'siteurl'; } if ( ! defined( 'WP_HOME' ) ) { $allowed_options['general'][] = 'home'; } $allowed_options['general'][] = 'users_can_register'; $allowed_options['general'][] = 'default_role'; if ( '1' === get_option( 'blog_public' ) ) { $allowed_options['writing'][] = 'ping_sites'; } $allowed_options['media'][] = 'uploads_use_yearmonth_folders'; /* * If upload_url_path is not the default (empty), * or upload_path is not the default ('wp-content/uploads' or empty), * they can be edited, otherwise they're locked. */ if ( get_option( 'upload_url_path' ) || get_option( 'upload_path' ) && 'wp-content/uploads' !== get_option( 'upload_path' ) ) { $allowed_options['media'][] = 'upload_path'; $allowed_options['media'][] = 'upload_url_path'; } } /** * Filters the allowed options list. * * @since 2.7.0 * @deprecated 5.5.0 Use {@see 'allowed_options'} instead. * * @param array $allowed_options The allowed options list. */ $allowed_options = apply_filters_deprecated( 'whitelist_options', array( $allowed_options ), '5.5.0', 'allowed_options', __( 'Please consider writing more inclusive code.' ) ); /** * Filters the allowed options list. * * @since 5.5.0 * * @param array $allowed_options The allowed options list. */ $allowed_options = apply_filters( 'allowed_options', $allowed_options ); if ( 'update' === $action ) { // We are saving settings sent from a settings page. if ( 'options' === $option_page && ! isset( $_POST['option_page'] ) ) { // This is for back compat and will eventually be removed. $unregistered = true; check_admin_referer( 'update-options' ); } else { $unregistered = false; check_admin_referer( $option_page . '-options' ); } if ( ! isset( $allowed_options[ $option_page ] ) ) { wp_die( sprintf( /* translators: %s: The options page name. */ __( 'Error: The %s options page is not in the allowed options list.' ), '' . esc_html( $option_page ) . '' ) ); } if ( 'options' === $option_page ) { if ( is_multisite() && ! current_user_can( 'manage_network_options' ) ) { wp_die( __( 'Sorry, you are not allowed to modify unregistered settings for this site.' ) ); } $options = isset( $_POST['page_options'] ) ? explode( ',', wp_unslash( $_POST['page_options'] ) ) : null; } else { $options = $allowed_options[ $option_page ]; } if ( 'general' === $option_page ) { // Handle custom date/time formats. if ( ! empty( $_POST['date_format'] ) && isset( $_POST['date_format_custom'] ) && '\c\u\s\t\o\m' === wp_unslash( $_POST['date_format'] ) ) { $_POST['date_format'] = $_POST['date_format_custom']; } if ( ! empty( $_POST['time_format'] ) && isset( $_POST['time_format_custom'] ) && '\c\u\s\t\o\m' === wp_unslash( $_POST['time_format'] ) ) { $_POST['time_format'] = $_POST['time_format_custom']; } // Map UTC+- timezones to gmt_offsets and set timezone_string to empty. if ( ! empty( $_POST['timezone_string'] ) && preg_match( '/^UTC[+-]/', $_POST['timezone_string'] ) ) { $_POST['gmt_offset'] = $_POST['timezone_string']; $_POST['gmt_offset'] = preg_replace( '/UTC\+?/', '', $_POST['gmt_offset'] ); $_POST['timezone_string'] = ''; } elseif ( isset( $_POST['timezone_string'] ) && ! in_array( $_POST['timezone_string'], timezone_identifiers_list( DateTimeZone::ALL_WITH_BC ), true ) ) { // Reset to the current value. $current_timezone_string = get_option( 'timezone_string' ); if ( ! empty( $current_timezone_string ) ) { $_POST['timezone_string'] = $current_timezone_string; } else { $_POST['gmt_offset'] = get_option( 'gmt_offset' ); $_POST['timezone_string'] = ''; } add_settings_error( 'general', 'settings_updated', __( 'The timezone you have entered is not valid. Please select a valid timezone.' ), 'error' ); } // Handle translation installation. if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) ) { require_once ABSPATH . 'wp-admin/includes/translation-install.php'; if ( wp_can_install_language_pack() ) { $language = wp_download_language_pack( $_POST['WPLANG'] ); if ( $language ) { $_POST['WPLANG'] = $language; } } } } if ( $options ) { $user_language_old = get_user_locale(); foreach ( $options as $option ) { if ( $unregistered ) { _deprecated_argument( 'options.php', '2.7.0', sprintf( /* translators: 1: The option/setting, 2: Documentation URL. */ __( 'The %1$s setting is unregistered. Unregistered settings are deprecated. See documentation on the Settings API.' ), '' . esc_html( $option ) . '', __( 'https://developer.wordpress.org/plugins/settings/settings-api/' ) ) ); } $option = trim( $option ); $value = null; if ( isset( $_POST[ $option ] ) ) { $value = $_POST[ $option ]; if ( ! is_array( $value ) ) { $value = trim( $value ); } $value = wp_unslash( $value ); } update_option( $option, $value ); } /* * Switch translation in case WPLANG was changed. * The global $locale is used in get_locale() which is * used as a fallback in get_user_locale(). */ unset( $GLOBALS['locale'] ); $user_language_new = get_user_locale(); if ( $user_language_old !== $user_language_new ) { load_default_textdomain( $user_language_new ); } } else { add_settings_error( 'general', 'settings_updated', __( 'Settings save failed.' ), 'error' ); } /* * Handle settings errors and return to options page. */ // If no settings errors were registered add a general 'updated' message. if ( ! count( get_settings_errors() ) ) { add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' ); } set_transient( 'settings_errors', get_settings_errors(), 30 ); // 30 seconds. // Redirect back to the settings page that was submitted. $goback = add_query_arg( 'settings-updated', 'true', wp_get_referer() ); wp_redirect( $goback ); exit; } require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      ' . __( 'Warning:' ) . ' ' . __( 'This page allows direct access to your site settings. You can break things here. Please be cautious!' ), array( 'type' => 'warning', ) ); ?>
      get_results( "SELECT * FROM $wpdb->options ORDER BY option_name" ); foreach ( (array) $options as $option ) : $disabled = false; if ( '' === $option->option_name ) { continue; } if ( 'home' === $option->option_name && defined( 'WP_HOME' ) ) { $disabled = true; } if ( 'siteurl' === $option->option_name && defined( 'WP_SITEURL' ) ) { $disabled = true; } if ( is_serialized( $option->option_value ) ) { if ( is_serialized_string( $option->option_value ) ) { // This is a serialized string, so we should display it. $value = maybe_unserialize( $option->option_value ); $options_to_update[] = $option->option_name; } else { $value = 'SERIALIZED DATA'; $disabled = true; } } elseif ( str_starts_with( $option->option_name, 'connectors_' ) && str_ends_with( $option->option_name, '_api_key' ) ) { // Mask connector API keys and prevent updates from this screen. $value = _wp_connectors_mask_api_key( $option->option_value ); $disabled = true; } else { $value = $option->option_value; $options_to_update[] = $option->option_name; } $class = 'all-options'; if ( $disabled ) { $class .= ' disabled'; } $name = esc_attr( $option->option_name ); ?>
      ' . __( 'Welcome to your WordPress Dashboard!' ) . '

      '; $help .= '

      ' . __( 'The Dashboard is the first place you will come to every time you log into your site. It is where you will find all your WordPress tools. If you need help, just click the “Help” tab above the screen title.' ) . '

      '; $screen = get_current_screen(); $screen->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $help, ) ); // Help tabs. $help = '

      ' . __( 'The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.' ) . '

      '; $help .= '

      ' . __( 'Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.' ) . '

      '; $screen->add_help_tab( array( 'id' => 'help-navigation', 'title' => __( 'Navigation' ), 'content' => $help, ) ); $help = '

      ' . __( 'You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.' ) . '

      '; $help .= '

      ' . __( 'Screen Options — Use the Screen Options tab to choose which Dashboard boxes to show.' ) . '

      '; $help .= '

      ' . __( 'Drag and Drop — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.' ) . '

      '; $help .= '

      ' . __( 'Box Controls — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.' ) . '

      '; $screen->add_help_tab( array( 'id' => 'help-layout', 'title' => __( 'Layout' ), 'content' => $help, ) ); $help = '

      ' . __( 'The boxes on your Dashboard screen are:' ) . '

      '; if ( current_user_can( 'edit_theme_options' ) ) { $help .= '

      ' . __( 'Welcome — Shows links for some of the most common tasks when setting up a new site.' ) . '

      '; } if ( current_user_can( 'view_site_health_checks' ) ) { $help .= '

      ' . __( 'Site Health Status — Informs you of any potential issues that should be addressed to improve the performance or security of your website.' ) . '

      '; } if ( current_user_can( 'edit_posts' ) ) { $help .= '

      ' . __( 'At a Glance — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '

      '; } $help .= '

      ' . __( 'Activity — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '

      '; if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) { $help .= '

      ' . __( "Quick Draft — Allows you to create a new post and save it as a draft. Also displays links to the 3 most recent draft posts you've started." ) . '

      '; } $help .= '

      ' . sprintf( /* translators: %s: WordPress Planet URL. */ __( 'WordPress Events and News — Upcoming events near you as well as the latest news from the official WordPress project and the WordPress Planet.' ), __( 'https://planet.wordpress.org/' ) ) . '

      '; $screen->add_help_tab( array( 'id' => 'help-content', 'title' => __( 'Content' ), 'content' => $help, ) ); unset( $help ); $wp_version = get_bloginfo( 'version', 'display' ); /* translators: %s: WordPress version. */ $wp_version_text = sprintf( __( 'Version %s' ), $wp_version ); $is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version ); if ( ! $is_dev_version ) { $version_url = sprintf( /* translators: %s: WordPress version. */ esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ), sanitize_title( $wp_version ) ); $wp_version_text = sprintf( '%2$s', $version_url, $wp_version_text ); } $screen->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Dashboard' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' . '

      ' . $wp_version_text . '

      ' ); require_once ABSPATH . 'wp-admin/admin-header.php'; ?>

      'success', 'dismissible' => true, ) ); endif; endif; ?> user_email !== get_option( 'admin_email' ) ) ); if ( $hide ) { $classes .= ' hidden'; } ?>
      bulk_upgrade( $plugins ); iframe_footer(); } elseif ( 'upgrade-plugin' === $action ) { if ( ! current_user_can( 'update_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); } check_admin_referer( 'upgrade-plugin_' . $plugin ); // Used in the HTML title tag. $title = __( 'Update Plugin' ); $parent_file = 'plugins.php'; $submenu_file = 'plugins.php'; wp_enqueue_script( 'updates' ); require_once ABSPATH . 'wp-admin/admin-header.php'; $nonce = 'upgrade-plugin_' . $plugin; $url = 'update.php?action=upgrade-plugin&plugin=' . urlencode( $plugin ); $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'plugin' ) ) ); $upgrader->upgrade( $plugin ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'activate-plugin' === $action ) { if ( ! current_user_can( 'update_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); } check_admin_referer( 'activate-plugin_' . $plugin ); if ( ! isset( $_GET['failure'] ) && ! isset( $_GET['success'] ) ) { wp_redirect( admin_url( 'update.php?action=activate-plugin&failure=true&plugin=' . urlencode( $plugin ) . '&_wpnonce=' . $_GET['_wpnonce'] ) ); activate_plugin( $plugin, '', ! empty( $_GET['networkwide'] ), true ); wp_redirect( admin_url( 'update.php?action=activate-plugin&success=true&plugin=' . urlencode( $plugin ) . '&_wpnonce=' . $_GET['_wpnonce'] ) ); die(); } iframe_header( __( 'Plugin Reactivation' ), true ); if ( isset( $_GET['success'] ) ) { echo '

      ' . __( 'Plugin reactivated successfully.' ) . '

      '; } if ( isset( $_GET['failure'] ) ) { echo '

      ' . __( 'Plugin failed to reactivate due to a fatal error.' ) . '

      '; error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); ini_set( 'display_errors', true ); // Ensure that fatal errors are displayed. wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); include WP_PLUGIN_DIR . '/' . $plugin; } iframe_footer(); } elseif ( 'install-plugin' === $action ) { if ( ! current_user_can( 'install_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); } require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; // For plugins_api(). check_admin_referer( 'install-plugin_' . $plugin ); $api = plugins_api( 'plugin_information', array( 'slug' => $plugin, 'fields' => array( 'sections' => false, ), ) ); if ( is_wp_error( $api ) ) { wp_die( $api ); } // Used in the HTML title tag. $title = __( 'Plugin Installation' ); $parent_file = 'plugins.php'; $submenu_file = 'plugin-install.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: Plugin name and version. */ $title = sprintf( __( 'Installing Plugin: %s' ), $api->name . ' ' . $api->version ); $nonce = 'install-plugin_' . $plugin; $url = 'update.php?action=install-plugin&plugin=' . urlencode( $plugin ); if ( isset( $_GET['from'] ) ) { $url .= '&from=' . urlencode( stripslashes( $_GET['from'] ) ); } $type = 'web'; // Install plugin type, From Web or an Upload. $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); $upgrader->install( $api->download_link ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'upload-plugin' === $action ) { if ( ! current_user_can( 'upload_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); } check_admin_referer( 'plugin-upload' ); if ( isset( $_FILES['pluginzip']['name'] ) && ! str_ends_with( strtolower( $_FILES['pluginzip']['name'] ), '.zip' ) ) { wp_die( __( 'Only .zip archives may be uploaded.' ) ); } $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); // Used in the HTML title tag. $title = __( 'Upload Plugin' ); $parent_file = 'plugins.php'; $submenu_file = 'plugin-install.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: File name. */ $title = sprintf( __( 'Installing plugin from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) ); $nonce = 'plugin-upload'; $url = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-plugin' ); $type = 'upload'; // Install plugin type, From Web or an Upload. $overwrite = isset( $_GET['overwrite'] ) ? sanitize_text_field( $_GET['overwrite'] ) : ''; $overwrite = in_array( $overwrite, array( 'update-plugin', 'downgrade-plugin' ), true ) ? $overwrite : ''; $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'type', 'title', 'nonce', 'url', 'overwrite' ) ) ); $result = $upgrader->install( $file_upload->package, array( 'overwrite_package' => $overwrite ) ); if ( $result || is_wp_error( $result ) ) { $file_upload->cleanup(); } require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'upload-plugin-cancel-overwrite' === $action ) { if ( ! current_user_can( 'upload_plugins' ) ) { wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); } check_admin_referer( 'plugin-upload-cancel-overwrite' ); // Make sure the attachment still exists, or File_Upload_Upgrader will call wp_die() // that shows a generic "Please select a file" error. if ( ! empty( $_GET['package'] ) ) { $attachment_id = (int) $_GET['package']; if ( get_post( $attachment_id ) ) { $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); $file_upload->cleanup(); } } wp_redirect( self_admin_url( 'plugin-install.php' ) ); exit; } elseif ( 'upgrade-theme' === $action ) { if ( ! current_user_can( 'update_themes' ) ) { wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) ); } check_admin_referer( 'upgrade-theme_' . $theme ); wp_enqueue_script( 'updates' ); // Used in the HTML title tag. $title = __( 'Update Theme' ); $parent_file = 'themes.php'; $submenu_file = 'themes.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; $nonce = 'upgrade-theme_' . $theme; $url = 'update.php?action=upgrade-theme&theme=' . urlencode( $theme ); $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact( 'title', 'nonce', 'url', 'theme' ) ) ); $upgrader->upgrade( $theme ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'update-selected-themes' === $action ) { if ( ! current_user_can( 'update_themes' ) ) { wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) ); } check_admin_referer( 'bulk-update-themes' ); if ( isset( $_GET['themes'] ) ) { $themes = explode( ',', stripslashes( $_GET['themes'] ) ); } elseif ( isset( $_POST['checked'] ) ) { $themes = (array) $_POST['checked']; } else { $themes = array(); } $themes = array_map( 'urldecode', $themes ); $url = 'update.php?action=update-selected-themes&themes=' . urlencode( implode( ',', $themes ) ); $nonce = 'bulk-update-themes'; wp_enqueue_script( 'updates' ); iframe_header(); $upgrader = new Theme_Upgrader( new Bulk_Theme_Upgrader_Skin( compact( 'nonce', 'url' ) ) ); $upgrader->bulk_upgrade( $themes ); iframe_footer(); } elseif ( 'install-theme' === $action ) { if ( ! current_user_can( 'install_themes' ) ) { wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; // For themes_api(). check_admin_referer( 'install-theme_' . $theme ); $api = themes_api( 'theme_information', array( 'slug' => $theme, 'fields' => array( 'sections' => false, 'tags' => false, ), ) ); // Save on a bit of bandwidth. if ( is_wp_error( $api ) ) { wp_die( $api ); } // Used in the HTML title tag. $title = __( 'Install Themes' ); $parent_file = 'themes.php'; $submenu_file = 'themes.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: Theme name and version. */ $title = sprintf( __( 'Installing Theme: %s' ), $api->name . ' ' . $api->version ); $nonce = 'install-theme_' . $theme; $url = 'update.php?action=install-theme&theme=' . urlencode( $theme ); $type = 'web'; // Install theme type, From Web or an Upload. $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); $upgrader->install( $api->download_link ); require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'upload-theme' === $action ) { if ( ! current_user_can( 'upload_themes' ) ) { wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); } check_admin_referer( 'theme-upload' ); if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) { wp_die( __( 'Only .zip archives may be uploaded.' ) ); } $file_upload = new File_Upload_Upgrader( 'themezip', 'package' ); // Used in the HTML title tag. $title = __( 'Upload Theme' ); $parent_file = 'themes.php'; $submenu_file = 'theme-install.php'; require_once ABSPATH . 'wp-admin/admin-header.php'; /* translators: %s: File name. */ $title = sprintf( __( 'Installing theme from uploaded file: %s' ), esc_html( basename( $file_upload->filename ) ) ); $nonce = 'theme-upload'; $url = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-theme' ); $type = 'upload'; // Install theme type, From Web or an Upload. $overwrite = isset( $_GET['overwrite'] ) ? sanitize_text_field( $_GET['overwrite'] ) : ''; $overwrite = in_array( $overwrite, array( 'update-theme', 'downgrade-theme' ), true ) ? $overwrite : ''; $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'type', 'title', 'nonce', 'url', 'overwrite' ) ) ); $result = $upgrader->install( $file_upload->package, array( 'overwrite_package' => $overwrite ) ); if ( $result || is_wp_error( $result ) ) { $file_upload->cleanup(); } require_once ABSPATH . 'wp-admin/admin-footer.php'; } elseif ( 'upload-theme-cancel-overwrite' === $action ) { if ( ! current_user_can( 'upload_themes' ) ) { wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); } check_admin_referer( 'theme-upload-cancel-overwrite' ); // Make sure the attachment still exists, or File_Upload_Upgrader will call wp_die() // that shows a generic "Please select a file" error. if ( ! empty( $_GET['package'] ) ) { $attachment_id = (int) $_GET['package']; if ( get_post( $attachment_id ) ) { $file_upload = new File_Upload_Upgrader( 'themezip', 'package' ); $file_upload->cleanup(); } } wp_redirect( self_admin_url( 'theme-install.php' ) ); exit; } else { /** * Fires when a custom plugin or theme update request is received. * * The dynamic portion of the hook name, `$action`, refers to the action * provided in the request for wp-admin/update.php. Can be used to * provide custom update functionality for themes and plugins. * * @since 2.8.0 */ do_action( "update-custom_{$action}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } } includes/admin-filters.php000064400000017542152213653150011635 0ustar00user_id = absint( $user_id ); $this->user_location = $user_location; } /** * Gets data about events near a particular location. * * Cached events will be immediately returned if the `user_location` property * is set for the current user, and cached events exist for that location. * * Otherwise, this method sends a request to the w.org Events API with location * data. The API will send back a recognized location based on the data, along * with nearby events. * * The browser's request for events is proxied with this method, rather * than having the browser make the request directly to api.wordpress.org, * because it allows results to be cached server-side and shared with other * users and sites in the network. This makes the process more efficient, * since increasing the number of visits that get cached data means users * don't have to wait as often; if the user's browser made the request * directly, it would also need to make a second request to WP in order to * pass the data for caching. Having WP make the request also introduces * the opportunity to anonymize the IP before sending it to w.org, which * mitigates possible privacy concerns. * * @since 4.8.0 * @since 5.5.2 Response no longer contains formatted date field. They're added * in `wp.communityEvents.populateDynamicEventFields()` now. * * @param string $location_search Optional. City name to help determine the location. * e.g., "Seattle". Default empty string. * @param string $timezone Optional. Timezone to help determine the location. * Default empty string. * @return array|WP_Error A WP_Error on failure; an array with location and events on * success. */ public function get_events( $location_search = '', $timezone = '' ) { $cached_events = $this->get_cached_events(); if ( ! $location_search && $cached_events ) { return $cached_events; } // Include an unmodified $wp_version. require ABSPATH . WPINC . '/version.php'; $api_url = 'http://api.wordpress.org/events/1.0/'; $request_args = $this->get_request_args( $location_search, $timezone ); $request_args['user-agent'] = 'WordPress/' . $wp_version . '; ' . home_url( '/' ); if ( wp_http_supports( array( 'ssl' ) ) ) { $api_url = set_url_scheme( $api_url, 'https' ); } $response = wp_remote_get( $api_url, $request_args ); $response_code = wp_remote_retrieve_response_code( $response ); $response_body = json_decode( wp_remote_retrieve_body( $response ), true ); $response_error = null; if ( is_wp_error( $response ) ) { $response_error = $response; } elseif ( 200 !== $response_code ) { $response_error = new WP_Error( 'api-error', /* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */ sprintf( __( 'Invalid API response code (%d).' ), $response_code ) ); } elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) { $response_error = new WP_Error( 'api-invalid-response', $response_body['error'] ?? __( 'Unknown API error.' ) ); } if ( is_wp_error( $response_error ) ) { return $response_error; } else { $expiration = false; if ( isset( $response_body['ttl'] ) ) { $expiration = $response_body['ttl']; unset( $response_body['ttl'] ); } /* * The IP in the response is usually the same as the one that was sent * in the request, but in some cases it is different. In those cases, * it's important to reset it back to the IP from the request. * * For example, if the IP sent in the request is private (e.g., 192.168.1.100), * then the API will ignore that and use the corresponding public IP instead, * and the public IP will get returned. If the public IP were saved, though, * then get_cached_events() would always return `false`, because the transient * would be generated based on the public IP when saving the cache, but generated * based on the private IP when retrieving the cache. */ if ( ! empty( $response_body['location']['ip'] ) ) { $response_body['location']['ip'] = $request_args['body']['ip']; } /* * The API doesn't return a description for latitude/longitude requests, * but the description is already saved in the user location, so that * one can be used instead. */ if ( $this->coordinates_match( $request_args['body'], $response_body['location'] ) && empty( $response_body['location']['description'] ) ) { $response_body['location']['description'] = $this->user_location['description']; } /* * Store the raw response, because events will expire before the cache does. * The response will need to be processed every page load. */ $this->cache_events( $response_body, $expiration ); $response_body['events'] = $this->trim_events( $response_body['events'] ); return $response_body; } } /** * Builds an array of args to use in an HTTP request to the w.org Events API. * * @since 4.8.0 * * @param string $search Optional. City search string. Default empty string. * @param string $timezone Optional. Timezone string. Default empty string. * @return array The request args. */ protected function get_request_args( $search = '', $timezone = '' ) { $args = array( 'number' => 5, // Get more than three in case some get trimmed out. 'ip' => self::get_unsafe_client_ip(), ); /* * Include the minimal set of necessary arguments, in order to increase the * chances of a cache-hit on the API side. */ if ( empty( $search ) && isset( $this->user_location['latitude'], $this->user_location['longitude'] ) ) { $args['latitude'] = $this->user_location['latitude']; $args['longitude'] = $this->user_location['longitude']; } else { $args['locale'] = get_user_locale( $this->user_id ); if ( $timezone ) { $args['timezone'] = $timezone; } if ( $search ) { $args['location'] = $search; } } // Wrap the args in an array compatible with the second parameter of `wp_remote_get()`. return array( 'body' => $args, ); } /** * Determines the user's actual IP address and attempts to partially * anonymize an IP address by converting it to a network ID. * * Geolocating the network ID usually returns a similar location as the * actual IP, but provides some privacy for the user. * * $_SERVER['REMOTE_ADDR'] cannot be used in all cases, such as when the user * is making their request through a proxy, or when the web server is behind * a proxy. In those cases, $_SERVER['REMOTE_ADDR'] is set to the proxy address rather * than the user's actual address. * * Modified from https://stackoverflow.com/a/2031935/450127, MIT license. * Modified from https://github.com/geertw/php-ip-anonymizer, MIT license. * * SECURITY WARNING: This function is _NOT_ intended to be used in * circumstances where the authenticity of the IP address matters. This does * _NOT_ guarantee that the returned address is valid or accurate, and it can * be easily spoofed. * * @since 4.8.0 * * @return string|false The anonymized address on success; the given address * or false on failure. */ public static function get_unsafe_client_ip() { $client_ip = false; // In order of preference, with the best ones for this purpose first. $address_headers = array( 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR', ); foreach ( $address_headers as $header ) { if ( array_key_exists( $header, $_SERVER ) ) { /* * HTTP_X_FORWARDED_FOR can contain a chain of comma-separated * addresses. The first one is the original client. It can't be * trusted for authenticity, but we don't need to for this purpose. */ $address_chain = explode( ',', $_SERVER[ $header ] ); $client_ip = trim( $address_chain[0] ); break; } } if ( ! $client_ip ) { return false; } $anon_ip = wp_privacy_anonymize_ip( $client_ip, true ); if ( '0.0.0.0' === $anon_ip || '::' === $anon_ip ) { return false; } return $anon_ip; } /** * Test if two pairs of latitude/longitude coordinates match each other. * * @since 4.8.0 * * @param array $a The first pair, with indexes 'latitude' and 'longitude'. * @param array $b The second pair, with indexes 'latitude' and 'longitude'. * @return bool True if they match, false if they don't. */ protected function coordinates_match( $a, $b ) { if ( ! isset( $a['latitude'], $a['longitude'], $b['latitude'], $b['longitude'] ) ) { return false; } return $a['latitude'] === $b['latitude'] && $a['longitude'] === $b['longitude']; } /** * Generates a transient key based on user location. * * This could be reduced to a one-liner in the calling functions, but it's * intentionally a separate function because it's called from multiple * functions, and having it abstracted keeps the logic consistent and DRY, * which is less prone to errors. * * @since 4.8.0 * * @param array $location Should contain 'latitude' and 'longitude' indexes. * @return string|false Transient key on success, false on failure. */ protected function get_events_transient_key( $location ) { $key = false; if ( isset( $location['ip'] ) ) { $key = 'community-events-' . md5( $location['ip'] ); } elseif ( isset( $location['latitude'], $location['longitude'] ) ) { $key = 'community-events-' . md5( $location['latitude'] . $location['longitude'] ); } return $key; } /** * Caches an array of events data from the Events API. * * @since 4.8.0 * * @param array $events Response body from the API request. * @param int|false $expiration Optional. Amount of time to cache the events. Defaults to false. * @return bool true if events were cached; false if not. */ protected function cache_events( $events, $expiration = false ) { $set = false; $transient_key = $this->get_events_transient_key( $events['location'] ); $cache_expiration = $expiration ? absint( $expiration ) : HOUR_IN_SECONDS * 12; if ( $transient_key ) { $set = set_site_transient( $transient_key, $events, $cache_expiration ); } return $set; } /** * Gets cached events. * * @since 4.8.0 * @since 5.5.2 Response no longer contains formatted date field. They're added * in `wp.communityEvents.populateDynamicEventFields()` now. * * @return array|false An array containing `location` and `events` items * on success, false on failure. */ public function get_cached_events() { $transient_key = $this->get_events_transient_key( $this->user_location ); if ( ! $transient_key ) { return false; } $cached_response = get_site_transient( $transient_key ); if ( isset( $cached_response['events'] ) ) { $cached_response['events'] = $this->trim_events( $cached_response['events'] ); } return $cached_response; } /** * Adds formatted date and time items for each event in an API response. * * This has to be called after the data is pulled from the cache, because * the cached events are shared by all users. If it was called before storing * the cache, then all users would see the events in the localized data/time * of the user who triggered the cache refresh, rather than their own. * * @since 4.8.0 * @deprecated 5.5.2 No longer used in core. * * @param array $response_body The response which contains the events. * @return array The response with dates and times formatted. */ protected function format_event_data_time( $response_body ) { _deprecated_function( __METHOD__, '5.5.2' ); if ( isset( $response_body['events'] ) ) { foreach ( $response_body['events'] as $key => $event ) { $timestamp = strtotime( $event['date'] ); /* * The `date_format` option is not used because it's important * in this context to keep the day of the week in the formatted date, * so that users can tell at a glance if the event is on a day they * are available, without having to open the link. */ /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */ $formatted_date = date_i18n( __( 'l, M j, Y' ), $timestamp ); $formatted_time = date_i18n( get_option( 'time_format' ), $timestamp ); if ( isset( $event['end_date'] ) ) { $end_timestamp = strtotime( $event['end_date'] ); $formatted_end_date = date_i18n( __( 'l, M j, Y' ), $end_timestamp ); if ( 'meetup' !== $event['type'] && $formatted_end_date !== $formatted_date ) { /* translators: Upcoming events month format. See https://www.php.net/manual/datetime.format.php */ $start_month = date_i18n( _x( 'F', 'upcoming events month format' ), $timestamp ); $end_month = date_i18n( _x( 'F', 'upcoming events month format' ), $end_timestamp ); if ( $start_month === $end_month ) { $formatted_date = sprintf( /* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */ __( '%1$s %2$d–%3$d, %4$d' ), $start_month, /* translators: Upcoming events day format. See https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ), date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ), /* translators: Upcoming events year format. See https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp ) ); } else { $formatted_date = sprintf( /* translators: Date string for upcoming events. 1: Starting month, 2: Starting day, 3: Ending month, 4: Ending day, 5: Year. */ __( '%1$s %2$d – %3$s %4$d, %5$d' ), $start_month, date_i18n( _x( 'j', 'upcoming events day format' ), $timestamp ), $end_month, date_i18n( _x( 'j', 'upcoming events day format' ), $end_timestamp ), date_i18n( _x( 'Y', 'upcoming events year format' ), $timestamp ) ); } $formatted_date = wp_maybe_decline_date( $formatted_date, 'F j, Y' ); } } $response_body['events'][ $key ]['formatted_date'] = $formatted_date; $response_body['events'][ $key ]['formatted_time'] = $formatted_time; } } return $response_body; } /** * Prepares the event list for presentation. * * Discards expired events, and makes WordCamps "sticky." Attendees need more * advanced notice about WordCamps than they do for meetups, so camps should * appear in the list sooner. If a WordCamp is coming up, the API will "stick" * it in the response, even if it wouldn't otherwise appear. When that happens, * the event will be at the end of the list, and will need to be moved into a * higher position, so that it doesn't get trimmed off. * * @since 4.8.0 * @since 4.9.7 Stick a WordCamp to the final list. * @since 5.5.2 Accepts and returns only the events, rather than an entire HTTP response. * @since 6.0.0 Decode HTML entities from the event title. * * @param array $events The events that will be prepared. * @return array The response body with events trimmed. */ protected function trim_events( array $events ) { $future_events = array(); foreach ( $events as $event ) { /* * The API's `date` and `end_date` fields are in the _event's_ local timezone, but UTC is needed so * it can be converted to the _user's_ local time. */ $end_time = (int) $event['end_unix_timestamp']; if ( time() < $end_time ) { // Decode HTML entities from the event title. $event['title'] = html_entity_decode( $event['title'], ENT_QUOTES, 'UTF-8' ); array_push( $future_events, $event ); } } $future_wordcamps = array_filter( $future_events, static function ( $wordcamp ) { return 'wordcamp' === $wordcamp['type']; } ); $future_wordcamps = array_values( $future_wordcamps ); // Remove gaps in indices. $trimmed_events = array_slice( $future_events, 0, 3 ); $trimmed_event_types = wp_list_pluck( $trimmed_events, 'type' ); // Make sure the soonest upcoming WordCamp is pinned in the list. if ( $future_wordcamps && ! in_array( 'wordcamp', $trimmed_event_types, true ) ) { array_pop( $trimmed_events ); array_push( $trimmed_events, $future_wordcamps[0] ); } return $trimmed_events; } /** * Logs responses to Events API requests. * * @since 4.8.0 * @deprecated 4.9.0 Use a plugin instead. See #41217 for an example. * * @param string $message A description of what occurred. * @param array $details Details that provide more context for the * log entry. */ protected function maybe_log_events_response( $message, $details ) { _deprecated_function( __METHOD__, '4.9.0' ); if ( ! WP_DEBUG_LOG ) { return; } error_log( sprintf( '%s: %s. Details: %s', __METHOD__, trim( $message, '.' ), wp_json_encode( $details ) ) ); } } includes/class-theme-installer-skin.php000064400000031256152213653150014237 0ustar00 'web', 'url' => '', 'theme' => '', 'nonce' => '', 'title' => '', 'overwrite' => '', ); $args = wp_parse_args( $args, $defaults ); $this->type = $args['type']; $this->url = $args['url']; $this->api = $args['api'] ?? array(); $this->overwrite = $args['overwrite']; parent::__construct( $args ); } /** * Performs an action before installing a theme. * * @since 2.8.0 */ public function before() { if ( ! empty( $this->api ) ) { $this->upgrader->strings['process_success'] = sprintf( $this->upgrader->strings['process_success_specific'], $this->api->name, $this->api->version ); } } /** * Hides the `process_failed` error when updating a theme by uploading a zip file. * * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { if ( 'upload' === $this->type && '' === $this->overwrite && $wp_error->get_error_code() === 'folder_exists' ) { return true; } return false; } /** * Performs an action following a single theme install. * * @since 2.8.0 */ public function after() { if ( $this->do_overwrite() ) { return; } if ( empty( $this->upgrader->result['destination_name'] ) ) { return; } $theme_info = $this->upgrader->theme_info(); if ( empty( $theme_info ) ) { return; } $name = $theme_info->display( 'Name' ); $stylesheet = $this->upgrader->result['destination_name']; $template = $theme_info->get_template(); $activate_link = add_query_arg( array( 'action' => 'activate', 'template' => urlencode( $template ), 'stylesheet' => urlencode( $stylesheet ), ), admin_url( 'themes.php' ) ); $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); $install_actions = array(); if ( current_user_can( 'edit_theme_options' ) && ( $theme_info->is_block_theme() || current_user_can( 'customize' ) ) ) { if ( $theme_info->is_block_theme() ) { $customize_url = add_query_arg( array( 'wp_theme_preview' => urlencode( $stylesheet ), 'return' => urlencode( admin_url( 'web' === $this->type ? 'theme-install.php' : 'themes.php' ) ), ), admin_url( 'site-editor.php' ) ); } else { $customize_url = add_query_arg( array( 'theme' => urlencode( $stylesheet ), 'return' => urlencode( admin_url( 'web' === $this->type ? 'theme-install.php' : 'themes.php' ) ), ), admin_url( 'customize.php' ) ); } $install_actions['preview'] = sprintf( '' . '%s', esc_url( $customize_url ), __( 'Live Preview' ), /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( __( 'Live Preview “%s”' ), $name ) ); } $install_actions['activate'] = sprintf( '' . '%s', esc_url( $activate_link ), _x( 'Activate', 'theme' ), /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( _x( 'Activate “%s”', 'theme' ), $name ) ); if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) { $install_actions['network_enable'] = sprintf( '%s', esc_url( wp_nonce_url( 'themes.php?action=enable&theme=' . urlencode( $stylesheet ), 'enable-theme_' . $stylesheet ) ), __( 'Network Enable' ) ); } if ( 'web' === $this->type ) { $install_actions['themes_page'] = sprintf( '%s', self_admin_url( 'theme-install.php' ), __( 'Go to Theme Installer' ) ); } elseif ( current_user_can( 'switch_themes' ) || current_user_can( 'edit_theme_options' ) ) { $install_actions['themes_page'] = sprintf( '%s', self_admin_url( 'themes.php' ), __( 'Go to Themes page' ) ); } if ( ! $this->result || is_wp_error( $this->result ) || is_network_admin() || ! current_user_can( 'switch_themes' ) ) { unset( $install_actions['activate'], $install_actions['preview'] ); } elseif ( get_option( 'template' ) === $stylesheet ) { unset( $install_actions['activate'] ); } /** * Filters the list of action links available following a single theme installation. * * @since 2.8.0 * * @param string[] $install_actions Array of theme action links. * @param object $api Object containing WordPress.org API theme data. * @param string $stylesheet Theme directory name. * @param WP_Theme $theme_info Theme object. */ $install_actions = apply_filters( 'install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info ); if ( ! empty( $install_actions ) ) { $this->feedback( implode( ' | ', (array) $install_actions ) ); } } /** * Checks if the theme can be overwritten and outputs the HTML for overwriting a theme on upload. * * @since 5.5.0 * * @return bool Whether the theme can be overwritten and HTML was outputted. */ private function do_overwrite() { if ( 'upload' !== $this->type || ! is_wp_error( $this->result ) || 'folder_exists' !== $this->result->get_error_code() ) { return false; } $folder = $this->result->get_error_data( 'folder_exists' ); $folder = rtrim( $folder, '/' ); $current_theme_data = false; $all_themes = wp_get_themes( array( 'errors' => null ) ); foreach ( $all_themes as $theme ) { $stylesheet_dir = wp_normalize_path( $theme->get_stylesheet_directory() ); if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) { continue; } $current_theme_data = $theme; } $new_theme_data = $this->upgrader->new_theme_data; if ( ! $current_theme_data || ! $new_theme_data ) { return false; } echo '

      ' . esc_html__( 'This theme is already installed.' ) . '

      '; // Check errors for active theme. if ( is_wp_error( $current_theme_data->errors() ) ) { $this->feedback( 'current_theme_has_errors', $current_theme_data->errors()->get_error_message() ); } $this->is_downgrading = version_compare( $current_theme_data['Version'], $new_theme_data['Version'], '>' ); $is_invalid_parent = false; if ( ! empty( $new_theme_data['Template'] ) ) { $is_invalid_parent = ! in_array( $new_theme_data['Template'], array_keys( $all_themes ), true ); } $rows = array( 'Name' => __( 'Theme name' ), 'Version' => __( 'Version' ), 'Author' => __( 'Author' ), 'RequiresWP' => __( 'Required WordPress version' ), 'RequiresPHP' => __( 'Required PHP version' ), 'Template' => __( 'Parent theme' ), ); $table = ''; $table .= ''; $is_same_theme = true; // Let's consider only these rows. foreach ( $rows as $field => $label ) { $old_value = $current_theme_data->display( $field, false ); $old_value = $old_value ? (string) $old_value : '-'; $new_value = ! empty( $new_theme_data[ $field ] ) ? (string) $new_theme_data[ $field ] : '-'; if ( $old_value === $new_value && '-' === $new_value && 'Template' === $field ) { continue; } $is_same_theme = $is_same_theme && ( $old_value === $new_value ); $diff_field = ( 'Version' !== $field && $new_value !== $old_value ); $diff_version = ( 'Version' === $field && $this->is_downgrading ); $invalid_parent = false; if ( 'Template' === $field && $is_invalid_parent ) { $invalid_parent = true; $new_value .= ' ' . __( '(not found)' ); } $table .= ''; $table .= ( $diff_field || $diff_version || $invalid_parent ) ? ''; } $table .= '
      ' . esc_html_x( 'Installed', 'theme' ) . '' . esc_html_x( 'Uploaded', 'theme' ) . '
      ' . $label . '' . wp_strip_all_tags( $old_value ) . '' : ''; $table .= wp_strip_all_tags( $new_value ) . '
      '; /** * Filters the compare table output for overwriting a theme package on upload. * * @since 5.5.0 * * @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info. * @param WP_Theme $current_theme_data Active theme data. * @param array $new_theme_data Array with uploaded theme data. */ echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $new_theme_data ); $install_actions = array(); $can_update = true; $blocked_message = '

      ' . esc_html__( 'The theme cannot be updated due to the following:' ) . '

      '; $blocked_message .= '
        '; $requires_php = $new_theme_data['RequiresPHP'] ?? null; $requires_wp = $new_theme_data['RequiresWP'] ?? null; if ( ! is_php_version_compatible( $requires_php ) ) { $error = sprintf( /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), PHP_VERSION, $requires_php ); $blocked_message .= '
      • ' . esc_html( $error ) . '
      • '; $can_update = false; } if ( ! is_wp_version_compatible( $requires_wp ) ) { $error = sprintf( /* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */ __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ), esc_html( wp_get_wp_version() ), $requires_wp ); $blocked_message .= '
      • ' . esc_html( $error ) . '
      • '; $can_update = false; } $blocked_message .= '
      '; if ( $can_update ) { if ( $this->is_downgrading ) { $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are uploading an older version of the installed theme. You can continue to install the older version, but be sure to back up your database and files first.' ), __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ) ); } else { $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are updating a theme. Be sure to back up your database and files first.' ), __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ) ); } echo '

      ' . $warning . '

      '; $overwrite = $this->is_downgrading ? 'downgrade-theme' : 'update-theme'; $install_actions['overwrite_theme'] = sprintf( '%s', wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ), _x( 'Replace installed with uploaded', 'theme' ) ); } else { echo $blocked_message; } $cancel_url = add_query_arg( 'action', 'upload-theme-cancel-overwrite', $this->url ); $install_actions['themes_page'] = sprintf( '%s', wp_nonce_url( $cancel_url, 'theme-upload-cancel-overwrite' ), __( 'Cancel and go back' ) ); /** * Filters the list of action links available following a single theme installation failure * when overwriting is allowed. * * @since 5.5.0 * * @param string[] $install_actions Array of theme action links. * @param object $api Object containing WordPress.org API theme data. * @param array $new_theme_data Array with uploaded theme data. */ $install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data ); if ( ! empty( $install_actions ) ) { printf( '', __( 'The uploaded file has expired. Please go back and upload it again.' ) ); echo '

      ' . implode( ' ', (array) $install_actions ) . '

      '; } return true; } } includes/class-pclzip.php000064400000600127152213653150011500 0ustar00zipname = $p_zipname; $this->zip_fd = 0; $this->magic_quotes_status = -1; // ----- Return return; } public function PclZip($p_zipname) { self::__construct($p_zipname); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : // create($p_filelist, $p_add_dir="", $p_remove_dir="") // create($p_filelist, $p_option, $p_option_value, ...) // Description : // This method supports two different synopsis. The first one is historical. // This method creates a Zip Archive. The Zip file is created in the // filesystem. The files and directories indicated in $p_filelist // are added in the archive. See the parameters description for the // supported format of $p_filelist. // When a directory is in the list, the directory and its content is added // in the archive. // In this synopsis, the function takes an optional variable list of // options. See below the supported options. // Parameters : // $p_filelist : An array containing file or directory names, or // a string containing one filename or one directory name, or // a string containing a list of filenames and/or directory // names separated by spaces. // $p_add_dir : A path to add before the real path of the archived file, // in order to have it memorized in the archive. // $p_remove_dir : A path to remove from the real path of the file to archive, // in order to have a shorter path memorized in the archive. // When $p_add_dir and $p_remove_dir are set, $p_remove_dir // is removed first, before $p_add_dir is added. // Options : // PCLZIP_OPT_ADD_PATH : // PCLZIP_OPT_REMOVE_PATH : // PCLZIP_OPT_REMOVE_ALL_PATH : // PCLZIP_OPT_COMMENT : // PCLZIP_CB_PRE_ADD : // PCLZIP_CB_POST_ADD : // Return Values : // 0 on failure, // The list of the added files, with a status of the add action. // (see PclZip::listContent() for list entry format) // -------------------------------------------------------------------------------- function create($p_filelist) { $v_result=1; // ----- Reset the error handler $this->privErrorReset(); // ----- Set default values $v_options = array(); $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; // ----- Look for variable options arguments $v_size = func_num_args(); // ----- Look for arguments if ($v_size > 1) { // ----- Get the arguments $v_arg_list = func_get_args(); // ----- Remove from the options list the first argument array_shift($v_arg_list); $v_size--; // ----- Look for first arg if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { // ----- Parse the options $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_REMOVE_PATH => 'optional', PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', PCLZIP_OPT_ADD_PATH => 'optional', PCLZIP_CB_PRE_ADD => 'optional', PCLZIP_CB_POST_ADD => 'optional', PCLZIP_OPT_NO_COMPRESSION => 'optional', PCLZIP_OPT_COMMENT => 'optional', PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', PCLZIP_OPT_TEMP_FILE_ON => 'optional', PCLZIP_OPT_TEMP_FILE_OFF => 'optional' //, PCLZIP_OPT_CRYPT => 'optional' )); if ($v_result != 1) { return 0; } } // ----- Look for 2 args // Here we need to support the first historic synopsis of the // method. else { // ----- Get the first argument $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0]; // ----- Look for the optional second argument if ($v_size == 2) { $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; } else if ($v_size > 2) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); return 0; } } } // ----- Look for default option values $this->privOptionDefaultThreshold($v_options); // ----- Init $v_string_list = array(); $v_att_list = array(); $v_filedescr_list = array(); $p_result_list = array(); // ----- Look if the $p_filelist is really an array if (is_array($p_filelist)) { // ----- Look if the first element is also an array // This will mean that this is a file description entry if (isset($p_filelist[0]) && is_array($p_filelist[0])) { $v_att_list = $p_filelist; } // ----- The list is a list of string names else { $v_string_list = $p_filelist; } } // ----- Look if the $p_filelist is a string else if (is_string($p_filelist)) { // ----- Create a list from the string $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); } // ----- Invalid variable type for $p_filelist else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist"); return 0; } // ----- Reformat the string list if (sizeof($v_string_list) != 0) { foreach ($v_string_list as $v_string) { if ($v_string != '') { $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; } else { } } } // ----- For each file in the list check the attributes $v_supported_attributes = array ( PCLZIP_ATT_FILE_NAME => 'mandatory' ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional' ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional' ,PCLZIP_ATT_FILE_MTIME => 'optional' ,PCLZIP_ATT_FILE_CONTENT => 'optional' ,PCLZIP_ATT_FILE_COMMENT => 'optional' ); foreach ($v_att_list as $v_entry) { $v_result = $this->privFileDescrParseAtt($v_entry, $v_filedescr_list[], $v_options, $v_supported_attributes); if ($v_result != 1) { return 0; } } // ----- Expand the filelist (expand directories) $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); if ($v_result != 1) { return 0; } // ----- Call the create fct $v_result = $this->privCreate($v_filedescr_list, $p_result_list, $v_options); if ($v_result != 1) { return 0; } // ----- Return return $p_result_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : // add($p_filelist, $p_add_dir="", $p_remove_dir="") // add($p_filelist, $p_option, $p_option_value, ...) // Description : // This method supports two synopsis. The first one is historical. // This methods add the list of files in an existing archive. // If a file with the same name already exists, it is added at the end of the // archive, the first one is still present. // If the archive does not exist, it is created. // Parameters : // $p_filelist : An array containing file or directory names, or // a string containing one filename or one directory name, or // a string containing a list of filenames and/or directory // names separated by spaces. // $p_add_dir : A path to add before the real path of the archived file, // in order to have it memorized in the archive. // $p_remove_dir : A path to remove from the real path of the file to archive, // in order to have a shorter path memorized in the archive. // When $p_add_dir and $p_remove_dir are set, $p_remove_dir // is removed first, before $p_add_dir is added. // Options : // PCLZIP_OPT_ADD_PATH : // PCLZIP_OPT_REMOVE_PATH : // PCLZIP_OPT_REMOVE_ALL_PATH : // PCLZIP_OPT_COMMENT : // PCLZIP_OPT_ADD_COMMENT : // PCLZIP_OPT_PREPEND_COMMENT : // PCLZIP_CB_PRE_ADD : // PCLZIP_CB_POST_ADD : // Return Values : // 0 on failure, // The list of the added files, with a status of the add action. // (see PclZip::listContent() for list entry format) // -------------------------------------------------------------------------------- function add($p_filelist) { $v_result=1; // ----- Reset the error handler $this->privErrorReset(); // ----- Set default values $v_options = array(); $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; // ----- Look for variable options arguments $v_size = func_num_args(); // ----- Look for arguments if ($v_size > 1) { // ----- Get the arguments $v_arg_list = func_get_args(); // ----- Remove form the options list the first argument array_shift($v_arg_list); $v_size--; // ----- Look for first arg if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { // ----- Parse the options $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_REMOVE_PATH => 'optional', PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', PCLZIP_OPT_ADD_PATH => 'optional', PCLZIP_CB_PRE_ADD => 'optional', PCLZIP_CB_POST_ADD => 'optional', PCLZIP_OPT_NO_COMPRESSION => 'optional', PCLZIP_OPT_COMMENT => 'optional', PCLZIP_OPT_ADD_COMMENT => 'optional', PCLZIP_OPT_PREPEND_COMMENT => 'optional', PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', PCLZIP_OPT_TEMP_FILE_ON => 'optional', PCLZIP_OPT_TEMP_FILE_OFF => 'optional' //, PCLZIP_OPT_CRYPT => 'optional' )); if ($v_result != 1) { return 0; } } // ----- Look for 2 args // Here we need to support the first historic synopsis of the // method. else { // ----- Get the first argument $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0]; // ----- Look for the optional second argument if ($v_size == 2) { $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; } else if ($v_size > 2) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); // ----- Return return 0; } } } // ----- Look for default option values $this->privOptionDefaultThreshold($v_options); // ----- Init $v_string_list = array(); $v_att_list = array(); $v_filedescr_list = array(); $p_result_list = array(); // ----- Look if the $p_filelist is really an array if (is_array($p_filelist)) { // ----- Look if the first element is also an array // This will mean that this is a file description entry if (isset($p_filelist[0]) && is_array($p_filelist[0])) { $v_att_list = $p_filelist; } // ----- The list is a list of string names else { $v_string_list = $p_filelist; } } // ----- Look if the $p_filelist is a string else if (is_string($p_filelist)) { // ----- Create a list from the string $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); } // ----- Invalid variable type for $p_filelist else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type '".gettype($p_filelist)."' for p_filelist"); return 0; } // ----- Reformat the string list if (sizeof($v_string_list) != 0) { foreach ($v_string_list as $v_string) { $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; } } // ----- For each file in the list check the attributes $v_supported_attributes = array ( PCLZIP_ATT_FILE_NAME => 'mandatory' ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'optional' ,PCLZIP_ATT_FILE_NEW_FULL_NAME => 'optional' ,PCLZIP_ATT_FILE_MTIME => 'optional' ,PCLZIP_ATT_FILE_CONTENT => 'optional' ,PCLZIP_ATT_FILE_COMMENT => 'optional' ); foreach ($v_att_list as $v_entry) { $v_result = $this->privFileDescrParseAtt($v_entry, $v_filedescr_list[], $v_options, $v_supported_attributes); if ($v_result != 1) { return 0; } } // ----- Expand the filelist (expand directories) $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); if ($v_result != 1) { return 0; } // ----- Call the create fct $v_result = $this->privAdd($v_filedescr_list, $p_result_list, $v_options); if ($v_result != 1) { return 0; } // ----- Return return $p_result_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : listContent() // Description : // This public method, gives the list of the files and directories, with their // properties. // The properties of each entries in the list are (used also in other functions) : // filename : Name of the file. For a create or add action it is the filename // given by the user. For an extract function it is the filename // of the extracted file. // stored_filename : Name of the file / directory stored in the archive. // size : Size of the stored file. // compressed_size : Size of the file's data compressed in the archive // (without the headers overhead) // mtime : Last known modification date of the file (UNIX timestamp) // comment : Comment associated with the file // folder : true | false // index : index of the file in the archive // status : status of the action (depending of the action) : // Values are : // ok : OK ! // filtered : the file / dir is not extracted (filtered by user) // already_a_directory : the file can not be extracted because a // directory with the same name already exists // write_protected : the file can not be extracted because a file // with the same name already exists and is // write protected // newer_exist : the file was not extracted because a newer file exists // path_creation_fail : the file is not extracted because the folder // does not exist and can not be created // write_error : the file was not extracted because there was an // error while writing the file // read_error : the file was not extracted because there was an error // while reading the file // invalid_header : the file was not extracted because of an archive // format error (bad file header) // Note that each time a method can continue operating when there // is an action error on a file, the error is only logged in the file status. // Return Values : // 0 on an unrecoverable failure, // The list of the files in the archive. // -------------------------------------------------------------------------------- function listContent() { $v_result=1; // ----- Reset the error handler $this->privErrorReset(); // ----- Check archive if (!$this->privCheckFormat()) { return(0); } // ----- Call the extracting fct $p_list = array(); if (($v_result = $this->privList($p_list)) != 1) { unset($p_list); return(0); } // ----- Return return $p_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : // extract($p_path="./", $p_remove_path="") // extract([$p_option, $p_option_value, ...]) // Description : // This method supports two synopsis. The first one is historical. // This method extract all the files / directories from the archive to the // folder indicated in $p_path. // If you want to ignore the 'root' part of path of the memorized files // you can indicate this in the optional $p_remove_path parameter. // By default, if a newer file with the same name already exists, the // file is not extracted. // // If both PCLZIP_OPT_PATH and PCLZIP_OPT_ADD_PATH options // are used, the path indicated in PCLZIP_OPT_ADD_PATH is append // at the end of the path value of PCLZIP_OPT_PATH. // Parameters : // $p_path : Path where the files and directories are to be extracted // $p_remove_path : First part ('root' part) of the memorized path // (if any similar) to remove while extracting. // Options : // PCLZIP_OPT_PATH : // PCLZIP_OPT_ADD_PATH : // PCLZIP_OPT_REMOVE_PATH : // PCLZIP_OPT_REMOVE_ALL_PATH : // PCLZIP_CB_PRE_EXTRACT : // PCLZIP_CB_POST_EXTRACT : // Return Values : // 0 or a negative value on failure, // The list of the extracted files, with a status of the action. // (see PclZip::listContent() for list entry format) // -------------------------------------------------------------------------------- function extract() { $v_result=1; // ----- Reset the error handler $this->privErrorReset(); // ----- Check archive if (!$this->privCheckFormat()) { return(0); } // ----- Set default values $v_options = array(); // $v_path = "./"; $v_path = ''; $v_remove_path = ""; $v_remove_all_path = false; // ----- Look for variable options arguments $v_size = func_num_args(); // ----- Default values for option $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; // ----- Look for arguments if ($v_size > 0) { // ----- Get the arguments $v_arg_list = func_get_args(); // ----- Look for first arg if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { // ----- Parse the options $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_PATH => 'optional', PCLZIP_OPT_REMOVE_PATH => 'optional', PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', PCLZIP_OPT_ADD_PATH => 'optional', PCLZIP_CB_PRE_EXTRACT => 'optional', PCLZIP_CB_POST_EXTRACT => 'optional', PCLZIP_OPT_SET_CHMOD => 'optional', PCLZIP_OPT_BY_NAME => 'optional', PCLZIP_OPT_BY_EREG => 'optional', PCLZIP_OPT_BY_PREG => 'optional', PCLZIP_OPT_BY_INDEX => 'optional', PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', PCLZIP_OPT_EXTRACT_IN_OUTPUT => 'optional', PCLZIP_OPT_REPLACE_NEWER => 'optional' ,PCLZIP_OPT_STOP_ON_ERROR => 'optional' ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', PCLZIP_OPT_TEMP_FILE_ON => 'optional', PCLZIP_OPT_TEMP_FILE_OFF => 'optional' )); if ($v_result != 1) { return 0; } // ----- Set the arguments if (isset($v_options[PCLZIP_OPT_PATH])) { $v_path = $v_options[PCLZIP_OPT_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; } if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { // ----- Check for '/' in last path char if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) { $v_path .= '/'; } $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; } } // ----- Look for 2 args // Here we need to support the first historic synopsis of the // method. else { // ----- Get the first argument $v_path = $v_arg_list[0]; // ----- Look for the optional second argument if ($v_size == 2) { $v_remove_path = $v_arg_list[1]; } else if ($v_size > 2) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); // ----- Return return 0; } } } // ----- Look for default option values $this->privOptionDefaultThreshold($v_options); // ----- Trace // ----- Call the extracting fct $p_list = array(); $v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options); if ($v_result < 1) { unset($p_list); return(0); } // ----- Return return $p_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : // extractByIndex($p_index, $p_path="./", $p_remove_path="") // extractByIndex($p_index, [$p_option, $p_option_value, ...]) // Description : // This method supports two synopsis. The first one is historical. // This method is doing a partial extract of the archive. // The extracted files or folders are identified by their index in the // archive (from 0 to n). // Note that if the index identify a folder, only the folder entry is // extracted, not all the files included in the archive. // Parameters : // $p_index : A single index (integer) or a string of indexes of files to // extract. The form of the string is "0,4-6,8-12" with only numbers // and '-' for range or ',' to separate ranges. No spaces or ';' // are allowed. // $p_path : Path where the files and directories are to be extracted // $p_remove_path : First part ('root' part) of the memorized path // (if any similar) to remove while extracting. // Options : // PCLZIP_OPT_PATH : // PCLZIP_OPT_ADD_PATH : // PCLZIP_OPT_REMOVE_PATH : // PCLZIP_OPT_REMOVE_ALL_PATH : // PCLZIP_OPT_EXTRACT_AS_STRING : The files are extracted as strings and // not as files. // The resulting content is in a new field 'content' in the file // structure. // This option must be used alone (any other options are ignored). // PCLZIP_CB_PRE_EXTRACT : // PCLZIP_CB_POST_EXTRACT : // Return Values : // 0 on failure, // The list of the extracted files, with a status of the action. // (see PclZip::listContent() for list entry format) // -------------------------------------------------------------------------------- //function extractByIndex($p_index, options...) function extractByIndex($p_index) { $v_result=1; // ----- Reset the error handler $this->privErrorReset(); // ----- Check archive if (!$this->privCheckFormat()) { return(0); } // ----- Set default values $v_options = array(); // $v_path = "./"; $v_path = ''; $v_remove_path = ""; $v_remove_all_path = false; // ----- Look for variable options arguments $v_size = func_num_args(); // ----- Default values for option $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; // ----- Look for arguments if ($v_size > 1) { // ----- Get the arguments $v_arg_list = func_get_args(); // ----- Remove form the options list the first argument array_shift($v_arg_list); $v_size--; // ----- Look for first arg if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { // ----- Parse the options $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_PATH => 'optional', PCLZIP_OPT_REMOVE_PATH => 'optional', PCLZIP_OPT_REMOVE_ALL_PATH => 'optional', PCLZIP_OPT_EXTRACT_AS_STRING => 'optional', PCLZIP_OPT_ADD_PATH => 'optional', PCLZIP_CB_PRE_EXTRACT => 'optional', PCLZIP_CB_POST_EXTRACT => 'optional', PCLZIP_OPT_SET_CHMOD => 'optional', PCLZIP_OPT_REPLACE_NEWER => 'optional' ,PCLZIP_OPT_STOP_ON_ERROR => 'optional' ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => 'optional', PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional', PCLZIP_OPT_TEMP_FILE_ON => 'optional', PCLZIP_OPT_TEMP_FILE_OFF => 'optional' )); if ($v_result != 1) { return 0; } // ----- Set the arguments if (isset($v_options[PCLZIP_OPT_PATH])) { $v_path = $v_options[PCLZIP_OPT_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; } if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { // ----- Check for '/' in last path char if ((strlen($v_path) > 0) && (substr($v_path, -1) != '/')) { $v_path .= '/'; } $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; } if (!isset($v_options[PCLZIP_OPT_EXTRACT_AS_STRING])) { $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; } else { } } // ----- Look for 2 args // Here we need to support the first historic synopsis of the // method. else { // ----- Get the first argument $v_path = $v_arg_list[0]; // ----- Look for the optional second argument if ($v_size == 2) { $v_remove_path = $v_arg_list[1]; } else if ($v_size > 2) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); // ----- Return return 0; } } } // ----- Trace // ----- Trick // Here I want to reuse extractByRule(), so I need to parse the $p_index // with privParseOptions() $v_arg_trick = array (PCLZIP_OPT_BY_INDEX, $p_index); $v_options_trick = array(); $v_result = $this->privParseOptions($v_arg_trick, sizeof($v_arg_trick), $v_options_trick, array (PCLZIP_OPT_BY_INDEX => 'optional' )); if ($v_result != 1) { return 0; } $v_options[PCLZIP_OPT_BY_INDEX] = $v_options_trick[PCLZIP_OPT_BY_INDEX]; // ----- Look for default option values $this->privOptionDefaultThreshold($v_options); // ----- Call the extracting fct if (($v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options)) < 1) { return(0); } // ----- Return return $p_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : // delete([$p_option, $p_option_value, ...]) // Description : // This method removes files from the archive. // If no parameters are given, then all the archive is emptied. // Parameters : // None or optional arguments. // Options : // PCLZIP_OPT_BY_INDEX : // PCLZIP_OPT_BY_NAME : // PCLZIP_OPT_BY_EREG : // PCLZIP_OPT_BY_PREG : // Return Values : // 0 on failure, // The list of the files which are still present in the archive. // (see PclZip::listContent() for list entry format) // -------------------------------------------------------------------------------- function delete() { $v_result=1; // ----- Reset the error handler $this->privErrorReset(); // ----- Check archive if (!$this->privCheckFormat()) { return(0); } // ----- Set default values $v_options = array(); // ----- Look for variable options arguments $v_size = func_num_args(); // ----- Look for arguments if ($v_size > 0) { // ----- Get the arguments $v_arg_list = func_get_args(); // ----- Parse the options $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_BY_NAME => 'optional', PCLZIP_OPT_BY_EREG => 'optional', PCLZIP_OPT_BY_PREG => 'optional', PCLZIP_OPT_BY_INDEX => 'optional' )); if ($v_result != 1) { return 0; } } // ----- Magic quotes trick $this->privDisableMagicQuotes(); // ----- Call the delete fct $v_list = array(); if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) { $this->privSwapBackMagicQuotes(); unset($v_list); return(0); } // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Return return $v_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : deleteByIndex() // Description : // ***** Deprecated ***** // delete(PCLZIP_OPT_BY_INDEX, $p_index) should be preferred. // -------------------------------------------------------------------------------- function deleteByIndex($p_index) { $p_list = $this->delete(PCLZIP_OPT_BY_INDEX, $p_index); // ----- Return return $p_list; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : properties() // Description : // This method gives the properties of the archive. // The properties are : // nb : Number of files in the archive // comment : Comment associated with the archive file // status : not_exist, ok // Parameters : // None // Return Values : // 0 on failure, // An array with the archive properties. // -------------------------------------------------------------------------------- function properties() { // ----- Reset the error handler $this->privErrorReset(); // ----- Magic quotes trick $this->privDisableMagicQuotes(); // ----- Check archive if (!$this->privCheckFormat()) { $this->privSwapBackMagicQuotes(); return(0); } // ----- Default properties $v_prop = array(); $v_prop['comment'] = ''; $v_prop['nb'] = 0; $v_prop['status'] = 'not_exist'; // ----- Look if file exists if (@is_file($this->zipname)) { // ----- Open the zip file if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) { $this->privSwapBackMagicQuotes(); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode'); // ----- Return return 0; } // ----- Read the central directory information $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privSwapBackMagicQuotes(); return 0; } // ----- Close the zip file $this->privCloseFd(); // ----- Set the user attributes $v_prop['comment'] = $v_central_dir['comment']; $v_prop['nb'] = $v_central_dir['entries']; $v_prop['status'] = 'ok'; } // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Return return $v_prop; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : duplicate() // Description : // This method creates an archive by copying the content of an other one. If // the archive already exist, it is replaced by the new one without any warning. // Parameters : // $p_archive : The filename of a valid archive, or // a valid PclZip object. // Return Values : // 1 on success. // 0 or a negative value on error (error code). // -------------------------------------------------------------------------------- function duplicate($p_archive) { $v_result = 1; // ----- Reset the error handler $this->privErrorReset(); // ----- Look if the $p_archive is an instantiated PclZip object if ($p_archive instanceof pclzip) { // ----- Duplicate the archive $v_result = $this->privDuplicate($p_archive->zipname); } // ----- Look if the $p_archive is a string (so a filename) else if (is_string($p_archive)) { // ----- Check that $p_archive is a valid zip file // TBC : Should also check the archive format if (!is_file($p_archive)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "No file with filename '".$p_archive."'"); $v_result = PCLZIP_ERR_MISSING_FILE; } else { // ----- Duplicate the archive $v_result = $this->privDuplicate($p_archive); } } // ----- Invalid variable else { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); $v_result = PCLZIP_ERR_INVALID_PARAMETER; } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : merge() // Description : // This method merge the $p_archive_to_add archive at the end of the current // one ($this). // If the archive ($this) does not exist, the merge becomes a duplicate. // If the $p_archive_to_add archive does not exist, the merge is a success. // Parameters : // $p_archive_to_add : It can be directly the filename of a valid zip archive, // or a PclZip object archive. // Return Values : // 1 on success, // 0 or negative values on error (see below). // -------------------------------------------------------------------------------- function merge($p_archive_to_add) { $v_result = 1; // ----- Reset the error handler $this->privErrorReset(); // ----- Check archive if (!$this->privCheckFormat()) { return(0); } // ----- Look if the $p_archive_to_add is an instantiated PclZip object if ($p_archive_to_add instanceof pclzip) { // ----- Merge the archive $v_result = $this->privMerge($p_archive_to_add); } // ----- Look if the $p_archive_to_add is a string (so a filename) else if (is_string($p_archive_to_add)) { // ----- Create a temporary archive $v_object_archive = new PclZip($p_archive_to_add); // ----- Merge the archive $v_result = $this->privMerge($v_object_archive); } // ----- Invalid variable else { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); $v_result = PCLZIP_ERR_INVALID_PARAMETER; } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : errorCode() // Description : // Parameters : // -------------------------------------------------------------------------------- function errorCode() { if (PCLZIP_ERROR_EXTERNAL == 1) { return(PclErrorCode()); } else { return($this->error_code); } } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : errorName() // Description : // Parameters : // -------------------------------------------------------------------------------- function errorName($p_with_code=false) { $v_name = array ( PCLZIP_ERR_NO_ERROR => 'PCLZIP_ERR_NO_ERROR', PCLZIP_ERR_WRITE_OPEN_FAIL => 'PCLZIP_ERR_WRITE_OPEN_FAIL', PCLZIP_ERR_READ_OPEN_FAIL => 'PCLZIP_ERR_READ_OPEN_FAIL', PCLZIP_ERR_INVALID_PARAMETER => 'PCLZIP_ERR_INVALID_PARAMETER', PCLZIP_ERR_MISSING_FILE => 'PCLZIP_ERR_MISSING_FILE', PCLZIP_ERR_FILENAME_TOO_LONG => 'PCLZIP_ERR_FILENAME_TOO_LONG', PCLZIP_ERR_INVALID_ZIP => 'PCLZIP_ERR_INVALID_ZIP', PCLZIP_ERR_BAD_EXTRACTED_FILE => 'PCLZIP_ERR_BAD_EXTRACTED_FILE', PCLZIP_ERR_DIR_CREATE_FAIL => 'PCLZIP_ERR_DIR_CREATE_FAIL', PCLZIP_ERR_BAD_EXTENSION => 'PCLZIP_ERR_BAD_EXTENSION', PCLZIP_ERR_BAD_FORMAT => 'PCLZIP_ERR_BAD_FORMAT', PCLZIP_ERR_DELETE_FILE_FAIL => 'PCLZIP_ERR_DELETE_FILE_FAIL', PCLZIP_ERR_RENAME_FILE_FAIL => 'PCLZIP_ERR_RENAME_FILE_FAIL', PCLZIP_ERR_BAD_CHECKSUM => 'PCLZIP_ERR_BAD_CHECKSUM', PCLZIP_ERR_INVALID_ARCHIVE_ZIP => 'PCLZIP_ERR_INVALID_ARCHIVE_ZIP', PCLZIP_ERR_MISSING_OPTION_VALUE => 'PCLZIP_ERR_MISSING_OPTION_VALUE', PCLZIP_ERR_INVALID_OPTION_VALUE => 'PCLZIP_ERR_INVALID_OPTION_VALUE', PCLZIP_ERR_UNSUPPORTED_COMPRESSION => 'PCLZIP_ERR_UNSUPPORTED_COMPRESSION', PCLZIP_ERR_UNSUPPORTED_ENCRYPTION => 'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION' ,PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE => 'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE' ,PCLZIP_ERR_DIRECTORY_RESTRICTION => 'PCLZIP_ERR_DIRECTORY_RESTRICTION' ); if (isset($v_name[$this->error_code])) { $v_value = $v_name[$this->error_code]; } else { $v_value = 'NoName'; } if ($p_with_code) { return($v_value.' ('.$this->error_code.')'); } else { return($v_value); } } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : errorInfo() // Description : // Parameters : // -------------------------------------------------------------------------------- function errorInfo($p_full=false) { if (PCLZIP_ERROR_EXTERNAL == 1) { return(PclErrorString()); } else { if ($p_full) { return($this->errorName(true)." : ".$this->error_string); } else { return($this->error_string." [code ".$this->error_code."]"); } } } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // ***** UNDER THIS LINE ARE DEFINED PRIVATE INTERNAL FUNCTIONS ***** // ***** ***** // ***** THESES FUNCTIONS MUST NOT BE USED DIRECTLY ***** // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privCheckFormat() // Description : // This method check that the archive exists and is a valid zip archive. // Several level of check exists. (future) // Parameters : // $p_level : Level of check. Default 0. // 0 : Check the first bytes (magic codes) (default value)) // 1 : 0 + Check the central directory (future) // 2 : 1 + Check each file header (future) // Return Values : // true on success, // false on error, the error code is set. // -------------------------------------------------------------------------------- function privCheckFormat($p_level=0) { $v_result = true; // ----- Reset the file system cache clearstatcache(); // ----- Reset the error handler $this->privErrorReset(); // ----- Look if the file exits if (!is_file($this->zipname)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file '".$this->zipname."'"); return(false); } // ----- Check that the file is readable if (!is_readable($this->zipname)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive '".$this->zipname."'"); return(false); } // ----- Check the magic code // TBC // ----- Check the central header // TBC // ----- Check each file header // TBC // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privParseOptions() // Description : // This internal methods reads the variable list of arguments ($p_options_list, // $p_size) and generate an array with the options and values ($v_result_list). // $v_requested_options contains the options that can be present and those that // must be present. // $v_requested_options is an array, with the option value as key, and 'optional', // or 'mandatory' as value. // Parameters : // See above. // Return Values : // 1 on success. // 0 on failure. // -------------------------------------------------------------------------------- function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false) { $v_result=1; // ----- Read the options $i=0; while ($i<$p_size) { // ----- Check if the option is supported if (!isset($v_requested_options[$p_options_list[$i]])) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method"); // ----- Return return PclZip::errorCode(); } // ----- Look for next option switch ($p_options_list[$i]) { // ----- Look for options that request a path value case PCLZIP_OPT_PATH : case PCLZIP_OPT_REMOVE_PATH : case PCLZIP_OPT_ADD_PATH : // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); $i++; break; case PCLZIP_OPT_TEMP_FILE_THRESHOLD : // ----- Check the number of parameters if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); return PclZip::errorCode(); } // ----- Check for incompatible options if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'"); return PclZip::errorCode(); } // ----- Check the value $v_value = $p_options_list[$i+1]; if ((!is_integer($v_value)) || ($v_value<0)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option '".PclZipUtilOptionText($p_options_list[$i])."'"); return PclZip::errorCode(); } // ----- Get the value (and convert it in bytes) $v_result_list[$p_options_list[$i]] = $v_value*1048576; $i++; break; case PCLZIP_OPT_TEMP_FILE_ON : // ----- Check for incompatible options if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_OFF'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = true; break; case PCLZIP_OPT_TEMP_FILE_OFF : // ----- Check for incompatible options if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_ON])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_ON'"); return PclZip::errorCode(); } // ----- Check for incompatible options if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option '".PclZipUtilOptionText($p_options_list[$i])."' can not be used with option 'PCLZIP_OPT_TEMP_FILE_THRESHOLD'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = true; break; case PCLZIP_OPT_EXTRACT_DIR_RESTRICTION : // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value if ( is_string($p_options_list[$i+1]) && ($p_options_list[$i+1] != '')) { $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); $i++; } else { } break; // ----- Look for options that request an array of string for value case PCLZIP_OPT_BY_NAME : // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value if (is_string($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]][0] = $p_options_list[$i+1]; } else if (is_array($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; } else { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } $i++; break; // ----- Look for options that request an EREG or PREG expression case PCLZIP_OPT_BY_EREG : // ereg() is deprecated starting with PHP 5.3. Move PCLZIP_OPT_BY_EREG // to PCLZIP_OPT_BY_PREG $p_options_list[$i] = PCLZIP_OPT_BY_PREG; case PCLZIP_OPT_BY_PREG : //case PCLZIP_OPT_CRYPT : // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value if (is_string($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; } else { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } $i++; break; // ----- Look for options that takes a string case PCLZIP_OPT_COMMENT : case PCLZIP_OPT_ADD_COMMENT : case PCLZIP_OPT_PREPEND_COMMENT : // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '" .PclZipUtilOptionText($p_options_list[$i]) ."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value if (is_string($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; } else { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option '" .PclZipUtilOptionText($p_options_list[$i]) ."'"); // ----- Return return PclZip::errorCode(); } $i++; break; // ----- Look for options that request an array of index case PCLZIP_OPT_BY_INDEX : // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value $v_work_list = array(); if (is_string($p_options_list[$i+1])) { // ----- Remove spaces $p_options_list[$i+1] = strtr($p_options_list[$i+1], ' ', ''); // ----- Parse items $v_work_list = explode(",", $p_options_list[$i+1]); } else if (is_integer($p_options_list[$i+1])) { $v_work_list[0] = $p_options_list[$i+1].'-'.$p_options_list[$i+1]; } else if (is_array($p_options_list[$i+1])) { $v_work_list = $p_options_list[$i+1]; } else { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Value must be integer, string or array for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Reduce the index list // each index item in the list must be a couple with a start and // an end value : [0,3], [5-5], [8-10], ... // ----- Check the format of each item $v_sort_flag=false; $v_sort_value=0; for ($j=0; $j= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; $i++; break; // ----- Look for options that request a call-back case PCLZIP_CB_PRE_EXTRACT : case PCLZIP_CB_POST_EXTRACT : case PCLZIP_CB_PRE_ADD : case PCLZIP_CB_POST_ADD : /* for future use case PCLZIP_CB_PRE_DELETE : case PCLZIP_CB_POST_DELETE : case PCLZIP_CB_PRE_LIST : case PCLZIP_CB_POST_LIST : */ // ----- Check the number of parameters if (($i+1) >= $p_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Get the value $v_function_name = $p_options_list[$i+1]; // ----- Check that the value is a valid existing function if (!function_exists($v_function_name)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Function '".$v_function_name."()' is not an existing function for option '".PclZipUtilOptionText($p_options_list[$i])."'"); // ----- Return return PclZip::errorCode(); } // ----- Set the attribute $v_result_list[$p_options_list[$i]] = $v_function_name; $i++; break; default : // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Unknown parameter '" .$p_options_list[$i]."'"); // ----- Return return PclZip::errorCode(); } // ----- Next options $i++; } // ----- Look for mandatory options if ($v_requested_options !== false) { for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { // ----- Look for mandatory option if ($v_requested_options[$key] == 'mandatory') { // ----- Look if present if (!isset($v_result_list[$key])) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); // ----- Return return PclZip::errorCode(); } } } } // ----- Look for default values if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privOptionDefaultThreshold() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privOptionDefaultThreshold(&$p_options) { $v_result=1; if (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) || isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) { return $v_result; } // ----- Get 'memory_limit' configuration value $v_memory_limit = ini_get('memory_limit'); $v_memory_limit = trim($v_memory_limit); $v_memory_limit_int = (int) $v_memory_limit; $last = strtolower(substr($v_memory_limit, -1)); if($last == 'g') //$v_memory_limit_int = $v_memory_limit_int*1024*1024*1024; $v_memory_limit_int = $v_memory_limit_int*1073741824; if($last == 'm') //$v_memory_limit_int = $v_memory_limit_int*1024*1024; $v_memory_limit_int = $v_memory_limit_int*1048576; if($last == 'k') $v_memory_limit_int = $v_memory_limit_int*1024; $p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit_int*PCLZIP_TEMPORARY_FILE_RATIO); // ----- Confidence check : No threshold if value lower than 1M if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) { unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privFileDescrParseAtt() // Description : // Parameters : // Return Values : // 1 on success. // 0 on failure. // -------------------------------------------------------------------------------- function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false) { $v_result=1; // ----- For each file in the list check the attributes foreach ($p_file_list as $v_key => $v_value) { // ----- Check if the option is supported if (!isset($v_requested_options[$v_key])) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file attribute '".$v_key."' for this file"); // ----- Return return PclZip::errorCode(); } // ----- Look for attribute switch ($v_key) { case PCLZIP_ATT_FILE_NAME : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } $p_filedescr['filename'] = PclZipUtilPathReduction($v_value); if ($p_filedescr['filename'] == '') { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty filename for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } break; case PCLZIP_ATT_FILE_NEW_SHORT_NAME : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } $p_filedescr['new_short_name'] = PclZipUtilPathReduction($v_value); if ($p_filedescr['new_short_name'] == '') { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty short filename for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } break; case PCLZIP_ATT_FILE_NEW_FULL_NAME : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } $p_filedescr['new_full_name'] = PclZipUtilPathReduction($v_value); if ($p_filedescr['new_full_name'] == '') { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty full filename for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } break; // ----- Look for options that takes a string case PCLZIP_ATT_FILE_COMMENT : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } $p_filedescr['comment'] = $v_value; break; case PCLZIP_ATT_FILE_MTIME : if (!is_integer($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute '".PclZipUtilOptionText($v_key)."'"); return PclZip::errorCode(); } $p_filedescr['mtime'] = $v_value; break; case PCLZIP_ATT_FILE_CONTENT : $p_filedescr['content'] = $v_value; break; default : // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Unknown parameter '".$v_key."'"); // ----- Return return PclZip::errorCode(); } // ----- Look for mandatory options if ($v_requested_options !== false) { for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { // ----- Look for mandatory option if ($v_requested_options[$key] == 'mandatory') { // ----- Look if present if (!isset($p_file_list[$key])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); return PclZip::errorCode(); } } } } // end foreach } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privFileDescrExpand() // Description : // This method look for each item of the list to see if its a file, a folder // or a string to be added as file. For any other type of files (link, other) // just ignore the item. // Then prepare the information that will be stored for that file. // When its a folder, expand the folder with all the files that are in that // folder (recursively). // Parameters : // Return Values : // 1 on success. // 0 on failure. // -------------------------------------------------------------------------------- function privFileDescrExpand(&$p_filedescr_list, &$p_options) { $v_result=1; // ----- Create a result list $v_result_list = array(); // ----- Look each entry for ($i=0; $iprivCalculateStoredFilename($v_descr, $p_options); // ----- Add the descriptor in result list $v_result_list[sizeof($v_result_list)] = $v_descr; // ----- Look for folder if ($v_descr['type'] == 'folder') { // ----- List of items in folder $v_dirlist_descr = array(); $v_dirlist_nb = 0; if ($v_folder_handler = @opendir($v_descr['filename'])) { while (($v_item_handler = @readdir($v_folder_handler)) !== false) { // ----- Skip '.' and '..' if (($v_item_handler == '.') || ($v_item_handler == '..')) { continue; } // ----- Compose the full filename $v_dirlist_descr[$v_dirlist_nb]['filename'] = $v_descr['filename'].'/'.$v_item_handler; // ----- Look for different stored filename // Because the name of the folder was changed, the name of the // files/sub-folders also change if (($v_descr['stored_filename'] != $v_descr['filename']) && (!isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]))) { if ($v_descr['stored_filename'] != '') { $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_descr['stored_filename'].'/'.$v_item_handler; } else { $v_dirlist_descr[$v_dirlist_nb]['new_full_name'] = $v_item_handler; } } $v_dirlist_nb++; } @closedir($v_folder_handler); } else { // TBC : unable to open folder in read mode } // ----- Expand each element of the list if ($v_dirlist_nb != 0) { // ----- Expand if (($v_result = $this->privFileDescrExpand($v_dirlist_descr, $p_options)) != 1) { return $v_result; } // ----- Concat the resulting list $v_result_list = array_merge($v_result_list, $v_dirlist_descr); } else { } // ----- Free local array unset($v_dirlist_descr); } } // ----- Get the result list $p_filedescr_list = $v_result_list; // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privCreate() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privCreate($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_list_detail = array(); // ----- Magic quotes trick $this->privDisableMagicQuotes(); // ----- Open the file in write mode if (($v_result = $this->privOpenFd('wb')) != 1) { // ----- Return return $v_result; } // ----- Add the list of files $v_result = $this->privAddList($p_filedescr_list, $p_result_list, $p_options); // ----- Close $this->privCloseFd(); // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privAdd() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privAdd($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_list_detail = array(); // ----- Look if the archive exists or is empty if ((!is_file($this->zipname)) || (filesize($this->zipname) == 0)) { // ----- Do a create $v_result = $this->privCreate($p_filedescr_list, $p_result_list, $p_options); // ----- Return return $v_result; } // ----- Magic quotes trick $this->privDisableMagicQuotes(); // ----- Open the zip file if (($v_result=$this->privOpenFd('rb')) != 1) { // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } // ----- Read the central directory information $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Go to beginning of File @rewind($this->zip_fd); // ----- Creates a temporary file $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; // ----- Open the temporary file in write mode if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode'); // ----- Return return PclZip::errorCode(); } // ----- Copy the files from the archive to the temporary file // TBC : Here I should better append the file and go back to erase the central dir $v_size = $v_central_dir['offset']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($this->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Swap the file descriptor // Here is a trick : I swap the temporary fd with the zip fd, in order to use // the following methods on the temporary fil and not the real archive $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; // ----- Add the files $v_header_list = array(); if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) { fclose($v_zip_temp_fd); $this->privCloseFd(); @unlink($v_zip_temp_name); $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } // ----- Store the offset of the central dir $v_offset = @ftell($this->zip_fd); // ----- Copy the block of file headers from the old archive $v_size = $v_central_dir['size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($v_zip_temp_fd, $v_read_size); @fwrite($this->zip_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Create the Central Dir files header for ($i=0, $v_count=0; $iprivWriteCentralFileHeader($v_header_list[$i])) != 1) { fclose($v_zip_temp_fd); $this->privCloseFd(); @unlink($v_zip_temp_name); $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } $v_count++; } // ----- Transform the header to a 'usable' info $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); } // ----- Zip file comment $v_comment = $v_central_dir['comment']; if (isset($p_options[PCLZIP_OPT_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_COMMENT]; } if (isset($p_options[PCLZIP_OPT_ADD_COMMENT])) { $v_comment = $v_comment.$p_options[PCLZIP_OPT_ADD_COMMENT]; } if (isset($p_options[PCLZIP_OPT_PREPEND_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_PREPEND_COMMENT].$v_comment; } // ----- Calculate the size of the central header $v_size = @ftell($this->zip_fd)-$v_offset; // ----- Create the central dir footer if (($v_result = $this->privWriteCentralHeader($v_count+$v_central_dir['entries'], $v_size, $v_offset, $v_comment)) != 1) { // ----- Reset the file list unset($v_header_list); $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } // ----- Swap back the file descriptor $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; // ----- Close $this->privCloseFd(); // ----- Close the temporary file @fclose($v_zip_temp_fd); // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Delete the zip file // TBC : I should test the result ... @unlink($this->zipname); // ----- Rename the temporary file // TBC : I should test the result ... //@rename($v_zip_temp_name, $this->zipname); PclZipUtilRename($v_zip_temp_name, $this->zipname); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privOpenFd() // Description : // Parameters : // -------------------------------------------------------------------------------- function privOpenFd($p_mode) { $v_result=1; // ----- Look if already open if ($this->zip_fd != 0) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Zip file \''.$this->zipname.'\' already open'); // ----- Return return PclZip::errorCode(); } // ----- Open the zip file if (($this->zip_fd = @fopen($this->zipname, $p_mode)) == 0) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in '.$p_mode.' mode'); // ----- Return return PclZip::errorCode(); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privCloseFd() // Description : // Parameters : // -------------------------------------------------------------------------------- function privCloseFd() { $v_result=1; if ($this->zip_fd != 0) @fclose($this->zip_fd); $this->zip_fd = 0; // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privAddList() // Description : // $p_add_dir and $p_remove_dir will give the ability to memorize a path which is // different from the real path of the file. This is useful if you want to have PclTar // running in any directory, and memorize relative path from an other directory. // Parameters : // $p_list : An array containing the file or directory names to add in the tar // $p_result_list : list of added files with their properties (specially the status field) // $p_add_dir : Path to add in the filename path archived // $p_remove_dir : Path to remove in the filename path archived // Return Values : // -------------------------------------------------------------------------------- // function privAddList($p_list, &$p_result_list, $p_add_dir, $p_remove_dir, $p_remove_all_dir, &$p_options) function privAddList($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; // ----- Add the files $v_header_list = array(); if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) { // ----- Return return $v_result; } // ----- Store the offset of the central dir $v_offset = @ftell($this->zip_fd); // ----- Create the Central Dir files header for ($i=0,$v_count=0; $iprivWriteCentralFileHeader($v_header_list[$i])) != 1) { // ----- Return return $v_result; } $v_count++; } // ----- Transform the header to a 'usable' info $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); } // ----- Zip file comment $v_comment = ''; if (isset($p_options[PCLZIP_OPT_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_COMMENT]; } // ----- Calculate the size of the central header $v_size = @ftell($this->zip_fd)-$v_offset; // ----- Create the central dir footer if (($v_result = $this->privWriteCentralHeader($v_count, $v_size, $v_offset, $v_comment)) != 1) { // ----- Reset the file list unset($v_header_list); // ----- Return return $v_result; } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privAddFileList() // Description : // Parameters : // $p_filedescr_list : An array containing the file description // or directory names to add in the zip // $p_result_list : list of added files with their properties (specially the status field) // Return Values : // -------------------------------------------------------------------------------- function privAddFileList($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_header = array(); // ----- Recuperate the current number of elt in list $v_nb = sizeof($p_result_list); // ----- Loop on the files for ($j=0; ($jprivAddFile($p_filedescr_list[$j], $v_header, $p_options); if ($v_result != 1) { return $v_result; } // ----- Store the file infos $p_result_list[$v_nb++] = $v_header; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privAddFile() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privAddFile($p_filedescr, &$p_header, &$p_options) { $v_result=1; // ----- Working variable $p_filename = $p_filedescr['filename']; // TBC : Already done in the fileAtt check ... ? if ($p_filename == "") { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file list parameter (invalid or empty list)"); // ----- Return return PclZip::errorCode(); } // ----- Look for a stored different filename /* TBC : Removed if (isset($p_filedescr['stored_filename'])) { $v_stored_filename = $p_filedescr['stored_filename']; } else { $v_stored_filename = $p_filedescr['stored_filename']; } */ // ----- Set the file properties clearstatcache(); $p_header['version'] = 20; $p_header['version_extracted'] = 10; $p_header['flag'] = 0; $p_header['compression'] = 0; $p_header['crc'] = 0; $p_header['compressed_size'] = 0; $p_header['filename_len'] = strlen($p_filename); $p_header['extra_len'] = 0; $p_header['disk'] = 0; $p_header['internal'] = 0; $p_header['offset'] = 0; $p_header['filename'] = $p_filename; // TBC : Removed $p_header['stored_filename'] = $v_stored_filename; $p_header['stored_filename'] = $p_filedescr['stored_filename']; $p_header['extra'] = ''; $p_header['status'] = 'ok'; $p_header['index'] = -1; // ----- Look for regular file if ($p_filedescr['type']=='file') { $p_header['external'] = 0x00000000; $p_header['size'] = filesize($p_filename); } // ----- Look for regular folder else if ($p_filedescr['type']=='folder') { $p_header['external'] = 0x00000010; $p_header['mtime'] = filemtime($p_filename); $p_header['size'] = filesize($p_filename); } // ----- Look for virtual file else if ($p_filedescr['type'] == 'virtual_file') { $p_header['external'] = 0x00000000; $p_header['size'] = strlen($p_filedescr['content']); } // ----- Look for filetime if (isset($p_filedescr['mtime'])) { $p_header['mtime'] = $p_filedescr['mtime']; } else if ($p_filedescr['type'] == 'virtual_file') { $p_header['mtime'] = time(); } else { $p_header['mtime'] = filemtime($p_filename); } // ------ Look for file comment if (isset($p_filedescr['comment'])) { $p_header['comment_len'] = strlen($p_filedescr['comment']); $p_header['comment'] = $p_filedescr['comment']; } else { $p_header['comment_len'] = 0; $p_header['comment'] = ''; } // ----- Look for pre-add callback if (isset($p_options[PCLZIP_CB_PRE_ADD])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_header, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_PRE_ADD](PCLZIP_CB_PRE_ADD, $v_local_header); if ($v_result == 0) { // ----- Change the file status $p_header['status'] = "skipped"; $v_result = 1; } // ----- Update the information // Only some fields can be modified if ($p_header['stored_filename'] != $v_local_header['stored_filename']) { $p_header['stored_filename'] = PclZipUtilPathReduction($v_local_header['stored_filename']); } } // ----- Look for empty stored filename if ($p_header['stored_filename'] == "") { $p_header['status'] = "filtered"; } // ----- Check the path length if (strlen($p_header['stored_filename']) > 0xFF) { $p_header['status'] = 'filename_too_long'; } // ----- Look if no error, or file not skipped if ($p_header['status'] == 'ok') { // ----- Look for a file if ($p_filedescr['type'] == 'file') { // ----- Look for using temporary file to zip if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_header['size'])) ) ) { $v_result = $this->privAddFileUsingTempFile($p_filedescr, $p_header, $p_options); if ($v_result < PCLZIP_ERR_NO_ERROR) { return $v_result; } } // ----- Use "in memory" zip algo else { // ----- Open the source file if (($v_file = @fopen($p_filename, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode"); return PclZip::errorCode(); } // ----- Read the file content if ($p_header['size'] > 0) { $v_content = @fread($v_file, $p_header['size']); } else { $v_content = ''; } // ----- Close the file @fclose($v_file); // ----- Calculate the CRC $p_header['crc'] = @crc32($v_content); // ----- Look for no compression if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { // ----- Set header parameters $p_header['compressed_size'] = $p_header['size']; $p_header['compression'] = 0; } // ----- Look for normal compression else { // ----- Compress the content $v_content = @gzdeflate($v_content); // ----- Set header parameters $p_header['compressed_size'] = strlen($v_content); $p_header['compression'] = 8; } // ----- Call the header generation if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { @fclose($v_file); return $v_result; } // ----- Write the compressed (or not) content @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']); } } // ----- Look for a virtual file (a file from string) else if ($p_filedescr['type'] == 'virtual_file') { $v_content = $p_filedescr['content']; // ----- Calculate the CRC $p_header['crc'] = @crc32($v_content); // ----- Look for no compression if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { // ----- Set header parameters $p_header['compressed_size'] = $p_header['size']; $p_header['compression'] = 0; } // ----- Look for normal compression else { // ----- Compress the content $v_content = @gzdeflate($v_content); // ----- Set header parameters $p_header['compressed_size'] = strlen($v_content); $p_header['compression'] = 8; } // ----- Call the header generation if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { @fclose($v_file); return $v_result; } // ----- Write the compressed (or not) content @fwrite($this->zip_fd, $v_content, $p_header['compressed_size']); } // ----- Look for a directory else if ($p_filedescr['type'] == 'folder') { // ----- Look for directory last '/' if (@substr($p_header['stored_filename'], -1) != '/') { $p_header['stored_filename'] .= '/'; } // ----- Set the file properties $p_header['size'] = 0; //$p_header['external'] = 0x41FF0010; // Value for a folder : to be checked $p_header['external'] = 0x00000010; // Value for a folder : to be checked // ----- Call the header generation if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { return $v_result; } } } // ----- Look for post-add callback if (isset($p_options[PCLZIP_CB_POST_ADD])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_header, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_POST_ADD](PCLZIP_CB_POST_ADD, $v_local_header); if ($v_result == 0) { // ----- Ignored $v_result = 1; } // ----- Update the information // Nothing can be modified } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privAddFileUsingTempFile() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options) { $v_result=PCLZIP_ERR_NO_ERROR; // ----- Working variable $p_filename = $p_filedescr['filename']; // ----- Open the source file if (($v_file = @fopen($p_filename, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file '$p_filename' in binary read mode"); return PclZip::errorCode(); } // ----- Creates a compressed temporary file $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; if (($v_file_compressed = @gzopen($v_gzip_temp_name, "wb")) == 0) { fclose($v_file); PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); return PclZip::errorCode(); } // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks $v_size = filesize($p_filename); while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($v_file, $v_read_size); //$v_binary_data = pack('a'.$v_read_size, $v_buffer); @gzputs($v_file_compressed, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Close the file @fclose($v_file); @gzclose($v_file_compressed); // ----- Check the minimum file size if (filesize($v_gzip_temp_name) < 18) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'gzip temporary file \''.$v_gzip_temp_name.'\' has invalid filesize - should be minimum 18 bytes'); return PclZip::errorCode(); } // ----- Extract the compressed attributes if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); return PclZip::errorCode(); } // ----- Read the gzip file header $v_binary_data = @fread($v_file_compressed, 10); $v_data_header = unpack('a1id1/a1id2/a1cm/a1flag/Vmtime/a1xfl/a1os', $v_binary_data); // ----- Check some parameters $v_data_header['os'] = bin2hex($v_data_header['os']); // ----- Read the gzip file footer @fseek($v_file_compressed, filesize($v_gzip_temp_name)-8); $v_binary_data = @fread($v_file_compressed, 8); $v_data_footer = unpack('Vcrc/Vcompressed_size', $v_binary_data); // ----- Set the attributes $p_header['compression'] = ord($v_data_header['cm']); //$p_header['mtime'] = $v_data_header['mtime']; $p_header['crc'] = $v_data_footer['crc']; $p_header['compressed_size'] = filesize($v_gzip_temp_name)-18; // ----- Close the file @fclose($v_file_compressed); // ----- Call the header generation if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { return $v_result; } // ----- Add the compressed data if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); return PclZip::errorCode(); } // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks fseek($v_file_compressed, 10); $v_size = $p_header['compressed_size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($v_file_compressed, $v_read_size); //$v_binary_data = pack('a'.$v_read_size, $v_buffer); @fwrite($this->zip_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Close the file @fclose($v_file_compressed); // ----- Unlink the temporary file @unlink($v_gzip_temp_name); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privCalculateStoredFilename() // Description : // Based on file descriptor properties and global options, this method // calculate the filename that will be stored in the archive. // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privCalculateStoredFilename(&$p_filedescr, &$p_options) { $v_result=1; // ----- Working variables $p_filename = $p_filedescr['filename']; if (isset($p_options[PCLZIP_OPT_ADD_PATH])) { $p_add_dir = $p_options[PCLZIP_OPT_ADD_PATH]; } else { $p_add_dir = ''; } if (isset($p_options[PCLZIP_OPT_REMOVE_PATH])) { $p_remove_dir = $p_options[PCLZIP_OPT_REMOVE_PATH]; } else { $p_remove_dir = ''; } if (isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { $p_remove_all_dir = $p_options[PCLZIP_OPT_REMOVE_ALL_PATH]; } else { $p_remove_all_dir = 0; } // ----- Look for full name change if (isset($p_filedescr['new_full_name'])) { // ----- Remove drive letter if any $v_stored_filename = PclZipUtilTranslateWinPath($p_filedescr['new_full_name']); } // ----- Look for path and/or short name change else { // ----- Look for short name change // Its when we change just the filename but not the path if (isset($p_filedescr['new_short_name'])) { $v_path_info = pathinfo($p_filename); $v_dir = ''; if ($v_path_info['dirname'] != '') { $v_dir = $v_path_info['dirname'].'/'; } $v_stored_filename = $v_dir.$p_filedescr['new_short_name']; } else { // ----- Calculate the stored filename $v_stored_filename = $p_filename; } // ----- Look for all path to remove if ($p_remove_all_dir) { $v_stored_filename = basename($p_filename); } // ----- Look for partial path remove else if ($p_remove_dir != "") { if (substr($p_remove_dir, -1) != '/') $p_remove_dir .= "/"; if ( (substr($p_filename, 0, 2) == "./") || (substr($p_remove_dir, 0, 2) == "./")) { if ( (substr($p_filename, 0, 2) == "./") && (substr($p_remove_dir, 0, 2) != "./")) { $p_remove_dir = "./".$p_remove_dir; } if ( (substr($p_filename, 0, 2) != "./") && (substr($p_remove_dir, 0, 2) == "./")) { $p_remove_dir = substr($p_remove_dir, 2); } } $v_compare = PclZipUtilPathInclusion($p_remove_dir, $v_stored_filename); if ($v_compare > 0) { if ($v_compare == 2) { $v_stored_filename = ""; } else { $v_stored_filename = substr($v_stored_filename, strlen($p_remove_dir)); } } } // ----- Remove drive letter if any $v_stored_filename = PclZipUtilTranslateWinPath($v_stored_filename); // ----- Look for path to add if ($p_add_dir != "") { if (substr($p_add_dir, -1) == "/") $v_stored_filename = $p_add_dir.$v_stored_filename; else $v_stored_filename = $p_add_dir."/".$v_stored_filename; } } // ----- Filename (reduce the path of stored name) $v_stored_filename = PclZipUtilPathReduction($v_stored_filename); $p_filedescr['stored_filename'] = $v_stored_filename; // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privWriteFileHeader() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privWriteFileHeader(&$p_header) { $v_result=1; // ----- Store the offset position of the file $p_header['offset'] = ftell($this->zip_fd); // ----- Transform UNIX mtime to DOS format mdate/mtime $v_date = getdate($p_header['mtime']); $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2; $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday']; // ----- Packed data $v_binary_data = pack("VvvvvvVVVvv", 0x04034b50, $p_header['version_extracted'], $p_header['flag'], $p_header['compression'], $v_mtime, $v_mdate, $p_header['crc'], $p_header['compressed_size'], $p_header['size'], strlen($p_header['stored_filename']), $p_header['extra_len']); // ----- Write the first 148 bytes of the header in the archive fputs($this->zip_fd, $v_binary_data, 30); // ----- Write the variable fields if (strlen($p_header['stored_filename']) != 0) { fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename'])); } if ($p_header['extra_len'] != 0) { fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privWriteCentralFileHeader() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privWriteCentralFileHeader(&$p_header) { $v_result=1; // TBC //for(reset($p_header); $key = key($p_header); next($p_header)) { //} // ----- Transform UNIX mtime to DOS format mdate/mtime $v_date = getdate($p_header['mtime']); $v_mtime = ($v_date['hours']<<11) + ($v_date['minutes']<<5) + $v_date['seconds']/2; $v_mdate = (($v_date['year']-1980)<<9) + ($v_date['mon']<<5) + $v_date['mday']; // ----- Packed data $v_binary_data = pack("VvvvvvvVVVvvvvvVV", 0x02014b50, $p_header['version'], $p_header['version_extracted'], $p_header['flag'], $p_header['compression'], $v_mtime, $v_mdate, $p_header['crc'], $p_header['compressed_size'], $p_header['size'], strlen($p_header['stored_filename']), $p_header['extra_len'], $p_header['comment_len'], $p_header['disk'], $p_header['internal'], $p_header['external'], $p_header['offset']); // ----- Write the 42 bytes of the header in the zip file fputs($this->zip_fd, $v_binary_data, 46); // ----- Write the variable fields if (strlen($p_header['stored_filename']) != 0) { fputs($this->zip_fd, $p_header['stored_filename'], strlen($p_header['stored_filename'])); } if ($p_header['extra_len'] != 0) { fputs($this->zip_fd, $p_header['extra'], $p_header['extra_len']); } if ($p_header['comment_len'] != 0) { fputs($this->zip_fd, $p_header['comment'], $p_header['comment_len']); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privWriteCentralHeader() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment) { $v_result=1; // ----- Packed data $v_binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $p_nb_entries, $p_nb_entries, $p_size, $p_offset, strlen($p_comment)); // ----- Write the 22 bytes of the header in the zip file fputs($this->zip_fd, $v_binary_data, 22); // ----- Write the variable fields if (strlen($p_comment) != 0) { fputs($this->zip_fd, $p_comment, strlen($p_comment)); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privList() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privList(&$p_list) { $v_result=1; // ----- Magic quotes trick $this->privDisableMagicQuotes(); // ----- Open the zip file if (($this->zip_fd = @fopen($this->zipname, 'rb')) == 0) { // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive \''.$this->zipname.'\' in binary read mode'); // ----- Return return PclZip::errorCode(); } // ----- Read the central directory information $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Go to beginning of Central Dir @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_central_dir['offset'])) { $this->privSwapBackMagicQuotes(); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); // ----- Return return PclZip::errorCode(); } // ----- Read each entry for ($i=0; $i<$v_central_dir['entries']; $i++) { // ----- Read the file header if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } $v_header['index'] = $i; // ----- Get the only interesting attributes $this->privConvertHeader2FileInfo($v_header, $p_list[$i]); unset($v_header); } // ----- Close the zip file $this->privCloseFd(); // ----- Magic quotes trick $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privConvertHeader2FileInfo() // Description : // This function takes the file information from the central directory // entries and extract the interesting parameters that will be given back. // The resulting file infos are set in the array $p_info // $p_info['filename'] : Filename with full path. Given by user (add), // extracted in the filesystem (extract). // $p_info['stored_filename'] : Stored filename in the archive. // $p_info['size'] = Size of the file. // $p_info['compressed_size'] = Compressed size of the file. // $p_info['mtime'] = Last modification date of the file. // $p_info['comment'] = Comment associated with the file. // $p_info['folder'] = true/false : indicates if the entry is a folder or not. // $p_info['status'] = status of the action on the file. // $p_info['crc'] = CRC of the file content. // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privConvertHeader2FileInfo($p_header, &$p_info) { $v_result=1; // ----- Get the interesting attributes $v_temp_path = PclZipUtilPathReduction($p_header['filename']); $p_info['filename'] = $v_temp_path; $v_temp_path = PclZipUtilPathReduction($p_header['stored_filename']); $p_info['stored_filename'] = $v_temp_path; $p_info['size'] = $p_header['size']; $p_info['compressed_size'] = $p_header['compressed_size']; $p_info['mtime'] = $p_header['mtime']; $p_info['comment'] = $p_header['comment']; $p_info['folder'] = (($p_header['external']&0x00000010)==0x00000010); $p_info['index'] = $p_header['index']; $p_info['status'] = $p_header['status']; $p_info['crc'] = $p_header['crc']; // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privExtractByRule() // Description : // Extract a file or directory depending of rules (by index, by name, ...) // Parameters : // $p_file_list : An array where will be placed the properties of each // extracted file // $p_path : Path to add while writing the extracted files // $p_remove_path : Path to remove (from the file memorized path) while writing the // extracted files. If the path does not match the file path, // the file is extracted with its memorized path. // $p_remove_path does not apply to 'list' mode. // $p_path and $p_remove_path are commulative. // Return Values : // 1 on success,0 or less on error (see error code list) // -------------------------------------------------------------------------------- function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) { $v_result=1; // ----- Magic quotes trick $this->privDisableMagicQuotes(); // ----- Check the path if ( ($p_path == "") || ( (substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,2)!=":/"))) $p_path = "./".$p_path; // ----- Reduce the path last (and duplicated) '/' if (($p_path != "./") && ($p_path != "/")) { // ----- Look for the path end '/' while (substr($p_path, -1) == "/") { $p_path = substr($p_path, 0, strlen($p_path)-1); } } // ----- Look for path to remove format (should end by /) if (($p_remove_path != "") && (substr($p_remove_path, -1) != '/')) { $p_remove_path .= '/'; } $p_remove_path_size = strlen($p_remove_path); // ----- Open the zip file if (($v_result = $this->privOpenFd('rb')) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Read the central directory information $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Start at beginning of Central Dir $v_pos_entry = $v_central_dir['offset']; // ----- Read each entry $j_start = 0; for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++) { // ----- Read next Central dir entry @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_pos_entry)) { // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); // ----- Return return PclZip::errorCode(); } // ----- Read the file header $v_header = array(); if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) { // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Store the index $v_header['index'] = $i; // ----- Store the file position $v_pos_entry = ftell($this->zip_fd); // ----- Look for the specific extract rules $v_extract = false; // ----- Look for extract by name rule if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { // ----- Look if the filename is in the list for ($j=0; ($j strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) && (substr($v_header['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { $v_extract = true; } } // ----- Look for a filename elseif ($v_header['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { $v_extract = true; } } } // ----- Look for extract by ereg rule // ereg() is deprecated with PHP 5.3 /* else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header['stored_filename'])) { $v_extract = true; } } */ // ----- Look for extract by preg rule else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header['stored_filename'])) { $v_extract = true; } } // ----- Look for extract by index rule else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { // ----- Look if the index is in the list for ($j=$j_start; ($j=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { $v_extract = true; } if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { $j_start = $j+1; } if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) { break; } } } // ----- Look for no rule, which means extract all the archive else { $v_extract = true; } // ----- Check compression method if ( ($v_extract) && ( ($v_header['compression'] != 8) && ($v_header['compression'] != 0))) { $v_header['status'] = 'unsupported_compression'; // ----- Look for PCLZIP_OPT_STOP_ON_ERROR if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_COMPRESSION, "Filename '".$v_header['stored_filename']."' is " ."compressed by an unsupported compression " ."method (".$v_header['compression'].") "); return PclZip::errorCode(); } } // ----- Check encrypted files if (($v_extract) && (($v_header['flag'] & 1) == 1)) { $v_header['status'] = 'unsupported_encryption'; // ----- Look for PCLZIP_OPT_STOP_ON_ERROR if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, "Unsupported encryption for " ." filename '".$v_header['stored_filename'] ."'"); return PclZip::errorCode(); } } // ----- Look for real extraction if (($v_extract) && ($v_header['status'] != 'ok')) { $v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++]); if ($v_result != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } $v_extract = false; } // ----- Look for real extraction if ($v_extract) { // ----- Go to the file position @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_header['offset'])) { // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); // ----- Return return PclZip::errorCode(); } // ----- Look for extraction as string if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) { $v_string = ''; // ----- Extracting the file $v_result1 = $this->privExtractFileAsString($v_header, $v_string, $p_options); if ($v_result1 < 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result1; } // ----- Get the only interesting attributes if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1) { // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Set the file content $p_file_list[$v_nb_extracted]['content'] = $v_string; // ----- Next extracted file $v_nb_extracted++; // ----- Look for user callback abort if ($v_result1 == 2) { break; } } // ----- Look for extraction in standard output elseif ( (isset($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) && ($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) { // ----- Extracting the file in standard output $v_result1 = $this->privExtractFileInOutput($v_header, $p_options); if ($v_result1 < 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result1; } // ----- Get the only interesting attributes if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Look for user callback abort if ($v_result1 == 2) { break; } } // ----- Look for normal extraction else { // ----- Extracting the file $v_result1 = $this->privExtractFile($v_header, $p_path, $p_remove_path, $p_remove_all_path, $p_options); if ($v_result1 < 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result1; } // ----- Get the only interesting attributes if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) { // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } // ----- Look for user callback abort if ($v_result1 == 2) { break; } } } } // ----- Close the zip file $this->privCloseFd(); $this->privSwapBackMagicQuotes(); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privExtractFile() // Description : // Parameters : // Return Values : // // 1 : ... ? // PCLZIP_ERR_USER_ABORTED(2) : User ask for extraction stop in callback // -------------------------------------------------------------------------------- function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) { $v_result=1; // ----- Read the file header if (($v_result = $this->privReadFileHeader($v_header)) != 1) { // ----- Return return $v_result; } // ----- Check that the file header is coherent with $p_entry info if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { // TBC } // ----- Look for all path to remove if ($p_remove_all_path == true) { // ----- Look for folder entry that not need to be extracted if (($p_entry['external']&0x00000010)==0x00000010) { $p_entry['status'] = "filtered"; return $v_result; } // ----- Get the basename of the path $p_entry['filename'] = basename($p_entry['filename']); } // ----- Look for path to remove else if ($p_remove_path != "") { if (PclZipUtilPathInclusion($p_remove_path, $p_entry['filename']) == 2) { // ----- Change the file status $p_entry['status'] = "filtered"; // ----- Return return $v_result; } $p_remove_path_size = strlen($p_remove_path); if (substr($p_entry['filename'], 0, $p_remove_path_size) == $p_remove_path) { // ----- Remove the path $p_entry['filename'] = substr($p_entry['filename'], $p_remove_path_size); } } // ----- Add the path if ($p_path != '') { $p_entry['filename'] = $p_path."/".$p_entry['filename']; } // ----- Check a base_dir_restriction if (isset($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION])) { $v_inclusion = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION], $p_entry['filename']); if ($v_inclusion == 0) { PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION, "Filename '".$p_entry['filename']."' is " ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION"); return PclZip::errorCode(); } } // ----- Look for pre-extract callback if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); if ($v_result == 0) { // ----- Change the file status $p_entry['status'] = "skipped"; $v_result = 1; } // ----- Look for abort result if ($v_result == 2) { // ----- This status is internal and will be changed in 'skipped' $p_entry['status'] = "aborted"; $v_result = PCLZIP_ERR_USER_ABORTED; } // ----- Update the information // Only some fields can be modified $p_entry['filename'] = $v_local_header['filename']; } // ----- Look if extraction should be done if ($p_entry['status'] == 'ok') { // ----- Look for specific actions while the file exist if (file_exists($p_entry['filename'])) { // ----- Look if file is a directory if (is_dir($p_entry['filename'])) { // ----- Change the file status $p_entry['status'] = "already_a_directory"; // ----- Look for PCLZIP_OPT_STOP_ON_ERROR // For historical reason first PclZip implementation does not stop // when this kind of error occurs. if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { PclZip::privErrorLog(PCLZIP_ERR_ALREADY_A_DIRECTORY, "Filename '".$p_entry['filename']."' is " ."already used by an existing directory"); return PclZip::errorCode(); } } // ----- Look if file is write protected else if (!is_writeable($p_entry['filename'])) { // ----- Change the file status $p_entry['status'] = "write_protected"; // ----- Look for PCLZIP_OPT_STOP_ON_ERROR // For historical reason first PclZip implementation does not stop // when this kind of error occurs. if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, "Filename '".$p_entry['filename']."' exists " ."and is write protected"); return PclZip::errorCode(); } } // ----- Look if the extracted file is older else if (filemtime($p_entry['filename']) > $p_entry['mtime']) { // ----- Change the file status if ( (isset($p_options[PCLZIP_OPT_REPLACE_NEWER])) && ($p_options[PCLZIP_OPT_REPLACE_NEWER]===true)) { } else { $p_entry['status'] = "newer_exist"; // ----- Look for PCLZIP_OPT_STOP_ON_ERROR // For historical reason first PclZip implementation does not stop // when this kind of error occurs. if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, "Newer version of '".$p_entry['filename']."' exists " ."and option PCLZIP_OPT_REPLACE_NEWER is not selected"); return PclZip::errorCode(); } } } else { } } // ----- Check the directory availability and create it if necessary else { if ((($p_entry['external']&0x00000010)==0x00000010) || (substr($p_entry['filename'], -1) == '/')) $v_dir_to_check = $p_entry['filename']; else if (!strstr($p_entry['filename'], "/")) $v_dir_to_check = ""; else $v_dir_to_check = dirname($p_entry['filename']); if (($v_result = $this->privDirCheck($v_dir_to_check, (($p_entry['external']&0x00000010)==0x00000010))) != 1) { // ----- Change the file status $p_entry['status'] = "path_creation_fail"; // ----- Return //return $v_result; $v_result = 1; } } } // ----- Look if extraction should be done if ($p_entry['status'] == 'ok') { // ----- Do the extraction (if not a folder) if (!(($p_entry['external']&0x00000010)==0x00000010)) { // ----- Look for not compressed file if ($p_entry['compression'] == 0) { // ----- Opening destination file if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { // ----- Change the file status $p_entry['status'] = "write_error"; // ----- Return return $v_result; } // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks $v_size = $p_entry['compressed_size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($this->zip_fd, $v_read_size); /* Try to speed up the code $v_binary_data = pack('a'.$v_read_size, $v_buffer); @fwrite($v_dest_file, $v_binary_data, $v_read_size); */ @fwrite($v_dest_file, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Closing the destination file fclose($v_dest_file); // ----- Change the file mtime touch($p_entry['filename'], $p_entry['mtime']); } else { // ----- TBC // Need to be finished if (($p_entry['flag'] & 1) == 1) { PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'File \''.$p_entry['filename'].'\' is encrypted. Encrypted files are not supported.'); return PclZip::errorCode(); } // ----- Look for using temporary file to unzip if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_entry['size'])) ) ) { $v_result = $this->privExtractFileUsingTempFile($p_entry, $p_options); if ($v_result < PCLZIP_ERR_NO_ERROR) { return $v_result; } } // ----- Look for extract in memory else { // ----- Read the compressed file in a buffer (one shot) if ($p_entry['compressed_size'] > 0) { $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); } else { $v_buffer = ''; } // ----- Decompress the file $v_file_content = @gzinflate($v_buffer); unset($v_buffer); if ($v_file_content === FALSE) { // ----- Change the file status // TBC $p_entry['status'] = "error"; return $v_result; } // ----- Opening destination file if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { // ----- Change the file status $p_entry['status'] = "write_error"; return $v_result; } // ----- Write the uncompressed data @fwrite($v_dest_file, $v_file_content, $p_entry['size']); unset($v_file_content); // ----- Closing the destination file @fclose($v_dest_file); } // ----- Change the file mtime @touch($p_entry['filename'], $p_entry['mtime']); } // ----- Look for chmod option if (isset($p_options[PCLZIP_OPT_SET_CHMOD])) { // ----- Change the mode of the file @chmod($p_entry['filename'], $p_options[PCLZIP_OPT_SET_CHMOD]); } } } // ----- Change abort status if ($p_entry['status'] == "aborted") { $p_entry['status'] = "skipped"; } // ----- Look for post-extract callback elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); // ----- Look for abort result if ($v_result == 2) { $v_result = PCLZIP_ERR_USER_ABORTED; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privExtractFileUsingTempFile() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privExtractFileUsingTempFile(&$p_entry, &$p_options) { $v_result=1; // ----- Creates a temporary file $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.gz'; if (($v_dest_file = @fopen($v_gzip_temp_name, "wb")) == 0) { fclose($v_file); PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary write mode'); return PclZip::errorCode(); } // ----- Write gz file format header $v_binary_data = pack('va1a1Va1a1', 0x8b1f, Chr($p_entry['compression']), Chr(0x00), time(), Chr(0x00), Chr(3)); @fwrite($v_dest_file, $v_binary_data, 10); // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks $v_size = $p_entry['compressed_size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($this->zip_fd, $v_read_size); //$v_binary_data = pack('a'.$v_read_size, $v_buffer); @fwrite($v_dest_file, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Write gz file format footer $v_binary_data = pack('VV', $p_entry['crc'], $p_entry['size']); @fwrite($v_dest_file, $v_binary_data, 8); // ----- Close the temporary file @fclose($v_dest_file); // ----- Opening destination file if (($v_dest_file = @fopen($p_entry['filename'], 'wb')) == 0) { $p_entry['status'] = "write_error"; return $v_result; } // ----- Open the temporary gz file if (($v_src_file = @gzopen($v_gzip_temp_name, 'rb')) == 0) { @fclose($v_dest_file); $p_entry['status'] = "read_error"; PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_gzip_temp_name.'\' in binary read mode'); return PclZip::errorCode(); } // ----- Read the file by PCLZIP_READ_BLOCK_SIZE octets blocks $v_size = $p_entry['size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @gzread($v_src_file, $v_read_size); //$v_binary_data = pack('a'.$v_read_size, $v_buffer); @fwrite($v_dest_file, $v_buffer, $v_read_size); $v_size -= $v_read_size; } @fclose($v_dest_file); @gzclose($v_src_file); // ----- Delete the temporary file @unlink($v_gzip_temp_name); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privExtractFileInOutput() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privExtractFileInOutput(&$p_entry, &$p_options) { $v_result=1; // ----- Read the file header if (($v_result = $this->privReadFileHeader($v_header)) != 1) { return $v_result; } // ----- Check that the file header is coherent with $p_entry info if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { // TBC } // ----- Look for pre-extract callback if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. // eval('$v_result = '.$p_options[PCLZIP_CB_PRE_EXTRACT].'(PCLZIP_CB_PRE_EXTRACT, $v_local_header);'); $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); if ($v_result == 0) { // ----- Change the file status $p_entry['status'] = "skipped"; $v_result = 1; } // ----- Look for abort result if ($v_result == 2) { // ----- This status is internal and will be changed in 'skipped' $p_entry['status'] = "aborted"; $v_result = PCLZIP_ERR_USER_ABORTED; } // ----- Update the information // Only some fields can be modified $p_entry['filename'] = $v_local_header['filename']; } // ----- Trace // ----- Look if extraction should be done if ($p_entry['status'] == 'ok') { // ----- Do the extraction (if not a folder) if (!(($p_entry['external']&0x00000010)==0x00000010)) { // ----- Look for not compressed file if ($p_entry['compressed_size'] == $p_entry['size']) { // ----- Read the file in a buffer (one shot) if ($p_entry['compressed_size'] > 0) { $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); } else { $v_buffer = ''; } // ----- Send the file to the output echo $v_buffer; unset($v_buffer); } else { // ----- Read the compressed file in a buffer (one shot) if ($p_entry['compressed_size'] > 0) { $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); } else { $v_buffer = ''; } // ----- Decompress the file $v_file_content = gzinflate($v_buffer); unset($v_buffer); // ----- Send the file to the output echo $v_file_content; unset($v_file_content); } } } // ----- Change abort status if ($p_entry['status'] == "aborted") { $p_entry['status'] = "skipped"; } // ----- Look for post-extract callback elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); // ----- Look for abort result if ($v_result == 2) { $v_result = PCLZIP_ERR_USER_ABORTED; } } return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privExtractFileAsString() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) { $v_result=1; // ----- Read the file header $v_header = array(); if (($v_result = $this->privReadFileHeader($v_header)) != 1) { // ----- Return return $v_result; } // ----- Check that the file header is coherent with $p_entry info if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { // TBC } // ----- Look for pre-extract callback if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); if ($v_result == 0) { // ----- Change the file status $p_entry['status'] = "skipped"; $v_result = 1; } // ----- Look for abort result if ($v_result == 2) { // ----- This status is internal and will be changed in 'skipped' $p_entry['status'] = "aborted"; $v_result = PCLZIP_ERR_USER_ABORTED; } // ----- Update the information // Only some fields can be modified $p_entry['filename'] = $v_local_header['filename']; } // ----- Look if extraction should be done if ($p_entry['status'] == 'ok') { // ----- Do the extraction (if not a folder) if (!(($p_entry['external']&0x00000010)==0x00000010)) { // ----- Look for not compressed file // if ($p_entry['compressed_size'] == $p_entry['size']) if ($p_entry['compression'] == 0) { // ----- Reading the file if ($p_entry['compressed_size'] > 0) { $p_string = @fread($this->zip_fd, $p_entry['compressed_size']); } else { $p_string = ''; } } else { // ----- Reading the file if ($p_entry['compressed_size'] > 0) { $v_data = @fread($this->zip_fd, $p_entry['compressed_size']); } else { $v_data = ''; } // ----- Decompress the file if (($p_string = @gzinflate($v_data)) === FALSE) { // TBC } } // ----- Trace } else { // TBC : error : can not extract a folder in a string } } // ----- Change abort status if ($p_entry['status'] == "aborted") { $p_entry['status'] = "skipped"; } // ----- Look for post-extract callback elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { // ----- Generate a local information $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); // ----- Swap the content to header $v_local_header['content'] = $p_string; $p_string = ''; // ----- Call the callback // Here I do not use call_user_func() because I need to send a reference to the // header. $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); // ----- Swap back the content to header $p_string = $v_local_header['content']; unset($v_local_header['content']); // ----- Look for abort result if ($v_result == 2) { $v_result = PCLZIP_ERR_USER_ABORTED; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privReadFileHeader() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privReadFileHeader(&$p_header) { $v_result=1; // ----- Read the 4 bytes signature $v_binary_data = @fread($this->zip_fd, 4); $v_data = unpack('Vid', $v_binary_data); // ----- Check signature if ($v_data['id'] != 0x04034b50) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure'); // ----- Return return PclZip::errorCode(); } // ----- Read the first 42 bytes of the header $v_binary_data = fread($this->zip_fd, 26); // ----- Look for invalid block size if (strlen($v_binary_data) != 26) { $p_header['filename'] = ""; $p_header['status'] = "invalid_header"; // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); // ----- Return return PclZip::errorCode(); } // ----- Extract the values $v_data = unpack('vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len', $v_binary_data); // ----- Get filename $p_header['filename'] = fread($this->zip_fd, $v_data['filename_len']); // ----- Get extra_fields if ($v_data['extra_len'] != 0) { $p_header['extra'] = fread($this->zip_fd, $v_data['extra_len']); } else { $p_header['extra'] = ''; } // ----- Extract properties $p_header['version_extracted'] = $v_data['version']; $p_header['compression'] = $v_data['compression']; $p_header['size'] = $v_data['size']; $p_header['compressed_size'] = $v_data['compressed_size']; $p_header['crc'] = $v_data['crc']; $p_header['flag'] = $v_data['flag']; $p_header['filename_len'] = $v_data['filename_len']; // ----- Recuperate date in UNIX format $p_header['mdate'] = $v_data['mdate']; $p_header['mtime'] = $v_data['mtime']; if ($p_header['mdate'] && $p_header['mtime']) { // ----- Extract time $v_hour = ($p_header['mtime'] & 0xF800) >> 11; $v_minute = ($p_header['mtime'] & 0x07E0) >> 5; $v_seconde = ($p_header['mtime'] & 0x001F)*2; // ----- Extract date $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980; $v_month = ($p_header['mdate'] & 0x01E0) >> 5; $v_day = $p_header['mdate'] & 0x001F; // ----- Get UNIX date format $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); } else { $p_header['mtime'] = time(); } // TBC //for(reset($v_data); $key = key($v_data); next($v_data)) { //} // ----- Set the stored filename $p_header['stored_filename'] = $p_header['filename']; // ----- Set the status field $p_header['status'] = "ok"; // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privReadCentralFileHeader() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privReadCentralFileHeader(&$p_header) { $v_result=1; // ----- Read the 4 bytes signature $v_binary_data = @fread($this->zip_fd, 4); $v_data = unpack('Vid', $v_binary_data); // ----- Check signature if ($v_data['id'] != 0x02014b50) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Invalid archive structure'); // ----- Return return PclZip::errorCode(); } // ----- Read the first 42 bytes of the header $v_binary_data = fread($this->zip_fd, 42); // ----- Look for invalid block size if (strlen($v_binary_data) != 42) { $p_header['filename'] = ""; $p_header['status'] = "invalid_header"; // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); // ----- Return return PclZip::errorCode(); } // ----- Extract the values $p_header = unpack('vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset', $v_binary_data); // ----- Get filename if ($p_header['filename_len'] != 0) $p_header['filename'] = fread($this->zip_fd, $p_header['filename_len']); else $p_header['filename'] = ''; // ----- Get extra if ($p_header['extra_len'] != 0) $p_header['extra'] = fread($this->zip_fd, $p_header['extra_len']); else $p_header['extra'] = ''; // ----- Get comment if ($p_header['comment_len'] != 0) $p_header['comment'] = fread($this->zip_fd, $p_header['comment_len']); else $p_header['comment'] = ''; // ----- Extract properties // ----- Recuperate date in UNIX format //if ($p_header['mdate'] && $p_header['mtime']) // TBC : bug : this was ignoring time with 0/0/0 if (1) { // ----- Extract time $v_hour = ($p_header['mtime'] & 0xF800) >> 11; $v_minute = ($p_header['mtime'] & 0x07E0) >> 5; $v_seconde = ($p_header['mtime'] & 0x001F)*2; // ----- Extract date $v_year = (($p_header['mdate'] & 0xFE00) >> 9) + 1980; $v_month = ($p_header['mdate'] & 0x01E0) >> 5; $v_day = $p_header['mdate'] & 0x001F; // ----- Get UNIX date format $p_header['mtime'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); } else { $p_header['mtime'] = time(); } // ----- Set the stored filename $p_header['stored_filename'] = $p_header['filename']; // ----- Set default status to ok $p_header['status'] = 'ok'; // ----- Look if it is a directory if (substr($p_header['filename'], -1) == '/') { //$p_header['external'] = 0x41FF0010; $p_header['external'] = 0x00000010; } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privCheckFileHeaders() // Description : // Parameters : // Return Values : // 1 on success, // 0 on error; // -------------------------------------------------------------------------------- function privCheckFileHeaders(&$p_local_header, &$p_central_header) { $v_result=1; // ----- Check the static values // TBC if ($p_local_header['filename'] != $p_central_header['filename']) { } if ($p_local_header['version_extracted'] != $p_central_header['version_extracted']) { } if ($p_local_header['flag'] != $p_central_header['flag']) { } if ($p_local_header['compression'] != $p_central_header['compression']) { } if ($p_local_header['mtime'] != $p_central_header['mtime']) { } if ($p_local_header['filename_len'] != $p_central_header['filename_len']) { } // ----- Look for flag bit 3 if (($p_local_header['flag'] & 8) == 8) { $p_local_header['size'] = $p_central_header['size']; $p_local_header['compressed_size'] = $p_central_header['compressed_size']; $p_local_header['crc'] = $p_central_header['crc']; } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privReadEndCentralDir() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privReadEndCentralDir(&$p_central_dir) { $v_result=1; // ----- Go to the end of the zip file $v_size = filesize($this->zipname); @fseek($this->zip_fd, $v_size); if (@ftell($this->zip_fd) != $v_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to go to the end of the archive \''.$this->zipname.'\''); // ----- Return return PclZip::errorCode(); } // ----- First try : look if this is an archive with no commentaries (most of the time) // in this case the end of central dir is at 22 bytes of the file end $v_found = 0; if ($v_size > 26) { @fseek($this->zip_fd, $v_size-22); if (($v_pos = @ftell($this->zip_fd)) != ($v_size-22)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\''); // ----- Return return PclZip::errorCode(); } // ----- Read for bytes $v_binary_data = @fread($this->zip_fd, 4); $v_data = @unpack('Vid', $v_binary_data); // ----- Check signature if ($v_data['id'] == 0x06054b50) { $v_found = 1; } $v_pos = ftell($this->zip_fd); } // ----- Go back to the maximum possible size of the Central Dir End Record if (!$v_found) { $v_maximum_size = 65557; // 0xFFFF + 22; if ($v_maximum_size > $v_size) $v_maximum_size = $v_size; @fseek($this->zip_fd, $v_size-$v_maximum_size); if (@ftell($this->zip_fd) != ($v_size-$v_maximum_size)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'Unable to seek back to the middle of the archive \''.$this->zipname.'\''); // ----- Return return PclZip::errorCode(); } // ----- Read byte per byte in order to find the signature $v_pos = ftell($this->zip_fd); $v_bytes = 0x00000000; while ($v_pos < $v_size) { // ----- Read a byte $v_byte = @fread($this->zip_fd, 1); // ----- Add the byte //$v_bytes = ($v_bytes << 8) | Ord($v_byte); // Note we mask the old value down such that once shifted we can never end up with more than a 32bit number // Otherwise on systems where we have 64bit integers the check below for the magic number will fail. $v_bytes = ( ($v_bytes & 0xFFFFFF) << 8) | Ord($v_byte); // ----- Compare the bytes if ($v_bytes == 0x504b0506) { $v_pos++; break; } $v_pos++; } // ----- Look if not found end of central dir if ($v_pos == $v_size) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Unable to find End of Central Dir Record signature"); // ----- Return return PclZip::errorCode(); } } // ----- Read the first 18 bytes of the header $v_binary_data = fread($this->zip_fd, 18); // ----- Look for invalid block size if (strlen($v_binary_data) != 18) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data)); // ----- Return return PclZip::errorCode(); } // ----- Extract the values $v_data = unpack('vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size', $v_binary_data); // ----- Check the global size if (($v_pos + $v_data['comment_size'] + 18) != $v_size) { // ----- Removed in release 2.2 see readme file // The check of the file size is a little too strict. // Some bugs where found when a zip is encrypted/decrypted with 'crypt'. // While decrypted, zip has training 0 bytes if (0) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, 'The central dir is not at the end of the archive.' .' Some trailing bytes exists after the archive.'); // ----- Return return PclZip::errorCode(); } } // ----- Get comment if ($v_data['comment_size'] != 0) { $p_central_dir['comment'] = fread($this->zip_fd, $v_data['comment_size']); } else $p_central_dir['comment'] = ''; $p_central_dir['entries'] = $v_data['entries']; $p_central_dir['disk_entries'] = $v_data['disk_entries']; $p_central_dir['offset'] = $v_data['offset']; $p_central_dir['size'] = $v_data['size']; $p_central_dir['disk'] = $v_data['disk']; $p_central_dir['disk_start'] = $v_data['disk_start']; // TBC //for(reset($p_central_dir); $key = key($p_central_dir); next($p_central_dir)) { //} // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privDeleteByRule() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privDeleteByRule(&$p_result_list, &$p_options) { $v_result=1; $v_list_detail = array(); // ----- Open the zip file if (($v_result=$this->privOpenFd('rb')) != 1) { // ----- Return return $v_result; } // ----- Read the central directory information $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); return $v_result; } // ----- Go to beginning of File @rewind($this->zip_fd); // ----- Scan all the files // ----- Start at beginning of Central Dir $v_pos_entry = $v_central_dir['offset']; @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_pos_entry)) { // ----- Close the zip file $this->privCloseFd(); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); // ----- Return return PclZip::errorCode(); } // ----- Read each entry $v_header_list = array(); $j_start = 0; for ($i=0, $v_nb_extracted=0; $i<$v_central_dir['entries']; $i++) { // ----- Read the file header $v_header_list[$v_nb_extracted] = array(); if (($v_result = $this->privReadCentralFileHeader($v_header_list[$v_nb_extracted])) != 1) { // ----- Close the zip file $this->privCloseFd(); return $v_result; } // ----- Store the index $v_header_list[$v_nb_extracted]['index'] = $i; // ----- Look for the specific extract rules $v_found = false; // ----- Look for extract by name rule if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { // ----- Look if the filename is in the list for ($j=0; ($j strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) && (substr($v_header_list[$v_nb_extracted]['stored_filename'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { $v_found = true; } elseif ( (($v_header_list[$v_nb_extracted]['external']&0x00000010)==0x00000010) /* Indicates a folder */ && ($v_header_list[$v_nb_extracted]['stored_filename'].'/' == $p_options[PCLZIP_OPT_BY_NAME][$j])) { $v_found = true; } } // ----- Look for a filename elseif ($v_header_list[$v_nb_extracted]['stored_filename'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { $v_found = true; } } } // ----- Look for extract by ereg rule // ereg() is deprecated with PHP 5.3 /* else if ( (isset($p_options[PCLZIP_OPT_BY_EREG])) && ($p_options[PCLZIP_OPT_BY_EREG] != "")) { if (ereg($p_options[PCLZIP_OPT_BY_EREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { $v_found = true; } } */ // ----- Look for extract by preg rule else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted]['stored_filename'])) { $v_found = true; } } // ----- Look for extract by index rule else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { // ----- Look if the index is in the list for ($j=$j_start; ($j=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) { $v_found = true; } if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) { $j_start = $j+1; } if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) { break; } } } else { $v_found = true; } // ----- Look for deletion if ($v_found) { unset($v_header_list[$v_nb_extracted]); } else { $v_nb_extracted++; } } // ----- Look if something need to be deleted if ($v_nb_extracted > 0) { // ----- Creates a temporary file $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; // ----- Creates a temporary zip archive $v_temp_zip = new PclZip($v_zip_temp_name); // ----- Open the temporary zip file in write mode if (($v_result = $v_temp_zip->privOpenFd('wb')) != 1) { $this->privCloseFd(); // ----- Return return $v_result; } // ----- Look which file need to be kept for ($i=0; $izip_fd); if (@fseek($this->zip_fd, $v_header_list[$i]['offset'])) { // ----- Close the zip file $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, 'Invalid archive size'); // ----- Return return PclZip::errorCode(); } // ----- Read the file header $v_local_header = array(); if (($v_result = $this->privReadFileHeader($v_local_header)) != 1) { // ----- Close the zip file $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); // ----- Return return $v_result; } // ----- Check that local file header is same as central file header if ($this->privCheckFileHeaders($v_local_header, $v_header_list[$i]) != 1) { // TBC } unset($v_local_header); // ----- Write the file header if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) { // ----- Close the zip file $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); // ----- Return return $v_result; } // ----- Read/write the data block if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i]['compressed_size'])) != 1) { // ----- Close the zip file $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); // ----- Return return $v_result; } } // ----- Store the offset of the central dir $v_offset = @ftell($v_temp_zip->zip_fd); // ----- Re-Create the Central Dir files header for ($i=0; $iprivWriteCentralFileHeader($v_header_list[$i])) != 1) { $v_temp_zip->privCloseFd(); $this->privCloseFd(); @unlink($v_zip_temp_name); // ----- Return return $v_result; } // ----- Transform the header to a 'usable' info $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); } // ----- Zip file comment $v_comment = ''; if (isset($p_options[PCLZIP_OPT_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_COMMENT]; } // ----- Calculate the size of the central header $v_size = @ftell($v_temp_zip->zip_fd)-$v_offset; // ----- Create the central dir footer if (($v_result = $v_temp_zip->privWriteCentralHeader(sizeof($v_header_list), $v_size, $v_offset, $v_comment)) != 1) { // ----- Reset the file list unset($v_header_list); $v_temp_zip->privCloseFd(); $this->privCloseFd(); @unlink($v_zip_temp_name); // ----- Return return $v_result; } // ----- Close $v_temp_zip->privCloseFd(); $this->privCloseFd(); // ----- Delete the zip file // TBC : I should test the result ... @unlink($this->zipname); // ----- Rename the temporary file // TBC : I should test the result ... //@rename($v_zip_temp_name, $this->zipname); PclZipUtilRename($v_zip_temp_name, $this->zipname); // ----- Destroy the temporary archive unset($v_temp_zip); } // ----- Remove every files : reset the file else if ($v_central_dir['entries'] != 0) { $this->privCloseFd(); if (($v_result = $this->privOpenFd('wb')) != 1) { return $v_result; } if (($v_result = $this->privWriteCentralHeader(0, 0, 0, '')) != 1) { return $v_result; } $this->privCloseFd(); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privDirCheck() // Description : // Check if a directory exists, if not it creates it and all the parents directory // which may be useful. // Parameters : // $p_dir : Directory path to check. // Return Values : // 1 : OK // -1 : Unable to create directory // -------------------------------------------------------------------------------- function privDirCheck($p_dir, $p_is_dir=false) { $v_result = 1; // ----- Remove the final '/' if (($p_is_dir) && (substr($p_dir, -1)=='/')) { $p_dir = substr($p_dir, 0, strlen($p_dir)-1); } // ----- Check the directory availability if ((is_dir($p_dir)) || ($p_dir == "")) { return 1; } // ----- Extract parent directory $p_parent_dir = dirname($p_dir); // ----- Just a check if ($p_parent_dir != $p_dir) { // ----- Look for parent directory if ($p_parent_dir != "") { if (($v_result = $this->privDirCheck($p_parent_dir)) != 1) { return $v_result; } } } // ----- Create the directory if (!@mkdir($p_dir, 0777)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_DIR_CREATE_FAIL, "Unable to create directory '$p_dir'"); // ----- Return return PclZip::errorCode(); } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privMerge() // Description : // If $p_archive_to_add does not exist, the function exit with a success result. // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privMerge(&$p_archive_to_add) { $v_result=1; // ----- Look if the archive_to_add exists if (!is_file($p_archive_to_add->zipname)) { // ----- Nothing to merge, so merge is a success $v_result = 1; // ----- Return return $v_result; } // ----- Look if the archive exists if (!is_file($this->zipname)) { // ----- Do a duplicate $v_result = $this->privDuplicate($p_archive_to_add->zipname); // ----- Return return $v_result; } // ----- Open the zip file if (($v_result=$this->privOpenFd('rb')) != 1) { // ----- Return return $v_result; } // ----- Read the central directory information $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); return $v_result; } // ----- Go to beginning of File @rewind($this->zip_fd); // ----- Open the archive_to_add file if (($v_result=$p_archive_to_add->privOpenFd('rb')) != 1) { $this->privCloseFd(); // ----- Return return $v_result; } // ----- Read the central directory information $v_central_dir_to_add = array(); if (($v_result = $p_archive_to_add->privReadEndCentralDir($v_central_dir_to_add)) != 1) { $this->privCloseFd(); $p_archive_to_add->privCloseFd(); return $v_result; } // ----- Go to beginning of File @rewind($p_archive_to_add->zip_fd); // ----- Creates a temporary file $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; // ----- Open the temporary file in write mode if (($v_zip_temp_fd = @fopen($v_zip_temp_name, 'wb')) == 0) { $this->privCloseFd(); $p_archive_to_add->privCloseFd(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open temporary file \''.$v_zip_temp_name.'\' in binary write mode'); // ----- Return return PclZip::errorCode(); } // ----- Copy the files from the archive to the temporary file // TBC : Here I should better append the file and go back to erase the central dir $v_size = $v_central_dir['offset']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($this->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Copy the files from the archive_to_add into the temporary file $v_size = $v_central_dir_to_add['offset']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($p_archive_to_add->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Store the offset of the central dir $v_offset = @ftell($v_zip_temp_fd); // ----- Copy the block of file headers from the old archive $v_size = $v_central_dir['size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($this->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Copy the block of file headers from the archive_to_add $v_size = $v_central_dir_to_add['size']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_archive_to_add->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Merge the file comments $v_comment = $v_central_dir['comment'].' '.$v_central_dir_to_add['comment']; // ----- Calculate the size of the (new) central header $v_size = @ftell($v_zip_temp_fd)-$v_offset; // ----- Swap the file descriptor // Here is a trick : I swap the temporary fd with the zip fd, in order to use // the following methods on the temporary fil and not the real archive fd $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; // ----- Create the central dir footer if (($v_result = $this->privWriteCentralHeader($v_central_dir['entries']+$v_central_dir_to_add['entries'], $v_size, $v_offset, $v_comment)) != 1) { $this->privCloseFd(); $p_archive_to_add->privCloseFd(); @fclose($v_zip_temp_fd); $this->zip_fd = null; // ----- Reset the file list unset($v_header_list); // ----- Return return $v_result; } // ----- Swap back the file descriptor $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; // ----- Close $this->privCloseFd(); $p_archive_to_add->privCloseFd(); // ----- Close the temporary file @fclose($v_zip_temp_fd); // ----- Delete the zip file // TBC : I should test the result ... @unlink($this->zipname); // ----- Rename the temporary file // TBC : I should test the result ... //@rename($v_zip_temp_name, $this->zipname); PclZipUtilRename($v_zip_temp_name, $this->zipname); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privDuplicate() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privDuplicate($p_archive_filename) { $v_result=1; // ----- Look if the $p_archive_filename exists if (!is_file($p_archive_filename)) { // ----- Nothing to duplicate, so duplicate is a success. $v_result = 1; // ----- Return return $v_result; } // ----- Open the zip file if (($v_result=$this->privOpenFd('wb')) != 1) { // ----- Return return $v_result; } // ----- Open the temporary file in write mode if (($v_zip_temp_fd = @fopen($p_archive_filename, 'rb')) == 0) { $this->privCloseFd(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, 'Unable to open archive file \''.$p_archive_filename.'\' in binary write mode'); // ----- Return return PclZip::errorCode(); } // ----- Copy the files from the archive to the temporary file // TBC : Here I should better append the file and go back to erase the central dir $v_size = filesize($p_archive_filename); while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($v_zip_temp_fd, $v_read_size); @fwrite($this->zip_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } // ----- Close $this->privCloseFd(); // ----- Close the temporary file @fclose($v_zip_temp_fd); // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privErrorLog() // Description : // Parameters : // -------------------------------------------------------------------------------- function privErrorLog($p_error_code=0, $p_error_string='') { if (PCLZIP_ERROR_EXTERNAL == 1) { PclError($p_error_code, $p_error_string); } else { $this->error_code = $p_error_code; $this->error_string = $p_error_string; } } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privErrorReset() // Description : // Parameters : // -------------------------------------------------------------------------------- function privErrorReset() { if (PCLZIP_ERROR_EXTERNAL == 1) { PclErrorReset(); } else { $this->error_code = 0; $this->error_string = ''; } } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privDisableMagicQuotes() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privDisableMagicQuotes() { $v_result=1; // EDIT for WordPress 5.3.0 // magic_quote functions are deprecated in PHP 7.4, now assuming it's always off. /* // ----- Look if function exists if ( (!function_exists("get_magic_quotes_runtime")) || (!function_exists("set_magic_quotes_runtime"))) { return $v_result; } // ----- Look if already done if ($this->magic_quotes_status != -1) { return $v_result; } // ----- Get and memorize the magic_quote value $this->magic_quotes_status = @get_magic_quotes_runtime(); // ----- Disable magic_quotes if ($this->magic_quotes_status == 1) { @set_magic_quotes_runtime(0); } */ // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : privSwapBackMagicQuotes() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function privSwapBackMagicQuotes() { $v_result=1; // EDIT for WordPress 5.3.0 // magic_quote functions are deprecated in PHP 7.4, now assuming it's always off. /* // ----- Look if function exists if ( (!function_exists("get_magic_quotes_runtime")) || (!function_exists("set_magic_quotes_runtime"))) { return $v_result; } // ----- Look if something to do if ($this->magic_quotes_status != -1) { return $v_result; } // ----- Swap back magic_quotes if ($this->magic_quotes_status == 1) { @set_magic_quotes_runtime($this->magic_quotes_status); } */ // ----- Return return $v_result; } // -------------------------------------------------------------------------------- } // End of class // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilPathReduction() // Description : // Parameters : // Return Values : // -------------------------------------------------------------------------------- function PclZipUtilPathReduction($p_dir) { $v_result = ""; // ----- Look for not empty path if ($p_dir != "") { // ----- Explode path by directory names $v_list = explode("/", $p_dir); // ----- Study directories from last to first $v_skip = 0; for ($i=sizeof($v_list)-1; $i>=0; $i--) { // ----- Look for current path if ($v_list[$i] == ".") { // ----- Ignore this directory // Should be the first $i=0, but no check is done } else if ($v_list[$i] == "..") { $v_skip++; } else if ($v_list[$i] == "") { // ----- First '/' i.e. root slash if ($i == 0) { $v_result = "/".$v_result; if ($v_skip > 0) { // ----- It is an invalid path, so the path is not modified // TBC $v_result = $p_dir; $v_skip = 0; } } // ----- Last '/' i.e. indicates a directory else if ($i == (sizeof($v_list)-1)) { $v_result = $v_list[$i]; } // ----- Double '/' inside the path else { // ----- Ignore only the double '//' in path, // but not the first and last '/' } } else { // ----- Look for item to skip if ($v_skip > 0) { $v_skip--; } else { $v_result = $v_list[$i].($i!=(sizeof($v_list)-1)?"/".$v_result:""); } } } // ----- Look for skip if ($v_skip > 0) { while ($v_skip > 0) { $v_result = '../'.$v_result; $v_skip--; } } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilPathInclusion() // Description : // This function indicates if the path $p_path is under the $p_dir tree. Or, // said in an other way, if the file or sub-dir $p_path is inside the dir // $p_dir. // The function indicates also if the path is exactly the same as the dir. // This function supports path with duplicated '/' like '//', but does not // support '.' or '..' statements. // Parameters : // Return Values : // 0 if $p_path is not inside directory $p_dir // 1 if $p_path is inside directory $p_dir // 2 if $p_path is exactly the same as $p_dir // -------------------------------------------------------------------------------- function PclZipUtilPathInclusion($p_dir, $p_path) { $v_result = 1; // ----- Look for path beginning by ./ if ( ($p_dir == '.') || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) { $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1); } if ( ($p_path == '.') || ((strlen($p_path) >=2) && (substr($p_path, 0, 2) == './'))) { $p_path = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_path, 1); } // ----- Explode dir and path by directory separator $v_list_dir = explode("/", $p_dir); $v_list_dir_size = sizeof($v_list_dir); $v_list_path = explode("/", $p_path); $v_list_path_size = sizeof($v_list_path); // ----- Study directories paths $i = 0; $j = 0; while (($i < $v_list_dir_size) && ($j < $v_list_path_size) && ($v_result)) { // ----- Look for empty dir (path reduction) if ($v_list_dir[$i] == '') { $i++; continue; } if ($v_list_path[$j] == '') { $j++; continue; } // ----- Compare the items if (($v_list_dir[$i] != $v_list_path[$j]) && ($v_list_dir[$i] != '') && ( $v_list_path[$j] != '')) { $v_result = 0; } // ----- Next items $i++; $j++; } // ----- Look if everything seems to be the same if ($v_result) { // ----- Skip all the empty items while (($j < $v_list_path_size) && ($v_list_path[$j] == '')) $j++; while (($i < $v_list_dir_size) && ($v_list_dir[$i] == '')) $i++; if (($i >= $v_list_dir_size) && ($j >= $v_list_path_size)) { // ----- There are exactly the same $v_result = 2; } else if ($i < $v_list_dir_size) { // ----- The path is shorter than the dir $v_result = 0; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilCopyBlock() // Description : // Parameters : // $p_mode : read/write compression mode // 0 : src & dest normal // 1 : src gzip, dest normal // 2 : src normal, dest gzip // 3 : src & dest gzip // Return Values : // -------------------------------------------------------------------------------- function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) { $v_result = 1; if ($p_mode==0) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_src, $v_read_size); @fwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } else if ($p_mode==1) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @gzread($p_src, $v_read_size); @fwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } else if ($p_mode==2) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_src, $v_read_size); @gzwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } else if ($p_mode==3) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @gzread($p_src, $v_read_size); @gzwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilRename() // Description : // This function tries to do a simple rename() function. If it fails, it // tries to copy the $p_src file in a new $p_dest file and then unlink the // first one. // Parameters : // $p_src : Old filename // $p_dest : New filename // Return Values : // 1 on success, 0 on failure. // -------------------------------------------------------------------------------- function PclZipUtilRename($p_src, $p_dest) { $v_result = 1; // ----- Try to rename the files if (!@rename($p_src, $p_dest)) { // ----- Try to copy & unlink the src if (!@copy($p_src, $p_dest)) { $v_result = 0; } else if (!@unlink($p_src)) { $v_result = 0; } } // ----- Return return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilOptionText() // Description : // Translate option value in text. Mainly for debug purpose. // Parameters : // $p_option : the option value. // Return Values : // The option text value. // -------------------------------------------------------------------------------- function PclZipUtilOptionText($p_option) { $v_list = get_defined_constants(); for (reset($v_list); $v_key = key($v_list); next($v_list)) { $v_prefix = substr($v_key, 0, 10); if (( ($v_prefix == 'PCLZIP_OPT') || ($v_prefix == 'PCLZIP_CB_') || ($v_prefix == 'PCLZIP_ATT')) && ($v_list[$v_key] == $p_option)) { return $v_key; } } $v_result = 'Unknown'; return $v_result; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilTranslateWinPath() // Description : // Translate windows path by replacing '\' by '/' and optionally removing // drive letter. // Parameters : // $p_path : path to translate. // $p_remove_disk_letter : true | false // Return Values : // The path translated. // -------------------------------------------------------------------------------- function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) { if (PHP_OS_FAMILY == 'Windows') { // ----- Look for potential disk letter if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { $p_path = substr($p_path, $v_position+1); } // ----- Change potential windows directory separator if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { $p_path = strtr($p_path, '\\', '/'); } } return $p_path; } // -------------------------------------------------------------------------------- ?> includes/class-ftp-pure.php000064400000012462152213653150011740 0ustar00 // // function _settimeout($sock) { if(!@stream_set_timeout($sock, $this->_timeout)) { $this->PushError('_settimeout','socket set send timeout'); $this->_quit(); return FALSE; } return TRUE; } function _connect($host, $port) { $this->SendMSG("Creating socket"); $sock = @fsockopen($host, $port, $errno, $errstr, $this->_timeout); if (!$sock) { $this->PushError('_connect','socket connect failed', $errstr." (".$errno.")"); return FALSE; } $this->_connected=true; return $sock; } function _readmsg($fnction="_readmsg"){ if(!$this->_connected) { $this->PushError($fnction, 'Connect first'); return FALSE; } $result=true; $this->_message=""; $this->_code=0; $go=true; do { $tmp=@fgets($this->_ftp_control_sock, 512); if($tmp===false) { $go=$result=false; $this->PushError($fnction,'Read failed'); } else { $this->_message.=$tmp; if(preg_match("/^([0-9]{3})(-(.*[".CRLF."]{1,2})+\\1)? [^".CRLF."]+[".CRLF."]{1,2}$/", $this->_message, $regs)) $go=false; } } while($go); if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF; $this->_code=(int)$regs[1]; return $result; } function _exec($cmd, $fnction="_exec") { if(!$this->_ready) { $this->PushError($fnction,'Connect first'); return FALSE; } if($this->LocalEcho) echo "PUT > ",$cmd,CRLF; $status=@fputs($this->_ftp_control_sock, $cmd.CRLF); if($status===false) { $this->PushError($fnction,'socket write failed'); return FALSE; } $this->_lastaction=time(); if(!$this->_readmsg($fnction)) return FALSE; return TRUE; } function _data_prepare($mode=FTP_ASCII) { if(!$this->_settype($mode)) return FALSE; if($this->_passive) { if(!$this->_exec("PASV", "pasv")) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } $ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message)); $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); $this->_ftp_data_sock=@fsockopen($this->_datahost, $this->_dataport, $errno, $errstr, $this->_timeout); if(!$this->_ftp_data_sock) { $this->PushError("_data_prepare","fsockopen fails", $errstr." (".$errno.")"); $this->_data_close(); return FALSE; } else $this->_ftp_data_sock; } else { $this->SendMSG("Only passive connections available!"); return FALSE; } return TRUE; } function _data_read($mode=FTP_ASCII, $fp=NULL) { if(is_resource($fp)) $out=0; else $out=""; if(!$this->_passive) { $this->SendMSG("Only passive connections available!"); return FALSE; } while (!feof($this->_ftp_data_sock)) { $block=fread($this->_ftp_data_sock, $this->_ftp_buff_size); if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block); if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block)); else $out.=$block; } return $out; } function _data_write($mode=FTP_ASCII, $fp=NULL) { if(is_resource($fp)) $out=0; else $out=""; if(!$this->_passive) { $this->SendMSG("Only passive connections available!"); return FALSE; } if(is_resource($fp)) { while(!feof($fp)) { $block=fread($fp, $this->_ftp_buff_size); if(!$this->_data_write_block($mode, $block)) return false; } } elseif(!$this->_data_write_block($mode, $fp)) return false; return TRUE; } function _data_write_block($mode, $block) { if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block); do { if(($t=@fwrite($this->_ftp_data_sock, $block))===FALSE) { $this->PushError("_data_write","Can't write to socket"); return FALSE; } $block=substr($block, $t); } while(!empty($block)); return true; } function _data_close() { @fclose($this->_ftp_data_sock); $this->SendMSG("Disconnected data from remote host"); return TRUE; } function _quit($force=FALSE) { if($this->_connected or $force) { @fclose($this->_ftp_control_sock); $this->_connected=false; $this->SendMSG("Socket closed"); } } } ?> includes/edit-tag-messages.php000064400000002706152213653150012376 0ustar00 '', 1 => __( 'Item added.' ), 2 => __( 'Item deleted.' ), 3 => __( 'Item updated.' ), 4 => __( 'Item not added.' ), 5 => __( 'Item not updated.' ), 6 => __( 'Items deleted.' ), ); $messages['category'] = array( 0 => '', 1 => __( 'Category added.' ), 2 => __( 'Category deleted.' ), 3 => __( 'Category updated.' ), 4 => __( 'Category not added.' ), 5 => __( 'Category not updated.' ), 6 => __( 'Categories deleted.' ), ); $messages['post_tag'] = array( 0 => '', 1 => __( 'Tag added.' ), 2 => __( 'Tag deleted.' ), 3 => __( 'Tag updated.' ), 4 => __( 'Tag not added.' ), 5 => __( 'Tag not updated.' ), 6 => __( 'Tags deleted.' ), ); /** * Filters the messages displayed when a tag is updated. * * @since 3.7.0 * * @param array[] $messages Array of arrays of messages to be displayed, keyed by taxonomy name. */ $messages = apply_filters( 'term_updated_messages', $messages ); $message = false; if ( isset( $_REQUEST['message'] ) && (int) $_REQUEST['message'] ) { $msg = (int) $_REQUEST['message']; if ( isset( $messages[ $taxonomy ][ $msg ] ) ) { $message = $messages[ $taxonomy ][ $msg ]; } elseif ( ! isset( $messages[ $taxonomy ] ) && isset( $messages['_item'][ $msg ] ) ) { $message = $messages['_item'][ $msg ]; } } includes/class-custom-image-header.php000064400000140037152213653150014016 0ustar00admin_header_callback = $admin_header_callback; $this->admin_image_div_callback = $admin_image_div_callback; add_action( 'admin_menu', array( $this, 'init' ) ); add_action( 'customize_save_after', array( $this, 'customize_set_last_used' ) ); add_action( 'wp_ajax_custom-header-crop', array( $this, 'ajax_header_crop' ) ); add_action( 'wp_ajax_custom-header-add', array( $this, 'ajax_header_add' ) ); add_action( 'wp_ajax_custom-header-remove', array( $this, 'ajax_header_remove' ) ); } /** * Sets up the hooks for the Custom Header admin page. * * @since 2.1.0 */ public function init() { $page = add_theme_page( _x( 'Header', 'custom image header' ), _x( 'Header', 'custom image header' ), 'edit_theme_options', 'custom-header', array( $this, 'admin_page' ) ); if ( ! $page ) { return; } add_action( "admin_print_scripts-{$page}", array( $this, 'js_includes' ) ); add_action( "admin_print_styles-{$page}", array( $this, 'css_includes' ) ); add_action( "admin_head-{$page}", array( $this, 'help' ) ); add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 ); add_action( "admin_head-{$page}", array( $this, 'js' ), 50 ); if ( $this->admin_header_callback ) { add_action( "admin_head-{$page}", $this->admin_header_callback, 51 ); } } /** * Adds contextual help. * * @since 3.0.0 */ public function help() { get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

      ' . __( 'This screen is used to customize the header section of your theme.' ) . '

      ' . '

      ' . __( 'You can choose from the theme’s default header images, or use one of your own. You can also customize how your Site Title and Tagline are displayed.' ) . '

      ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'set-header-image', 'title' => __( 'Header Image' ), 'content' => '

      ' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately. Alternatively, you can use an image that has already been uploaded to your Media Library by clicking the “Choose Image” button.' ) . '

      ' . '

      ' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you would like and click the “Save Changes” button.' ) . '

      ' . '

      ' . __( 'If your theme has more than one default header image, or you have uploaded more than one custom header image, you have the option of having WordPress display a randomly different image on each page of your site. Click the “Random” radio button next to the Uploaded Images or Default Images section to enable this feature.' ) . '

      ' . '

      ' . __( 'If you do not want a header image to be displayed on your site at all, click the “Remove Header Image” button at the bottom of the Header Image section of this page. If you want to re-enable the header image later, you just have to select one of the other image options and click “Save Changes”.' ) . '

      ', ) ); get_current_screen()->add_help_tab( array( 'id' => 'set-header-text', 'title' => __( 'Header Text' ), 'content' => '

      ' . sprintf( /* translators: %s: URL to General Settings screen. */ __( 'For most themes, the header text is your Site Title and Tagline, as defined in the General Settings section.' ), admin_url( 'options-general.php' ) ) . '

      ' . '

      ' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '

      ' . '

      ' . __( 'Do not forget to click “Save Changes” when you are done!' ) . '

      ', ) ); get_current_screen()->set_help_sidebar( '

      ' . __( 'For more information:' ) . '

      ' . '

      ' . __( 'Documentation on Custom Header' ) . '

      ' . '

      ' . __( 'Support forums' ) . '

      ' ); } /** * Gets the current step. * * @since 2.6.0 * * @return int Current step. */ public function step() { if ( ! isset( $_GET['step'] ) ) { return 1; } $step = (int) $_GET['step']; if ( $step < 1 || 3 < $step || ( 2 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce-custom-header-upload'], 'custom-header-upload' ) ) || ( 3 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'custom-header-crop-image' ) ) ) { return 1; } return $step; } /** * Sets up the enqueue for the JavaScript files. * * @since 2.1.0 */ public function js_includes() { $step = $this->step(); if ( ( 1 === $step || 3 === $step ) ) { wp_enqueue_media(); wp_enqueue_script( 'custom-header' ); if ( current_theme_supports( 'custom-header', 'header-text' ) ) { wp_enqueue_script( 'wp-color-picker' ); } } elseif ( 2 === $step ) { wp_enqueue_script( 'imgareaselect' ); } } /** * Sets up the enqueue for the CSS files. * * @since 2.7.0 */ public function css_includes() { $step = $this->step(); if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) { wp_enqueue_style( 'wp-color-picker' ); } elseif ( 2 === $step ) { wp_enqueue_style( 'imgareaselect' ); } } /** * Executes custom header modification. * * @since 2.6.0 */ public function take_action() { if ( ! current_user_can( 'edit_theme_options' ) ) { return; } if ( empty( $_POST ) ) { return; } $this->updated = true; if ( isset( $_POST['resetheader'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); $this->reset_header_image(); return; } if ( isset( $_POST['removeheader'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); $this->remove_header_image(); return; } if ( isset( $_POST['text-color'] ) && ! isset( $_POST['display-header-text'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); set_theme_mod( 'header_textcolor', 'blank' ); } elseif ( isset( $_POST['text-color'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); $_POST['text-color'] = str_replace( '#', '', $_POST['text-color'] ); $color = preg_replace( '/[^0-9a-fA-F]/', '', $_POST['text-color'] ); if ( strlen( $color ) === 6 || strlen( $color ) === 3 ) { set_theme_mod( 'header_textcolor', $color ); } elseif ( ! $color ) { set_theme_mod( 'header_textcolor', 'blank' ); } } if ( isset( $_POST['default-header'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); $this->set_header_image( $_POST['default-header'] ); return; } } /** * Processes the default headers. * * @since 3.0.0 * * @global array $_wp_default_headers Default headers registered for themes. */ public function process_default_headers() { global $_wp_default_headers; if ( ! isset( $_wp_default_headers ) ) { return; } if ( ! empty( $this->default_headers ) ) { return; } $this->default_headers = $_wp_default_headers; $template_directory_uri = get_template_directory_uri(); $stylesheet_directory_uri = get_stylesheet_directory_uri(); foreach ( array_keys( $this->default_headers ) as $header ) { $this->default_headers[ $header ]['url'] = sprintf( $this->default_headers[ $header ]['url'], $template_directory_uri, $stylesheet_directory_uri ); $this->default_headers[ $header ]['thumbnail_url'] = sprintf( $this->default_headers[ $header ]['thumbnail_url'], $template_directory_uri, $stylesheet_directory_uri ); } } /** * Displays UI for selecting one of several default headers. * * Shows the random image option if this theme has multiple header images. * Random image option is on by default if no header has been set. * * @since 3.0.0 * * @param string $type The header type. One of 'default' (for the Uploaded Images control) * or 'uploaded' (for the Uploaded Images control). */ public function show_header_selector( $type = 'default' ) { if ( 'default' === $type ) { $headers = $this->default_headers; } else { $headers = get_uploaded_header_images(); $type = 'uploaded'; } if ( 1 < count( $headers ) ) { echo '
      '; echo ''; echo '
      '; } echo '
      '; foreach ( $headers as $header_key => $header ) { $header_thumbnail = $header['thumbnail_url']; $header_url = $header['url']; $header_alt_text = empty( $header['alt_text'] ) ? '' : $header['alt_text']; echo '
      '; echo ''; echo '
      '; } echo '
      '; } /** * Executes JavaScript depending on step. * * @since 2.1.0 */ public function js() { $step = $this->step(); if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) { $this->js_1(); } elseif ( 2 === $step ) { $this->js_2(); } } /** * Displays JavaScript based on Step 1 and 3. * * @since 2.6.0 */ public function js_1() { $default_color = ''; if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) { $default_color = get_theme_support( 'custom-header', 'default-text-color' ); if ( $default_color && ! str_contains( $default_color, '#' ) ) { $default_color = '#' . $default_color; } } ?> process_default_headers(); ?>

      Customizer.' ), admin_url( 'customize.php?autofocus[control]=header_image' ) ); wp_admin_notice( $message, array( 'type' => 'info', 'additional_classes' => array( 'hide-if-no-customize' ), ) ); } if ( ! empty( $this->updated ) ) { $updated_message = sprintf( /* translators: %s: Home URL. */ __( 'Header updated. Visit your site to see how it looks.' ), esc_url( home_url( '/' ) ) ); wp_admin_notice( $updated_message, array( 'id' => 'message', 'additional_classes' => array( 'updated' ), ) ); } ?>

      default_headers ) ) : ?>

      ' . __( 'An error occurred while processing your header image.' ) . '' . '

      ' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '

      ', 403 ); } if ( empty( $_POST ) && isset( $_GET['file'] ) ) { $attachment_id = absint( $_GET['file'] ); $file = get_attached_file( $attachment_id, true ); $url = wp_get_attachment_image_src( $attachment_id, 'full' ); $url = $url[0]; } elseif ( isset( $_POST ) ) { $data = $this->step_2_manage_upload(); $attachment_id = $data['attachment_id']; $file = $data['file']; $url = $data['url']; } if ( file_exists( $file ) ) { list( $width, $height, $type, $attr ) = wp_getimagesize( $file ); } else { $data = wp_get_attachment_metadata( $attachment_id ); $height = isset( $data['height'] ) ? (int) $data['height'] : 0; $width = isset( $data['width'] ) ? (int) $data['width'] : 0; unset( $data ); } $max_width = 0; // For flex, limit size of image displayed to 1500px unless theme says otherwise. if ( current_theme_supports( 'custom-header', 'flex-width' ) ) { $max_width = 1500; } if ( current_theme_supports( 'custom-header', 'max-width' ) ) { $max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) ); } $max_width = max( $max_width, get_theme_support( 'custom-header', 'width' ) ); // If flexible height isn't supported and the image is the exact right size. if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) && (int) get_theme_support( 'custom-header', 'width' ) === $width && (int) get_theme_support( 'custom-header', 'height' ) === $height ) { // Add the metadata. if ( file_exists( $file ) ) { wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) ); } $this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) ); /** * Filters the attachment file path after the custom header or background image is set. * * Used for file replication. * * @since 2.1.0 * * @param string $file Path to the file. * @param int $attachment_id Attachment ID. */ $file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication. return $this->finished(); } elseif ( $width > $max_width ) { $oitar = $width / $max_width; $image = wp_crop_image( $attachment_id, 0, 0, $width, $height, $max_width, $height / $oitar, false, str_replace( wp_basename( $file ), 'midsize-' . wp_basename( $file ), $file ) ); if ( ! $image || is_wp_error( $image ) ) { wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication. $url = str_replace( wp_basename( $url ), wp_basename( $image ), $url ); $width = $width / $oitar; $height = $height / $oitar; } else { $oitar = 1; } ?>

      false ); $uploaded_file = $_FILES['import']; $wp_filetype = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] ); if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) { wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) ); } $file = wp_handle_upload( $uploaded_file, $overrides ); if ( isset( $file['error'] ) ) { wp_die( $file['error'], __( 'Image Upload Error' ) ); } $url = $file['url']; $type = $file['type']; $file = $file['file']; $filename = wp_basename( $file ); // Construct the attachment array. $attachment = array( 'post_title' => $filename, 'post_content' => $url, 'post_mime_type' => $type, 'guid' => $url, 'context' => 'custom-header', ); // Save the data. $attachment_id = wp_insert_attachment( $attachment, $file ); return compact( 'attachment_id', 'file', 'filename', 'url', 'type' ); } /** * Displays third step of custom header image page. * * @since 2.1.0 * @since 4.4.0 Switched to using wp_get_attachment_url() instead of the guid * for retrieving the header image URL. */ public function step_3() { check_admin_referer( 'custom-header-crop-image' ); if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( '

      ' . __( 'An error occurred while processing your header image.' ) . '

      ' . '

      ' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '

      ', 403 ); } if ( ! empty( $_POST['skip-cropping'] ) && ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { wp_die( '

      ' . __( 'An error occurred while processing your header image.' ) . '

      ' . '

      ' . __( 'The active theme does not support a flexible sized header image.' ) . '

      ', 403 ); } if ( $_POST['oitar'] > 1 ) { $_POST['x1'] = $_POST['x1'] * $_POST['oitar']; $_POST['y1'] = $_POST['y1'] * $_POST['oitar']; $_POST['width'] = $_POST['width'] * $_POST['oitar']; $_POST['height'] = $_POST['height'] * $_POST['oitar']; } $attachment_id = absint( $_POST['attachment_id'] ); $original = get_attached_file( $attachment_id ); $dimensions = $this->get_header_dimensions( array( 'height' => $_POST['height'], 'width' => $_POST['width'], ) ); $height = $dimensions['dst_height']; $width = $dimensions['dst_width']; if ( empty( $_POST['skip-cropping'] ) ) { $cropped = wp_crop_image( $attachment_id, (int) $_POST['x1'], (int) $_POST['y1'], (int) $_POST['width'], (int) $_POST['height'], $width, $height ); } elseif ( ! empty( $_POST['create-new-attachment'] ) ) { $cropped = _copy_image_file( $attachment_id ); } else { $cropped = get_attached_file( $attachment_id ); } if ( ! $cropped || is_wp_error( $cropped ) ) { wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, 'custom-header' ); if ( ! empty( $_POST['create-new-attachment'] ) ) { unset( $attachment['ID'] ); } // Update the attachment. $attachment_id = $this->insert_attachment( $attachment, $cropped ); $url = wp_get_attachment_url( $attachment_id ); $this->set_header_image( compact( 'url', 'attachment_id', 'width', 'height' ) ); // Cleanup. $medium = str_replace( wp_basename( $original ), 'midsize-' . wp_basename( $original ), $original ); if ( file_exists( $medium ) ) { wp_delete_file( $medium ); } if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) { wp_delete_file( $original ); } return $this->finished(); } /** * Displays last step of custom header image page. * * @since 2.1.0 */ public function finished() { $this->updated = true; $this->step_1(); } /** * Displays the page based on the current step. * * @since 2.1.0 */ public function admin_page() { if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( __( 'Sorry, you are not allowed to customize headers.' ) ); } $step = $this->step(); if ( 2 === $step ) { $this->step_2(); } elseif ( 3 === $step ) { $this->step_3(); } else { $this->step_1(); } } /** * Unused since 3.5.0. * * @since 3.4.0 * * @param array $form_fields * @return array $form_fields */ public function attachment_fields_to_edit( $form_fields ) { return $form_fields; } /** * Unused since 3.5.0. * * @since 3.4.0 * * @param array $tabs * @return array $tabs */ public function filter_upload_tabs( $tabs ) { return $tabs; } /** * Chooses a header image, selected from existing uploaded and default headers, * or provides an array of uploaded header data (either new, or from media library). * * @since 3.4.0 * * @param mixed $choice Which header image to select. Allows for values of 'random-default-image', * for randomly cycling among the default images; 'random-uploaded-image', * for randomly cycling among the uploaded images; the key of a default image * registered for that theme; and the key of an image uploaded for that theme * (the attachment ID of the image). Or an array of arguments: attachment_id, * url, width, height. All are required. */ final public function set_header_image( $choice ) { if ( is_array( $choice ) || is_object( $choice ) ) { $choice = (array) $choice; if ( ! isset( $choice['attachment_id'] ) || ! isset( $choice['url'] ) ) { return; } $choice['url'] = sanitize_url( $choice['url'] ); $header_image_data = (object) array( 'attachment_id' => $choice['attachment_id'], 'url' => $choice['url'], 'thumbnail_url' => $choice['url'], 'height' => $choice['height'], 'width' => $choice['width'], ); update_post_meta( $choice['attachment_id'], '_wp_attachment_is_custom_header', get_stylesheet() ); set_theme_mod( 'header_image', $choice['url'] ); set_theme_mod( 'header_image_data', $header_image_data ); return; } if ( in_array( $choice, array( 'remove-header', 'random-default-image', 'random-uploaded-image' ), true ) ) { set_theme_mod( 'header_image', $choice ); remove_theme_mod( 'header_image_data' ); return; } $uploaded = get_uploaded_header_images(); if ( $uploaded && isset( $uploaded[ $choice ] ) ) { $header_image_data = $uploaded[ $choice ]; } else { $this->process_default_headers(); if ( isset( $this->default_headers[ $choice ] ) ) { $header_image_data = $this->default_headers[ $choice ]; } else { return; } } set_theme_mod( 'header_image', sanitize_url( $header_image_data['url'] ) ); set_theme_mod( 'header_image_data', $header_image_data ); } /** * Removes a header image. * * @since 3.4.0 */ final public function remove_header_image() { $this->set_header_image( 'remove-header' ); } /** * Resets a header image to the default image for the theme. * * This method does not do anything if the theme does not have a default header image. * * @since 3.4.0 */ final public function reset_header_image() { $this->process_default_headers(); $default = get_theme_support( 'custom-header', 'default-image' ); if ( ! $default ) { $this->remove_header_image(); return; } $default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() ); $default_data = array(); foreach ( $this->default_headers as $header => $details ) { if ( $details['url'] === $default ) { $default_data = $details; break; } } set_theme_mod( 'header_image', $default ); set_theme_mod( 'header_image_data', (object) $default_data ); } /** * Calculates width and height based on what the currently selected theme supports. * * @since 3.9.0 * * @param array $dimensions * @return array dst_height and dst_width of header image. */ final public function get_header_dimensions( $dimensions ) { $max_width = 0; $width = absint( $dimensions['width'] ); $height = absint( $dimensions['height'] ); $theme_height = get_theme_support( 'custom-header', 'height' ); $theme_width = get_theme_support( 'custom-header', 'width' ); $has_flex_width = current_theme_supports( 'custom-header', 'flex-width' ); $has_flex_height = current_theme_supports( 'custom-header', 'flex-height' ); $has_max_width = current_theme_supports( 'custom-header', 'max-width' ); $dst = array( 'dst_height' => null, 'dst_width' => null, ); // For flex, limit size of image displayed to 1500px unless theme says otherwise. if ( $has_flex_width ) { $max_width = 1500; } if ( $has_max_width ) { $max_width = max( $max_width, get_theme_support( 'custom-header', 'max-width' ) ); } $max_width = max( $max_width, $theme_width ); if ( $has_flex_height && ( ! $has_flex_width || $width > $max_width ) ) { $dst['dst_height'] = absint( $height * ( $max_width / $width ) ); } elseif ( $has_flex_height && $has_flex_width ) { $dst['dst_height'] = $height; } else { $dst['dst_height'] = $theme_height; } if ( $has_flex_width && ( ! $has_flex_height || $width > $max_width ) ) { $dst['dst_width'] = absint( $width * ( $max_width / $width ) ); } elseif ( $has_flex_width && $has_flex_height ) { $dst['dst_width'] = $width; } else { $dst['dst_width'] = $theme_width; } return $dst; } /** * Creates an attachment 'object'. * * @since 3.9.0 * @deprecated 6.5.0 * * @param string $cropped Cropped image URL. * @param int $parent_attachment_id Attachment ID of parent image. * @return array An array with attachment object data. */ final public function create_attachment_object( $cropped, $parent_attachment_id ) { _deprecated_function( __METHOD__, '6.5.0', 'wp_copy_parent_attachment_properties()' ); $parent = get_post( $parent_attachment_id ); $parent_url = wp_get_attachment_url( $parent->ID ); $url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url ); $size = wp_getimagesize( $cropped ); $image_type = ( $size ) ? $size['mime'] : 'image/jpeg'; $attachment = array( 'ID' => $parent_attachment_id, 'post_title' => wp_basename( $cropped ), 'post_mime_type' => $image_type, 'guid' => $url, 'context' => 'custom-header', 'post_parent' => $parent_attachment_id, ); return $attachment; } /** * Inserts an attachment and its metadata. * * @since 3.9.0 * * @param array $attachment An array with attachment object data. * @param string $cropped File path to cropped image. * @return int Attachment ID. */ final public function insert_attachment( $attachment, $cropped ) { $parent_id = $attachment['post_parent'] ?? null; unset( $attachment['post_parent'] ); $attachment_id = wp_insert_attachment( $attachment, $cropped ); $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped ); // If this is a crop, save the original attachment ID as metadata. if ( $parent_id ) { $metadata['attachment_parent'] = $parent_id; } /** * Filters the header image attachment metadata. * * @since 3.9.0 * * @see wp_generate_attachment_metadata() * * @param array $metadata Attachment metadata. */ $metadata = apply_filters( 'wp_header_image_attachment_metadata', $metadata ); wp_update_attachment_metadata( $attachment_id, $metadata ); return $attachment_id; } /** * Gets attachment uploaded by Media Manager, crops it, then saves it as a * new object. Returns JSON-encoded object details. * * @since 3.9.0 */ public function ajax_header_crop() { check_ajax_referer( 'image_editor-' . $_POST['id'], 'nonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_send_json_error(); } if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_send_json_error(); } $crop_details = $_POST['cropDetails']; $dimensions = $this->get_header_dimensions( array( 'height' => $crop_details['height'], 'width' => $crop_details['width'], ) ); $attachment_id = absint( $_POST['id'] ); $cropped = wp_crop_image( $attachment_id, (int) $crop_details['x1'], (int) $crop_details['y1'], (int) $crop_details['width'], (int) $crop_details['height'], (int) $dimensions['dst_width'], (int) $dimensions['dst_height'] ); if ( ! $cropped || is_wp_error( $cropped ) ) { wp_send_json_error( array( 'message' => __( 'Image could not be processed. Please go back and try again.' ) ) ); } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, 'custom-header' ); $previous = $this->get_previous_crop( $attachment ); if ( $previous ) { $attachment['ID'] = $previous; } else { unset( $attachment['ID'] ); } $new_attachment_id = $this->insert_attachment( $attachment, $cropped ); $attachment['attachment_id'] = $new_attachment_id; $attachment['url'] = wp_get_attachment_url( $new_attachment_id ); $attachment['width'] = $dimensions['dst_width']; $attachment['height'] = $dimensions['dst_height']; wp_send_json_success( $attachment ); } /** * Given an attachment ID for a header image, updates its "last used" * timestamp to now. * * Triggered when the user tries adds a new header image from the * Media Manager, even if s/he doesn't save that change. * * @since 3.9.0 */ public function ajax_header_add() { check_ajax_referer( 'header-add', 'nonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_send_json_error(); } $attachment_id = absint( $_POST['attachment_id'] ); if ( $attachment_id < 1 ) { wp_send_json_error(); } $key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); update_post_meta( $attachment_id, $key, time() ); update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() ); wp_send_json_success(); } /** * Given an attachment ID for a header image, unsets it as a user-uploaded * header image for the active theme. * * Triggered when the user clicks the overlay "X" button next to each image * choice in the Customizer's Header tool. * * @since 3.9.0 */ public function ajax_header_remove() { check_ajax_referer( 'header-remove', 'nonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_send_json_error(); } $attachment_id = absint( $_POST['attachment_id'] ); if ( $attachment_id < 1 ) { wp_send_json_error(); } $key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); delete_post_meta( $attachment_id, $key ); delete_post_meta( $attachment_id, '_wp_attachment_is_custom_header', get_stylesheet() ); wp_send_json_success(); } /** * Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer. * * @since 3.9.0 * * @param WP_Customize_Manager $wp_customize Customize manager. */ public function customize_set_last_used( $wp_customize ) { $header_image_data_setting = $wp_customize->get_setting( 'header_image_data' ); if ( ! $header_image_data_setting ) { return; } $data = $header_image_data_setting->post_value(); if ( ! isset( $data['attachment_id'] ) ) { return; } $attachment_id = $data['attachment_id']; $key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); update_post_meta( $attachment_id, $key, time() ); } /** * Gets the details of default header images if defined. * * @since 3.9.0 * * @return array Default header images. */ public function get_default_header_images() { $this->process_default_headers(); // Get the default image if there is one. $default = get_theme_support( 'custom-header', 'default-image' ); if ( ! $default ) { // If not, easy peasy. return $this->default_headers; } $default = sprintf( $default, get_template_directory_uri(), get_stylesheet_directory_uri() ); $already_has_default = false; foreach ( $this->default_headers as $k => $header ) { if ( $header['url'] === $default ) { $already_has_default = true; break; } } if ( $already_has_default ) { return $this->default_headers; } // If the one true image isn't included in the default set, prepend it. $header_images = array(); $header_images['default'] = array( 'url' => $default, 'thumbnail_url' => $default, 'description' => 'Default', ); // The rest of the set comes after. return array_merge( $header_images, $this->default_headers ); } /** * Gets the previously uploaded header images. * * @since 3.9.0 * * @return array Uploaded header images. */ public function get_uploaded_header_images() { $header_images = get_uploaded_header_images(); $timestamp_key = '_wp_attachment_custom_header_last_used_' . get_stylesheet(); $alt_text_key = '_wp_attachment_image_alt'; foreach ( $header_images as &$header_image ) { $header_meta = get_post_meta( $header_image['attachment_id'] ); $header_image['timestamp'] = $header_meta[ $timestamp_key ] ?? ''; $header_image['alt_text'] = $header_meta[ $alt_text_key ] ?? ''; } return $header_images; } /** * Gets the ID of a previous crop from the same base image. * * @since 4.9.0 * * @param array $attachment An array with a cropped attachment object data. * @return int|false An attachment ID if one exists. False if none. */ public function get_previous_crop( $attachment ) { $header_images = $this->get_uploaded_header_images(); // Bail early if there are no header images. if ( empty( $header_images ) ) { return false; } $previous = false; foreach ( $header_images as $image ) { if ( $image['attachment_parent'] === $attachment['post_parent'] ) { $previous = $image['attachment_id']; break; } } return $previous; } } includes/class-plugin-upgrader.php000064400000055321152213653150013304 0ustar00strings['up_to_date'] = __( 'The plugin is at the latest version.' ); $this->strings['no_package'] = __( 'Update package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['remove_old'] = __( 'Removing the old version of the plugin…' ); $this->strings['remove_old_failed'] = __( 'Could not remove the old plugin.' ); $this->strings['process_failed'] = __( 'Plugin update failed.' ); $this->strings['process_success'] = __( 'Plugin updated successfully.' ); $this->strings['process_bulk_success'] = __( 'Plugins updated successfully.' ); } /** * Initializes the installation strings. * * @since 2.8.0 */ public function install_strings() { $this->strings['no_package'] = __( 'Installation package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the package…' ); $this->strings['installing_package'] = __( 'Installing the plugin…' ); $this->strings['remove_old'] = __( 'Removing the current plugin…' ); $this->strings['remove_old_failed'] = __( 'Could not remove the current plugin.' ); $this->strings['no_files'] = __( 'The plugin contains no files.' ); $this->strings['process_failed'] = __( 'Plugin installation failed.' ); $this->strings['process_success'] = __( 'Plugin installed successfully.' ); /* translators: 1: Plugin name, 2: Plugin version. */ $this->strings['process_success_specific'] = __( 'Successfully installed the plugin %1$s %2$s.' ); if ( ! empty( $this->skin->overwrite ) ) { if ( 'update-plugin' === $this->skin->overwrite ) { $this->strings['installing_package'] = __( 'Updating the plugin…' ); $this->strings['process_failed'] = __( 'Plugin update failed.' ); $this->strings['process_success'] = __( 'Plugin updated successfully.' ); } if ( 'downgrade-plugin' === $this->skin->overwrite ) { $this->strings['installing_package'] = __( 'Downgrading the plugin…' ); $this->strings['process_failed'] = __( 'Plugin downgrade failed.' ); $this->strings['process_success'] = __( 'Plugin downgraded successfully.' ); } } } /** * Install a plugin package. * * @since 2.8.0 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. * * @param string $package The full local path or URI of the package. * @param array $args { * Optional. Other arguments for installing a plugin package. Default empty array. * * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. * Default true. * } * @return bool|WP_Error True if the installation was successful, false or a WP_Error otherwise. */ public function install( $package, $args = array() ) { $defaults = array( 'clear_update_cache' => true, 'overwrite_package' => false, // Do not overwrite files. ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->install_strings(); add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); if ( $parsed_args['clear_update_cache'] ) { // Clear cache so wp_update_plugins() knows about the new plugin. add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 ); } $this->run( array( 'package' => $package, 'destination' => WP_PLUGIN_DIR, 'clear_destination' => $parsed_args['overwrite_package'], 'clear_working' => true, 'hook_extra' => array( 'type' => 'plugin', 'action' => 'install', ), ) ); remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 ); remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); if ( ! $this->result || is_wp_error( $this->result ) ) { return $this->result; } // Force refresh of plugin update information. wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); if ( $parsed_args['overwrite_package'] ) { /** * Fires when the upgrader has successfully overwritten a currently installed * plugin or theme with an uploaded zip package. * * @since 5.5.0 * * @param string $package The package file. * @param array $data The new plugin or theme data. * @param string $package_type The package type ('plugin' or 'theme'). */ do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' ); } return true; } /** * Upgrades a plugin. * * @since 2.8.0 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param array $args { * Optional. Other arguments for upgrading a plugin package. Default empty array. * * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. * Default true. * } * @return bool|WP_Error True if the upgrade was successful, false or a WP_Error object otherwise. */ public function upgrade( $plugin, $args = array() ) { $defaults = array( 'clear_update_cache' => true, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->upgrade_strings(); $current = get_site_transient( 'update_plugins' ); if ( ! isset( $current->response[ $plugin ] ) ) { $this->skin->before(); $this->skin->set_result( false ); $this->skin->error( 'up_to_date' ); $this->skin->after(); return false; } // Get the URL to the zip file. $upgrade_data = $current->response[ $plugin ]; add_filter( 'upgrader_pre_install', array( $this, 'deactivate_plugin_before_upgrade' ), 10, 2 ); add_filter( 'upgrader_pre_install', array( $this, 'active_before' ), 10, 2 ); add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ), 10, 4 ); add_filter( 'upgrader_post_install', array( $this, 'active_after' ), 10, 2 ); /* * There's a Trac ticket to move up the directory for zips which are made a bit differently, useful for non-.org plugins. * 'source_selection' => array( $this, 'source_selection' ), */ if ( $parsed_args['clear_update_cache'] ) { // Clear cache so wp_update_plugins() knows about the new plugin. add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 ); } $this->run( array( 'package' => $upgrade_data->package, 'destination' => WP_PLUGIN_DIR, 'clear_destination' => true, 'clear_working' => true, 'hook_extra' => array( 'plugin' => $plugin, 'type' => 'plugin', 'action' => 'update', 'temp_backup' => array( 'slug' => dirname( $plugin ), 'src' => WP_PLUGIN_DIR, 'dir' => 'plugins', ), ), ) ); // Cleanup our hooks, in case something else does an upgrade on this connection. remove_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9 ); remove_filter( 'upgrader_pre_install', array( $this, 'deactivate_plugin_before_upgrade' ) ); remove_filter( 'upgrader_pre_install', array( $this, 'active_before' ) ); remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) ); remove_filter( 'upgrader_post_install', array( $this, 'active_after' ) ); if ( ! $this->result || is_wp_error( $this->result ) ) { return $this->result; } // Force refresh of plugin update information. wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); /* * Ensure any future auto-update failures trigger a failure email by removing * the last failure notification from the list when plugins update successfully. */ $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); if ( isset( $past_failure_emails[ $plugin ] ) ) { unset( $past_failure_emails[ $plugin ] ); update_option( 'auto_plugin_theme_update_emails', $past_failure_emails ); } return true; } /** * Upgrades several plugins at once. * * @since 2.8.0 * @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional. * * @param string[] $plugins Array of paths to plugin files relative to the plugins directory. * @param array $args { * Optional. Other arguments for upgrading several plugins at once. * * @type bool $clear_update_cache Whether to clear the plugin updates cache if successful. Default true. * } * @return array|false An array of results indexed by plugin file, or false if unable to connect to the filesystem. */ public function bulk_upgrade( $plugins, $args = array() ) { $wp_version = wp_get_wp_version(); $defaults = array( 'clear_update_cache' => true, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->bulk = true; $this->upgrade_strings(); $current = get_site_transient( 'update_plugins' ); add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ), 10, 4 ); $this->skin->header(); // Connect to the filesystem first. $connected = $this->fs_connect( array( WP_CONTENT_DIR, WP_PLUGIN_DIR ) ); if ( ! $connected ) { $this->skin->footer(); return false; } $this->skin->bulk_header(); /* * Only start maintenance mode if: * - running Multisite and there are one or more plugins specified, OR * - a plugin with an update available is currently active. * @todo For multisite, maintenance mode should only kick in for individual sites if at all possible. */ $maintenance = ( is_multisite() && ! empty( $plugins ) ); foreach ( $plugins as $plugin ) { $maintenance = $maintenance || ( is_plugin_active( $plugin ) && isset( $current->response[ $plugin ] ) ); } if ( $maintenance ) { $this->maintenance_mode( true ); } $results = array(); $this->update_count = count( $plugins ); $this->update_current = 0; foreach ( $plugins as $plugin ) { ++$this->update_current; $this->skin->plugin_info = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin, false, true ); if ( ! isset( $current->response[ $plugin ] ) ) { $this->skin->set_result( 'up_to_date' ); $this->skin->before(); $this->skin->feedback( 'up_to_date' ); $this->skin->after(); $results[ $plugin ] = true; continue; } // Get the URL to the zip file. $upgrade_data = $current->response[ $plugin ]; $this->skin->plugin_active = is_plugin_active( $plugin ); if ( isset( $upgrade_data->requires ) && ! is_wp_version_compatible( $upgrade_data->requires ) ) { $result = new WP_Error( 'incompatible_wp_required_version', sprintf( /* translators: 1: Current WordPress version, 2: WordPress version required by the new plugin version. */ __( 'Your WordPress version is %1$s, however the new plugin version requires %2$s.' ), $wp_version, $upgrade_data->requires ) ); $this->skin->before( $result ); $this->skin->error( $result ); $this->skin->after(); } elseif ( isset( $upgrade_data->requires_php ) && ! is_php_version_compatible( $upgrade_data->requires_php ) ) { $result = new WP_Error( 'incompatible_php_required_version', sprintf( /* translators: 1: Current PHP version, 2: PHP version required by the new plugin version. */ __( 'The PHP version on your server is %1$s, however the new plugin version requires %2$s.' ), PHP_VERSION, $upgrade_data->requires_php ) ); $this->skin->before( $result ); $this->skin->error( $result ); $this->skin->after(); } else { add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); $result = $this->run( array( 'package' => $upgrade_data->package, 'destination' => WP_PLUGIN_DIR, 'clear_destination' => true, 'clear_working' => true, 'is_multi' => true, 'hook_extra' => array( 'plugin' => $plugin, 'temp_backup' => array( 'slug' => dirname( $plugin ), 'src' => WP_PLUGIN_DIR, 'dir' => 'plugins', ), ), ) ); remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); } $results[ $plugin ] = $result; // Prevent credentials auth screen from displaying multiple times. if ( false === $result ) { break; } } // End foreach $plugins. $this->maintenance_mode( false ); // Force refresh of plugin update information. wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'plugin', 'bulk' => true, 'plugins' => $plugins, ) ); $this->skin->bulk_footer(); $this->skin->footer(); // Cleanup our hooks, in case something else does an upgrade on this connection. remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) ); /* * Ensure any future auto-update failures trigger a failure email by removing * the last failure notification from the list when plugins update successfully. */ $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); foreach ( $results as $plugin => $result ) { // Maintain last failure notification when plugins failed to update manually. if ( ! $result || is_wp_error( $result ) || ! isset( $past_failure_emails[ $plugin ] ) ) { continue; } unset( $past_failure_emails[ $plugin ] ); } update_option( 'auto_plugin_theme_update_emails', $past_failure_emails ); return $results; } /** * Checks that the source package contains a valid plugin. * * Hooked to the {@see 'upgrader_source_selection'} filter by Plugin_Upgrader::install(). * * @since 3.3.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $source The path to the downloaded package source. * @return string|WP_Error The source as passed, or a WP_Error object on failure. */ public function check_package( $source ) { global $wp_filesystem; $wp_version = wp_get_wp_version(); $this->new_plugin_data = array(); if ( is_wp_error( $source ) ) { return $source; } $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation. return $source; } // Check that the folder contains at least 1 valid plugin. $files = glob( $working_directory . '*.php' ); if ( $files ) { foreach ( $files as $file ) { $new_plugin_data = get_plugin_data( $file, false, false ); if ( ! empty( $new_plugin_data['Name'] ) ) { $this->new_plugin_data = $new_plugin_data; break; } } } if ( empty( $this->new_plugin_data ) ) { return new WP_Error( 'incompatible_archive_no_plugins', $this->strings['incompatible_archive'], __( 'No valid plugins were found.' ) ); } $requires_php = $new_plugin_data['RequiresPHP'] ?? null; $requires_wp = $new_plugin_data['RequiresWP'] ?? null; if ( ! is_php_version_compatible( $requires_php ) ) { $error = sprintf( /* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */ __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ), PHP_VERSION, $requires_php ); return new WP_Error( 'incompatible_php_required_version', $this->strings['incompatible_archive'], $error ); } if ( ! is_wp_version_compatible( $requires_wp ) ) { $error = sprintf( /* translators: 1: Current WordPress version, 2: Version required by the uploaded plugin. */ __( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s.' ), $wp_version, $requires_wp ); return new WP_Error( 'incompatible_wp_required_version', $this->strings['incompatible_archive'], $error ); } return $source; } /** * Retrieves the path to the file that contains the plugin info. * * This isn't used internally in the class, but is called by the skins. * * @since 2.8.0 * * @return string|false The full path to the main plugin file, or false. */ public function plugin_info() { if ( ! is_array( $this->result ) ) { return false; } if ( empty( $this->result['destination_name'] ) ) { return false; } // Ensure to pass with leading slash. $plugin = get_plugins( '/' . $this->result['destination_name'] ); if ( empty( $plugin ) ) { return false; } // Assume the requested plugin is the first in the list. $plugin_files = array_keys( $plugin ); return $this->result['destination_name'] . '/' . $plugin_files[0]; } /** * Deactivates a plugin before it is upgraded. * * Hooked to the {@see 'upgrader_pre_install'} filter by Plugin_Upgrader::upgrade(). * * @since 2.8.0 * @since 4.1.0 Added a return value. * * @param bool|WP_Error $response The installation response before the installation has started. * @param array $plugin Plugin package arguments. * @return bool|WP_Error The original `$response` parameter or WP_Error. */ public function deactivate_plugin_before_upgrade( $response, $plugin ) { if ( is_wp_error( $response ) ) { // Bypass. return $response; } // When in cron (background updates) don't deactivate the plugin, as we require a browser to reactivate it. if ( wp_doing_cron() ) { return $response; } $plugin = $plugin['plugin'] ?? ''; if ( empty( $plugin ) ) { return new WP_Error( 'bad_request', $this->strings['bad_request'] ); } if ( is_plugin_active( $plugin ) ) { // Deactivate the plugin silently, Prevent deactivation hooks from running. deactivate_plugins( $plugin, true ); } return $response; } /** * Turns on maintenance mode before attempting to background update an active plugin. * * Hooked to the {@see 'upgrader_pre_install'} filter by Plugin_Upgrader::upgrade(). * * @since 5.4.0 * * @param bool|WP_Error $response The installation response before the installation has started. * @param array $plugin Plugin package arguments. * @return bool|WP_Error The original `$response` parameter or WP_Error. */ public function active_before( $response, $plugin ) { if ( is_wp_error( $response ) ) { return $response; } // Only enable maintenance mode when in cron (background update). if ( ! wp_doing_cron() ) { return $response; } $plugin = $plugin['plugin'] ?? ''; // Only run if plugin is active. if ( ! is_plugin_active( $plugin ) ) { return $response; } // Change to maintenance mode. Bulk edit handles this separately. if ( ! $this->bulk ) { $this->maintenance_mode( true ); } return $response; } /** * Turns off maintenance mode after upgrading an active plugin. * * Hooked to the {@see 'upgrader_post_install'} filter by Plugin_Upgrader::upgrade(). * * @since 5.4.0 * * @param bool|WP_Error $response The installation response after the installation has finished. * @param array $plugin Plugin package arguments. * @return bool|WP_Error The original `$response` parameter or WP_Error. */ public function active_after( $response, $plugin ) { if ( is_wp_error( $response ) ) { return $response; } // Only disable maintenance mode when in cron (background update). if ( ! wp_doing_cron() ) { return $response; } $plugin = $plugin['plugin'] ?? ''; // Only run if plugin is active. if ( ! is_plugin_active( $plugin ) ) { return $response; } // Time to remove maintenance mode. Bulk edit handles this separately. if ( ! $this->bulk ) { $this->maintenance_mode( false ); } return $response; } /** * Deletes the old plugin during an upgrade. * * Hooked to the {@see 'upgrader_clear_destination'} filter by * Plugin_Upgrader::upgrade() and Plugin_Upgrader::bulk_upgrade(). * * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param bool|WP_Error $removed Whether the destination was cleared. * True on success, WP_Error on failure. * @param string $local_destination The local package destination. * @param string $remote_destination The remote package destination. * @param array $plugin Extra arguments passed to hooked filters. * @return bool|WP_Error */ public function delete_old_plugin( $removed, $local_destination, $remote_destination, $plugin ) { global $wp_filesystem; if ( is_wp_error( $removed ) ) { return $removed; // Pass errors through. } $plugin = $plugin['plugin'] ?? ''; if ( empty( $plugin ) ) { return new WP_Error( 'bad_request', $this->strings['bad_request'] ); } $plugins_dir = $wp_filesystem->wp_plugins_dir(); $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin ) ); if ( ! $wp_filesystem->exists( $this_plugin_dir ) ) { // If it's already vanished. return $removed; } /* * If plugin is in its own directory, recursively delete the directory. * Base check on if plugin includes directory separator AND that it's not the root plugin folder. */ if ( strpos( $plugin, '/' ) && $this_plugin_dir !== $plugins_dir ) { $deleted = $wp_filesystem->delete( $this_plugin_dir, true ); } else { $deleted = $wp_filesystem->delete( $plugins_dir . $plugin ); } if ( ! $deleted ) { return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] ); } return true; } } includes/class-wp-themes-list-table.php000064400000024143152213653150014144 0ustar00 true, 'screen' => $args['screen'] ?? null, ) ); } /** * @return bool */ public function ajax_user_can() { // Do not check edit_theme_options here. Ajax calls for available themes require switch_themes. return current_user_can( 'switch_themes' ); } /** */ public function prepare_items() { $themes = wp_get_themes( array( 'allowed' => true ) ); if ( ! empty( $_REQUEST['s'] ) ) { $this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( wp_unslash( $_REQUEST['s'] ) ) ) ) ) ); } if ( ! empty( $_REQUEST['features'] ) ) { $this->features = $_REQUEST['features']; } if ( $this->search_terms || $this->features ) { foreach ( $themes as $key => $theme ) { if ( ! $this->search_theme( $theme ) ) { unset( $themes[ $key ] ); } } } unset( $themes[ get_option( 'stylesheet' ) ] ); WP_Theme::sort_by_name( $themes ); $per_page = 36; $page = $this->get_pagenum(); $start = ( $page - 1 ) * $per_page; $this->items = array_slice( $themes, $start, $per_page, true ); $this->set_pagination_args( array( 'total_items' => count( $themes ), 'per_page' => $per_page, 'infinite_scroll' => true, ) ); } /** */ public function no_items() { if ( $this->search_terms || $this->features ) { _e( 'No items found.' ); return; } $blog_id = get_current_blog_id(); if ( is_multisite() ) { if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { printf( /* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen. */ __( 'You only have one theme enabled for this site right now. Visit the Network Admin to enable or install more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ), network_admin_url( 'theme-install.php' ) ); return; } elseif ( current_user_can( 'manage_network_themes' ) ) { printf( /* translators: %s: URL to Themes tab on Edit Site screen. */ __( 'You only have one theme enabled for this site right now. Visit the Network Admin to enable more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ) ); return; } // Else, fallthrough. install_themes doesn't help if you can't enable it. } else { if ( current_user_can( 'install_themes' ) ) { printf( /* translators: %s: URL to Add Themes screen. */ __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the Install Themes tab above.' ), admin_url( 'theme-install.php' ) ); return; } } // Fallthrough. printf( /* translators: %s: Network title. */ __( 'Only the active theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); } /** * @param string $which */ public function tablenav( $which = 'top' ) { if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) { return; } ?>
      pagination( $which ); ?>
      tablenav( 'top' ); ?>
      display_rows_or_placeholder(); ?>
      tablenav( 'bottom' ); ?> has_items() ) { $this->display_rows(); } else { echo '
      '; $this->no_items(); echo '
      '; } } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { $themes = $this->items; foreach ( $themes as $theme ) : ?>
      get_template(); $stylesheet = $theme->get_stylesheet(); $title = $theme->display( 'Name' ); $version = $theme->display( 'Version' ); $author = $theme->display( 'Author' ); $activate_link = wp_nonce_url( 'themes.php?action=activate&template=' . urlencode( $template ) . '&stylesheet=' . urlencode( $stylesheet ), 'switch-theme_' . $stylesheet ); $actions = array(); $actions['activate'] = sprintf( '%s', $activate_link, /* translators: %s: Theme name. */ esc_attr( sprintf( _x( 'Activate “%s”', 'theme' ), $title ) ), _x( 'Activate', 'theme' ) ); if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { $actions['preview'] .= sprintf( '%s', wp_customize_url( $stylesheet ), __( 'Live Preview' ) ); } if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) { $actions['delete'] = sprintf( '%s', wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ), /* translators: %s: Theme name. */ esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $title ) ), __( 'Delete' ) ); } /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */ $actions = apply_filters( 'theme_action_links', $actions, $theme, 'all' ); /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */ $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, 'all' ); $delete_action = isset( $actions['delete'] ) ? '
      ' . $actions['delete'] . '
      ' : ''; unset( $actions['delete'] ); $screenshot = $theme->get_screenshot(); ?>

      display( 'Description' ); ?>

      parent() ) { printf( /* translators: 1: Link to documentation on child themes, 2: Name of parent theme. */ '

      ' . __( 'This child theme requires its parent theme, %2$s.' ) . '

      ', __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ), $theme->parent()->display( 'Name' ) ); } ?>
      features as $word ) { if ( ! in_array( $word, $theme->get( 'Tags' ), true ) ) { return false; } } // Match all phrases. foreach ( $this->search_terms as $word ) { if ( in_array( $word, $theme->get( 'Tags' ), true ) ) { continue; } foreach ( array( 'Name', 'Description', 'Author', 'AuthorURI' ) as $header ) { // Don't mark up; Do translate. if ( false !== stripos( strip_tags( $theme->display( $header, false, true ) ), $word ) ) { continue 2; } } if ( false !== stripos( $theme->get_stylesheet(), $word ) ) { continue; } if ( false !== stripos( $theme->get_template(), $word ) ) { continue; } return false; } return true; } /** * Send required variables to JavaScript land * * @since 3.4.0 * * @param array $extra_args */ public function _js_vars( $extra_args = array() ) { $search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; $args = array( 'search' => $search_string, 'features' => $this->features, 'paged' => $this->get_pagenum(), 'total_pages' => ! empty( $this->_pagination_args['total_pages'] ) ? $this->_pagination_args['total_pages'] : 1, ); if ( is_array( $extra_args ) ) { $args = array_merge( $args, $extra_args ); } printf( "\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); parent::_js_vars(); } } includes/class-wp-posts-list-table.php000064400000176727152213653150014047 0ustar00 'posts', 'screen' => $args['screen'] ?? null, ) ); $post_type = $this->screen->post_type; $post_type_object = get_post_type_object( $post_type ); $exclude_states = get_post_stati( array( 'show_in_admin_all_list' => false, ) ); $this->user_posts_count = (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND post_status NOT IN ( '" . implode( "','", $exclude_states ) . "' ) AND post_author = %d", $post_type, get_current_user_id() ) ); if ( $this->user_posts_count && ! current_user_can( $post_type_object->cap->edit_others_posts ) && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['all_posts'] ) && empty( $_REQUEST['author'] ) && empty( $_REQUEST['show_sticky'] ) ) { $_GET['author'] = get_current_user_id(); } $sticky_posts = get_option( 'sticky_posts' ); if ( 'post' === $post_type && $sticky_posts ) { $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) ); $this->sticky_posts_count = (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND post_status NOT IN ('trash', 'auto-draft') AND ID IN ($sticky_posts)", $post_type ) ); } } /** * Sets whether the table layout should be hierarchical or not. * * @since 4.2.0 * * @param bool $display Whether the table layout should be hierarchical. */ public function set_hierarchical_display( $display ) { $this->hierarchical_display = $display; } /** * @return bool */ public function ajax_user_can() { return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts ); } /** * @global string $mode List table view mode. * @global array $avail_post_stati * @global WP_Query $wp_query WordPress Query object. * @global int $per_page */ public function prepare_items() { global $mode, $avail_post_stati, $wp_query, $per_page; if ( ! empty( $_REQUEST['mode'] ) ) { $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; set_user_setting( 'posts_list_mode', $mode ); } else { $mode = get_user_setting( 'posts_list_mode', 'list' ); } // Is going to call wp(). $avail_post_stati = wp_edit_posts_query(); $this->set_hierarchical_display( is_post_type_hierarchical( $this->screen->post_type ) && 'menu_order title' === $wp_query->query['orderby'] ); $post_type = $this->screen->post_type; $per_page = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' ); /** This filter is documented in wp-admin/includes/post.php */ $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); if ( $this->hierarchical_display ) { $total_items = $wp_query->post_count; } elseif ( $wp_query->found_posts || $this->get_pagenum() === 1 ) { $total_items = $wp_query->found_posts; } else { $post_counts = (array) wp_count_posts( $post_type, 'readable' ); if ( isset( $_REQUEST['post_status'] ) && in_array( $_REQUEST['post_status'], $avail_post_stati, true ) ) { $total_items = $post_counts[ $_REQUEST['post_status'] ]; } elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) { $total_items = $this->sticky_posts_count; } elseif ( isset( $_GET['author'] ) && get_current_user_id() === (int) $_GET['author'] ) { $total_items = $this->user_posts_count; } else { $total_items = array_sum( $post_counts ); // Subtract post types that are not included in the admin all list. foreach ( get_post_stati( array( 'show_in_admin_all_list' => false ) ) as $state ) { $total_items -= $post_counts[ $state ]; } } } $this->is_trash = isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status']; $this->set_pagination_args( array( 'total_items' => $total_items, 'per_page' => $per_page, ) ); } /** * @return bool */ public function has_items() { return have_posts(); } /** */ public function no_items() { if ( isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'] ) { echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash; } else { echo get_post_type_object( $this->screen->post_type )->labels->not_found; } } /** * Determines if the current view is the "All" view. * * @since 4.2.0 * * @return bool Whether the current view is the "All" view. */ protected function is_base_request() { $vars = $_GET; unset( $vars['paged'] ); if ( empty( $vars ) ) { return true; } elseif ( 1 === count( $vars ) && ! empty( $vars['post_type'] ) ) { return $this->screen->post_type === $vars['post_type']; } return 1 === count( $vars ) && ! empty( $vars['mode'] ); } /** * Creates a link to edit.php with params. * * @since 4.4.0 * * @param string[] $args Associative array of URL parameters for the link. * @param string $link_text Link text. * @param string $css_class Optional. Class attribute. Default empty string. * @return string The formatted link string. */ protected function get_edit_link( $args, $link_text, $css_class = '' ) { $url = add_query_arg( $args, 'edit.php' ); $class_html = ''; $aria_current = ''; if ( ! empty( $css_class ) ) { $class_html = sprintf( ' class="%s"', esc_attr( $css_class ) ); if ( 'current' === $css_class ) { $aria_current = ' aria-current="page"'; } } return sprintf( '%s', esc_url( $url ), $class_html, $aria_current, $link_text ); } /** * @global array $locked_post_status This seems to be deprecated. * @global array $avail_post_stati * @return array */ protected function get_views() { global $locked_post_status, $avail_post_stati; $post_type = $this->screen->post_type; if ( ! empty( $locked_post_status ) ) { return array(); } $status_links = array(); $num_posts = wp_count_posts( $post_type, 'readable' ); $total_posts = array_sum( (array) $num_posts ); $class = ''; $current_user_id = get_current_user_id(); $all_args = array( 'post_type' => $post_type ); $mine = ''; // Subtract post types that are not included in the admin all list. foreach ( get_post_stati( array( 'show_in_admin_all_list' => false ) ) as $state ) { $total_posts -= $num_posts->$state; } if ( $this->user_posts_count && $this->user_posts_count !== $total_posts ) { if ( isset( $_GET['author'] ) && ( $current_user_id === (int) $_GET['author'] ) ) { $class = 'current'; } $mine_args = array( 'post_type' => $post_type, 'author' => $current_user_id, ); $mine_inner_html = sprintf( /* translators: %s: Number of posts. */ _nx( 'Mine (%s)', 'Mine (%s)', $this->user_posts_count, 'posts' ), number_format_i18n( $this->user_posts_count ) ); $mine = array( 'url' => esc_url( add_query_arg( $mine_args, 'edit.php' ) ), 'label' => $mine_inner_html, 'current' => isset( $_GET['author'] ) && ( $current_user_id === (int) $_GET['author'] ), ); $all_args['all_posts'] = 1; $class = ''; } $all_inner_html = sprintf( /* translators: %s: Number of posts. */ _nx( 'All (%s)', 'All (%s)', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ); $status_links['all'] = array( 'url' => esc_url( add_query_arg( $all_args, 'edit.php' ) ), 'label' => $all_inner_html, 'current' => empty( $class ) && ( $this->is_base_request() || isset( $_REQUEST['all_posts'] ) ), ); if ( $mine ) { $status_links['mine'] = $mine; } foreach ( get_post_stati( array( 'show_in_admin_status_list' => true ), 'objects' ) as $status ) { $class = ''; $status_name = $status->name; if ( ! in_array( $status_name, $avail_post_stati, true ) || empty( $num_posts->$status_name ) ) { continue; } if ( isset( $_REQUEST['post_status'] ) && $status_name === $_REQUEST['post_status'] ) { $class = 'current'; } $status_args = array( 'post_status' => $status_name, 'post_type' => $post_type, ); $status_label = sprintf( translate_nooped_plural( $status->label_count, $num_posts->$status_name ), number_format_i18n( $num_posts->$status_name ) ); $status_links[ $status_name ] = array( 'url' => esc_url( add_query_arg( $status_args, 'edit.php' ) ), 'label' => $status_label, 'current' => isset( $_REQUEST['post_status'] ) && $status_name === $_REQUEST['post_status'], ); } if ( ! empty( $this->sticky_posts_count ) ) { $class = ! empty( $_REQUEST['show_sticky'] ) ? 'current' : ''; $sticky_args = array( 'post_type' => $post_type, 'show_sticky' => 1, ); $sticky_inner_html = sprintf( /* translators: %s: Number of posts. */ _nx( 'Sticky (%s)', 'Sticky (%s)', $this->sticky_posts_count, 'posts' ), number_format_i18n( $this->sticky_posts_count ) ); $sticky_link = array( 'sticky' => array( 'url' => esc_url( add_query_arg( $sticky_args, 'edit.php' ) ), 'label' => $sticky_inner_html, 'current' => ! empty( $_REQUEST['show_sticky'] ), ), ); // Sticky comes after Publish, or if not listed, after All. $split = 1 + array_search( ( isset( $status_links['publish'] ) ? 'publish' : 'all' ), array_keys( $status_links ), true ); $status_links = array_merge( array_slice( $status_links, 0, $split ), $sticky_link, array_slice( $status_links, $split ) ); } return $this->get_views_links( $status_links ); } /** * @return array */ protected function get_bulk_actions() { $actions = array(); $post_type_obj = get_post_type_object( $this->screen->post_type ); if ( current_user_can( $post_type_obj->cap->edit_posts ) ) { if ( $this->is_trash ) { $actions['untrash'] = __( 'Restore' ); } else { $actions['edit'] = _x( 'Bulk edit', 'verb' ); } } if ( current_user_can( $post_type_obj->cap->delete_posts ) ) { if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) { $actions['delete'] = __( 'Delete permanently' ); } else { $actions['trash'] = __( 'Move to Trash' ); } } return $actions; } /** * Displays a categories drop-down for filtering on the Posts list table. * * @since 4.6.0 * * @global int $cat Currently selected category. * * @param string $post_type Post type slug. */ protected function categories_dropdown( $post_type ) { global $cat; /** * Filters whether to remove the 'Categories' drop-down from the post list table. * * @since 4.6.0 * * @param bool $disable Whether to disable the categories drop-down. Default false. * @param string $post_type Post type slug. */ if ( false !== apply_filters( 'disable_categories_dropdown', false, $post_type ) ) { return; } if ( is_object_in_taxonomy( $post_type, 'category' ) ) { $dropdown_options = array( 'show_option_all' => get_taxonomy( 'category' )->labels->all_items, 'hide_empty' => 0, 'hierarchical' => 1, 'show_count' => 0, 'orderby' => 'name', 'selected' => $cat, ); echo ''; wp_dropdown_categories( $dropdown_options ); } } /** * Displays a formats drop-down for filtering items. * * @since 5.2.0 * * @param string $post_type Post type slug. */ protected function formats_dropdown( $post_type ) { /** * Filters whether to remove the 'Formats' drop-down from the post list table. * * @since 5.2.0 * @since 5.5.0 The `$post_type` parameter was added. * * @param bool $disable Whether to disable the drop-down. Default false. * @param string $post_type Post type slug. */ if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) { return; } // Return if the post type doesn't have post formats or if we're in the Trash. if ( ! is_object_in_taxonomy( $post_type, 'post_format' ) || $this->is_trash ) { return; } // Make sure the dropdown shows only formats with a post count greater than 0. $used_post_formats = get_terms( array( 'taxonomy' => 'post_format', 'hide_empty' => true, ) ); // Return if there are no posts using formats. if ( ! $used_post_formats ) { return; } $displayed_post_format = $_GET['post_format'] ?? ''; ?>
      months_dropdown( $this->screen->post_type ); $this->categories_dropdown( $this->screen->post_type ); $this->formats_dropdown( $this->screen->post_type ); /** * Fires before the Filter button on the Posts and Pages list tables. * * The Filter button allows sorting by date and/or category on the * Posts list table, and sorting by date on the Pages list table. * * @since 2.1.0 * @since 4.4.0 The `$post_type` parameter was added. * @since 4.6.0 The `$which` parameter was added. * * @param string $post_type The post type slug. * @param string $which The location of the extra table nav markup: * 'top' or 'bottom' for WP_Posts_List_Table, * 'bar' for WP_Media_List_Table. */ do_action( 'restrict_manage_posts', $this->screen->post_type, $which ); $output = ob_get_clean(); if ( ! empty( $output ) ) { echo $output; submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); } } if ( $this->is_trash && $this->has_items() && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) ) { submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); } ?>
      screen->post_type ) ? 'pages' : 'posts', ); } /** * @return string[] Array of column titles keyed by their column name. */ public function get_columns() { $post_type = $this->screen->post_type; $posts_columns = array(); $posts_columns['cb'] = ''; /* translators: Posts screen column name. */ $posts_columns['title'] = _x( 'Title', 'column name' ); if ( post_type_supports( $post_type, 'author' ) ) { $posts_columns['author'] = __( 'Author' ); } $taxonomies = get_object_taxonomies( $post_type, 'objects' ); $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); /** * Filters the taxonomy columns in the Posts list table. * * The dynamic portion of the hook name, `$post_type`, refers to the post * type slug. * * Possible hook names include: * * - `manage_taxonomies_for_post_columns` * - `manage_taxonomies_for_page_columns` * * @since 3.5.0 * * @param string[] $taxonomies Array of taxonomy names to show columns for. * @param string $post_type The post type. */ $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type ); $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); foreach ( $taxonomies as $taxonomy ) { if ( 'category' === $taxonomy ) { $column_key = 'categories'; } elseif ( 'post_tag' === $taxonomy ) { $column_key = 'tags'; } else { $column_key = 'taxonomy-' . $taxonomy; } $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; } $post_status = ! empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all'; if ( post_type_supports( $post_type, 'comments' ) && ! in_array( $post_status, array( 'pending', 'draft', 'future' ), true ) ) { $posts_columns['comments'] = sprintf( '%2$s', esc_attr__( 'Comments' ), /* translators: Hidden accessibility text. */ __( 'Comments' ) ); } $posts_columns['date'] = __( 'Date' ); if ( 'page' === $post_type ) { /** * Filters the columns displayed in the Pages list table. * * @since 2.5.0 * * @param string[] $posts_columns An associative array of column headings. */ $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns ); } else { /** * Filters the columns displayed in the Posts list table. * * @since 1.5.0 * * @param string[] $posts_columns An associative array of column headings. * @param string $post_type The post type slug. */ $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type ); } /** * Filters the columns displayed in the Posts list table for a specific post type. * * The dynamic portion of the hook name, `$post_type`, refers to the post type slug. * * Possible hook names include: * * - `manage_post_posts_columns` * - `manage_page_posts_columns` * * @since 3.0.0 * * @param string[] $posts_columns An associative array of column headings. */ return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns ); } /** * @return array */ protected function get_sortable_columns() { $post_type = $this->screen->post_type; if ( 'page' === $post_type ) { if ( isset( $_GET['orderby'] ) ) { $title_orderby_text = __( 'Table ordered by Title.' ); } else { $title_orderby_text = __( 'Table ordered by Hierarchical Menu Order and Title.' ); } $sortables = array( 'title' => array( 'title', false, __( 'Title' ), $title_orderby_text, 'asc' ), 'parent' => array( 'parent', false ), 'comments' => array( 'comment_count', false, __( 'Comments' ), __( 'Table ordered by Comments.' ) ), 'date' => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ) ), ); } else { $sortables = array( 'title' => array( 'title', false, __( 'Title' ), __( 'Table ordered by Title.' ) ), 'parent' => array( 'parent', false ), 'comments' => array( 'comment_count', false, __( 'Comments' ), __( 'Table ordered by Comments.' ) ), 'date' => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ), 'desc' ), ); } // Custom Post Types: there's a filter for that, see get_column_info(). return $sortables; } /** * Generates the list table rows. * * @since 3.1.0 * * @global WP_Query $wp_query WordPress Query object. * @global int $per_page * * @param array $posts * @param int $level */ public function display_rows( $posts = array(), $level = 0 ) { global $wp_query, $per_page; if ( empty( $posts ) ) { $posts = $wp_query->posts; } add_filter( 'the_title', 'esc_html' ); if ( $this->hierarchical_display ) { $this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page ); } else { $this->_display_rows( $posts, $level ); } } /** * @param array $posts * @param int $level */ private function _display_rows( $posts, $level = 0 ) { $post_type = $this->screen->post_type; // Create array of post IDs. $post_ids = array(); foreach ( $posts as $a_post ) { $post_ids[] = $a_post->ID; } if ( post_type_supports( $post_type, 'comments' ) ) { $this->comment_pending_count = get_pending_comments_num( $post_ids ); } update_post_author_caches( $posts ); foreach ( $posts as $post ) { $this->single_row( $post, $level ); } } /** * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Post $post Global post object. * @param array $pages * @param int $pagenum * @param int $per_page */ private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) { global $wpdb; $level = 0; if ( ! $pages ) { $pages = get_pages( array( 'sort_column' => 'menu_order' ) ); if ( ! $pages ) { return; } } /* * Arrange pages into two parts: top level pages and children_pages. * children_pages is two dimensional array. Example: * children_pages[10][] contains all sub-pages whose parent is 10. * It only takes O( N ) to arrange this and it takes O( 1 ) for subsequent lookup operations * If searching, ignore hierarchy and treat everything as top level */ if ( empty( $_REQUEST['s'] ) ) { $top_level_pages = array(); $children_pages = array(); foreach ( $pages as $page ) { // Catch and repair bad pages. if ( $page->post_parent === $page->ID ) { $page->post_parent = 0; $wpdb->update( $wpdb->posts, array( 'post_parent' => 0 ), array( 'ID' => $page->ID ) ); clean_post_cache( $page ); } if ( $page->post_parent > 0 ) { $children_pages[ $page->post_parent ][] = $page; } else { $top_level_pages[] = $page; } } $pages = &$top_level_pages; } $count = 0; $start = ( $pagenum - 1 ) * $per_page; $end = $start + $per_page; $to_display = array(); foreach ( $pages as $page ) { if ( $count >= $end ) { break; } if ( $count >= $start ) { $to_display[ $page->ID ] = $level; } ++$count; if ( isset( $children_pages ) ) { $this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display ); } } // If it is the last pagenum and there are orphaned pages, display them with paging as well. if ( isset( $children_pages ) && $count < $end ) { foreach ( $children_pages as $orphans ) { foreach ( $orphans as $op ) { if ( $count >= $end ) { break; } if ( $count >= $start ) { $to_display[ $op->ID ] = 0; } ++$count; } } } $ids = array_keys( $to_display ); _prime_post_caches( $ids ); $_posts = array_map( 'get_post', $ids ); update_post_author_caches( $_posts ); if ( ! isset( $GLOBALS['post'] ) ) { $GLOBALS['post'] = reset( $ids ); } foreach ( $to_display as $page_id => $level ) { echo "\t"; $this->single_row( $page_id, $level ); } } /** * Displays the nested hierarchy of sub-pages together with paging * support, based on a top level page ID. * * @since 3.1.0 (Standalone function exists since 2.6.0) * @since 4.2.0 Added the `$to_display` parameter. * * @param array $children_pages * @param int $count * @param int $parent_page * @param int $level * @param int $pagenum * @param int $per_page * @param array $to_display List of pages to be displayed. Passed by reference. */ private function _page_rows( &$children_pages, &$count, $parent_page, $level, $pagenum, $per_page, &$to_display ) { if ( ! isset( $children_pages[ $parent_page ] ) ) { return; } $start = ( $pagenum - 1 ) * $per_page; $end = $start + $per_page; foreach ( $children_pages[ $parent_page ] as $page ) { if ( $count >= $end ) { break; } // If the page starts in a subtree, print the parents. if ( $count === $start && $page->post_parent > 0 ) { $my_parents = array(); $my_parent = $page->post_parent; while ( $my_parent ) { // Get the ID from the list or the attribute if my_parent is an object. $parent_id = $my_parent; if ( is_object( $my_parent ) ) { $parent_id = $my_parent->ID; } $my_parent = get_post( $parent_id ); $my_parents[] = $my_parent; if ( ! $my_parent->post_parent ) { break; } $my_parent = $my_parent->post_parent; } $num_parents = count( $my_parents ); while ( $my_parent = array_pop( $my_parents ) ) { $to_display[ $my_parent->ID ] = $level - $num_parents; --$num_parents; } } if ( $count >= $start ) { $to_display[ $page->ID ] = $level; } ++$count; $this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display ); } unset( $children_pages[ $parent_page ] ); // Required in order to keep track of orphans. } /** * Handles the checkbox column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item The current WP_Post object. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $post = $item; $show = current_user_can( 'edit_post', $post->ID ); /** * Filters whether to show the bulk edit checkbox for a post in its list table. * * By default the checkbox is only shown if the current user can edit the post. * * @since 5.7.0 * * @param bool $show Whether to show the checkbox. * @param WP_Post $post The current WP_Post object. */ if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : ?>
      '; echo $this->column_title( $post ); echo $this->handle_row_actions( $post, 'title', $primary ); echo ''; } /** * Handles the title column output. * * @since 4.3.0 * * @global string $mode List table view mode. * * @param WP_Post $post The current WP_Post object. */ public function column_title( $post ) { global $mode; if ( $this->hierarchical_display ) { if ( 0 === $this->current_level && (int) $post->post_parent > 0 ) { // Sent level 0 by accident, by default, or because we don't know the actual level. $find_main_page = (int) $post->post_parent; while ( $find_main_page > 0 ) { $parent = get_post( $find_main_page ); if ( is_null( $parent ) ) { break; } ++$this->current_level; $find_main_page = (int) $parent->post_parent; if ( ! isset( $parent_name ) ) { /** This filter is documented in wp-includes/post-template.php */ $parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID ); } } } } $can_edit_post = current_user_can( 'edit_post', $post->ID ); if ( $can_edit_post && 'trash' !== $post->post_status ) { $lock_holder = wp_check_post_lock( $post->ID ); if ( $lock_holder ) { $lock_holder = get_userdata( $lock_holder ); $locked_avatar = get_avatar( $lock_holder->ID, 18 ); /* translators: %s: User's display name. */ $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) ); } else { $locked_avatar = ''; $locked_text = ''; } echo '
      ' . $locked_avatar . ' ' . $locked_text . "
      \n"; } $pad = str_repeat( '— ', $this->current_level ); echo ''; $title = _draft_or_post_title(); if ( $can_edit_post && 'trash' !== $post->post_status ) { printf( '%s%s', get_edit_post_link( $post->ID ), $pad, $title ); } else { printf( '%s%s', $pad, $title ); } _post_states( $post ); if ( isset( $parent_name ) ) { $post_type_object = get_post_type_object( $post->post_type ); echo ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name ); } echo "\n"; if ( 'excerpt' === $mode && ! is_post_type_hierarchical( $this->screen->post_type ) && current_user_can( 'read_post', $post->ID ) ) { if ( post_password_required( $post ) ) { echo '' . esc_html( get_the_excerpt() ) . ''; } else { echo esc_html( get_the_excerpt() ); } } /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); if ( $quick_edit_enabled ) { get_inline_data( $post ); } } /** * Handles the post date column output. * * @since 4.3.0 * * @global string $mode List table view mode. * * @param WP_Post $post The current WP_Post object. */ public function column_date( $post ) { global $mode; if ( '0000-00-00 00:00:00' === $post->post_date ) { $t_time = __( 'Unpublished' ); $time_diff = 0; } else { $t_time = sprintf( /* translators: 1: Post date, 2: Post time. */ __( '%1$s at %2$s' ), /* translators: Post date format. See https://www.php.net/manual/datetime.format.php */ get_the_time( __( 'Y/m/d' ), $post ), /* translators: Post time format. See https://www.php.net/manual/datetime.format.php */ get_the_time( __( 'g:i a' ), $post ) ); $time = get_post_timestamp( $post ); $time_diff = time() - $time; } if ( 'publish' === $post->post_status ) { $status = __( 'Published' ); } elseif ( 'future' === $post->post_status ) { if ( $time_diff > 0 ) { $status = '' . __( 'Missed schedule' ) . ''; } else { $status = __( 'Scheduled' ); } } else { $status = __( 'Last Modified' ); } /** * Filters the status text of the post. * * @since 4.8.0 * * @param string $status The status text. * @param WP_Post $post Post object. * @param string $column_name The column name. * @param string $mode The list display mode ('excerpt' or 'list'). */ $status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode ); if ( $status ) { echo $status . '
      '; } /** * Filters the published, scheduled, or unpublished time of the post. * * @since 2.5.1 * @since 5.5.0 Removed the difference between 'excerpt' and 'list' modes. * The published time and date are both displayed now, * which is equivalent to the previous 'excerpt' mode. * * @param string $t_time The published time. * @param WP_Post $post Post object. * @param string $column_name The column name. * @param string $mode The list display mode ('excerpt' or 'list'). */ echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode ); } /** * Handles the comments column output. * * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. */ public function column_comments( $post ) { ?>
      comment_pending_count[ $post->ID ] ?? 0; $this->comments_bubble( $post->ID, $pending_comments ); ?>
      $post->post_type, 'author' => get_the_author_meta( 'ID' ), ); echo $this->get_edit_link( $args, esc_html( $author ) ); } else { echo '' . __( '(no author)' ) . ''; } } /** * Handles the default column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item The current WP_Post object. * @param string $column_name The current column name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $post = $item; if ( 'categories' === $column_name ) { $taxonomy = 'category'; } elseif ( 'tags' === $column_name ) { $taxonomy = 'post_tag'; } elseif ( str_starts_with( $column_name, 'taxonomy-' ) ) { $taxonomy = substr( $column_name, 9 ); } else { $taxonomy = false; } if ( $taxonomy ) { $taxonomy_object = get_taxonomy( $taxonomy ); $terms = get_the_terms( $post->ID, $taxonomy ); if ( is_array( $terms ) ) { $term_links = array(); foreach ( $terms as $t ) { $posts_in_term_qv = array(); if ( 'post' !== $post->post_type ) { $posts_in_term_qv['post_type'] = $post->post_type; } if ( $taxonomy_object->query_var ) { $posts_in_term_qv[ $taxonomy_object->query_var ] = $t->slug; } else { $posts_in_term_qv['taxonomy'] = $taxonomy; $posts_in_term_qv['term'] = $t->slug; } $label = esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) ); $term_links[] = $this->get_edit_link( $posts_in_term_qv, $label ); } /** * Filters the links in `$taxonomy` column of edit.php. * * @since 5.2.0 * * @param string[] $term_links Array of term editing links. * @param string $taxonomy Taxonomy name. * @param WP_Term[] $terms Array of term objects appearing in the post row. */ $term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms ); echo implode( wp_get_list_item_separator(), $term_links ); } else { echo '' . $taxonomy_object->labels->no_terms . ''; } return; } if ( is_post_type_hierarchical( $post->post_type ) ) { /** * Fires in each custom column on the Posts list table. * * This hook only fires if the current post type is hierarchical, * such as pages. * * @since 2.5.0 * * @param string $column_name The name of the column to display. * @param int $post_id The current post ID. */ do_action( 'manage_pages_custom_column', $column_name, $post->ID ); } else { /** * Fires in each custom column in the Posts list table. * * This hook only fires if the current post type is non-hierarchical, * such as posts. * * @since 1.5.0 * * @param string $column_name The name of the column to display. * @param int $post_id The current post ID. */ do_action( 'manage_posts_custom_column', $column_name, $post->ID ); } /** * Fires for each custom column of a specific post type in the Posts list table. * * The dynamic portion of the hook name, `$post->post_type`, refers to the post type. * * Possible hook names include: * * - `manage_post_posts_custom_column` * - `manage_page_posts_custom_column` * * @since 3.1.0 * * @param string $column_name The name of the column to display. * @param int $post_id The current post ID. */ do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID ); } /** * @global WP_Post $post Global post object. * * @param int|WP_Post $post * @param int $level */ public function single_row( $post, $level = 0 ) { $global_post = get_post(); $post = get_post( $post ); $this->current_level = $level; $GLOBALS['post'] = $post; setup_postdata( $post ); $classes = 'iedit author-' . ( get_current_user_id() === (int) $post->post_author ? 'self' : 'other' ); $lock_holder = wp_check_post_lock( $post->ID ); if ( $lock_holder ) { $classes .= ' wp-locked'; } if ( $post->post_parent ) { $count = count( get_post_ancestors( $post->ID ) ); $classes .= ' level-' . $count; } else { $classes .= ' level-0'; } ?> single_row_columns( $post ); ?> post_type ); $can_edit_post = current_user_can( 'edit_post', $post->ID ); $actions = array(); $title = _draft_or_post_title(); if ( $can_edit_post && 'trash' !== $post->post_status ) { $actions['edit'] = sprintf( '%s', get_edit_post_link( $post->ID ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), __( 'Edit' ) ); /** * Filters whether Quick Edit should be enabled for the given post type. * * @since 6.4.0 * * @param bool $enable Whether to enable the Quick Edit functionality. Default true. * @param string $post_type Post type name. */ $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_post_type', true, $post->post_type ); if ( $quick_edit_enabled && 'wp_block' !== $post->post_type ) { $actions['inline hide-if-no-js'] = sprintf( '', /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), __( 'Quick Edit' ) ); } } if ( current_user_can( 'delete_post', $post->ID ) ) { if ( 'trash' === $post->post_status ) { $actions['untrash'] = sprintf( '%s', wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $title ) ), __( 'Restore' ) ); } elseif ( EMPTY_TRASH_DAYS ) { $actions['trash'] = sprintf( '%s', get_delete_post_link( $post->ID ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $title ) ), _x( 'Trash', 'verb' ) ); } if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) { $actions['delete'] = sprintf( '%s', get_delete_post_link( $post->ID, '', true ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $title ) ), __( 'Delete Permanently' ) ); } } if ( is_post_type_viewable( $post_type_object ) ) { if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ), true ) ) { if ( $can_edit_post ) { $preview_link = get_preview_post_link( $post ); $actions['view'] = sprintf( '%s', esc_url( $preview_link ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ), _x( 'Preview', 'verb' ) ); } } elseif ( 'trash' !== $post->post_status ) { $actions['view'] = sprintf( '%s', get_permalink( $post->ID ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'View “%s”' ), $title ) ), __( 'View' ) ); } } if ( 'wp_block' === $post->post_type ) { $actions['export'] = sprintf( '', $post->ID, /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Export “%s” as JSON' ), $title ) ), __( 'Export as JSON' ) ); } if ( is_post_type_hierarchical( $post->post_type ) ) { /** * Filters the array of row action links on the Pages list table. * * The filter is evaluated only for hierarchical post types. * * @since 2.8.0 * * @param string[] $actions An array of row action links. Defaults are * 'Edit', 'Quick Edit', 'Restore', 'Trash', * 'Delete Permanently', 'Preview', and 'View'. * @param WP_Post $post The post object. */ $actions = apply_filters( 'page_row_actions', $actions, $post ); } else { /** * Filters the array of row action links on the Posts list table. * * The filter is evaluated only for non-hierarchical post types. * * @since 2.8.0 * * @param string[] $actions An array of row action links. Defaults are * 'Edit', 'Quick Edit', 'Restore', 'Trash', * 'Delete Permanently', 'Preview', and 'View'. * @param WP_Post $post The post object. */ $actions = apply_filters( 'post_row_actions', $actions, $post ); } return $this->row_actions( $actions ); } /** * Outputs the hidden row displayed when inline editing * * @since 3.1.0 * * @global string $mode List table view mode. */ public function inline_edit() { global $mode; $screen = $this->screen; $post = get_default_post_to_edit( $screen->post_type ); $post_type_object = get_post_type_object( $screen->post_type ); $taxonomy_names = get_object_taxonomies( $screen->post_type ); $hierarchical_taxonomies = array(); $flat_taxonomies = array(); foreach ( $taxonomy_names as $taxonomy_name ) { $taxonomy = get_taxonomy( $taxonomy_name ); $show_in_quick_edit = $taxonomy->show_in_quick_edit; /** * Filters whether the current taxonomy should be shown in the Quick Edit panel. * * @since 4.2.0 * * @param bool $show_in_quick_edit Whether to show the current taxonomy in Quick Edit. * @param string $taxonomy_name Taxonomy name. * @param string $post_type Post type of current Quick Edit post. */ if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) { continue; } if ( $taxonomy->hierarchical ) { $hierarchical_taxonomies[] = $taxonomy; } else { $flat_taxonomies[] = $taxonomy; } } $m = ( isset( $mode ) && 'excerpt' === $mode ) ? 'excerpt' : 'list'; $can_publish = current_user_can( $post_type_object->cap->publish_posts ); $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true, ); ?>
      post_type}"; $quick_edit_classes = "quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}"; $bulk = 0; while ( $bulk < 2 ) : $classes = $inline_edit_classes . ' '; $classes .= $bulk ? $bulk_edit_classes : $quick_edit_classes; ?>
      $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; ob_start(); $item_id = esc_attr( $menu_item->ID ); $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); $original_title = false; if ( 'taxonomy' === $menu_item->type ) { $original_object = get_term( (int) $menu_item->object_id, $menu_item->object ); if ( $original_object && ! is_wp_error( $original_object ) ) { $original_title = $original_object->name; } } elseif ( 'post_type' === $menu_item->type ) { $original_object = get_post( $menu_item->object_id ); if ( $original_object ) { $original_title = get_the_title( $original_object->ID ); } } elseif ( 'post_type_archive' === $menu_item->type ) { $original_object = get_post_type_object( $menu_item->object ); if ( $original_object ) { $original_title = $original_object->labels->archives; } } $classes = array( 'menu-item menu-item-depth-' . $depth, 'menu-item-' . esc_attr( $menu_item->object ), 'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id === $_GET['edit-menu-item'] ) ? 'active' : 'inactive' ), ); $title = $menu_item->title; if ( ! empty( $menu_item->_invalid ) ) { $classes[] = 'menu-item-invalid'; /* translators: %s: Title of an invalid menu item. */ $title = sprintf( __( '%s (Invalid)' ), $menu_item->title ); } elseif ( isset( $menu_item->post_status ) && 'draft' === $menu_item->post_status ) { $classes[] = 'pending'; /* translators: %s: Title of a menu item in draft status. */ $title = sprintf( __( '%s (Pending)' ), $menu_item->title ); } $title = ( ! isset( $menu_item->label ) || '' === $menu_item->label ) ? $title : $menu_item->label; $submenu_text = ''; if ( 0 === $depth ) { $submenu_text = 'style="display: none;"'; } ?>
      '; exit; } } ?>

      | |
        $reals ) { foreach ( $reals as $real ) { if ( isset( $num_posts[ $_type ] ) ) { $num_posts[ $_type ] += $_num_posts[ $real ]; } else { $num_posts[ $_type ] = $_num_posts[ $real ]; } } } // If available type specified by media button clicked, filter by that type. if ( empty( $_GET['post_mime_type'] ) && ! empty( $num_posts[ $type ] ) ) { $_GET['post_mime_type'] = $type; list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query(); } if ( empty( $_GET['post_mime_type'] ) || 'all' === $_GET['post_mime_type'] ) { $class = ' class="current"'; } else { $class = ''; } $type_links[] = '
      • ' . __( 'All Types' ) . ''; foreach ( $post_mime_types as $mime_type => $label ) { $class = ''; if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) { continue; } if ( isset( $_GET['post_mime_type'] ) && wp_match_mime_types( $mime_type, $_GET['post_mime_type'] ) ) { $class = ' class="current"'; } $type_links[] = '
      • ' . sprintf( translate_nooped_plural( $label[2], $num_posts[ $mime_type ] ), '' . number_format_i18n( $num_posts[ $mime_type ] ) . '' ) . ''; } /** * Filters the media upload mime type list items. * * Returned values should begin with an `
      • ` tag. * * @since 3.1.0 * * @param string[] $type_links An array of list items containing mime type link HTML. */ echo implode( ' |
      • ', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . ''; unset( $type_links ); ?>
      add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __( '«' ), 'next_text' => __( '»' ), 'total' => (int) ceil( $wp_query->found_posts / 10 ), 'current' => $q['paged'], ) ); if ( $page_links ) { echo "
      $page_links
      "; } ?>
      get_results( "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_date DESC" ); $month_count = count( $months ); $selected_month = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; if ( $month_count && ( 1 !== $month_count || 0 !== (int) $months[0]->month ) ) { ?>

      '; } else { $caption = ''; } $default_align = get_option( 'image_default_align' ); if ( empty( $default_align ) ) { $default_align = 'none'; } if ( 'image' === $default_view ) { $view = 'image-only'; $table_class = ''; } else { $view = 'not-image'; $table_class = $view; } return '

         

      ' . wp_required_field_message() . '

      ' . $caption . '

      ' . __( 'Link text, e.g. “Ransom Demands (PDF)”' ) . '

      ' . __( 'Alt text for the image, e.g. “The Mona Lisa”' ) . '


      ' . __( 'Enter a link URL or click above for presets.' ) . '

      ' . get_submit_button( __( 'Insert into Post' ), '', 'insertonlybutton', false ) . '
      '; } /** * Displays the multi-file uploader message. * * @since 2.6.0 */ function media_upload_flash_bypass() { ?>

      browser uploader instead.' ), 'type="button" class="button-link"' ); ?>

      Switch to the multi-file uploader.' ), 'type="button" class="button-link"' ); ?>

      '; $end = ''; } ?>

      ' . sprintf( /* translators: %s: Allowed space allocation. */ __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), size_format( get_space_allowed() * MB_IN_BYTES ) ) . '

      '; } /** * Displays the image and editor in the post editor * * @since 3.5.0 * * @param WP_Post $post A post object. */ function edit_form_image_editor( $post ) { $open = isset( $_GET['image-editor'] ); if ( $open ) { require_once ABSPATH . 'wp-admin/includes/image-edit.php'; } $thumb_url = false; $attachment_id = (int) $post->ID; if ( $attachment_id ) { $thumb_url = wp_get_attachment_image_src( $attachment_id, array( 900, 450 ), true ); } $alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true ); $att_url = wp_get_attachment_url( $post->ID ); ?>
      ID ) ) : $image_edit_button = ''; if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) { $nonce = wp_create_nonce( "image_editor-$post->ID" ); $image_edit_button = " "; } $open_style = ''; $not_open_style = ''; if ( $open ) { $open_style = ' style="display:none"'; } else { $not_open_style = ' style="display:none"'; } ?>
      class="wp_attachment_image wp-clearfix" id="media-head-">

      class="image-editor" id="image-editor-"> $att_url ) ); elseif ( $attachment_id && wp_attachment_is( 'video', $post ) ) : wp_maybe_generate_attachment_metadata( $post ); $meta = wp_get_attachment_metadata( $attachment_id ); $w = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0; $h = ! empty( $meta['height'] ) ? $meta['height'] : 0; if ( $h && $w < $meta['width'] ) { $h = round( ( $meta['height'] * $w ) / $meta['width'] ); } $attr = array( 'src' => $att_url ); if ( ! empty( $w ) && ! empty( $h ) ) { $attr['width'] = $w; $attr['height'] = $h; } $thumb_id = get_post_thumbnail_id( $attachment_id ); if ( ! empty( $thumb_id ) ) { $attr['poster'] = wp_get_attachment_url( $thumb_id ); } echo wp_video_shortcode( $attr ); elseif ( isset( $thumb_url[0] ) ) : ?>

      post_mime_type, 'image' ) ) : ?>


      Learn how to describe the purpose of the image%3$s. Leave empty if the image is purely decorative.' ), /* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */ esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ), 'target="_blank"', sprintf( ' %s', /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ) ); ?>


      'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); $editor_args = array( 'textarea_name' => 'content', 'textarea_rows' => 5, 'media_buttons' => false, /** * Filters the TinyMCE argument for the media description field on the attachment details screen. * * @since 6.6.0 * * @param bool $tinymce Whether to activate TinyMCE in media description field. Default false. */ 'tinymce' => apply_filters( 'activate_tinymce_for_media_description', false ), 'quicktags' => $quicktags_settings, ); ?> post_content ), 'attachment_content', $editor_args ); ?>
      ID ); echo $extras['item']; echo '' . "\n"; } /** * Displays non-editable attachment metadata in the publish meta box. * * @since 3.5.0 */ function attachment_submitbox_metadata() { $post = get_post(); $attachment_id = $post->ID; $file = get_attached_file( $attachment_id ); $filename = esc_html( wp_basename( $file ) ); $media_dims = ''; $meta = wp_get_attachment_metadata( $attachment_id ); if ( isset( $meta['width'], $meta['height'] ) ) { /* translators: 1: A number of pixels wide, 2: A number of pixels tall. */ $media_dims .= "" . sprintf( __( '%1$s by %2$s pixels' ), $meta['width'], $meta['height'] ) . ''; } /** This filter is documented in wp-admin/includes/media.php */ $media_dims = apply_filters( 'media_meta', $media_dims, $post ); $att_url = wp_get_attachment_url( $attachment_id ); $author = new WP_User( $post->post_author ); $uploaded_by_name = __( '(no author)' ); $uploaded_by_link = ''; if ( $author->exists() ) { $uploaded_by_name = $author->display_name ? $author->display_name : $author->nickname; $uploaded_by_link = get_edit_user_link( $author->ID ); } ?>
      post_parent ) { $post_parent = get_post( $post->post_parent ); if ( $post_parent ) { $uploaded_to_title = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' ); $uploaded_to_link = get_edit_post_link( $post->post_parent, 'raw' ); ?>
      ID ), $matches ) ) { echo esc_html( strtoupper( $matches[1] ) ); list( $mime_type ) = explode( '/', $post->post_mime_type ); if ( 'image' !== $mime_type && ! empty( $meta['mime_type'] ) ) { if ( "$mime_type/" . strtolower( $matches[1] ) !== $meta['mime_type'] ) { echo ' (' . $meta['mime_type'] . ')'; } } } else { echo strtoupper( str_replace( 'image/', '', $post->post_mime_type ) ); } ?>
      post_mime_type ) ) { $fields = array( 'length_formatted' => __( 'Length:' ), 'bitrate' => __( 'Bitrate:' ), ); /** * Filters the audio and video metadata fields to be shown in the publish meta box. * * The key for each item in the array should correspond to an attachment * metadata key, and the value should be the desired label. * * @since 3.7.0 * @since 4.9.0 Added the `$post` parameter. * * @param array $fields An array of the attachment metadata keys and labels. * @param WP_Post $post WP_Post object for the current attachment. */ $fields = apply_filters( 'media_submitbox_misc_sections', $fields, $post ); foreach ( $fields as $key => $label ) { if ( empty( $meta[ $key ] ) ) { continue; } ?>
      __( 'Audio Format:' ), 'codec' => __( 'Audio Codec:' ), ); /** * Filters the audio attachment metadata fields to be shown in the publish meta box. * * The key for each item in the array should correspond to an attachment * metadata key, and the value should be the desired label. * * @since 3.7.0 * @since 4.9.0 Added the `$post` parameter. * * @param array $fields An array of the attachment metadata keys and labels. * @param WP_Post $post WP_Post object for the current attachment. */ $audio_fields = apply_filters( 'audio_submitbox_misc_sections', $fields, $post ); foreach ( $audio_fields as $key => $label ) { if ( empty( $meta['audio'][ $key ] ) ) { continue; } ?>
      $list ) { if ( 'length' !== $key && ! empty( $list ) ) { $metadata[ $key ] = is_array( $list ) ? wp_kses_post_deep( reset( $list ) ) : wp_kses_post( $list ); // Fix bug in byte stream analysis. if ( 'terms_of_use' === $key && str_starts_with( $metadata[ $key ], 'yright notice.' ) ) { $metadata[ $key ] = 'Cop' . $metadata[ $key ]; } } } break; } } if ( ! empty( $data['id3v2']['APIC'] ) ) { $image = reset( $data['id3v2']['APIC'] ); if ( ! empty( $image['data'] ) ) { $metadata['image'] = array( 'data' => $image['data'], 'mime' => $image['image_mime'], 'width' => $image['image_width'], 'height' => $image['image_height'], ); } } elseif ( ! empty( $data['comments']['picture'] ) ) { $image = reset( $data['comments']['picture'] ); if ( ! empty( $image['data'] ) ) { $metadata['image'] = array( 'data' => $image['data'], 'mime' => $image['image_mime'], ); } } } /** * Retrieves metadata from a video file's ID3 tags. * * @since 3.6.0 * * @param string $file Path to file. * @return array|false Returns array of metadata, if found. */ function wp_read_video_metadata( $file ) { if ( ! file_exists( $file ) ) { return false; } $metadata = array(); if ( ! defined( 'GETID3_TEMP_DIR' ) ) { define( 'GETID3_TEMP_DIR', get_temp_dir() ); } if ( ! class_exists( 'getID3', false ) ) { require ABSPATH . WPINC . '/ID3/getid3.php'; } $id3 = new getID3(); // Required to get the `created_timestamp` value. $id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName $data = $id3->analyze( $file ); if ( isset( $data['video']['lossless'] ) ) { $metadata['lossless'] = $data['video']['lossless']; } if ( ! empty( $data['video']['bitrate'] ) ) { $metadata['bitrate'] = (int) $data['video']['bitrate']; } if ( ! empty( $data['video']['bitrate_mode'] ) ) { $metadata['bitrate_mode'] = $data['video']['bitrate_mode']; } if ( ! empty( $data['filesize'] ) ) { $metadata['filesize'] = (int) $data['filesize']; } if ( ! empty( $data['mime_type'] ) ) { $metadata['mime_type'] = $data['mime_type']; } if ( ! empty( $data['playtime_seconds'] ) ) { $metadata['length'] = (int) round( $data['playtime_seconds'] ); } if ( ! empty( $data['playtime_string'] ) ) { $metadata['length_formatted'] = $data['playtime_string']; } if ( ! empty( $data['video']['resolution_x'] ) ) { $metadata['width'] = (int) $data['video']['resolution_x']; } if ( ! empty( $data['video']['resolution_y'] ) ) { $metadata['height'] = (int) $data['video']['resolution_y']; } if ( ! empty( $data['fileformat'] ) ) { $metadata['fileformat'] = $data['fileformat']; } if ( ! empty( $data['video']['dataformat'] ) ) { $metadata['dataformat'] = $data['video']['dataformat']; } if ( ! empty( $data['video']['encoder'] ) ) { $metadata['encoder'] = $data['video']['encoder']; } if ( ! empty( $data['video']['codec'] ) ) { $metadata['codec'] = $data['video']['codec']; } if ( ! empty( $data['audio'] ) ) { unset( $data['audio']['streams'] ); $metadata['audio'] = $data['audio']; } if ( empty( $metadata['created_timestamp'] ) ) { $created_timestamp = wp_get_media_creation_timestamp( $data ); if ( false !== $created_timestamp ) { $metadata['created_timestamp'] = $created_timestamp; } } wp_add_id3_tag_data( $metadata, $data ); $file_format = $metadata['fileformat'] ?? null; /** * Filters the array of metadata retrieved from a video. * * In core, usually this selection is what is stored. * More complete data can be parsed from the `$data` parameter. * * @since 4.9.0 * * @param array $metadata Filtered video metadata. * @param string $file Path to video file. * @param string|null $file_format File format of video, as analyzed by getID3. * Null if unknown. * @param array $data Raw metadata from getID3. */ return apply_filters( 'wp_read_video_metadata', $metadata, $file, $file_format, $data ); } /** * Retrieves metadata from an audio file's ID3 tags. * * @since 3.6.0 * * @param string $file Path to file. * @return array|false Returns array of metadata, if found. */ function wp_read_audio_metadata( $file ) { if ( ! file_exists( $file ) ) { return false; } $metadata = array(); if ( ! defined( 'GETID3_TEMP_DIR' ) ) { define( 'GETID3_TEMP_DIR', get_temp_dir() ); } if ( ! class_exists( 'getID3', false ) ) { require ABSPATH . WPINC . '/ID3/getid3.php'; } $id3 = new getID3(); // Required to get the `created_timestamp` value. $id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName $data = $id3->analyze( $file ); if ( ! empty( $data['audio'] ) ) { unset( $data['audio']['streams'] ); $metadata = $data['audio']; } if ( ! empty( $data['fileformat'] ) ) { $metadata['fileformat'] = $data['fileformat']; } if ( ! empty( $data['filesize'] ) ) { $metadata['filesize'] = (int) $data['filesize']; } if ( ! empty( $data['mime_type'] ) ) { $metadata['mime_type'] = $data['mime_type']; } if ( ! empty( $data['playtime_seconds'] ) ) { $metadata['length'] = (int) round( $data['playtime_seconds'] ); } if ( ! empty( $data['playtime_string'] ) ) { $metadata['length_formatted'] = $data['playtime_string']; } if ( empty( $metadata['created_timestamp'] ) ) { $created_timestamp = wp_get_media_creation_timestamp( $data ); if ( false !== $created_timestamp ) { $metadata['created_timestamp'] = $created_timestamp; } } wp_add_id3_tag_data( $metadata, $data ); $file_format = $metadata['fileformat'] ?? null; /** * Filters the array of metadata retrieved from an audio file. * * In core, usually this selection is what is stored. * More complete data can be parsed from the `$data` parameter. * * @since 6.1.0 * * @param array $metadata Filtered audio metadata. * @param string $file Path to audio file. * @param string|null $file_format File format of audio, as analyzed by getID3. * Null if unknown. * @param array $data Raw metadata from getID3. */ return apply_filters( 'wp_read_audio_metadata', $metadata, $file, $file_format, $data ); } /** * Parses creation date from media metadata. * * The getID3 library doesn't have a standard method for getting creation dates, * so the location of this data can vary based on the MIME type. * * @since 4.9.0 * * @link https://github.com/JamesHeinrich/getID3/blob/master/structure.txt * * @param array $metadata The metadata returned by getID3::analyze(). * @return int|false A Unix timestamp for the media's creation date if available * or a boolean false if the timestamp could not be determined. */ function wp_get_media_creation_timestamp( $metadata ) { $creation_date = false; if ( empty( $metadata['fileformat'] ) ) { return $creation_date; } switch ( $metadata['fileformat'] ) { case 'asf': if ( isset( $metadata['asf']['file_properties_object']['creation_date_unix'] ) ) { $creation_date = (int) $metadata['asf']['file_properties_object']['creation_date_unix']; } break; case 'matroska': case 'webm': if ( isset( $metadata['matroska']['comments']['creation_time'][0] ) ) { $creation_date = strtotime( $metadata['matroska']['comments']['creation_time'][0] ); } elseif ( isset( $metadata['matroska']['info'][0]['DateUTC_unix'] ) ) { $creation_date = (int) $metadata['matroska']['info'][0]['DateUTC_unix']; } break; case 'quicktime': case 'mp4': if ( isset( $metadata['quicktime']['moov']['subatoms'][0]['creation_time_unix'] ) ) { $creation_date = (int) $metadata['quicktime']['moov']['subatoms'][0]['creation_time_unix']; } break; } return $creation_date; } /** * Encapsulates the logic for Attach/Detach actions. * * @since 4.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $parent_id Attachment parent ID. * @param string $action Optional. Attach/detach action. Accepts 'attach' or 'detach'. * Default 'attach'. */ function wp_media_attach_action( $parent_id, $action = 'attach' ) { global $wpdb; if ( ! $parent_id ) { return; } if ( ! current_user_can( 'edit_post', $parent_id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); } $ids = array(); foreach ( (array) $_REQUEST['media'] as $attachment_id ) { $attachment_id = (int) $attachment_id; if ( ! current_user_can( 'edit_post', $attachment_id ) ) { continue; } $ids[] = $attachment_id; } if ( ! empty( $ids ) ) { $ids_string = implode( ',', $ids ); if ( 'attach' === $action ) { $result = $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->posts SET post_parent = %d WHERE post_type = 'attachment' AND ID IN ( $ids_string )", $parent_id ) ); } else { $result = $wpdb->query( "UPDATE $wpdb->posts SET post_parent = 0 WHERE post_type = 'attachment' AND ID IN ( $ids_string )" ); } } if ( isset( $result ) ) { foreach ( $ids as $attachment_id ) { /** * Fires when media is attached or detached from a post. * * @since 5.5.0 * * @param string $action Attach/detach action. Accepts 'attach' or 'detach'. * @param int $attachment_id The attachment ID. * @param int $parent_id Attachment parent ID. */ do_action( 'wp_media_attach_action', $action, $attachment_id, $parent_id ); clean_attachment_cache( $attachment_id ); } $location = 'upload.php'; $referer = wp_get_referer(); if ( $referer ) { if ( str_contains( $referer, 'upload.php' ) ) { $location = remove_query_arg( array( 'attached', 'detach' ), $referer ); } } $key = 'attach' === $action ? 'attached' : 'detach'; $location = add_query_arg( array( $key => $result ), $location ); wp_redirect( $location ); exit; } } includes/class-wp-screen.php000064400000111100152213653150012066 0ustar00post_type; /** This filter is documented in wp-admin/post.php */ $replace_editor = apply_filters( 'replace_editor', false, $post ); if ( ! $replace_editor ) { $is_block_editor = use_block_editor_for_post( $post ); } } } break; case 'edit-tags': case 'term': if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) { $post_type = 'post'; } break; case 'upload': $post_type = 'attachment'; break; } } switch ( $base ) { case 'post': if ( null === $post_type ) { $post_type = 'post'; } // When creating a new post, use the default block editor support value for the post type. if ( empty( $post_id ) ) { $is_block_editor = use_block_editor_for_post_type( $post_type ); } $id = $post_type; break; case 'edit': if ( null === $post_type ) { $post_type = 'post'; } $id .= '-' . $post_type; break; case 'edit-tags': case 'term': if ( null === $taxonomy ) { $taxonomy = 'post_tag'; } // The edit-tags ID does not contain the post type. Look for it in the request. if ( null === $post_type ) { $post_type = 'post'; if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) { $post_type = $_REQUEST['post_type']; } } $id = 'edit-' . $taxonomy; break; } if ( 'network' === $in_admin ) { $id .= '-network'; $base .= '-network'; } elseif ( 'user' === $in_admin ) { $id .= '-user'; $base .= '-user'; } if ( isset( self::$_registry[ $id ] ) ) { $screen = self::$_registry[ $id ]; if ( get_current_screen() === $screen ) { return $screen; } } else { $screen = new self(); $screen->id = $id; } $screen->base = $base; $screen->action = $action; $screen->post_type = (string) $post_type; $screen->taxonomy = (string) $taxonomy; $screen->is_user = ( 'user' === $in_admin ); $screen->is_network = ( 'network' === $in_admin ); $screen->in_admin = $in_admin; $screen->is_block_editor = $is_block_editor; self::$_registry[ $id ] = $screen; return $screen; } /** * Makes the screen object the current screen. * * @see set_current_screen() * @since 3.3.0 * * @global WP_Screen $current_screen WordPress current screen object. * @global string $typenow The post type of the current screen. * @global string $taxnow The taxonomy of the current screen. */ public function set_current_screen() { global $current_screen, $taxnow, $typenow; $current_screen = $this; $typenow = $this->post_type; $taxnow = $this->taxonomy; /** * Fires after the current screen has been set. * * @since 3.0.0 * * @param WP_Screen $current_screen Current WP_Screen object. */ do_action( 'current_screen', $current_screen ); } /** * Constructor * * @since 3.3.0 */ private function __construct() {} /** * Indicates whether the screen is in a particular admin. * * @since 3.5.0 * * @param string $admin The admin to check against (network | user | site). * If empty any of the three admins will result in true. * @return bool True if the screen is in the indicated admin, false otherwise. */ public function in_admin( $admin = null ) { if ( empty( $admin ) ) { return (bool) $this->in_admin; } return ( $admin === $this->in_admin ); } /** * Sets or returns whether the block editor is loading on the current screen. * * @since 5.0.0 * * @param bool $set Optional. Sets whether the block editor is loading on the current screen or not. * @return bool True if the block editor is being loaded, false otherwise. */ public function is_block_editor( $set = null ) { if ( null !== $set ) { $this->is_block_editor = (bool) $set; } return $this->is_block_editor; } /** * Sets the old string-based contextual help for the screen for backward compatibility. * * @since 3.3.0 * * @param WP_Screen $screen A screen object. * @param string $help Help text. */ public static function add_old_compat_help( $screen, $help ) { self::$_old_compat_help[ $screen->id ] = $help; } /** * Sets the parent information for the screen. * * This is called in admin-header.php after the menu parent for the screen has been determined. * * @since 3.3.0 * * @param string $parent_file The parent file of the screen. Typically the $parent_file global. */ public function set_parentage( $parent_file ) { $this->parent_file = $parent_file; list( $this->parent_base ) = explode( '?', $parent_file ); $this->parent_base = str_replace( '.php', '', $this->parent_base ); } /** * Adds an option for the screen. * * Call this in template files after admin.php is loaded and before admin-header.php is loaded * to add screen options. * * @since 3.3.0 * * @param string $option Option ID. * @param mixed $args Option-dependent arguments. */ public function add_option( $option, $args = array() ) { $this->_options[ $option ] = $args; } /** * Removes an option from the screen. * * @since 3.8.0 * * @param string $option Option ID. */ public function remove_option( $option ) { unset( $this->_options[ $option ] ); } /** * Removes all options from the screen. * * @since 3.8.0 */ public function remove_options() { $this->_options = array(); } /** * Gets the options registered for the screen. * * @since 3.8.0 * * @return array Options with arguments. */ public function get_options() { return $this->_options; } /** * Gets the arguments for an option for the screen. * * @since 3.3.0 * * @param string $option Option name. * @param string|false $key Optional. Specific array key for when the option is an array. * Default false. * @return ?string The option value if set, null otherwise. */ public function get_option( $option, $key = false ) { if ( ! isset( $this->_options[ $option ] ) ) { return null; } if ( $key ) { return $this->_options[ $option ][ $key ] ?? null; } return $this->_options[ $option ]; } /** * Gets the help tabs registered for the screen. * * @since 3.4.0 * @since 4.4.0 Help tabs are ordered by their priority. * * @return array Help tabs with arguments. */ public function get_help_tabs() { $help_tabs = $this->_help_tabs; $priorities = array(); foreach ( $help_tabs as $help_tab ) { if ( isset( $priorities[ $help_tab['priority'] ] ) ) { $priorities[ $help_tab['priority'] ][] = $help_tab; } else { $priorities[ $help_tab['priority'] ] = array( $help_tab ); } } ksort( $priorities ); $sorted = array(); foreach ( $priorities as $list ) { foreach ( $list as $tab ) { $sorted[ $tab['id'] ] = $tab; } } return $sorted; } /** * Gets the arguments for a help tab. * * @since 3.4.0 * * @param string $id Help Tab ID. * @return ?array Help tab arguments, or null if no help tabs added. */ public function get_help_tab( $id ) { if ( ! isset( $this->_help_tabs[ $id ] ) ) { return null; } return $this->_help_tabs[ $id ]; } /** * Adds a help tab to the contextual help for the screen. * * Call this on the `load-$pagenow` hook for the relevant screen, * or fetch the `$current_screen` object, or use get_current_screen() * and then call the method from the object. * * You may need to filter `$current_screen` using an if or switch statement * to prevent new help tabs from being added to ALL admin screens. * * @since 3.3.0 * @since 4.4.0 The `$priority` argument was added. * * @param array $args { * Array of arguments used to display the help tab. * * @type string $title Title for the tab. Default false. * @type string $id Tab ID. Must be HTML-safe and should be unique for this menu. * It is NOT allowed to contain any empty spaces. Default false. * @type string $content Optional. Help tab content in plain text or HTML. Default empty string. * @type callable $callback Optional. A callback to generate the tab content. Default false. * @type int $priority Optional. The priority of the tab, used for ordering. Default 10. * } */ public function add_help_tab( $args ) { $defaults = array( 'title' => false, 'id' => false, 'content' => '', 'callback' => false, 'priority' => 10, ); $args = wp_parse_args( $args, $defaults ); $args['id'] = sanitize_html_class( $args['id'] ); // Ensure we have an ID and title. if ( ! $args['id'] || ! $args['title'] ) { return; } // Allows for overriding an existing tab with that ID. $this->_help_tabs[ $args['id'] ] = $args; } /** * Removes a help tab from the contextual help for the screen. * * @since 3.3.0 * * @param string $id The help tab ID. */ public function remove_help_tab( $id ) { unset( $this->_help_tabs[ $id ] ); } /** * Removes all help tabs from the contextual help for the screen. * * @since 3.3.0 */ public function remove_help_tabs() { $this->_help_tabs = array(); } /** * Gets the content from a contextual help sidebar. * * @since 3.4.0 * * @return string Contents of the help sidebar. */ public function get_help_sidebar() { return $this->_help_sidebar; } /** * Adds a sidebar to the contextual help for the screen. * * Call this in template files after admin.php is loaded and before admin-header.php is loaded * to add a sidebar to the contextual help. * * @since 3.3.0 * * @param string $content Sidebar content in plain text or HTML. */ public function set_help_sidebar( $content ) { $this->_help_sidebar = $content; } /** * Gets the number of layout columns the user has selected. * * The layout_columns option controls the max number and default number of * columns. This method returns the number of columns within that range selected * by the user via Screen Options. If no selection has been made, the default * provisioned in layout_columns is returned. If the screen does not support * selecting the number of layout columns, 0 is returned. * * @since 3.4.0 * * @return int Number of columns to display. */ public function get_columns() { return $this->columns; } /** * Gets the accessible hidden headings and text used in the screen. * * @since 4.4.0 * * @see set_screen_reader_content() For more information on the array format. * * @return string[] An associative array of screen reader text strings. */ public function get_screen_reader_content() { return $this->_screen_reader_content; } /** * Gets a screen reader text string. * * @since 4.4.0 * * @param string $key Screen reader text array named key. * @return ?string Screen reader text string, or null if no text is associated with the key. */ public function get_screen_reader_text( $key ) { if ( ! isset( $this->_screen_reader_content[ $key ] ) ) { return null; } return $this->_screen_reader_content[ $key ]; } /** * Adds accessible hidden headings and text for the screen. * * @since 4.4.0 * * @param array $content { * An associative array of screen reader text strings. * * @type string $heading_views Screen reader text for the filter links heading. * Default 'Filter items list'. * @type string $heading_pagination Screen reader text for the pagination heading. * Default 'Items list navigation'. * @type string $heading_list Screen reader text for the items list heading. * Default 'Items list'. * } */ public function set_screen_reader_content( $content = array() ) { $defaults = array( 'heading_views' => __( 'Filter items list' ), 'heading_pagination' => __( 'Items list navigation' ), 'heading_list' => __( 'Items list' ), ); $content = wp_parse_args( $content, $defaults ); $this->_screen_reader_content = $content; } /** * Removes all the accessible hidden headings and text for the screen. * * @since 4.4.0 */ public function remove_screen_reader_content() { $this->_screen_reader_content = array(); } /** * Renders the screen's help section. * * This will trigger the deprecated filters for backward compatibility. * * @since 3.3.0 * * @global string $screen_layout_columns */ public function render_screen_meta() { /** * Filters the legacy contextual help list. * * @since 2.7.0 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or * {@see get_current_screen()->remove_help_tab()} instead. * * @param array $old_compat_help Old contextual help. * @param WP_Screen $screen Current WP_Screen instance. */ self::$_old_compat_help = apply_filters_deprecated( 'contextual_help_list', array( self::$_old_compat_help, $this ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' ); $old_help = self::$_old_compat_help[ $this->id ] ?? ''; /** * Filters the legacy contextual help text. * * @since 2.7.0 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or * {@see get_current_screen()->remove_help_tab()} instead. * * @param string $old_help Help text that appears on the screen. * @param string $screen_id Screen ID. * @param WP_Screen $screen Current WP_Screen instance. */ $old_help = apply_filters_deprecated( 'contextual_help', array( $old_help, $this->id, $this ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' ); // Default help only if there is no old-style block of text and no new-style help tabs. if ( empty( $old_help ) && ! $this->get_help_tabs() ) { /** * Filters the default legacy contextual help text. * * @since 2.8.0 * @deprecated 3.3.0 Use {@see get_current_screen()->add_help_tab()} or * {@see get_current_screen()->remove_help_tab()} instead. * * @param string $old_help_default Default contextual help text. */ $default_help = apply_filters_deprecated( 'default_contextual_help', array( '' ), '3.3.0', 'get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab()' ); if ( $default_help ) { $old_help = '

      ' . $default_help . '

      '; } } if ( $old_help ) { $this->add_help_tab( array( 'id' => 'old-contextual-help', 'title' => __( 'Overview' ), 'content' => $old_help, ) ); } $help_sidebar = $this->get_help_sidebar(); $help_class = 'hidden'; if ( ! $help_sidebar ) { $help_class .= ' no-sidebar'; } // Time to render! ?>
        get_help_tabs() as $tab ) : $link_id = "tab-link-{$tab['id']}"; $panel_id = "tab-panel-{$tab['id']}"; ?>
      get_help_tabs() as $tab ) : $panel_id = "tab-panel-{$tab['id']}"; ?>
      id, $this ); if ( ! empty( $columns ) && isset( $columns[ $this->id ] ) ) { $this->add_option( 'layout_columns', array( 'max' => $columns[ $this->id ] ) ); } if ( $this->get_option( 'layout_columns' ) ) { $this->columns = (int) get_user_option( "screen_layout_$this->id" ); $layout_columns = (int) $this->get_option( 'layout_columns', 'default' ); if ( ! $this->columns && $layout_columns ) { $this->columns = $layout_columns; } } $GLOBALS['screen_layout_columns'] = $this->columns; // Set the global for back-compat. // Add screen options. if ( $this->show_screen_options() ) { $this->render_screen_options(); } ?>
      get_help_tabs() && ! $this->show_screen_options() ) { return; } ?> _show_screen_options ) ) { return $this->_show_screen_options; } $columns = get_column_headers( $this ); $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); $this->_screen_settings = ''; if ( 'post' === $this->base ) { $expand = ''; $this->_screen_settings = $expand; } /** * Filters the screen settings text displayed in the Screen Options tab. * * @since 3.0.0 * * @param string $screen_settings Screen settings. * @param WP_Screen $screen WP_Screen object. */ $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this ); if ( $this->_screen_settings || $this->_options ) { $show_screen = true; } /** * Filters whether to show the Screen Options tab. * * @since 3.2.0 * * @param bool $show_screen Whether to show Screen Options tab. * Default true. * @param WP_Screen $screen Current WP_Screen instance. */ $this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this ); return $this->_show_screen_options; } /** * Renders the screen options tab. * * @since 3.3.0 * * @param array $options { * Options for the tab. * * @type bool $wrap Whether the screen-options-wrap div will be included. Defaults to true. * } */ public function render_screen_options( $options = array() ) { $options = wp_parse_args( $options, array( 'wrap' => true, ) ); $wrapper_start = ''; $wrapper_end = ''; $form_start = ''; $form_end = ''; // Output optional wrapper. if ( $options['wrap'] ) { $wrapper_start = ''; } // Don't output the form and nonce for the widgets accessibility mode links. if ( 'widgets' !== $this->base ) { $form_start = "\n
      \n"; $form_end = "\n" . wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false, false ) . "\n
      \n"; } echo $wrapper_start . $form_start; $this->render_meta_boxes_preferences(); $this->render_list_table_columns_preferences(); $this->render_screen_layout(); $this->render_per_page_options(); $this->render_view_mode(); echo $this->_screen_settings; /** * Filters whether to show the Screen Options submit button. * * @since 4.4.0 * * @param bool $show_button Whether to show Screen Options submit button. * Default false. * @param WP_Screen $screen Current WP_Screen instance. */ $show_button = apply_filters( 'screen_options_show_submit', false, $this ); if ( $show_button ) { submit_button( __( 'Apply' ), 'primary', 'screen-options-apply', true ); } echo $form_end . $wrapper_end; } /** * Renders the meta boxes preferences. * * @since 4.4.0 * * @global array $wp_meta_boxes Global meta box state. */ public function render_meta_boxes_preferences() { global $wp_meta_boxes; if ( ! isset( $wp_meta_boxes[ $this->id ] ) ) { return; } ?>

      id && has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) { if ( isset( $_GET['welcome'] ) ) { $welcome_checked = empty( $_GET['welcome'] ) ? 0 : 1; update_user_meta( get_current_user_id(), 'show_welcome_panel', $welcome_checked ); } else { $welcome_checked = (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); if ( 2 === $welcome_checked && wp_get_current_user()->user_email !== get_option( 'admin_email' ) ) { $welcome_checked = false; } } echo '\n"; } ?>
      $title ) { // Can't hide these for they are special. if ( in_array( $column, $special, true ) ) { continue; } if ( empty( $title ) ) { continue; } /* * The Comments column uses HTML in the display name with some screen * reader text. Make sure to strip tags from the Comments column * title and any other custom column title plugins might add. */ $title = wp_strip_all_tags( $title ); $id = "$column-hide"; echo '\n"; } ?>
      get_option( 'layout_columns' ) ) { return; } $screen_layout_columns = $this->get_columns(); $num = $this->get_option( 'layout_columns', 'max' ); ?>
      get_option( 'per_page' ) ) { return; } $per_page_label = $this->get_option( 'per_page', 'label' ); if ( null === $per_page_label ) { $per_page_label = __( 'Number of items per page:' ); } $option = $this->get_option( 'per_page', 'option' ); if ( ! $option ) { $option = str_replace( '-', '_', "{$this->id}_per_page" ); } $per_page = (int) get_user_option( $option ); if ( empty( $per_page ) || $per_page < 1 ) { $per_page = $this->get_option( 'per_page', 'default' ); if ( ! $per_page ) { $per_page = 20; } } if ( 'edit_comments_per_page' === $option ) { $comment_status = $_REQUEST['comment_status'] ?? 'all'; /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */ $per_page = apply_filters( 'comments_per_page', $per_page, $comment_status ); } elseif ( 'categories_per_page' === $option ) { /** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */ $per_page = apply_filters( 'edit_categories_per_page', $per_page ); } else { /** This filter is documented in wp-admin/includes/class-wp-list-table.php */ $per_page = apply_filters( "{$option}", $per_page ); } // Back compat. if ( isset( $this->post_type ) ) { /** This filter is documented in wp-admin/includes/post.php */ $per_page = apply_filters( 'edit_posts_per_page', $per_page, $this->post_type ); } // This needs a submit button. add_filter( 'screen_options_show_submit', '__return_true' ); ?>
      base && 'edit-comments' !== $screen->base ) { return; } $view_mode_post_types = get_post_types( array( 'show_ui' => true ) ); /** * Filters the post types that have different view mode options. * * @since 4.4.0 * * @param string[] $view_mode_post_types Array of post types that can change view modes. * Default post types with show_ui on. */ $view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types ); if ( 'edit' === $screen->base && ! in_array( $this->post_type, $view_mode_post_types, true ) ) { return; } if ( ! isset( $mode ) ) { $mode = get_user_setting( 'posts_list_mode', 'list' ); } // This needs a submit button. add_filter( 'screen_options_show_submit', '__return_true' ); ?>
      _screen_reader_content[ $key ] ) ) { return; } echo "<$tag class='screen-reader-text'>" . $this->_screen_reader_content[ $key ] . ""; } } includes/class-walker-nav-menu-checklist.php000064400000013225152213653150015154 0ustar00db_fields = $fields; } } /** * Starts the list before the elements are added. * * @see Walker_Nav_Menu::start_lvl() * * @since 3.0.0 * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of page. Used for padding. * @param stdClass $args Not used. */ public function start_lvl( &$output, $depth = 0, $args = null ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent
        \n"; } /** * Ends the list of after the elements are added. * * @see Walker_Nav_Menu::end_lvl() * * @since 3.0.0 * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of page. Used for padding. * @param stdClass $args Not used. */ public function end_lvl( &$output, $depth = 0, $args = null ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent
      "; } /** * Start the element output. * * @see Walker_Nav_Menu::start_el() * * @since 3.0.0 * @since 5.9.0 Renamed `$item` to `$data_object` and `$id` to `$current_object_id` * to match parent class for PHP 8 named parameter support. * * @global int $_nav_menu_placeholder A placeholder for the nav menu item ID. * @global int|string $nav_menu_selected_id The ID of the selected nav menu. * * @param string $output Used to append additional content (passed by reference). * @param WP_Post $data_object Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args Not used. * @param int $current_object_id Optional. ID of the current menu item. Default 0. */ public function start_el( &$output, $data_object, $depth = 0, $args = null, $current_object_id = 0 ) { global $_nav_menu_placeholder, $nav_menu_selected_id; // Restores the more descriptive, specific name for use within this method. $menu_item = $data_object; $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? (int) $_nav_menu_placeholder - 1 : -1; $possible_object_id = isset( $menu_item->post_type ) && 'nav_menu_item' === $menu_item->post_type ? $menu_item->object_id : $_nav_menu_placeholder; $possible_db_id = ( ! empty( $menu_item->ID ) ) && ( 0 < $possible_object_id ) ? (int) $menu_item->ID : 0; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $output .= $indent . '
    • '; $output .= ''; // Menu item hidden fields. $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; $output .= ''; } } includes/class-wp-site-health-auto-updates.php000064400000034001152213653150015433 0ustar00test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'beta', 'rc', 'development', 'branch-development', 'minor' ) ), $this->test_wp_version_check_attached(), $this->test_filters_automatic_updater_disabled(), $this->test_wp_automatic_updates_disabled(), $this->test_if_failed_update(), $this->test_vcs_abspath(), $this->test_check_wp_filesystem_method(), $this->test_all_files_writable(), $this->test_accepts_dev_updates(), $this->test_accepts_minor_updates(), ); $tests = array_filter( $tests ); $tests = array_map( static function ( $test ) { $test = (object) $test; if ( empty( $test->severity ) ) { $test->severity = 'warning'; } return $test; }, $tests ); return $tests; } /** * Tests if auto-updates related constants are set correctly. * * @since 5.2.0 * @since 5.5.1 The `$value` parameter can accept an array. * * @param string $constant The name of the constant to check. * @param bool|string|array $value The value that the constant should be, if set, * or an array of acceptable values. * @return array|null The test results if there are any constants set incorrectly, * or null if the test passed. */ public function test_constants( $constant, $value ) { $acceptable_values = (array) $value; if ( defined( $constant ) && ! in_array( constant( $constant ), $acceptable_values, true ) ) { return array( 'description' => sprintf( /* translators: 1: Name of the constant used. 2: Value of the constant used. */ __( 'The %1$s constant is defined as %2$s' ), "$constant", '' . esc_html( var_export( constant( $constant ), true ) ) . '' ), 'severity' => 'fail', ); } return null; } /** * Checks if updates are intercepted by a filter. * * @since 5.2.0 * * @return array|null The test results if wp_version_check() is disabled, * or null if the test passed. */ public function test_wp_version_check_attached() { if ( ( ! is_multisite() || is_main_site() && is_network_admin() ) && ! has_filter( 'wp_version_check', 'wp_version_check' ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'A plugin has prevented updates by disabling %s.' ), 'wp_version_check()' ), 'severity' => 'fail', ); } return null; } /** * Checks if automatic updates are disabled by a filter. * * @since 5.2.0 * * @return array|null The test results if the {@see 'automatic_updater_disabled'} filter is set, * or null if the test passed. */ public function test_filters_automatic_updater_disabled() { /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ if ( apply_filters( 'automatic_updater_disabled', false ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'The %s filter is enabled.' ), 'automatic_updater_disabled' ), 'severity' => 'fail', ); } return null; } /** * Checks if automatic updates are disabled. * * @since 5.3.0 * * @return array|false The test results if auto-updates are disabled, false otherwise. */ public function test_wp_automatic_updates_disabled() { if ( ! class_exists( 'WP_Automatic_Updater' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php'; } $auto_updates = new WP_Automatic_Updater(); if ( ! $auto_updates->is_disabled() ) { return false; } return array( 'description' => __( 'All automatic updates are disabled.' ), 'severity' => 'fail', ); } /** * Checks if automatic updates have tried to run, but failed, previously. * * @since 5.2.0 * * @return array|false The test results if auto-updates previously failed, false otherwise. */ public function test_if_failed_update() { $failed = get_site_option( 'auto_core_update_failed' ); if ( ! $failed ) { return false; } if ( ! empty( $failed['critical'] ) ) { $description = __( 'A previous automatic background update ended with a critical failure, so updates are now disabled.' ); $description .= ' ' . __( 'You would have received an email because of this.' ); $description .= ' ' . __( "When you've been able to update using the \"Update now\" button on Dashboard > Updates, this error will be cleared for future update attempts." ); $description .= ' ' . sprintf( /* translators: %s: Code of error shown. */ __( 'The error code was %s.' ), '' . $failed['error_code'] . '' ); return array( 'description' => $description, 'severity' => 'warning', ); } $description = __( 'A previous automatic background update could not occur.' ); if ( empty( $failed['retry'] ) ) { $description .= ' ' . __( 'You would have received an email because of this.' ); } $description .= ' ' . __( 'Another attempt will be made with the next release.' ); $description .= ' ' . sprintf( /* translators: %s: Code of error shown. */ __( 'The error code was %s.' ), '' . $failed['error_code'] . '' ); return array( 'description' => $description, 'severity' => 'warning', ); } /** * Checks if WordPress is controlled by a VCS (Git, Subversion etc). * * @since 5.2.0 * * @return array The test results. */ public function test_vcs_abspath() { $context_dirs = array( ABSPATH ); $vcs_dirs = array( '.svn', '.git', '.hg', '.bzr' ); $check_dirs = array(); foreach ( $context_dirs as $context_dir ) { // Walk up from $context_dir to the root. do { $check_dirs[] = $context_dir; // Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here. if ( dirname( $context_dir ) === $context_dir ) { break; } // Continue one level at a time. } while ( $context_dir = dirname( $context_dir ) ); } $check_dirs = array_unique( $check_dirs ); $updater = new WP_Automatic_Updater(); $checkout = false; // Search all directories we've found for evidence of version control. foreach ( $vcs_dirs as $vcs_dir ) { foreach ( $check_dirs as $check_dir ) { if ( ! $updater->is_allowed_dir( $check_dir ) ) { continue; } $checkout = is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ); if ( $checkout ) { break 2; } } } /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ if ( $checkout && ! apply_filters( 'automatic_updates_is_vcs_checkout', true, ABSPATH ) ) { return array( 'description' => sprintf( /* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */ __( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ), '' . $check_dir . '', "$vcs_dir", 'automatic_updates_is_vcs_checkout' ), 'severity' => 'info', ); } if ( $checkout ) { return array( 'description' => sprintf( /* translators: 1: Folder name. 2: Version control directory. */ __( 'The folder %1$s was detected as being under version control (%2$s).' ), '' . $check_dir . '', "$vcs_dir" ), 'severity' => 'warning', ); } return array( 'description' => __( 'No version control systems were detected.' ), 'severity' => 'pass', ); } /** * Checks if we can access files without providing credentials. * * @since 5.2.0 * * @return array The test results. */ public function test_check_wp_filesystem_method() { // Make sure the `request_filesystem_credentials()` function is available during our REST API call. if ( ! function_exists( 'request_filesystem_credentials' ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; } $skin = new Automatic_Upgrader_Skin(); $success = $skin->request_filesystem_credentials( false, ABSPATH ); if ( ! $success ) { $description = __( 'Your installation of WordPress prompts for FTP credentials to perform updates.' ); $description .= ' ' . __( '(Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)' ); return array( 'description' => $description, 'severity' => 'fail', ); } return array( 'description' => __( 'Your installation of WordPress does not require FTP credentials to perform updates.' ), 'severity' => 'pass', ); } /** * Checks if core files are writable by the web user/group. * * @since 5.2.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @return array|false The test results if at least some of WordPress core files are writeable, * or if a list of the checksums could not be retrieved from WordPress.org. * False if the core files are not writeable. */ public function test_all_files_writable() { global $wp_filesystem; require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z $skin = new Automatic_Upgrader_Skin(); $success = $skin->request_filesystem_credentials( false, ABSPATH ); if ( ! $success ) { return false; } WP_Filesystem(); if ( 'direct' !== $wp_filesystem->method ) { return false; } // Make sure the `get_core_checksums()` function is available during our REST API call. if ( ! function_exists( 'get_core_checksums' ) ) { require_once ABSPATH . 'wp-admin/includes/update.php'; } $checksums = get_core_checksums( $wp_version, 'en_US' ); $dev = ( str_contains( $wp_version, '-' ) ); // Get the last stable version's files and test against that. if ( ! $checksums && $dev ) { $checksums = get_core_checksums( (float) $wp_version - 0.1, 'en_US' ); } // There aren't always checksums for development releases, so just skip the test if we still can't find any. if ( ! $checksums && $dev ) { return false; } if ( ! $checksums ) { $description = sprintf( /* translators: %s: WordPress version. */ __( "Couldn't retrieve a list of the checksums for WordPress %s." ), $wp_version ); $description .= ' ' . __( 'This could mean that connections are failing to WordPress.org.' ); return array( 'description' => $description, 'severity' => 'warning', ); } $unwritable_files = array(); foreach ( array_keys( $checksums ) as $file ) { if ( str_starts_with( $file, 'wp-content' ) ) { continue; } if ( ! file_exists( ABSPATH . $file ) ) { continue; } if ( ! is_writable( ABSPATH . $file ) ) { $unwritable_files[] = $file; } } if ( $unwritable_files ) { if ( count( $unwritable_files ) > 20 ) { $unwritable_files = array_slice( $unwritable_files, 0, 20 ); $unwritable_files[] = '...'; } return array( 'description' => __( 'Some files are not writable by WordPress:' ) . '
      • ' . implode( '
      • ', $unwritable_files ) . '
      ', 'severity' => 'fail', ); } else { return array( 'description' => __( 'All of your WordPress files are writable.' ), 'severity' => 'pass', ); } } /** * Checks if the install is using a development branch and can use nightly packages. * * @since 5.2.0 * * @return array|false|null The test results if development updates are blocked. * False if it isn't a development version. Null if the test passed. */ public function test_accepts_dev_updates() { require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z // Only for dev versions. if ( ! str_contains( $wp_version, '-' ) ) { return false; } if ( defined( 'WP_AUTO_UPDATE_CORE' ) && ( 'minor' === WP_AUTO_UPDATE_CORE || false === WP_AUTO_UPDATE_CORE ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the constant used. */ __( 'WordPress development updates are blocked by the %s constant.' ), 'WP_AUTO_UPDATE_CORE' ), 'severity' => 'fail', ); } /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ if ( ! apply_filters( 'allow_dev_auto_core_updates', $wp_version ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'WordPress development updates are blocked by the %s filter.' ), 'allow_dev_auto_core_updates' ), 'severity' => 'fail', ); } return null; } /** * Checks if the site supports automatic minor updates. * * @since 5.2.0 * * @return array|null The test results if minor updates are blocked, * or null if the test passed. */ public function test_accepts_minor_updates() { if ( defined( 'WP_AUTO_UPDATE_CORE' ) && false === WP_AUTO_UPDATE_CORE ) { return array( 'description' => sprintf( /* translators: %s: Name of the constant used. */ __( 'WordPress security and maintenance releases are blocked by %s.' ), "define( 'WP_AUTO_UPDATE_CORE', false );" ), 'severity' => 'fail', ); } /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) { return array( 'description' => sprintf( /* translators: %s: Name of the filter used. */ __( 'WordPress security and maintenance releases are blocked by the %s filter.' ), 'allow_minor_auto_core_updates' ), 'severity' => 'fail', ); } return null; } } includes/meta-boxes.php000064400000202451152213653150011136 0ustar00ID; $post_type = $post->post_type; $post_type_object = get_post_type_object( $post_type ); $can_publish = current_user_can( $post_type_object->cap->publish_posts ); ?>
      post_status, array( 'publish', 'future', 'pending' ), true ) ) { $private_style = ''; if ( 'private' === $post->post_status ) { $private_style = 'style="display:none"'; } ?> type="submit" name="save" id="save-post" value="" class="button" /> post_status && $can_publish ) { ?>
      post_status ) { $preview_button_text = __( 'Preview Changes' ); } else { $preview_button_text = _x( 'Preview', 'verb' ); } $preview_button = sprintf( '%1$s %2$s', $preview_button_text, /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); ?>
      post_status ) { case 'private': _e( 'Privately Published' ); break; case 'publish': _e( 'Published' ); break; case 'future': _e( 'Scheduled' ); break; case 'pending': _e( 'Pending Review' ); break; case 'draft': case 'auto-draft': _e( 'Draft' ); break; } ?> post_status || 'private' === $post->post_status || $can_publish ) { $private_style = ''; if ( 'private' === $post->post_status ) { $private_style = 'style="display:none"'; } ?> class="edit-post-status hide-if-no-js" role="button">
      post_status ) { $post->post_password = ''; $visibility = 'private'; $visibility_trans = __( 'Private' ); } elseif ( ! empty( $post->post_password ) ) { $visibility = 'password'; $visibility_trans = __( 'Password protected' ); } elseif ( 'post' === $post_type && is_sticky( $post_id ) ) { $visibility = 'public'; $visibility_trans = __( 'Public, Sticky' ); } else { $visibility = 'public'; $visibility_trans = __( 'Public' ); } echo esc_html( $visibility_trans ); ?>
      /> />
      />
      />

      />

      post_status ) { // Scheduled for publishing at a future date. /* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */ $stamp = __( 'Scheduled for: %s' ); } elseif ( 'publish' === $post->post_status || 'private' === $post->post_status ) { // Already published. /* translators: Post date information. %s: Date on which the post was published. */ $stamp = __( 'Published on: %s' ); } elseif ( '0000-00-00 00:00:00' === $post->post_date_gmt ) { // Draft, 1 or more saves, no date specified. $stamp = __( 'Publish immediately' ); } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // Draft, 1 or more saves, future date specified. /* translators: Post date information. %s: Date on which the post is to be published. */ $stamp = __( 'Schedule for: %s' ); } else { // Draft, 1 or more saves, date specified. /* translators: Post date information. %s: Date on which the post is to be published. */ $stamp = __( 'Publish on: %s' ); } $date = sprintf( $date_string, date_i18n( $date_format, strtotime( $post->post_date ) ), date_i18n( $time_format, strtotime( $post->post_date ) ) ); } else { // Draft (no saves, and thus no date specified). $stamp = __( 'Publish immediately' ); $date = sprintf( $date_string, date_i18n( $date_format, strtotime( current_time( 'mysql' ) ) ), date_i18n( $time_format, strtotime( current_time( 'mysql' ) ) ) ); } if ( ! empty( $args['args']['revisions_count'] ) ) : ?>
      ' . number_format_i18n( $args['args']['revisions_count'] ) . '' ); ?>
      ' . $date . '' ); ?>
      post_status && get_post_meta( $post_id, '_customize_changeset_uuid', true ) ) : $message = sprintf( /* translators: %s: URL to the Customizer. */ __( 'This draft comes from your unpublished customization changes. You can edit, but there is no need to publish now. It will be published automatically with those changes.' ), esc_url( add_query_arg( 'changeset_uuid', rawurlencode( get_post_meta( $post_id, '_customize_changeset_uuid', true ) ), admin_url( 'customize.php' ) ) ) ); wp_admin_notice( $message, array( 'type' => 'info', 'additional_classes' => array( 'notice-alt', 'inline' ), ) ); endif; /** * Fires after the post time/date setting in the Publish meta box. * * @since 2.9.0 * @since 4.4.0 Added the `$post` parameter. * * @param WP_Post $post WP_Post object for the current post. */ do_action( 'post_submitbox_misc_actions', $post ); ?>
      post_status, array( 'publish', 'future', 'private' ), true ) || 0 === $post_id ) { if ( $can_publish ) : if ( ! empty( $post->post_date_gmt ) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 'publish' ) ); ?>
      post_date ) ), /* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $post->post_date ) ) ); /* translators: Attachment information. %s: Date the attachment was uploaded. */ printf( __( 'Uploaded on: %s' ), '' . $uploaded_on . '' ); ?>
      ID ) ) { if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { printf( '%2$s', get_delete_post_link( $post->ID ), __( 'Move to Trash' ) ); } else { $show_confirmation = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; printf( '%3$s', $show_confirmation, get_delete_post_link( $post->ID, '', true ), __( 'Delete permanently' ) ); } } ?>
      post_type, 'post-formats' ) ) : $post_formats = get_theme_support( 'post-formats' ); if ( is_array( $post_formats[0] ) ) : $post_format = get_post_format( $post->ID ); if ( ! $post_format ) { $post_format = '0'; } // Add in the current one if it isn't there yet, in case the active theme doesn't support it. if ( $post_format && ! in_array( $post_format, $post_formats[0], true ) ) { $post_formats[0][] = $post_format; } ?>
      />
      />
      'post_tag' ); if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) { $args = array(); } else { $args = $box['args']; } $parsed_args = wp_parse_args( $args, $defaults ); $tax_name = esc_attr( $parsed_args['taxonomy'] ); $taxonomy = get_taxonomy( $parsed_args['taxonomy'] ); $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms ); $comma = _x( ',', 'tag delimiter' ); $terms_to_edit = get_terms_to_edit( $post->ID, $tax_name ); if ( ! is_string( $terms_to_edit ) ) { $terms_to_edit = ''; } ?>

      labels->separate_items_with_commas; ?>

      labels->no_terms; ?>

        'category' ); if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) { $args = array(); } else { $args = $box['args']; } $parsed_args = wp_parse_args( $args, $defaults ); $tax_name = esc_attr( $parsed_args['taxonomy'] ); $taxonomy = get_taxonomy( $parsed_args['taxonomy'] ); ?>
        "; ?>
          ID, array( 'taxonomy' => $tax_name, 'popular_cats' => $popular_ids, ) ); ?>
        cap->edit_terms ) ) : ?>
        labels->add_new_item ); ?>

        $tax_name, 'hide_empty' => 0, 'name' => 'new' . $tax_name . '_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $taxonomy->labels->parent_item . ' —', ); /** * Filters the arguments for the taxonomy parent dropdown on the Post Edit page. * * @since 4.4.0 * * @param array $parent_dropdown_args { * Optional. Array of arguments to generate parent dropdown. * * @type string $taxonomy Name of the taxonomy to retrieve. * @type bool $hide_if_empty True to skip generating markup if no * categories are found. Default 0. * @type string $name Value for the 'name' attribute * of the select element. * Default "new{$tax_name}_parent". * @type string $orderby Which column to use for ordering * terms. Default 'name'. * @type bool|int $hierarchical Whether to traverse the taxonomy * hierarchy. Default 1. * @type string $show_option_none Text to display for the "none" option. * Default "— {$parent} —", * where `$parent` is 'parent_item' * taxonomy label. * } */ $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args ); wp_dropdown_categories( $parent_dropdown_args ); ?>

        Learn more about manual excerpts.' ), __( 'https://wordpress.org/documentation/article/what-is-an-excerpt-classic-editor/' ) ); ?>

        to_ping ) ) . '" aria-describedby="trackback-url-desc" />'; if ( '' !== $post->pinged ) { $pings = '

        ' . __( 'Already pinged:' ) . '

          '; $already_pinged = explode( "\n", trim( $post->pinged ) ); foreach ( $already_pinged as $pinged_url ) { $pings .= "\n\t
        • " . esc_html( $pinged_url ) . '
        • '; } $pings .= '
        '; } ?>

        pingbacks, no other action necessary.' ), __( 'https://wordpress.org/documentation/article/introduction-to-blogging/#comments' ) ); ?>

        ID ); foreach ( $metadata as $key => $value ) { if ( is_protected_meta( $metadata[ $key ]['meta_key'], 'post' ) || ! current_user_can( 'edit_post_meta', $post->ID, $metadata[ $key ]['meta_key'] ) ) { unset( $metadata[ $key ] ); } } list_meta( $metadata ); meta_form( $post ); ?>

        use in your theme.' ), __( 'https://wordpress.org/documentation/article/assign-custom-fields/' ) ); ?>


        $post->ID, 'count' => true, 'orderby' => 'none', ) ); $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table' ); $wp_list_table->display( true ); if ( 1 > $total ) { echo '

        ' . __( 'No comments yet.' ) . '

        '; } else { $hidden = get_hidden_meta_boxes( get_current_screen() ); if ( ! in_array( 'commentsdiv', $hidden, true ) ) { ?>

        post_name, $post ); ?> post_type ); ?> array( $post_type_object->cap->edit_posts ), 'name' => 'post_author_override', 'selected' => empty( $post->ID ) ? $user_ID : $post->post_author, 'include_selected' => true, 'show' => 'display_name_with_login', ) ); } /** * Displays list of revisions. * * @since 2.6.0 * * @param WP_Post $post Current post object. */ function post_revisions_meta_box( $post ) { wp_list_post_revisions( $post ); } // // Page-related Meta Boxes. // /** * Displays page attributes form fields. * * @since 2.7.0 * * @param WP_Post $post Current post object. */ function page_attributes_meta_box( $post ) { if ( is_post_type_hierarchical( $post->post_type ) ) : $dropdown_args = array( 'post_type' => $post->post_type, 'exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __( '(no parent)' ), 'sort_column' => 'menu_order, post_title', 'echo' => 0, ); /** * Filters the arguments used to generate a Pages drop-down element. * * @since 3.3.0 * * @see wp_dropdown_pages() * * @param array $dropdown_args Array of arguments used to generate the pages drop-down. * @param WP_Post $post The current post. */ $dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post ); $pages = wp_dropdown_pages( $dropdown_args ); if ( ! empty( $pages ) ) : ?>

        0 && (int) get_option( 'page_for_posts' ) !== $post->ID ) : $template = ! empty( $post->page_template ) ? $post->page_template : false; ?>

        post_type, 'page-attributes' ) ) : ?>

        post_type && get_current_screen()->get_help_tabs() ) : ?>

          link_id ) ) { wp_link_category_checklist( $link->link_id ); } else { wp_link_category_checklist(); } ?>

        link_rel ?? ''; $link_rels = preg_split( '/\s+/', $link_rel ); // Mark the specified value as checked if it matches the current link's relationship. if ( '' !== $xfn_value && in_array( $xfn_value, $link_rels, true ) ) { echo ' checked="checked"'; } if ( '' === $xfn_value ) { // Mark the 'none' value as checked if the current link does not match the specified relationship. if ( 'family' === $xfn_relationship && ! array_intersect( $link_rels, array( 'child', 'parent', 'sibling', 'spouse', 'kin' ) ) ) { echo ' checked="checked"'; } if ( 'friendship' === $xfn_relationship && ! array_intersect( $link_rels, array( 'friend', 'acquaintance', 'contact' ) ) ) { echo ' checked="checked"'; } if ( 'geographical' === $xfn_relationship && ! array_intersect( $link_rels, array( 'co-resident', 'neighbor' ) ) ) { echo ' checked="checked"'; } // Mark the 'me' value as checked if it matches the current link's relationship. if ( 'identity' === $xfn_relationship && in_array( 'me', $link_rels, true ) ) { echo ' checked="checked"'; } } } /** * Displays XFN form fields. * * @since 2.6.0 * * @param object $link Current link object. */ function link_xfn_meta_box( $link ) { ?>

        XFN.' ); ?>

        ID, '_thumbnail_id', true ); echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); } /** * Displays fields for ID3 data. * * @since 3.9.0 * * @param WP_Post $post Current post object. */ function attachment_id3_data_meta_box( $post ) { $meta = array(); if ( ! empty( $post->ID ) ) { $meta = wp_get_attachment_metadata( $post->ID ); } foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) : $value = ''; if ( ! empty( $meta[ $key ] ) ) { $value = $meta[ $key ]; } ?>


        post_type; $post_type_object = get_post_type_object( $post_type ); $thumbnail_support = current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports( $post_type, 'thumbnail' ); if ( ! $thumbnail_support && 'attachment' === $post_type && $post->post_mime_type ) { if ( wp_attachment_is( 'audio', $post ) ) { $thumbnail_support = post_type_supports( 'attachment:audio', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:audio' ); } elseif ( wp_attachment_is( 'video', $post ) ) { $thumbnail_support = post_type_supports( 'attachment:video', 'thumbnail' ) || current_theme_supports( 'post-thumbnails', 'attachment:video' ); } } $publish_callback_args = array( '__back_compat_meta_box' => true ); if ( post_type_supports( $post_type, 'revisions' ) && 'auto-draft' !== $post->post_status ) { $revisions = wp_get_latest_revision_id_and_total_count( $post->ID ); // We should aim to show the revisions meta box only when there are revisions. if ( ! is_wp_error( $revisions ) && $revisions['count'] > 1 ) { $publish_callback_args = array( 'revisions_count' => $revisions['count'], 'revision_id' => $revisions['latest_id'], '__back_compat_meta_box' => true, ); add_meta_box( 'revisionsdiv', __( 'Revisions' ), 'post_revisions_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } } if ( 'attachment' === $post_type ) { wp_enqueue_script( 'image-edit' ); wp_enqueue_style( 'imgareaselect' ); add_meta_box( 'submitdiv', __( 'Save' ), 'attachment_submit_meta_box', null, 'side', 'core', array( '__back_compat_meta_box' => true ) ); add_action( 'edit_form_after_title', 'edit_form_image_editor' ); if ( wp_attachment_is( 'audio', $post ) ) { add_meta_box( 'attachment-id3', __( 'Metadata' ), 'attachment_id3_data_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } } else { add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', null, 'side', 'core', $publish_callback_args ); } if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) { add_meta_box( 'formatdiv', _x( 'Format', 'post format' ), 'post_format_meta_box', null, 'side', 'core', array( '__back_compat_meta_box' => true ) ); } // All taxonomies. foreach ( get_object_taxonomies( $post ) as $tax_name ) { $taxonomy = get_taxonomy( $tax_name ); if ( ! $taxonomy->show_ui || false === $taxonomy->meta_box_cb ) { continue; } $label = $taxonomy->labels->name; if ( ! is_taxonomy_hierarchical( $tax_name ) ) { $tax_meta_box_id = 'tagsdiv-' . $tax_name; } else { $tax_meta_box_id = $tax_name . 'div'; } add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name, '__back_compat_meta_box' => true, ) ); } if ( post_type_supports( $post_type, 'page-attributes' ) || count( get_page_templates( $post ) ) > 0 ) { add_meta_box( 'pageparentdiv', $post_type_object->labels->attributes, 'page_attributes_meta_box', null, 'side', 'core', array( '__back_compat_meta_box' => true ) ); } if ( $thumbnail_support && current_user_can( 'upload_files' ) ) { add_meta_box( 'postimagediv', esc_html( $post_type_object->labels->featured_image ), 'post_thumbnail_meta_box', null, 'side', 'low', array( '__back_compat_meta_box' => true ) ); } if ( post_type_supports( $post_type, 'excerpt' ) ) { add_meta_box( 'postexcerpt', __( 'Excerpt' ), 'post_excerpt_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } if ( post_type_supports( $post_type, 'trackbacks' ) ) { add_meta_box( 'trackbacksdiv', __( 'Send Trackbacks' ), 'post_trackback_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } if ( post_type_supports( $post_type, 'custom-fields' ) ) { add_meta_box( 'postcustom', __( 'Custom Fields' ), 'post_custom_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => ! (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ), '__block_editor_compatible_meta_box' => true, ) ); } /** * Fires in the middle of built-in meta box registration. * * @since 2.1.0 * @deprecated 3.7.0 Use {@see 'add_meta_boxes'} instead. * * @param WP_Post $post Post object. */ do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' ); /* * Allow the Discussion meta box to show up if the post type supports comments, * or if comments or pings are open. */ if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_type, 'comments' ) ) { add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } $statuses = get_post_stati( array( 'public' => true ) ); if ( empty( $statuses ) ) { $statuses = array( 'publish' ); } $statuses[] = 'private'; if ( in_array( get_post_status( $post ), $statuses, true ) ) { /* * If the post type support comments, or the post has comments, * allow the Comments meta box. */ if ( comments_open( $post ) || pings_open( $post ) || $post->comment_count > 0 || post_type_supports( $post_type, 'comments' ) ) { add_meta_box( 'commentsdiv', __( 'Comments' ), 'post_comment_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } } if ( ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) ) { add_meta_box( 'slugdiv', __( 'Slug' ), 'post_slug_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_object->cap->edit_others_posts ) ) { add_meta_box( 'authordiv', __( 'Author' ), 'post_author_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); } /** * Fires after all built-in meta boxes have been added. * * @since 3.0.0 * * @param string $object_type The type of the current object that meta boxes were added to. * Can be 'post', 'page', custom post types, 'comment', or 'link'. * @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on * `$object_type`. */ do_action( 'add_meta_boxes', $post_type, $post ); /** * Fires after all built-in meta boxes have been added, contextually for the given post type. * * The dynamic portion of the hook name, `$post_type`, refers to the post type of the post, * or the object type (comment, link). * * Possible hook names include: * * - `add_meta_boxes_post` * - `add_meta_boxes_page` * - `add_meta_boxes_attachment` * - `add_meta_boxes_comment` * - `add_meta_boxes_link` * * @since 3.0.0 * * @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on * the hook name. */ do_action( "add_meta_boxes_{$post_type}", $post ); /** * Fires after meta boxes have been added. * * Fires once for each of the default meta box contexts: normal, advanced, and side. * * @since 3.0.0 * * @param string $object_type Post type of the post on Edit Post screen, 'link' on Edit Link screen, * 'dashboard' on Dashboard screen. * @param string $context Meta box context. Possible values include 'normal', 'advanced', 'side'. * @param WP_Post|object|string $object Post object on Edit Post screen, link object on Edit Link screen, * an empty string on Dashboard screen. */ do_action( 'do_meta_boxes', $post_type, 'normal', $post ); /** This action is documented in wp-admin/includes/meta-boxes.php */ do_action( 'do_meta_boxes', $post_type, 'advanced', $post ); /** This action is documented in wp-admin/includes/meta-boxes.php */ do_action( 'do_meta_boxes', $post_type, 'side', $post ); } includes/image.php000064400000130163152213653150010154 0ustar00crop( $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $src_abs ); if ( is_wp_error( $src ) ) { return $src; } if ( ! $dst_file ) { $dst_file = str_replace( wp_basename( $src_file ), 'cropped-' . wp_basename( $src_file ), $src_file ); } /* * The directory containing the original file may no longer exist when * using a replication plugin. */ wp_mkdir_p( dirname( $dst_file ) ); $dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), wp_basename( $dst_file ) ); $result = $editor->save( $dst_file ); if ( is_wp_error( $result ) ) { return $result; } if ( ! empty( $result['path'] ) ) { return $result['path']; } return $dst_file; } /** * Compare the existing image sub-sizes (as saved in the attachment meta) * to the currently registered image sub-sizes, and return the difference. * * Registered sub-sizes that are larger than the image are skipped. * * @since 5.3.0 * * @param int $attachment_id The image attachment post ID. * @return array[] Associative array of arrays of image sub-size information for * missing image sizes, keyed by image size name. */ function wp_get_missing_image_subsizes( $attachment_id ) { if ( ! wp_attachment_is_image( $attachment_id ) ) { return array(); } $registered_sizes = wp_get_registered_image_subsizes(); $image_meta = wp_get_attachment_metadata( $attachment_id ); // Meta error? if ( empty( $image_meta ) ) { return $registered_sizes; } // Use the originally uploaded image dimensions as full_width and full_height. if ( ! empty( $image_meta['original_image'] ) ) { $image_file = wp_get_original_image_path( $attachment_id ); $imagesize = wp_getimagesize( $image_file ); } if ( ! empty( $imagesize ) ) { $full_width = $imagesize[0]; $full_height = $imagesize[1]; } else { $full_width = (int) $image_meta['width']; $full_height = (int) $image_meta['height']; } $possible_sizes = array(); // Skip registered sizes that are too large for the uploaded image. foreach ( $registered_sizes as $size_name => $size_data ) { if ( image_resize_dimensions( $full_width, $full_height, $size_data['width'], $size_data['height'], $size_data['crop'] ) ) { $possible_sizes[ $size_name ] = $size_data; } } if ( empty( $image_meta['sizes'] ) ) { $image_meta['sizes'] = array(); } /* * Remove sizes that already exist. Only checks for matching "size names". * It is possible that the dimensions for a particular size name have changed. * For example the user has changed the values on the Settings -> Media screen. * However we keep the old sub-sizes with the previous dimensions * as the image may have been used in an older post. */ $missing_sizes = array_diff_key( $possible_sizes, $image_meta['sizes'] ); /** * Filters the array of missing image sub-sizes for an uploaded image. * * @since 5.3.0 * * @param array[] $missing_sizes Associative array of arrays of image sub-size information for * missing image sizes, keyed by image size name. * @param array $image_meta The image meta data. * @param int $attachment_id The image attachment post ID. */ return apply_filters( 'wp_get_missing_image_subsizes', $missing_sizes, $image_meta, $attachment_id ); } /** * If any of the currently registered image sub-sizes are missing, * create them and update the image meta data. * * @since 5.3.0 * * @param int $attachment_id The image attachment post ID. * @return array|WP_Error The updated image meta data array or WP_Error object * if both the image meta and the attached file are missing. */ function wp_update_image_subsizes( $attachment_id ) { $image_meta = wp_get_attachment_metadata( $attachment_id ); $image_file = wp_get_original_image_path( $attachment_id ); if ( empty( $image_meta ) || ! is_array( $image_meta ) ) { /* * Previously failed upload? * If there is an uploaded file, make all sub-sizes and generate all of the attachment meta. */ if ( ! empty( $image_file ) ) { $image_meta = wp_create_image_subsizes( $image_file, $attachment_id ); } else { return new WP_Error( 'invalid_attachment', __( 'The attached file cannot be found.' ) ); } } else { $missing_sizes = wp_get_missing_image_subsizes( $attachment_id ); if ( empty( $missing_sizes ) ) { return $image_meta; } // This also updates the image meta. $image_meta = _wp_make_subsizes( $missing_sizes, $image_file, $image_meta, $attachment_id ); } /** This filter is documented in wp-admin/includes/image.php */ $image_meta = apply_filters( 'wp_generate_attachment_metadata', $image_meta, $attachment_id, 'update' ); // Save the updated metadata. wp_update_attachment_metadata( $attachment_id, $image_meta ); return $image_meta; } /** * Updates the attached file and image meta data when the original image was edited. * * @since 5.3.0 * @since 6.0.0 The `$filesize` value was added to the returned array. * @access private * * @param array $saved_data The data returned from WP_Image_Editor after successfully saving an image. * @param string $original_file Path to the original file. * @param array $image_meta The image meta data. * @param int $attachment_id The attachment post ID. * @return array The updated image meta data. */ function _wp_image_meta_replace_original( $saved_data, $original_file, $image_meta, $attachment_id ) { $new_file = $saved_data['path']; // Update the attached file meta. update_attached_file( $attachment_id, $new_file ); // Width and height of the new image. $image_meta['width'] = $saved_data['width']; $image_meta['height'] = $saved_data['height']; // Make the file path relative to the upload dir. $image_meta['file'] = _wp_relative_upload_path( $new_file ); // Add image file size. $image_meta['filesize'] = wp_filesize( $new_file ); // Store the original image file name in image_meta. $image_meta['original_image'] = wp_basename( $original_file ); return $image_meta; } /** * Creates image sub-sizes, adds the new data to the image meta `sizes` array, and updates the image metadata. * * Intended for use after an image is uploaded. Saves/updates the image metadata after each * sub-size is created. If there was an error, it is added to the returned image metadata array. * * @since 5.3.0 * * @param string $file Full path to the image file. * @param int $attachment_id Attachment ID to process. * @return array The image attachment meta data. */ function wp_create_image_subsizes( $file, $attachment_id ) { $imagesize = wp_getimagesize( $file ); if ( empty( $imagesize ) ) { // File is not an image. return array(); } // Default image meta. $image_meta = array( 'width' => $imagesize[0], 'height' => $imagesize[1], 'file' => _wp_relative_upload_path( $file ), 'filesize' => wp_filesize( $file ), 'sizes' => array(), ); // Fetch additional metadata from EXIF/IPTC. $exif_meta = wp_read_image_metadata( $file ); if ( $exif_meta ) { $image_meta['image_meta'] = $exif_meta; } /** * Filters the "BIG image" threshold value. * * If the original image width or height is above the threshold, it will be scaled down. The threshold is * used as max width and max height. The scaled down image will be used as the largest available size, including * the `_wp_attached_file` post meta value. * * Returning `false` from the filter callback will disable the scaling. * * @since 5.3.0 * * @param int $threshold The threshold value in pixels. Default 2560. * @param array $imagesize { * Indexed array of the image width and height in pixels. * * @type int $0 The image width. * @type int $1 The image height. * } * @param string $file Full path to the uploaded image file. * @param int $attachment_id Attachment post ID. */ $threshold = (int) apply_filters( 'big_image_size_threshold', 2560, $imagesize, $file, $attachment_id ); /* * If the original image's dimensions are over the threshold, * scale the image and use it as the "full" size. */ $scale_down = false; $convert = false; if ( $threshold && ( $image_meta['width'] > $threshold || $image_meta['height'] > $threshold ) ) { // The image will be converted if needed on saving. $scale_down = true; } else { // The image may need to be converted regardless of its dimensions. $output_format = wp_get_image_editor_output_format( $file, $imagesize['mime'] ); if ( is_array( $output_format ) && array_key_exists( $imagesize['mime'], $output_format ) && $output_format[ $imagesize['mime'] ] !== $imagesize['mime'] ) { $convert = true; } } if ( $scale_down || $convert ) { $editor = wp_get_image_editor( $file ); if ( is_wp_error( $editor ) ) { // This image cannot be edited. return $image_meta; } if ( $scale_down ) { // Resize the image. This will also convet it if needed. $resized = $editor->resize( $threshold, $threshold ); } elseif ( $convert ) { // The image will be converted (if possible) when saved. $resized = true; } $rotated = null; // If there is EXIF data, rotate according to EXIF Orientation. if ( ! is_wp_error( $resized ) && is_array( $exif_meta ) ) { $resized = $editor->maybe_exif_rotate(); $rotated = $resized; // bool true or WP_Error } if ( ! is_wp_error( $resized ) ) { /* * Append "-scaled" to the image file name. It will look like "my_image-scaled.jpg". * This doesn't affect the sub-sizes names as they are generated from the original image (for best quality). */ if ( $scale_down ) { $saved = $editor->save( $editor->generate_filename( 'scaled' ) ); } elseif ( $convert ) { // Pass an empty string to avoid adding a suffix to converted file names. $saved = $editor->save( $editor->generate_filename( '' ) ); } else { $saved = $editor->save(); } if ( ! is_wp_error( $saved ) ) { $image_meta = _wp_image_meta_replace_original( $saved, $file, $image_meta, $attachment_id ); // If the image was rotated update the stored EXIF data. if ( true === $rotated && ! empty( $image_meta['image_meta']['orientation'] ) ) { $image_meta['image_meta']['orientation'] = 1; } } else { // TODO: Log errors. } } else { // TODO: Log errors. } } elseif ( ! empty( $exif_meta['orientation'] ) && 1 !== (int) $exif_meta['orientation'] ) { // Rotate the whole original image if there is EXIF data and "orientation" is not 1. $editor = wp_get_image_editor( $file ); if ( is_wp_error( $editor ) ) { // This image cannot be edited. return $image_meta; } // Rotate the image. $rotated = $editor->maybe_exif_rotate(); if ( true === $rotated ) { // Append `-rotated` to the image file name. $saved = $editor->save( $editor->generate_filename( 'rotated' ) ); if ( ! is_wp_error( $saved ) ) { $image_meta = _wp_image_meta_replace_original( $saved, $file, $image_meta, $attachment_id ); // Update the stored EXIF data. if ( ! empty( $image_meta['image_meta']['orientation'] ) ) { $image_meta['image_meta']['orientation'] = 1; } } else { // TODO: Log errors. } } } /* * Initial save of the new metadata. * At this point the file was uploaded and moved to the uploads directory * but the image sub-sizes haven't been created yet and the `sizes` array is empty. */ wp_update_attachment_metadata( $attachment_id, $image_meta ); $new_sizes = wp_get_registered_image_subsizes(); /** * Filters the image sizes automatically generated when uploading an image. * * @since 2.9.0 * @since 4.4.0 Added the `$image_meta` argument. * @since 5.3.0 Added the `$attachment_id` argument. * * @param array $new_sizes Associative array of image sizes to be created. * @param array $image_meta The image meta data: width, height, file, sizes, etc. * @param int $attachment_id The attachment post ID for the image. */ $new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id ); return _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id ); } /** * Low-level function to create image sub-sizes. * * Updates the image meta after each sub-size is created. * Errors are stored in the returned image metadata array. * * @since 5.3.0 * @access private * * @param array $new_sizes Array defining what sizes to create. * @param string $file Full path to the image file. * @param array $image_meta The attachment meta data array. * @param int $attachment_id Attachment ID to process. * @return array The attachment meta data with updated `sizes` array. Includes an array of errors encountered while resizing. */ function _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id ) { if ( empty( $image_meta ) || ! is_array( $image_meta ) ) { // Not an image attachment. return array(); } // Check if any of the new sizes already exist. if ( isset( $image_meta['sizes'] ) && is_array( $image_meta['sizes'] ) ) { foreach ( $image_meta['sizes'] as $size_name => $size_meta ) { /* * Only checks "size name" so we don't override existing images even if the dimensions * don't match the currently defined size with the same name. * To change the behavior, unset changed/mismatched sizes in the `sizes` array in image meta. */ if ( array_key_exists( $size_name, $new_sizes ) ) { unset( $new_sizes[ $size_name ] ); } } } else { $image_meta['sizes'] = array(); } if ( empty( $new_sizes ) ) { // Nothing to do... return $image_meta; } /* * Sort the image sub-sizes in order of priority when creating them. * This ensures there is an appropriate sub-size the user can access immediately * even when there was an error and not all sub-sizes were created. */ $priority = array( 'medium' => null, 'large' => null, 'thumbnail' => null, 'medium_large' => null, ); $new_sizes = array_filter( array_merge( $priority, $new_sizes ) ); $editor = wp_get_image_editor( $file ); if ( is_wp_error( $editor ) ) { // The image cannot be edited. return $image_meta; } // If stored EXIF data exists, rotate the source image before creating sub-sizes. if ( ! empty( $image_meta['image_meta'] ) ) { $rotated = $editor->maybe_exif_rotate(); if ( is_wp_error( $rotated ) ) { // TODO: Log errors. } } if ( method_exists( $editor, 'make_subsize' ) ) { foreach ( $new_sizes as $new_size_name => $new_size_data ) { $new_size_meta = $editor->make_subsize( $new_size_data ); if ( is_wp_error( $new_size_meta ) ) { // TODO: Log errors. } else { // Save the size meta value. $image_meta['sizes'][ $new_size_name ] = $new_size_meta; wp_update_attachment_metadata( $attachment_id, $image_meta ); } } } else { // Fall back to `$editor->multi_resize()`. $created_sizes = $editor->multi_resize( $new_sizes ); if ( ! empty( $created_sizes ) ) { $image_meta['sizes'] = array_merge( $image_meta['sizes'], $created_sizes ); wp_update_attachment_metadata( $attachment_id, $image_meta ); } } return $image_meta; } /** * Copy parent attachment properties to newly cropped image. * * @since 6.5.0 * * @param string $cropped Path to the cropped image file. * @param int $parent_attachment_id Parent file Attachment ID. * @param string $context Control calling the function. * @return array Properties of attachment. */ function wp_copy_parent_attachment_properties( $cropped, $parent_attachment_id, $context = '' ) { $parent = get_post( $parent_attachment_id ); $parent_url = wp_get_attachment_url( $parent->ID ); $parent_basename = wp_basename( $parent_url ); $url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url ); $size = wp_getimagesize( $cropped ); $image_type = $size ? $size['mime'] : 'image/jpeg'; $sanitized_post_title = sanitize_file_name( $parent->post_title ); $use_original_title = ( ( '' !== trim( $parent->post_title ) ) && /* * Check if the original image has a title other than the "filename" default, * meaning the image had a title when originally uploaded or its title was edited. */ ( $parent_basename !== $sanitized_post_title ) && ( pathinfo( $parent_basename, PATHINFO_FILENAME ) !== $sanitized_post_title ) ); $use_original_description = ( '' !== trim( $parent->post_content ) ); $attachment = array( 'post_title' => $use_original_title ? $parent->post_title : wp_basename( $cropped ), 'post_content' => $use_original_description ? $parent->post_content : $url, 'post_mime_type' => $image_type, 'guid' => $url, 'context' => $context, ); // Copy the image caption attribute (post_excerpt field) from the original image. if ( '' !== trim( $parent->post_excerpt ) ) { $attachment['post_excerpt'] = $parent->post_excerpt; } // Copy the image alt text attribute from the original image. if ( '' !== trim( $parent->_wp_attachment_image_alt ) ) { $attachment['meta_input'] = array( '_wp_attachment_image_alt' => wp_slash( $parent->_wp_attachment_image_alt ), ); } $attachment['post_parent'] = $parent_attachment_id; return $attachment; } /** * Generates attachment meta data and create image sub-sizes for images. * * @since 2.1.0 * @since 6.0.0 The `$filesize` value was added to the returned array. * @since 6.7.0 The 'image/heic' mime type is supported. * * @param int $attachment_id Attachment ID to process. * @param string $file Filepath of the attached image. * @return array Metadata for attachment. */ function wp_generate_attachment_metadata( $attachment_id, $file ) { $attachment = get_post( $attachment_id ); $metadata = array(); $support = false; $mime_type = get_post_mime_type( $attachment ); if ( 'image/heic' === $mime_type || ( preg_match( '!^image/!', $mime_type ) && file_is_displayable_image( $file ) ) ) { // Make thumbnails and other intermediate sizes. $metadata = wp_create_image_subsizes( $file, $attachment_id ); } elseif ( wp_attachment_is( 'video', $attachment ) ) { $metadata = wp_read_video_metadata( $file ); $support = current_theme_supports( 'post-thumbnails', 'attachment:video' ) || post_type_supports( 'attachment:video', 'thumbnail' ); } elseif ( wp_attachment_is( 'audio', $attachment ) ) { $metadata = wp_read_audio_metadata( $file ); $support = current_theme_supports( 'post-thumbnails', 'attachment:audio' ) || post_type_supports( 'attachment:audio', 'thumbnail' ); } /* * wp_read_video_metadata() and wp_read_audio_metadata() return `false` * if the attachment does not exist in the local filesystem, * so make sure to convert the value to an array. */ if ( ! is_array( $metadata ) ) { $metadata = array(); } if ( $support && ! empty( $metadata['image']['data'] ) ) { // Check for existing cover. $hash = md5( $metadata['image']['data'] ); $posts = get_posts( array( 'fields' => 'ids', 'post_type' => 'attachment', 'post_mime_type' => $metadata['image']['mime'], 'post_status' => 'inherit', 'posts_per_page' => 1, 'meta_key' => '_cover_hash', 'meta_value' => $hash, ) ); $exists = reset( $posts ); if ( ! empty( $exists ) ) { update_post_meta( $attachment_id, '_thumbnail_id', $exists ); } else { $ext = '.jpg'; switch ( $metadata['image']['mime'] ) { case 'image/gif': $ext = '.gif'; break; case 'image/png': $ext = '.png'; break; case 'image/webp': $ext = '.webp'; break; } $basename = str_replace( '.', '-', wp_basename( $file ) ) . '-image' . $ext; $uploaded = wp_upload_bits( $basename, '', $metadata['image']['data'] ); if ( false === $uploaded['error'] ) { $image_attachment = array( 'post_mime_type' => $metadata['image']['mime'], 'post_type' => 'attachment', 'post_content' => '', ); /** * Filters the parameters for the attachment thumbnail creation. * * @since 3.9.0 * * @param array $image_attachment An array of parameters to create the thumbnail. * @param array $metadata Current attachment metadata. * @param array $uploaded { * Information about the newly-uploaded file. * * @type string $file Filename of the newly-uploaded file. * @type string $url URL of the uploaded file. * @type string $type File type. * } */ $image_attachment = apply_filters( 'attachment_thumbnail_args', $image_attachment, $metadata, $uploaded ); $sub_attachment_id = wp_insert_attachment( $image_attachment, $uploaded['file'] ); add_post_meta( $sub_attachment_id, '_cover_hash', $hash ); $attach_data = wp_generate_attachment_metadata( $sub_attachment_id, $uploaded['file'] ); wp_update_attachment_metadata( $sub_attachment_id, $attach_data ); update_post_meta( $attachment_id, '_thumbnail_id', $sub_attachment_id ); } } } elseif ( 'application/pdf' === $mime_type ) { // Try to create image thumbnails for PDFs. $fallback_sizes = array( 'thumbnail', 'medium', 'large', ); /** * Filters the image sizes generated for non-image mime types. * * @since 4.7.0 * * @param string[] $fallback_sizes An array of image size names. * @param array $metadata Current attachment metadata. */ $fallback_sizes = apply_filters( 'fallback_intermediate_image_sizes', $fallback_sizes, $metadata ); $registered_sizes = wp_get_registered_image_subsizes(); $merged_sizes = array_intersect_key( $registered_sizes, array_flip( $fallback_sizes ) ); // Force thumbnails to be soft crops. if ( isset( $merged_sizes['thumbnail'] ) && is_array( $merged_sizes['thumbnail'] ) ) { $merged_sizes['thumbnail']['crop'] = false; } // Only load PDFs in an image editor if we're processing sizes. if ( ! empty( $merged_sizes ) ) { $editor = wp_get_image_editor( $file ); if ( ! is_wp_error( $editor ) ) { // No support for this type of file. /* * PDFs may have the same file filename as JPEGs. * Ensure the PDF preview image does not overwrite any JPEG images that already exist. */ $dirname = dirname( $file ) . '/'; $ext = '.' . pathinfo( $file, PATHINFO_EXTENSION ); $preview_file = $dirname . wp_unique_filename( $dirname, wp_basename( $file, $ext ) . '-pdf.jpg' ); $uploaded = $editor->save( $preview_file, 'image/jpeg' ); unset( $editor ); // Resize based on the full size image, rather than the source. if ( ! is_wp_error( $uploaded ) ) { $image_file = $uploaded['path']; unset( $uploaded['path'] ); $metadata['sizes'] = array( 'full' => $uploaded, ); // Save the meta data before any image post-processing errors could happen. wp_update_attachment_metadata( $attachment_id, $metadata ); // Create sub-sizes saving the image meta after each. $metadata = _wp_make_subsizes( $merged_sizes, $image_file, $metadata, $attachment_id ); } } } } // Remove the blob of binary data from the array. unset( $metadata['image']['data'] ); // Capture file size for cases where it has not been captured yet, such as PDFs. if ( ! isset( $metadata['filesize'] ) && file_exists( $file ) ) { $metadata['filesize'] = wp_filesize( $file ); } /** * Filters the generated attachment meta data. * * @since 2.1.0 * @since 5.3.0 The `$context` parameter was added. * * @param array $metadata An array of attachment meta data. * @param int $attachment_id Current attachment ID. * @param string $context Additional context. Can be 'create' when metadata was initially created for new attachment * or 'update' when the metadata was updated. */ return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id, 'create' ); } /** * Converts a fraction string to a decimal. * * @since 2.5.0 * * @param string $str Fraction string. * @return int|float Returns calculated fraction or integer 0 on invalid input. */ function wp_exif_frac2dec( $str ) { if ( ! is_scalar( $str ) || is_bool( $str ) ) { return 0; } if ( ! is_string( $str ) ) { return $str; // This can only be an integer or float, so this is fine. } // Fractions passed as a string must contain a single `/`. if ( substr_count( $str, '/' ) !== 1 ) { if ( is_numeric( $str ) ) { return (float) $str; } return 0; } list( $numerator, $denominator ) = explode( '/', $str ); // Both the numerator and the denominator must be numbers. if ( ! is_numeric( $numerator ) || ! is_numeric( $denominator ) ) { return 0; } // The denominator must not be zero. if ( 0 == $denominator ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual -- Deliberate loose comparison. return 0; } return $numerator / $denominator; } /** * Converts the exif date format to a unix timestamp. * * @since 2.5.0 * * @param string $str A date string expected to be in Exif format (Y:m:d H:i:s). * @return int|false The unix timestamp, or false on failure. */ function wp_exif_date2ts( $str ) { list( $date, $time ) = explode( ' ', trim( $str ) ); list( $y, $m, $d ) = explode( ':', $date ); return strtotime( "{$y}-{$m}-{$d} {$time}" ); } /** * Gets extended image metadata, exif or iptc as available. * * Retrieves the EXIF metadata aperture, credit, camera, caption, copyright, iso * created_timestamp, focal_length, shutter_speed, and title. * * The IPTC metadata that is retrieved is APP13, credit, byline, created date * and time, caption, copyright, alt, and title. Also includes FNumber, Model, * DateTimeDigitized, FocalLength, ISOSpeedRatings, and ExposureTime. * * @todo Try other exif libraries if available. * @since 2.5.0 * * @param string $file * @return array|false Image metadata array on success, false on failure. */ function wp_read_image_metadata( $file ) { if ( ! file_exists( $file ) ) { return false; } $image_size = wp_getimagesize( $file ); if ( false === $image_size ) { return false; } list( , , $image_type ) = $image_size; /* * EXIF contains a bunch of data we'll probably never need formatted in ways * that are difficult to use. We'll normalize it and just extract the fields * that are likely to be useful. Fractions and numbers are converted to * floats, dates to unix timestamps, and everything else to strings. */ $meta = array( 'aperture' => 0, 'credit' => '', 'camera' => '', 'caption' => '', 'created_timestamp' => 0, 'copyright' => '', 'focal_length' => 0, 'iso' => 0, 'shutter_speed' => 0, 'title' => '', 'orientation' => 0, 'keywords' => array(), 'alt' => '', ); $iptc = array(); $info = array(); /* * Read IPTC first, since it might contain data not available in exif such * as caption, description etc. */ if ( is_callable( 'iptcparse' ) ) { wp_getimagesize( $file, $info ); if ( ! empty( $info['APP13'] ) ) { // Don't silence errors when in debug mode, unless running unit tests. if ( defined( 'WP_DEBUG' ) && WP_DEBUG && ! defined( 'WP_RUN_CORE_TESTS' ) ) { $iptc = iptcparse( $info['APP13'] ); } else { // Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480 $iptc = @iptcparse( $info['APP13'] ); } if ( ! is_array( $iptc ) ) { $iptc = array(); } // Headline, "A brief synopsis of the caption". if ( ! empty( $iptc['2#105'][0] ) ) { $meta['title'] = trim( $iptc['2#105'][0] ); /* * Title, "Many use the Title field to store the filename of the image, * though the field may be used in many ways". */ } elseif ( ! empty( $iptc['2#005'][0] ) ) { $meta['title'] = trim( $iptc['2#005'][0] ); } if ( ! empty( $iptc['2#120'][0] ) ) { // Description / legacy caption. $caption = trim( $iptc['2#120'][0] ); mbstring_binary_safe_encoding(); $caption_length = strlen( $caption ); reset_mbstring_encoding(); if ( empty( $meta['title'] ) && $caption_length < 80 ) { // Assume the title is stored in 2:120 if it's short. $meta['title'] = $caption; } $meta['caption'] = $caption; } if ( ! empty( $iptc['2#110'][0] ) ) { // Credit. $meta['credit'] = trim( $iptc['2#110'][0] ); } elseif ( ! empty( $iptc['2#080'][0] ) ) { // Creator / legacy byline. $meta['credit'] = trim( $iptc['2#080'][0] ); } if ( ! empty( $iptc['2#055'][0] ) && ! empty( $iptc['2#060'][0] ) ) { // Created date and time. $meta['created_timestamp'] = strtotime( $iptc['2#055'][0] . ' ' . $iptc['2#060'][0] ); } if ( ! empty( $iptc['2#116'][0] ) ) { // Copyright. $meta['copyright'] = trim( $iptc['2#116'][0] ); } if ( ! empty( $iptc['2#025'][0] ) ) { // Keywords array. $meta['keywords'] = array_values( $iptc['2#025'] ); } } } $meta['alt'] = wp_get_image_alttext( $file ); $exif = array(); /** * Filters the image types to check for exif data. * * @since 2.5.0 * * @param int[] $image_types Array of image types to check for exif data. Each value * is usually one of the `IMAGETYPE_*` constants. */ $exif_image_types = apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ); if ( is_callable( 'exif_read_data' ) && in_array( $image_type, $exif_image_types, true ) ) { // Don't silence errors when in debug mode, unless running unit tests. if ( defined( 'WP_DEBUG' ) && WP_DEBUG && ! defined( 'WP_RUN_CORE_TESTS' ) ) { $exif = exif_read_data( $file ); } else { // Silencing notice and warning is intentional. See https://core.trac.wordpress.org/ticket/42480 $exif = @exif_read_data( $file ); } if ( ! is_array( $exif ) ) { $exif = array(); } $exif_description = ''; $exif_usercomment = ''; if ( ! empty( $exif['ImageDescription'] ) ) { $exif_description = trim( $exif['ImageDescription'] ); } if ( ! empty( $exif['COMPUTED']['UserComment'] ) ) { $exif_usercomment = trim( $exif['COMPUTED']['UserComment'] ); } if ( $exif_description ) { mbstring_binary_safe_encoding(); $description_length = strlen( $exif_description ); reset_mbstring_encoding(); if ( empty( $meta['title'] ) && $description_length < 80 ) { // Assume the title is stored in ImageDescription. $meta['title'] = $exif_description; } // If both user comments and description are present. if ( empty( $meta['caption'] ) && $exif_usercomment ) { if ( ! empty( $meta['title'] ) && $exif_description === $meta['title'] ) { $caption = $exif_usercomment; } else { if ( $exif_description === $exif_usercomment ) { $caption = $exif_description; } else { $caption = trim( $exif_description . ' ' . $exif_usercomment ); } } $meta['caption'] = $caption; } if ( empty( $meta['caption'] ) && $exif_usercomment ) { $meta['caption'] = $exif_usercomment; } if ( empty( $meta['caption'] ) ) { $meta['caption'] = $exif_description; } } elseif ( empty( $meta['caption'] ) && $exif_usercomment ) { $meta['caption'] = $exif_usercomment; $description_length = strlen( $exif_usercomment ); if ( empty( $meta['title'] ) && $description_length < 80 ) { $meta['title'] = trim( $exif_usercomment ); } } elseif ( empty( $meta['caption'] ) && ! empty( $exif['Comments'] ) ) { $meta['caption'] = trim( $exif['Comments'] ); } if ( empty( $meta['credit'] ) ) { if ( ! empty( $exif['Artist'] ) ) { $meta['credit'] = trim( $exif['Artist'] ); } elseif ( ! empty( $exif['Author'] ) ) { $meta['credit'] = trim( $exif['Author'] ); } } if ( empty( $meta['copyright'] ) && ! empty( $exif['Copyright'] ) ) { $meta['copyright'] = trim( $exif['Copyright'] ); } if ( ! empty( $exif['FNumber'] ) && is_scalar( $exif['FNumber'] ) ) { $meta['aperture'] = round( wp_exif_frac2dec( $exif['FNumber'] ), 2 ); } if ( ! empty( $exif['Model'] ) ) { $meta['camera'] = trim( $exif['Model'] ); } if ( empty( $meta['created_timestamp'] ) && ! empty( $exif['DateTimeDigitized'] ) ) { $meta['created_timestamp'] = wp_exif_date2ts( $exif['DateTimeDigitized'] ); } if ( ! empty( $exif['FocalLength'] ) ) { $meta['focal_length'] = (string) $exif['FocalLength']; if ( is_scalar( $exif['FocalLength'] ) ) { $meta['focal_length'] = (string) wp_exif_frac2dec( $exif['FocalLength'] ); } } if ( ! empty( $exif['ISOSpeedRatings'] ) ) { $meta['iso'] = is_array( $exif['ISOSpeedRatings'] ) ? reset( $exif['ISOSpeedRatings'] ) : $exif['ISOSpeedRatings']; $meta['iso'] = trim( $meta['iso'] ); } if ( ! empty( $exif['ExposureTime'] ) ) { $meta['shutter_speed'] = (string) $exif['ExposureTime']; if ( is_scalar( $exif['ExposureTime'] ) ) { $meta['shutter_speed'] = (string) wp_exif_frac2dec( $exif['ExposureTime'] ); } } if ( ! empty( $exif['Orientation'] ) ) { $meta['orientation'] = $exif['Orientation']; } } foreach ( array( 'title', 'caption', 'credit', 'copyright', 'camera', 'iso' ) as $key ) { if ( $meta[ $key ] && ! wp_is_valid_utf8( $meta[ $key ] ) ) { $meta[ $key ] = utf8_encode( $meta[ $key ] ); } } foreach ( $meta['keywords'] as $key => $keyword ) { if ( ! wp_is_valid_utf8( $keyword ) ) { $meta['keywords'][ $key ] = utf8_encode( $keyword ); } } $meta = wp_kses_post_deep( $meta ); /** * Filters the array of meta data read from an image's exif data. * * @since 2.5.0 * @since 4.4.0 The `$iptc` parameter was added. * @since 5.0.0 The `$exif` parameter was added. * * @param array $meta Image meta data. * @param string $file Path to image file. * @param int $image_type Type of image, one of the `IMAGETYPE_XXX` constants. * @param array $iptc IPTC data. * @param array $exif EXIF data. */ return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc, $exif ); } /** * Gets the alt text from image meta data. * * @since 7.0.0 * * @param string $file File path to the image. * @return string Embedded alternative text. */ function wp_get_image_alttext( $file ) { $alt_text = ''; $img_contents = file_get_contents( $file ); if ( false === $img_contents ) { return $alt_text; } // Find the start and end positions of the XMP metadata. $xmp_start = strpos( $img_contents, '' ); if ( false === $xmp_start || false === $xmp_end ) { // No XMP metadata found. return $alt_text; } // Extract the XMP metadata from the JPEG contents $xmp_data = substr( $img_contents, $xmp_start, $xmp_end - $xmp_start + 12 ); // Parse the XMP metadata using DOMDocument. $doc = new DOMDocument(); if ( false === $doc->loadXML( $xmp_data ) ) { // Invalid XML in metadata. return $alt_text; } // Instantiate an XPath object, used to extract portions of the XMP. $xpath = new DOMXPath( $doc ); // Register the relevant XML namespaces. $xpath->registerNamespace( 'x', 'adobe:ns:meta/' ); $xpath->registerNamespace( 'rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' ); $xpath->registerNamespace( 'Iptc4xmpCore', 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/' ); $node_list = $xpath->query( '/x:xmpmeta/rdf:RDF/rdf:Description/Iptc4xmpCore:AltTextAccessibility' ); if ( $node_list && $node_list->count() ) { $node = $node_list->item( 0 ); // Get the site's locale. $locale = get_locale(); // Get the alt text accessibility alternative most appropriate for the site language. // There are 3 possibilities: // // 1. there is an rdf:li with an exact match on the site locale. // 2. there is an rdf:li with a partial match on the site locale (e.g., site locale is en_US and rdf:li has @xml:lang="en"). // 3. there is an rdf:li with an "x-default" lang. // // Evaluate in that order, stopping when we have a match. $alt_text = $xpath->evaluate( "string( rdf:Alt/rdf:li[ @xml:lang = '{$locale}' ] )", $node ); if ( ! $alt_text ) { $alt_text = $xpath->evaluate( 'string( rdf:Alt/rdf:li[ @xml:lang = "' . substr( $locale, 0, 2 ) . '" ] )', $node ); if ( ! $alt_text ) { $alt_text = $xpath->evaluate( 'string( rdf:Alt/rdf:li[ @xml:lang = "x-default" ] )', $node ); } } } return $alt_text; } /** * Validates that file is an image. * * @since 2.5.0 * * @param string $path File path to test if valid image. * @return bool True if valid image, false if not valid image. */ function file_is_valid_image( $path ) { $size = wp_getimagesize( $path ); return ! empty( $size ); } /** * Validates that file is suitable for displaying within a web page. * * @since 2.5.0 * * @param string $path File path to test. * @return bool True if suitable, false if not suitable. */ function file_is_displayable_image( $path ) { $displayable_image_types = array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP, IMAGETYPE_ICO, IMAGETYPE_WEBP, IMAGETYPE_AVIF ); $info = wp_getimagesize( $path ); if ( empty( $info ) ) { $result = false; } elseif ( ! in_array( $info[2], $displayable_image_types, true ) ) { $result = false; } else { $result = true; } /** * Filters whether the current image is displayable in the browser. * * @since 2.5.0 * * @param bool $result Whether the image can be displayed. Default true. * @param string $path Path to the image. */ return apply_filters( 'file_is_displayable_image', $result, $path ); } /** * Loads an image resource for editing. * * @since 2.9.0 * * @param int $attachment_id Attachment ID. * @param string $mime_type Image mime type. * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array * of width and height values in pixels (in that order). Default 'full'. * @return resource|GdImage|false The resulting image resource or GdImage instance on success, * false on failure. */ function load_image_to_edit( $attachment_id, $mime_type, $size = 'full' ) { $filepath = _load_image_to_edit_path( $attachment_id, $size ); if ( empty( $filepath ) ) { return false; } switch ( $mime_type ) { case 'image/jpeg': $image = imagecreatefromjpeg( $filepath ); break; case 'image/png': $image = imagecreatefrompng( $filepath ); break; case 'image/gif': $image = imagecreatefromgif( $filepath ); break; case 'image/webp': $image = false; if ( function_exists( 'imagecreatefromwebp' ) ) { $image = imagecreatefromwebp( $filepath ); } break; default: $image = false; break; } if ( is_gd_image( $image ) ) { /** * Filters the current image being loaded for editing. * * @since 2.9.0 * * @param resource|GdImage $image Current image. * @param int $attachment_id Attachment ID. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ $image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size ); if ( function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) { imagealphablending( $image, false ); imagesavealpha( $image, true ); } } return $image; } /** * Retrieves the path or URL of an attachment's attached file. * * If the attached file is not present on the local filesystem (usually due to replication plugins), * then the URL of the file is returned if `allow_url_fopen` is supported. * * @since 3.4.0 * @access private * * @param int $attachment_id Attachment ID. * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array * of width and height values in pixels (in that order). Default 'full'. * @return string|false File path or URL on success, false on failure. */ function _load_image_to_edit_path( $attachment_id, $size = 'full' ) { $filepath = get_attached_file( $attachment_id ); if ( $filepath && file_exists( $filepath ) ) { if ( 'full' !== $size ) { $data = image_get_intermediate_size( $attachment_id, $size ); if ( $data ) { $filepath = path_join( dirname( $filepath ), $data['file'] ); /** * Filters the path to an attachment's file when editing the image. * * The filter is evaluated for all image sizes except 'full'. * * @since 3.1.0 * * @param string $path Path to the current image. * @param int $attachment_id Attachment ID. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ $filepath = apply_filters( 'load_image_to_edit_filesystempath', $filepath, $attachment_id, $size ); } } } elseif ( function_exists( 'fopen' ) && ini_get( 'allow_url_fopen' ) ) { /** * Filters the path to an attachment's URL when editing the image. * * The filter is only evaluated if the file isn't stored locally and `allow_url_fopen` is enabled on the server. * * @since 3.1.0 * * @param string|false $image_url Current image URL. * @param int $attachment_id Attachment ID. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ $filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size ); } /** * Filters the returned path or URL of the current image. * * @since 2.9.0 * * @param string|false $filepath File path or URL to current image, or false. * @param int $attachment_id Attachment ID. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ return apply_filters( 'load_image_to_edit_path', $filepath, $attachment_id, $size ); } /** * Copies an existing image file. * * @since 3.4.0 * @access private * * @param int $attachment_id Attachment ID. * @return string|false New file path on success, false on failure. */ function _copy_image_file( $attachment_id ) { $dst_file = get_attached_file( $attachment_id ); $src_file = $dst_file; if ( ! file_exists( $src_file ) ) { $src_file = _load_image_to_edit_path( $attachment_id ); } if ( $src_file ) { $dst_file = str_replace( wp_basename( $dst_file ), 'copy-' . wp_basename( $dst_file ), $dst_file ); $dst_file = dirname( $dst_file ) . '/' . wp_unique_filename( dirname( $dst_file ), wp_basename( $dst_file ) ); /* * The directory containing the original file may no longer * exist when using a replication plugin. */ wp_mkdir_p( dirname( $dst_file ) ); if ( ! copy( $src_file, $dst_file ) ) { $dst_file = false; } } else { $dst_file = false; } return $dst_file; } includes/noop.php000064400000002174152213653150010045 0ustar00 'wp-includes/Requests/Auth.php', 'Requests_Hooker' => 'wp-includes/Requests/Hooker.php', 'Requests_Proxy' => 'wp-includes/Requests/Proxy.php', 'Requests_Transport' => 'wp-includes/Requests/Transport.php', // Classes. 'Requests_Auth_Basic' => 'wp-includes/Requests/Auth/Basic.php', 'Requests_Cookie_Jar' => 'wp-includes/Requests/Cookie/Jar.php', 'Requests_Exception_HTTP' => 'wp-includes/Requests/Exception/HTTP.php', 'Requests_Exception_Transport' => 'wp-includes/Requests/Exception/Transport.php', 'Requests_Exception_HTTP_304' => 'wp-includes/Requests/Exception/HTTP/304.php', 'Requests_Exception_HTTP_305' => 'wp-includes/Requests/Exception/HTTP/305.php', 'Requests_Exception_HTTP_306' => 'wp-includes/Requests/Exception/HTTP/306.php', 'Requests_Exception_HTTP_400' => 'wp-includes/Requests/Exception/HTTP/400.php', 'Requests_Exception_HTTP_401' => 'wp-includes/Requests/Exception/HTTP/401.php', 'Requests_Exception_HTTP_402' => 'wp-includes/Requests/Exception/HTTP/402.php', 'Requests_Exception_HTTP_403' => 'wp-includes/Requests/Exception/HTTP/403.php', 'Requests_Exception_HTTP_404' => 'wp-includes/Requests/Exception/HTTP/404.php', 'Requests_Exception_HTTP_405' => 'wp-includes/Requests/Exception/HTTP/405.php', 'Requests_Exception_HTTP_406' => 'wp-includes/Requests/Exception/HTTP/406.php', 'Requests_Exception_HTTP_407' => 'wp-includes/Requests/Exception/HTTP/407.php', 'Requests_Exception_HTTP_408' => 'wp-includes/Requests/Exception/HTTP/408.php', 'Requests_Exception_HTTP_409' => 'wp-includes/Requests/Exception/HTTP/409.php', 'Requests_Exception_HTTP_410' => 'wp-includes/Requests/Exception/HTTP/410.php', 'Requests_Exception_HTTP_411' => 'wp-includes/Requests/Exception/HTTP/411.php', 'Requests_Exception_HTTP_412' => 'wp-includes/Requests/Exception/HTTP/412.php', 'Requests_Exception_HTTP_413' => 'wp-includes/Requests/Exception/HTTP/413.php', 'Requests_Exception_HTTP_414' => 'wp-includes/Requests/Exception/HTTP/414.php', 'Requests_Exception_HTTP_415' => 'wp-includes/Requests/Exception/HTTP/415.php', 'Requests_Exception_HTTP_416' => 'wp-includes/Requests/Exception/HTTP/416.php', 'Requests_Exception_HTTP_417' => 'wp-includes/Requests/Exception/HTTP/417.php', 'Requests_Exception_HTTP_418' => 'wp-includes/Requests/Exception/HTTP/418.php', 'Requests_Exception_HTTP_428' => 'wp-includes/Requests/Exception/HTTP/428.php', 'Requests_Exception_HTTP_429' => 'wp-includes/Requests/Exception/HTTP/429.php', 'Requests_Exception_HTTP_431' => 'wp-includes/Requests/Exception/HTTP/431.php', 'Requests_Exception_HTTP_500' => 'wp-includes/Requests/Exception/HTTP/500.php', 'Requests_Exception_HTTP_501' => 'wp-includes/Requests/Exception/HTTP/501.php', 'Requests_Exception_HTTP_502' => 'wp-includes/Requests/Exception/HTTP/502.php', 'Requests_Exception_HTTP_503' => 'wp-includes/Requests/Exception/HTTP/503.php', 'Requests_Exception_HTTP_504' => 'wp-includes/Requests/Exception/HTTP/504.php', 'Requests_Exception_HTTP_505' => 'wp-includes/Requests/Exception/HTTP/505.php', 'Requests_Exception_HTTP_511' => 'wp-includes/Requests/Exception/HTTP/511.php', 'Requests_Exception_HTTP_Unknown' => 'wp-includes/Requests/Exception/HTTP/Unknown.php', 'Requests_Exception_Transport_cURL' => 'wp-includes/Requests/Exception/Transport/cURL.php', 'Requests_Proxy_HTTP' => 'wp-includes/Requests/Proxy/HTTP.php', 'Requests_Response_Headers' => 'wp-includes/Requests/Response/Headers.php', 'Requests_Transport_cURL' => 'wp-includes/Requests/Transport/cURL.php', 'Requests_Transport_fsockopen' => 'wp-includes/Requests/Transport/fsockopen.php', 'Requests_Utility_CaseInsensitiveDictionary' => 'wp-includes/Requests/Utility/CaseInsensitiveDictionary.php', 'Requests_Utility_FilteredIterator' => 'wp-includes/Requests/Utility/FilteredIterator.php', 'Requests_Cookie' => 'wp-includes/Requests/Cookie.php', 'Requests_Exception' => 'wp-includes/Requests/Exception.php', 'Requests_Hooks' => 'wp-includes/Requests/Hooks.php', 'Requests_IDNAEncoder' => 'wp-includes/Requests/IDNAEncoder.php', 'Requests_IPv6' => 'wp-includes/Requests/IPv6.php', 'Requests_IRI' => 'wp-includes/Requests/IRI.php', 'Requests_Response' => 'wp-includes/Requests/Response.php', 'Requests_SSL' => 'wp-includes/Requests/SSL.php', 'Requests_Session' => 'wp-includes/Requests/Session.php', // Directories. 'wp-includes/Requests/Auth/', 'wp-includes/Requests/Cookie/', 'wp-includes/Requests/Exception/HTTP/', 'wp-includes/Requests/Exception/Transport/', 'wp-includes/Requests/Exception/', 'wp-includes/Requests/Proxy/', 'wp-includes/Requests/Response/', 'wp-includes/Requests/Transport/', 'wp-includes/Requests/Utility/', ); /** * Stores new files in wp-content to copy * * The contents of this array indicate any new bundled plugins/themes which * should be installed with the WordPress Upgrade. These items will not be * re-installed in future upgrades, this behavior is controlled by the * introduced version present here being older than the current installed version. * * The content of this array should follow the following format: * Filename (relative to wp-content) => Introduced version * Directories should be noted by suffixing it with a trailing slash (/) * * @since 3.2.0 * @since 4.7.0 New themes were not automatically installed for 4.4-4.6 on * upgrade. New themes are now installed again. To disable new * themes from being installed on upgrade, explicitly define * CORE_UPGRADE_SKIP_NEW_BUNDLED as true. * @global string[] $_new_bundled_files * @var string[] * @name $_new_bundled_files */ global $_new_bundled_files; $_new_bundled_files = array( 'plugins/akismet/' => '2.0', 'themes/twentyten/' => '3.0', 'themes/twentyeleven/' => '3.2', 'themes/twentytwelve/' => '3.5', 'themes/twentythirteen/' => '3.6', 'themes/twentyfourteen/' => '3.8', 'themes/twentyfifteen/' => '4.1', 'themes/twentysixteen/' => '4.4', 'themes/twentyseventeen/' => '4.7', 'themes/twentynineteen/' => '5.0', 'themes/twentytwenty/' => '5.3', 'themes/twentytwentyone/' => '5.6', 'themes/twentytwentytwo/' => '5.9', 'themes/twentytwentythree/' => '6.1', 'themes/twentytwentyfour/' => '6.4', 'themes/twentytwentyfive/' => '6.7', ); /** * Upgrades the core of WordPress. * * This will create a .maintenance file at the base of the WordPress directory * to ensure that people can not access the website, when the files are being * copied to their locations. * * The files in the `$_old_files` list will be removed and the new files * copied from the zip file after the database is upgraded. * * The files in the `$_new_bundled_files` list will be added to the installation * if the version is greater than or equal to the old version being upgraded. * * The steps for the upgrader for after the new release is downloaded and * unzipped is: * * 1. Test unzipped location for select files to ensure that unzipped worked. * 2. Create the .maintenance file in current WordPress base. * 3. Copy new WordPress directory over old WordPress files. * 4. Upgrade WordPress to new version. * 1. Copy all files/folders other than wp-content * 2. Copy any language files to `WP_LANG_DIR` (which may differ from `WP_CONTENT_DIR` * 3. Copy any new bundled themes/plugins to their respective locations * 5. Delete new WordPress directory path. * 6. Delete .maintenance file. * 7. Remove old files. * 8. Delete 'update_core' option. * * There are several areas of failure. For instance if PHP times out before step * 6, then you will not be able to access any portion of your site. Also, since * the upgrade will not continue where it left off, you will not be able to * automatically remove old files and remove the 'update_core' option. This * isn't that bad. * * If the copy of the new WordPress over the old fails, then the worse is that * the new WordPress directory will remain. * * If it is assumed that every file will be copied over, including plugins and * themes, then if you edit the default theme, you should rename it, so that * your changes remain. * * @since 2.7.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * @global string[] $_old_files * @global string[] $_old_requests_files * @global string[] $_new_bundled_files * @global wpdb $wpdb WordPress database abstraction object. * @global string $wp_version The WordPress version string. * * @param string $from New release unzipped path. * @param string $to Path to old WordPress installation. * @return string|WP_Error New WordPress version on success, WP_Error on failure. */ function update_core( $from, $to ) { global $wp_filesystem, $_old_files, $_old_requests_files, $_new_bundled_files, $wpdb; /* * Give core update script an additional 300 seconds (5 minutes) * to finish updating large files when running on slower servers. */ if ( function_exists( 'set_time_limit' ) ) { set_time_limit( 300 ); } /* * Merge the old Requests files and directories into the `$_old_files`. * Then preload these Requests files first, before the files are deleted * and replaced to ensure the code is in memory if needed. */ $_old_files = array_merge( $_old_files, array_values( $_old_requests_files ) ); _preload_old_requests_classes_and_interfaces( $to ); /** * Filters feedback messages displayed during the core update process. * * The filter is first evaluated after the zip file for the latest version * has been downloaded and unzipped. It is evaluated five more times during * the process: * * 1. Before WordPress begins the core upgrade process. * 2. Before Maintenance Mode is enabled. * 3. Before WordPress begins copying over the necessary files. * 4. Before Maintenance Mode is disabled. * 5. Before the database is upgraded. * * @since 2.5.0 * * @param string $feedback The core update feedback messages. */ apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) ); // Confidence check the unzipped distribution. $distro = ''; $roots = array( '/wordpress/', '/wordpress-mu/' ); foreach ( $roots as $root ) { if ( $wp_filesystem->exists( $from . $root . 'readme.html' ) && $wp_filesystem->exists( $from . $root . 'wp-includes/version.php' ) ) { $distro = $root; break; } } if ( ! $distro ) { $wp_filesystem->delete( $from, true ); return new WP_Error( 'insane_distro', __( 'The update could not be unpacked' ) ); } /* * Import $wp_version, $required_php_version, $required_php_extensions, and $required_mysql_version from the new version. * DO NOT globalize any variables imported from `version-current.php` in this function. * * BC Note: $wp_filesystem->wp_content_dir() returned unslashed pre-2.8. */ $versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php'; if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) { $wp_filesystem->delete( $from, true ); return new WP_Error( 'copy_failed_for_version_file', __( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ), 'wp-includes/version.php' ); } $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE ); /* * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, * so don't run it when upgrading from older versions. */ if ( function_exists( 'wp_opcache_invalidate' ) ) { wp_opcache_invalidate( $versions_file ); } require WP_CONTENT_DIR . '/upgrade/version-current.php'; $wp_filesystem->delete( $versions_file ); $php_version = PHP_VERSION; $mysql_version = $wpdb->db_version(); $old_wp_version = $GLOBALS['wp_version']; // The version of WordPress we're updating from. /* * Note: str_contains() is not used here, as this file is included * when updating from older WordPress versions, in which case * the polyfills from wp-includes/compat.php may not be available. */ $development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release. $php_compat = version_compare( $php_version, $required_php_version, '>=' ); if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { $mysql_compat = true; } else { $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); } if ( ! $mysql_compat || ! $php_compat ) { $wp_filesystem->delete( $from, true ); } $php_update_message = ''; if ( function_exists( 'wp_get_update_php_url' ) ) { $php_update_message = '

        ' . sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); if ( function_exists( 'wp_get_update_php_annotation' ) ) { $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $php_update_message .= '

        ' . $annotation . ''; } } } if ( ! $mysql_compat && ! $php_compat ) { return new WP_Error( 'php_mysql_not_compatible', sprintf( /* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number. */ __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message ); } elseif ( ! $php_compat ) { return new WP_Error( 'php_not_compatible', sprintf( /* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number. */ __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ) . $php_update_message ); } elseif ( ! $mysql_compat ) { return new WP_Error( 'mysql_not_compatible', sprintf( /* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number. */ __( 'The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version ) ); } if ( isset( $required_php_extensions ) && is_array( $required_php_extensions ) ) { $missing_extensions = new WP_Error(); foreach ( $required_php_extensions as $extension ) { if ( extension_loaded( $extension ) ) { continue; } $missing_extensions->add( "php_not_compatible_{$extension}", sprintf( /* translators: 1: WordPress version number, 2: The PHP extension name needed. */ __( 'The update cannot be installed because WordPress %1$s requires the %2$s PHP extension.' ), $wp_version, $extension ) ); } // Add a warning when required PHP extensions are missing. if ( ! empty( $missing_extensions->errors ) ) { return $missing_extensions; } } /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', __( 'Preparing to install the latest version…' ) ); /* * Don't copy wp-content, we'll deal with that below. * We also copy version.php last so failed updates report their old version. */ $skip = array( 'wp-content', 'wp-includes/version.php' ); $check_is_writable = array(); // Check to see which files don't really need updating - only available for 3.7 and higher. if ( function_exists( 'get_core_checksums' ) ) { // Find the local version of the working directory. $working_dir_local = WP_CONTENT_DIR . '/upgrade/' . basename( $from ) . $distro; $checksums = get_core_checksums( $wp_version, $wp_local_package ?? 'en_US' ); if ( is_array( $checksums ) && isset( $checksums[ $wp_version ] ) ) { $checksums = $checksums[ $wp_version ]; // Compat code for 3.7-beta2. } if ( is_array( $checksums ) ) { foreach ( $checksums as $file => $checksum ) { /* * Note: str_starts_with() is not used here, as this file is included * when updating from older WordPress versions, in which case * the polyfills from wp-includes/compat.php may not be available. */ if ( 'wp-content' === substr( $file, 0, 10 ) ) { continue; } if ( ! file_exists( ABSPATH . $file ) ) { continue; } if ( ! file_exists( $working_dir_local . $file ) ) { continue; } if ( '.' === dirname( $file ) && in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true ) ) { continue; } if ( md5_file( ABSPATH . $file ) === $checksum ) { $skip[] = $file; } else { $check_is_writable[ $file ] = ABSPATH . $file; } } } } // If we're using the direct method, we can predict write failures that are due to permissions. if ( $check_is_writable && 'direct' === $wp_filesystem->method ) { $files_writable = array_filter( $check_is_writable, array( $wp_filesystem, 'is_writable' ) ); if ( $files_writable !== $check_is_writable ) { $files_not_writable = array_diff_key( $check_is_writable, $files_writable ); foreach ( $files_not_writable as $relative_file_not_writable => $file_not_writable ) { // If the writable check failed, chmod file to 0644 and try again, same as copy_dir(). $wp_filesystem->chmod( $file_not_writable, FS_CHMOD_FILE ); if ( $wp_filesystem->is_writable( $file_not_writable ) ) { unset( $files_not_writable[ $relative_file_not_writable ] ); } } // Store package-relative paths (the key) of non-writable files in the WP_Error object. $error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : ''; if ( $files_not_writable ) { return new WP_Error( 'files_not_writable', __( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ), implode( ', ', $error_data ) ); } } } /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', __( 'Enabling Maintenance mode…' ) ); // Create maintenance file to signal that we are upgrading. $maintenance_string = ''; $maintenance_file = $to . '.maintenance'; $wp_filesystem->delete( $maintenance_file ); $wp_filesystem->put_contents( $maintenance_file, $maintenance_string, FS_CHMOD_FILE ); /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', __( 'Copying the required files…' ) ); // Copy new versions of WP files into place. $result = copy_dir( $from . $distro, $to, $skip ); if ( is_wp_error( $result ) ) { $result = new WP_Error( $result->get_error_code(), $result->get_error_message(), substr( $result->get_error_data(), strlen( $to ) ) ); } // Since we know the core files have copied over, we can now copy the version file. if ( ! is_wp_error( $result ) ) { if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) { $wp_filesystem->delete( $from, true ); $result = new WP_Error( 'copy_failed_for_version_file', __( 'The update cannot be installed because your site is unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-includes/version.php' ); } $wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE ); /* * `wp_opcache_invalidate()` only exists in WordPress 5.5 or later, * so don't run it when upgrading from older versions. */ if ( function_exists( 'wp_opcache_invalidate' ) ) { wp_opcache_invalidate( $to . 'wp-includes/version.php' ); } } // Check to make sure everything copied correctly, ignoring the contents of wp-content. $skip = array( 'wp-content' ); $failed = array(); if ( isset( $checksums ) && is_array( $checksums ) ) { foreach ( $checksums as $file => $checksum ) { /* * Note: str_starts_with() is not used here, as this file is included * when updating from older WordPress versions, in which case * the polyfills from wp-includes/compat.php may not be available. */ if ( 'wp-content' === substr( $file, 0, 10 ) ) { continue; } if ( ! file_exists( $working_dir_local . $file ) ) { continue; } if ( '.' === dirname( $file ) && in_array( pathinfo( $file, PATHINFO_EXTENSION ), array( 'html', 'txt' ), true ) ) { $skip[] = $file; continue; } if ( file_exists( ABSPATH . $file ) && md5_file( ABSPATH . $file ) === $checksum ) { $skip[] = $file; } else { $failed[] = $file; } } } // Some files didn't copy properly. if ( ! empty( $failed ) ) { $total_size = 0; foreach ( $failed as $file ) { if ( file_exists( $working_dir_local . $file ) ) { $total_size += filesize( $working_dir_local . $file ); } } /* * If we don't have enough free space, it isn't worth trying again. * Unlikely to be hit due to the check in unzip_file(). */ $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( ABSPATH ) : false; if ( $available_space && $total_size >= $available_space ) { $result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) ); } else { $result = copy_dir( $from . $distro, $to, $skip ); if ( is_wp_error( $result ) ) { $result = new WP_Error( $result->get_error_code() . '_retry', $result->get_error_message(), substr( $result->get_error_data(), strlen( $to ) ) ); } } } /* * Custom content directory needs updating now. * Copy languages. */ if ( ! is_wp_error( $result ) && $wp_filesystem->is_dir( $from . $distro . 'wp-content/languages' ) ) { if ( WP_LANG_DIR !== ABSPATH . WPINC . '/languages' || @is_dir( WP_LANG_DIR ) ) { $lang_dir = WP_LANG_DIR; } else { $lang_dir = WP_CONTENT_DIR . '/languages'; } /* * Note: str_starts_with() is not used here, as this file is included * when updating from older WordPress versions, in which case * the polyfills from wp-includes/compat.php may not be available. */ // Check if the language directory exists first. if ( ! @is_dir( $lang_dir ) && 0 === strpos( $lang_dir, ABSPATH ) ) { // If it's within the ABSPATH we can handle it here, otherwise they're out of luck. $wp_filesystem->mkdir( $to . str_replace( ABSPATH, '', $lang_dir ), FS_CHMOD_DIR ); clearstatcache(); // For FTP, need to clear the stat cache. } if ( @is_dir( $lang_dir ) ) { $wp_lang_dir = $wp_filesystem->find_folder( $lang_dir ); if ( $wp_lang_dir ) { $result = copy_dir( $from . $distro . 'wp-content/languages/', $wp_lang_dir ); if ( is_wp_error( $result ) ) { $result = new WP_Error( $result->get_error_code() . '_languages', $result->get_error_message(), substr( $result->get_error_data(), strlen( $wp_lang_dir ) ) ); } } } } /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) ); // Remove maintenance file, we're done with potential site-breaking changes. $wp_filesystem->delete( $maintenance_file ); /* * 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, * preventing installation of Twenty Twelve. */ if ( '3.5' === $old_wp_version ) { if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' ) ) { $wp_filesystem->delete( $wp_filesystem->wp_themes_dir() . 'twentytwelve/' ); } } /* * Copy new bundled plugins & themes. * This gives us the ability to install new plugins & themes bundled with * future versions of WordPress whilst avoiding the re-install upon upgrade issue. * $development_build controls us overwriting bundled themes and plugins when a non-stable release is being updated. */ if ( ! is_wp_error( $result ) && ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED ) ) { foreach ( (array) $_new_bundled_files as $file => $introduced_version ) { // If a $development_build or if $introduced version is greater than what the site was previously running. if ( $development_build || version_compare( $introduced_version, $old_wp_version, '>' ) ) { $directory = ( '/' === $file[ strlen( $file ) - 1 ] ); list( $type, $filename ) = explode( '/', $file, 2 ); // Check to see if the bundled items exist before attempting to copy them. if ( ! $wp_filesystem->exists( $from . $distro . 'wp-content/' . $file ) ) { continue; } if ( 'plugins' === $type ) { $dest = $wp_filesystem->wp_plugins_dir(); } elseif ( 'themes' === $type ) { // Back-compat, ::wp_themes_dir() did not return trailingslash'd pre-3.2. $dest = trailingslashit( $wp_filesystem->wp_themes_dir() ); } else { continue; } if ( ! $directory ) { if ( ! $development_build && $wp_filesystem->exists( $dest . $filename ) ) { continue; } if ( ! $wp_filesystem->copy( $from . $distro . 'wp-content/' . $file, $dest . $filename, FS_CHMOD_FILE ) ) { $result = new WP_Error( "copy_failed_for_new_bundled_$type", __( 'Could not copy file.' ), $dest . $filename ); } } else { if ( ! $development_build && $wp_filesystem->is_dir( $dest . $filename ) ) { continue; } $wp_filesystem->mkdir( $dest . $filename, FS_CHMOD_DIR ); $_result = copy_dir( $from . $distro . 'wp-content/' . $file, $dest . $filename ); /* * If an error occurs partway through this final step, * keep the error flowing through, but keep the process going. */ if ( is_wp_error( $_result ) ) { if ( ! is_wp_error( $result ) ) { $result = new WP_Error(); } $result->add( $_result->get_error_code() . "_$type", $_result->get_error_message(), substr( $_result->get_error_data(), strlen( $dest ) ) ); } } } } // End foreach. } // Handle $result error from the above blocks. if ( is_wp_error( $result ) ) { $wp_filesystem->delete( $from, true ); return $result; } // Remove old files. foreach ( $_old_files as $old_file ) { $old_file = $to . $old_file; if ( ! $wp_filesystem->exists( $old_file ) ) { continue; } // If the file isn't deleted, try writing an empty string to the file instead. if ( ! $wp_filesystem->delete( $old_file, true ) && $wp_filesystem->is_file( $old_file ) ) { $wp_filesystem->put_contents( $old_file, '' ); } } // Remove any Genericons example.html's from the filesystem. _upgrade_422_remove_genericons(); // Deactivate the REST API plugin if its version is 2.0 Beta 4 or lower. _upgrade_440_force_deactivate_incompatible_plugins(); // Deactivate incompatible plugins. _upgrade_core_deactivate_incompatible_plugins(); // Upgrade DB with separate request. /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', __( 'Upgrading database…' ) ); $db_upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' ); wp_remote_post( $db_upgrade_url, array( 'timeout' => 60 ) ); // Clear the cache to prevent an update_option() from saving a stale db_version to the cache. wp_cache_flush(); // Not all cache back ends listen to 'flush'. wp_cache_delete( 'alloptions', 'options' ); // Remove working directory. $wp_filesystem->delete( $from, true ); // Force refresh of update information. if ( function_exists( 'delete_site_transient' ) ) { delete_site_transient( 'update_core' ); } else { delete_option( 'update_core' ); } /** * Fires after WordPress core has been successfully updated. * * @since 3.3.0 * * @param string $wp_version The current WordPress version. */ do_action( '_core_updated_successfully', $wp_version ); // Clear the option that blocks auto-updates after failures, now that we've been successful. if ( function_exists( 'delete_site_option' ) ) { delete_site_option( 'auto_core_update_failed' ); } return $wp_version; } /** * Preloads old Requests classes and interfaces. * * This function preloads the old Requests code into memory before the * upgrade process deletes the files. Why? Requests code is loaded into * memory via an autoloader, meaning when a class or interface is needed * If a request is in process, Requests could attempt to access code. If * the file is not there, a fatal error could occur. If the file was * replaced, the new code is not compatible with the old, resulting in * a fatal error. Preloading ensures the code is in memory before the * code is updated. * * @since 6.2.0 * * @global string[] $_old_requests_files Requests files to be preloaded. * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * @global string $wp_version The WordPress version string. * * @param string $to Path to old WordPress installation. */ function _preload_old_requests_classes_and_interfaces( $to ) { global $_old_requests_files, $wp_filesystem, $wp_version; /* * Requests was introduced in WordPress 4.6. * * Skip preloading if the website was previously using * an earlier version of WordPress. */ if ( version_compare( $wp_version, '4.6', '<' ) ) { return; } if ( ! defined( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS' ) ) { define( 'REQUESTS_SILENCE_PSR0_DEPRECATIONS', true ); } foreach ( $_old_requests_files as $name => $file ) { // Skip files that aren't interfaces or classes. if ( is_int( $name ) ) { continue; } // Skip if it's already loaded. if ( class_exists( $name ) || interface_exists( $name ) ) { continue; } // Skip if the file is missing. if ( ! $wp_filesystem->is_file( $to . $file ) ) { continue; } require_once $to . $file; } } /** * Redirect to the About WordPress page after a successful upgrade. * * This function is only needed when the existing installation is older than 3.4.0. * * @since 3.3.0 * * @global string $wp_version The WordPress version string. * @global string $pagenow The filename of the current screen. * @global string $action * * @param string $new_version */ function _redirect_to_about_wordpress( $new_version ) { global $wp_version, $pagenow, $action; if ( version_compare( $wp_version, '3.4-RC1', '>=' ) ) { return; } // Ensure we only run this on the update-core.php page. The Core_Upgrader may be used in other contexts. if ( 'update-core.php' !== $pagenow ) { return; } if ( 'do-core-upgrade' !== $action && 'do-core-reinstall' !== $action ) { return; } // Load the updated default text localization domain for new strings. load_default_textdomain(); // See do_core_upgrade(). show_message( __( 'WordPress updated successfully.' ) ); // self_admin_url() won't exist when upgrading from <= 3.0, so relative URLs are intentional. show_message( '' . sprintf( /* translators: 1: WordPress version, 2: URL to About screen. */ __( 'Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click here.' ), $new_version, 'about.php?updated' ) . '' ); show_message( '' . sprintf( /* translators: 1: WordPress version, 2: URL to About screen. */ __( 'Welcome to WordPress %1$s. Learn more.' ), $new_version, 'about.php?updated' ) . '' ); echo ''; ?> find_folder( trailingslashit( dirname( $file ) ) ); if ( empty( $gen_dir ) ) { continue; } // The path when the file is accessed via WP_Filesystem may differ in the case of FTP. $remote_file = $gen_dir . basename( $file ); if ( ! $wp_filesystem->exists( $remote_file ) ) { continue; } if ( ! $wp_filesystem->delete( $remote_file, false, 'f' ) ) { $wp_filesystem->put_contents( $remote_file, '' ); } } } /** * Recursively find Genericons example files in a given folder. * * @ignore * @since 4.2.2 * * @param string $directory Directory path. Expects trailingslashed. * @return string[] */ function _upgrade_422_find_genericons_files_in_folder( $directory ) { $directory = trailingslashit( $directory ); $files = array(); if ( file_exists( "{$directory}example.html" ) /* * Note: str_contains() is not used here, as this file is included * when updating from older WordPress versions, in which case * the polyfills from wp-includes/compat.php may not be available. */ && false !== strpos( file_get_contents( "{$directory}example.html" ), 'Genericons' ) ) { $files[] = "{$directory}example.html"; } $dirs = glob( $directory . '*', GLOB_ONLYDIR ); $dirs = array_filter( $dirs, static function ( $dir ) { /* * Skip any node_modules directories. * * Note: str_contains() is not used here, as this file is included * when updating from older WordPress versions, in which case * the polyfills from wp-includes/compat.php may not be available. */ return false === strpos( $dir, 'node_modules' ); } ); if ( $dirs ) { foreach ( $dirs as $dir ) { $files = array_merge( $files, _upgrade_422_find_genericons_files_in_folder( $dir ) ); } } return $files; } /** * @ignore * @since 4.4.0 */ function _upgrade_440_force_deactivate_incompatible_plugins() { if ( defined( 'REST_API_VERSION' ) && version_compare( REST_API_VERSION, '2.0-beta4', '<=' ) ) { deactivate_plugins( array( 'rest-api/plugin.php' ), true ); } } /** * @access private * @ignore * @since 5.8.0 * @since 5.9.0 The minimum compatible version of Gutenberg is 11.9. * @since 6.1.1 The minimum compatible version of Gutenberg is 14.1. * @since 6.4.0 The minimum compatible version of Gutenberg is 16.5. * @since 6.5.0 The minimum compatible version of Gutenberg is 17.6. */ function _upgrade_core_deactivate_incompatible_plugins() { if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '17.6', '<' ) ) { $deactivated_gutenberg['gutenberg'] = array( 'plugin_name' => 'Gutenberg', 'version_deactivated' => GUTENBERG_VERSION, 'version_compatible' => '17.6', ); if ( is_plugin_active_for_network( 'gutenberg/gutenberg.php' ) ) { $deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins', array() ); $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); update_site_option( 'wp_force_deactivated_plugins', $deactivated_plugins ); } else { $deactivated_plugins = get_option( 'wp_force_deactivated_plugins', array() ); $deactivated_plugins = array_merge( $deactivated_plugins, $deactivated_gutenberg ); update_option( 'wp_force_deactivated_plugins', $deactivated_plugins, false ); } deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true ); } } includes/class-wp-ajax-upgrader-skin.php000064400000010141152213653150014306 0ustar00errors = new WP_Error(); } /** * Retrieves the list of errors. * * @since 4.6.0 * * @return WP_Error Errors during an upgrade. */ public function get_errors() { return $this->errors; } /** * Retrieves a string for error messages. * * @since 4.6.0 * * @return string Error messages during an upgrade. */ public function get_error_messages() { $messages = array(); foreach ( $this->errors->get_error_codes() as $error_code ) { $error_data = $this->errors->get_error_data( $error_code ); if ( $error_data && is_string( $error_data ) ) { $messages[] = $this->errors->get_error_message( $error_code ) . ' ' . esc_html( strip_tags( $error_data ) ); } else { $messages[] = $this->errors->get_error_message( $error_code ); } } return implode( ', ', $messages ); } /** * Stores an error message about the upgrade. * * @since 4.6.0 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it * to the function signature. * * @param string|WP_Error $errors Errors. * @param mixed ...$args Optional text replacements. */ public function error( $errors, ...$args ) { if ( is_string( $errors ) ) { $string = $errors; if ( ! empty( $this->upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; } if ( str_contains( $string, '%' ) ) { if ( ! empty( $args ) ) { $string = vsprintf( $string, $args ); } } // Count existing errors to generate a unique error code. $errors_count = count( $this->errors->get_error_codes() ); $this->errors->add( 'unknown_upgrade_error_' . ( $errors_count + 1 ), $string ); } elseif ( is_wp_error( $errors ) ) { foreach ( $errors->get_error_codes() as $error_code ) { $this->errors->add( $error_code, $errors->get_error_message( $error_code ), $errors->get_error_data( $error_code ) ); } } parent::error( $errors, ...$args ); } /** * Stores a message about the upgrade. * * @since 4.6.0 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it * to the function signature. * @since 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support. * * @param string|array|WP_Error $feedback Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $feedback, ...$args ) { if ( is_wp_error( $feedback ) ) { foreach ( $feedback->get_error_codes() as $error_code ) { $this->errors->add( $error_code, $feedback->get_error_message( $error_code ), $feedback->get_error_data( $error_code ) ); } } parent::feedback( $feedback, ...$args ); } } includes/menu.php000064400000022650152213653150010037 0ustar00 $sub ) { foreach ( $sub as $index => $data ) { if ( ! current_user_can( $data[1] ) ) { unset( $submenu[ $parent ][ $index ] ); $_wp_submenu_nopriv[ $parent ][ $data[2] ] = true; } } unset( $index, $data ); if ( empty( $submenu[ $parent ] ) ) { unset( $submenu[ $parent ] ); } } unset( $sub, $parent ); /* * Loop over the top-level menu. * Menus for which the original parent is not accessible due to lack of privileges * will have the next submenu in line be assigned as the new menu parent. */ foreach ( $menu as $id => $data ) { if ( empty( $submenu[ $data[2] ] ) ) { continue; } $subs = $submenu[ $data[2] ]; $first_sub = reset( $subs ); $old_parent = $data[2]; $new_parent = $first_sub[2]; /* * If the first submenu is not the same as the assigned parent, * make the first submenu the new parent. */ if ( $new_parent !== $old_parent ) { $_wp_real_parent_file[ $old_parent ] = $new_parent; $menu[ $id ][2] = $new_parent; foreach ( $submenu[ $old_parent ] as $index => $data ) { $submenu[ $new_parent ][ $index ] = $submenu[ $old_parent ][ $index ]; unset( $submenu[ $old_parent ][ $index ] ); } unset( $submenu[ $old_parent ], $index ); if ( isset( $_wp_submenu_nopriv[ $old_parent ] ) ) { $_wp_submenu_nopriv[ $new_parent ] = $_wp_submenu_nopriv[ $old_parent ]; } } } unset( $id, $data, $subs, $first_sub, $old_parent, $new_parent ); if ( is_network_admin() ) { /** * Fires before the administration menu loads in the Network Admin. * * @since 3.1.0 * * @param string $context Empty context. */ do_action( 'network_admin_menu', '' ); } elseif ( is_user_admin() ) { /** * Fires before the administration menu loads in the User Admin. * * @since 3.1.0 * * @param string $context Empty context. */ do_action( 'user_admin_menu', '' ); } else { /** * Fires before the administration menu loads in the admin. * * @since 1.5.0 * * @param string $context Empty context. */ do_action( 'admin_menu', '' ); } /* * Remove menus that have no accessible submenus and require privileges * that the user does not have. Run re-parent loop again. */ foreach ( $menu as $id => $data ) { if ( ! current_user_can( $data[1] ) ) { $_wp_menu_nopriv[ $data[2] ] = true; } /* * If there is only one submenu and it is has same destination as the parent, * remove the submenu. */ if ( ! empty( $submenu[ $data[2] ] ) && 1 === count( $submenu[ $data[2] ] ) ) { $subs = $submenu[ $data[2] ]; $first_sub = reset( $subs ); if ( $data[2] === $first_sub[2] ) { unset( $submenu[ $data[2] ] ); } } // If submenu is empty... if ( empty( $submenu[ $data[2] ] ) ) { // And user doesn't have privs, remove menu. if ( isset( $_wp_menu_nopriv[ $data[2] ] ) ) { unset( $menu[ $id ] ); } } } unset( $id, $data, $subs, $first_sub ); /** * Adds a CSS class to a string. * * @since 2.7.0 * * @param string $class_to_add The CSS class to add. * @param string $classes The string to add the CSS class to. * @return string The string with the CSS class added. */ function add_cssclass( $class_to_add, $classes ) { if ( empty( $classes ) ) { return $class_to_add; } return $classes . ' ' . $class_to_add; } /** * Adds CSS classes for top-level administration menu items. * * The list of added classes includes `.menu-top-first` and `.menu-top-last`. * * @since 2.7.0 * * @param array $menu The array of administration menu items. * @return array The array of administration menu items with the CSS classes added. */ function add_menu_classes( $menu ) { $first_item = false; $last_order = false; $items_count = count( $menu ); $i = 0; foreach ( $menu as $order => $top ) { ++$i; if ( 0 === $order ) { // Dashboard is always shown/single. $menu[0][4] = add_cssclass( 'menu-top-first', $top[4] ); $last_order = 0; continue; } if ( str_starts_with( $top[2], 'separator' ) && false !== $last_order ) { // If separator. $first_item = true; $classes = $menu[ $last_order ][4]; $menu[ $last_order ][4] = add_cssclass( 'menu-top-last', $classes ); continue; } if ( $first_item ) { $first_item = false; $classes = $menu[ $order ][4]; $menu[ $order ][4] = add_cssclass( 'menu-top-first', $classes ); } if ( $i === $items_count ) { // Last item. $classes = $menu[ $order ][4]; $menu[ $order ][4] = add_cssclass( 'menu-top-last', $classes ); } $last_order = $order; } /** * Filters administration menu array with classes added for top-level items. * * @since 2.7.0 * * @param array $menu Associative array of administration menu items. */ return apply_filters( 'add_menu_classes', $menu ); } uksort( $menu, 'strnatcasecmp' ); // Make it all pretty. /** * Filters whether to enable custom ordering of the administration menu. * * See the {@see 'menu_order'} filter for reordering menu items. * * @since 2.8.0 * * @param bool $custom Whether custom ordering is enabled. Default false. */ if ( apply_filters( 'custom_menu_order', false ) ) { $menu_order = array(); foreach ( $menu as $menu_item ) { $menu_order[] = $menu_item[2]; } unset( $menu_item ); $default_menu_order = $menu_order; /** * Filters the order of administration menu items. * * A truthy value must first be passed to the {@see 'custom_menu_order'} filter * for this filter to work. Use the following to enable custom menu ordering: * * add_filter( 'custom_menu_order', '__return_true' ); * * @since 2.8.0 * * @param array $menu_order An ordered array of menu items. */ $menu_order = apply_filters( 'menu_order', $menu_order ); $menu_order = array_flip( $menu_order ); $default_menu_order = array_flip( $default_menu_order ); /** * @global array $menu_order * @global array $default_menu_order * * @param array $a * @param array $b * @return int */ function sort_menu( $a, $b ) { global $menu_order, $default_menu_order; $a = $a[2]; $b = $b[2]; if ( isset( $menu_order[ $a ] ) && ! isset( $menu_order[ $b ] ) ) { return -1; } elseif ( ! isset( $menu_order[ $a ] ) && isset( $menu_order[ $b ] ) ) { return 1; } elseif ( isset( $menu_order[ $a ] ) && isset( $menu_order[ $b ] ) ) { return $menu_order[ $a ] <=> $menu_order[ $b ]; } else { return $default_menu_order[ $a ] <=> $default_menu_order[ $b ]; } } usort( $menu, 'sort_menu' ); unset( $menu_order, $default_menu_order ); } // Prevent adjacent separators. $prev_menu_was_separator = false; foreach ( $menu as $id => $data ) { if ( false === stristr( $data[4], 'wp-menu-separator' ) ) { // This item is not a separator, so falsey the toggler and do nothing. $prev_menu_was_separator = false; } else { // The previous item was a separator, so unset this one. if ( true === $prev_menu_was_separator ) { unset( $menu[ $id ] ); } // This item is a separator, so truthy the toggler and move on. $prev_menu_was_separator = true; } } unset( $id, $data, $prev_menu_was_separator ); // Remove the last menu item if it is a separator. $last_menu_key = array_keys( $menu ); $last_menu_key = array_pop( $last_menu_key ); if ( ! empty( $menu ) && 'wp-menu-separator' === $menu[ $last_menu_key ][4] ) { unset( $menu[ $last_menu_key ] ); } unset( $last_menu_key ); if ( ! user_can_access_admin_page() ) { /** * Fires when access to an admin page is denied. * * @since 2.5.0 */ do_action( 'admin_page_access_denied' ); wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); } $menu = add_menu_classes( $menu ); includes/class-wp-plugin-install-list-table.php000064400000060616152213653150015626 0ustar00no_update ) ) { foreach ( $plugin_info->no_update as $plugin ) { if ( isset( $plugin->slug ) ) { $plugin->upgrade = false; $plugins[ $plugin->slug ] = $plugin; } } } if ( isset( $plugin_info->response ) ) { foreach ( $plugin_info->response as $plugin ) { if ( isset( $plugin->slug ) ) { $plugin->upgrade = true; $plugins[ $plugin->slug ] = $plugin; } } } return $plugins; } /** * Returns a list of slugs of installed plugins, if known. * * Uses the transient data from the updates API to determine the slugs of * known installed plugins. This might be better elsewhere, perhaps even * within get_plugins(). * * @since 4.0.0 * * @return array */ protected function get_installed_plugin_slugs() { return array_keys( $this->get_installed_plugins() ); } /** * @global array $tabs * @global string $tab * @global int $paged * @global string $type * @global string $term */ public function prepare_items() { require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; global $tabs, $tab, $paged, $type, $term; $tab = ! empty( $_REQUEST['tab'] ) ? sanitize_text_field( $_REQUEST['tab'] ) : ''; $paged = $this->get_pagenum(); $per_page = 36; // These are the tabs which are shown on the page. $tabs = array(); if ( 'search' === $tab ) { $tabs['search'] = __( 'Search Results' ); } if ( 'beta' === $tab || str_contains( get_bloginfo( 'version' ), '-' ) ) { $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); } $tabs['featured'] = _x( 'Featured', 'Plugin Installer' ); $tabs['popular'] = _x( 'Popular', 'Plugin Installer' ); $tabs['recommended'] = _x( 'Recommended', 'Plugin Installer' ); $tabs['favorites'] = _x( 'Favorites', 'Plugin Installer' ); if ( current_user_can( 'upload_plugins' ) ) { /* * No longer a real tab. Here for filter compatibility. * Gets skipped in get_views(). */ $tabs['upload'] = __( 'Upload Plugin' ); } $nonmenu_tabs = array( 'plugin-information' ); // Valid actions to perform which do not have a Menu item. /** * Filters the tabs shown on the Add Plugins screen. * * @since 2.7.0 * * @param string[] $tabs The tabs shown on the Add Plugins screen. Defaults include * 'featured', 'popular', 'recommended', 'favorites', and 'upload'. */ $tabs = apply_filters( 'install_plugins_tabs', $tabs ); /** * Filters tabs not associated with a menu item on the Add Plugins screen. * * @since 2.7.0 * * @param string[] $nonmenu_tabs The tabs that don't have a menu item on the Add Plugins screen. */ $nonmenu_tabs = apply_filters( 'install_plugins_nonmenu_tabs', $nonmenu_tabs ); // If a non-valid menu tab has been selected, And it's not a non-menu action. if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) { $tab = key( $tabs ); } $installed_plugins = $this->get_installed_plugins(); $args = array( 'page' => $paged, 'per_page' => $per_page, // Send the locale to the API so it can provide context-sensitive results. 'locale' => get_user_locale(), ); switch ( $tab ) { case 'search': $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : ''; switch ( $type ) { case 'tag': $args['tag'] = sanitize_title_with_dashes( $term ); break; case 'term': $args['search'] = $term; break; case 'author': $args['author'] = $term; break; } break; case 'featured': case 'popular': case 'new': case 'beta': $args['browse'] = $tab; break; case 'recommended': $args['browse'] = $tab; // Include the list of installed plugins so we can get relevant results. $args['installed_plugins'] = array_keys( $installed_plugins ); break; case 'favorites': $action = 'save_wporg_username_' . get_current_user_id(); if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( wp_unslash( $_GET['_wpnonce'] ), $action ) ) { $user = isset( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' ); // If the save url parameter is passed with a falsey value, don't save the favorite user. if ( ! isset( $_GET['save'] ) || $_GET['save'] ) { update_user_meta( get_current_user_id(), 'wporg_favorites', $user ); } } else { $user = get_user_option( 'wporg_favorites' ); } if ( $user ) { $args['user'] = $user; } else { $args = false; } add_action( 'install_plugins_favorites', 'install_plugins_favorites_form', 9, 0 ); break; default: $args = false; break; } /** * Filters API request arguments for each Add Plugins screen tab. * * The dynamic portion of the hook name, `$tab`, refers to the plugin install tabs. * * Possible hook names include: * * - `install_plugins_table_api_args_favorites` * - `install_plugins_table_api_args_featured` * - `install_plugins_table_api_args_popular` * - `install_plugins_table_api_args_recommended` * - `install_plugins_table_api_args_upload` * - `install_plugins_table_api_args_search` * - `install_plugins_table_api_args_beta` * * @since 3.7.0 * * @param array|false $args Plugin install API arguments. */ $args = apply_filters( "install_plugins_table_api_args_{$tab}", $args ); if ( ! $args ) { return; } $api = plugins_api( 'query_plugins', $args ); if ( is_wp_error( $api ) ) { $this->error = $api; return; } $this->items = $api->plugins; if ( $this->orderby ) { uasort( $this->items, array( $this, 'order_callback' ) ); } $this->set_pagination_args( array( 'total_items' => $api->info['results'], 'per_page' => $args['per_page'], ) ); if ( isset( $api->info['groups'] ) ) { $this->groups = $api->info['groups']; } if ( $installed_plugins ) { $js_plugins = array_fill_keys( array( 'all', 'search', 'active', 'inactive', 'recently_activated', 'mustuse', 'dropins' ), array() ); $js_plugins['all'] = array_values( wp_list_pluck( $installed_plugins, 'plugin' ) ); $upgrade_plugins = wp_filter_object_list( $installed_plugins, array( 'upgrade' => true ), 'and', 'plugin' ); if ( $upgrade_plugins ) { $js_plugins['upgrade'] = array_values( $upgrade_plugins ); } wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 'plugins' => $js_plugins, 'totals' => wp_get_update_data(), ) ); } } /** */ public function no_items() { if ( isset( $this->error ) ) { $error_message = '

        ' . $this->error->get_error_message() . '

        '; $error_message .= '

        '; wp_admin_notice( $error_message, array( 'additional_classes' => array( 'inline', 'error' ), 'paragraph_wrap' => false, ) ); ?>
        $text ) { $display_tabs[ 'plugin-install-' . $action ] = array( 'url' => self_admin_url( 'plugin-install.php?tab=' . $action ), 'label' => $text, 'current' => $action === $tab, ); } // No longer a real tab. unset( $display_tabs['plugin-install-upload'] ); return $this->get_views_links( $display_tabs ); } /** * Overrides parent views so we can use the filter bar display. */ public function views() { $views = $this->get_views(); /** This filter is documented in wp-admin/includes/class-wp-list-table.php */ $views = apply_filters( "views_{$this->screen->id}", $views ); $this->screen->render_screen_reader_content( 'heading_views' ); printf( /* translators: %s: https://wordpress.org/plugins/ */ '

        ' . __( 'Plugins extend and expand the functionality of WordPress. You may install plugins from the WordPress Plugin Directory right on this page, or upload a plugin in .zip format by clicking the button above.' ) . '

        ', __( 'https://wordpress.org/plugins/' ) ); ?>
        _args['singular']; $data_attr = ''; if ( $singular ) { $data_attr = " data-wp-lists='list:$singular'"; } $this->display_tablenav( 'top' ); ?>
        screen->render_screen_reader_content( 'heading_list' ); ?>
        > display_rows_or_placeholder(); ?>
        display_tablenav( 'bottom' ); } /** * @global string $tab * * @param string $which */ protected function display_tablenav( $which ) { if ( 'featured' === $GLOBALS['tab'] ) { return; } if ( 'top' === $which ) { wp_referer_field(); ?>
        pagination( $which ); ?>
        pagination( $which ); ?>
        _args['plural'] ); } /** * @return string[] Array of column titles keyed by their column name. */ public function get_columns() { return array(); } /** * @param object $plugin_a * @param object $plugin_b * @return int */ private function order_callback( $plugin_a, $plugin_b ) { $orderby = $this->orderby; if ( ! isset( $plugin_a->$orderby, $plugin_b->$orderby ) ) { return 0; } $a = $plugin_a->$orderby; $b = $plugin_b->$orderby; return 'DESC' === $this->order ? $b <=> $a : $a <=> $b; } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { $plugins_allowedtags = array( 'a' => array( 'href' => array(), 'title' => array(), 'target' => array(), ), 'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), 'p' => array(), 'br' => array(), ); $plugins_group_titles = array( 'Performance' => _x( 'Performance', 'Plugin installer group title' ), 'Social' => _x( 'Social', 'Plugin installer group title' ), 'Tools' => _x( 'Tools', 'Plugin installer group title' ), ); $group = null; foreach ( (array) $this->items as $plugin ) { if ( is_object( $plugin ) ) { $plugin = (array) $plugin; } // Display the group heading if there is one. if ( isset( $plugin['group'] ) && $plugin['group'] !== $group ) { if ( isset( $this->groups[ $plugin['group'] ] ) ) { $group_name = $this->groups[ $plugin['group'] ]; if ( isset( $plugins_group_titles[ $group_name ] ) ) { $group_name = $plugins_group_titles[ $group_name ]; } } else { $group_name = $plugin['group']; } // Starting a new group, close off the divs of the last one. if ( ! empty( $group ) ) { echo ''; } echo '

        ' . esc_html( $group_name ) . '

        '; // Needs an extra wrapping div for nth-child selectors to work. echo '
        '; $group = $plugin['group']; } $title = wp_kses( $plugin['name'], $plugins_allowedtags ); // Remove any HTML from the description. $description = strip_tags( $plugin['short_description'] ); /** * Filters the plugin card description on the Add Plugins screen. * * @since 6.0.0 * * @param string $description Plugin card description. * @param array $plugin An array of plugin data. See {@see plugins_api()} * for the list of possible values. */ $description = apply_filters( 'plugin_install_description', $description, $plugin ); $version = wp_kses( $plugin['version'], $plugins_allowedtags ); $name = strip_tags( $title . ' ' . $version ); $author = wp_kses( $plugin['author'], $plugins_allowedtags ); if ( ! empty( $author ) ) { /* translators: %s: Plugin author. */ $author = ' ' . sprintf( __( 'By %s' ), $author ) . ''; } $requires_php = $plugin['requires_php'] ?? null; $requires_wp = $plugin['requires'] ?? null; $compatible_php = is_php_version_compatible( $requires_php ); $compatible_wp = is_wp_version_compatible( $requires_wp ); $tested_wp = ( empty( $plugin['tested'] ) || version_compare( get_bloginfo( 'version' ), $plugin['tested'], '<=' ) ); $action_links = array(); $action_links[] = wp_get_plugin_action_button( $name, $plugin, $compatible_php, $compatible_wp ); $details_link = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin['slug'] . '&TB_iframe=true&width=600&height=550' ); $action_links[] = sprintf( '%s', esc_url( $details_link ), /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'More information about %s' ), $name ) ), esc_attr( $name ), __( 'More Details' ) ); if ( ! empty( $plugin['icons']['svg'] ) ) { $plugin_icon_url = $plugin['icons']['svg']; } elseif ( ! empty( $plugin['icons']['2x'] ) ) { $plugin_icon_url = $plugin['icons']['2x']; } elseif ( ! empty( $plugin['icons']['1x'] ) ) { $plugin_icon_url = $plugin['icons']['1x']; } else { $plugin_icon_url = $plugin['icons']['default']; } /** * Filters the install action links for a plugin. * * @since 2.7.0 * * @param string[] $action_links An array of plugin action links. * Defaults are links to Details and Install Now. * @param array $plugin An array of plugin data. See {@see plugins_api()} * for the list of possible values. */ $action_links = apply_filters( 'plugin_install_action_links', $action_links, $plugin ); $last_updated_timestamp = strtotime( $plugin['last_updated'] ); ?>
        Please update WordPress, and then learn more about updating PHP.' ), self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) ); $incompatible_notice_message .= wp_update_php_annotation( '

        ', '', false ); } elseif ( current_user_can( 'update_core' ) ) { $incompatible_notice_message .= sprintf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } elseif ( current_user_can( 'update_php' ) ) { $incompatible_notice_message .= sprintf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $incompatible_notice_message .= wp_update_php_annotation( '

        ', '', false ); } } elseif ( ! $compatible_wp ) { $incompatible_notice_message .= __( 'This plugin does not work with your version of WordPress.' ); if ( current_user_can( 'update_core' ) ) { $incompatible_notice_message .= sprintf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } } elseif ( ! $compatible_php ) { $incompatible_notice_message .= __( 'This plugin does not work with your version of PHP.' ); if ( current_user_can( 'update_php' ) ) { $incompatible_notice_message .= sprintf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $incompatible_notice_message .= wp_update_php_annotation( '

        ', '', false ); } } wp_admin_notice( $incompatible_notice_message, array( 'type' => 'error', 'additional_classes' => array( 'notice-alt', 'inline' ), ) ); } ?>

      • ' . implode( '
      • ', $action_links ) . '
      • '; } ?>

        get_dependencies_notice( $plugin ); if ( ! empty( $dependencies_notice ) ) { echo $dependencies_notice; } ?>
        $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'], ) ); ?>
        = 1000000 ) { $active_installs_millions = floor( $plugin['active_installs'] / 1000000 ); $active_installs_text = sprintf( /* translators: %s: Number of millions. */ _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), number_format_i18n( $active_installs_millions ) ); } elseif ( 0 === $plugin['active_installs'] ) { $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' ); } else { $active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+'; } /* translators: %s: Number of installations. */ printf( __( '%s Active Installations' ), $active_installs_text ); ?>
        ' . __( 'Untested with your version of WordPress' ) . ''; } elseif ( ! $compatible_wp ) { echo '' . __( 'Incompatible with your version of WordPress' ) . ''; } else { echo '' . __( 'Compatible with your version of WordPress' ) . ''; } ?>
        '; } } /** * Returns a notice containing a list of dependencies required by the plugin. * * @since 6.5.0 * * @param array $plugin_data An array of plugin data. See {@see plugins_api()} * for the list of possible values. * @return string A notice containing a list of dependencies required by the plugin, * or an empty string if none is required. */ protected function get_dependencies_notice( $plugin_data ) { if ( empty( $plugin_data['requires_plugins'] ) ) { return ''; } $no_name_markup = '
        %s
        '; $has_name_markup = '
        %s %s
        '; $dependencies_list = ''; foreach ( $plugin_data['requires_plugins'] as $dependency ) { $dependency_data = WP_Plugin_Dependencies::get_dependency_data( $dependency ); if ( false !== $dependency_data && ! empty( $dependency_data['name'] ) && ! empty( $dependency_data['slug'] ) && ! empty( $dependency_data['version'] ) ) { $more_details_link = $this->get_more_details_link( $dependency_data['name'], $dependency_data['slug'] ); $dependencies_list .= sprintf( $has_name_markup, esc_html( $dependency_data['name'] ), $more_details_link ); continue; } $result = plugins_api( 'plugin_information', array( 'slug' => $dependency ) ); if ( ! empty( $result->name ) ) { $more_details_link = $this->get_more_details_link( $result->name, $result->slug ); $dependencies_list .= sprintf( $has_name_markup, esc_html( $result->name ), $more_details_link ); continue; } $dependencies_list .= sprintf( $no_name_markup, esc_html( $dependency ) ); } $dependencies_notice = sprintf( '

        %s

        %s
        ', '' . __( 'Additional plugins are required' ) . '', $dependencies_list ); return $dependencies_notice; } /** * Creates a 'More details' link for the plugin. * * @since 6.5.0 * * @param string $name The plugin's name. * @param string $slug The plugin's slug. * @return string The 'More details' link for the plugin. */ protected function get_more_details_link( $name, $slug ) { $url = add_query_arg( array( 'tab' => 'plugin-information', 'plugin' => $slug, 'TB_iframe' => 'true', 'width' => '600', 'height' => '550', ), network_admin_url( 'plugin-install.php' ) ); $more_details_link = sprintf( '%4$s', esc_url( $url ), /* translators: %s: Plugin name. */ sprintf( __( 'More information about %s' ), esc_html( $name ) ), esc_attr( $name ), __( 'More Details' ) ); return $more_details_link; } } includes/image-edit.php000064400000125732152213653150011105 0ustar00 600 ? 600 / $big : 1; $backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true ); $can_restore = false; if ( ! empty( $backup_sizes ) && isset( $backup_sizes['full-orig'], $meta['file'] ) ) { $can_restore = wp_basename( $meta['file'] ) !== $backup_sizes['full-orig']['file']; } if ( $msg ) { if ( isset( $msg->error ) ) { $note = ""; } elseif ( isset( $msg->msg ) ) { $note = ""; } } /** * Shows the settings in the Image Editor that allow selecting to edit only the thumbnail of an image. * * @since 6.3.0 * * @param bool $show Whether to show the settings in the Image Editor. Default false. */ $edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false ); ?>
        get_post_mime_type( $post_id ), 'methods' => array( 'rotate' ), ) ) ) { $note_no_rotate = ''; ?> ' . __( 'Image rotation is not supported by your web host.' ) . '

        '; ?>

        ' . $meta['width'] . ' × ' . $meta['height'] . '' ); ?>

        , 'restore')" class="button button-primary" value="" />



        stream( $mime_type ) ) ) { return false; } return true; } else { /* translators: 1: $image, 2: WP_Image_Editor */ _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); /** * Filters the GD image resource to be streamed to the browser. * * @since 2.9.0 * @deprecated 3.5.0 Use {@see 'image_editor_save_pre'} instead. * * @param resource|GdImage $image Image resource to be streamed. * @param int $attachment_id The attachment post ID. */ $image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' ); switch ( $mime_type ) { case 'image/jpeg': header( 'Content-Type: image/jpeg' ); return imagejpeg( $image, null, 90 ); case 'image/png': header( 'Content-Type: image/png' ); return imagepng( $image ); case 'image/gif': header( 'Content-Type: image/gif' ); return imagegif( $image ); case 'image/webp': if ( function_exists( 'imagewebp' ) ) { header( 'Content-Type: image/webp' ); return imagewebp( $image, null, 90 ); } return false; case 'image/avif': if ( function_exists( 'imageavif' ) ) { header( 'Content-Type: image/avif' ); return imageavif( $image, null, 90 ); } return false; default: return false; } } } /** * Saves image to file. * * @since 2.9.0 * @since 3.5.0 The `$image` parameter expects a `WP_Image_Editor` instance. * @since 6.0.0 The `$filesize` value was added to the returned array. * * @param string $filename Name of the file to be saved. * @param WP_Image_Editor $image The image editor instance. * @param string $mime_type The mime type of the image. * @param int $post_id Attachment post ID. * @return array|WP_Error|bool { * Array on success or WP_Error if the file failed to save. * When called with a deprecated value for the `$image` parameter, * i.e. a non-`WP_Image_Editor` image resource or `GdImage` instance, * the function will return true on success, false on failure. * * @type string $path Path to the image file. * @type string $file Name of the image file. * @type int $width Image width. * @type int $height Image height. * @type string $mime-type The mime type of the image. * @type int $filesize File size of the image. * } */ function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { if ( $image instanceof WP_Image_Editor ) { /** This filter is documented in wp-admin/includes/image-edit.php */ $image = apply_filters( 'image_editor_save_pre', $image, $post_id ); /** * Filters whether to skip saving the image file. * * Returning a non-null value will short-circuit the save method, * returning that value instead. * * @since 3.5.0 * * @param bool|null $override Value to return instead of saving. Default null. * @param string $filename Name of the file to be saved. * @param WP_Image_Editor $image The image editor instance. * @param string $mime_type The mime type of the image. * @param int $post_id Attachment post ID. */ $saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id ); if ( null !== $saved ) { return $saved; } return $image->save( $filename, $mime_type ); } else { /* translators: 1: $image, 2: WP_Image_Editor */ _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); /** This filter is documented in wp-admin/includes/image-edit.php */ $image = apply_filters_deprecated( 'image_save_pre', array( $image, $post_id ), '3.5.0', 'image_editor_save_pre' ); /** * Filters whether to skip saving the image file. * * Returning a non-null value will short-circuit the save method, * returning that value instead. * * @since 2.9.0 * @deprecated 3.5.0 Use {@see 'wp_save_image_editor_file'} instead. * * @param bool|null $override Value to return instead of saving. Default null. * @param string $filename Name of the file to be saved. * @param resource|GdImage $image Image resource or GdImage instance. * @param string $mime_type The mime type of the image. * @param int $post_id Attachment post ID. */ $saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' ); if ( null !== $saved ) { return $saved; } switch ( $mime_type ) { case 'image/jpeg': /** This filter is documented in wp-includes/class-wp-image-editor.php */ return imagejpeg( $image, $filename, apply_filters( 'jpeg_quality', 90, 'edit_image' ) ); case 'image/png': return imagepng( $image, $filename ); case 'image/gif': return imagegif( $image, $filename ); case 'image/webp': if ( function_exists( 'imagewebp' ) ) { return imagewebp( $image, $filename ); } return false; case 'image/avif': if ( function_exists( 'imageavif' ) ) { return imageavif( $image, $filename ); } return false; default: return false; } } } /** * Image preview ratio. Internal use only. * * @since 2.9.0 * * @ignore * @param int $w Image width in pixels. * @param int $h Image height in pixels. * @return float|int Image preview ratio. */ function _image_get_preview_ratio( $w, $h ) { $max = max( $w, $h ); return $max > 600 ? ( 600 / $max ) : 1; } /** * Returns an image resource. Internal use only. * * @since 2.9.0 * @deprecated 3.5.0 Use WP_Image_Editor::rotate() * @see WP_Image_Editor::rotate() * * @ignore * @param resource|GdImage $img Image resource. * @param float|int $angle Image rotation angle, in degrees. * @return resource|GdImage|false GD image resource or GdImage instance, false otherwise. */ function _rotate_image_resource( $img, $angle ) { _deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::rotate()' ); if ( function_exists( 'imagerotate' ) ) { $rotated = imagerotate( $img, $angle, 0 ); if ( is_gd_image( $rotated ) ) { if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0. imagedestroy( $img ); } $img = $rotated; } } return $img; } /** * Flips an image resource. Internal use only. * * @since 2.9.0 * @deprecated 3.5.0 Use WP_Image_Editor::flip() * @see WP_Image_Editor::flip() * * @ignore * @param resource|GdImage $img Image resource or GdImage instance. * @param bool $horz Whether to flip horizontally. * @param bool $vert Whether to flip vertically. * @return resource|GdImage (maybe) flipped image resource or GdImage instance. */ function _flip_image_resource( $img, $horz, $vert ) { _deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::flip()' ); $w = imagesx( $img ); $h = imagesy( $img ); $dst = wp_imagecreatetruecolor( $w, $h ); if ( is_gd_image( $dst ) ) { $sx = $vert ? ( $w - 1 ) : 0; $sy = $horz ? ( $h - 1 ) : 0; $sw = $vert ? -$w : $w; $sh = $horz ? -$h : $h; if ( imagecopyresampled( $dst, $img, 0, 0, $sx, $sy, $w, $h, $sw, $sh ) ) { if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0. imagedestroy( $img ); } $img = $dst; } } return $img; } /** * Crops an image resource. Internal use only. * * @since 2.9.0 * * @ignore * @param resource|GdImage $img Image resource or GdImage instance. * @param float $x Source point x-coordinate. * @param float $y Source point y-coordinate. * @param float $w Source width. * @param float $h Source height. * @return resource|GdImage (maybe) cropped image resource or GdImage instance. */ function _crop_image_resource( $img, $x, $y, $w, $h ) { $dst = wp_imagecreatetruecolor( $w, $h ); if ( is_gd_image( $dst ) ) { if ( imagecopy( $dst, $img, 0, 0, $x, $y, $w, $h ) ) { if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0. imagedestroy( $img ); } $img = $dst; } } return $img; } /** * Performs group of changes on Editor specified. * * @since 2.9.0 * * @param WP_Image_Editor $image WP_Image_Editor instance. * @param array $changes Array of change operations. * @return WP_Image_Editor WP_Image_Editor instance with changes applied. */ function image_edit_apply_changes( $image, $changes ) { if ( is_gd_image( $image ) ) { /* translators: 1: $image, 2: WP_Image_Editor */ _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); } if ( ! is_array( $changes ) ) { return $image; } // Expand change operations. foreach ( $changes as $key => $obj ) { if ( isset( $obj->r ) ) { $obj->type = 'rotate'; $obj->angle = $obj->r; unset( $obj->r ); } elseif ( isset( $obj->f ) ) { $obj->type = 'flip'; $obj->axis = $obj->f; unset( $obj->f ); } elseif ( isset( $obj->c ) ) { $obj->type = 'crop'; $obj->sel = $obj->c; unset( $obj->c ); } $changes[ $key ] = $obj; } // Combine operations. if ( count( $changes ) > 1 ) { $filtered = array( $changes[0] ); for ( $i = 0, $j = 1, $c = count( $changes ); $j < $c; $j++ ) { $combined = false; if ( $filtered[ $i ]->type === $changes[ $j ]->type ) { switch ( $filtered[ $i ]->type ) { case 'rotate': $filtered[ $i ]->angle += $changes[ $j ]->angle; $combined = true; break; case 'flip': $filtered[ $i ]->axis ^= $changes[ $j ]->axis; $combined = true; break; } } if ( ! $combined ) { $filtered[ ++$i ] = $changes[ $j ]; } } $changes = $filtered; unset( $filtered ); } // Image resource before applying the changes. if ( $image instanceof WP_Image_Editor ) { /** * Filters the WP_Image_Editor instance before applying changes to the image. * * @since 3.5.0 * * @param WP_Image_Editor $image WP_Image_Editor instance. * @param array $changes Array of change operations. */ $image = apply_filters( 'wp_image_editor_before_change', $image, $changes ); } elseif ( is_gd_image( $image ) ) { /** * Filters the GD image resource before applying changes to the image. * * @since 2.9.0 * @deprecated 3.5.0 Use {@see 'wp_image_editor_before_change'} instead. * * @param resource|GdImage $image GD image resource or GdImage instance. * @param array $changes Array of change operations. */ $image = apply_filters_deprecated( 'image_edit_before_change', array( $image, $changes ), '3.5.0', 'wp_image_editor_before_change' ); } foreach ( $changes as $operation ) { switch ( $operation->type ) { case 'rotate': if ( 0 !== $operation->angle ) { if ( $image instanceof WP_Image_Editor ) { $image->rotate( $operation->angle ); } else { $image = _rotate_image_resource( $image, $operation->angle ); } } break; case 'flip': if ( 0 !== $operation->axis ) { if ( $image instanceof WP_Image_Editor ) { $image->flip( ( $operation->axis & 1 ) !== 0, ( $operation->axis & 2 ) !== 0 ); } else { $image = _flip_image_resource( $image, ( $operation->axis & 1 ) !== 0, ( $operation->axis & 2 ) !== 0 ); } } break; case 'crop': $sel = $operation->sel; if ( $image instanceof WP_Image_Editor ) { $size = $image->get_size(); $w = $size['width']; $h = $size['height']; $scale = $sel->r ?? 1 / _image_get_preview_ratio( $w, $h ); // Discard preview scaling. $image->crop( (int) ( $sel->x * $scale ), (int) ( $sel->y * $scale ), (int) ( $sel->w * $scale ), (int) ( $sel->h * $scale ) ); } else { $scale = $sel->r ?? 1 / _image_get_preview_ratio( imagesx( $image ), imagesy( $image ) ); // Discard preview scaling. $image = _crop_image_resource( $image, $sel->x * $scale, $sel->y * $scale, $sel->w * $scale, $sel->h * $scale ); } break; } } return $image; } /** * Streams image in post to browser, along with enqueued changes * in `$_REQUEST['history']`. * * @since 2.9.0 * * @param int $post_id Attachment post ID. * @return bool True on success, false on failure. */ function stream_preview_image( $post_id ) { $post = get_post( $post_id ); wp_raise_memory_limit( 'admin' ); $img = wp_get_image_editor( _load_image_to_edit_path( $post_id ) ); if ( is_wp_error( $img ) ) { return false; } $changes = ! empty( $_REQUEST['history'] ) ? json_decode( wp_unslash( $_REQUEST['history'] ) ) : null; if ( $changes ) { $img = image_edit_apply_changes( $img, $changes ); } // Scale the image. $size = $img->get_size(); $w = $size['width']; $h = $size['height']; $ratio = _image_get_preview_ratio( $w, $h ); $w2 = max( 1, $w * $ratio ); $h2 = max( 1, $h * $ratio ); if ( is_wp_error( $img->resize( $w2, $h2 ) ) ) { return false; } return wp_stream_image( $img, $post->post_mime_type, $post_id ); } /** * Restores the metadata for a given attachment. * * @since 2.9.0 * * @param int $post_id Attachment post ID. * @return stdClass Image restoration message object. */ function wp_restore_image( $post_id ) { $meta = wp_get_attachment_metadata( $post_id ); $file = get_attached_file( $post_id ); $backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true ); $old_backup_sizes = $backup_sizes; $restored = false; $msg = new stdClass(); if ( ! is_array( $backup_sizes ) ) { $msg->error = __( 'Cannot load image metadata.' ); return $msg; } $parts = pathinfo( $file ); $suffix = time() . rand( 100, 999 ); $default_sizes = get_intermediate_image_sizes(); if ( isset( $backup_sizes['full-orig'] ) && is_array( $backup_sizes['full-orig'] ) ) { $data = $backup_sizes['full-orig']; if ( $parts['basename'] !== $data['file'] ) { if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE ) { // Delete only if it's an edited image. if ( preg_match( '/-e[0-9]{13}\./', $parts['basename'] ) ) { wp_delete_file( $file ); } } elseif ( isset( $meta['width'], $meta['height'] ) ) { $backup_sizes[ "full-$suffix" ] = array( 'width' => $meta['width'], 'height' => $meta['height'], 'filesize' => $meta['filesize'], 'file' => $parts['basename'], ); } } $restored_file = path_join( $parts['dirname'], $data['file'] ); $restored = update_attached_file( $post_id, $restored_file ); $meta['file'] = _wp_relative_upload_path( $restored_file ); $meta['width'] = $data['width']; $meta['height'] = $data['height']; if ( isset( $data['filesize'] ) ) { /* * Restore the original filesize if it was backed up. * * See https://core.trac.wordpress.org/ticket/59684. */ $meta['filesize'] = $data['filesize']; } } foreach ( $default_sizes as $default_size ) { if ( isset( $backup_sizes[ "$default_size-orig" ] ) ) { $data = $backup_sizes[ "$default_size-orig" ]; if ( isset( $meta['sizes'][ $default_size ] ) && $meta['sizes'][ $default_size ]['file'] !== $data['file'] ) { if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE ) { // Delete only if it's an edited image. if ( preg_match( '/-e[0-9]{13}-/', $meta['sizes'][ $default_size ]['file'] ) ) { $delete_file = path_join( $parts['dirname'], $meta['sizes'][ $default_size ]['file'] ); wp_delete_file( $delete_file ); } } else { $backup_sizes[ "$default_size-{$suffix}" ] = $meta['sizes'][ $default_size ]; } } $meta['sizes'][ $default_size ] = $data; } else { unset( $meta['sizes'][ $default_size ] ); } } if ( ! wp_update_attachment_metadata( $post_id, $meta ) || ( $old_backup_sizes !== $backup_sizes && ! update_post_meta( $post_id, '_wp_attachment_backup_sizes', $backup_sizes ) ) ) { $msg->error = __( 'Cannot save image metadata.' ); return $msg; } if ( ! $restored ) { $msg->error = __( 'Image metadata is inconsistent.' ); } else { $msg->msg = __( 'Image restored successfully.' ); if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE ) { delete_post_meta( $post_id, '_wp_attachment_backup_sizes' ); } } return $msg; } /** * Saves image to post, along with enqueued changes * in `$_REQUEST['history']`. * * @since 2.9.0 * * @param int $post_id Attachment post ID. * @return stdClass */ function wp_save_image( $post_id ) { $_wp_additional_image_sizes = wp_get_additional_image_sizes(); $return = new stdClass(); $success = false; $delete = false; $scaled = false; $nocrop = false; $post = get_post( $post_id ); $img = wp_get_image_editor( _load_image_to_edit_path( $post_id, 'full' ) ); if ( is_wp_error( $img ) ) { $return->error = esc_js( __( 'Unable to create new image.' ) ); return $return; } $full_width = ! empty( $_REQUEST['fwidth'] ) ? (int) $_REQUEST['fwidth'] : 0; $full_height = ! empty( $_REQUEST['fheight'] ) ? (int) $_REQUEST['fheight'] : 0; $target = ! empty( $_REQUEST['target'] ) ? preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['target'] ) : ''; $scale = ! empty( $_REQUEST['do'] ) && 'scale' === $_REQUEST['do']; /** This filter is documented in wp-admin/includes/image-edit.php */ $edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false ); if ( $scale ) { $size = $img->get_size(); $original_width = $size['width']; $original_height = $size['height']; if ( $full_width > $original_width || $full_height > $original_height ) { $return->error = esc_js( __( 'Images cannot be scaled to a size larger than the original.' ) ); return $return; } if ( $full_width > 0 && $full_height > 0 ) { // Check if it has roughly the same w / h ratio. $diff = round( $original_width / $original_height, 2 ) - round( $full_width / $full_height, 2 ); if ( -0.1 < $diff && $diff < 0.1 ) { // Scale the full size image. if ( $img->resize( $full_width, $full_height ) ) { $scaled = true; } } if ( ! $scaled ) { $return->error = esc_js( __( 'Error while saving the scaled image. Please reload the page and try again.' ) ); return $return; } } } elseif ( ! empty( $_REQUEST['history'] ) ) { $changes = json_decode( wp_unslash( $_REQUEST['history'] ) ); if ( $changes ) { $img = image_edit_apply_changes( $img, $changes ); } } else { $return->error = esc_js( __( 'Nothing to save, the image has not changed.' ) ); return $return; } $meta = wp_get_attachment_metadata( $post_id ); $backup_sizes = get_post_meta( $post->ID, '_wp_attachment_backup_sizes', true ); if ( ! is_array( $meta ) ) { $return->error = esc_js( __( 'Image data does not exist. Please re-upload the image.' ) ); return $return; } if ( ! is_array( $backup_sizes ) ) { $backup_sizes = array(); } // Generate new filename. $path = get_attached_file( $post_id ); $basename = pathinfo( $path, PATHINFO_BASENAME ); $dirname = pathinfo( $path, PATHINFO_DIRNAME ); $ext = pathinfo( $path, PATHINFO_EXTENSION ); $filename = pathinfo( $path, PATHINFO_FILENAME ); $suffix = time() . rand( 100, 999 ); if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE && isset( $backup_sizes['full-orig'] ) && $backup_sizes['full-orig']['file'] !== $basename ) { if ( $edit_thumbnails_separately && 'thumbnail' === $target ) { $new_path = "{$dirname}/{$filename}-temp.{$ext}"; } else { $new_path = $path; } } else { while ( true ) { $filename = preg_replace( '/-e([0-9]+)$/', '', $filename ); $filename .= "-e{$suffix}"; $new_filename = "{$filename}.{$ext}"; $new_path = "{$dirname}/$new_filename"; if ( file_exists( $new_path ) ) { ++$suffix; } else { break; } } } $saved_image = wp_save_image_file( $new_path, $img, $post->post_mime_type, $post_id ); // Save the full-size file, also needed to create sub-sizes. if ( ! $saved_image ) { $return->error = esc_js( __( 'Unable to save the image.' ) ); return $return; } if ( 'nothumb' === $target || 'all' === $target || 'full' === $target || $scaled ) { $tag = false; if ( isset( $backup_sizes['full-orig'] ) ) { if ( ( ! defined( 'IMAGE_EDIT_OVERWRITE' ) || ! IMAGE_EDIT_OVERWRITE ) && $backup_sizes['full-orig']['file'] !== $basename ) { $tag = "full-$suffix"; } } else { $tag = 'full-orig'; } if ( $tag ) { $backup_sizes[ $tag ] = array( 'width' => $meta['width'], 'height' => $meta['height'], 'filesize' => $meta['filesize'], 'file' => $basename, ); } $success = ( $path === $new_path ) || update_attached_file( $post_id, $new_path ); $meta['file'] = _wp_relative_upload_path( $new_path ); $size = $img->get_size(); $meta['width'] = $size['width']; $meta['height'] = $size['height']; $meta['filesize'] = $saved_image['filesize']; if ( $success && ( 'nothumb' === $target || 'all' === $target ) ) { $sizes = get_intermediate_image_sizes(); if ( $edit_thumbnails_separately && 'nothumb' === $target ) { $sizes = array_diff( $sizes, array( 'thumbnail' ) ); } } $return->fw = $meta['width']; $return->fh = $meta['height']; } elseif ( $edit_thumbnails_separately && 'thumbnail' === $target ) { $sizes = array( 'thumbnail' ); $success = true; $delete = true; $nocrop = true; } /* * We need to remove any existing resized image files because * a new crop or rotate could generate different sizes (and hence, filenames), * keeping the new resized images from overwriting the existing image files. * https://core.trac.wordpress.org/ticket/32171 */ if ( defined( 'IMAGE_EDIT_OVERWRITE' ) && IMAGE_EDIT_OVERWRITE && ! empty( $meta['sizes'] ) ) { foreach ( $meta['sizes'] as $size ) { if ( ! empty( $size['file'] ) && preg_match( '/-e[0-9]{13}-/', $size['file'] ) ) { $delete_file = path_join( $dirname, $size['file'] ); wp_delete_file( $delete_file ); } } } if ( isset( $sizes ) ) { $_sizes = array(); foreach ( $sizes as $size ) { $tag = false; if ( isset( $meta['sizes'][ $size ] ) ) { if ( isset( $backup_sizes[ "$size-orig" ] ) ) { if ( ( ! defined( 'IMAGE_EDIT_OVERWRITE' ) || ! IMAGE_EDIT_OVERWRITE ) && $backup_sizes[ "$size-orig" ]['file'] !== $meta['sizes'][ $size ]['file'] ) { $tag = "$size-$suffix"; } } else { $tag = "$size-orig"; } if ( $tag ) { $backup_sizes[ $tag ] = $meta['sizes'][ $size ]; } } if ( isset( $_wp_additional_image_sizes[ $size ] ) ) { $width = (int) $_wp_additional_image_sizes[ $size ]['width']; $height = (int) $_wp_additional_image_sizes[ $size ]['height']; $crop = ( $nocrop ) ? false : $_wp_additional_image_sizes[ $size ]['crop']; } else { $height = get_option( "{$size}_size_h" ); $width = get_option( "{$size}_size_w" ); $crop = ( $nocrop ) ? false : get_option( "{$size}_crop" ); } $_sizes[ $size ] = array( 'width' => $width, 'height' => $height, 'crop' => $crop, ); } $meta['sizes'] = array_merge( $meta['sizes'], $img->multi_resize( $_sizes ) ); } unset( $img ); if ( $success ) { wp_update_attachment_metadata( $post_id, $meta ); update_post_meta( $post_id, '_wp_attachment_backup_sizes', $backup_sizes ); if ( 'thumbnail' === $target || 'all' === $target || 'full' === $target ) { // Check if it's an image edit from attachment edit screen. if ( ! empty( $_REQUEST['context'] ) && 'edit-attachment' === $_REQUEST['context'] ) { $thumb_url = wp_get_attachment_image_src( $post_id, array( 900, 600 ), true ); $return->thumbnail = $thumb_url[0]; } else { $file_url = wp_get_attachment_url( $post_id ); if ( ! empty( $meta['sizes']['thumbnail'] ) ) { $thumb = $meta['sizes']['thumbnail']; $return->thumbnail = path_join( dirname( $file_url ), $thumb['file'] ); } else { $return->thumbnail = "$file_url?w=128&h=128"; } } } } else { $delete = true; } if ( $delete ) { wp_delete_file( $new_path ); } $return->msg = esc_js( __( 'Image saved' ) ); return $return; } includes/ms-deprecated.php000064400000007272152213653150011613 0ustar00 '', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false, ); $args = wp_parse_args( $args, $defaults ); if ( $args['skip_header_footer'] ) { $this->done_header = true; $this->done_footer = true; $this->display_footer_actions = false; } parent::__construct( $args ); } /** * Performs an action before a language pack update. * * @since 3.7.0 */ public function before() { $name = $this->upgrader->get_name_for_update( $this->language_update ); echo '
        '; /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ printf( '

        ' . __( 'Updating translations for %1$s (%2$s)…' ) . '

        ', $name, $this->language_update->language ); } /** * Displays an error message about the update. * * @since 3.7.0 * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support. * * @param string|WP_Error $errors Errors. */ public function error( $errors ) { echo '
        '; parent::error( $errors ); echo '
        '; } /** * Performs an action following a language pack update. * * @since 3.7.0 */ public function after() { echo '
        '; } /** * Displays the footer following the bulk update process. * * @since 3.7.0 */ public function bulk_footer() { $this->decrement_update_count( 'translation' ); $update_actions = array( 'updates_page' => sprintf( '%s', self_admin_url( 'update-core.php' ), __( 'Go to WordPress Updates page' ) ), ); /** * Filters the list of action links available following a translations update. * * @since 3.7.0 * * @param string[] $update_actions Array of translations update links. */ $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions ); if ( $update_actions && $this->display_footer_actions ) { $this->feedback( implode( ' | ', $update_actions ) ); } } } includes/class-custom-background.php000064400000052312152213653150013623 0ustar00admin_header_callback = $admin_header_callback; $this->admin_image_div_callback = $admin_image_div_callback; add_action( 'admin_menu', array( $this, 'init' ) ); add_action( 'wp_ajax_custom-background-add', array( $this, 'ajax_background_add' ) ); // Unused since 3.5.0. add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' ) ); } /** * Sets up the hooks for the Custom Background admin page. * * @since 3.0.0 */ public function init() { $page = add_theme_page( _x( 'Background', 'custom background' ), _x( 'Background', 'custom background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) ); if ( ! $page ) { return; } add_action( "load-{$page}", array( $this, 'admin_load' ) ); add_action( "load-{$page}", array( $this, 'take_action' ), 49 ); add_action( "load-{$page}", array( $this, 'handle_upload' ), 49 ); if ( $this->admin_header_callback ) { add_action( "admin_head-{$page}", $this->admin_header_callback, 51 ); } } /** * Sets up the enqueue for the CSS & JavaScript files. * * @since 3.0.0 */ public function admin_load() { get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

        ' . __( 'You can customize the look of your site without touching any of your theme’s code by using a custom background. Your background can be an image or a color.' ) . '

        ' . '

        ' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the “Choose Image” button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '

        ' . '

        ' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '

        ' . '

        ' . __( 'Do not forget to click on the Save Changes button when you are finished.' ) . '

        ', ) ); get_current_screen()->set_help_sidebar( '

        ' . __( 'For more information:' ) . '

        ' . '

        ' . __( 'Documentation on Custom Background' ) . '

        ' . '

        ' . __( 'Support forums' ) . '

        ' ); wp_enqueue_media(); wp_enqueue_script( 'custom-background' ); wp_enqueue_style( 'wp-color-picker' ); } /** * Executes custom background modification. * * @since 3.0.0 */ public function take_action() { if ( empty( $_POST ) ) { return; } if ( isset( $_POST['reset-background'] ) ) { check_admin_referer( 'custom-background-reset', '_wpnonce-custom-background-reset' ); remove_theme_mod( 'background_image' ); remove_theme_mod( 'background_image_thumb' ); $this->updated = true; return; } if ( isset( $_POST['remove-background'] ) ) { // @todo Uploaded files are not removed here. check_admin_referer( 'custom-background-remove', '_wpnonce-custom-background-remove' ); set_theme_mod( 'background_image', '' ); set_theme_mod( 'background_image_thumb', '' ); $this->updated = true; wp_safe_redirect( $_POST['_wp_http_referer'] ); return; } if ( isset( $_POST['background-preset'] ) ) { check_admin_referer( 'custom-background' ); if ( in_array( $_POST['background-preset'], array( 'default', 'fill', 'fit', 'repeat', 'custom' ), true ) ) { $preset = $_POST['background-preset']; } else { $preset = 'default'; } set_theme_mod( 'background_preset', $preset ); } if ( isset( $_POST['background-position'] ) ) { check_admin_referer( 'custom-background' ); $position = explode( ' ', $_POST['background-position'] ); if ( in_array( $position[0], array( 'left', 'center', 'right' ), true ) ) { $position_x = $position[0]; } else { $position_x = 'left'; } if ( in_array( $position[1], array( 'top', 'center', 'bottom' ), true ) ) { $position_y = $position[1]; } else { $position_y = 'top'; } set_theme_mod( 'background_position_x', $position_x ); set_theme_mod( 'background_position_y', $position_y ); } if ( isset( $_POST['background-size'] ) ) { check_admin_referer( 'custom-background' ); if ( in_array( $_POST['background-size'], array( 'auto', 'contain', 'cover' ), true ) ) { $size = $_POST['background-size']; } else { $size = 'auto'; } set_theme_mod( 'background_size', $size ); } if ( isset( $_POST['background-repeat'] ) ) { check_admin_referer( 'custom-background' ); $repeat = $_POST['background-repeat']; if ( 'no-repeat' !== $repeat ) { $repeat = 'repeat'; } set_theme_mod( 'background_repeat', $repeat ); } if ( isset( $_POST['background-attachment'] ) ) { check_admin_referer( 'custom-background' ); $attachment = $_POST['background-attachment']; if ( 'fixed' !== $attachment ) { $attachment = 'scroll'; } set_theme_mod( 'background_attachment', $attachment ); } if ( isset( $_POST['background-color'] ) ) { check_admin_referer( 'custom-background' ); $color = preg_replace( '/[^0-9a-fA-F]/', '', $_POST['background-color'] ); if ( strlen( $color ) === 6 || strlen( $color ) === 3 ) { set_theme_mod( 'background_color', $color ); } else { set_theme_mod( 'background_color', '' ); } } $this->updated = true; } /** * Displays the custom background page. * * @since 3.0.0 */ public function admin_page() { ?>

        Customizer.' ), admin_url( 'customize.php?autofocus[control]=background_image' ) ); wp_admin_notice( $message, array( 'type' => 'info', 'additional_classes' => array( 'hide-if-no-customize' ), ) ); } if ( ! empty( $this->updated ) ) { $updated_message = sprintf( /* translators: %s: Home URL. */ __( 'Background updated. Visit your site to see how it looks.' ), esc_url( home_url( '/' ) ) ); wp_admin_notice( $updated_message, array( 'id' => 'message', 'additional_classes' => array( 'updated' ), ) ); } ?>

        array( 'label' => __( 'Top Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt', ), 'center top' => array( 'label' => __( 'Top' ), 'icon' => 'dashicons dashicons-arrow-up-alt', ), 'right top' => array( 'label' => __( 'Top Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt', ), ), array( 'left center' => array( 'label' => __( 'Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt', ), 'center center' => array( 'label' => __( 'Center' ), 'icon' => 'background-position-center-icon', ), 'right center' => array( 'label' => __( 'Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt', ), ), array( 'left bottom' => array( 'label' => __( 'Bottom Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt', ), 'center bottom' => array( 'label' => __( 'Bottom' ), 'icon' => 'dashicons dashicons-arrow-down-alt', ), 'right bottom' => array( 'label' => __( 'Bottom Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt', ), ), ); ?>
        false ); $uploaded_file = $_FILES['import']; $wp_filetype = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] ); if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) { wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) ); } $file = wp_handle_upload( $uploaded_file, $overrides ); if ( isset( $file['error'] ) ) { wp_die( $file['error'] ); } $url = $file['url']; $type = $file['type']; $file = $file['file']; $filename = wp_basename( $file ); // Construct the attachment array. $attachment = array( 'post_title' => $filename, 'post_content' => $url, 'post_mime_type' => $type, 'guid' => $url, 'context' => 'custom-background', ); // Save the data. $id = wp_insert_attachment( $attachment, $file ); // Add the metadata. wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); update_post_meta( $id, '_wp_attachment_is_custom_background', get_option( 'stylesheet' ) ); set_theme_mod( 'background_image', sanitize_url( $url ) ); $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); set_theme_mod( 'background_image_thumb', sanitize_url( $thumbnail[0] ) ); /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $file = apply_filters( 'wp_create_file_in_uploads', $file, $id ); // For replication. $this->updated = true; } /** * Handles Ajax request for adding custom background context to an attachment. * * Triggers when the user adds a new background image from the * Media Manager. * * @since 4.1.0 */ public function ajax_background_add() { check_ajax_referer( 'background-add', 'nonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_send_json_error(); } $attachment_id = absint( $_POST['attachment_id'] ); if ( $attachment_id < 1 ) { wp_send_json_error(); } update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_stylesheet() ); wp_send_json_success(); } /** * @since 3.4.0 * @deprecated 3.5.0 * * @param array $form_fields * @return array $form_fields */ public function attachment_fields_to_edit( $form_fields ) { return $form_fields; } /** * @since 3.4.0 * @deprecated 3.5.0 * * @param array $tabs * @return array $tabs */ public function filter_upload_tabs( $tabs ) { return $tabs; } /** * @since 3.4.0 * @deprecated 3.5.0 */ public function wp_set_background_image() { check_ajax_referer( 'custom-background' ); if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $_POST['attachment_id'] ) ) { exit; } $attachment_id = absint( $_POST['attachment_id'] ); $sizes = array_keys( /** This filter is documented in wp-admin/includes/media.php */ apply_filters( 'image_size_names_choose', array( 'thumbnail' => __( 'Thumbnail' ), 'medium' => __( 'Medium' ), 'large' => __( 'Large' ), 'full' => __( 'Full Size' ), ) ) ); $size = 'thumbnail'; if ( in_array( $_POST['size'], $sizes, true ) ) { $size = esc_attr( $_POST['size'] ); } update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option( 'stylesheet' ) ); $url = wp_get_attachment_image_src( $attachment_id, $size ); $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' ); set_theme_mod( 'background_image', sanitize_url( $url[0] ) ); set_theme_mod( 'background_image_thumb', sanitize_url( $thumbnail[0] ) ); exit; } } includes/taxonomy.php000064400000020443152213653150010747 0ustar00 $category_name, 'category_parent' => $category_parent, ) ); } /** * Creates categories for the given post. * * @since 2.0.0 * * @param string[] $categories Array of category names to create. * @param int $post_id Optional. The post ID. Default empty. * @return int[] Array of IDs of categories assigned to the given post. */ function wp_create_categories( $categories, $post_id = 0 ) { $cat_ids = array(); foreach ( $categories as $category ) { $id = category_exists( $category ); if ( $id ) { $cat_ids[] = $id; } else { $id = wp_create_category( $category ); if ( $id ) { $cat_ids[] = $id; } } } if ( $post_id ) { wp_set_post_categories( $post_id, $cat_ids ); } return $cat_ids; } /** * Updates an existing Category or creates a new Category. * * @since 2.0.0 * @since 2.5.0 $wp_error parameter was added. * @since 3.0.0 The 'taxonomy' argument was added. * * @param array $catarr { * Array of arguments for inserting a new category. * * @type int $cat_ID Category ID. A non-zero value updates an existing category. * Default 0. * @type string $taxonomy Taxonomy slug. Default 'category'. * @type string $cat_name Category name. Default empty. * @type string $category_description Category description. Default empty. * @type string $category_nicename Category nice (display) name. Default empty. * @type int|string $category_parent Category parent ID. Default empty. * } * @param bool $wp_error Optional. Default false. * @return int|WP_Error The ID number of the new or updated Category on success. Zero or a WP_Error on failure, * depending on param `$wp_error`. */ function wp_insert_category( $catarr, $wp_error = false ) { $cat_defaults = array( 'cat_ID' => 0, 'taxonomy' => 'category', 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => '', ); $catarr = wp_parse_args( $catarr, $cat_defaults ); if ( '' === trim( $catarr['cat_name'] ) ) { if ( ! $wp_error ) { return 0; } else { return new WP_Error( 'cat_name', __( 'You did not enter a category name.' ) ); } } $catarr['cat_ID'] = (int) $catarr['cat_ID']; // Are we updating or creating? $update = ! empty( $catarr['cat_ID'] ); $name = $catarr['cat_name']; $description = $catarr['category_description']; $slug = $catarr['category_nicename']; $parent = (int) $catarr['category_parent']; if ( $parent < 0 ) { $parent = 0; } if ( empty( $parent ) || ! term_exists( $parent, $catarr['taxonomy'] ) || ( $catarr['cat_ID'] && term_is_ancestor_of( $catarr['cat_ID'], $parent, $catarr['taxonomy'] ) ) ) { $parent = 0; } $args = compact( 'name', 'slug', 'parent', 'description' ); if ( $update ) { $catarr['cat_ID'] = wp_update_term( $catarr['cat_ID'], $catarr['taxonomy'], $args ); } else { $catarr['cat_ID'] = wp_insert_term( $catarr['cat_name'], $catarr['taxonomy'], $args ); } if ( is_wp_error( $catarr['cat_ID'] ) ) { if ( $wp_error ) { return $catarr['cat_ID']; } else { return 0; } } return $catarr['cat_ID']['term_id']; } /** * Aliases wp_insert_category() with minimal args. * * If you want to update only some fields of an existing category, call this * function with only the new values set inside $catarr. * * @since 2.0.0 * * @param array $catarr The 'cat_ID' value is required. All other keys are optional. * @return int|false The ID number of the new or updated Category on success. Zero or FALSE on failure. */ function wp_update_category( $catarr ) { $cat_id = (int) $catarr['cat_ID']; if ( isset( $catarr['category_parent'] ) && ( $cat_id === (int) $catarr['category_parent'] ) ) { return false; } // First, get all of the original fields. $category = get_term( $cat_id, 'category', ARRAY_A ); _make_cat_compat( $category ); // Escape data pulled from DB. $category = wp_slash( $category ); // Merge old and new fields with new fields overwriting old ones. $catarr = array_merge( $category, $catarr ); return wp_insert_category( $catarr ); } // // Tags. // /** * Checks whether a post tag with a given name exists. * * @since 2.3.0 * * @param int|string $tag_name * @return mixed Returns null if the term does not exist. * Returns an array of the term ID and the term taxonomy ID if the pairing exists. * Returns 0 if term ID 0 is passed to the function. */ function tag_exists( $tag_name ) { return term_exists( $tag_name, 'post_tag' ); } /** * Adds a new tag to the database if it does not already exist. * * @since 2.3.0 * * @param int|string $tag_name * @return array|WP_Error */ function wp_create_tag( $tag_name ) { return wp_create_term( $tag_name, 'post_tag' ); } /** * Gets comma-separated list of tags available to edit. * * @since 2.3.0 * * @param int $post_id * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. * @return string|false|WP_Error */ function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) { return get_terms_to_edit( $post_id, $taxonomy ); } /** * Gets comma-separated list of terms available to edit for the given post ID. * * @since 2.8.0 * * @param int $post_id * @param string $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'. * @return string|false|WP_Error */ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { $post_id = (int) $post_id; if ( ! $post_id ) { return false; } $terms = get_object_term_cache( $post_id, $taxonomy ); if ( false === $terms ) { $terms = wp_get_object_terms( $post_id, $taxonomy ); wp_cache_add( $post_id, wp_list_pluck( $terms, 'term_id' ), $taxonomy . '_relationships' ); } if ( ! $terms ) { return false; } if ( is_wp_error( $terms ) ) { return $terms; } $term_names = array(); foreach ( $terms as $term ) { $term_names[] = $term->name; } $terms_to_edit = esc_attr( implode( ',', $term_names ) ); /** * Filters the comma-separated list of terms available to edit. * * @since 2.8.0 * * @see get_terms_to_edit() * * @param string $terms_to_edit A comma-separated list of term names. * @param string $taxonomy The taxonomy name for which to retrieve terms. */ $terms_to_edit = apply_filters( 'terms_to_edit', $terms_to_edit, $taxonomy ); return $terms_to_edit; } /** * Adds a new term to the database if it does not already exist. * * @since 2.8.0 * * @param string $tag_name The term name. * @param string $taxonomy Optional. The taxonomy within which to create the term. Default 'post_tag'. * @return array|WP_Error */ function wp_create_term( $tag_name, $taxonomy = 'post_tag' ) { $id = term_exists( $tag_name, $taxonomy ); if ( $id ) { return $id; } return wp_insert_term( $tag_name, $taxonomy ); } includes/class-wp-privacy-requests-table.php000064400000034707152213653150015243 0ustar00 '', 'email' => __( 'Requester' ), 'status' => __( 'Status' ), 'created_timestamp' => __( 'Requested' ), 'next_steps' => __( 'Next steps' ), ); return $columns; } /** * Normalizes the admin URL to the current page (by request_type). * * @since 5.3.0 * * @return string URL to the current admin page. */ protected function get_admin_url() { $pagenow = str_replace( '_', '-', $this->request_type ); if ( 'remove-personal-data' === $pagenow ) { $pagenow = 'erase-personal-data'; } return admin_url( $pagenow . '.php' ); } /** * Gets a list of sortable columns. * * @since 4.9.6 * * @return array Default sortable columns. */ protected function get_sortable_columns() { /* * The initial sorting is by 'Requested' (post_date) and descending. * With initial sorting, the first click on 'Requested' should be ascending. * With 'Requester' sorting active, the next click on 'Requested' should be descending. */ $desc_first = isset( $_GET['orderby'] ); return array( 'email' => 'requester', 'created_timestamp' => array( 'requested', $desc_first ), ); } /** * Returns the default primary column. * * @since 4.9.6 * * @return string Default primary column name. */ protected function get_default_primary_column_name() { return 'email'; } /** * Counts the number of requests for each status. * * @since 4.9.6 * * @global wpdb $wpdb WordPress database abstraction object. * * @return object Number of posts for each status. */ protected function get_request_counts() { global $wpdb; $cache_key = $this->post_type . '-' . $this->request_type; $counts = wp_cache_get( $cache_key, 'counts' ); if ( false !== $counts ) { return $counts; } $results = (array) $wpdb->get_results( $wpdb->prepare( "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s AND post_name = %s GROUP BY post_status", $this->post_type, $this->request_type ), ARRAY_A ); $counts = array_fill_keys( get_post_stati(), 0 ); foreach ( $results as $row ) { $counts[ $row['post_status'] ] = $row['num_posts']; } $counts = (object) $counts; wp_cache_set( $cache_key, $counts, 'counts' ); return $counts; } /** * Gets an associative array ( id => link ) with the list of views available on this table. * * @since 4.9.6 * * @return string[] An array of HTML links keyed by their view. */ protected function get_views() { $current_status = isset( $_REQUEST['filter-status'] ) ? sanitize_text_field( $_REQUEST['filter-status'] ) : ''; $statuses = _wp_privacy_statuses(); $views = array(); $counts = $this->get_request_counts(); $total_requests = absint( array_sum( (array) $counts ) ); // Normalized admin URL. $admin_url = $this->get_admin_url(); $status_label = sprintf( /* translators: %s: Number of requests. */ _nx( 'All (%s)', 'All (%s)', $total_requests, 'requests' ), number_format_i18n( $total_requests ) ); $views['all'] = array( 'url' => esc_url( $admin_url ), 'label' => $status_label, 'current' => empty( $current_status ), ); foreach ( $statuses as $status => $label ) { $post_status = get_post_status_object( $status ); if ( ! $post_status ) { continue; } $total_status_requests = absint( $counts->{$status} ); if ( ! $total_status_requests ) { continue; } $status_label = sprintf( translate_nooped_plural( $post_status->label_count, $total_status_requests ), number_format_i18n( $total_status_requests ) ); $status_link = add_query_arg( 'filter-status', $status, $admin_url ); $views[ $status ] = array( 'url' => esc_url( $status_link ), 'label' => $status_label, 'current' => $status === $current_status, ); } return $this->get_views_links( $views ); } /** * Gets bulk actions. * * @since 4.9.6 * * @return array Array of bulk action labels keyed by their action. */ protected function get_bulk_actions() { return array( 'resend' => __( 'Resend confirmation requests' ), 'complete' => __( 'Mark requests as completed' ), 'delete' => __( 'Delete requests' ), ); } /** * Process bulk actions. * * @since 4.9.6 * @since 5.6.0 Added support for the `complete` action. */ public function process_bulk_action() { $action = $this->current_action(); $request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array(); if ( empty( $request_ids ) ) { return; } $count = 0; $failures = 0; check_admin_referer( 'bulk-privacy_requests' ); switch ( $action ) { case 'resend': foreach ( $request_ids as $request_id ) { $resend = _wp_privacy_resend_request( $request_id ); if ( $resend && ! is_wp_error( $resend ) ) { ++$count; } else { ++$failures; } } if ( $failures ) { add_settings_error( 'bulk_action', 'bulk_action', sprintf( /* translators: %d: Number of requests. */ _n( '%d confirmation request failed to resend.', '%d confirmation requests failed to resend.', $failures ), $failures ), 'error' ); } if ( $count ) { add_settings_error( 'bulk_action', 'bulk_action', sprintf( /* translators: %d: Number of requests. */ _n( '%d confirmation request re-sent successfully.', '%d confirmation requests re-sent successfully.', $count ), $count ), 'success' ); } break; case 'complete': foreach ( $request_ids as $request_id ) { $result = _wp_privacy_completed_request( $request_id ); if ( $result && ! is_wp_error( $result ) ) { ++$count; } } add_settings_error( 'bulk_action', 'bulk_action', sprintf( /* translators: %d: Number of requests. */ _n( '%d request marked as complete.', '%d requests marked as complete.', $count ), $count ), 'success' ); break; case 'delete': foreach ( $request_ids as $request_id ) { if ( wp_delete_post( $request_id, true ) ) { ++$count; } else { ++$failures; } } if ( $failures ) { add_settings_error( 'bulk_action', 'bulk_action', sprintf( /* translators: %d: Number of requests. */ _n( '%d request failed to delete.', '%d requests failed to delete.', $failures ), $failures ), 'error' ); } if ( $count ) { add_settings_error( 'bulk_action', 'bulk_action', sprintf( /* translators: %d: Number of requests. */ _n( '%d request deleted successfully.', '%d requests deleted successfully.', $count ), $count ), 'success' ); } break; } } /** * Prepares items to output. * * @since 4.9.6 * @since 5.1.0 Added support for column sorting. */ public function prepare_items() { $this->items = array(); $posts_per_page = $this->get_items_per_page( $this->request_type . '_requests_per_page' ); $args = array( 'post_type' => $this->post_type, 'post_name__in' => array( $this->request_type ), 'posts_per_page' => $posts_per_page, 'offset' => isset( $_REQUEST['paged'] ) ? max( 0, absint( $_REQUEST['paged'] ) - 1 ) * $posts_per_page : 0, 'post_status' => 'any', 's' => isset( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : '', ); $orderby_mapping = array( 'requester' => 'post_title', 'requested' => 'post_date', ); if ( isset( $_REQUEST['orderby'] ) && isset( $orderby_mapping[ $_REQUEST['orderby'] ] ) ) { $args['orderby'] = $orderby_mapping[ $_REQUEST['orderby'] ]; } if ( isset( $_REQUEST['order'] ) && in_array( strtoupper( $_REQUEST['order'] ), array( 'ASC', 'DESC' ), true ) ) { $args['order'] = strtoupper( $_REQUEST['order'] ); } if ( ! empty( $_REQUEST['filter-status'] ) ) { $filter_status = isset( $_REQUEST['filter-status'] ) ? sanitize_text_field( $_REQUEST['filter-status'] ) : ''; $args['post_status'] = $filter_status; } $requests_query = new WP_Query( $args ); $requests = $requests_query->posts; foreach ( $requests as $request ) { $this->items[] = wp_get_user_request( $request->ID ); } $this->items = array_filter( $this->items ); $this->set_pagination_args( array( 'total_items' => $requests_query->found_posts, 'per_page' => $posts_per_page, ) ); } /** * Returns the markup for the Checkbox column. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. * @return string Checkbox column markup. */ public function column_cb( $item ) { return sprintf( '' . '', esc_attr( $item->ID ), /* translators: Hidden accessibility text. %s: Email address. */ sprintf( __( 'Select %s' ), $item->email ) ); } /** * Status column. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. * @return string|void Status column markup. Returns a string if no status is found, * otherwise it displays the markup. */ public function column_status( $item ) { $status = get_post_status( $item->ID ); $status_object = get_post_status_object( $status ); if ( ! $status_object || empty( $status_object->label ) ) { return '-'; } $timestamp = false; switch ( $status ) { case 'request-confirmed': $timestamp = $item->confirmed_timestamp; break; case 'request-completed': $timestamp = $item->completed_timestamp; break; } echo ''; echo esc_html( $status_object->label ); if ( $timestamp ) { echo '' . $this->get_timestamp_as_date( $timestamp ) . ''; } echo ''; } /** * Converts a timestamp for display. * * @since 4.9.6 * * @param int $timestamp Event timestamp. * @return string Human readable date. */ protected function get_timestamp_as_date( $timestamp ) { if ( empty( $timestamp ) ) { return ''; } $time_diff = time() - $timestamp; if ( $time_diff >= 0 && $time_diff < DAY_IN_SECONDS ) { /* translators: %s: Human-readable time difference. */ return sprintf( __( '%s ago' ), human_time_diff( $timestamp ) ); } return sprintf( /* translators: 1: privacy request date format, 2: privacy request time format. */ __( '%1$s at %2$s' ), /* translators: privacy request date format. See https://www.php.net/manual/en/datetime.format.php */ date_i18n( __( 'Y/m/d' ), $timestamp ), /* translators: privacy request time format. See https://www.php.net/manual/en/datetime.format.php */ date_i18n( __( 'g:i a' ), $timestamp ) ); } /** * Handles the default column. * * @since 4.9.6 * @since 5.7.0 Added `manage_{$this->screen->id}_custom_column` action. * * @param WP_User_Request $item Item being shown. * @param string $column_name Name of column being shown. */ public function column_default( $item, $column_name ) { /** * Fires for each custom column of a specific request type in the Privacy Requests list table. * * Custom columns are registered using the {@see 'manage_export-personal-data_columns'} * and the {@see 'manage_erase-personal-data_columns'} filters. * * The dynamic portion of the hook name, `$this->screen->id`, refers to the ID given to the list table * according to which screen it's displayed on. * * Possible hook names include: * * - `manage_export-personal-data_custom_column` * - `manage_erase-personal-data_custom_column` * * @since 5.7.0 * * @param string $column_name The name of the column to display. * @param WP_User_Request $item The item being shown. */ do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item ); } /** * Returns the markup for the Created timestamp column. Overridden by children. * * @since 5.7.0 * * @param WP_User_Request $item Item being shown. * @return string Human readable date. */ public function column_created_timestamp( $item ) { return $this->get_timestamp_as_date( $item->created_timestamp ); } /** * Actions column. Overridden by children. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. * @return string Email column markup. */ public function column_email( $item ) { return sprintf( '%2$s %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( array() ) ); } /** * Returns the markup for the next steps column. Overridden by children. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. */ public function column_next_steps( $item ) {} /** * Generates content for a single row of the table, * * @since 4.9.6 * * @param WP_User_Request $item The current item. */ public function single_row( $item ) { $status = $item->status; echo ''; $this->single_row_columns( $item ); echo ''; } /** * Embeds scripts used to perform actions. Overridden by children. * * @since 4.9.6 */ public function embed_scripts() {} } includes/nav-menu.php000064400000137747152213653150010637 0ustar00 $object_id, 'post_title' => get_the_title( $object_id ), 'post_type' => get_post_type( $object_id ), ) ); echo "\n"; } } } elseif ( taxonomy_exists( $object_type ) ) { if ( isset( $request['ID'] ) ) { $object_id = (int) $request['ID']; if ( 'markup' === $response_format ) { echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', array( get_term( $object_id, $object_type ) ) ), 0, (object) $args ); } elseif ( 'json' === $response_format ) { $post_obj = get_term( $object_id, $object_type ); echo wp_json_encode( array( 'ID' => $object_id, 'post_title' => $post_obj->name, 'post_type' => $object_type, ) ); echo "\n"; } } } } elseif ( preg_match( '/quick-search-(posttype|taxonomy)-([a-zA-Z0-9_-]*\b)/', $type, $matches ) ) { if ( 'posttype' === $matches[1] && get_post_type_object( $matches[2] ) ) { $post_type_obj = _wp_nav_menu_meta_box_object( get_post_type_object( $matches[2] ) ); $query_args = array( 'no_found_rows' => true, 'update_post_meta_cache' => false, 'update_post_term_cache' => false, 'posts_per_page' => 10, 'post_type' => $matches[2], 's' => $query, 'search_columns' => array( 'post_title' ), ); /** * Filter the menu quick search arguments. * * @since 6.9.0 * * @param array $args { * Menu quick search arguments. * * @type boolean $no_found_rows Whether to return found rows data. Default true. * @type boolean $update_post_meta_cache Whether to update post meta cache. Default false. * @type boolean $update_post_term_cache Whether to update post term cache. Default false. * @type int $posts_per_page Number of posts to return. Default 10. * @type string $post_type Type of post to return. * @type string $s Search query. * @type array $search_columns Which post table columns to query. * } */ $query_args = apply_filters( 'wp_ajax_menu_quick_search_args', $query_args ); $args = array_merge( $args, $query_args ); if ( isset( $post_type_obj->_default_query ) ) { $args = array_merge( $args, (array) $post_type_obj->_default_query ); } $search_results_query = new WP_Query( $args ); if ( ! $search_results_query->have_posts() ) { return; } while ( $search_results_query->have_posts() ) { $post = $search_results_query->next_post(); if ( 'markup' === $response_format ) { $var_by_ref = $post->ID; echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ), 0, (object) $args ); } elseif ( 'json' === $response_format ) { echo wp_json_encode( array( 'ID' => $post->ID, 'post_title' => get_the_title( $post->ID ), 'post_type' => $matches[2], ) ); echo "\n"; } } } elseif ( 'taxonomy' === $matches[1] ) { $terms = get_terms( array( 'taxonomy' => $matches[2], 'name__like' => $query, 'number' => 10, 'hide_empty' => false, ) ); if ( empty( $terms ) || is_wp_error( $terms ) ) { return; } foreach ( (array) $terms as $term ) { if ( 'markup' === $response_format ) { echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', array( $term ) ), 0, (object) $args ); } elseif ( 'json' === $response_format ) { echo wp_json_encode( array( 'ID' => $term->term_id, 'post_title' => $term->name, 'post_type' => $matches[2], ) ); echo "\n"; } } } } } /** * Register nav menu meta boxes and advanced menu items. * * @since 3.0.0 */ function wp_nav_menu_setup() { // Register meta boxes. wp_nav_menu_post_type_meta_boxes(); add_meta_box( 'add-custom-links', __( 'Custom Links' ), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); wp_nav_menu_taxonomy_meta_boxes(); // Register advanced menu items (columns). add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' ); // If first time editing, disable advanced items by default. if ( false === get_user_option( 'managenav-menuscolumnshidden' ) ) { $user = wp_get_current_user(); update_user_meta( $user->ID, 'managenav-menuscolumnshidden', array( 0 => 'link-target', 1 => 'css-classes', 2 => 'xfn', 3 => 'description', 4 => 'title-attribute', ) ); } } /** * Limit the amount of meta boxes to pages, posts, links, and categories for first time users. * * @since 3.0.0 * * @global array $wp_meta_boxes Global meta box state. */ function wp_initial_nav_menu_meta_boxes() { global $wp_meta_boxes; if ( get_user_option( 'metaboxhidden_nav-menus' ) !== false || ! is_array( $wp_meta_boxes ) ) { return; } $initial_meta_boxes = array( 'add-post-type-page', 'add-post-type-post', 'add-custom-links', 'add-category' ); $hidden_meta_boxes = array(); foreach ( array_keys( $wp_meta_boxes['nav-menus'] ) as $context ) { foreach ( array_keys( $wp_meta_boxes['nav-menus'][ $context ] ) as $priority ) { foreach ( $wp_meta_boxes['nav-menus'][ $context ][ $priority ] as $box ) { if ( in_array( $box['id'], $initial_meta_boxes, true ) ) { unset( $box['id'] ); } else { $hidden_meta_boxes[] = $box['id']; } } } } $user = wp_get_current_user(); update_user_meta( $user->ID, 'metaboxhidden_nav-menus', $hidden_meta_boxes ); } /** * Creates meta boxes for any post type menu item.. * * @since 3.0.0 */ function wp_nav_menu_post_type_meta_boxes() { $post_types = get_post_types( array( 'show_in_nav_menus' => true ), 'object' ); if ( ! $post_types ) { return; } foreach ( $post_types as $post_type ) { /** * Filters whether a menu items meta box will be added for the current * object type. * * If a falsey value is returned instead of an object, the menu items * meta box for the current meta box object will not be added. * * @since 3.0.0 * * @param WP_Post_Type|false $post_type The current object to add a menu items * meta box for. */ $post_type = apply_filters( 'nav_menu_meta_box_object', $post_type ); if ( $post_type ) { $id = $post_type->name; // Give pages a higher priority. $priority = ( 'page' === $post_type->name ? 'core' : 'default' ); add_meta_box( "add-post-type-{$id}", $post_type->labels->name, 'wp_nav_menu_item_post_type_meta_box', 'nav-menus', 'side', $priority, $post_type ); } } } /** * Creates meta boxes for any taxonomy menu item. * * @since 3.0.0 */ function wp_nav_menu_taxonomy_meta_boxes() { $taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' ); if ( ! $taxonomies ) { return; } foreach ( $taxonomies as $tax ) { /** This filter is documented in wp-admin/includes/nav-menu.php */ $tax = apply_filters( 'nav_menu_meta_box_object', $tax ); if ( $tax ) { $id = $tax->name; add_meta_box( "add-{$id}", $tax->labels->name, 'wp_nav_menu_item_taxonomy_meta_box', 'nav-menus', 'side', 'default', $tax ); } } } /** * Check whether to disable the Menu Locations meta box submit button and inputs. * * @since 3.6.0 * @since 5.3.1 The `$display` parameter was added. * * @global bool $one_theme_location_no_menus to determine if no menus exist * * @param int|string $nav_menu_selected_id ID, name, or slug of the currently selected menu. * @param bool $display Whether to display or just return the string. * @return string|false Disabled attribute if at least one menu exists, false if not. */ function wp_nav_menu_disabled_check( $nav_menu_selected_id, $display = true ) { global $one_theme_location_no_menus; if ( $one_theme_location_no_menus ) { return false; } return disabled( $nav_menu_selected_id, 0, $display ); } /** * Displays a meta box for the custom links menu item. * * @since 3.0.0 * * @global int $_nav_menu_placeholder * @global int|string $nav_menu_selected_id */ function wp_nav_menu_item_link_meta_box() { global $_nav_menu_placeholder, $nav_menu_selected_id; $_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1; ?>

        class="button submit-add-to-menu right" value="" />

        name; $post_type = get_post_type_object( $post_type_name ); $tab_name = $post_type_name . '-tab'; // Paginate browsing for large numbers of post objects. $per_page = 50; $pagenum = isset( $_REQUEST[ $tab_name ] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1; $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0; $args = array( 'offset' => $offset, 'order' => 'ASC', 'orderby' => 'title', 'posts_per_page' => $per_page, 'post_type' => $post_type_name, 'suppress_filters' => true, 'update_post_term_cache' => false, 'update_post_meta_cache' => false, ); if ( isset( $box['args']->_default_query ) ) { $args = array_merge( $args, (array) $box['args']->_default_query ); } /* * If we're dealing with pages, let's prioritize the Front Page, * Posts Page and Privacy Policy Page at the top of the list. */ $important_pages = array(); if ( 'page' === $post_type_name ) { $suppress_page_ids = array(); // Insert Front Page or custom Home link. $front_page = 'page' === get_option( 'show_on_front' ) ? (int) get_option( 'page_on_front' ) : 0; $front_page_obj = null; if ( ! empty( $front_page ) ) { $front_page_obj = get_post( $front_page ); } if ( $front_page_obj ) { $front_page_obj->front_or_home = true; $important_pages[] = $front_page_obj; $suppress_page_ids[] = $front_page_obj->ID; } else { $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? (int) $_nav_menu_placeholder - 1 : -1; $front_page_obj = (object) array( 'front_or_home' => true, 'ID' => 0, 'object_id' => $_nav_menu_placeholder, 'post_content' => '', 'post_excerpt' => '', 'post_parent' => '', 'post_title' => _x( 'Home', 'nav menu home label' ), 'post_type' => 'nav_menu_item', 'type' => 'custom', 'url' => home_url( '/' ), ); $important_pages[] = $front_page_obj; } // Insert Posts Page. $posts_page = 'page' === get_option( 'show_on_front' ) ? (int) get_option( 'page_for_posts' ) : 0; if ( ! empty( $posts_page ) ) { $posts_page_obj = get_post( $posts_page ); if ( $posts_page_obj ) { $front_page_obj->posts_page = true; $important_pages[] = $posts_page_obj; $suppress_page_ids[] = $posts_page_obj->ID; } } // Insert Privacy Policy Page. $privacy_policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' ); if ( ! empty( $privacy_policy_page_id ) ) { $privacy_policy_page = get_post( $privacy_policy_page_id ); if ( $privacy_policy_page instanceof WP_Post && 'publish' === $privacy_policy_page->post_status ) { $privacy_policy_page->privacy_policy_page = true; $important_pages[] = $privacy_policy_page; $suppress_page_ids[] = $privacy_policy_page->ID; } } // Add suppression array to arguments for WP_Query. if ( ! empty( $suppress_page_ids ) ) { $args['post__not_in'] = $suppress_page_ids; } } $get_posts = new WP_Query(); $posts = $get_posts->query( $args ); // Only suppress and insert when more than just suppression pages available. if ( ! $get_posts->post_count ) { if ( ! empty( $suppress_page_ids ) ) { unset( $args['post__not_in'] ); $get_posts = new WP_Query(); $posts = $get_posts->query( $args ); } else { echo '

        ' . __( 'No items.' ) . '

        '; return; } } elseif ( ! empty( $important_pages ) ) { $posts = array_merge( $important_pages, $posts ); } $num_pages = $get_posts->max_num_pages; $page_links = paginate_links( array( 'base' => add_query_arg( array( $tab_name => 'all', 'paged' => '%#%', 'item-type' => 'post_type', 'item-object' => $post_type_name, ) ), 'format' => '', 'prev_text' => '' . __( '«' ) . '', 'next_text' => '' . __( '»' ) . '', /* translators: Hidden accessibility text. */ 'before_page_number' => '' . __( 'Page' ) . ' ', 'total' => $num_pages, 'current' => $pagenum, ) ); $db_fields = false; if ( is_post_type_hierarchical( $post_type_name ) ) { $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID', ); } $walker = new Walker_Nav_Menu_Checklist( $db_fields ); $current_tab = 'most-recent'; if ( isset( $_REQUEST[ $tab_name ] ) && in_array( $_REQUEST[ $tab_name ], array( 'all', 'search' ), true ) ) { $current_tab = $_REQUEST[ $tab_name ]; } if ( ! empty( $_REQUEST[ "quick-search-posttype-{$post_type_name}" ] ) ) { $current_tab = 'search'; } $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); $most_recent_url = ''; $view_all_url = ''; $search_url = ''; if ( $nav_menu_selected_id ) { $most_recent_url = add_query_arg( $tab_name, 'most-recent', remove_query_arg( $removed_args ) ); $view_all_url = add_query_arg( $tab_name, 'all', remove_query_arg( $removed_args ) ); $search_url = add_query_arg( $tab_name, 'search', remove_query_arg( $removed_args ) ); } ?>
        " class="posttypediv">
        " class="tabs-panel " role="region" aria-label="" tabindex="0" >
          " class="categorychecklist form-no-clear" > 'post_date', 'order' => 'DESC', 'posts_per_page' => 15, ) ); $most_recent = $get_posts->query( $recent_args ); $args['walker'] = $walker; /** * Filters the posts displayed in the 'Most Recent' tab of the current * post type's menu items meta box. * * The dynamic portion of the hook name, `$post_type_name`, refers to the post type name. * * Possible hook names include: * * - `nav_menu_items_post_recent` * - `nav_menu_items_page_recent` * * @since 4.3.0 * @since 4.9.0 Added the `$recent_args` parameter. * * @param WP_Post[] $most_recent An array of post objects being listed. * @param array $args An array of `WP_Query` arguments for the meta box. * @param array $box Arguments passed to `wp_nav_menu_item_post_type_meta_box()`. * @param array $recent_args An array of `WP_Query` arguments for 'Most Recent' tab. */ $most_recent = apply_filters( "nav_menu_items_{$post_type_name}_recent", $most_recent, $args, $box, $recent_args ); echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $most_recent ), 0, (object) $args ); ?>
        " class="tabs-panel " role="region" aria-label="labels->search_items ); ?>" tabindex="0" > $searched, 'post_type' => $post_type_name, 'fields' => 'all', 'order' => 'DESC', ) ); } else { $searched = ''; $search_results = array(); } ?>

        class="quick-search" value="" name="" id="" /> "submit-quick-search-posttype-{$post_type_name}" ) ); ?>

          " data-wp-lists="" class="categorychecklist form-no-clear" >
        • get_error_message(); ?>
        " class="tabs-panel tabs-panel-view-all " role="region" aria-label="labels->all_items ); ?>" tabindex="0" >
          " data-wp-lists="" class="categorychecklist form-no-clear" > has_archive ) { $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? (int) $_nav_menu_placeholder - 1 : -1; array_unshift( $posts, (object) array( 'ID' => 0, 'object_id' => $_nav_menu_placeholder, 'object' => $post_type_name, 'post_content' => '', 'post_excerpt' => '', 'post_title' => $post_type->labels->archives, 'post_type' => 'nav_menu_item', 'type' => 'post_type_archive', 'url' => get_post_type_archive_link( $post_type_name ), ) ); } /** * Filters the posts displayed in the 'View All' tab of the current * post type's menu items meta box. * * The dynamic portion of the hook name, `$post_type_name`, refers * to the slug of the current post type. * * Possible hook names include: * * - `nav_menu_items_post` * - `nav_menu_items_page` * * @since 3.2.0 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object. * * @see WP_Query::query() * * @param object[] $posts The posts for the current post type. Mostly `WP_Post` objects, but * can also contain "fake" post objects to represent other menu items. * @param array $args An array of `WP_Query` arguments. * @param WP_Post_Type $post_type The current post type object for this menu item meta box. */ $posts = apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type ); $checkbox_items = walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $posts ), 0, (object) $args ); echo $checkbox_items; ?>

        "> id="" class="select-all" /> class="button submit-add-to-menu right" value="" name="add-post-type-menu-item" id="" />

        name; $taxonomy = get_taxonomy( $taxonomy_name ); $tab_name = $taxonomy_name . '-tab'; // Paginate browsing for large numbers of objects. $per_page = 50; $pagenum = isset( $_REQUEST[ $tab_name ] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1; $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0; $args = array( 'taxonomy' => $taxonomy_name, 'child_of' => 0, 'exclude' => '', 'hide_empty' => false, 'hierarchical' => 1, 'include' => '', 'number' => $per_page, 'offset' => $offset, 'order' => 'ASC', 'orderby' => 'name', 'pad_counts' => false, ); $terms = get_terms( $args ); if ( ! $terms || is_wp_error( $terms ) ) { echo '

        ' . __( 'No items.' ) . '

        '; return; } $num_pages = (int) ceil( (int) wp_count_terms( array_merge( $args, array( 'number' => '', 'offset' => '', ) ) ) / $per_page ); $page_links = paginate_links( array( 'base' => add_query_arg( array( $tab_name => 'all', 'paged' => '%#%', 'item-type' => 'taxonomy', 'item-object' => $taxonomy_name, ) ), 'format' => '', 'prev_text' => '' . __( '«' ) . '', 'next_text' => '' . __( '»' ) . '', /* translators: Hidden accessibility text. */ 'before_page_number' => '' . __( 'Page' ) . ' ', 'total' => $num_pages, 'current' => $pagenum, ) ); $db_fields = false; if ( is_taxonomy_hierarchical( $taxonomy_name ) ) { $db_fields = array( 'parent' => 'parent', 'id' => 'term_id', ); } $walker = new Walker_Nav_Menu_Checklist( $db_fields ); $current_tab = 'most-used'; if ( isset( $_REQUEST[ $tab_name ] ) && in_array( $_REQUEST[ $tab_name ], array( 'all', 'most-used', 'search' ), true ) ) { $current_tab = $_REQUEST[ $tab_name ]; } if ( ! empty( $_REQUEST[ "quick-search-taxonomy-{$taxonomy_name}" ] ) ) { $current_tab = 'search'; } $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); $most_used_url = ''; $view_all_url = ''; $search_url = ''; if ( $nav_menu_selected_id ) { $most_used_url = add_query_arg( $tab_name, 'most-used', remove_query_arg( $removed_args ) ); $view_all_url = add_query_arg( $tab_name, 'all', remove_query_arg( $removed_args ) ); $search_url = add_query_arg( $tab_name, 'search', remove_query_arg( $removed_args ) ); } ?>
        " class="taxonomydiv">
        " class="tabs-panel " role="region" aria-label="labels->most_used ); ?>" tabindex="0" >
          " class="categorychecklist form-no-clear" > $taxonomy_name, 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false, ) ); $args['walker'] = $walker; echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $popular_terms ), 0, (object) $args ); ?>
        " class="tabs-panel tabs-panel-view-all " role="region" aria-label="labels->all_items ); ?>" tabindex="0" >
          " data-wp-lists="" class="categorychecklist form-no-clear" >
        " class="tabs-panel " role="region" aria-label="labels->search_items ); ?>" tabindex="0"> $taxonomy_name, 'name__like' => $searched, 'fields' => 'all', 'orderby' => 'count', 'order' => 'DESC', 'hierarchical' => false, ) ); } else { $searched = ''; $search_results = array(); } ?>

        " id="" /> "submit-quick-search-taxonomy-{$taxonomy_name}" ) ); ?>

          " data-wp-lists="" class="categorychecklist form-no-clear" >
        • get_error_message(); ?>

        "> id="" class="select-all" /> class="button submit-add-to-menu right" value="" name="add-taxonomy-menu-item" id="" />

        $_item_object_data ) { if ( // Checkbox is not checked. empty( $_item_object_data['menu-item-object-id'] ) && ( // And item type either isn't set. ! isset( $_item_object_data['menu-item-type'] ) || // Or URL is the default. in_array( $_item_object_data['menu-item-url'], array( 'https://', 'http://', '' ), true ) || // Or it's not a custom menu item (but not the custom home page). ! ( 'custom' === $_item_object_data['menu-item-type'] && ! isset( $_item_object_data['menu-item-db-id'] ) ) || // Or it *is* a custom menu item that already exists. ! empty( $_item_object_data['menu-item-db-id'] ) ) ) { // Then this potential menu item is not getting added to this menu. continue; } // If this possible menu item doesn't actually have a menu database ID yet. if ( empty( $_item_object_data['menu-item-db-id'] ) || ( 0 > $_possible_db_id ) || $_possible_db_id !== (int) $_item_object_data['menu-item-db-id'] ) { $_actual_db_id = 0; } else { $_actual_db_id = (int) $_item_object_data['menu-item-db-id']; } $args = array( 'menu-item-db-id' => $_item_object_data['menu-item-db-id'] ?? '', 'menu-item-object-id' => $_item_object_data['menu-item-object-id'] ?? '', 'menu-item-object' => $_item_object_data['menu-item-object'] ?? '', 'menu-item-parent-id' => $_item_object_data['menu-item-parent-id'] ?? '', 'menu-item-position' => $_item_object_data['menu-item-position'] ?? '', 'menu-item-type' => $_item_object_data['menu-item-type'] ?? '', 'menu-item-title' => $_item_object_data['menu-item-title'] ?? '', 'menu-item-url' => $_item_object_data['menu-item-url'] ?? '', 'menu-item-description' => $_item_object_data['menu-item-description'] ?? '', 'menu-item-attr-title' => $_item_object_data['menu-item-attr-title'] ?? '', 'menu-item-target' => $_item_object_data['menu-item-target'] ?? '', 'menu-item-classes' => $_item_object_data['menu-item-classes'] ?? '', 'menu-item-xfn' => $_item_object_data['menu-item-xfn'] ?? '', ); $items_saved[] = wp_update_nav_menu_item( $menu_id, $_actual_db_id, $args ); } } return $items_saved; } /** * Adds custom arguments to some of the meta box object types. * * @since 3.0.0 * * @access private * * @param object $data_object The post type or taxonomy meta-object. * @return object The post type or taxonomy object. */ function _wp_nav_menu_meta_box_object( $data_object = null ) { if ( isset( $data_object->name ) ) { if ( 'page' === $data_object->name ) { $data_object->_default_query = array( 'orderby' => 'menu_order title', 'post_status' => 'publish', ); // Posts should show only published items. } elseif ( 'post' === $data_object->name ) { $data_object->_default_query = array( 'post_status' => 'publish', ); // Categories should be in reverse chronological order. } elseif ( 'category' === $data_object->name ) { $data_object->_default_query = array( 'orderby' => 'id', 'order' => 'DESC', ); // Custom post types should show only published items. } else { $data_object->_default_query = array( 'post_status' => 'publish', ); } } return $data_object; } /** * Returns the menu formatted to edit. * * @since 3.0.0 * * @param int $menu_id Optional. The ID of the menu to format. Default 0. * @return string|WP_Error|null The menu formatted to edit or error object on failure. * Null if the `$menu_id` parameter is not supplied or the term does not exist. */ function wp_get_nav_menu_to_edit( $menu_id = 0 ) { $menu = wp_get_nav_menu_object( $menu_id ); // If the menu exists, get its items. if ( is_nav_menu( $menu ) ) { $menu_items = wp_get_nav_menu_items( $menu->term_id, array( 'post_status' => 'any' ) ); $result = '
        ' : '">'; $result .= '

        ' . __( 'Add menu items from the column on the left.' ) . '

        '; $result .= '
        '; if ( empty( $menu_items ) ) { return $result . ' '; } /** * Filters the Walker class used when adding nav menu items. * * @since 3.0.0 * * @param string $class The walker class to use. Default 'Walker_Nav_Menu_Edit'. * @param int $menu_id ID of the menu being rendered. */ $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id ); if ( class_exists( $walker_class_name ) ) { $walker = new $walker_class_name(); } else { return new WP_Error( 'menu_walker_not_exist', sprintf( /* translators: %s: Walker class name. */ __( 'The Walker class named %s does not exist.' ), '' . $walker_class_name . '' ) ); } $some_pending_menu_items = false; $some_invalid_menu_items = false; foreach ( (array) $menu_items as $menu_item ) { if ( isset( $menu_item->post_status ) && 'draft' === $menu_item->post_status ) { $some_pending_menu_items = true; } if ( ! empty( $menu_item->_invalid ) ) { $some_invalid_menu_items = true; } } if ( $some_pending_menu_items ) { $message = __( 'Click Save Menu to make pending menu items public.' ); $notice_args = array( 'type' => 'info', 'additional_classes' => array( 'notice-alt', 'inline' ), ); $result .= wp_get_admin_notice( $message, $notice_args ); } if ( $some_invalid_menu_items ) { $message = __( 'There are some invalid menu items. Please check or delete them.' ); $notice_args = array( 'type' => 'error', 'additional_classes' => array( 'notice-alt', 'inline' ), ); $result .= wp_get_admin_notice( $message, $notice_args ); } $result .= ' '; return $result; } elseif ( is_wp_error( $menu ) ) { return $menu; } return null; } /** * Returns the columns for the nav menus page. * * @since 3.0.0 * * @return string[] Array of column titles keyed by their column name. */ function wp_nav_menu_manage_columns() { return array( '_title' => __( 'Show advanced menu properties' ), 'cb' => '', 'link-target' => __( 'Link Target' ), 'title-attribute' => __( 'Title Attribute' ), 'css-classes' => __( 'CSS Classes' ), 'xfn' => __( 'Link Relationship (XFN)' ), 'description' => __( 'Description' ), ); } /** * Deletes orphaned draft menu items * * @access private * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. */ function _wp_delete_orphaned_draft_menu_items() { global $wpdb; $delete_timestamp = time() - ( DAY_IN_SECONDS * EMPTY_TRASH_DAYS ); // Delete orphaned draft menu items. $menu_items_to_delete = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts AS p LEFT JOIN $wpdb->postmeta AS m ON p.ID = m.post_id WHERE post_type = 'nav_menu_item' AND post_status = 'draft' AND meta_key = '_menu_item_orphaned' AND meta_value < %d", $delete_timestamp ) ); foreach ( (array) $menu_items_to_delete as $menu_item_id ) { wp_delete_post( $menu_item_id, true ); } } /** * Saves nav menu items. * * @since 3.6.0 * * @param int|string $nav_menu_selected_id ID, slug, or name of the currently-selected menu. * @param string $nav_menu_selected_title Title of the currently-selected menu. * @return string[] The menu updated messages. */ function wp_nav_menu_update_menu_items( $nav_menu_selected_id, $nav_menu_selected_title ) { $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish', ) ); $messages = array(); $menu_items = array(); // Index menu items by DB ID. foreach ( $unsorted_menu_items as $_item ) { $menu_items[ $_item->db_id ] = $_item; } $post_fields = array( 'menu-item-db-id', 'menu-item-object-id', 'menu-item-object', 'menu-item-parent-id', 'menu-item-position', 'menu-item-type', 'menu-item-title', 'menu-item-url', 'menu-item-description', 'menu-item-attr-title', 'menu-item-target', 'menu-item-classes', 'menu-item-xfn', ); wp_defer_term_counting( true ); // Loop through all the menu items' POST variables. if ( ! empty( $_POST['menu-item-db-id'] ) ) { foreach ( (array) $_POST['menu-item-db-id'] as $_key => $k ) { // Menu item title can't be blank. if ( ! isset( $_POST['menu-item-title'][ $_key ] ) || '' === $_POST['menu-item-title'][ $_key ] ) { continue; } $args = array(); foreach ( $post_fields as $field ) { $args[ $field ] = $_POST[ $field ][ $_key ] ?? ''; } $menu_item_db_id = wp_update_nav_menu_item( $nav_menu_selected_id, ( (int) $_POST['menu-item-db-id'][ $_key ] !== $_key ? 0 : $_key ), $args ); if ( is_wp_error( $menu_item_db_id ) ) { $messages[] = wp_get_admin_notice( $menu_item_db_id->get_error_message(), array( 'id' => 'message', 'additional_classes' => array( 'error' ), ) ); } else { unset( $menu_items[ $menu_item_db_id ] ); } } } // Remove menu items from the menu that weren't in $_POST. if ( ! empty( $menu_items ) ) { foreach ( array_keys( $menu_items ) as $menu_item_id ) { if ( is_nav_menu_item( $menu_item_id ) ) { wp_delete_post( $menu_item_id ); } } } // Store 'auto-add' pages. $auto_add = ! empty( $_POST['auto-add-pages'] ); $nav_menu_option = (array) get_option( 'nav_menu_options' ); if ( ! isset( $nav_menu_option['auto_add'] ) ) { $nav_menu_option['auto_add'] = array(); } if ( $auto_add ) { if ( ! in_array( $nav_menu_selected_id, $nav_menu_option['auto_add'], true ) ) { $nav_menu_option['auto_add'][] = $nav_menu_selected_id; } } else { $key = array_search( $nav_menu_selected_id, $nav_menu_option['auto_add'], true ); if ( false !== $key ) { unset( $nav_menu_option['auto_add'][ $key ] ); } } // Remove non-existent/deleted menus. $nav_menu_option['auto_add'] = array_intersect( $nav_menu_option['auto_add'], wp_get_nav_menus( array( 'fields' => 'ids' ) ) ); update_option( 'nav_menu_options', $nav_menu_option, false ); wp_defer_term_counting( false ); /** This action is documented in wp-includes/nav-menu.php */ do_action( 'wp_update_nav_menu', $nav_menu_selected_id ); /* translators: %s: Nav menu title. */ $message = sprintf( __( '%s has been updated.' ), '' . $nav_menu_selected_title . '' ); $notice_args = array( 'id' => 'message', 'dismissible' => true, 'additional_classes' => array( 'updated' ), ); $messages[] = wp_get_admin_notice( $message, $notice_args ); unset( $menu_items, $unsorted_menu_items ); return $messages; } /** * If a JSON blob of navigation menu data is in POST data, expand it and inject * it into `$_POST` to avoid PHP `max_input_vars` limitations. See #14134. * * @ignore * @since 4.5.3 * @access private */ function _wp_expand_nav_menu_post_data() { if ( ! isset( $_POST['nav-menu-data'] ) ) { return; } $data = json_decode( stripslashes( $_POST['nav-menu-data'] ) ); if ( ! is_null( $data ) && $data ) { foreach ( $data as $post_input_data ) { /* * For input names that are arrays (e.g. `menu-item-db-id[3][4][5]`), * derive the array path keys via regex and set the value in $_POST. */ preg_match( '#([^\[]*)(\[(.+)\])?#', $post_input_data->name, $matches ); $array_bits = array( $matches[1] ); if ( isset( $matches[3] ) ) { $array_bits = array_merge( $array_bits, explode( '][', $matches[3] ) ); } $new_post_data = array(); // Build the new array value from leaf to trunk. for ( $i = count( $array_bits ) - 1; $i >= 0; $i-- ) { if ( count( $array_bits ) - 1 === $i ) { $new_post_data[ $array_bits[ $i ] ] = wp_slash( $post_input_data->value ); } else { $new_post_data = array( $array_bits[ $i ] => $new_post_data ); } } $_POST = array_replace_recursive( $_POST, $new_post_data ); } } } includes/class-ftp.php000064400000065317152213653150010776 0ustar00LocalEcho=$le; $this->Verbose=$verb; $this->_lastaction=NULL; $this->_error_array=array(); $this->_eol_code=array(FTP_OS_Unix=>"\n", FTP_OS_Mac=>"\r", FTP_OS_Windows=>"\r\n"); $this->AuthorizedTransferMode=array(FTP_AUTOASCII, FTP_ASCII, FTP_BINARY); $this->OS_FullName=array(FTP_OS_Unix => 'UNIX', FTP_OS_Windows => 'WINDOWS', FTP_OS_Mac => 'MACOS'); $this->AutoAsciiExt=array("ASP","BAT","C","CPP","CSS","CSV","JS","H","HTM","HTML","SHTML","INI","LOG","PHP3","PHTML","PL","PERL","SH","SQL","TXT"); $this->_port_available=($port_mode==TRUE); $this->SendMSG("Staring FTP client class".($this->_port_available?"":" without PORT mode support")); $this->_connected=FALSE; $this->_ready=FALSE; $this->_can_restore=FALSE; $this->_code=0; $this->_message=""; $this->_ftp_buff_size=4096; $this->_curtype=NULL; $this->SetUmask(0022); $this->SetType(FTP_AUTOASCII); $this->SetTimeout(30); $this->Passive(!$this->_port_available); $this->_login="anonymous"; $this->_password="anon@ftp.com"; $this->_features=array(); $this->OS_local=FTP_OS_Unix; $this->OS_remote=FTP_OS_Unix; if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->OS_local=FTP_OS_Windows; elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'MAC') $this->OS_local=FTP_OS_Mac; } function ftp_base($port_mode=FALSE) { $this->__construct($port_mode); } // // // function parselisting($line) { $is_windows = ($this->OS_remote == FTP_OS_Windows); if ($is_windows && preg_match("/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|) +(.+)/",$line,$lucifer)) { $b = array(); if ($lucifer[3]<70) { $lucifer[3]+=2000; } else { $lucifer[3]+=1900; } // 4digit year fix $b['isdir'] = ($lucifer[7]==""); if ( $b['isdir'] ) $b['type'] = 'd'; else $b['type'] = 'f'; $b['size'] = $lucifer[7]; $b['month'] = $lucifer[1]; $b['day'] = $lucifer[2]; $b['year'] = $lucifer[3]; $b['hour'] = $lucifer[4]; $b['minute'] = $lucifer[5]; $b['time'] = @mktime($lucifer[4]+(strcasecmp($lucifer[6],"PM")==0?12:0),$lucifer[5],0,$lucifer[1],$lucifer[2],$lucifer[3]); $b['am/pm'] = $lucifer[6]; $b['name'] = $lucifer[8]; } else if (!$is_windows && $lucifer=preg_split("/[ ]/",$line,9,PREG_SPLIT_NO_EMPTY)) { //echo $line."\n"; $lcount=count($lucifer); if ($lcount<8) return ''; $b = array(); $b['isdir'] = $lucifer[0][0] === "d"; $b['islink'] = $lucifer[0][0] === "l"; if ( $b['isdir'] ) $b['type'] = 'd'; elseif ( $b['islink'] ) $b['type'] = 'l'; else $b['type'] = 'f'; $b['perms'] = $lucifer[0]; $b['number'] = $lucifer[1]; $b['owner'] = $lucifer[2]; $b['group'] = $lucifer[3]; $b['size'] = $lucifer[4]; if ($lcount==8) { sscanf($lucifer[5],"%d-%d-%d",$b['year'],$b['month'],$b['day']); sscanf($lucifer[6],"%d:%d",$b['hour'],$b['minute']); $b['time'] = @mktime($b['hour'],$b['minute'],0,$b['month'],$b['day'],$b['year']); $b['name'] = $lucifer[7]; } else { $b['month'] = $lucifer[5]; $b['day'] = $lucifer[6]; if (preg_match("/([0-9]{2}):([0-9]{2})/",$lucifer[7],$l2)) { $b['year'] = gmdate("Y"); $b['hour'] = $l2[1]; $b['minute'] = $l2[2]; } else { $b['year'] = $lucifer[7]; $b['hour'] = 0; $b['minute'] = 0; } $b['time'] = strtotime(sprintf("%d %s %d %02d:%02d",$b['day'],$b['month'],$b['year'],$b['hour'],$b['minute'])); $b['name'] = $lucifer[8]; } } return $b; } function SendMSG($message = "", $crlf=true) { if ($this->Verbose) { echo $message.($crlf?CRLF:""); flush(); } return TRUE; } function SetType($mode=FTP_AUTOASCII) { if(!in_array($mode, $this->AuthorizedTransferMode)) { $this->SendMSG("Wrong type"); return FALSE; } $this->_type=$mode; $this->SendMSG("Transfer type: ".($this->_type==FTP_BINARY?"binary":($this->_type==FTP_ASCII?"ASCII":"auto ASCII") ) ); return TRUE; } function _settype($mode=FTP_ASCII) { if($this->_ready) { if($mode==FTP_BINARY) { if($this->_curtype!=FTP_BINARY) { if(!$this->_exec("TYPE I", "SetType")) return FALSE; $this->_curtype=FTP_BINARY; } } elseif($this->_curtype!=FTP_ASCII) { if(!$this->_exec("TYPE A", "SetType")) return FALSE; $this->_curtype=FTP_ASCII; } } else return FALSE; return TRUE; } function Passive($pasv=NULL) { if(is_null($pasv)) $this->_passive=!$this->_passive; else $this->_passive=$pasv; if(!$this->_port_available and !$this->_passive) { $this->SendMSG("Only passive connections available!"); $this->_passive=TRUE; return FALSE; } $this->SendMSG("Passive mode ".($this->_passive?"on":"off")); return TRUE; } function SetServer($host, $port=21, $reconnect=true) { if(!is_long($port)) { $this->verbose=true; $this->SendMSG("Incorrect port syntax"); return FALSE; } else { $ip=@gethostbyname($host); $dns=@gethostbyaddr($host); if(!$ip) $ip=$host; if(!$dns) $dns=$host; // Validate the IPAddress PHP4 returns -1 for invalid, PHP5 false // -1 === "255.255.255.255" which is the broadcast address which is also going to be invalid $ipaslong = ip2long($ip); if ( ($ipaslong == false) || ($ipaslong === -1) ) { $this->SendMSG("Wrong host name/address \"".$host."\""); return FALSE; } $this->_host=$ip; $this->_fullhost=$dns; $this->_port=$port; $this->_dataport=$port-1; } $this->SendMSG("Host \"".$this->_fullhost."(".$this->_host."):".$this->_port."\""); if($reconnect){ if($this->_connected) { $this->SendMSG("Reconnecting"); if(!$this->quit(FTP_FORCE)) return FALSE; if(!$this->connect()) return FALSE; } } return TRUE; } function SetUmask($umask=0022) { $this->_umask=$umask; umask($this->_umask); $this->SendMSG("UMASK 0".decoct($this->_umask)); return TRUE; } function SetTimeout($timeout=30) { $this->_timeout=$timeout; $this->SendMSG("Timeout ".$this->_timeout); if($this->_connected) if(!$this->_settimeout($this->_ftp_control_sock)) return FALSE; return TRUE; } function connect($server=NULL) { if(!empty($server)) { if(!$this->SetServer($server)) return false; } if($this->_ready) return true; $this->SendMsg('Local OS : '.$this->OS_FullName[$this->OS_local]); if(!($this->_ftp_control_sock = $this->_connect($this->_host, $this->_port))) { $this->SendMSG("Error : Cannot connect to remote host \"".$this->_fullhost." :".$this->_port."\""); return FALSE; } $this->SendMSG("Connected to remote host \"".$this->_fullhost.":".$this->_port."\". Waiting for greeting."); do { if(!$this->_readmsg()) return FALSE; if(!$this->_checkCode()) return FALSE; $this->_lastaction=time(); } while($this->_code<200); $this->_ready=true; $syst=$this->systype(); if(!$syst) $this->SendMSG("Cannot detect remote OS"); else { if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows; elseif(preg_match("/os/i", $syst[0])) $this->OS_remote=FTP_OS_Mac; elseif(preg_match("/(li|u)nix/i", $syst[0])) $this->OS_remote=FTP_OS_Unix; else $this->OS_remote=FTP_OS_Mac; $this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]); } if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled"); else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); return TRUE; } function quit($force=false) { if($this->_ready) { if(!$this->_exec("QUIT") and !$force) return FALSE; if(!$this->_checkCode() and !$force) return FALSE; $this->_ready=false; $this->SendMSG("Session finished"); } $this->_quit(); return TRUE; } function login($user=NULL, $pass=NULL) { if(!is_null($user)) $this->_login=$user; else $this->_login="anonymous"; if(!is_null($pass)) $this->_password=$pass; else $this->_password="anon@anon.com"; if(!$this->_exec("USER ".$this->_login, "login")) return FALSE; if(!$this->_checkCode()) return FALSE; if($this->_code!=230) { if(!$this->_exec((($this->_code==331)?"PASS ":"ACCT ").$this->_password, "login")) return FALSE; if(!$this->_checkCode()) return FALSE; } $this->SendMSG("Authentication succeeded"); if(empty($this->_features)) { if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled"); else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); } return TRUE; } function pwd() { if(!$this->_exec("PWD", "pwd")) return FALSE; if(!$this->_checkCode()) return FALSE; return preg_replace("/^[0-9]{3} \"(.+)\".*$/s", "\\1", $this->_message); } function cdup() { if(!$this->_exec("CDUP", "cdup")) return FALSE; if(!$this->_checkCode()) return FALSE; return true; } function chdir($pathname) { if(!$this->_exec("CWD ".$pathname, "chdir")) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; } function rmdir($pathname) { if(!$this->_exec("RMD ".$pathname, "rmdir")) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; } function mkdir($pathname) { if(!$this->_exec("MKD ".$pathname, "mkdir")) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; } function rename($from, $to) { if(!$this->_exec("RNFR ".$from, "rename")) return FALSE; if(!$this->_checkCode()) return FALSE; if($this->_code==350) { if(!$this->_exec("RNTO ".$to, "rename")) return FALSE; if(!$this->_checkCode()) return FALSE; } else return FALSE; return TRUE; } function filesize($pathname) { if(!isset($this->_features["SIZE"])) { $this->PushError("filesize", "not supported by server"); return FALSE; } if(!$this->_exec("SIZE ".$pathname, "filesize")) return FALSE; if(!$this->_checkCode()) return FALSE; return preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message); } function abort() { if(!$this->_exec("ABOR", "abort")) return FALSE; if(!$this->_checkCode()) { if($this->_code!=426) return FALSE; if(!$this->_readmsg("abort")) return FALSE; if(!$this->_checkCode()) return FALSE; } return true; } function mdtm($pathname) { if(!isset($this->_features["MDTM"])) { $this->PushError("mdtm", "not supported by server"); return FALSE; } if(!$this->_exec("MDTM ".$pathname, "mdtm")) return FALSE; if(!$this->_checkCode()) return FALSE; $mdtm = preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message); $date = sscanf($mdtm, "%4d%2d%2d%2d%2d%2d"); $timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]); return $timestamp; } function systype() { if(!$this->_exec("SYST", "systype")) return FALSE; if(!$this->_checkCode()) return FALSE; $DATA = explode(" ", $this->_message); return array($DATA[1], $DATA[3]); } function delete($pathname) { if(!$this->_exec("DELE ".$pathname, "delete")) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; } function site($command, $fnction="site") { if(!$this->_exec("SITE ".$command, $fnction)) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; } function chmod($pathname, $mode) { if(!$this->site( sprintf('CHMOD %o %s', $mode, $pathname), "chmod")) return FALSE; return TRUE; } function restore($from) { if(!isset($this->_features["REST"])) { $this->PushError("restore", "not supported by server"); return FALSE; } if($this->_curtype!=FTP_BINARY) { $this->PushError("restore", "cannot restore in ASCII mode"); return FALSE; } if(!$this->_exec("REST ".$from, "restore")) return FALSE; if(!$this->_checkCode()) return FALSE; return TRUE; } function features() { if(!$this->_exec("FEAT", "features")) return FALSE; if(!$this->_checkCode()) return FALSE; $f=preg_split("/[".CRLF."]+/", preg_replace("/[0-9]{3}[ -].*[".CRLF."]+/", "", $this->_message), -1, PREG_SPLIT_NO_EMPTY); $this->_features=array(); foreach($f as $k=>$v) { $v=explode(" ", trim($v)); $this->_features[array_shift($v)]=$v; } return true; } function rawlist($pathname="", $arg="") { return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist"); } function nlist($pathname="", $arg="") { return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist"); } function is_exists($pathname) { return $this->file_exists($pathname); } function file_exists($pathname) { $exists=true; if(!$this->_exec("RNFR ".$pathname, "rename")) $exists=FALSE; else { if(!$this->_checkCode()) $exists=FALSE; $this->abort(); } if($exists) $this->SendMSG("Remote file ".$pathname." exists"); else $this->SendMSG("Remote file ".$pathname." does not exist"); return $exists; } function fget($fp, $remotefile, $rest=0) { if($this->_can_restore and $rest!=0) fseek($fp, $rest); $pi=pathinfo($remotefile); if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; else $mode=FTP_BINARY; if(!$this->_data_prepare($mode)) { return FALSE; } if($this->_can_restore and $rest!=0) $this->restore($rest); if(!$this->_exec("RETR ".$remotefile, "get")) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } $out=$this->_data_read($mode, $fp); $this->_data_close(); if(!$this->_readmsg()) return FALSE; if(!$this->_checkCode()) return FALSE; return $out; } function get($remotefile, $localfile=NULL, $rest=0) { if(is_null($localfile)) $localfile=$remotefile; if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten"); $fp = @fopen($localfile, "w"); if (!$fp) { $this->PushError("get","cannot open local file", "Cannot create \"".$localfile."\""); return FALSE; } if($this->_can_restore and $rest!=0) fseek($fp, $rest); $pi=pathinfo($remotefile); if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; else $mode=FTP_BINARY; if(!$this->_data_prepare($mode)) { fclose($fp); return FALSE; } if($this->_can_restore and $rest!=0) $this->restore($rest); if(!$this->_exec("RETR ".$remotefile, "get")) { $this->_data_close(); fclose($fp); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); fclose($fp); return FALSE; } $out=$this->_data_read($mode, $fp); fclose($fp); $this->_data_close(); if(!$this->_readmsg()) return FALSE; if(!$this->_checkCode()) return FALSE; return $out; } function fput($remotefile, $fp, $rest=0) { if($this->_can_restore and $rest!=0) fseek($fp, $rest); $pi=pathinfo($remotefile); if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; else $mode=FTP_BINARY; if(!$this->_data_prepare($mode)) { return FALSE; } if($this->_can_restore and $rest!=0) $this->restore($rest); if(!$this->_exec("STOR ".$remotefile, "put")) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } $ret=$this->_data_write($mode, $fp); $this->_data_close(); if(!$this->_readmsg()) return FALSE; if(!$this->_checkCode()) return FALSE; return $ret; } function put($localfile, $remotefile=NULL, $rest=0) { if(is_null($remotefile)) $remotefile=$localfile; if (!file_exists($localfile)) { $this->PushError("put","cannot open local file", "No such file or directory \"".$localfile."\""); return FALSE; } $fp = @fopen($localfile, "r"); if (!$fp) { $this->PushError("put","cannot open local file", "Cannot read file \"".$localfile."\""); return FALSE; } if($this->_can_restore and $rest!=0) fseek($fp, $rest); $pi=pathinfo($localfile); if($this->_type==FTP_ASCII or ($this->_type==FTP_AUTOASCII and in_array(strtoupper($pi["extension"]), $this->AutoAsciiExt))) $mode=FTP_ASCII; else $mode=FTP_BINARY; if(!$this->_data_prepare($mode)) { fclose($fp); return FALSE; } if($this->_can_restore and $rest!=0) $this->restore($rest); if(!$this->_exec("STOR ".$remotefile, "put")) { $this->_data_close(); fclose($fp); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); fclose($fp); return FALSE; } $ret=$this->_data_write($mode, $fp); fclose($fp); $this->_data_close(); if(!$this->_readmsg()) return FALSE; if(!$this->_checkCode()) return FALSE; return $ret; } function mput($local=".", $remote=NULL, $continious=false) { $local=realpath($local); if(!@file_exists($local)) { $this->PushError("mput","cannot open local folder", "Cannot stat folder \"".$local."\""); return FALSE; } if(!is_dir($local)) return $this->put($local, $remote); if(empty($remote)) $remote="."; elseif(!$this->file_exists($remote) and !$this->mkdir($remote)) return FALSE; if($handle = opendir($local)) { $list=array(); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") $list[]=$file; } closedir($handle); } else { $this->PushError("mput","cannot open local folder", "Cannot read folder \"".$local."\""); return FALSE; } if(empty($list)) return TRUE; $ret=true; foreach($list as $el) { if(is_dir($local."/".$el)) $t=$this->mput($local."/".$el, $remote."/".$el); else $t=$this->put($local."/".$el, $remote."/".$el); if(!$t) { $ret=FALSE; if(!$continious) break; } } return $ret; } function mget($remote, $local=".", $continious=false) { $list=$this->rawlist($remote, "-lA"); if($list===false) { $this->PushError("mget","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); return FALSE; } if(empty($list)) return true; if(!@file_exists($local)) { if(!@mkdir($local)) { $this->PushError("mget","cannot create local folder", "Cannot create folder \"".$local."\""); return FALSE; } } foreach($list as $k=>$v) { $list[$k]=$this->parselisting($v); if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); } $ret=true; foreach($list as $el) { if($el["type"]=="d") { if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) { $this->PushError("mget", "cannot copy folder", "Cannot copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); $ret=false; if(!$continious) break; } } else { if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) { $this->PushError("mget", "cannot copy file", "Cannot copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); $ret=false; if(!$continious) break; } } @chmod($local."/".$el["name"], $el["perms"]); $t=strtotime($el["date"]); if($t!==-1 and $t!==false) @touch($local."/".$el["name"], $t); } return $ret; } function mdel($remote, $continious=false) { $list=$this->rawlist($remote, "-la"); if($list===false) { $this->PushError("mdel","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); return false; } foreach($list as $k=>$v) { $list[$k]=$this->parselisting($v); if( ! $list[$k] or $list[$k]["name"]=="." or $list[$k]["name"]=="..") unset($list[$k]); } $ret=true; foreach($list as $el) { if ( empty($el) ) continue; if($el["type"]=="d") { if(!$this->mdel($remote."/".$el["name"], $continious)) { $ret=false; if(!$continious) break; } } else { if (!$this->delete($remote."/".$el["name"])) { $this->PushError("mdel", "cannot delete file", "Cannot delete remote file \"".$remote."/".$el["name"]."\""); $ret=false; if(!$continious) break; } } } if(!$this->rmdir($remote)) { $this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\""); $ret=false; } return $ret; } function mmkdir($dir, $mode = 0777) { if(empty($dir)) return FALSE; if($this->is_exists($dir) or $dir == "/" ) return TRUE; if(!$this->mmkdir(dirname($dir), $mode)) return false; $r=$this->mkdir($dir, $mode); $this->chmod($dir,$mode); return $r; } function glob($pattern, $handle=NULL) { $path=$output=null; if(PHP_OS=='WIN32') $slash='\\'; else $slash='/'; $lastpos=strrpos($pattern,$slash); if(!($lastpos===false)) { $path=substr($pattern,0,-$lastpos-1); $pattern=substr($pattern,$lastpos); } else $path=getcwd(); if(is_array($handle) and !empty($handle)) { foreach($handle as $dir) { if($this->glob_pattern_match($pattern,$dir)) $output[]=$dir; } } else { $handle=@opendir($path); if($handle===false) return false; while($dir=readdir($handle)) { if($this->glob_pattern_match($pattern,$dir)) $output[]=$dir; } closedir($handle); } if(is_array($output)) return $output; return false; } function glob_pattern_match($pattern,$subject) { $out=null; $chunks=explode(';',$pattern); foreach($chunks as $pattern) { $escape=array('$','^','.','{','}','(',')','[',']','|'); while(str_contains($pattern,'**')) $pattern=str_replace('**','*',$pattern); foreach($escape as $probe) $pattern=str_replace($probe,"\\$probe",$pattern); $pattern=str_replace('?*','*', str_replace('*?','*', str_replace('*',".*", str_replace('?','.{1,1}',$pattern)))); $out[]=$pattern; } if(count($out)==1) return($this->glob_regexp("^$out[0]$",$subject)); else { foreach($out as $tester) // TODO: This should probably be glob_regexp(), but needs tests. if($this->my_regexp("^$tester$",$subject)) return true; } return false; } function glob_regexp($pattern,$subject) { $sensitive=(PHP_OS!='WIN32'); return ($sensitive? preg_match( '/' . preg_quote( $pattern, '/' ) . '/', $subject ) : preg_match( '/' . preg_quote( $pattern, '/' ) . '/i', $subject ) ); } function dirlist($remote) { $list=$this->rawlist($remote, "-la"); if($list===false) { $this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); return false; } $dirlist = array(); foreach($list as $k=>$v) { $entry=$this->parselisting($v); if ( empty($entry) ) continue; if($entry["name"]=="." or $entry["name"]=="..") continue; $dirlist[$entry['name']] = $entry; } return $dirlist; } // // // function _checkCode() { return ($this->_code<400 and $this->_code>0); } function _list($arg="", $cmd="LIST", $fnction="_list") { if(!$this->_data_prepare()) return false; if(!$this->_exec($cmd.$arg, $fnction)) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } $out=""; if($this->_code<200) { $out=$this->_data_read(); $this->_data_close(); if(!$this->_readmsg()) return FALSE; if(!$this->_checkCode()) return FALSE; if($out === FALSE ) return FALSE; $out=preg_split("/[".CRLF."]+/", $out, -1, PREG_SPLIT_NO_EMPTY); // $this->SendMSG(implode($this->_eol_code[$this->OS_local], $out)); } return $out; } // // // // Gnre une erreur pour traitement externe la classe function PushError($fctname,$msg,$desc=false){ $error=array(); $error['time']=time(); $error['fctname']=$fctname; $error['msg']=$msg; $error['desc']=$desc; if($desc) $tmp=' ('.$desc.')'; else $tmp=''; $this->SendMSG($fctname.': '.$msg.$tmp); return(array_push($this->_error_array,$error)); } // Rcupre une erreur externe function PopError(){ if(count($this->_error_array)) return(array_pop($this->_error_array)); else return(false); } } $mod_sockets = extension_loaded( 'sockets' ); if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) { $prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : ''; @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX ); // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.dlDeprecated $mod_sockets = extension_loaded( 'sockets' ); } require_once __DIR__ . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; if ( $mod_sockets ) { class ftp extends ftp_sockets {} } else { class ftp extends ftp_pure {} } includes/class-file-upload-upgrader.php000064400000010103152213653150014174 0ustar00 false, 'test_type' => false, ); $file = wp_handle_upload( $_FILES[ $form ], $overrides ); if ( isset( $file['error'] ) ) { wp_die( $file['error'] ); } if ( 'pluginzip' === $form || 'themezip' === $form ) { if ( ! wp_zip_file_is_valid( $file['file'] ) ) { wp_delete_file( $file['file'] ); if ( 'pluginzip' === $form ) { $plugins_page = sprintf( '%s', self_admin_url( 'plugin-install.php' ), __( 'Return to the Plugin Installer' ) ); wp_die( __( 'Incompatible Archive.' ) . '
        ' . $plugins_page ); } if ( 'themezip' === $form ) { $themes_page = sprintf( '%s', self_admin_url( 'theme-install.php' ), __( 'Return to the Theme Installer' ) ); wp_die( __( 'Incompatible Archive.' ) . '
        ' . $themes_page ); } } } $this->filename = $_FILES[ $form ]['name']; $this->package = $file['file']; // Construct the attachment array. $attachment = array( 'post_title' => $this->filename, 'post_content' => $file['url'], 'post_mime_type' => $file['type'], 'guid' => $file['url'], 'context' => 'upgrader', 'post_status' => 'private', ); // Save the data. $this->id = wp_insert_attachment( $attachment, $file['file'] ); // Schedule a cleanup for 2 hours from now in case of failed installation. wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) ); } elseif ( is_numeric( $_GET[ $urlholder ] ) ) { // Numeric Package = previously uploaded file, see above. $this->id = (int) $_GET[ $urlholder ]; $attachment = get_post( $this->id ); if ( empty( $attachment ) ) { wp_die( __( 'Please select a file' ) ); } $this->filename = $attachment->post_title; $this->package = get_attached_file( $attachment->ID ); } else { // Else, It's set to something, Back compat for plugins using the old (pre-3.3) File_Uploader handler. $uploads = wp_upload_dir(); if ( ! ( $uploads && false === $uploads['error'] ) ) { wp_die( $uploads['error'] ); } $this->filename = sanitize_file_name( $_GET[ $urlholder ] ); $this->package = $uploads['basedir'] . '/' . $this->filename; if ( ! str_starts_with( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { wp_die( __( 'Please select a file' ) ); } } } /** * Deletes the attachment/uploaded file. * * @since 3.2.2 * * @return bool Whether the cleanup was successful. */ public function cleanup() { if ( $this->id ) { wp_delete_attachment( $this->id ); } elseif ( file_exists( $this->package ) ) { return @unlink( $this->package ); } return true; } } includes/user.php000064400000056616152213653150010062 0ustar00ID = $user_id; $userdata = get_userdata( $user_id ); $user->user_login = wp_slash( $userdata->user_login ); } else { $update = false; } if ( ! $update && isset( $_POST['user_login'] ) ) { $user->user_login = sanitize_user( wp_unslash( $_POST['user_login'] ), true ); } $pass1 = ''; $pass2 = ''; if ( isset( $_POST['pass1'] ) ) { $pass1 = trim( $_POST['pass1'] ); } if ( isset( $_POST['pass2'] ) ) { $pass2 = trim( $_POST['pass2'] ); } if ( isset( $_POST['role'] ) && current_user_can( 'promote_users' ) && ( ! $user_id || current_user_can( 'promote_user', $user_id ) ) ) { $new_role = sanitize_text_field( $_POST['role'] ); // If the new role isn't editable by the logged-in user die with error. $editable_roles = get_editable_roles(); if ( ! empty( $new_role ) && empty( $editable_roles[ $new_role ] ) ) { wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 ); } $potential_role = $wp_roles->role_objects[ $new_role ] ?? false; /* * Don't let anyone with 'promote_users' edit their own role to something without it. * Multisite super admins can freely edit their roles, they possess all caps. */ if ( ( is_multisite() && current_user_can( 'manage_network_users' ) ) || get_current_user_id() !== $user_id || ( $potential_role && $potential_role->has_cap( 'promote_users' ) ) ) { $user->role = $new_role; } } if ( isset( $_POST['email'] ) ) { $user->user_email = sanitize_text_field( wp_unslash( $_POST['email'] ) ); } if ( isset( $_POST['url'] ) ) { if ( empty( $_POST['url'] ) || 'http://' === $_POST['url'] ) { $user->user_url = ''; } else { $user->user_url = sanitize_url( $_POST['url'] ); $protocols = implode( '|', array_map( 'preg_quote', wp_allowed_protocols() ) ); $user->user_url = preg_match( '/^(' . $protocols . '):/is', $user->user_url ) ? $user->user_url : 'http://' . $user->user_url; } } if ( isset( $_POST['first_name'] ) ) { $user->first_name = sanitize_text_field( $_POST['first_name'] ); } if ( isset( $_POST['last_name'] ) ) { $user->last_name = sanitize_text_field( $_POST['last_name'] ); } if ( isset( $_POST['nickname'] ) ) { $user->nickname = sanitize_text_field( $_POST['nickname'] ); } if ( isset( $_POST['display_name'] ) ) { $user->display_name = sanitize_text_field( $_POST['display_name'] ); } if ( isset( $_POST['description'] ) ) { $user->description = trim( $_POST['description'] ); } foreach ( wp_get_user_contact_methods( $user ) as $method => $name ) { if ( isset( $_POST[ $method ] ) ) { $user->$method = sanitize_text_field( $_POST[ $method ] ); } } if ( isset( $_POST['locale'] ) ) { $locale = sanitize_text_field( $_POST['locale'] ); if ( 'site-default' === $locale ) { $locale = ''; } elseif ( '' === $locale ) { $locale = 'en_US'; } elseif ( ! in_array( $locale, get_available_languages(), true ) ) { if ( current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) { if ( ! wp_download_language_pack( $locale ) ) { $locale = ''; } } else { $locale = ''; } } $user->locale = $locale; } if ( $update ) { $user->rich_editing = isset( $_POST['rich_editing'] ) && 'false' === $_POST['rich_editing'] ? 'false' : 'true'; $user->syntax_highlighting = isset( $_POST['syntax_highlighting'] ) && 'false' === $_POST['syntax_highlighting'] ? 'false' : 'true'; $user->admin_color = isset( $_POST['admin_color'] ) ? sanitize_text_field( $_POST['admin_color'] ) : 'modern'; $user->show_admin_bar_front = isset( $_POST['admin_bar_front'] ) ? 'true' : 'false'; } $user->comment_shortcuts = isset( $_POST['comment_shortcuts'] ) && 'true' === $_POST['comment_shortcuts'] ? 'true' : ''; $user->use_ssl = 0; if ( ! empty( $_POST['use_ssl'] ) ) { $user->use_ssl = 1; } $errors = new WP_Error(); /* checking that username has been typed */ if ( '' === $user->user_login ) { $errors->add( 'user_login', __( 'Error: Please enter a username.' ) ); } /* checking that nickname has been typed */ if ( $update && empty( $user->nickname ) ) { $errors->add( 'nickname', __( 'Error: Please enter a nickname.' ) ); } /** * Fires before the password and confirm password fields are checked for congruity. * * @since 1.5.1 * * @param string $user_login The username. * @param string $pass1 The password (passed by reference). * @param string $pass2 The confirmed password (passed by reference). */ do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) ); // Check for blank password when adding a user. if ( ! $update && empty( $pass1 ) ) { $errors->add( 'pass', __( 'Error: Please enter a password.' ), array( 'form-field' => 'pass1' ) ); } // Check for "\" in password. if ( str_contains( wp_unslash( $pass1 ), '\\' ) ) { $errors->add( 'pass', __( 'Error: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) ); } // Checking the password has been typed twice the same. if ( ( $update || ! empty( $pass1 ) ) && $pass1 !== $pass2 ) { $errors->add( 'pass', __( 'Error: Passwords do not match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) ); } if ( ! empty( $pass1 ) ) { $user->user_pass = $pass1; } if ( ! $update && isset( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) { $errors->add( 'user_login', __( 'Error: This username is invalid because it uses illegal characters. Please enter a valid username.' ) ); } if ( ! $update && username_exists( $user->user_login ) ) { $errors->add( 'user_login', __( 'Error: This username is already registered. Please choose another one.' ) ); } /** This filter is documented in wp-includes/user.php */ $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); if ( in_array( strtolower( $user->user_login ), array_map( 'strtolower', $illegal_logins ), true ) ) { $errors->add( 'invalid_username', __( 'Error: Sorry, that username is not allowed.' ) ); } // Checking email address. if ( empty( $user->user_email ) ) { $errors->add( 'empty_email', __( 'Error: Please enter an email address.' ), array( 'form-field' => 'email' ) ); } elseif ( ! is_email( $user->user_email ) ) { $errors->add( 'invalid_email', __( 'Error: The email address is not correct.' ), array( 'form-field' => 'email' ) ); } else { $owner_id = email_exists( $user->user_email ); if ( $owner_id && ( ! $update || ( $owner_id !== $user->ID ) ) ) { $errors->add( 'email_exists', __( 'Error: This email is already registered. Please choose another one.' ), array( 'form-field' => 'email' ) ); } } /** * Fires before user profile update errors are returned. * * @since 2.8.0 * * @param WP_Error $errors WP_Error object (passed by reference). * @param bool $update Whether this is a user update. * @param stdClass $user User object (passed by reference). */ do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) ); if ( $errors->has_errors() ) { return $errors; } if ( $update ) { $user_id = wp_update_user( $user ); } else { $user_id = wp_insert_user( $user ); $notify = isset( $_POST['send_user_notification'] ) ? 'both' : 'admin'; /** * Fires after a new user has been created. * * @since 4.4.0 * * @param int|WP_Error $user_id ID of the newly created user or WP_Error on failure. * @param string $notify Type of notification that should happen. See * wp_send_new_user_notifications() for more information. */ do_action( 'edit_user_created_user', $user_id, $notify ); } return $user_id; } /** * Fetch a filtered list of user roles that the current user is * allowed to edit. * * Simple function whose main purpose is to allow filtering of the * list of roles in the $wp_roles object so that plugins can remove * inappropriate ones depending on the situation or user making edits. * Specifically because without filtering anyone with the edit_users * capability can edit others to be administrators, even if they are * only editors or authors. This filter allows admins to delegate * user management. * * @since 2.8.0 * * @return array[] Array of arrays containing role information. */ function get_editable_roles() { $all_roles = wp_roles()->roles; /** * Filters the list of editable roles. * * @since 2.8.0 * * @param array[] $all_roles Array of arrays containing role information. */ $editable_roles = apply_filters( 'editable_roles', $all_roles ); return $editable_roles; } /** * Retrieve user data and filter it. * * @since 2.0.5 * * @param int $user_id User ID. * @return WP_User|false WP_User object on success, false on failure. */ function get_user_to_edit( $user_id ) { $user = get_userdata( $user_id ); if ( $user ) { $user->filter = 'edit'; } return $user; } /** * Retrieve the user's drafts. * * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $user_id User ID. * @return object[] The user's draft posts, with 'ID' and 'post_title' keys. */ function get_users_drafts( $user_id ) { global $wpdb; $query = $wpdb->prepare( "SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author = %d ORDER BY post_modified DESC", $user_id ); /** * Filters the SQL query string for the user's drafts query. * * @since 2.0.0 * * @param string $query The user's drafts query string. */ $query = apply_filters( 'get_users_drafts', $query ); return $wpdb->get_results( $query ); } /** * Delete user and optionally reassign posts and links to another user. * * Note that on a Multisite installation the user only gets removed from the site * and does not get deleted from the database. * * If the `$reassign` parameter is not assigned to a user ID, then all posts will * be deleted of that user. The action {@see 'delete_user'} that is passed the user ID * being deleted will be run after the posts are either reassigned or deleted. * The user meta will also be deleted that are for that user ID. * * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $id User ID. * @param int $reassign Optional. Reassign posts and links to new User ID. * @return bool True when finished. */ function wp_delete_user( $id, $reassign = null ) { global $wpdb; if ( ! is_numeric( $id ) ) { return false; } $id = (int) $id; $user = new WP_User( $id ); if ( ! $user->exists() ) { return false; } // Normalize $reassign to null or a user ID. 'novalue' was an older default. if ( 'novalue' === $reassign ) { $reassign = null; } elseif ( null !== $reassign ) { $reassign = (int) $reassign; } /** * Fires immediately before a user is deleted from the site. * * Note that on a Multisite installation the user only gets removed from the site * and does not get deleted from the database. * * @since 2.0.0 * @since 5.5.0 Added the `$user` parameter. * * @param int $id ID of the user to delete. * @param int|null $reassign ID of the user to reassign posts and links to. * Default null, for no reassignment. * @param WP_User $user WP_User object of the user to delete. */ do_action( 'delete_user', $id, $reassign, $user ); if ( null === $reassign ) { $post_types_to_delete = array(); foreach ( get_post_types( array(), 'objects' ) as $post_type ) { if ( $post_type->delete_with_user ) { $post_types_to_delete[] = $post_type->name; } elseif ( null === $post_type->delete_with_user && post_type_supports( $post_type->name, 'author' ) ) { $post_types_to_delete[] = $post_type->name; } } /** * Filters the list of post types to delete with a user. * * @since 3.4.0 * * @param string[] $post_types_to_delete Array of post types to delete. * @param int $id User ID. */ $post_types_to_delete = apply_filters( 'post_types_to_delete_with_user', $post_types_to_delete, $id ); $post_types_to_delete = implode( "', '", $post_types_to_delete ); $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d AND post_type IN ('$post_types_to_delete')", $id ) ); if ( $post_ids ) { foreach ( $post_ids as $post_id ) { wp_delete_post( $post_id ); } } // Clean links. $link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) ); if ( $link_ids ) { foreach ( $link_ids as $link_id ) { wp_delete_link( $link_id ); } } } else { $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d", $id ) ); $wpdb->update( $wpdb->posts, array( 'post_author' => $reassign ), array( 'post_author' => $id ) ); if ( ! empty( $post_ids ) ) { foreach ( $post_ids as $post_id ) { clean_post_cache( $post_id ); } } $link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) ); $wpdb->update( $wpdb->links, array( 'link_owner' => $reassign ), array( 'link_owner' => $id ) ); if ( ! empty( $link_ids ) ) { foreach ( $link_ids as $link_id ) { clean_bookmark_cache( $link_id ); } } } // FINALLY, delete user. if ( is_multisite() ) { remove_user_from_blog( $id, get_current_blog_id() ); } else { $meta = $wpdb->get_col( $wpdb->prepare( "SELECT umeta_id FROM $wpdb->usermeta WHERE user_id = %d", $id ) ); foreach ( $meta as $mid ) { delete_metadata_by_mid( 'user', $mid ); } $wpdb->delete( $wpdb->users, array( 'ID' => $id ) ); } clean_user_cache( $user ); /** * Fires immediately after a user is deleted from the site. * * Note that on a Multisite installation the user may not have been deleted from * the database depending on whether `wp_delete_user()` or `wpmu_delete_user()` * was called. * * @since 2.9.0 * @since 5.5.0 Added the `$user` parameter. * * @param int $id ID of the deleted user. * @param int|null $reassign ID of the user to reassign posts and links to. * Default null, for no reassignment. * @param WP_User $user WP_User object of the deleted user. */ do_action( 'deleted_user', $id, $reassign, $user ); return true; } /** * Remove all capabilities from user. * * @since 2.1.0 * * @param int $id User ID. */ function wp_revoke_user( $id ) { $id = (int) $id; $user = new WP_User( $id ); $user->remove_all_caps(); } /** * @since 2.8.0 * * @global int $user_ID Current user ID. * * @param false $errors Deprecated. */ function default_password_nag_handler( $errors = false ) { global $user_ID; // Short-circuit it. if ( ! get_user_option( 'default_password_nag' ) ) { return; } // get_user_setting() = JS-saved UI setting. Else no-js-fallback code. if ( 'hide' === get_user_setting( 'default_password_nag' ) || isset( $_GET['default_password_nag'] ) && '0' === $_GET['default_password_nag'] ) { delete_user_setting( 'default_password_nag' ); update_user_meta( $user_ID, 'default_password_nag', false ); } } /** * @since 2.8.0 * * @param int $user_ID User ID. * @param WP_User $old_data The user object before the update. */ function default_password_nag_edit_user( $user_ID, $old_data ) { // Short-circuit it. if ( ! get_user_option( 'default_password_nag', $user_ID ) ) { return; } $new_data = get_userdata( $user_ID ); // Remove the nag if the password has been changed. if ( $new_data->user_pass !== $old_data->user_pass ) { delete_user_setting( 'default_password_nag' ); update_user_meta( $user_ID, 'default_password_nag', false ); } } /** * @since 2.8.0 * * @global string $pagenow The filename of the current screen. */ function default_password_nag() { global $pagenow; // Short-circuit it. if ( 'profile.php' === $pagenow || ! get_user_option( 'default_password_nag' ) ) { return; } $default_password_nag_message = sprintf( '

        %1$s %2$s

        ', __( 'Notice:' ), __( 'You are using the auto-generated password for your account. Would you like to change it?' ) ); $default_password_nag_message .= sprintf( '

        %2$s | ', esc_url( get_edit_profile_url() . '#password' ), __( 'Yes, take me to my profile page' ) ); $default_password_nag_message .= sprintf( '%2$s

        ', '?default_password_nag=0', __( 'No thanks, do not remind me again' ) ); wp_admin_notice( $default_password_nag_message, array( 'additional_classes' => array( 'error', 'default-password-nag' ), 'paragraph_wrap' => false, ) ); } /** * @since 3.5.0 * @access private */ function delete_users_add_js() { ?> add( $validated_success_url->get_error_code(), $validated_success_url->get_error_message() ); } } if ( isset( $request['reject_url'] ) ) { $validated_reject_url = wp_is_authorize_application_redirect_url_valid( $request['reject_url'] ); if ( is_wp_error( $validated_reject_url ) ) { $error->add( $validated_reject_url->get_error_code(), $validated_reject_url->get_error_message() ); } } if ( ! empty( $request['app_id'] ) && ! wp_is_uuid( $request['app_id'] ) ) { $error->add( 'invalid_app_id', __( 'The application ID must be a UUID.' ) ); } /** * Fires before application password errors are returned. * * @since 5.6.0 * * @param WP_Error $error The error object. * @param array $request The array of request data. * @param WP_User $user The user authorizing the application. */ do_action( 'wp_authorize_application_password_request_errors', $error, $request, $user ); if ( $error->has_errors() ) { return $error; } return true; } /** * Validates the redirect URL protocol scheme. * * The `http` scheme is allowed for loopback IP addresses (127.0.0.1, [::1]) * and local environments. The `javascript` and `data` protocols are always rejected. * * @since 6.3.2 * * @param string $url The redirect URL to be validated. * @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise. */ function wp_is_authorize_application_redirect_url_valid( $url ) { $bad_protocols = array( 'javascript', 'data' ); if ( empty( $url ) ) { return true; } // Based on https://www.rfc-editor.org/rfc/rfc2396#section-3.1 $valid_scheme_regex = '/^[a-zA-Z][a-zA-Z0-9+.-]*:/'; if ( ! preg_match( $valid_scheme_regex, $url ) ) { return new WP_Error( 'invalid_redirect_url_format', __( 'Invalid URL format.' ) ); } /** * Filters the list of invalid protocols used in applications redirect URLs. * * @since 6.3.2 * * @param string[] $bad_protocols Array of invalid protocols. * @param string $url The redirect URL to be validated. */ $invalid_protocols = apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url ); $invalid_protocols = array_map( 'strtolower', $invalid_protocols ); $scheme = wp_parse_url( $url, PHP_URL_SCHEME ); $host = wp_parse_url( $url, PHP_URL_HOST ); $is_local = 'local' === wp_get_environment_type(); // Validates if the proper URI format is applied to the URL. if ( empty( $host ) || empty( $scheme ) || in_array( strtolower( $scheme ), $invalid_protocols, true ) ) { return new WP_Error( 'invalid_redirect_url_format', __( 'Invalid URL format.' ) ); } // Allow insecure HTTP connections to locally hosted applications. $is_loopback = in_array( strtolower( $host ), array( '127.0.0.1', '[::1]' ), true ); if ( 'http' === $scheme && ! $is_local && ! $is_loopback ) { return new WP_Error( 'invalid_redirect_scheme', __( 'The URL must be served over a secure connection.' ) ); } return true; } includes/ajax-actions.php000064400000452307152213653150011462 0ustar00id and the JS global 'pagenow'. if ( ! empty( $_POST['screen_id'] ) ) { $screen_id = sanitize_key( $_POST['screen_id'] ); } else { $screen_id = 'front'; } if ( ! empty( $_POST['data'] ) ) { $data = wp_unslash( (array) $_POST['data'] ); /** * Filters Heartbeat Ajax response in no-privilege environments. * * @since 3.6.0 * * @param array $response The no-priv Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. */ $response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id ); } /** * Filters Heartbeat Ajax response in no-privilege environments when no data is passed. * * @since 3.6.0 * * @param array $response The no-priv Heartbeat response. * @param string $screen_id The screen ID. */ $response = apply_filters( 'heartbeat_nopriv_send', $response, $screen_id ); /** * Fires when Heartbeat ticks in no-privilege environments. * * Allows the transport to be easily replaced with long-polling. * * @since 3.6.0 * * @param array $response The no-priv Heartbeat response. * @param string $screen_id The screen ID. */ do_action( 'heartbeat_nopriv_tick', $response, $screen_id ); // Send the current time according to the server. $response['server_time'] = time(); wp_send_json( $response ); } // // GET-based Ajax handlers. // /** * Handles fetching a list table via AJAX. * * @since 3.1.0 */ function wp_ajax_fetch_list() { $list_class = $_GET['list_args']['class']; check_ajax_referer( "fetch-list-$list_class", '_ajax_fetch_list_nonce' ); $wp_list_table = _get_list_table( $list_class, array( 'screen' => $_GET['list_args']['screen']['id'] ) ); if ( ! $wp_list_table ) { wp_die( 0 ); } if ( ! $wp_list_table->ajax_user_can() ) { wp_die( -1 ); } $wp_list_table->ajax_response(); wp_die( 0 ); } /** * Handles tag search via AJAX. * * @since 3.1.0 */ function wp_ajax_ajax_tag_search() { if ( ! isset( $_GET['tax'] ) ) { wp_die( 0 ); } $taxonomy = sanitize_key( $_GET['tax'] ); $taxonomy_object = get_taxonomy( $taxonomy ); if ( ! $taxonomy_object ) { wp_die( 0 ); } if ( ! current_user_can( $taxonomy_object->cap->assign_terms ) ) { wp_die( -1 ); } $search = wp_unslash( $_GET['q'] ); $comma = _x( ',', 'tag delimiter' ); if ( ',' !== $comma ) { $search = str_replace( $comma, ',', $search ); } if ( str_contains( $search, ',' ) ) { $search = explode( ',', $search ); $search = $search[ count( $search ) - 1 ]; } $search = trim( $search ); /** * Filters the minimum number of characters required to fire a tag search via Ajax. * * @since 4.0.0 * * @param int $characters The minimum number of characters required. Default 2. * @param WP_Taxonomy $taxonomy_object The taxonomy object. * @param string $search The search term. */ $term_search_min_chars = (int) apply_filters( 'term_search_min_chars', 2, $taxonomy_object, $search ); /* * Require $term_search_min_chars chars for matching (default: 2) * ensure it's a non-negative, non-zero integer. */ if ( ( 0 === $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) { wp_die(); } $results = get_terms( array( 'taxonomy' => $taxonomy, 'name__like' => $search, 'fields' => 'names', 'hide_empty' => false, 'number' => isset( $_GET['number'] ) ? (int) $_GET['number'] : 0, ) ); /** * Filters the Ajax term search results. * * @since 6.1.0 * * @param string[] $results Array of term names. * @param WP_Taxonomy $taxonomy_object The taxonomy object. * @param string $search The search term. */ $results = apply_filters( 'ajax_term_search_results', $results, $taxonomy_object, $search ); echo implode( "\n", $results ); wp_die(); } /** * Handles compression testing via AJAX. * * @since 3.1.0 */ function wp_ajax_wp_compression_test() { if ( ! current_user_can( 'manage_options' ) ) { wp_die( -1 ); } if ( ini_get( 'zlib.output_compression' ) || 'ob_gzhandler' === ini_get( 'output_handler' ) ) { // Use `update_option()` on single site to mark the option for autoloading. if ( is_multisite() ) { update_site_option( 'can_compress_scripts', 0 ); } else { update_option( 'can_compress_scripts', 0, true ); } wp_die( 0 ); } if ( isset( $_GET['test'] ) ) { header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); header( 'Content-Type: application/javascript; charset=UTF-8' ); $force_gzip = ( defined( 'ENFORCE_GZIP' ) && ENFORCE_GZIP ); $test_str = '"wpCompressionTest Lorem ipsum dolor sit amet consectetuer mollis sapien urna ut a. Eu nonummy condimentum fringilla tempor pretium platea vel nibh netus Maecenas. Hac molestie amet justo quis pellentesque est ultrices interdum nibh Morbi. Cras mattis pretium Phasellus ante ipsum ipsum ut sociis Suspendisse Lorem. Ante et non molestie. Porta urna Vestibulum egestas id congue nibh eu risus gravida sit. Ac augue auctor Ut et non a elit massa id sodales. Elit eu Nulla at nibh adipiscing mattis lacus mauris at tempus. Netus nibh quis suscipit nec feugiat eget sed lorem et urna. Pellentesque lacus at ut massa consectetuer ligula ut auctor semper Pellentesque. Ut metus massa nibh quam Curabitur molestie nec mauris congue. Volutpat molestie elit justo facilisis neque ac risus Ut nascetur tristique. Vitae sit lorem tellus et quis Phasellus lacus tincidunt nunc Fusce. Pharetra wisi Suspendisse mus sagittis libero lacinia Integer consequat ac Phasellus. Et urna ac cursus tortor aliquam Aliquam amet tellus volutpat Vestibulum. Justo interdum condimentum In augue congue tellus sollicitudin Quisque quis nibh."'; if ( '1' === $_GET['test'] ) { echo $test_str; wp_die(); } elseif ( '2' === $_GET['test'] ) { if ( ! isset( $_SERVER['HTTP_ACCEPT_ENCODING'] ) ) { wp_die( -1 ); } if ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate' ) && function_exists( 'gzdeflate' ) && ! $force_gzip ) { header( 'Content-Encoding: deflate' ); $output = gzdeflate( $test_str, 1 ); } elseif ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) && function_exists( 'gzencode' ) ) { header( 'Content-Encoding: gzip' ); $output = gzencode( $test_str, 1 ); } else { wp_die( -1 ); } echo $output; wp_die(); } elseif ( 'no' === $_GET['test'] ) { check_ajax_referer( 'update_can_compress_scripts' ); // Use `update_option()` on single site to mark the option for autoloading. if ( is_multisite() ) { update_site_option( 'can_compress_scripts', 0 ); } else { update_option( 'can_compress_scripts', 0, true ); } } elseif ( 'yes' === $_GET['test'] ) { check_ajax_referer( 'update_can_compress_scripts' ); // Use `update_option()` on single site to mark the option for autoloading. if ( is_multisite() ) { update_site_option( 'can_compress_scripts', 1 ); } else { update_option( 'can_compress_scripts', 1, true ); } } } wp_die( 0 ); } /** * Handles image editor previews via AJAX. * * @since 3.1.0 */ function wp_ajax_imgedit_preview() { $post_id = (int) $_GET['postid']; if ( empty( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) { wp_die( -1 ); } check_ajax_referer( "image_editor-$post_id" ); require_once ABSPATH . 'wp-admin/includes/image-edit.php'; if ( ! stream_preview_image( $post_id ) ) { wp_die( -1 ); } wp_die(); } /** * Handles oEmbed caching via AJAX. * * @since 3.1.0 * * @global WP_Embed $wp_embed WordPress Embed object. */ function wp_ajax_oembed_cache() { $GLOBALS['wp_embed']->cache_oembed( $_GET['post'] ); wp_die( 0 ); } /** * Handles user autocomplete via AJAX. * * @since 3.4.0 */ function wp_ajax_autocomplete_user() { if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) ) { wp_die( -1 ); } /** This filter is documented in wp-admin/user-new.php */ if ( ! current_user_can( 'manage_network_users' ) && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) { wp_die( -1 ); } $return = array(); /* * Check the type of request. * Current allowed values are `add` and `search`. */ if ( isset( $_REQUEST['autocomplete_type'] ) && 'search' === $_REQUEST['autocomplete_type'] ) { $type = $_REQUEST['autocomplete_type']; } else { $type = 'add'; } /* * Check the desired field for value. * Current allowed values are `user_email` and `user_login`. */ if ( isset( $_REQUEST['autocomplete_field'] ) && 'user_email' === $_REQUEST['autocomplete_field'] ) { $field = $_REQUEST['autocomplete_field']; } else { $field = 'user_login'; } // Exclude current users of this blog. if ( isset( $_REQUEST['site_id'] ) ) { $id = absint( $_REQUEST['site_id'] ); } else { $id = get_current_blog_id(); } $include_blog_users = ( 'search' === $type ? get_users( array( 'blog_id' => $id, 'fields' => 'ID', ) ) : array() ); $exclude_blog_users = ( 'add' === $type ? get_users( array( 'blog_id' => $id, 'fields' => 'ID', ) ) : array() ); $users = get_users( array( 'blog_id' => false, 'search' => '*' . $_REQUEST['term'] . '*', 'include' => $include_blog_users, 'exclude' => $exclude_blog_users, 'search_columns' => array( 'user_login', 'user_nicename', 'user_email' ), ) ); foreach ( $users as $user ) { $return[] = array( /* translators: 1: User login, 2: User email address. */ 'label' => sprintf( _x( '%1$s (%2$s)', 'user autocomplete result' ), $user->user_login, $user->user_email ), 'value' => $user->$field, ); } wp_die( wp_json_encode( $return ) ); } /** * Handles Ajax requests for community events * * @since 4.8.0 */ function wp_ajax_get_community_events() { require_once ABSPATH . 'wp-admin/includes/class-wp-community-events.php'; check_ajax_referer( 'community_events' ); $search = isset( $_POST['location'] ) ? wp_unslash( $_POST['location'] ) : ''; $timezone = isset( $_POST['timezone'] ) ? wp_unslash( $_POST['timezone'] ) : ''; $user_id = get_current_user_id(); $saved_location = get_user_option( 'community-events-location', $user_id ); $events_client = new WP_Community_Events( $user_id, $saved_location ); $events = $events_client->get_events( $search, $timezone ); $ip_changed = false; if ( is_wp_error( $events ) ) { wp_send_json_error( array( 'error' => $events->get_error_message(), ) ); } else { if ( empty( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) ) { $ip_changed = true; } elseif ( isset( $saved_location['ip'] ) && ! empty( $events['location']['ip'] ) && $saved_location['ip'] !== $events['location']['ip'] ) { $ip_changed = true; } /* * The location should only be updated when it changes. The API doesn't always return * a full location; sometimes it's missing the description or country. The location * that was saved during the initial request is known to be good and complete, though. * It should be left intact until the user explicitly changes it (either by manually * searching for a new location, or by changing their IP address). * * If the location was updated with an incomplete response from the API, then it could * break assumptions that the UI makes (e.g., that there will always be a description * that corresponds to a latitude/longitude location). * * The location is stored network-wide, so that the user doesn't have to set it on each site. */ if ( $ip_changed || $search ) { update_user_meta( $user_id, 'community-events-location', $events['location'] ); } wp_send_json_success( $events ); } } /** * Handles dashboard widgets via AJAX. * * @since 3.4.0 */ function wp_ajax_dashboard_widgets() { require_once ABSPATH . 'wp-admin/includes/dashboard.php'; $pagenow = $_GET['pagenow']; if ( 'dashboard-user' === $pagenow || 'dashboard-network' === $pagenow || 'dashboard' === $pagenow ) { set_current_screen( $pagenow ); } switch ( $_GET['widget'] ) { case 'dashboard_primary': wp_dashboard_primary(); break; } wp_die(); } /** * Handles Customizer preview logged-in status via AJAX. * * @since 3.4.0 */ function wp_ajax_logged_in() { wp_die( 1 ); } // // Ajax helpers. // /** * Sends back current comment total and new page links if they need to be updated. * * Contrary to normal success Ajax response ("1"), die with time() on success. * * @since 2.7.0 * @access private * * @param int $comment_id Comment ID. * @param int $delta Optional. Change in the number of total comments. Default -1. */ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { $total = isset( $_POST['_total'] ) ? (int) $_POST['_total'] : 0; $per_page = isset( $_POST['_per_page'] ) ? (int) $_POST['_per_page'] : 0; $page = isset( $_POST['_page'] ) ? (int) $_POST['_page'] : 0; $url = isset( $_POST['_url'] ) ? sanitize_url( $_POST['_url'] ) : ''; // JS didn't send us everything we need to know. Just die with success message. if ( ! $total || ! $per_page || ! $page || ! $url ) { $time = time(); $comment = get_comment( $comment_id ); $comment_status = ''; $comment_link = ''; if ( $comment ) { $comment_status = $comment->comment_approved; } if ( 1 === (int) $comment_status ) { $comment_link = get_comment_link( $comment ); } $counts = wp_count_comments(); $response = new WP_Ajax_Response( array( 'what' => 'comment', // Here for completeness - not used. 'id' => $comment_id, 'supplemental' => array( 'status' => $comment_status, 'postId' => $comment ? $comment->comment_post_ID : '', 'time' => $time, 'in_moderation' => $counts->moderated, 'i18n_comments_text' => sprintf( /* translators: %s: Number of comments. */ _n( '%s Comment', '%s Comments', $counts->approved ), number_format_i18n( $counts->approved ) ), 'i18n_moderation_text' => sprintf( /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), 'comment_link' => $comment_link, ), ) ); $response->send(); } $total += $delta; if ( $total < 0 ) { $total = 0; } // Only do the expensive stuff on a page-break, and about 1 other time per page. if ( 0 === $total % $per_page || 1 === mt_rand( 1, $per_page ) ) { $post_id = 0; // What type of comment count are we looking for? $status = 'all'; $parsed = parse_url( $url ); if ( isset( $parsed['query'] ) ) { parse_str( $parsed['query'], $query_vars ); if ( ! empty( $query_vars['comment_status'] ) ) { $status = $query_vars['comment_status']; } if ( ! empty( $query_vars['p'] ) ) { $post_id = (int) $query_vars['p']; } if ( ! empty( $query_vars['comment_type'] ) ) { $type = $query_vars['comment_type']; } } if ( empty( $type ) ) { // Only use the comment count if not filtering by a comment_type. $comment_count = wp_count_comments( $post_id ); // We're looking for a known type of comment count. if ( isset( $comment_count->$status ) ) { $total = $comment_count->$status; } } // Else use the decremented value from above. } // The time since the last comment count. $time = time(); $comment = get_comment( $comment_id ); $counts = wp_count_comments(); $response = new WP_Ajax_Response( array( 'what' => 'comment', 'id' => $comment_id, 'supplemental' => array( 'status' => $comment ? $comment->comment_approved : '', 'postId' => $comment ? $comment->comment_post_ID : '', /* translators: %s: Number of comments. */ 'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ), 'total_pages' => (int) ceil( $total / $per_page ), 'total_pages_i18n' => number_format_i18n( (int) ceil( $total / $per_page ) ), 'total' => $total, 'time' => $time, 'in_moderation' => $counts->moderated, 'i18n_moderation_text' => sprintf( /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), ), ) ); $response->send(); } // // POST-based Ajax handlers. // /** * Handles adding a hierarchical term via AJAX. * * @since 3.1.0 * @access private */ function _wp_ajax_add_hierarchical_term() { $action = $_POST['action']; $taxonomy = get_taxonomy( substr( $action, 4 ) ); check_ajax_referer( $action, '_ajax_nonce-add-' . $taxonomy->name ); if ( ! current_user_can( $taxonomy->cap->edit_terms ) ) { wp_die( -1 ); } $names = explode( ',', $_POST[ 'new' . $taxonomy->name ] ); $parent = isset( $_POST[ 'new' . $taxonomy->name . '_parent' ] ) ? (int) $_POST[ 'new' . $taxonomy->name . '_parent' ] : 0; if ( 0 > $parent ) { $parent = 0; } if ( 'category' === $taxonomy->name ) { $post_category = isset( $_POST['post_category'] ) ? (array) $_POST['post_category'] : array(); } else { $post_category = ( isset( $_POST['tax_input'] ) && isset( $_POST['tax_input'][ $taxonomy->name ] ) ) ? (array) $_POST['tax_input'][ $taxonomy->name ] : array(); } $checked_categories = array_map( 'absint', (array) $post_category ); $popular_ids = wp_popular_terms_checklist( $taxonomy->name, 0, 10, false ); foreach ( $names as $category_name ) { $category_name = trim( $category_name ); $category_nicename = sanitize_title( $category_name ); if ( '' === $category_nicename ) { continue; } $category_id = wp_insert_term( $category_name, $taxonomy->name, array( 'parent' => $parent ) ); if ( ! $category_id || is_wp_error( $category_id ) ) { continue; } else { $category_id = $category_id['term_id']; } $checked_categories[] = $category_id; if ( $parent ) { // Do these all at once in a second. continue; } ob_start(); wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $category_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids, ) ); $data = ob_get_clean(); $add = array( 'what' => $taxonomy->name, 'id' => $category_id, 'data' => str_replace( array( "\n", "\t" ), '', $data ), 'position' => -1, ); } if ( $parent ) { // Foncy - replace the parent and all its children. $parent = get_term( $parent, $taxonomy->name ); $term_id = $parent->term_id; while ( $parent->parent ) { // Get the top parent. $parent = get_term( $parent->parent, $taxonomy->name ); if ( is_wp_error( $parent ) ) { break; } $term_id = $parent->term_id; } ob_start(); wp_terms_checklist( 0, array( 'taxonomy' => $taxonomy->name, 'descendants_and_self' => $term_id, 'selected_cats' => $checked_categories, 'popular_cats' => $popular_ids, ) ); $data = ob_get_clean(); $add = array( 'what' => $taxonomy->name, 'id' => $term_id, 'data' => str_replace( array( "\n", "\t" ), '', $data ), 'position' => -1, ); } $parent_dropdown_args = array( 'taxonomy' => $taxonomy->name, 'hide_empty' => 0, 'name' => 'new' . $taxonomy->name . '_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $taxonomy->labels->parent_item . ' —', ); /** This filter is documented in wp-admin/includes/meta-boxes.php */ $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args ); ob_start(); wp_dropdown_categories( $parent_dropdown_args ); $supplemental = ob_get_clean(); $add['supplemental'] = array( 'newcat_parent' => $supplemental ); $response = new WP_Ajax_Response( $add ); $response->send(); } /** * Handles deleting a comment via AJAX. * * @since 3.1.0 */ function wp_ajax_delete_comment() { $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; $comment = get_comment( $id ); if ( ! $comment ) { wp_die( time() ); } if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) ) { wp_die( -1 ); } check_ajax_referer( "delete-comment_$id" ); $status = wp_get_comment_status( $comment ); $delta = -1; if ( isset( $_POST['trash'] ) && '1' === $_POST['trash'] ) { if ( 'trash' === $status ) { wp_die( time() ); } $result = wp_trash_comment( $comment ); } elseif ( isset( $_POST['untrash'] ) && '1' === $_POST['untrash'] ) { if ( 'trash' !== $status ) { wp_die( time() ); } $result = wp_untrash_comment( $comment ); // Undo trash, not in Trash. if ( ! isset( $_POST['comment_status'] ) || 'trash' !== $_POST['comment_status'] ) { $delta = 1; } } elseif ( isset( $_POST['spam'] ) && '1' === $_POST['spam'] ) { if ( 'spam' === $status ) { wp_die( time() ); } $result = wp_spam_comment( $comment ); } elseif ( isset( $_POST['unspam'] ) && '1' === $_POST['unspam'] ) { if ( 'spam' !== $status ) { wp_die( time() ); } $result = wp_unspam_comment( $comment ); // Undo spam, not in spam. if ( ! isset( $_POST['comment_status'] ) || 'spam' !== $_POST['comment_status'] ) { $delta = 1; } } elseif ( isset( $_POST['delete'] ) && '1' === $_POST['delete'] ) { $result = wp_delete_comment( $comment ); } else { wp_die( -1 ); } if ( $result ) { // Decide if we need to send back '1' or a more complicated response including page links and comment counts. _wp_ajax_delete_comment_response( $comment->comment_ID, $delta ); } wp_die( 0 ); } /** * Handles deleting a tag via AJAX. * * @since 3.1.0 */ function wp_ajax_delete_tag() { $tag_id = (int) $_POST['tag_ID']; check_ajax_referer( "delete-tag_$tag_id" ); if ( ! current_user_can( 'delete_term', $tag_id ) ) { wp_die( -1 ); } $taxonomy = ! empty( $_POST['taxonomy'] ) ? $_POST['taxonomy'] : 'post_tag'; $tag = get_term( $tag_id, $taxonomy ); if ( ! $tag || is_wp_error( $tag ) ) { wp_die( 1 ); } if ( wp_delete_term( $tag_id, $taxonomy ) ) { wp_die( 1 ); } else { wp_die( 0 ); } } /** * Handles deleting a link via AJAX. * * @since 3.1.0 */ function wp_ajax_delete_link() { $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; check_ajax_referer( "delete-bookmark_$id" ); if ( ! current_user_can( 'manage_links' ) ) { wp_die( -1 ); } $link = get_bookmark( $id ); if ( ! $link || is_wp_error( $link ) ) { wp_die( 1 ); } if ( wp_delete_link( $id ) ) { wp_die( 1 ); } else { wp_die( 0 ); } } /** * Handles deleting meta via AJAX. * * @since 3.1.0 */ function wp_ajax_delete_meta() { $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; check_ajax_referer( "delete-meta_$id" ); $meta = get_metadata_by_mid( 'post', $id ); if ( ! $meta ) { wp_die( 1 ); } if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'delete_post_meta', $meta->post_id, $meta->meta_key ) ) { wp_die( -1 ); } if ( delete_meta( $meta->meta_id ) ) { wp_die( 1 ); } wp_die( 0 ); } /** * Handles deleting a post via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_delete_post( $action ) { if ( empty( $action ) ) { $action = 'delete-post'; } $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; check_ajax_referer( "{$action}_$id" ); if ( ! current_user_can( 'delete_post', $id ) ) { wp_die( -1 ); } if ( ! get_post( $id ) ) { wp_die( 1 ); } if ( wp_delete_post( $id ) ) { wp_die( 1 ); } else { wp_die( 0 ); } } /** * Handles sending a post to the Trash via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_trash_post( $action ) { if ( empty( $action ) ) { $action = 'trash-post'; } $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; check_ajax_referer( "{$action}_$id" ); if ( ! current_user_can( 'delete_post', $id ) ) { wp_die( -1 ); } if ( ! get_post( $id ) ) { wp_die( 1 ); } if ( 'trash-post' === $action ) { $done = wp_trash_post( $id ); } else { $done = wp_untrash_post( $id ); } if ( $done ) { wp_die( 1 ); } wp_die( 0 ); } /** * Handles restoring a post from the Trash via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_untrash_post( $action ) { if ( empty( $action ) ) { $action = 'untrash-post'; } wp_ajax_trash_post( $action ); } /** * Handles deleting a page via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_delete_page( $action ) { if ( empty( $action ) ) { $action = 'delete-page'; } $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; check_ajax_referer( "{$action}_$id" ); if ( ! current_user_can( 'delete_page', $id ) ) { wp_die( -1 ); } if ( ! get_post( $id ) ) { wp_die( 1 ); } if ( wp_delete_post( $id ) ) { wp_die( 1 ); } else { wp_die( 0 ); } } /** * Handles dimming a comment via AJAX. * * @since 3.1.0 */ function wp_ajax_dim_comment() { $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; $comment = get_comment( $id ); if ( ! $comment ) { $response = new WP_Ajax_Response( array( 'what' => 'comment', 'id' => new WP_Error( 'invalid_comment', /* translators: %d: Comment ID. */ sprintf( __( 'Comment %d does not exist' ), $id ) ), ) ); $response->send(); } if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) && ! current_user_can( 'moderate_comments' ) ) { wp_die( -1 ); } $current = wp_get_comment_status( $comment ); if ( isset( $_POST['new'] ) && $_POST['new'] === $current ) { wp_die( time() ); } check_ajax_referer( "approve-comment_$id" ); if ( in_array( $current, array( 'unapproved', 'spam' ), true ) ) { $result = wp_set_comment_status( $comment, 'approve', true ); } else { $result = wp_set_comment_status( $comment, 'hold', true ); } if ( is_wp_error( $result ) ) { $response = new WP_Ajax_Response( array( 'what' => 'comment', 'id' => $result, ) ); $response->send(); } // Decide if we need to send back '1' or a more complicated response including page links and comment counts. _wp_ajax_delete_comment_response( $comment->comment_ID ); wp_die( 0 ); } /** * Handles adding a link category via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_add_link_category( $action ) { if ( empty( $action ) ) { $action = 'add-link-category'; } check_ajax_referer( $action ); $taxonomy_object = get_taxonomy( 'link_category' ); if ( ! current_user_can( $taxonomy_object->cap->manage_terms ) ) { wp_die( -1 ); } $names = explode( ',', wp_unslash( $_POST['newcat'] ) ); $response = new WP_Ajax_Response(); foreach ( $names as $category_name ) { $category_name = trim( $category_name ); $slug = sanitize_title( $category_name ); if ( '' === $slug ) { continue; } $category_id = wp_insert_term( $category_name, 'link_category' ); if ( ! $category_id || is_wp_error( $category_id ) ) { continue; } else { $category_id = $category_id['term_id']; } $category_name = esc_html( $category_name ); $response->add( array( 'what' => 'link-category', 'id' => $category_id, 'data' => "", 'position' => -1, ) ); } $response->send(); } /** * Handles adding a tag via AJAX. * * @since 3.1.0 */ function wp_ajax_add_tag() { check_ajax_referer( 'add-tag', '_wpnonce_add-tag' ); $taxonomy = ! empty( $_POST['taxonomy'] ) ? $_POST['taxonomy'] : 'post_tag'; $taxonomy_object = get_taxonomy( $taxonomy ); if ( ! current_user_can( $taxonomy_object->cap->edit_terms ) ) { wp_die( -1 ); } $response = new WP_Ajax_Response(); $tag = wp_insert_term( $_POST['tag-name'], $taxonomy, $_POST ); if ( $tag && ! is_wp_error( $tag ) ) { $tag = get_term( $tag['term_id'], $taxonomy ); } if ( ! $tag || is_wp_error( $tag ) ) { $message = __( 'An error has occurred. Please reload the page and try again.' ); $error_code = 'error'; if ( is_wp_error( $tag ) && $tag->get_error_message() ) { $message = $tag->get_error_message(); } if ( is_wp_error( $tag ) && $tag->get_error_code() ) { $error_code = $tag->get_error_code(); } $response->add( array( 'what' => 'taxonomy', 'data' => new WP_Error( $error_code, $message ), ) ); $response->send(); } $wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => $_POST['screen'] ) ); $level = 0; $no_parents = ''; if ( is_taxonomy_hierarchical( $taxonomy ) ) { $level = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) ); ob_start(); $wp_list_table->single_row( $tag, $level ); $no_parents = ob_get_clean(); } ob_start(); $wp_list_table->single_row( $tag ); $parents = ob_get_clean(); require ABSPATH . 'wp-admin/includes/edit-tag-messages.php'; $message = ''; if ( isset( $messages[ $taxonomy_object->name ][1] ) ) { $message = $messages[ $taxonomy_object->name ][1]; } elseif ( isset( $messages['_item'][1] ) ) { $message = $messages['_item'][1]; } $response->add( array( 'what' => 'taxonomy', 'data' => $message, 'supplemental' => array( 'parents' => $parents, 'noparents' => $no_parents, 'notice' => $message, ), ) ); $response->add( array( 'what' => 'term', 'position' => $level, 'supplemental' => (array) $tag, ) ); $response->send(); } /** * Handles getting a tagcloud via AJAX. * * @since 3.1.0 */ function wp_ajax_get_tagcloud() { if ( ! isset( $_POST['tax'] ) ) { wp_die( 0 ); } $taxonomy = sanitize_key( $_POST['tax'] ); $taxonomy_object = get_taxonomy( $taxonomy ); if ( ! $taxonomy_object ) { wp_die( 0 ); } if ( ! current_user_can( $taxonomy_object->cap->assign_terms ) ) { wp_die( -1 ); } $tags = get_terms( array( 'taxonomy' => $taxonomy, 'number' => 45, 'orderby' => 'count', 'order' => 'DESC', ) ); if ( empty( $tags ) ) { wp_die( $taxonomy_object->labels->not_found ); } if ( is_wp_error( $tags ) ) { wp_die( $tags->get_error_message() ); } foreach ( $tags as $key => $tag ) { $tags[ $key ]->link = '#'; $tags[ $key ]->id = $tag->term_id; } // We need raw tag names here, so don't filter the output. $return = wp_generate_tag_cloud( $tags, array( 'filter' => 0, 'format' => 'list', ) ); if ( empty( $return ) ) { wp_die( 0 ); } echo $return; wp_die(); } /** * Handles getting comments via AJAX. * * @since 3.1.0 * * @global int $post_id Post ID. * * @param string $action Action to perform. */ function wp_ajax_get_comments( $action ) { global $post_id; if ( empty( $action ) ) { $action = 'get-comments'; } check_ajax_referer( $action ); if ( empty( $post_id ) && ! empty( $_REQUEST['p'] ) ) { $id = absint( $_REQUEST['p'] ); if ( ! empty( $id ) ) { $post_id = $id; } } if ( empty( $post_id ) ) { wp_die( -1 ); } $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_die( -1 ); } $wp_list_table->prepare_items(); if ( ! $wp_list_table->has_items() ) { wp_die( 1 ); } $response = new WP_Ajax_Response(); ob_start(); foreach ( $wp_list_table->items as $comment ) { if ( ! current_user_can( 'edit_comment', $comment->comment_ID ) && 0 === $comment->comment_approved ) { continue; } get_comment( $comment ); $wp_list_table->single_row( $comment ); } $comment_list_item = ob_get_clean(); $response->add( array( 'what' => 'comments', 'data' => $comment_list_item, ) ); $response->send(); } /** * Handles replying to a comment via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_replyto_comment( $action ) { if ( empty( $action ) ) { $action = 'replyto-comment'; } check_ajax_referer( $action, '_ajax_nonce-replyto-comment' ); $comment_post_id = (int) $_POST['comment_post_ID']; $post = get_post( $comment_post_id ); if ( ! $post ) { wp_die( -1 ); } if ( ! current_user_can( 'edit_post', $comment_post_id ) ) { wp_die( -1 ); } if ( empty( $post->post_status ) ) { wp_die( 1 ); } elseif ( in_array( $post->post_status, array( 'draft', 'pending', 'trash' ), true ) ) { wp_die( __( 'You cannot reply to a comment on a draft post.' ) ); } $user = wp_get_current_user(); if ( $user->exists() ) { $comment_author = wp_slash( $user->display_name ); $comment_author_email = wp_slash( $user->user_email ); $comment_author_url = wp_slash( $user->user_url ); $user_id = $user->ID; if ( current_user_can( 'unfiltered_html' ) ) { if ( ! isset( $_POST['_wp_unfiltered_html_comment'] ) ) { $_POST['_wp_unfiltered_html_comment'] = ''; } if ( wp_create_nonce( 'unfiltered-html-comment' ) !== $_POST['_wp_unfiltered_html_comment'] ) { kses_remove_filters(); // Start with a clean slate. kses_init_filters(); // Set up the filters. remove_filter( 'pre_comment_content', 'wp_filter_post_kses' ); add_filter( 'pre_comment_content', 'wp_filter_kses' ); } } } else { wp_die( __( 'Sorry, you must be logged in to reply to a comment.' ) ); } $comment_content = trim( $_POST['content'] ); if ( '' === $comment_content ) { wp_die( __( 'Please type your comment text.' ) ); } $comment_type = isset( $_POST['comment_type'] ) ? trim( $_POST['comment_type'] ) : 'comment'; $comment_parent = 0; if ( isset( $_POST['comment_ID'] ) ) { $comment_parent = absint( $_POST['comment_ID'] ); } $comment_auto_approved = false; $commentdata = array( 'comment_post_ID' => $comment_post_id, ); $commentdata += compact( 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_id' ); // Automatically approve parent comment. if ( ! empty( $_POST['approve_parent'] ) ) { $parent = get_comment( $comment_parent ); if ( $parent && '0' === $parent->comment_approved && (int) $parent->comment_post_ID === $comment_post_id ) { if ( ! current_user_can( 'edit_comment', $parent->comment_ID ) ) { wp_die( -1 ); } if ( wp_set_comment_status( $parent, 'approve' ) ) { $comment_auto_approved = true; } } } $comment_id = wp_new_comment( $commentdata ); if ( is_wp_error( $comment_id ) ) { wp_die( $comment_id->get_error_message() ); } $comment = get_comment( $comment_id ); if ( ! $comment ) { wp_die( 1 ); } $position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1'; ob_start(); if ( isset( $_REQUEST['mode'] ) && 'dashboard' === $_REQUEST['mode'] ) { require_once ABSPATH . 'wp-admin/includes/dashboard.php'; _wp_dashboard_recent_comments_row( $comment ); } else { if ( isset( $_REQUEST['mode'] ) && 'single' === $_REQUEST['mode'] ) { $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); } else { $wp_list_table = _get_list_table( 'WP_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); } $wp_list_table->single_row( $comment ); } $comment_list_item = ob_get_clean(); $response_data = array( 'what' => 'comment', 'id' => $comment->comment_ID, 'data' => $comment_list_item, 'position' => $position, ); $counts = wp_count_comments(); $response_data['supplemental'] = array( 'in_moderation' => $counts->moderated, 'i18n_comments_text' => sprintf( /* translators: %s: Number of comments. */ _n( '%s Comment', '%s Comments', $counts->approved ), number_format_i18n( $counts->approved ) ), 'i18n_moderation_text' => sprintf( /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), ); if ( $comment_auto_approved ) { $response_data['supplemental']['parent_approved'] = $parent->comment_ID; $response_data['supplemental']['parent_post_id'] = $parent->comment_post_ID; } $response = new WP_Ajax_Response(); $response->add( $response_data ); $response->send(); } /** * Handles editing a comment via AJAX. * * @since 3.1.0 */ function wp_ajax_edit_comment() { check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' ); $comment_id = (int) $_POST['comment_ID']; if ( ! current_user_can( 'edit_comment', $comment_id ) ) { wp_die( -1 ); } if ( '' === $_POST['content'] ) { wp_die( __( 'Please type your comment text.' ) ); } if ( isset( $_POST['status'] ) ) { $_POST['comment_status'] = $_POST['status']; } $updated = edit_comment(); if ( is_wp_error( $updated ) ) { wp_die( $updated->get_error_message() ); } $position = ( isset( $_POST['position'] ) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1'; /* * Checkbox is used to differentiate between the Edit Comments screen (1) * and the Comments section on the Edit Post screen (0). */ $checkbox = ( isset( $_POST['checkbox'] ) && '1' === $_POST['checkbox'] ) ? 1 : 0; $wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table', array( 'screen' => 'edit-comments' ) ); $comment = get_comment( $comment_id ); if ( empty( $comment->comment_ID ) ) { wp_die( -1 ); } ob_start(); $wp_list_table->single_row( $comment ); $comment_list_item = ob_get_clean(); $response = new WP_Ajax_Response(); $response->add( array( 'what' => 'edit_comment', 'id' => $comment->comment_ID, 'data' => $comment_list_item, 'position' => $position, ) ); $response->send(); } /** * Handles adding a menu item via AJAX. * * @since 3.1.0 */ function wp_ajax_add_menu_item() { check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; /* * For performance reasons, we omit some object properties from the checklist. * The following is a hacky way to restore them when adding non-custom items. */ $menu_items_data = array(); foreach ( (array) $_POST['menu-item'] as $menu_item_data ) { if ( ! empty( $menu_item_data['menu-item-type'] ) && 'custom' !== $menu_item_data['menu-item-type'] && ! empty( $menu_item_data['menu-item-object-id'] ) ) { switch ( $menu_item_data['menu-item-type'] ) { case 'post_type': $_object = get_post( $menu_item_data['menu-item-object-id'] ); break; case 'post_type_archive': $_object = get_post_type_object( $menu_item_data['menu-item-object'] ); break; case 'taxonomy': $_object = get_term( $menu_item_data['menu-item-object-id'], $menu_item_data['menu-item-object'] ); break; } $_menu_items = array_map( 'wp_setup_nav_menu_item', array( $_object ) ); $_menu_item = reset( $_menu_items ); // Restore the missing menu item properties. $menu_item_data['menu-item-description'] = $_menu_item->description; } $menu_items_data[] = $menu_item_data; } $item_ids = wp_save_nav_menu_items( 0, $menu_items_data ); if ( is_wp_error( $item_ids ) ) { wp_die( 0 ); } $menu_items = array(); foreach ( (array) $item_ids as $menu_item_id ) { $menu_object = get_post( $menu_item_id ); if ( ! empty( $menu_object->ID ) ) { $menu_object = wp_setup_nav_menu_item( $menu_object ); $menu_object->title = empty( $menu_object->title ) ? __( 'Menu Item' ) : $menu_object->title; $menu_object->label = $menu_object->title; // Don't show "(pending)" in ajax-added items. $menu_items[] = $menu_object; } } /** This filter is documented in wp-admin/includes/nav-menu.php */ $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] ); if ( ! class_exists( $walker_class_name ) ) { wp_die( 0 ); } if ( ! empty( $menu_items ) ) { $args = array( 'after' => '', 'before' => '', 'link_after' => '', 'link_before' => '', 'walker' => new $walker_class_name(), ); echo walk_nav_menu_tree( $menu_items, 0, (object) $args ); } wp_die(); } /** * Handles adding meta via AJAX. * * @since 3.1.0 */ function wp_ajax_add_meta() { check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' ); $count = 0; $post_id = (int) $_POST['post_id']; $post = get_post( $post_id ); if ( isset( $_POST['metakeyselect'] ) || isset( $_POST['metakeyinput'] ) ) { if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_die( -1 ); } if ( isset( $_POST['metakeyselect'] ) && '#NONE#' === $_POST['metakeyselect'] && empty( $_POST['metakeyinput'] ) ) { wp_die( 1 ); } // If the post is an autodraft, save the post as a draft and then attempt to save the meta. if ( 'auto-draft' === $post->post_status ) { $post_data = array(); $post_data['action'] = 'draft'; // Warning fix. $post_data['post_ID'] = $post_id; $post_data['post_type'] = $post->post_type; $post_data['post_status'] = 'draft'; $now = time(); $post_data['post_title'] = sprintf( /* translators: 1: Post creation date, 2: Post creation time. */ __( 'Draft created on %1$s at %2$s' ), gmdate( __( 'F j, Y' ), $now ), gmdate( __( 'g:i a' ), $now ) ); $post_id = edit_post( $post_data ); if ( $post_id ) { if ( is_wp_error( $post_id ) ) { $response = new WP_Ajax_Response( array( 'what' => 'meta', 'data' => $post_id, ) ); $response->send(); } $meta_id = add_meta( $post_id ); if ( ! $meta_id ) { wp_die( __( 'Please provide a custom field value.' ) ); } } else { wp_die( 0 ); } } else { $meta_id = add_meta( $post_id ); if ( ! $meta_id ) { wp_die( __( 'Please provide a custom field value.' ) ); } } $meta = get_metadata_by_mid( 'post', $meta_id ); $post_id = (int) $meta->post_id; $meta = get_object_vars( $meta ); $response = new WP_Ajax_Response( array( 'what' => 'meta', 'id' => $meta_id, 'data' => _list_meta_row( $meta, $count ), 'position' => 1, 'supplemental' => array( 'postid' => $post_id ), ) ); } else { // Update? $meta_id = (int) key( $_POST['meta'] ); $key = wp_unslash( $_POST['meta'][ $meta_id ]['key'] ); $value = wp_unslash( $_POST['meta'][ $meta_id ]['value'] ); if ( '' === trim( $key ) ) { wp_die( __( 'Please provide a custom field name.' ) ); } $meta = get_metadata_by_mid( 'post', $meta_id ); if ( ! $meta ) { wp_die( 0 ); // If meta doesn't exist. } if ( is_protected_meta( $meta->meta_key, 'post' ) || is_protected_meta( $key, 'post' ) || ! current_user_can( 'edit_post_meta', $meta->post_id, $meta->meta_key ) || ! current_user_can( 'edit_post_meta', $meta->post_id, $key ) ) { wp_die( -1 ); } if ( $meta->meta_value !== $value || $meta->meta_key !== $key ) { $update_result = update_metadata_by_mid( 'post', $meta_id, $value, $key ); if ( ! $update_result ) { wp_die( 0 ); // We know meta exists; we also know it's unchanged (or DB error, in which case there are bigger problems). } } $response = new WP_Ajax_Response( array( 'what' => 'meta', 'id' => $meta_id, 'old_id' => $meta_id, 'data' => _list_meta_row( array( 'meta_key' => $key, 'meta_value' => $value, 'meta_id' => $meta_id, ), $c ), 'position' => 0, 'supplemental' => array( 'postid' => $meta->post_id ), ) ); } $response->send(); } /** * Handles adding a user via AJAX. * * @since 3.1.0 * * @param string $action Action to perform. */ function wp_ajax_add_user( $action ) { if ( empty( $action ) ) { $action = 'add-user'; } check_ajax_referer( $action ); if ( ! current_user_can( 'create_users' ) ) { wp_die( -1 ); } $user_id = edit_user(); if ( ! $user_id ) { wp_die( 0 ); } elseif ( is_wp_error( $user_id ) ) { $response = new WP_Ajax_Response( array( 'what' => 'user', 'id' => $user_id, ) ); $response->send(); } $user_object = get_userdata( $user_id ); $wp_list_table = _get_list_table( 'WP_Users_List_Table' ); $role = current( $user_object->roles ); $response = new WP_Ajax_Response( array( 'what' => 'user', 'id' => $user_id, 'data' => $wp_list_table->single_row( $user_object, '', $role ), 'supplemental' => array( 'show-link' => sprintf( /* translators: %s: The new user. */ __( 'User %s added' ), '' . $user_object->user_login . '' ), 'role' => $role, ), ) ); $response->send(); } /** * Handles closed post boxes via AJAX. * * @since 3.1.0 */ function wp_ajax_closed_postboxes() { check_ajax_referer( 'closedpostboxes', 'closedpostboxesnonce' ); $closed = isset( $_POST['closed'] ) ? explode( ',', $_POST['closed'] ) : array(); $closed = array_filter( $closed ); $hidden = isset( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array(); $hidden = array_filter( $hidden ); $page = $_POST['page'] ?? ''; if ( sanitize_key( $page ) !== $page ) { wp_die( 0 ); } $user = wp_get_current_user(); if ( ! $user ) { wp_die( -1 ); } if ( is_array( $closed ) ) { update_user_meta( $user->ID, "closedpostboxes_$page", $closed ); } if ( is_array( $hidden ) ) { // Postboxes that are always shown. $hidden = array_diff( $hidden, array( 'submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu' ) ); update_user_meta( $user->ID, "metaboxhidden_$page", $hidden ); } wp_die( 1 ); } /** * Handles hidden columns via AJAX. * * @since 3.1.0 */ function wp_ajax_hidden_columns() { check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' ); $page = $_POST['page'] ?? ''; if ( sanitize_key( $page ) !== $page ) { wp_die( 0 ); } $user = wp_get_current_user(); if ( ! $user ) { wp_die( -1 ); } $hidden = ! empty( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array(); update_user_meta( $user->ID, "manage{$page}columnshidden", $hidden ); wp_die( 1 ); } /** * Handles updating whether to display the welcome panel via AJAX. * * @since 3.1.0 */ function wp_ajax_update_welcome_panel() { check_ajax_referer( 'welcome-panel-nonce', 'welcomepanelnonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } update_user_meta( get_current_user_id(), 'show_welcome_panel', empty( $_POST['visible'] ) ? 0 : 1 ); wp_die( 1 ); } /** * Handles for retrieving menu meta boxes via AJAX. * * @since 3.1.0 */ function wp_ajax_menu_get_metabox() { if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; if ( isset( $_POST['item-type'] ) && 'post_type' === $_POST['item-type'] ) { $type = 'posttype'; $callback = 'wp_nav_menu_item_post_type_meta_box'; $items = (array) get_post_types( array( 'show_in_nav_menus' => true ), 'object' ); } elseif ( isset( $_POST['item-type'] ) && 'taxonomy' === $_POST['item-type'] ) { $type = 'taxonomy'; $callback = 'wp_nav_menu_item_taxonomy_meta_box'; $items = (array) get_taxonomies( array( 'show_ui' => true ), 'object' ); } if ( ! empty( $_POST['item-object'] ) && isset( $items[ $_POST['item-object'] ] ) ) { $menus_meta_box_object = $items[ $_POST['item-object'] ]; /** This filter is documented in wp-admin/includes/nav-menu.php */ $item = apply_filters( 'nav_menu_meta_box_object', $menus_meta_box_object ); $box_args = array( 'id' => 'add-' . $item->name, 'title' => $item->labels->name, 'callback' => $callback, 'args' => $item, ); ob_start(); $callback( null, $box_args ); $markup = ob_get_clean(); echo wp_json_encode( array( 'replace-id' => $type . '-' . $item->name, 'markup' => $markup, ) ); } wp_die(); } /** * Handles internal linking via AJAX. * * @since 3.1.0 */ function wp_ajax_wp_link_ajax() { check_ajax_referer( 'internal-linking', '_ajax_linking_nonce' ); $args = array(); if ( isset( $_POST['search'] ) ) { $args['s'] = wp_unslash( $_POST['search'] ); } if ( isset( $_POST['term'] ) ) { $args['s'] = wp_unslash( $_POST['term'] ); } $args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; if ( ! class_exists( '_WP_Editors', false ) ) { require ABSPATH . WPINC . '/class-wp-editor.php'; } $results = _WP_Editors::wp_link_query( $args ); if ( ! isset( $results ) ) { wp_die( 0 ); } echo wp_json_encode( $results ); echo "\n"; wp_die(); } /** * Handles saving menu locations via AJAX. * * @since 3.1.0 */ function wp_ajax_menu_locations_save() { if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' ); if ( ! isset( $_POST['menu-locations'] ) ) { wp_die( 0 ); } set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_POST['menu-locations'] ) ); wp_die( 1 ); } /** * Handles saving the meta box order via AJAX. * * @since 3.1.0 */ function wp_ajax_meta_box_order() { check_ajax_referer( 'meta-box-order' ); $order = isset( $_POST['order'] ) ? (array) $_POST['order'] : false; $page_columns = $_POST['page_columns'] ?? 'auto'; if ( 'auto' !== $page_columns ) { $page_columns = (int) $page_columns; } $page = $_POST['page'] ?? ''; if ( sanitize_key( $page ) !== $page ) { wp_die( 0 ); } $user = wp_get_current_user(); if ( ! $user ) { wp_die( -1 ); } if ( $order ) { update_user_meta( $user->ID, "meta-box-order_$page", $order ); } if ( $page_columns ) { update_user_meta( $user->ID, "screen_layout_$page", $page_columns ); } wp_send_json_success(); } /** * Handles menu quick searching via AJAX. * * @since 3.1.0 */ function wp_ajax_menu_quick_search() { if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; _wp_ajax_menu_quick_search( $_POST ); wp_die(); } /** * Handles retrieving a permalink via AJAX. * * @since 3.1.0 */ function wp_ajax_get_permalink() { check_ajax_referer( 'getpermalink', 'getpermalinknonce' ); $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; wp_die( get_preview_post_link( $post_id ) ); } /** * Handles retrieving a sample permalink via AJAX. * * @since 3.1.0 */ function wp_ajax_sample_permalink() { check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' ); $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; $title = $_POST['new_title'] ?? ''; $slug = $_POST['new_slug'] ?? null; wp_die( get_sample_permalink_html( $post_id, $title, $slug ) ); } /** * Handles Quick Edit saving a post from a list table via AJAX. * * @since 3.1.0 * * @global string $mode List table view mode. */ function wp_ajax_inline_save() { global $mode; check_ajax_referer( 'inlineeditnonce', '_inline_edit' ); if ( ! isset( $_POST['post_ID'] ) || ! (int) $_POST['post_ID'] ) { wp_die(); } $post_id = (int) $_POST['post_ID']; if ( 'page' === $_POST['post_type'] ) { if ( ! current_user_can( 'edit_page', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this page.' ) ); } } else { if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); } } $last = wp_check_post_lock( $post_id ); if ( $last ) { $last_user = get_userdata( $last ); $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); /* translators: %s: User's display name. */ $msg_template = __( 'Saving is disabled: %s is currently editing this post.' ); if ( 'page' === $_POST['post_type'] ) { /* translators: %s: User's display name. */ $msg_template = __( 'Saving is disabled: %s is currently editing this page.' ); } printf( $msg_template, esc_html( $last_user_name ) ); wp_die(); } $data = &$_POST; $post = get_post( $post_id, ARRAY_A ); // Since it's coming from the database. $post = wp_slash( $post ); $data['content'] = $post['post_content']; $data['excerpt'] = $post['post_excerpt']; // Rename. $data['user_ID'] = get_current_user_id(); if ( isset( $data['post_parent'] ) ) { $data['parent_id'] = $data['post_parent']; } // Status. if ( isset( $data['keep_private'] ) && 'private' === $data['keep_private'] ) { $data['visibility'] = 'private'; $data['post_status'] = 'private'; } elseif ( isset( $data['_status'] ) ) { $data['post_status'] = $data['_status']; } if ( empty( $data['comment_status'] ) ) { $data['comment_status'] = 'closed'; } if ( empty( $data['ping_status'] ) ) { $data['ping_status'] = 'closed'; } // Exclude terms from taxonomies that are not supposed to appear in Quick Edit. if ( ! empty( $data['tax_input'] ) ) { foreach ( $data['tax_input'] as $taxonomy => $terms ) { $tax_object = get_taxonomy( $taxonomy ); /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ if ( ! apply_filters( 'quick_edit_show_taxonomy', $tax_object->show_in_quick_edit, $taxonomy, $post['post_type'] ) ) { unset( $data['tax_input'][ $taxonomy ] ); } } } // Hack: wp_unique_post_slug() doesn't work for drafts, so we will fake that our post is published. if ( ! empty( $data['post_name'] ) && in_array( $post['post_status'], array( 'draft', 'pending' ), true ) ) { $post['post_status'] = 'publish'; $data['post_name'] = wp_unique_post_slug( $data['post_name'], $post['ID'], $post['post_status'], $post['post_type'], $post['post_parent'] ); } // Update the post. edit_post(); $wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) ); $mode = 'excerpt' === $_POST['post_view'] ? 'excerpt' : 'list'; $level = 0; if ( is_post_type_hierarchical( $wp_list_table->screen->post_type ) ) { $request_post = array( get_post( $_POST['post_ID'] ) ); $parent = $request_post[0]->post_parent; while ( $parent > 0 ) { $parent_post = get_post( $parent ); $parent = $parent_post->post_parent; ++$level; } } $wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level ); wp_die(); } /** * Handles Quick Edit saving for a term via AJAX. * * @since 3.1.0 */ function wp_ajax_inline_save_tax() { check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); $taxonomy = sanitize_key( $_POST['taxonomy'] ); $taxonomy_object = get_taxonomy( $taxonomy ); if ( ! $taxonomy_object ) { wp_die( 0 ); } if ( ! isset( $_POST['tax_ID'] ) || ! (int) $_POST['tax_ID'] ) { wp_die( -1 ); } $id = (int) $_POST['tax_ID']; if ( ! current_user_can( 'edit_term', $id ) ) { wp_die( -1 ); } $wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => 'edit-' . $taxonomy ) ); $tag = get_term( $id, $taxonomy ); $_POST['description'] = $tag->description; $updated = wp_update_term( $id, $taxonomy, $_POST ); if ( $updated && ! is_wp_error( $updated ) ) { $tag = get_term( $updated['term_id'], $taxonomy ); if ( ! $tag || is_wp_error( $tag ) ) { if ( is_wp_error( $tag ) && $tag->get_error_message() ) { wp_die( $tag->get_error_message() ); } wp_die( __( 'Item not updated.' ) ); } } else { if ( is_wp_error( $updated ) && $updated->get_error_message() ) { wp_die( $updated->get_error_message() ); } wp_die( __( 'Item not updated.' ) ); } $level = 0; $parent = $tag->parent; while ( $parent > 0 ) { $parent_tag = get_term( $parent, $taxonomy ); $parent = $parent_tag->parent; ++$level; } $wp_list_table->single_row( $tag, $level ); wp_die(); } /** * Handles querying posts for the Find Posts modal via AJAX. * * @see window.findPosts * * @since 3.1.0 */ function wp_ajax_find_posts() { check_ajax_referer( 'find-posts' ); $post_types = get_post_types( array( 'public' => true ), 'objects' ); unset( $post_types['attachment'] ); $args = array( 'post_type' => array_keys( $post_types ), 'post_status' => 'any', 'posts_per_page' => 50, ); $search = wp_unslash( $_POST['ps'] ); if ( '' !== $search ) { $args['s'] = $search; } $posts = get_posts( $args ); if ( ! $posts ) { wp_send_json_error( __( 'No items found.' ) ); } $html = ''; $alternate = ''; foreach ( $posts as $post ) { $title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' ); $alternate = ( 'alternate' === $alternate ) ? '' : 'alternate'; switch ( $post->post_status ) { case 'publish': case 'private': $stat = __( 'Published' ); break; case 'future': $stat = __( 'Scheduled' ); break; case 'pending': $stat = __( 'Pending Review' ); break; case 'draft': $stat = __( 'Draft' ); break; } if ( '0000-00-00 00:00:00' === $post->post_date ) { $time = ''; } else { /* translators: Date format in table columns, see https://www.php.net/manual/datetime.format.php */ $time = mysql2date( __( 'Y/m/d' ), $post->post_date ); } $html .= ''; $html .= '' . "\n\n"; } $html .= '

        ' . __( 'Title' ) . '' . __( 'Type' ) . '' . __( 'Date' ) . '' . __( 'Status' ) . '
        ' . esc_html( $post_types[ $post->post_type ]->labels->singular_name ) . '' . esc_html( $time ) . '' . esc_html( $stat ) . '
        '; wp_send_json_success( $html ); } /** * Handles saving the widgets order via AJAX. * * @since 3.1.0 */ function wp_ajax_widgets_order() { check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } unset( $_POST['savewidgets'], $_POST['action'] ); // Save widgets order for all sidebars. if ( is_array( $_POST['sidebars'] ) ) { $sidebars = array(); foreach ( wp_unslash( $_POST['sidebars'] ) as $key => $val ) { $sidebar = array(); if ( ! empty( $val ) ) { $val = explode( ',', $val ); foreach ( $val as $k => $v ) { if ( ! str_contains( $v, 'widget-' ) ) { continue; } $sidebar[ $k ] = substr( $v, strpos( $v, '_' ) + 1 ); } } $sidebars[ $key ] = $sidebar; } wp_set_sidebars_widgets( $sidebars ); wp_die( 1 ); } wp_die( -1 ); } /** * Handles saving a widget via AJAX. * * @since 3.1.0 * * @global array $wp_registered_widgets Registered widgets. * @global array $wp_registered_widget_controls Registered widget controls. * @global array $wp_registered_widget_updates Registered widget updates. */ function wp_ajax_save_widget() { global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates; check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' ); if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $_POST['id_base'] ) ) { wp_die( -1 ); } unset( $_POST['savewidgets'], $_POST['action'] ); /** * Fires early when editing the widgets displayed in sidebars. * * @since 2.8.0 */ do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /** * Fires early when editing the widgets displayed in sidebars. * * @since 2.8.0 */ do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /** This action is documented in wp-admin/widgets-form.php */ do_action( 'sidebar_admin_setup' ); $id_base = wp_unslash( $_POST['id_base'] ); $widget_id = wp_unslash( $_POST['widget-id'] ); $sidebar_id = $_POST['sidebar']; $multi_number = ! empty( $_POST['multi_number'] ) ? (int) $_POST['multi_number'] : 0; $settings = isset( $_POST[ 'widget-' . $id_base ] ) && is_array( $_POST[ 'widget-' . $id_base ] ) ? $_POST[ 'widget-' . $id_base ] : false; $error = '

        ' . __( 'An error has occurred. Please reload the page and try again.' ) . '

        '; $sidebars = wp_get_sidebars_widgets(); $sidebar = $sidebars[ $sidebar_id ] ?? array(); // Delete. if ( isset( $_POST['delete_widget'] ) && $_POST['delete_widget'] ) { if ( ! isset( $wp_registered_widgets[ $widget_id ] ) ) { wp_die( $error ); } $sidebar = array_diff( $sidebar, array( $widget_id ) ); $_POST = array( 'sidebar' => $sidebar_id, 'widget-' . $id_base => array(), 'the-widget-id' => $widget_id, 'delete_widget' => '1', ); /** This action is documented in wp-admin/widgets-form.php */ do_action( 'delete_widget', $widget_id, $sidebar_id, $id_base ); } elseif ( $settings && preg_match( '/__i__|%i%/', key( $settings ) ) ) { if ( ! $multi_number ) { wp_die( $error ); } $_POST[ 'widget-' . $id_base ] = array( $multi_number => reset( $settings ) ); $widget_id = $id_base . '-' . $multi_number; $sidebar[] = $widget_id; } $_POST['widget-id'] = $sidebar; foreach ( (array) $wp_registered_widget_updates as $name => $control ) { if ( $name === $id_base ) { if ( ! is_callable( $control['callback'] ) ) { continue; } ob_start(); call_user_func_array( $control['callback'], $control['params'] ); ob_end_clean(); break; } } if ( isset( $_POST['delete_widget'] ) && $_POST['delete_widget'] ) { $sidebars[ $sidebar_id ] = $sidebar; wp_set_sidebars_widgets( $sidebars ); echo "deleted:$widget_id"; wp_die(); } if ( ! empty( $_POST['add_new'] ) ) { wp_die(); } $form = $wp_registered_widget_controls[ $widget_id ]; if ( $form ) { call_user_func_array( $form['callback'], $form['params'] ); } wp_die(); } /** * Handles updating a widget via AJAX. * * @since 3.9.0 * * @global WP_Customize_Manager $wp_customize Customizer manager object. */ function wp_ajax_update_widget() { global $wp_customize; $wp_customize->widgets->wp_ajax_update_widget(); } /** * Handles removing inactive widgets via AJAX. * * @since 4.4.0 */ function wp_ajax_delete_inactive_widgets() { check_ajax_referer( 'remove-inactive-widgets', 'removeinactivewidgets' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die( -1 ); } unset( $_POST['removeinactivewidgets'], $_POST['action'] ); /** This action is documented in wp-admin/includes/ajax-actions.php */ do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /** This action is documented in wp-admin/includes/ajax-actions.php */ do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores /** This action is documented in wp-admin/widgets-form.php */ do_action( 'sidebar_admin_setup' ); $sidebars_widgets = wp_get_sidebars_widgets(); foreach ( $sidebars_widgets['wp_inactive_widgets'] as $key => $widget_id ) { $pieces = explode( '-', $widget_id ); $multi_number = array_pop( $pieces ); $id_base = implode( '-', $pieces ); $widget = get_option( 'widget_' . $id_base ); unset( $widget[ $multi_number ] ); update_option( 'widget_' . $id_base, $widget ); unset( $sidebars_widgets['wp_inactive_widgets'][ $key ] ); } wp_set_sidebars_widgets( $sidebars_widgets ); wp_die(); } /** * Handles creating missing image sub-sizes for just uploaded images via AJAX. * * @since 5.3.0 */ function wp_ajax_media_create_image_subsizes() { check_ajax_referer( 'media-form' ); if ( ! current_user_can( 'upload_files' ) ) { wp_send_json_error( array( 'message' => __( 'Sorry, you are not allowed to upload files.' ) ) ); } if ( empty( $_POST['attachment_id'] ) ) { wp_send_json_error( array( 'message' => __( 'Upload failed. Please reload and try again.' ) ) ); } $attachment_id = (int) $_POST['attachment_id']; if ( ! empty( $_POST['_wp_upload_failed_cleanup'] ) ) { // Upload failed. Cleanup. if ( wp_attachment_is_image( $attachment_id ) && current_user_can( 'delete_post', $attachment_id ) ) { $attachment = get_post( $attachment_id ); // Created at most 10 min ago. if ( $attachment && ( time() - strtotime( $attachment->post_date_gmt ) < 600 ) ) { wp_delete_attachment( $attachment_id, true ); wp_send_json_success(); } } } /* * Set a custom header with the attachment_id. * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error. */ if ( ! headers_sent() ) { header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id ); } /* * This can still be pretty slow and cause timeout or out of memory errors. * The js that handles the response would need to also handle HTTP 500 errors. */ wp_update_image_subsizes( $attachment_id ); if ( ! empty( $_POST['_legacy_support'] ) ) { // The old (inline) uploader. Only needs the attachment_id. $response = array( 'id' => $attachment_id ); } else { // Media modal and Media Library grid view. $response = wp_prepare_attachment_for_js( $attachment_id ); if ( ! $response ) { wp_send_json_error( array( 'message' => __( 'Upload failed.' ) ) ); } } // At this point the image has been uploaded successfully. wp_send_json_success( $response ); } /** * Handles uploading attachments via AJAX. * * @since 3.3.0 */ function wp_ajax_upload_attachment() { check_ajax_referer( 'media-form' ); /* * This function does not use wp_send_json_success() / wp_send_json_error() * as the html4 Plupload handler requires a text/html Content-Type for older IE. * See https://core.trac.wordpress.org/ticket/31037 */ if ( ! current_user_can( 'upload_files' ) ) { echo wp_json_encode( array( 'success' => false, 'data' => array( 'message' => __( 'Sorry, you are not allowed to upload files.' ), 'filename' => esc_html( $_FILES['async-upload']['name'] ), ), ) ); wp_die(); } if ( isset( $_REQUEST['post_id'] ) ) { $post_id = $_REQUEST['post_id']; if ( ! current_user_can( 'edit_post', $post_id ) ) { echo wp_json_encode( array( 'success' => false, 'data' => array( 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 'filename' => esc_html( $_FILES['async-upload']['name'] ), ), ) ); wp_die(); } } else { $post_id = null; } $post_data = ! empty( $_REQUEST['post_data'] ) ? _wp_get_allowed_postdata( _wp_translate_postdata( false, (array) $_REQUEST['post_data'] ) ) : array(); if ( is_wp_error( $post_data ) ) { wp_die( $post_data->get_error_message() ); } // If the context is custom header or background, make sure the uploaded file is an image. if ( isset( $post_data['context'] ) && in_array( $post_data['context'], array( 'custom-header', 'custom-background' ), true ) ) { $wp_filetype = wp_check_filetype_and_ext( $_FILES['async-upload']['tmp_name'], $_FILES['async-upload']['name'] ); if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) { echo wp_json_encode( array( 'success' => false, 'data' => array( 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 'filename' => esc_html( $_FILES['async-upload']['name'] ), ), ) ); wp_die(); } } $attachment_id = media_handle_upload( 'async-upload', $post_id, $post_data ); if ( is_wp_error( $attachment_id ) ) { echo wp_json_encode( array( 'success' => false, 'data' => array( 'message' => $attachment_id->get_error_message(), 'filename' => esc_html( $_FILES['async-upload']['name'] ), ), ) ); wp_die(); } if ( isset( $post_data['context'] ) && isset( $post_data['theme'] ) ) { if ( 'custom-background' === $post_data['context'] ) { update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', $post_data['theme'] ); } if ( 'custom-header' === $post_data['context'] ) { update_post_meta( $attachment_id, '_wp_attachment_is_custom_header', $post_data['theme'] ); } } $attachment = wp_prepare_attachment_for_js( $attachment_id ); if ( ! $attachment ) { wp_die(); } echo wp_json_encode( array( 'success' => true, 'data' => $attachment, ) ); wp_die(); } /** * Handles image editing via AJAX. * * @since 3.1.0 */ function wp_ajax_image_editor() { $attachment_id = (int) $_POST['postid']; if ( empty( $attachment_id ) || ! current_user_can( 'edit_post', $attachment_id ) ) { wp_die( -1 ); } check_ajax_referer( "image_editor-$attachment_id" ); require_once ABSPATH . 'wp-admin/includes/image-edit.php'; $message = false; switch ( $_POST['do'] ) { case 'save': $message = wp_save_image( $attachment_id ); if ( ! empty( $message->error ) ) { wp_send_json_error( $message ); } wp_send_json_success( $message ); break; case 'scale': $message = wp_save_image( $attachment_id ); break; case 'restore': $message = wp_restore_image( $attachment_id ); break; } ob_start(); wp_image_editor( $attachment_id, $message ); $html = ob_get_clean(); if ( ! empty( $message->error ) ) { wp_send_json_error( array( 'message' => $message, 'html' => $html, ) ); } wp_send_json_success( array( 'message' => $message, 'html' => $html, ) ); } /** * Handles setting the featured image via AJAX. * * @since 3.1.0 */ function wp_ajax_set_post_thumbnail() { $json = ! empty( $_REQUEST['json'] ); // New-style request. $post_id = (int) $_POST['post_id']; if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_die( -1 ); } $thumbnail_id = (int) $_POST['thumbnail_id']; if ( $json ) { check_ajax_referer( "update-post_$post_id" ); } else { check_ajax_referer( "set_post_thumbnail-$post_id" ); } if ( -1 === $thumbnail_id ) { if ( delete_post_thumbnail( $post_id ) ) { $return = _wp_post_thumbnail_html( null, $post_id ); $json ? wp_send_json_success( $return ) : wp_die( $return ); } else { wp_die( 0 ); } } if ( set_post_thumbnail( $post_id, $thumbnail_id ) ) { $return = _wp_post_thumbnail_html( $thumbnail_id, $post_id ); $json ? wp_send_json_success( $return ) : wp_die( $return ); } wp_die( 0 ); } /** * Handles retrieving HTML for the featured image via AJAX. * * @since 4.6.0 */ function wp_ajax_get_post_thumbnail_html() { $post_id = (int) $_POST['post_id']; check_ajax_referer( "update-post_$post_id" ); if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_die( -1 ); } $thumbnail_id = (int) $_POST['thumbnail_id']; // For backward compatibility, -1 refers to no featured image. if ( -1 === $thumbnail_id ) { $thumbnail_id = null; } $return = _wp_post_thumbnail_html( $thumbnail_id, $post_id ); wp_send_json_success( $return ); } /** * Handles setting the featured image for an attachment via AJAX. * * @since 4.0.0 * * @see set_post_thumbnail() */ function wp_ajax_set_attachment_thumbnail() { if ( empty( $_POST['urls'] ) || ! is_array( $_POST['urls'] ) ) { wp_send_json_error(); } $thumbnail_id = (int) $_POST['thumbnail_id']; if ( empty( $thumbnail_id ) ) { wp_send_json_error(); } if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) { wp_send_json_error(); } $post_ids = array(); // For each URL, try to find its corresponding post ID. foreach ( $_POST['urls'] as $url ) { $post_id = attachment_url_to_postid( $url ); if ( ! empty( $post_id ) ) { $post_ids[] = $post_id; } } if ( empty( $post_ids ) ) { wp_send_json_error(); } $success = 0; // For each found attachment, set its thumbnail. foreach ( $post_ids as $post_id ) { if ( ! current_user_can( 'edit_post', $post_id ) ) { continue; } if ( set_post_thumbnail( $post_id, $thumbnail_id ) ) { ++$success; } } if ( 0 === $success ) { wp_send_json_error(); } else { wp_send_json_success(); } wp_send_json_error(); } /** * Handles formatting a date via AJAX. * * @since 3.1.0 */ function wp_ajax_date_format() { wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) ); } /** * Handles formatting a time via AJAX. * * @since 3.1.0 */ function wp_ajax_time_format() { wp_die( date_i18n( sanitize_option( 'time_format', wp_unslash( $_POST['date'] ) ) ) ); } /** * Handles saving posts from the fullscreen editor via AJAX. * * @since 3.1.0 * @deprecated 4.3.0 */ function wp_ajax_wp_fullscreen_save_post() { $post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0; $post = null; if ( $post_id ) { $post = get_post( $post_id ); } check_ajax_referer( 'update-post_' . $post_id, '_wpnonce' ); $post_id = edit_post(); if ( is_wp_error( $post_id ) ) { wp_send_json_error(); } if ( $post ) { $last_date = mysql2date( __( 'F j, Y' ), $post->post_modified ); $last_time = mysql2date( __( 'g:i a' ), $post->post_modified ); } else { $last_date = date_i18n( __( 'F j, Y' ) ); $last_time = date_i18n( __( 'g:i a' ) ); } $last_id = get_post_meta( $post_id, '_edit_last', true ); if ( $last_id ) { $last_user = get_userdata( $last_id ); /* translators: 1: User's display name, 2: Date of last edit, 3: Time of last edit. */ $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time ); } else { /* translators: 1: Date of last edit, 2: Time of last edit. */ $last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time ); } wp_send_json_success( array( 'last_edited' => $last_edited ) ); } /** * Handles removing a post lock via AJAX. * * @since 3.1.0 */ function wp_ajax_wp_remove_post_lock() { if ( empty( $_POST['post_ID'] ) || empty( $_POST['active_post_lock'] ) ) { wp_die( 0 ); } $post_id = (int) $_POST['post_ID']; $post = get_post( $post_id ); if ( ! $post ) { wp_die( 0 ); } check_ajax_referer( 'update-post_' . $post_id ); if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_die( -1 ); } $active_lock = array_map( 'absint', explode( ':', $_POST['active_post_lock'] ) ); if ( get_current_user_id() !== $active_lock[1] ) { wp_die( 0 ); } /** * Filters the post lock window duration. * * @since 3.3.0 * * @param int $interval The interval in seconds the post lock duration * should last, plus 5 seconds. Default 150. */ $new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1]; update_post_meta( $post_id, '_edit_lock', $new_lock, implode( ':', $active_lock ) ); wp_die( 1 ); } /** * Handles dismissing a WordPress pointer via AJAX. * * @since 3.1.0 */ function wp_ajax_dismiss_wp_pointer() { $pointer = $_POST['pointer']; if ( sanitize_key( $pointer ) !== $pointer ) { wp_die( 0 ); } // check_ajax_referer( 'dismiss-pointer_' . $pointer ); $dismissed = array_filter( explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ) ); if ( in_array( $pointer, $dismissed, true ) ) { wp_die( 0 ); } $dismissed[] = $pointer; $dismissed = implode( ',', $dismissed ); update_user_meta( get_current_user_id(), 'dismissed_wp_pointers', $dismissed ); wp_die( 1 ); } /** * Handles getting an attachment via AJAX. * * @since 3.5.0 */ function wp_ajax_get_attachment() { if ( ! isset( $_REQUEST['id'] ) ) { wp_send_json_error(); } $id = absint( $_REQUEST['id'] ); if ( ! $id ) { wp_send_json_error(); } $post = get_post( $id ); if ( ! $post ) { wp_send_json_error(); } if ( 'attachment' !== $post->post_type ) { wp_send_json_error(); } if ( ! current_user_can( 'upload_files' ) ) { wp_send_json_error(); } $attachment = wp_prepare_attachment_for_js( $id ); if ( ! $attachment ) { wp_send_json_error(); } wp_send_json_success( $attachment ); } /** * Handles querying attachments via AJAX. * * @since 3.5.0 */ function wp_ajax_query_attachments() { if ( ! current_user_can( 'upload_files' ) ) { wp_send_json_error(); } $query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array(); $keys = array( 's', 'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type', 'post_parent', 'author', 'post__in', 'post__not_in', 'year', 'monthnum', ); foreach ( get_taxonomies_for_attachments( 'objects' ) as $taxonomy ) { if ( $taxonomy->query_var && isset( $query[ $taxonomy->query_var ] ) ) { $keys[] = $taxonomy->query_var; } } $query = array_intersect_key( $query, array_flip( $keys ) ); $query['post_type'] = 'attachment'; if ( MEDIA_TRASH && ! empty( $_REQUEST['query']['post_status'] ) && 'trash' === $_REQUEST['query']['post_status'] ) { $query['post_status'] = 'trash'; } else { $query['post_status'] = 'inherit'; } if ( current_user_can( get_post_type_object( 'attachment' )->cap->read_private_posts ) ) { $query['post_status'] .= ',private'; } // Filter query clauses to include filenames. if ( isset( $query['s'] ) ) { add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' ); } /** * Filters the arguments passed to WP_Query during an Ajax * call for querying attachments. * * @since 3.7.0 * * @see WP_Query::parse_query() * * @param array $query An array of query variables. */ $query = apply_filters( 'ajax_query_attachments_args', $query ); $attachments_query = new WP_Query( $query ); update_post_parent_caches( $attachments_query->posts ); $posts = array_map( 'wp_prepare_attachment_for_js', $attachments_query->posts ); $posts = array_filter( $posts ); $total_posts = $attachments_query->found_posts; if ( $total_posts < 1 ) { // Out-of-bounds, run the query again without LIMIT for total count. unset( $query['paged'] ); $count_query = new WP_Query(); $count_query->query( $query ); $total_posts = $count_query->found_posts; } $posts_per_page = (int) $attachments_query->get( 'posts_per_page' ); $max_pages = $posts_per_page ? (int) ceil( $total_posts / $posts_per_page ) : 0; header( 'X-WP-Total: ' . (int) $total_posts ); header( 'X-WP-TotalPages: ' . $max_pages ); wp_send_json_success( $posts ); } /** * Handles updating attachment attributes via AJAX. * * @since 3.5.0 */ function wp_ajax_save_attachment() { if ( ! isset( $_REQUEST['id'] ) || ! isset( $_REQUEST['changes'] ) ) { wp_send_json_error(); } $id = absint( $_REQUEST['id'] ); if ( ! $id ) { wp_send_json_error(); } check_ajax_referer( 'update-post_' . $id, 'nonce' ); if ( ! current_user_can( 'edit_post', $id ) ) { wp_send_json_error(); } $changes = $_REQUEST['changes']; $post = get_post( $id, ARRAY_A ); if ( 'attachment' !== $post['post_type'] ) { wp_send_json_error(); } if ( isset( $changes['parent'] ) ) { $post['post_parent'] = $changes['parent']; } if ( isset( $changes['title'] ) ) { $post['post_title'] = $changes['title']; } if ( isset( $changes['caption'] ) ) { $post['post_excerpt'] = $changes['caption']; } if ( isset( $changes['description'] ) ) { $post['post_content'] = $changes['description']; } if ( MEDIA_TRASH && isset( $changes['status'] ) ) { $post['post_status'] = $changes['status']; } if ( isset( $changes['alt'] ) ) { $alt = wp_unslash( $changes['alt'] ); if ( get_post_meta( $id, '_wp_attachment_image_alt', true ) !== $alt ) { $alt = wp_strip_all_tags( $alt, true ); update_post_meta( $id, '_wp_attachment_image_alt', wp_slash( $alt ) ); } } if ( wp_attachment_is( 'audio', $post['ID'] ) ) { $changed = false; $id3_data = wp_get_attachment_metadata( $post['ID'] ); if ( ! is_array( $id3_data ) ) { $changed = true; $id3_data = array(); } foreach ( wp_get_attachment_id3_keys( (object) $post, 'edit' ) as $key => $label ) { if ( isset( $changes[ $key ] ) ) { $changed = true; $id3_data[ $key ] = sanitize_text_field( wp_unslash( $changes[ $key ] ) ); } } if ( $changed ) { wp_update_attachment_metadata( $id, $id3_data ); } } if ( MEDIA_TRASH && isset( $changes['status'] ) && 'trash' === $changes['status'] ) { wp_delete_post( $id ); } else { wp_update_post( $post ); } wp_send_json_success(); } /** * Handles saving backward compatible attachment attributes via AJAX. * * @since 3.5.0 */ function wp_ajax_save_attachment_compat() { if ( ! isset( $_REQUEST['id'] ) ) { wp_send_json_error(); } $id = absint( $_REQUEST['id'] ); if ( ! $id ) { wp_send_json_error(); } if ( empty( $_REQUEST['attachments'] ) || empty( $_REQUEST['attachments'][ $id ] ) ) { wp_send_json_error(); } $attachment_data = $_REQUEST['attachments'][ $id ]; check_ajax_referer( 'update-post_' . $id, 'nonce' ); if ( ! current_user_can( 'edit_post', $id ) ) { wp_send_json_error(); } $post = get_post( $id, ARRAY_A ); if ( 'attachment' !== $post['post_type'] ) { wp_send_json_error(); } /** This filter is documented in wp-admin/includes/media.php */ $post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data ); if ( isset( $post['errors'] ) ) { $errors = $post['errors']; // @todo return me and display me! unset( $post['errors'] ); } wp_update_post( $post ); foreach ( get_attachment_taxonomies( $post ) as $taxonomy ) { if ( isset( $attachment_data[ $taxonomy ] ) ) { wp_set_object_terms( $id, array_map( 'trim', preg_split( '/,+/', $attachment_data[ $taxonomy ] ) ), $taxonomy, false ); } } $attachment = wp_prepare_attachment_for_js( $id ); if ( ! $attachment ) { wp_send_json_error(); } wp_send_json_success( $attachment ); } /** * Handles saving the attachment order via AJAX. * * @since 3.5.0 */ function wp_ajax_save_attachment_order() { if ( ! isset( $_REQUEST['post_id'] ) ) { wp_send_json_error(); } $post_id = absint( $_REQUEST['post_id'] ); if ( ! $post_id ) { wp_send_json_error(); } if ( empty( $_REQUEST['attachments'] ) ) { wp_send_json_error(); } check_ajax_referer( 'update-post_' . $post_id, 'nonce' ); $attachments = $_REQUEST['attachments']; if ( ! current_user_can( 'edit_post', $post_id ) ) { wp_send_json_error(); } foreach ( $attachments as $attachment_id => $menu_order ) { if ( ! current_user_can( 'edit_post', $attachment_id ) ) { continue; } $attachment = get_post( $attachment_id ); if ( ! $attachment ) { continue; } if ( 'attachment' !== $attachment->post_type ) { continue; } wp_update_post( array( 'ID' => $attachment_id, 'menu_order' => $menu_order, ) ); } wp_send_json_success(); } /** * Handles sending an attachment to the editor via AJAX. * * Generates the HTML to send an attachment to the editor. * Backward compatible with the {@see 'media_send_to_editor'} filter * and the chain of filters that follow. * * @since 3.5.0 */ function wp_ajax_send_attachment_to_editor() { check_ajax_referer( 'media-send-to-editor', 'nonce' ); $attachment = wp_unslash( $_POST['attachment'] ); $id = (int) $attachment['id']; $post = get_post( $id ); if ( ! $post ) { wp_send_json_error(); } if ( 'attachment' !== $post->post_type ) { wp_send_json_error(); } if ( current_user_can( 'edit_post', $id ) ) { // If this attachment is unattached, attach it. Primarily a back compat thing. $insert_into_post_id = (int) $_POST['post_id']; if ( 0 === $post->post_parent && $insert_into_post_id ) { wp_update_post( array( 'ID' => $id, 'post_parent' => $insert_into_post_id, ) ); } } $url = empty( $attachment['url'] ) ? '' : $attachment['url']; $rel = ( str_contains( $url, 'attachment_id' ) || get_attachment_link( $id ) === $url ); remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' ); if ( str_starts_with( $post->post_mime_type, 'image' ) ) { $align = $attachment['align'] ?? 'none'; $size = $attachment['image-size'] ?? 'medium'; $alt = $attachment['image_alt'] ?? ''; // No whitespace-only captions. $caption = $attachment['post_excerpt'] ?? ''; if ( '' === trim( $caption ) ) { $caption = ''; } $title = ''; // We no longer insert title tags into tags, as they are redundant. $html = get_image_send_to_editor( $id, $caption, $title, $align, $url, $rel, $size, $alt ); } elseif ( wp_attachment_is( 'video', $post ) || wp_attachment_is( 'audio', $post ) ) { $html = stripslashes_deep( $_POST['html'] ); } else { $html = $attachment['post_title'] ?? ''; $rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized. if ( ! empty( $url ) ) { $html = '' . $html . ''; } } /** This filter is documented in wp-admin/includes/media.php */ $html = apply_filters( 'media_send_to_editor', $html, $id, $attachment ); wp_send_json_success( $html ); } /** * Handles sending a link to the editor via AJAX. * * Generates the HTML to send a non-image embed link to the editor. * * Backward compatible with the following filters: * - file_send_to_editor_url * - audio_send_to_editor_url * - video_send_to_editor_url * * @since 3.5.0 * * @global WP_Post $post Global post object. * @global WP_Embed $wp_embed WordPress Embed object. */ function wp_ajax_send_link_to_editor() { global $post, $wp_embed; check_ajax_referer( 'media-send-to-editor', 'nonce' ); $src = wp_unslash( $_POST['src'] ); if ( ! $src ) { wp_send_json_error(); } if ( ! strpos( $src, '://' ) ) { $src = 'http://' . $src; } $src = sanitize_url( $src ); if ( ! $src ) { wp_send_json_error(); } $link_text = trim( wp_unslash( $_POST['link_text'] ) ); if ( ! $link_text ) { $link_text = wp_basename( $src ); } $post = get_post( $_POST['post_id'] ?? 0 ); // Ping WordPress for an embed. $check_embed = $wp_embed->run_shortcode( '[embed]' . $src . '[/embed]' ); // Fallback that WordPress creates when no oEmbed was found. $fallback = $wp_embed->maybe_make_link( $src ); if ( $check_embed !== $fallback ) { // TinyMCE view for [embed] will parse this. $html = '[embed]' . $src . '[/embed]'; } elseif ( $link_text ) { $html = '' . $link_text . ''; } else { $html = ''; } // Figure out what filter to run: $type = 'file'; $extension = preg_replace( '/^.+?\.([^.]+)$/', '$1', $src ); if ( $extension ) { $extension_type = wp_ext2type( $extension ); if ( 'audio' === $extension_type || 'video' === $extension_type ) { $type = $extension_type; } } /** This filter is documented in wp-admin/includes/media.php */ $html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text ); wp_send_json_success( $html ); } /** * Handles the Heartbeat API via AJAX. * * Runs when the user is logged in. * * @since 3.6.0 */ function wp_ajax_heartbeat() { if ( empty( $_POST['_nonce'] ) ) { wp_send_json_error(); } $response = array(); $data = array(); $nonce_state = wp_verify_nonce( $_POST['_nonce'], 'heartbeat-nonce' ); // 'screen_id' is the same as $current_screen->id and the JS global 'pagenow'. if ( ! empty( $_POST['screen_id'] ) ) { $screen_id = sanitize_key( $_POST['screen_id'] ); } else { $screen_id = 'front'; } if ( ! empty( $_POST['data'] ) ) { $data = wp_unslash( (array) $_POST['data'] ); } if ( 1 !== $nonce_state ) { /** * Filters the nonces to send to the New/Edit Post screen. * * @since 4.3.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. */ $response = apply_filters( 'wp_refresh_nonces', $response, $data, $screen_id ); if ( false === $nonce_state ) { // User is logged in but nonces have expired. $response['nonces_expired'] = true; wp_send_json( $response ); } } if ( ! empty( $data ) ) { /** * Filters the Heartbeat response received. * * @since 3.6.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. */ $response = apply_filters( 'heartbeat_received', $response, $data, $screen_id ); } /** * Filters the Heartbeat response sent. * * @since 3.6.0 * * @param array $response The Heartbeat response. * @param string $screen_id The screen ID. */ $response = apply_filters( 'heartbeat_send', $response, $screen_id ); /** * Fires when Heartbeat ticks in logged-in environments. * * Allows the transport to be easily replaced with long-polling. * * @since 3.6.0 * * @param array $response The Heartbeat response. * @param string $screen_id The screen ID. */ do_action( 'heartbeat_tick', $response, $screen_id ); // Send the current time according to the server. $response['server_time'] = time(); wp_send_json( $response ); } /** * Handles getting revision diffs via AJAX. * * @since 3.6.0 */ function wp_ajax_get_revision_diffs() { require ABSPATH . 'wp-admin/includes/revision.php'; $post = get_post( (int) $_REQUEST['post_id'] ); if ( ! $post ) { wp_send_json_error(); } if ( ! current_user_can( 'edit_post', $post->ID ) ) { wp_send_json_error(); } // Really just pre-loading the cache here. $revisions = wp_get_post_revisions( $post->ID, array( 'check_enabled' => false ) ); if ( ! $revisions ) { wp_send_json_error(); } $return = array(); // Increase the script timeout limit to allow ample time for diff UI setup. if ( function_exists( 'set_time_limit' ) ) { set_time_limit( 5 * MINUTE_IN_SECONDS ); } foreach ( $_REQUEST['compare'] as $compare_key ) { list( $compare_from, $compare_to ) = explode( ':', $compare_key ); // from:to $return[] = array( 'id' => $compare_key, 'fields' => wp_get_revision_ui_diff( $post, $compare_from, $compare_to ), ); } wp_send_json_success( $return ); } /** * Handles auto-saving the selected color scheme for * a user's own profile via AJAX. * * @since 3.8.0 * * @global array $_wp_admin_css_colors Registered admin CSS color schemes. */ function wp_ajax_save_user_color_scheme() { global $_wp_admin_css_colors; check_ajax_referer( 'save-color-scheme', 'nonce' ); $color_scheme = sanitize_key( $_POST['color_scheme'] ); if ( ! isset( $_wp_admin_css_colors[ $color_scheme ] ) ) { wp_send_json_error(); } $previous_color_scheme = get_user_meta( get_current_user_id(), 'admin_color', true ); update_user_meta( get_current_user_id(), 'admin_color', $color_scheme ); wp_send_json_success( array( 'previousScheme' => 'admin-color-' . $previous_color_scheme, 'currentScheme' => 'admin-color-' . $color_scheme, ) ); } /** * Handles getting themes from themes_api() via AJAX. * * @since 3.9.0 * * @global array $themes_allowedtags Allowed HTML tags for theme descriptions. * @global array $theme_field_defaults Default theme fields. */ function wp_ajax_query_themes() { global $themes_allowedtags, $theme_field_defaults; if ( ! current_user_can( 'install_themes' ) ) { wp_send_json_error(); } $args = wp_parse_args( wp_unslash( $_REQUEST['request'] ), array( 'per_page' => 20, 'fields' => array_merge( (array) $theme_field_defaults, array( 'reviews_url' => true, // Explicitly request the reviews URL to be linked from the Add Themes screen. ) ), ) ); if ( isset( $args['browse'] ) && 'favorites' === $args['browse'] && ! isset( $args['user'] ) ) { $user = get_user_option( 'wporg_favorites' ); if ( $user ) { $args['user'] = $user; } } $old_filter = $args['browse'] ?? 'search'; /** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */ $args = apply_filters( 'install_themes_table_api_args_' . $old_filter, $args ); $api = themes_api( 'query_themes', $args ); if ( is_wp_error( $api ) ) { wp_send_json_error(); } $update_php = network_admin_url( 'update.php?action=install-theme' ); $installed_themes = search_theme_directories(); if ( false === $installed_themes ) { $installed_themes = array(); } foreach ( $installed_themes as $theme_slug => $theme_data ) { // Ignore child themes. if ( str_contains( $theme_slug, '/' ) ) { unset( $installed_themes[ $theme_slug ] ); } } foreach ( $api->themes as &$theme ) { $theme->install_url = add_query_arg( array( 'theme' => $theme->slug, '_wpnonce' => wp_create_nonce( 'install-theme_' . $theme->slug ), ), $update_php ); if ( current_user_can( 'switch_themes' ) ) { if ( is_multisite() ) { $theme->activate_url = add_query_arg( array( 'action' => 'enable', '_wpnonce' => wp_create_nonce( 'enable-theme_' . $theme->slug ), 'theme' => $theme->slug, ), network_admin_url( 'themes.php' ) ); } else { $theme->activate_url = add_query_arg( array( 'action' => 'activate', '_wpnonce' => wp_create_nonce( 'switch-theme_' . $theme->slug ), 'stylesheet' => $theme->slug, ), admin_url( 'themes.php' ) ); } } $is_theme_installed = array_key_exists( $theme->slug, $installed_themes ); // We only care about installed themes. $theme->block_theme = $is_theme_installed && wp_get_theme( $theme->slug )->is_block_theme(); if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { $customize_url = $theme->block_theme ? admin_url( 'site-editor.php' ) : wp_customize_url( $theme->slug ); $theme->customize_url = add_query_arg( array( 'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ), ), $customize_url ); } $theme->name = wp_kses( $theme->name, $themes_allowedtags ); $theme->author = wp_kses( $theme->author['display_name'], $themes_allowedtags ); $theme->version = wp_kses( $theme->version, $themes_allowedtags ); $theme->description = wp_kses( $theme->description, $themes_allowedtags ); $theme->stars = wp_star_rating( array( 'rating' => $theme->rating, 'type' => 'percent', 'number' => $theme->num_ratings, 'echo' => false, ) ); $theme->num_ratings = number_format_i18n( $theme->num_ratings ); $theme->preview_url = set_url_scheme( $theme->preview_url ); $theme->compatible_wp = is_wp_version_compatible( $theme->requires ); $theme->compatible_php = is_php_version_compatible( $theme->requires_php ); } wp_send_json_success( $api ); } /** * Applies [embed] Ajax handlers to a string. * * @since 4.0.0 * * @global WP_Post $post Global post object. * @global WP_Embed $wp_embed WordPress Embed object. * @global WP_Scripts $wp_scripts Script dependencies object. * @global int $content_width Shared post content width. */ function wp_ajax_parse_embed() { global $post, $wp_embed, $content_width; if ( empty( $_POST['shortcode'] ) ) { wp_send_json_error(); } $post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0; if ( $post_id > 0 ) { $post = get_post( $post_id ); if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) { wp_send_json_error(); } setup_postdata( $post ); } elseif ( ! current_user_can( 'edit_posts' ) ) { // See WP_oEmbed_Controller::get_proxy_item_permissions_check(). wp_send_json_error(); } $shortcode = wp_unslash( $_POST['shortcode'] ); preg_match( '/' . get_shortcode_regex() . '/s', $shortcode, $matches ); $atts = shortcode_parse_atts( $matches[3] ); if ( ! empty( $matches[5] ) ) { $url = $matches[5]; } elseif ( ! empty( $atts['src'] ) ) { $url = $atts['src']; } else { $url = ''; } $parsed = false; $wp_embed->return_false_on_fail = true; if ( 0 === $post_id ) { /* * Refresh oEmbeds cached outside of posts that are past their TTL. * Posts are excluded because they have separate logic for refreshing * their post meta caches. See WP_Embed::cache_oembed(). */ $wp_embed->usecache = false; } if ( is_ssl() && str_starts_with( $url, 'http://' ) ) { /* * Admin is ssl and the user pasted non-ssl URL. * Check if the provider supports ssl embeds and use that for the preview. */ $ssl_shortcode = preg_replace( '%^(\\[embed[^\\]]*\\])http://%i', '$1https://', $shortcode ); $parsed = $wp_embed->run_shortcode( $ssl_shortcode ); if ( ! $parsed ) { $no_ssl_support = true; } } // Set $content_width so any embeds fit in the destination iframe. if ( isset( $_POST['maxwidth'] ) && is_numeric( $_POST['maxwidth'] ) && $_POST['maxwidth'] > 0 ) { if ( ! isset( $content_width ) ) { $content_width = (int) $_POST['maxwidth']; } else { $content_width = min( $content_width, (int) $_POST['maxwidth'] ); } } if ( $url && ! $parsed ) { $parsed = $wp_embed->run_shortcode( $shortcode ); } if ( ! $parsed ) { wp_send_json_error( array( 'type' => 'not-embeddable', /* translators: %s: URL that could not be embedded. */ 'message' => sprintf( __( '%s failed to embed.' ), '' . esc_html( $url ) . '' ), ) ); } if ( has_shortcode( $parsed, 'audio' ) || has_shortcode( $parsed, 'video' ) ) { $styles = ''; $mce_styles = wpview_media_sandbox_styles(); foreach ( $mce_styles as $style ) { $styles .= sprintf( '', $style ); } $html = do_shortcode( $parsed ); global $wp_scripts; if ( ! empty( $wp_scripts ) ) { $wp_scripts->done = array(); } ob_start(); wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) ); $scripts = ob_get_clean(); $parsed = $styles . $html . $scripts; } if ( ! empty( $no_ssl_support ) || ( is_ssl() && ( preg_match( '%<(iframe|script|embed) [^>]*src="http://%', $parsed ) || preg_match( '%]*href="http://%', $parsed ) ) ) ) { // Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked. wp_send_json_error( array( 'type' => 'not-ssl', 'message' => __( 'This preview is unavailable in the editor.' ), ) ); } $return = array( 'body' => $parsed, 'attr' => $wp_embed->last_attr, ); if ( str_contains( $parsed, 'class="wp-embedded-content' ) ) { if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { $script_src = includes_url( 'js/wp-embed.js' ); } else { $script_src = includes_url( 'js/wp-embed.min.js' ); } $return['head'] = ''; $return['sandbox'] = true; } wp_send_json_success( $return ); } /** * @since 4.0.0 * * @global WP_Post $post Global post object. * @global WP_Scripts $wp_scripts Script dependencies object. */ function wp_ajax_parse_media_shortcode() { global $post, $wp_scripts; if ( empty( $_POST['shortcode'] ) ) { wp_send_json_error(); } $shortcode = wp_unslash( $_POST['shortcode'] ); // Only process previews for media related shortcodes: $found_shortcodes = get_shortcode_tags_in_content( $shortcode ); $media_shortcodes = array( 'audio', 'embed', 'playlist', 'video', 'gallery', ); $other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes ); if ( ! empty( $other_shortcodes ) ) { wp_send_json_error(); } if ( ! empty( $_POST['post_ID'] ) ) { $post = get_post( (int) $_POST['post_ID'] ); } // The embed shortcode requires a post. if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) { if ( in_array( 'embed', $found_shortcodes, true ) ) { wp_send_json_error(); } } else { setup_postdata( $post ); } $parsed = do_shortcode( $shortcode ); if ( empty( $parsed ) ) { wp_send_json_error( array( 'type' => 'no-items', 'message' => __( 'No items found.' ), ) ); } $head = ''; $styles = wpview_media_sandbox_styles(); foreach ( $styles as $style ) { $head .= ''; } if ( ! empty( $wp_scripts ) ) { $wp_scripts->done = array(); } ob_start(); echo $parsed; if ( 'playlist' === $_REQUEST['type'] ) { wp_underscore_playlist_templates(); wp_print_scripts( 'wp-playlist' ); } else { wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) ); } wp_send_json_success( array( 'head' => $head, 'body' => ob_get_clean(), ) ); } /** * Handles destroying multiple open sessions for a user via AJAX. * * @since 4.1.0 */ function wp_ajax_destroy_sessions() { $user = get_userdata( (int) $_POST['user_id'] ); if ( $user ) { if ( ! current_user_can( 'edit_user', $user->ID ) ) { $user = false; } elseif ( ! wp_verify_nonce( $_POST['nonce'], 'update-user_' . $user->ID ) ) { $user = false; } } if ( ! $user ) { wp_send_json_error( array( 'message' => __( 'Could not log out user sessions. Please try again.' ), ) ); } $sessions = WP_Session_Tokens::get_instance( $user->ID ); if ( get_current_user_id() === $user->ID ) { $sessions->destroy_others( wp_get_session_token() ); $message = __( 'You are now logged out everywhere else.' ); } else { $sessions->destroy_all(); /* translators: %s: User's display name. */ $message = sprintf( __( '%s has been logged out.' ), $user->display_name ); } wp_send_json_success( array( 'message' => $message ) ); } /** * Handles cropping an image via AJAX. * * @since 4.3.0 */ function wp_ajax_crop_image() { $attachment_id = absint( $_POST['id'] ); check_ajax_referer( 'image_editor-' . $attachment_id, 'nonce' ); if ( empty( $attachment_id ) || ! current_user_can( 'edit_post', $attachment_id ) ) { wp_send_json_error(); } $context = str_replace( '_', '-', $_POST['context'] ); $data = array_map( 'absint', $_POST['cropDetails'] ); $cropped = wp_crop_image( $attachment_id, $data['x1'], $data['y1'], $data['width'], $data['height'], $data['dst_width'], $data['dst_height'] ); if ( ! $cropped || is_wp_error( $cropped ) ) { wp_send_json_error( array( 'message' => __( 'Image could not be processed.' ) ) ); } switch ( $context ) { case 'site-icon': require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; $wp_site_icon = new WP_Site_Icon(); // Skip creating a new attachment if the attachment is a Site Icon. if ( get_post_meta( $attachment_id, '_wp_attachment_context', true ) === $context ) { // Delete the temporary cropped file, we don't need it. wp_delete_file( $cropped ); // Additional sizes in wp_prepare_attachment_for_js(). add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) ); break; } /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. // Copy attachment properties. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, $context ); // Update the attachment. add_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) ); $attachment_id = $wp_site_icon->insert_attachment( $attachment, $cropped ); remove_filter( 'intermediate_image_sizes_advanced', array( $wp_site_icon, 'additional_sizes' ) ); // Additional sizes in wp_prepare_attachment_for_js(). add_filter( 'image_size_names_choose', array( $wp_site_icon, 'additional_sizes' ) ); break; default: /** * Fires before a cropped image is saved. * * Allows to add filters to modify the way a cropped image is saved. * * @since 4.3.0 * * @param string $context The Customizer control requesting the cropped image. * @param int $attachment_id The attachment ID of the original image. * @param string $cropped Path to the cropped image file. */ do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped ); /** This filter is documented in wp-admin/includes/class-custom-image-header.php */ $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication. // Copy attachment properties. $attachment = wp_copy_parent_attachment_properties( $cropped, $attachment_id, $context ); $attachment_id = wp_insert_attachment( $attachment, $cropped ); $metadata = wp_generate_attachment_metadata( $attachment_id, $cropped ); /** * Filters the cropped image attachment metadata. * * @since 4.3.0 * * @see wp_generate_attachment_metadata() * * @param array $metadata Attachment metadata. */ $metadata = apply_filters( 'wp_ajax_cropped_attachment_metadata', $metadata ); wp_update_attachment_metadata( $attachment_id, $metadata ); /** * Filters the attachment ID for a cropped image. * * @since 4.3.0 * * @param int $attachment_id The attachment ID of the cropped image. * @param string $context The Customizer control requesting the cropped image. */ $attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context ); } wp_send_json_success( wp_prepare_attachment_for_js( $attachment_id ) ); } /** * Handles generating a password via AJAX. * * @since 4.4.0 */ function wp_ajax_generate_password() { wp_send_json_success( wp_generate_password( 24 ) ); } /** * Handles generating a password in the no-privilege context via AJAX. * * @since 5.7.0 */ function wp_ajax_nopriv_generate_password() { wp_send_json_success( wp_generate_password( 24 ) ); } /** * Handles saving the user's WordPress.org username via AJAX. * * @since 4.4.0 */ function wp_ajax_save_wporg_username() { if ( ! current_user_can( 'install_themes' ) && ! current_user_can( 'install_plugins' ) ) { wp_send_json_error(); } check_ajax_referer( 'save_wporg_username_' . get_current_user_id() ); $username = isset( $_REQUEST['username'] ) ? wp_unslash( $_REQUEST['username'] ) : false; if ( ! $username ) { wp_send_json_error(); } wp_send_json_success( update_user_meta( get_current_user_id(), 'wporg_favorites', $username ) ); } /** * Handles installing a theme via AJAX. * * @since 4.6.0 * * @see Theme_Upgrader * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. */ function wp_ajax_install_theme() { check_ajax_referer( 'updates' ); if ( empty( $_POST['slug'] ) ) { wp_send_json_error( array( 'slug' => '', 'errorCode' => 'no_theme_specified', 'errorMessage' => __( 'No theme specified.' ), ) ); } $slug = sanitize_key( wp_unslash( $_POST['slug'] ) ); $status = array( 'install' => 'theme', 'slug' => $slug, ); if ( ! current_user_can( 'install_themes' ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to install themes on this site.' ); wp_send_json_error( $status ); } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; require_once ABSPATH . 'wp-admin/includes/theme.php'; $api = themes_api( 'theme_information', array( 'slug' => $slug, 'fields' => array( 'sections' => false ), ) ); if ( is_wp_error( $api ) ) { $status['errorMessage'] = $api->get_error_message(); wp_send_json_error( $status ); } $skin = new WP_Ajax_Upgrader_Skin(); $upgrader = new Theme_Upgrader( $skin ); $result = $upgrader->install( $api->download_link ); if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $status['debug'] = $skin->get_upgrade_messages(); } if ( is_wp_error( $result ) ) { $status['errorCode'] = $result->get_error_code(); $status['errorMessage'] = $result->get_error_message(); wp_send_json_error( $status ); } elseif ( is_wp_error( $skin->result ) ) { $status['errorCode'] = $skin->result->get_error_code(); $status['errorMessage'] = $skin->result->get_error_message(); wp_send_json_error( $status ); } elseif ( $skin->get_errors()->has_errors() ) { $status['errorMessage'] = $skin->get_error_messages(); wp_send_json_error( $status ); } elseif ( is_null( $result ) ) { global $wp_filesystem; $status['errorCode'] = 'unable_to_connect_to_filesystem'; $status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); // Pass through the error from WP_Filesystem if one was raised. if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { $status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() ); } wp_send_json_error( $status ); } $status['themeName'] = wp_get_theme( $slug )->get( 'Name' ); if ( current_user_can( 'switch_themes' ) ) { if ( is_multisite() ) { $status['activateUrl'] = add_query_arg( array( 'action' => 'enable', '_wpnonce' => wp_create_nonce( 'enable-theme_' . $slug ), 'theme' => $slug, ), network_admin_url( 'themes.php' ) ); } else { $status['activateUrl'] = add_query_arg( array( 'action' => 'activate', '_wpnonce' => wp_create_nonce( 'switch-theme_' . $slug ), 'stylesheet' => $slug, ), admin_url( 'themes.php' ) ); } } $theme = wp_get_theme( $slug ); $status['blockTheme'] = $theme->is_block_theme(); if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { $status['customizeUrl'] = add_query_arg( array( 'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ), ), wp_customize_url( $slug ) ); } /* * See WP_Theme_Install_List_Table::_get_theme_status() if we wanted to check * on post-installation status. */ wp_send_json_success( $status ); } /** * Handles updating a theme via AJAX. * * @since 4.6.0 * * @see Theme_Upgrader * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. */ function wp_ajax_update_theme() { check_ajax_referer( 'updates' ); if ( empty( $_POST['slug'] ) ) { wp_send_json_error( array( 'slug' => '', 'errorCode' => 'no_theme_specified', 'errorMessage' => __( 'No theme specified.' ), ) ); } $stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', wp_unslash( $_POST['slug'] ) ); $status = array( 'update' => 'theme', 'slug' => $stylesheet, 'oldVersion' => '', 'newVersion' => '', ); if ( ! current_user_can( 'update_themes' ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to update themes for this site.' ); wp_send_json_error( $status ); } $theme = wp_get_theme( $stylesheet ); if ( $theme->exists() ) { $status['oldVersion'] = $theme->get( 'Version' ); } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $current = get_site_transient( 'update_themes' ); if ( empty( $current ) ) { wp_update_themes(); } $skin = new WP_Ajax_Upgrader_Skin(); $upgrader = new Theme_Upgrader( $skin ); $result = $upgrader->bulk_upgrade( array( $stylesheet ) ); if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $status['debug'] = $skin->get_upgrade_messages(); } if ( is_wp_error( $skin->result ) ) { $status['errorCode'] = $skin->result->get_error_code(); $status['errorMessage'] = $skin->result->get_error_message(); wp_send_json_error( $status ); } elseif ( $skin->get_errors()->has_errors() ) { $status['errorMessage'] = $skin->get_error_messages(); wp_send_json_error( $status ); } elseif ( is_array( $result ) && ! empty( $result[ $stylesheet ] ) ) { // Theme is already at the latest version. if ( true === $result[ $stylesheet ] ) { $status['errorMessage'] = $upgrader->strings['up_to_date']; wp_send_json_error( $status ); } $theme = wp_get_theme( $stylesheet ); if ( $theme->exists() ) { $status['newVersion'] = $theme->get( 'Version' ); } wp_send_json_success( $status ); } elseif ( false === $result ) { global $wp_filesystem; $status['errorCode'] = 'unable_to_connect_to_filesystem'; $status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); // Pass through the error from WP_Filesystem if one was raised. if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { $status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() ); } wp_send_json_error( $status ); } // An unhandled error occurred. $status['errorMessage'] = __( 'Theme update failed.' ); wp_send_json_error( $status ); } /** * Handles deleting a theme via AJAX. * * @since 4.6.0 * * @see delete_theme() * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. */ function wp_ajax_delete_theme() { check_ajax_referer( 'updates' ); if ( empty( $_POST['slug'] ) ) { wp_send_json_error( array( 'slug' => '', 'errorCode' => 'no_theme_specified', 'errorMessage' => __( 'No theme specified.' ), ) ); } $stylesheet = preg_replace( '/[^A-z0-9_\-]/', '', wp_unslash( $_POST['slug'] ) ); $status = array( 'delete' => 'theme', 'slug' => $stylesheet, ); if ( ! current_user_can( 'delete_themes' ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to delete themes on this site.' ); wp_send_json_error( $status ); } if ( ! wp_get_theme( $stylesheet )->exists() ) { $status['errorMessage'] = __( 'The requested theme does not exist.' ); wp_send_json_error( $status ); } // Check filesystem credentials. `delete_theme()` will bail otherwise. $url = wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ); ob_start(); $credentials = request_filesystem_credentials( $url ); ob_end_clean(); if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { global $wp_filesystem; $status['errorCode'] = 'unable_to_connect_to_filesystem'; $status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); // Pass through the error from WP_Filesystem if one was raised. if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { $status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() ); } wp_send_json_error( $status ); } require_once ABSPATH . 'wp-admin/includes/theme.php'; $result = delete_theme( $stylesheet ); if ( is_wp_error( $result ) ) { $status['errorMessage'] = $result->get_error_message(); wp_send_json_error( $status ); } elseif ( false === $result ) { $status['errorMessage'] = __( 'Theme could not be deleted.' ); wp_send_json_error( $status ); } wp_send_json_success( $status ); } /** * Handles installing a plugin via AJAX. * * @since 4.6.0 * * @see Plugin_Upgrader * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. */ function wp_ajax_install_plugin() { check_ajax_referer( 'updates' ); if ( empty( $_POST['slug'] ) ) { wp_send_json_error( array( 'slug' => '', 'errorCode' => 'no_plugin_specified', 'errorMessage' => __( 'No plugin specified.' ), ) ); } $status = array( 'install' => 'plugin', 'slug' => sanitize_key( wp_unslash( $_POST['slug'] ) ), ); if ( ! current_user_can( 'install_plugins' ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to install plugins on this site.' ); wp_send_json_error( $status ); } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; $api = plugins_api( 'plugin_information', array( 'slug' => sanitize_key( wp_unslash( $_POST['slug'] ) ), 'fields' => array( 'sections' => false, ), ) ); if ( is_wp_error( $api ) ) { $status['errorMessage'] = $api->get_error_message(); wp_send_json_error( $status ); } $status['pluginName'] = $api->name; $skin = new WP_Ajax_Upgrader_Skin(); $upgrader = new Plugin_Upgrader( $skin ); $result = $upgrader->install( $api->download_link ); if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $status['debug'] = $skin->get_upgrade_messages(); } if ( is_wp_error( $result ) ) { $status['errorCode'] = $result->get_error_code(); $status['errorMessage'] = $result->get_error_message(); wp_send_json_error( $status ); } elseif ( is_wp_error( $skin->result ) ) { $status['errorCode'] = $skin->result->get_error_code(); $status['errorMessage'] = $skin->result->get_error_message(); wp_send_json_error( $status ); } elseif ( $skin->get_errors()->has_errors() ) { $status['errorMessage'] = $skin->get_error_messages(); wp_send_json_error( $status ); } elseif ( is_null( $result ) ) { global $wp_filesystem; $status['errorCode'] = 'unable_to_connect_to_filesystem'; $status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); // Pass through the error from WP_Filesystem if one was raised. if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { $status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() ); } wp_send_json_error( $status ); } $install_status = install_plugin_install_status( $api ); $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : ''; // If installation request is coming from import page, do not return network activation link. $plugins_url = ( 'import' === $pagenow ) ? admin_url( 'plugins.php' ) : network_admin_url( 'plugins.php' ); if ( current_user_can( 'activate_plugin', $install_status['file'] ) && is_plugin_inactive( $install_status['file'] ) ) { $status['activateUrl'] = add_query_arg( array( '_wpnonce' => wp_create_nonce( 'activate-plugin_' . $install_status['file'] ), 'action' => 'activate', 'plugin' => $install_status['file'], ), $plugins_url ); } if ( is_multisite() && current_user_can( 'manage_network_plugins' ) && 'import' !== $pagenow ) { $status['activateUrl'] = add_query_arg( array( 'networkwide' => 1 ), $status['activateUrl'] ); } wp_send_json_success( $status ); } /** * Handles activating a plugin via AJAX. * * @since 6.5.0 */ function wp_ajax_activate_plugin() { check_ajax_referer( 'updates' ); if ( empty( $_POST['name'] ) || empty( $_POST['slug'] ) || empty( $_POST['plugin'] ) ) { wp_send_json_error( array( 'slug' => '', 'pluginName' => '', 'plugin' => '', 'errorCode' => 'no_plugin_specified', 'errorMessage' => __( 'No plugin specified.' ), ) ); } $status = array( 'activate' => 'plugin', 'slug' => wp_unslash( $_POST['slug'] ), 'pluginName' => wp_unslash( $_POST['name'] ), 'plugin' => wp_unslash( $_POST['plugin'] ), ); if ( ! current_user_can( 'activate_plugin', $status['plugin'] ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to activate plugins on this site.' ); wp_send_json_error( $status ); } if ( is_plugin_active( $status['plugin'] ) ) { $status['errorMessage'] = sprintf( /* translators: %s: Plugin name. */ __( '%s is already active.' ), $status['pluginName'] ); } $activated = activate_plugin( $status['plugin'] ); if ( is_wp_error( $activated ) ) { $status['errorMessage'] = $activated->get_error_message(); wp_send_json_error( $status ); } wp_send_json_success( $status ); } /** * Handles updating a plugin via AJAX. * * @since 4.2.0 * * @see Plugin_Upgrader * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. */ function wp_ajax_update_plugin() { check_ajax_referer( 'updates' ); if ( empty( $_POST['plugin'] ) || empty( $_POST['slug'] ) ) { wp_send_json_error( array( 'slug' => '', 'errorCode' => 'no_plugin_specified', 'errorMessage' => __( 'No plugin specified.' ), ) ); } $plugin = plugin_basename( sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) ); $status = array( 'update' => 'plugin', 'slug' => sanitize_key( wp_unslash( $_POST['slug'] ) ), 'oldVersion' => '', 'newVersion' => '', ); if ( ! current_user_can( 'update_plugins' ) || 0 !== validate_file( $plugin ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to update plugins for this site.' ); wp_send_json_error( $status ); } $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); $status['plugin'] = $plugin; $status['pluginName'] = $plugin_data['Name']; if ( $plugin_data['Version'] ) { /* translators: %s: Plugin version. */ $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; wp_update_plugins(); $skin = new WP_Ajax_Upgrader_Skin(); $upgrader = new Plugin_Upgrader( $skin ); $result = $upgrader->bulk_upgrade( array( $plugin ) ); if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $status['debug'] = $skin->get_upgrade_messages(); } if ( is_wp_error( $skin->result ) ) { $status['errorCode'] = $skin->result->get_error_code(); $status['errorMessage'] = $skin->result->get_error_message(); wp_send_json_error( $status ); } elseif ( $skin->get_errors()->has_errors() ) { $status['errorMessage'] = $skin->get_error_messages(); wp_send_json_error( $status ); } elseif ( is_array( $result ) && ! empty( $result[ $plugin ] ) ) { /* * Plugin is already at the latest version. * * This may also be the return value if the `update_plugins` site transient is empty, * e.g. when you update two plugins in quick succession before the transient repopulates. * * Preferably something can be done to ensure `update_plugins` isn't empty. * For now, surface some sort of error here. */ if ( true === $result[ $plugin ] ) { $status['errorMessage'] = $upgrader->strings['up_to_date']; wp_send_json_error( $status ); } $plugin_data = get_plugins( '/' . $result[ $plugin ]['destination_name'] ); $plugin_data = reset( $plugin_data ); if ( $plugin_data['Version'] ) { /* translators: %s: Plugin version. */ $status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); } wp_send_json_success( $status ); } elseif ( false === $result ) { global $wp_filesystem; $status['errorCode'] = 'unable_to_connect_to_filesystem'; $status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); // Pass through the error from WP_Filesystem if one was raised. if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { $status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() ); } wp_send_json_error( $status ); } // An unhandled error occurred. $status['errorMessage'] = __( 'Plugin update failed.' ); wp_send_json_error( $status ); } /** * Handles deleting a plugin via AJAX. * * @since 4.6.0 * * @see delete_plugins() * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. */ function wp_ajax_delete_plugin() { check_ajax_referer( 'updates' ); if ( empty( $_POST['slug'] ) || empty( $_POST['plugin'] ) ) { wp_send_json_error( array( 'slug' => '', 'errorCode' => 'no_plugin_specified', 'errorMessage' => __( 'No plugin specified.' ), ) ); } $plugin = plugin_basename( sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) ); $status = array( 'delete' => 'plugin', 'slug' => sanitize_key( wp_unslash( $_POST['slug'] ) ), ); if ( ! current_user_can( 'delete_plugins' ) || 0 !== validate_file( $plugin ) ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to delete plugins for this site.' ); wp_send_json_error( $status ); } $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); $status['plugin'] = $plugin; $status['pluginName'] = $plugin_data['Name']; if ( is_plugin_active( $plugin ) ) { $status['errorMessage'] = __( 'You cannot delete a plugin while it is active on the main site.' ); wp_send_json_error( $status ); } // Check filesystem credentials. `delete_plugins()` will bail otherwise. $url = wp_nonce_url( 'plugins.php?action=delete-selected&verify-delete=1&checked[]=' . $plugin, 'bulk-plugins' ); ob_start(); $credentials = request_filesystem_credentials( $url ); ob_end_clean(); if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { global $wp_filesystem; $status['errorCode'] = 'unable_to_connect_to_filesystem'; $status['errorMessage'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); // Pass through the error from WP_Filesystem if one was raised. if ( $wp_filesystem instanceof WP_Filesystem_Base && is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { $status['errorMessage'] = esc_html( $wp_filesystem->errors->get_error_message() ); } wp_send_json_error( $status ); } $result = delete_plugins( array( $plugin ) ); if ( is_wp_error( $result ) ) { $status['errorMessage'] = $result->get_error_message(); wp_send_json_error( $status ); } elseif ( false === $result ) { $status['errorMessage'] = __( 'Plugin could not be deleted.' ); wp_send_json_error( $status ); } wp_send_json_success( $status ); } /** * Handles searching plugins via AJAX. * * @since 4.6.0 * * @global string $s Search term. */ function wp_ajax_search_plugins() { check_ajax_referer( 'updates' ); // Ensure after_plugin_row_{$plugin_file} gets hooked. wp_plugin_update_rows(); WP_Plugin_Dependencies::initialize(); $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : ''; if ( 'plugins-network' === $pagenow || 'plugins' === $pagenow ) { set_current_screen( $pagenow ); } /** @var WP_Plugins_List_Table $wp_list_table */ $wp_list_table = _get_list_table( 'WP_Plugins_List_Table', array( 'screen' => get_current_screen(), ) ); $status = array(); if ( ! $wp_list_table->ajax_user_can() ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to manage plugins for this site.' ); wp_send_json_error( $status ); } // Set the correct requester, so pagination works. $_SERVER['REQUEST_URI'] = add_query_arg( array_diff_key( $_POST, array( '_ajax_nonce' => null, 'action' => null, ) ), network_admin_url( 'plugins.php', 'relative' ) ); $GLOBALS['s'] = wp_unslash( $_POST['s'] ); $wp_list_table->prepare_items(); ob_start(); $wp_list_table->display(); $status['count'] = count( $wp_list_table->items ); $status['items'] = ob_get_clean(); wp_send_json_success( $status ); } /** * Handles searching plugins to install via AJAX. * * @since 4.6.0 */ function wp_ajax_search_install_plugins() { check_ajax_referer( 'updates' ); $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : ''; if ( 'plugin-install-network' === $pagenow || 'plugin-install' === $pagenow ) { set_current_screen( $pagenow ); } /** @var WP_Plugin_Install_List_Table $wp_list_table */ $wp_list_table = _get_list_table( 'WP_Plugin_Install_List_Table', array( 'screen' => get_current_screen(), ) ); $status = array(); if ( ! $wp_list_table->ajax_user_can() ) { $status['errorMessage'] = __( 'Sorry, you are not allowed to manage plugins for this site.' ); wp_send_json_error( $status ); } // Set the correct requester, so pagination works. $_SERVER['REQUEST_URI'] = add_query_arg( array_diff_key( $_POST, array( '_ajax_nonce' => null, 'action' => null, ) ), network_admin_url( 'plugin-install.php', 'relative' ) ); $wp_list_table->prepare_items(); ob_start(); $wp_list_table->display(); $status['count'] = (int) $wp_list_table->get_pagination_arg( 'total_items' ); $status['items'] = ob_get_clean(); wp_send_json_success( $status ); } /** * Handles editing a theme or plugin file via AJAX. * * @since 4.9.0 * * @see wp_edit_theme_plugin_file() */ function wp_ajax_edit_theme_plugin_file() { $edit_result = wp_edit_theme_plugin_file( wp_unslash( $_POST ) ); // Validation of args is done in wp_edit_theme_plugin_file(). if ( is_wp_error( $edit_result ) ) { wp_send_json_error( array_merge( array( 'code' => $edit_result->get_error_code(), 'message' => $edit_result->get_error_message(), ), (array) $edit_result->get_error_data() ) ); } else { wp_send_json_success( array( 'message' => __( 'File edited successfully.' ), ) ); } } /** * Handles exporting a user's personal data via AJAX. * * @since 4.9.6 */ function wp_ajax_wp_privacy_export_personal_data() { if ( empty( $_POST['id'] ) ) { wp_send_json_error( __( 'Missing request ID.' ) ); } $request_id = (int) $_POST['id']; if ( $request_id < 1 ) { wp_send_json_error( __( 'Invalid request ID.' ) ); } if ( ! current_user_can( 'export_others_personal_data' ) ) { wp_send_json_error( __( 'Sorry, you are not allowed to perform this action.' ) ); } check_ajax_referer( 'wp-privacy-export-personal-data-' . $request_id, 'security' ); // Get the request. $request = wp_get_user_request( $request_id ); if ( ! $request || 'export_personal_data' !== $request->action_name ) { wp_send_json_error( __( 'Invalid request type.' ) ); } $email_address = $request->email; if ( ! is_email( $email_address ) ) { wp_send_json_error( __( 'A valid email address must be given.' ) ); } if ( ! isset( $_POST['exporter'] ) ) { wp_send_json_error( __( 'Missing exporter index.' ) ); } $exporter_index = (int) $_POST['exporter']; if ( ! isset( $_POST['page'] ) ) { wp_send_json_error( __( 'Missing page index.' ) ); } $page = (int) $_POST['page']; $send_as_email = isset( $_POST['sendAsEmail'] ) ? ( 'true' === $_POST['sendAsEmail'] ) : false; /** * Filters the array of exporter callbacks. * * @since 4.9.6 * * @param array $args { * An array of callable exporters of personal data. Default empty array. * * @type array ...$0 { * Array of personal data exporters. * * @type callable $callback Callable exporter function that accepts an * email address and a page number and returns an * array of name => value pairs of personal data. * @type string $exporter_friendly_name Translated user facing friendly name for the * exporter. * } * } */ $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); if ( ! is_array( $exporters ) ) { wp_send_json_error( __( 'An exporter has improperly used the registration filter.' ) ); } // Do we have any registered exporters? if ( 0 < count( $exporters ) ) { if ( $exporter_index < 1 ) { wp_send_json_error( __( 'Exporter index cannot be negative.' ) ); } if ( $exporter_index > count( $exporters ) ) { wp_send_json_error( __( 'Exporter index is out of range.' ) ); } if ( $page < 1 ) { wp_send_json_error( __( 'Page index cannot be less than one.' ) ); } $exporter_keys = array_keys( $exporters ); $exporter_key = $exporter_keys[ $exporter_index - 1 ]; $exporter = $exporters[ $exporter_key ]; if ( ! is_array( $exporter ) ) { wp_send_json_error( /* translators: %s: Exporter array index. */ sprintf( __( 'Expected an array describing the exporter at index %s.' ), $exporter_key ) ); } if ( ! array_key_exists( 'exporter_friendly_name', $exporter ) ) { wp_send_json_error( /* translators: %s: Exporter array index. */ sprintf( __( 'Exporter array at index %s does not include a friendly name.' ), $exporter_key ) ); } $exporter_friendly_name = $exporter['exporter_friendly_name']; if ( ! array_key_exists( 'callback', $exporter ) ) { wp_send_json_error( /* translators: %s: Exporter friendly name. */ sprintf( __( 'Exporter does not include a callback: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! is_callable( $exporter['callback'] ) ) { wp_send_json_error( /* translators: %s: Exporter friendly name. */ sprintf( __( 'Exporter callback is not a valid callback: %s.' ), esc_html( $exporter_friendly_name ) ) ); } $callback = $exporter['callback']; $response = call_user_func( $callback, $email_address, $page ); if ( is_wp_error( $response ) ) { wp_send_json_error( $response ); } if ( ! is_array( $response ) ) { wp_send_json_error( /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected response as an array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! array_key_exists( 'data', $response ) ) { wp_send_json_error( /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected data in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! is_array( $response['data'] ) ) { wp_send_json_error( /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected data array in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! array_key_exists( 'done', $response ) ) { wp_send_json_error( /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected done (boolean) in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } } else { // No exporters, so we're done. $exporter_key = ''; $response = array( 'data' => array(), 'done' => true, ); } /** * Filters a page of personal data exporter data. Used to build the export report. * * Allows the export response to be consumed by destinations in addition to Ajax. * * @since 4.9.6 * * @param array $response The personal data for the given exporter and page number. * @param int $exporter_index The index of the exporter that provided this data. * @param string $email_address The email address associated with this personal data. * @param int $page The page number for this response. * @param int $request_id The privacy request post ID associated with this request. * @param bool $send_as_email Whether the final results of the export should be emailed to the user. * @param string $exporter_key The key (slug) of the exporter that provided this data. */ $response = apply_filters( 'wp_privacy_personal_data_export_page', $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key ); if ( is_wp_error( $response ) ) { wp_send_json_error( $response ); } wp_send_json_success( $response ); } /** * Handles erasing personal data via AJAX. * * @since 4.9.6 */ function wp_ajax_wp_privacy_erase_personal_data() { if ( empty( $_POST['id'] ) ) { wp_send_json_error( __( 'Missing request ID.' ) ); } $request_id = (int) $_POST['id']; if ( $request_id < 1 ) { wp_send_json_error( __( 'Invalid request ID.' ) ); } // Both capabilities are required to avoid confusion, see `_wp_personal_data_removal_page()`. if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { wp_send_json_error( __( 'Sorry, you are not allowed to perform this action.' ) ); } check_ajax_referer( 'wp-privacy-erase-personal-data-' . $request_id, 'security' ); // Get the request. $request = wp_get_user_request( $request_id ); if ( ! $request || 'remove_personal_data' !== $request->action_name ) { wp_send_json_error( __( 'Invalid request type.' ) ); } $email_address = $request->email; if ( ! is_email( $email_address ) ) { wp_send_json_error( __( 'Invalid email address in request.' ) ); } if ( ! isset( $_POST['eraser'] ) ) { wp_send_json_error( __( 'Missing eraser index.' ) ); } $eraser_index = (int) $_POST['eraser']; if ( ! isset( $_POST['page'] ) ) { wp_send_json_error( __( 'Missing page index.' ) ); } $page = (int) $_POST['page']; /** * Filters the array of personal data eraser callbacks. * * @since 4.9.6 * * @param array $args { * An array of callable erasers of personal data. Default empty array. * * @type array ...$0 { * Array of personal data exporters. * * @type callable $callback Callable eraser that accepts an email address and a page * number, and returns an array with boolean values for * whether items were removed or retained and any messages * from the eraser, as well as if additional pages are * available. * @type string $exporter_friendly_name Translated user facing friendly name for the eraser. * } * } */ $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); // Do we have any registered erasers? if ( 0 < count( $erasers ) ) { if ( $eraser_index < 1 ) { wp_send_json_error( __( 'Eraser index cannot be less than one.' ) ); } if ( $eraser_index > count( $erasers ) ) { wp_send_json_error( __( 'Eraser index is out of range.' ) ); } if ( $page < 1 ) { wp_send_json_error( __( 'Page index cannot be less than one.' ) ); } $eraser_keys = array_keys( $erasers ); $eraser_key = $eraser_keys[ $eraser_index - 1 ]; $eraser = $erasers[ $eraser_key ]; if ( ! is_array( $eraser ) ) { /* translators: %d: Eraser array index. */ wp_send_json_error( sprintf( __( 'Expected an array describing the eraser at index %d.' ), $eraser_index ) ); } if ( ! array_key_exists( 'eraser_friendly_name', $eraser ) ) { /* translators: %d: Eraser array index. */ wp_send_json_error( sprintf( __( 'Eraser array at index %d does not include a friendly name.' ), $eraser_index ) ); } $eraser_friendly_name = $eraser['eraser_friendly_name']; if ( ! array_key_exists( 'callback', $eraser ) ) { wp_send_json_error( sprintf( /* translators: %s: Eraser friendly name. */ __( 'Eraser does not include a callback: %s.' ), esc_html( $eraser_friendly_name ) ) ); } if ( ! is_callable( $eraser['callback'] ) ) { wp_send_json_error( sprintf( /* translators: %s: Eraser friendly name. */ __( 'Eraser callback is not valid: %s.' ), esc_html( $eraser_friendly_name ) ) ); } $callback = $eraser['callback']; $response = call_user_func( $callback, $email_address, $page ); if ( is_wp_error( $response ) ) { wp_send_json_error( $response ); } if ( ! is_array( $response ) ) { wp_send_json_error( sprintf( /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Did not receive array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index ) ); } if ( ! array_key_exists( 'items_removed', $response ) ) { wp_send_json_error( sprintf( /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected items_removed key in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index ) ); } if ( ! array_key_exists( 'items_retained', $response ) ) { wp_send_json_error( sprintf( /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected items_retained key in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index ) ); } if ( ! array_key_exists( 'messages', $response ) ) { wp_send_json_error( sprintf( /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected messages key in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index ) ); } if ( ! is_array( $response['messages'] ) ) { wp_send_json_error( sprintf( /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected messages key to reference an array in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index ) ); } if ( ! array_key_exists( 'done', $response ) ) { wp_send_json_error( sprintf( /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected done flag in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index ) ); } } else { // No erasers, so we're done. $eraser_key = ''; $response = array( 'items_removed' => false, 'items_retained' => false, 'messages' => array(), 'done' => true, ); } /** * Filters a page of personal data eraser data. * * Allows the erasure response to be consumed by destinations in addition to Ajax. * * @since 4.9.6 * * @param array $response { * The personal data for the given exporter and page number. * * @type bool $items_removed Whether items were actually removed or not. * @type bool $items_retained Whether items were retained or not. * @type string[] $messages An array of messages to add to the personal data export file. * @type bool $done Whether the eraser is finished or not. * } * @param int $eraser_index The index of the eraser that provided this data. * @param string $email_address The email address associated with this personal data. * @param int $page The page number for this response. * @param int $request_id The privacy request post ID associated with this request. * @param string $eraser_key The key (slug) of the eraser that provided this data. */ $response = apply_filters( 'wp_privacy_personal_data_erasure_page', $response, $eraser_index, $email_address, $page, $request_id, $eraser_key ); if ( is_wp_error( $response ) ) { wp_send_json_error( $response ); } wp_send_json_success( $response ); } /** * Handles site health checks on server communication via AJAX. * * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_dotorg_communication() * @see WP_REST_Site_Health_Controller::test_dotorg_communication() */ function wp_ajax_health_check_dotorg_communication() { _doing_it_wrong( 'wp_ajax_health_check_dotorg_communication', sprintf( /* translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it. */ __( 'The Site Health check for %1$s has been replaced with %2$s.' ), 'wp_ajax_health_check_dotorg_communication', 'WP_REST_Site_Health_Controller::test_dotorg_communication' ), '5.6.0' ); check_ajax_referer( 'health-check-site-status' ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_send_json_error(); } if ( ! class_exists( 'WP_Site_Health' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; } $site_health = WP_Site_Health::get_instance(); wp_send_json_success( $site_health->get_test_dotorg_communication() ); } /** * Handles site health checks on background updates via AJAX. * * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_background_updates() * @see WP_REST_Site_Health_Controller::test_background_updates() */ function wp_ajax_health_check_background_updates() { _doing_it_wrong( 'wp_ajax_health_check_background_updates', sprintf( /* translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it. */ __( 'The Site Health check for %1$s has been replaced with %2$s.' ), 'wp_ajax_health_check_background_updates', 'WP_REST_Site_Health_Controller::test_background_updates' ), '5.6.0' ); check_ajax_referer( 'health-check-site-status' ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_send_json_error(); } if ( ! class_exists( 'WP_Site_Health' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; } $site_health = WP_Site_Health::get_instance(); wp_send_json_success( $site_health->get_test_background_updates() ); } /** * Handles site health checks on loopback requests via AJAX. * * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::test_loopback_requests() * @see WP_REST_Site_Health_Controller::test_loopback_requests() */ function wp_ajax_health_check_loopback_requests() { _doing_it_wrong( 'wp_ajax_health_check_loopback_requests', sprintf( /* translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it. */ __( 'The Site Health check for %1$s has been replaced with %2$s.' ), 'wp_ajax_health_check_loopback_requests', 'WP_REST_Site_Health_Controller::test_loopback_requests' ), '5.6.0' ); check_ajax_referer( 'health-check-site-status' ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_send_json_error(); } if ( ! class_exists( 'WP_Site_Health' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; } $site_health = WP_Site_Health::get_instance(); wp_send_json_success( $site_health->get_test_loopback_requests() ); } /** * Handles site health check to update the result status via AJAX. * * @since 5.2.0 */ function wp_ajax_health_check_site_status_result() { check_ajax_referer( 'health-check-site-status-result' ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_send_json_error(); } set_transient( 'health-check-site-status-result', wp_json_encode( $_POST['counts'] ) ); wp_send_json_success(); } /** * Handles site health check to get directories and database sizes via AJAX. * * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::get_directory_sizes() * @see WP_REST_Site_Health_Controller::get_directory_sizes() */ function wp_ajax_health_check_get_sizes() { _doing_it_wrong( 'wp_ajax_health_check_get_sizes', sprintf( /* translators: 1: The Site Health action that is no longer used by core. 2: The new function that replaces it. */ __( 'The Site Health check for %1$s has been replaced with %2$s.' ), 'wp_ajax_health_check_get_sizes', 'WP_REST_Site_Health_Controller::get_directory_sizes' ), '5.6.0' ); check_ajax_referer( 'health-check-site-status-result' ); if ( ! current_user_can( 'view_site_health_checks' ) || is_multisite() ) { wp_send_json_error(); } if ( ! class_exists( 'WP_Debug_Data' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php'; } $sizes_data = WP_Debug_Data::get_sizes(); $all_sizes = array( 'raw' => 0 ); foreach ( $sizes_data as $name => $value ) { $name = sanitize_text_field( $name ); $data = array(); if ( isset( $value['size'] ) ) { if ( is_string( $value['size'] ) ) { $data['size'] = sanitize_text_field( $value['size'] ); } else { $data['size'] = (int) $value['size']; } } if ( isset( $value['debug'] ) ) { if ( is_string( $value['debug'] ) ) { $data['debug'] = sanitize_text_field( $value['debug'] ); } else { $data['debug'] = (int) $value['debug']; } } if ( ! empty( $value['raw'] ) ) { $data['raw'] = (int) $value['raw']; } $all_sizes[ $name ] = $data; } if ( isset( $all_sizes['total_size']['debug'] ) && 'not available' === $all_sizes['total_size']['debug'] ) { wp_send_json_error( $all_sizes ); } wp_send_json_success( $all_sizes ); } /** * Handles renewing the REST API nonce via AJAX. * * @since 5.3.0 */ function wp_ajax_rest_nonce() { exit( wp_create_nonce( 'wp_rest' ) ); } /** * Handles enabling or disable plugin and theme auto-updates via AJAX. * * @since 5.5.0 */ function wp_ajax_toggle_auto_updates() { check_ajax_referer( 'updates' ); if ( empty( $_POST['type'] ) || empty( $_POST['asset'] ) || empty( $_POST['state'] ) ) { wp_send_json_error( array( 'error' => __( 'Invalid data. No selected item.' ) ) ); } $asset = sanitize_text_field( urldecode( $_POST['asset'] ) ); if ( 'enable' !== $_POST['state'] && 'disable' !== $_POST['state'] ) { wp_send_json_error( array( 'error' => __( 'Invalid data. Unknown state.' ) ) ); } $state = $_POST['state']; if ( 'plugin' !== $_POST['type'] && 'theme' !== $_POST['type'] ) { wp_send_json_error( array( 'error' => __( 'Invalid data. Unknown type.' ) ) ); } $type = $_POST['type']; switch ( $type ) { case 'plugin': if ( ! current_user_can( 'update_plugins' ) ) { $error_message = __( 'Sorry, you are not allowed to modify plugins.' ); wp_send_json_error( array( 'error' => $error_message ) ); } $option = 'auto_update_plugins'; /** This filter is documented in wp-admin/includes/class-wp-plugins-list-table.php */ $all_items = apply_filters( 'all_plugins', get_plugins() ); break; case 'theme': if ( ! current_user_can( 'update_themes' ) ) { $error_message = __( 'Sorry, you are not allowed to modify themes.' ); wp_send_json_error( array( 'error' => $error_message ) ); } $option = 'auto_update_themes'; $all_items = wp_get_themes(); break; default: wp_send_json_error( array( 'error' => __( 'Invalid data. Unknown type.' ) ) ); } if ( ! array_key_exists( $asset, $all_items ) ) { $error_message = __( 'Invalid data. The item does not exist.' ); wp_send_json_error( array( 'error' => $error_message ) ); } $auto_updates = (array) get_site_option( $option, array() ); if ( 'disable' === $state ) { $auto_updates = array_diff( $auto_updates, array( $asset ) ); } else { $auto_updates[] = $asset; $auto_updates = array_unique( $auto_updates ); } // Remove items that have been deleted since the site option was last updated. $auto_updates = array_intersect( $auto_updates, array_keys( $all_items ) ); update_site_option( $option, $auto_updates ); wp_send_json_success(); } /** * Handles sending a password reset link via AJAX. * * @since 5.7.0 */ function wp_ajax_send_password_reset() { // Validate the nonce for this action. $user_id = isset( $_POST['user_id'] ) ? (int) $_POST['user_id'] : 0; check_ajax_referer( 'reset-password-for-' . $user_id, 'nonce' ); // Verify user capabilities. if ( ! current_user_can( 'edit_user', $user_id ) ) { wp_send_json_error( __( 'Cannot send password reset, permission denied.' ) ); } // Send the password reset link. $user = get_userdata( $user_id ); $results = retrieve_password( $user->user_login ); if ( true === $results ) { wp_send_json_success( /* translators: %s: User's display name. */ sprintf( __( 'A password reset link was emailed to %s.' ), $user->display_name ) ); } else { wp_send_json_error( $results->get_error_message() ); } } includes/class-wp-post-comments-list-table.php000064400000002655152213653150015473 0ustar00 __( 'Author' ), 'comment' => _x( 'Comment', 'column name' ), ), array(), array(), 'comment', ); } /** * @return array */ protected function get_table_classes() { $classes = parent::get_table_classes(); $classes[] = 'wp-list-table'; $classes[] = 'comments-box'; return $classes; } /** * @param bool $output_empty */ public function display( $output_empty = false ) { $singular = $this->_args['singular']; wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' ); ?> > display_rows_or_placeholder(); } ?> 'web', 'url' => '', 'plugin' => '', 'nonce' => '', 'title' => '', 'overwrite' => '', ); $args = wp_parse_args( $args, $defaults ); $this->type = $args['type']; $this->url = $args['url']; $this->api = $args['api'] ?? array(); $this->overwrite = $args['overwrite']; parent::__construct( $args ); } /** * Performs an action before installing a plugin. * * @since 2.8.0 */ public function before() { if ( ! empty( $this->api ) ) { $this->upgrader->strings['process_success'] = sprintf( $this->upgrader->strings['process_success_specific'], $this->api->name, $this->api->version ); } } /** * Hides the `process_failed` error when updating a plugin by uploading a zip file. * * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { if ( 'upload' === $this->type && '' === $this->overwrite && $wp_error->get_error_code() === 'folder_exists' ) { return true; } return false; } /** * Performs an action following a plugin install. * * @since 2.8.0 */ public function after() { // Check if the plugin can be overwritten and output the HTML. if ( $this->do_overwrite() ) { return; } $plugin_file = $this->upgrader->plugin_info(); $install_actions = array(); $from = isset( $_GET['from'] ) ? wp_unslash( $_GET['from'] ) : 'plugins'; if ( 'import' === $from ) { $install_actions['activate_plugin'] = sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&from=import&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), __( 'Activate Plugin & Run Importer' ) ); } elseif ( 'press-this' === $from ) { $install_actions['activate_plugin'] = sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&from=press-this&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), __( 'Activate Plugin & Go to Press This' ) ); } else { $install_actions['activate_plugin'] = sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), __( 'Activate Plugin' ) ); } if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { $install_actions['network_activate'] = sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&networkwide=1&plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file ), _x( 'Network Activate', 'plugin' ) ); unset( $install_actions['activate_plugin'] ); } if ( 'import' === $from ) { $install_actions['importers_page'] = sprintf( '%s', admin_url( 'import.php' ), __( 'Go to Importers' ) ); } elseif ( 'web' === $this->type ) { $install_actions['plugins_page'] = sprintf( '%s', self_admin_url( 'plugin-install.php' ), __( 'Go to Plugin Installer' ) ); } elseif ( 'upload' === $this->type && 'plugins' === $from ) { $install_actions['plugins_page'] = sprintf( '%s', self_admin_url( 'plugin-install.php' ), __( 'Go to Plugin Installer' ) ); } else { $install_actions['plugins_page'] = sprintf( '%s', self_admin_url( 'plugins.php' ), __( 'Go to Plugins page' ) ); } if ( ! $this->result || is_wp_error( $this->result ) ) { unset( $install_actions['activate_plugin'], $install_actions['network_activate'] ); } elseif ( ! current_user_can( 'activate_plugin', $plugin_file ) || is_plugin_active( $plugin_file ) ) { unset( $install_actions['activate_plugin'] ); } /** * Filters the list of action links available following a single plugin installation. * * @since 2.7.0 * * @param string[] $install_actions Array of plugin action links. * @param object $api Object containing WordPress.org API plugin data. Empty * for non-API installs, such as when a plugin is installed * via upload. * @param string $plugin_file Path to the plugin file relative to the plugins directory. */ $install_actions = apply_filters( 'install_plugin_complete_actions', $install_actions, $this->api, $plugin_file ); if ( ! empty( $install_actions ) ) { $this->feedback( implode( ' ', (array) $install_actions ) ); } } /** * Checks if the plugin can be overwritten and outputs the HTML for overwriting a plugin on upload. * * @since 5.5.0 * * @return bool Whether the plugin can be overwritten and HTML was outputted. */ private function do_overwrite() { if ( 'upload' !== $this->type || ! is_wp_error( $this->result ) || 'folder_exists' !== $this->result->get_error_code() ) { return false; } $folder = $this->result->get_error_data( 'folder_exists' ); $folder = ltrim( substr( $folder, strlen( WP_PLUGIN_DIR ) ), '/' ); $current_plugin_data = false; $all_plugins = get_plugins(); foreach ( $all_plugins as $plugin => $plugin_data ) { if ( strrpos( $plugin, $folder ) !== 0 ) { continue; } $current_plugin_data = $plugin_data; } $new_plugin_data = $this->upgrader->new_plugin_data; if ( ! $current_plugin_data || ! $new_plugin_data ) { return false; } echo '

        ' . esc_html__( 'This plugin is already installed.' ) . '

        '; $this->is_downgrading = version_compare( $current_plugin_data['Version'], $new_plugin_data['Version'], '>' ); $rows = array( 'Name' => __( 'Plugin name' ), 'Version' => __( 'Version' ), 'Author' => __( 'Author' ), 'RequiresWP' => __( 'Required WordPress version' ), 'RequiresPHP' => __( 'Required PHP version' ), ); $table = ''; $table .= ''; $table .= ''; $is_same_plugin = true; // Let's consider only these rows. foreach ( $rows as $field => $label ) { $old_value = ! empty( $current_plugin_data[ $field ] ) ? (string) $current_plugin_data[ $field ] : '-'; $new_value = ! empty( $new_plugin_data[ $field ] ) ? (string) $new_plugin_data[ $field ] : '-'; $is_same_plugin = $is_same_plugin && ( $old_value === $new_value ); $diff_field = ( 'Version' !== $field && $new_value !== $old_value ); $diff_version = ( 'Version' === $field && $this->is_downgrading ); $table .= ''; $table .= ( $diff_field || $diff_version ) ? ''; } $table .= '
        ' . esc_html_x( 'Current', 'plugin' ) . '' . esc_html_x( 'Uploaded', 'plugin' ) . '
        ' . $label . '' . wp_strip_all_tags( $old_value ) . '' : ''; $table .= wp_strip_all_tags( $new_value ) . '
        '; /** * Filters the compare table output for overwriting a plugin package on upload. * * @since 5.5.0 * * @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info. * @param array $current_plugin_data Array with current plugin data. * @param array $new_plugin_data Array with uploaded plugin data. */ echo apply_filters( 'install_plugin_overwrite_comparison', $table, $current_plugin_data, $new_plugin_data ); $install_actions = array(); $can_update = true; $blocked_message = '

        ' . esc_html__( 'The plugin cannot be updated due to the following:' ) . '

        '; $blocked_message .= '
          '; $requires_php = $new_plugin_data['RequiresPHP'] ?? null; $requires_wp = $new_plugin_data['RequiresWP'] ?? null; if ( ! is_php_version_compatible( $requires_php ) ) { $error = sprintf( /* translators: 1: Current PHP version, 2: Version required by the uploaded plugin. */ __( 'The PHP version on your server is %1$s, however the uploaded plugin requires %2$s.' ), PHP_VERSION, $requires_php ); $blocked_message .= '
        • ' . esc_html( $error ) . '
        • '; $can_update = false; } if ( ! is_wp_version_compatible( $requires_wp ) ) { $error = sprintf( /* translators: 1: Current WordPress version, 2: Version required by the uploaded plugin. */ __( 'Your WordPress version is %1$s, however the uploaded plugin requires %2$s.' ), esc_html( wp_get_wp_version() ), $requires_wp ); $blocked_message .= '
        • ' . esc_html( $error ) . '
        • '; $can_update = false; } $blocked_message .= '
        '; if ( $can_update ) { if ( $this->is_downgrading ) { $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to back up your database and files first.' ), __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ) ); } else { $warning = sprintf( /* translators: %s: Documentation URL. */ __( 'You are updating a plugin. Be sure to back up your database and files first.' ), __( 'https://developer.wordpress.org/advanced-administration/security/backup/' ) ); } echo '

        ' . $warning . '

        '; $overwrite = $this->is_downgrading ? 'downgrade-plugin' : 'update-plugin'; $install_actions['overwrite_plugin'] = sprintf( '%s', wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'plugin-upload' ), _x( 'Replace current with uploaded', 'plugin' ) ); } else { echo $blocked_message; } $cancel_url = add_query_arg( 'action', 'upload-plugin-cancel-overwrite', $this->url ); $install_actions['plugins_page'] = sprintf( '%s', wp_nonce_url( $cancel_url, 'plugin-upload-cancel-overwrite' ), __( 'Cancel and go back' ) ); /** * Filters the list of action links available following a single plugin installation failure * when overwriting is allowed. * * @since 5.5.0 * * @param string[] $install_actions Array of plugin action links. * @param object $api Object containing WordPress.org API plugin data. * @param array $new_plugin_data Array with uploaded plugin data. */ $install_actions = apply_filters( 'install_plugin_overwrite_actions', $install_actions, $this->api, $new_plugin_data ); if ( ! empty( $install_actions ) ) { printf( '', __( 'The uploaded file has expired. Please go back and upload it again.' ) ); echo '

        ' . implode( ' ', (array) $install_actions ) . '

        '; } return true; } } includes/class-wp-filesystem-direct.php000064400000044257152213653150014265 0ustar00method = 'direct'; $this->errors = new WP_Error(); } /** * Reads entire file into a string. * * @since 2.5.0 * * @param string $file Name of the file to read. * @return string|false Read data on success, false on failure. */ public function get_contents( $file ) { return @file_get_contents( $file ); } /** * Reads entire file into an array. * * @since 2.5.0 * * @param string $file Path to the file. * @return array|false File contents in an array on success, false on failure. */ public function get_contents_array( $file ) { return @file( $file ); } /** * Writes a string to a file. * * @since 2.5.0 * * @param string $file Remote path to the file where to write the data. * @param string $contents The data to write. * @param int|false $mode Optional. The file permissions as octal number, usually 0644. * Default false. * @return bool True on success, false on failure. */ public function put_contents( $file, $contents, $mode = false ) { $fp = @fopen( $file, 'wb' ); if ( ! $fp ) { return false; } mbstring_binary_safe_encoding(); $data_length = strlen( $contents ); $bytes_written = fwrite( $fp, $contents ); reset_mbstring_encoding(); fclose( $fp ); if ( $data_length !== $bytes_written ) { return false; } $this->chmod( $file, $mode ); return true; } /** * Gets the current working directory. * * @since 2.5.0 * * @return string|false The current working directory on success, false on failure. */ public function cwd() { return getcwd(); } /** * Changes current directory. * * @since 2.5.0 * * @param string $dir The new current directory. * @return bool True on success, false on failure. */ public function chdir( $dir ) { return @chdir( $dir ); } /** * Changes the file group. * * @since 2.5.0 * * @param string $file Path to the file. * @param string|int $group A group name or number. * @param bool $recursive Optional. If set to true, changes file group recursively. * Default false. * @return bool True on success, false on failure. */ public function chgrp( $file, $group, $recursive = false ) { if ( ! $this->exists( $file ) ) { return false; } if ( ! $recursive ) { return chgrp( $file, $group ); } if ( ! $this->is_dir( $file ) ) { return chgrp( $file, $group ); } // Is a directory, and we want recursive. $file = trailingslashit( $file ); $filelist = $this->dirlist( $file ); foreach ( $filelist as $filename ) { $this->chgrp( $file . $filename, $group, $recursive ); } return true; } /** * Changes filesystem permissions. * * @since 2.5.0 * * @param string $file Path to the file. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for directories. Default false. * @param bool $recursive Optional. If set to true, changes file permissions recursively. * Default false. * @return bool True on success, false on failure. */ public function chmod( $file, $mode = false, $recursive = false ) { if ( ! $mode ) { if ( $this->is_file( $file ) ) { $mode = FS_CHMOD_FILE; } elseif ( $this->is_dir( $file ) ) { $mode = FS_CHMOD_DIR; } else { return false; } } if ( ! $recursive || ! $this->is_dir( $file ) ) { $current_mode = fileperms( $file ) & 0777 | 0644; /* * fileperms() populates the stat cache, so have to clear it * to maintain parity with the previous behavior. */ clearstatcache( true, $file ); /* * Avoid calling chmod() if the requested mode is already set, * to prevent throwing a warning when we aren't the owner. */ if ( $current_mode === $mode ) { return true; } return chmod( $file, $mode ); } // Is a directory, and we want recursive. $file = trailingslashit( $file ); $filelist = $this->dirlist( $file ); foreach ( (array) $filelist as $filename => $filemeta ) { $this->chmod( $file . $filename, $mode, $recursive ); } return true; } /** * Changes the owner of a file or directory. * * @since 2.5.0 * * @param string $file Path to the file or directory. * @param string|int $owner A user name or number. * @param bool $recursive Optional. If set to true, changes file owner recursively. * Default false. * @return bool True on success, false on failure. */ public function chown( $file, $owner, $recursive = false ) { if ( ! $this->exists( $file ) ) { return false; } if ( ! $recursive ) { return chown( $file, $owner ); } if ( ! $this->is_dir( $file ) ) { return chown( $file, $owner ); } // Is a directory, and we want recursive. $filelist = $this->dirlist( $file ); foreach ( $filelist as $filename ) { $this->chown( $file . '/' . $filename, $owner, $recursive ); } return true; } /** * Gets the file owner. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false Username of the owner on success, false on failure. */ public function owner( $file ) { $owneruid = @fileowner( $file ); if ( ! $owneruid ) { return false; } if ( ! function_exists( 'posix_getpwuid' ) ) { return $owneruid; } $ownerarray = posix_getpwuid( $owneruid ); if ( ! $ownerarray ) { return false; } return $ownerarray['name']; } /** * Gets the permissions of the specified file or filepath in their octal format. * * @since 2.5.0 * * @param string $file Path to the file. * @return string Mode of the file (the last 3 digits), or the string "0" on failure. */ public function getchmod( $file ) { $perms = @fileperms( $file ); if ( false === $perms ) { return '0'; } return substr( decoct( $perms ), -3 ); } /** * Gets the file's group. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false The group on success, false on failure. */ public function group( $file ) { $gid = @filegroup( $file ); if ( ! $gid ) { return false; } if ( ! function_exists( 'posix_getgrgid' ) ) { return $gid; } $grouparray = posix_getgrgid( $gid ); if ( ! $grouparray ) { return false; } return $grouparray['name']; } /** * Copies a file. * * @since 2.5.0 * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for dirs. Default false. * @return bool True on success, false on failure. */ public function copy( $source, $destination, $overwrite = false, $mode = false ) { if ( ! $overwrite && $this->exists( $destination ) ) { return false; } $rtval = copy( $source, $destination ); if ( $mode ) { $this->chmod( $destination, $mode ); } return $rtval; } /** * Moves a file or directory. * * After moving files or directories, OPcache will need to be invalidated. * * If moving a directory fails, `copy_dir()` can be used for a recursive copy. * * Use `move_dir()` for moving directories with OPcache invalidation and a * fallback to `copy_dir()`. * * @since 2.5.0 * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @return bool True on success, false on failure. */ public function move( $source, $destination, $overwrite = false ) { if ( ! $overwrite && $this->exists( $destination ) ) { return false; } if ( $overwrite && $this->exists( $destination ) && ! $this->delete( $destination, true ) ) { // Can't overwrite if the destination couldn't be deleted. return false; } // Try using rename first. if that fails (for example, source is read only) try copy. if ( @rename( $source, $destination ) ) { return true; } // Backward compatibility: Only fall back to `::copy()` for single files. if ( $this->is_file( $source ) && $this->copy( $source, $destination, $overwrite ) && $this->exists( $destination ) ) { $this->delete( $source ); return true; } else { return false; } } /** * Deletes a file or directory. * * @since 2.5.0 * * @param string $file Path to the file or directory. * @param bool $recursive Optional. If set to true, deletes files and folders recursively. * Default false. * @param string|false $type Type of resource. 'f' for file, 'd' for directory. * Default false. * @return bool True on success, false on failure. */ public function delete( $file, $recursive = false, $type = false ) { if ( empty( $file ) ) { // Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem. return false; } $file = str_replace( '\\', '/', $file ); // For Win32, occasional problems deleting files otherwise. if ( 'f' === $type || $this->is_file( $file ) ) { return @unlink( $file ); } if ( ! $recursive && $this->is_dir( $file ) ) { return @rmdir( $file ); } // At this point it's a folder, and we're in recursive mode. $file = trailingslashit( $file ); $filelist = $this->dirlist( $file, true ); $retval = true; if ( is_array( $filelist ) ) { foreach ( $filelist as $filename => $fileinfo ) { if ( ! $this->delete( $file . $filename, $recursive, $fileinfo['type'] ) ) { $retval = false; } } } if ( file_exists( $file ) && ! @rmdir( $file ) ) { $retval = false; } return $retval; } /** * Checks if a file or directory exists. * * @since 2.5.0 * * @param string $path Path to file or directory. * @return bool Whether $path exists or not. */ public function exists( $path ) { return @file_exists( $path ); } /** * Checks if resource is a file. * * @since 2.5.0 * * @param string $file File path. * @return bool Whether $file is a file. */ public function is_file( $file ) { return @is_file( $file ); } /** * Checks if resource is a directory. * * @since 2.5.0 * * @param string $path Directory path. * @return bool Whether $path is a directory. */ public function is_dir( $path ) { return @is_dir( $path ); } /** * Checks if a file is readable. * * @since 2.5.0 * * @param string $file Path to file. * @return bool Whether $file is readable. */ public function is_readable( $file ) { return @is_readable( $file ); } /** * Checks if a file or directory is writable. * * @since 2.5.0 * * @param string $path Path to file or directory. * @return bool Whether $path is writable. */ public function is_writable( $path ) { return @is_writable( $path ); } /** * Gets the file's last access time. * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing last access time, false on failure. */ public function atime( $file ) { return @fileatime( $file ); } /** * Gets the file modification time. * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing modification time, false on failure. */ public function mtime( $file ) { return @filemtime( $file ); } /** * Gets the file size (in bytes). * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Size of the file in bytes on success, false on failure. */ public function size( $file ) { return @filesize( $file ); } /** * Sets the access and modification times of a file. * * Note: If $file doesn't exist, it will be created. * * @since 2.5.0 * * @param string $file Path to file. * @param int $time Optional. Modified time to set for file. * Default 0. * @param int $atime Optional. Access time to set for file. * Default 0. * @return bool True on success, false on failure. */ public function touch( $file, $time = 0, $atime = 0 ) { if ( 0 === $time ) { $time = time(); } if ( 0 === $atime ) { $atime = time(); } return touch( $file, $time, $atime ); } /** * Creates a directory. * * @since 2.5.0 * * @param string $path Path for new directory. * @param int|false $chmod Optional. The permissions as octal number (or false to skip chmod). * Default false. * @param string|int|false $chown Optional. A user name or number (or false to skip chown). * Default false. * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp). * Default false. * @return bool True on success, false on failure. */ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { // Safe mode fails with a trailing slash under certain PHP versions. $path = untrailingslashit( $path ); if ( empty( $path ) ) { return false; } if ( ! $chmod ) { $chmod = FS_CHMOD_DIR; } if ( ! @mkdir( $path ) ) { return false; } $this->chmod( $path, $chmod ); if ( $chown ) { $this->chown( $path, $chown ); } if ( $chgrp ) { $this->chgrp( $path, $chgrp ); } return true; } /** * Deletes a directory. * * @since 2.5.0 * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool True on success, false on failure. */ public function rmdir( $path, $recursive = false ) { return $this->delete( $path, $recursive ); } /** * Gets details for files in a directory or a specific file. * * @since 2.5.0 * * @param string $path Path to directory or file. * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. * Default true. * @param bool $recursive Optional. Whether to recursively include file details in nested directories. * Default false. * @return array|false { * Array of arrays containing file information. False if unable to list directory contents. * * @type array ...$0 { * Array of file information. Note that some elements may not be available on all filesystems. * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. * @type string $permsn Octal representation of permissions. * @type false $number File number. Always false in this context. * @type string|false $owner Owner name or ID, or false if not available. * @type string|false $group File permissions group, or false if not available. * @type int|string|false $size Size of file in bytes. May be a numeric string. * False if not available. * @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string. * False if not available. * @type string|false $lastmod Last modified month (3 letters) and day (without leading 0), or * false if not available. * @type string|false $time Last modified time, or false if not available. * @type string $type Type of resource. 'f' for file, 'd' for directory, 'l' for link. * @type array|false $files If a directory and `$recursive` is true, contains another array of * files. False if unable to list directory contents. * } * } */ public function dirlist( $path, $include_hidden = true, $recursive = false ) { if ( $this->is_file( $path ) ) { $limit_file = basename( $path ); $path = dirname( $path ); } else { $limit_file = false; } if ( ! $this->is_dir( $path ) || ! $this->is_readable( $path ) ) { return false; } $dir = dir( $path ); if ( ! $dir ) { return false; } $path = trailingslashit( $path ); $ret = array(); while ( false !== ( $entry = $dir->read() ) ) { $struc = array(); $struc['name'] = $entry; if ( '.' === $struc['name'] || '..' === $struc['name'] ) { continue; } if ( ! $include_hidden && '.' === $struc['name'][0] ) { continue; } if ( $limit_file && $struc['name'] !== $limit_file ) { continue; } $struc['perms'] = $this->gethchmod( $path . $entry ); $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); $struc['number'] = false; $struc['owner'] = $this->owner( $path . $entry ); $struc['group'] = $this->group( $path . $entry ); $struc['size'] = $this->size( $path . $entry ); $struc['lastmodunix'] = $this->mtime( $path . $entry ); $struc['lastmod'] = gmdate( 'M j', $struc['lastmodunix'] ); $struc['time'] = gmdate( 'h:i:s', $struc['lastmodunix'] ); $struc['type'] = $this->is_dir( $path . $entry ) ? 'd' : 'f'; if ( 'd' === $struc['type'] ) { if ( $recursive ) { $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); } else { $struc['files'] = array(); } } $ret[ $struc['name'] ] = $struc; } $dir->close(); unset( $dir ); return $ret; } } includes/misc.php000064400000132553152213653150010032 0ustar00 $text ) { $instructions[ $line ] = '# ' . $text; } /** * Filters the inline instructions inserted before the dynamically generated content. * * @since 5.3.0 * * @param string[] $instructions Array of lines with inline instructions. * @param string $marker The marker being inserted. */ $instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker ); if ( $switched_locale ) { restore_previous_locale(); } $insertion = array_merge( $instructions, $insertion ); $start_marker = "# BEGIN {$marker}"; $end_marker = "# END {$marker}"; $fp = fopen( $filename, 'r+' ); if ( ! $fp ) { return false; } // Attempt to get a lock. If the filesystem supports locking, this will block until the lock is acquired. flock( $fp, LOCK_EX ); $lines = array(); while ( ! feof( $fp ) ) { $lines[] = rtrim( fgets( $fp ), "\r\n" ); } // Split out the existing file into the preceding lines, and those that appear after the marker. $pre_lines = array(); $post_lines = array(); $existing_lines = array(); $found_marker = false; $found_end_marker = false; foreach ( $lines as $line ) { if ( ! $found_marker && str_contains( $line, $start_marker ) ) { $found_marker = true; continue; } elseif ( ! $found_end_marker && str_contains( $line, $end_marker ) ) { $found_end_marker = true; continue; } if ( ! $found_marker ) { $pre_lines[] = $line; } elseif ( $found_end_marker ) { $post_lines[] = $line; } else { $existing_lines[] = $line; } } // Check to see if there was a change. if ( $existing_lines === $insertion ) { flock( $fp, LOCK_UN ); fclose( $fp ); return true; } // Generate the new file data. $new_file_data = implode( "\n", array_merge( $pre_lines, array( $start_marker ), $insertion, array( $end_marker ), $post_lines ) ); // Write to the start of the file, and truncate it to that length. fseek( $fp, 0 ); $bytes = fwrite( $fp, $new_file_data ); if ( $bytes ) { ftruncate( $fp, ftell( $fp ) ); } fflush( $fp ); flock( $fp, LOCK_UN ); fclose( $fp ); return (bool) $bytes; } /** * Updates the htaccess file with the current rules if it is writable. * * Always writes to the file if it exists and is writable to ensure that we * blank out old rules. * * @since 1.5.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @return bool|null True on write success, false on failure. Null in multisite. */ function save_mod_rewrite_rules() { global $wp_rewrite; if ( is_multisite() ) { return null; } // Ensure get_home_path() is declared. require_once ABSPATH . 'wp-admin/includes/file.php'; $home_path = get_home_path(); $htaccess_file = $home_path . '.htaccess'; /* * If the file doesn't already exist check for write access to the directory * and whether we have some rules. Else check for write access to the file. */ if ( ! file_exists( $htaccess_file ) && is_writable( $home_path ) && $wp_rewrite->using_mod_rewrite_permalinks() || is_writable( $htaccess_file ) ) { if ( got_mod_rewrite() ) { $rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() ); return insert_with_markers( $htaccess_file, 'WordPress', $rules ); } } return false; } /** * Updates the IIS web.config file with the current rules if it is writable. * If the permalinks do not require rewrite rules then the rules are deleted from the web.config file. * * @since 2.8.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @return bool|null True on write success, false on failure. Null in multisite. */ function iis7_save_url_rewrite_rules() { global $wp_rewrite; if ( is_multisite() ) { return null; } // Ensure get_home_path() is declared. require_once ABSPATH . 'wp-admin/includes/file.php'; $home_path = get_home_path(); $web_config_file = $home_path . 'web.config'; // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP. if ( iis7_supports_permalinks() && ( ! file_exists( $web_config_file ) && win_is_writable( $home_path ) && $wp_rewrite->using_mod_rewrite_permalinks() || win_is_writable( $web_config_file ) ) ) { $rule = $wp_rewrite->iis7_url_rewrite_rules( false ); if ( ! empty( $rule ) ) { return iis7_add_rewrite_rule( $web_config_file, $rule ); } else { return iis7_delete_rewrite_rule( $web_config_file ); } } return false; } /** * Updates the "recently-edited" file for the plugin or theme file editor. * * @since 1.5.0 * * @param string $file Path to the recently edited file. */ function update_recently_edited( $file ) { $oldfiles = (array) get_option( 'recently_edited' ); if ( $oldfiles ) { $oldfiles = array_reverse( $oldfiles ); $oldfiles[] = $file; $oldfiles = array_reverse( $oldfiles ); $oldfiles = array_unique( $oldfiles ); if ( 5 < count( $oldfiles ) ) { array_pop( $oldfiles ); } } else { $oldfiles[] = $file; } update_option( 'recently_edited', $oldfiles ); } /** * Makes a tree structure for the theme file editor's file list. * * @since 4.9.0 * @access private * * @param array $allowed_files List of theme file paths. * @return array Tree structure for listing theme files. */ function wp_make_theme_file_tree( $allowed_files ) { $tree_list = array(); foreach ( $allowed_files as $file_name => $absolute_filename ) { $list = explode( '/', $file_name ); $last_dir = &$tree_list; foreach ( $list as $dir ) { $last_dir =& $last_dir[ $dir ]; } $last_dir = $file_name; } return $tree_list; } /** * Outputs the formatted file list for the theme file editor. * * @since 4.9.0 * @access private * * @global string $relative_file Name of the file being edited relative to the * theme directory. * @global string $stylesheet The stylesheet name of the theme being edited. * * @param array|string $tree List of file/folder paths, or filename. * @param int $level The aria-level for the current iteration. * @param int $size The aria-setsize for the current iteration. * @param int $index The aria-posinset for the current iteration. */ function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) { global $relative_file, $stylesheet; if ( is_array( $tree ) ) { $index = 0; $size = count( $tree ); foreach ( $tree as $label => $theme_file ) : ++$index; if ( ! is_array( $theme_file ) ) { wp_print_theme_file_tree( $theme_file, $level, $index, $size ); continue; } ?>
      • rawurlencode( $tree ), 'theme' => rawurlencode( $stylesheet ), ), self_admin_url( 'theme-editor.php' ) ); ?>
      • (' . esc_html( $filename ) . ')'; } if ( $relative_file === $filename ) { echo '' . $file_description . ''; } else { echo $file_description; } ?>
      • $plugin_file ) : ++$index; if ( ! is_array( $plugin_file ) ) { wp_print_plugin_file_tree( $plugin_file, $label, $level, $index, $size ); continue; } ?>
      • rawurlencode( $tree ), 'plugin' => rawurlencode( $plugin ), ), self_admin_url( 'plugin-editor.php' ) ); ?>
      • ' . esc_html( $label ) . ''; } else { echo esc_html( $label ); } ?>
      • get_error_data() && is_string( $message->get_error_data() ) ) { $message = $message->get_error_message() . ': ' . $message->get_error_data(); } else { $message = $message->get_error_message(); } } echo "

        $message

        \n"; wp_ob_end_flush_all(); flush(); } /** * Parses the PHP content and finds function calls to be used for documentation linking. * * @since 2.8.0 * * @param string $content The PHP content to parse. * @return string[] Array of function names. */ function wp_doc_link_parse( $content ) { if ( ! is_string( $content ) || empty( $content ) ) { return array(); } if ( ! function_exists( 'token_get_all' ) ) { return array(); } $tokens = token_get_all( $content ); $count = count( $tokens ); $functions = array(); $ignore_functions = array(); for ( $t = 0; $t < $count - 2; $t++ ) { if ( ! is_array( $tokens[ $t ] ) ) { continue; } if ( T_STRING === $tokens[ $t ][0] && ( '(' === $tokens[ $t + 1 ] || '(' === $tokens[ $t + 2 ] ) ) { // If it's a function or class defined locally, there's not going to be any docs available. if ( ( isset( $tokens[ $t - 2 ][1] ) && in_array( $tokens[ $t - 2 ][1], array( 'function', 'class' ), true ) ) || ( isset( $tokens[ $t - 2 ][0] ) && T_OBJECT_OPERATOR === $tokens[ $t - 1 ][0] ) ) { $ignore_functions[] = $tokens[ $t ][1]; } // Add this to our stack of unique references. $functions[] = $tokens[ $t ][1]; } } $functions = array_unique( $functions ); sort( $functions ); /** * Filters the list of functions and classes to be ignored from the documentation lookup. * * @since 2.8.0 * * @param string[] $ignore_functions Array of names of functions and classes to be ignored. */ $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions ); $ignore_functions = array_unique( $ignore_functions ); $output = array(); foreach ( $functions as $function ) { if ( in_array( $function, $ignore_functions, true ) ) { continue; } $output[] = $function; } return $output; } /** * Saves option for number of rows when listing posts, pages, comments, etc. * * @since 2.8.0 */ function set_screen_options() { if ( ! isset( $_POST['wp_screen_options'] ) || ! is_array( $_POST['wp_screen_options'] ) ) { return; } check_admin_referer( 'screen-options-nonce', 'screenoptionnonce' ); $user = wp_get_current_user(); if ( ! $user ) { return; } $option = $_POST['wp_screen_options']['option']; $value = $_POST['wp_screen_options']['value']; if ( sanitize_key( $option ) !== $option ) { return; } $map_option = $option; $type = str_replace( 'edit_', '', $map_option ); $type = str_replace( '_per_page', '', $type ); if ( in_array( $type, get_taxonomies(), true ) ) { $map_option = 'edit_tags_per_page'; } elseif ( in_array( $type, get_post_types(), true ) ) { $map_option = 'edit_per_page'; } else { $option = str_replace( '-', '_', $option ); } switch ( $map_option ) { case 'edit_per_page': case 'users_per_page': case 'edit_comments_per_page': case 'upload_per_page': case 'edit_tags_per_page': case 'plugins_per_page': case 'export_personal_data_requests_per_page': case 'remove_personal_data_requests_per_page': // Network admin. case 'sites_network_per_page': case 'users_network_per_page': case 'site_users_network_per_page': case 'plugins_network_per_page': case 'themes_network_per_page': case 'site_themes_network_per_page': $value = (int) $value; if ( $value < 1 || $value > 999 ) { return; } break; default: $screen_option = false; if ( str_ends_with( $option, '_page' ) || 'layout_columns' === $option ) { /** * Filters a screen option value before it is set. * * The filter can also be used to modify non-standard `[items]_per_page` * settings. See the parent function for a full list of standard options. * * Returning false from the filter will skip saving the current option. * * @since 2.8.0 * @since 5.4.2 Only applied to options ending with '_page', * or the 'layout_columns' option. * * @see set_screen_options() * * @param mixed $screen_option The value to save instead of the option value. * Default false (to skip saving the current option). * @param string $option The option name. * @param int $value The option value. */ $screen_option = apply_filters( 'set-screen-option', $screen_option, $option, $value ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } /** * Filters a screen option value before it is set. * * The dynamic portion of the hook name, `$option`, refers to the option name. * * Returning false from the filter will skip saving the current option. * * @since 5.4.2 * * @see set_screen_options() * * @param mixed $screen_option The value to save instead of the option value. * Default false (to skip saving the current option). * @param string $option The option name. * @param int $value The option value. */ $value = apply_filters( "set_screen_option_{$option}", $screen_option, $option, $value ); if ( false === $value ) { return; } break; } update_user_meta( $user->ID, $option, $value ); $url = remove_query_arg( array( 'pagenum', 'apage', 'paged' ), wp_get_referer() ); if ( isset( $_POST['mode'] ) ) { $url = add_query_arg( array( 'mode' => $_POST['mode'] ), $url ); } wp_safe_redirect( $url ); exit; } /** * Checks if rewrite rule for WordPress already exists in the IIS 7+ configuration file. * * @since 2.8.0 * * @param string $filename The file path to the configuration file. * @return bool Whether the rule exists. */ function iis7_rewrite_rule_exists( $filename ) { if ( ! file_exists( $filename ) ) { return false; } if ( ! class_exists( 'DOMDocument', false ) ) { return false; } $doc = new DOMDocument(); if ( $doc->load( $filename ) === false ) { return false; } $xpath = new DOMXPath( $doc ); $rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' ); if ( 0 === $rules->length ) { return false; } return true; } /** * Deletes WordPress rewrite rule from web.config file if it exists there. * * @since 2.8.0 * * @param string $filename Name of the configuration file. * @return bool Whether the rule was deleted. */ function iis7_delete_rewrite_rule( $filename ) { // If configuration file does not exist then rules also do not exist, so there is nothing to delete. if ( ! file_exists( $filename ) ) { return true; } if ( ! class_exists( 'DOMDocument', false ) ) { return false; } $doc = new DOMDocument(); $doc->preserveWhiteSpace = false; if ( $doc->load( $filename ) === false ) { return false; } $xpath = new DOMXPath( $doc ); $rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' ); if ( $rules->length > 0 ) { $child = $rules->item( 0 ); $parent = $child->parentNode; $parent->removeChild( $child ); $doc->formatOutput = true; saveDomDocument( $doc, $filename ); } return true; } /** * Adds WordPress rewrite rule to the IIS 7+ configuration file. * * @since 2.8.0 * * @param string $filename The file path to the configuration file. * @param string $rewrite_rule The XML fragment with URL Rewrite rule. * @return bool Whether the rule was added. */ function iis7_add_rewrite_rule( $filename, $rewrite_rule ) { if ( ! class_exists( 'DOMDocument', false ) ) { return false; } // If configuration file does not exist then we create one. if ( ! file_exists( $filename ) ) { $fp = fopen( $filename, 'w' ); fwrite( $fp, '' ); fclose( $fp ); } $doc = new DOMDocument(); $doc->preserveWhiteSpace = false; if ( $doc->load( $filename ) === false ) { return false; } $xpath = new DOMXPath( $doc ); // First check if the rule already exists as in that case there is no need to re-add it. $wordpress_rules = $xpath->query( '/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]' ); if ( $wordpress_rules->length > 0 ) { return true; } // Check the XPath to the rewrite rule and create XML nodes if they do not exist. $xml_nodes = $xpath->query( '/configuration/system.webServer/rewrite/rules' ); if ( $xml_nodes->length > 0 ) { $rules_node = $xml_nodes->item( 0 ); } else { $rules_node = $doc->createElement( 'rules' ); $xml_nodes = $xpath->query( '/configuration/system.webServer/rewrite' ); if ( $xml_nodes->length > 0 ) { $rewrite_node = $xml_nodes->item( 0 ); $rewrite_node->appendChild( $rules_node ); } else { $rewrite_node = $doc->createElement( 'rewrite' ); $rewrite_node->appendChild( $rules_node ); $xml_nodes = $xpath->query( '/configuration/system.webServer' ); if ( $xml_nodes->length > 0 ) { $system_web_server_node = $xml_nodes->item( 0 ); $system_web_server_node->appendChild( $rewrite_node ); } else { $system_web_server_node = $doc->createElement( 'system.webServer' ); $system_web_server_node->appendChild( $rewrite_node ); $xml_nodes = $xpath->query( '/configuration' ); if ( $xml_nodes->length > 0 ) { $config_node = $xml_nodes->item( 0 ); $config_node->appendChild( $system_web_server_node ); } else { $config_node = $doc->createElement( 'configuration' ); $doc->appendChild( $config_node ); $config_node->appendChild( $system_web_server_node ); } } } } $rule_fragment = $doc->createDocumentFragment(); $rule_fragment->appendXML( $rewrite_rule ); $rules_node->appendChild( $rule_fragment ); $doc->encoding = 'UTF-8'; $doc->formatOutput = true; saveDomDocument( $doc, $filename ); return true; } /** * Saves the XML document into a file. * * @since 2.8.0 * * @param DOMDocument $doc The DOMDocument object to save. * @param string $filename The file path to save the XML document to. */ function saveDomDocument( $doc, $filename ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid $config = $doc->saveXML(); $config = preg_replace( "/([^\r])\n/", "$1\r\n", $config ); $fp = fopen( $filename, 'w' ); fwrite( $fp, $config ); fclose( $fp ); } /** * Displays the default administration color scheme picker (Used in user-edit.php). * * @since 3.0.0 * * @global array $_wp_admin_css_colors * * @param int $user_id User ID. */ function admin_color_scheme_picker( $user_id ) { global $_wp_admin_css_colors; ksort( $_wp_admin_css_colors ); if ( isset( $_wp_admin_css_colors['modern'] ) ) { // Set Modern (new default), Classic ('fresh'), and Light first. $_wp_admin_css_colors = array_filter( array_merge( array( 'modern' => '', 'fresh' => '', 'light' => '', ), $_wp_admin_css_colors ) ); } $current_color = get_user_option( 'admin_color', $user_id ); if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) { $current_color = 'modern'; } ?>
        $color_info ) : ?>
        />
        colors as $html_color ) { ?>
         
        icon_colors ) ) { $icon_colors = $_wp_admin_css_colors[ $color_scheme ]->icon_colors; } elseif ( ! empty( $_wp_admin_css_colors['modern']->icon_colors ) ) { $icon_colors = $_wp_admin_css_colors['modern']->icon_colors; } else { // Fall back to the default set of icon colors if the default scheme is missing. $icon_colors = array( 'base' => '#a7aaad', 'focus' => '#72aee6', 'current' => '#fff', ); } echo '\n"; } /** * Displays the viewport meta in the admin. * * @since 5.5.0 */ function wp_admin_viewport_meta() { /** * Filters the viewport meta in the admin. * * @since 5.5.0 * * @param string $viewport_meta The viewport meta. */ $viewport_meta = apply_filters( 'admin_viewport_meta', 'width=device-width,initial-scale=1.0' ); if ( empty( $viewport_meta ) ) { return; } echo ''; } /** * Adds viewport meta for mobile in Customizer. * * Hooked to the {@see 'admin_viewport_meta'} filter. * * @since 5.5.0 * * @param string $viewport_meta The viewport meta. * @return string Filtered viewport meta. */ function _customizer_mobile_viewport_meta( $viewport_meta ) { return trim( $viewport_meta, ',' ) . ',minimum-scale=0.5,maximum-scale=1.2'; } /** * Checks lock status for posts displayed on the Posts screen. * * @since 3.6.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. * @return array The Heartbeat response. */ function wp_check_locked_posts( $response, $data, $screen_id ) { $checked = array(); if ( array_key_exists( 'wp-check-locked-posts', $data ) && is_array( $data['wp-check-locked-posts'] ) ) { foreach ( $data['wp-check-locked-posts'] as $key ) { $post_id = absint( substr( $key, 5 ) ); if ( ! $post_id ) { continue; } $user_id = wp_check_post_lock( $post_id ); if ( $user_id ) { $user = get_userdata( $user_id ); if ( $user && current_user_can( 'edit_post', $post_id ) ) { $send = array( 'name' => $user->display_name, /* translators: %s: User's display name. */ 'text' => sprintf( __( '%s is currently editing' ), $user->display_name ), ); if ( get_option( 'show_avatars' ) ) { $send['avatar_src'] = get_avatar_url( $user->ID, array( 'size' => 18 ) ); $send['avatar_src_2x'] = get_avatar_url( $user->ID, array( 'size' => 36 ) ); } $checked[ $key ] = $send; } } } } if ( ! empty( $checked ) ) { $response['wp-check-locked-posts'] = $checked; } return $response; } /** * Checks lock status on the New/Edit Post screen and refresh the lock. * * @since 3.6.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. * @return array The Heartbeat response. */ function wp_refresh_post_lock( $response, $data, $screen_id ) { if ( array_key_exists( 'wp-refresh-post-lock', $data ) ) { $received = $data['wp-refresh-post-lock']; $send = array(); $post_id = absint( $received['post_id'] ); if ( ! $post_id ) { return $response; } if ( ! current_user_can( 'edit_post', $post_id ) ) { return $response; } $user_id = wp_check_post_lock( $post_id ); $user = get_userdata( $user_id ); if ( $user ) { $error = array( 'name' => $user->display_name, /* translators: %s: User's display name. */ 'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ), ); if ( get_option( 'show_avatars' ) ) { $error['avatar_src'] = get_avatar_url( $user->ID, array( 'size' => 64 ) ); $error['avatar_src_2x'] = get_avatar_url( $user->ID, array( 'size' => 128 ) ); } $send['lock_error'] = $error; } else { $new_lock = wp_set_post_lock( $post_id ); if ( $new_lock ) { $send['new_lock'] = implode( ':', $new_lock ); } } $response['wp-refresh-post-lock'] = $send; } return $response; } /** * Checks nonce expiration on the New/Edit Post screen and refresh if needed. * * @since 3.6.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @param string $screen_id The screen ID. * @return array The Heartbeat response. */ function wp_refresh_post_nonces( $response, $data, $screen_id ) { if ( array_key_exists( 'wp-refresh-post-nonces', $data ) ) { $received = $data['wp-refresh-post-nonces']; $response['wp-refresh-post-nonces'] = array( 'check' => 1 ); $post_id = absint( $received['post_id'] ); if ( ! $post_id ) { return $response; } if ( ! current_user_can( 'edit_post', $post_id ) ) { return $response; } $response['wp-refresh-post-nonces'] = array( 'replace' => array( 'getpermalinknonce' => wp_create_nonce( 'getpermalink' ), 'samplepermalinknonce' => wp_create_nonce( 'samplepermalink' ), 'closedpostboxesnonce' => wp_create_nonce( 'closedpostboxes' ), '_ajax_linking_nonce' => wp_create_nonce( 'internal-linking' ), '_wpnonce' => wp_create_nonce( 'update-post_' . $post_id ), ), ); } return $response; } /** * Refresh nonces used with meta boxes in the block editor. * * @since 6.1.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @return array The Heartbeat response. */ function wp_refresh_metabox_loader_nonces( $response, $data ) { if ( empty( $data['wp-refresh-metabox-loader-nonces'] ) ) { return $response; } $received = $data['wp-refresh-metabox-loader-nonces']; $post_id = (int) $received['post_id']; if ( ! $post_id ) { return $response; } if ( ! current_user_can( 'edit_post', $post_id ) ) { return $response; } $response['wp-refresh-metabox-loader-nonces'] = array( 'replace' => array( 'metabox_loader_nonce' => wp_create_nonce( 'meta-box-loader' ), '_wpnonce' => wp_create_nonce( 'update-post_' . $post_id ), ), ); return $response; } /** * Adds the latest Heartbeat and REST API nonce to the Heartbeat response. * * @since 5.0.0 * * @param array $response The Heartbeat response. * @return array The Heartbeat response. */ function wp_refresh_heartbeat_nonces( $response ) { // Refresh the Rest API nonce. $response['rest_nonce'] = wp_create_nonce( 'wp_rest' ); // Refresh the Heartbeat nonce. $response['heartbeat_nonce'] = wp_create_nonce( 'heartbeat-nonce' ); return $response; } /** * Disables suspension of Heartbeat on the Add/Edit Post screens. * * @since 3.8.0 * * @global string $pagenow The filename of the current screen. * * @param array $settings An array of Heartbeat settings. * @return array Filtered Heartbeat settings. */ function wp_heartbeat_set_suspension( $settings ) { global $pagenow; if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) { $settings['suspension'] = 'disable'; } return $settings; } /** * Performs autosave with heartbeat. * * @since 3.9.0 * * @param array $response The Heartbeat response. * @param array $data The $_POST data sent. * @return array The Heartbeat response. */ function heartbeat_autosave( $response, $data ) { if ( ! empty( $data['wp_autosave'] ) ) { $saved = wp_autosave( $data['wp_autosave'] ); if ( is_wp_error( $saved ) ) { $response['wp_autosave'] = array( 'success' => false, 'message' => $saved->get_error_message(), ); } elseif ( empty( $saved ) ) { $response['wp_autosave'] = array( 'success' => false, 'message' => __( 'Error while saving.' ), ); } else { /* translators: Draft saved date format, see https://www.php.net/manual/datetime.format.php */ $draft_saved_date_format = __( 'g:i:s a' ); $response['wp_autosave'] = array( 'success' => true, /* translators: %s: Date and time. */ 'message' => sprintf( __( 'Draft saved at %s.' ), date_i18n( $draft_saved_date_format ) ), ); } } return $response; } /** * Removes single-use URL parameters and create canonical link based on new URL. * * Removes specific query string parameters from a URL, create the canonical link, * put it in the admin header, and change the current URL to match. * * @since 4.2.0 */ function wp_admin_canonical_url() { $removable_query_args = wp_removable_query_args(); if ( empty( $removable_query_args ) ) { return; } // Ensure we're using an absolute URL. $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $filtered_url = remove_query_arg( $removable_query_args, $current_url ); /** * Filters the admin canonical URL value. * * @since 6.5.0 * * @param string $filtered_url The admin canonical URL value. */ $filtered_url = apply_filters( 'wp_admin_canonical_url', $filtered_url ); ?> $hash, 'newemail' => $value, ); update_option( 'adminhash', $new_admin_email, false ); $switched_locale = switch_to_user_locale( get_current_user_id() ); /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy, A site administrator (###USERNAME###) recently requested to have the administration email address changed on this site: ###SITEURL### To confirm this change, please click on the following link: ###ADMIN_URL### You can safely ignore and delete this email if you do not want to take this action. This email has been sent to ###EMAIL### Regards, All at ###SITENAME### ###SITEURL###' ); /** * Filters the text of the email sent when a change of site admin email address is attempted. * * The following strings have a special meaning and will get replaced dynamically: * * - `###USERNAME###` The current user's username. * - `###ADMIN_URL###` The link to click on to confirm the email change. * - `###EMAIL###` The proposed new site admin email address. * - `###SITENAME###` The name of the site. * - `###SITEURL###` The URL to the site. * * @since MU (3.0.0) * @since 4.9.0 This filter is no longer Multisite specific. * * @param string $email_text Text in the email. * @param array $new_admin_email { * Data relating to the new site admin email address. * * @type string $hash The secure hash used in the confirmation link URL. * @type string $newemail The proposed new site admin email address. * } */ $content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email ); $current_user = wp_get_current_user(); $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash=' . $hash ) ), $content ); $content = str_replace( '###EMAIL###', $value, $content ); $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content ); $content = str_replace( '###SITEURL###', home_url(), $content ); if ( '' !== get_option( 'blogname' ) ) { $site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); } else { $site_title = parse_url( home_url(), PHP_URL_HOST ); } $subject = sprintf( /* translators: New admin email address notification email subject. %s: Site title. */ __( '[%s] New Admin Email Address' ), $site_title ); /** * Filters the subject of the email sent when a change of site admin email address is attempted. * * @since 6.5.0 * * @param string $subject Subject of the email. */ $subject = apply_filters( 'new_admin_email_subject', $subject ); wp_mail( $value, $subject, $content ); if ( $switched_locale ) { restore_previous_locale(); } } /** * Appends '(Draft)' to draft page titles in the privacy page dropdown * so that unpublished content is obvious. * * @since 4.9.8 * @access private * * @param string $title Page title. * @param WP_Post $page Page data object. * @return string Page title. */ function _wp_privacy_settings_filter_draft_page_titles( $title, $page ) { if ( 'draft' === $page->post_status && 'privacy' === get_current_screen()->id ) { /* translators: %s: Page title. */ $title = sprintf( __( '%s (Draft)' ), $title ); } return $title; } /** * Checks if the user needs to update PHP. * * @since 5.1.0 * @since 5.1.1 Added the {@see 'wp_is_php_version_acceptable'} filter. * * @return array|false { * Array of PHP version data. False on failure. * * @type string $recommended_version The PHP version recommended by WordPress. * @type string $minimum_version The minimum required PHP version. * @type bool $is_supported Whether the PHP version is actively supported. * @type bool $is_secure Whether the PHP version receives security updates. * @type bool $is_acceptable Whether the PHP version is still acceptable or warnings * should be shown and an update recommended. * } */ function wp_check_php_version() { $version = PHP_VERSION; $key = md5( $version ); $response = get_site_transient( 'php_check_' . $key ); if ( false === $response ) { $url = 'http://api.wordpress.org/core/serve-happy/1.0/'; if ( wp_http_supports( array( 'ssl' ) ) ) { $url = set_url_scheme( $url, 'https' ); } $url = add_query_arg( 'php_version', $version, $url ); $response = wp_remote_get( $url ); if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) { return false; } $response = json_decode( wp_remote_retrieve_body( $response ), true ); if ( ! is_array( $response ) ) { return false; } set_site_transient( 'php_check_' . $key, $response, WEEK_IN_SECONDS ); } if ( isset( $response['is_acceptable'] ) && $response['is_acceptable'] ) { /** * Filters whether the active PHP version is considered acceptable by WordPress. * * Returning false will trigger a PHP version warning to show up in the admin dashboard to administrators. * * This filter is only run if the wordpress.org Serve Happy API considers the PHP version acceptable, ensuring * that this filter can only make this check stricter, but not loosen it. * * @since 5.1.1 * * @param bool $is_acceptable Whether the PHP version is considered acceptable. Default true. * @param string $version PHP version checked. */ $response['is_acceptable'] = (bool) apply_filters( 'wp_is_php_version_acceptable', true, $version ); } $response['is_lower_than_future_minimum'] = false; // The minimum supported PHP version will be updated to at least 8.0 in the future. Check if the current version is lower. if ( version_compare( $version, '8.0', '<' ) ) { $response['is_lower_than_future_minimum'] = true; // Force showing of warnings. $response['is_acceptable'] = false; } return $response; } includes/class-wp-ms-sites-list-table.php000064400000054355152213653150014433 0ustar00status_list = array( 'archived' => array( 'site-archived', __( 'Archived' ) ), 'spam' => array( 'site-spammed', _x( 'Spam', 'site' ) ), 'deleted' => array( 'site-deleted', __( 'Flagged for Deletion' ) ), 'mature' => array( 'site-mature', __( 'Mature' ) ), ); parent::__construct( array( 'plural' => 'sites', 'screen' => $args['screen'] ?? null, ) ); } /** * Checks if the current user has permissions to manage sites. * * @since 3.1.0 * * @return bool Whether the user can manage sites. */ public function ajax_user_can() { return current_user_can( 'manage_sites' ); } /** * Prepares the list of sites for display. * * @since 3.1.0 * * @global string $mode List table view mode. * @global string $s Search string. * @global wpdb $wpdb WordPress database abstraction object. */ public function prepare_items() { global $mode, $s, $wpdb; if ( ! empty( $_REQUEST['mode'] ) ) { $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; set_user_setting( 'sites_list_mode', $mode ); } else { $mode = get_user_setting( 'sites_list_mode', 'list' ); } $per_page = $this->get_items_per_page( 'sites_network_per_page' ); $pagenum = $this->get_pagenum(); $s = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : ''; $wild = ''; if ( str_contains( $s, '*' ) ) { $wild = '*'; $s = trim( $s, '*' ); } /* * If the network is large and a search is not being performed, show only * the latest sites with no paging in order to avoid expensive count queries. */ if ( ! $s && wp_is_large_network() ) { if ( ! isset( $_REQUEST['orderby'] ) ) { $_GET['orderby'] = ''; $_REQUEST['orderby'] = ''; } if ( ! isset( $_REQUEST['order'] ) ) { $_GET['order'] = 'DESC'; $_REQUEST['order'] = 'DESC'; } } $args = array( 'number' => (int) $per_page, 'offset' => (int) ( ( $pagenum - 1 ) * $per_page ), 'network_id' => get_current_network_id(), ); if ( empty( $s ) ) { // Nothing to do. } elseif ( preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $s ) || preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.?$/', $s ) || preg_match( '/^[0-9]{1,3}\.[0-9]{1,3}\.?$/', $s ) || preg_match( '/^[0-9]{1,3}\.$/', $s ) ) { // IPv4 address. $reg_blog_ids = $wpdb->get_col( $wpdb->prepare( "SELECT blog_id FROM {$wpdb->registration_log} WHERE {$wpdb->registration_log}.IP LIKE %s", $wpdb->esc_like( $s ) . ( ! empty( $wild ) ? '%' : '' ) ) ); if ( $reg_blog_ids ) { $args['site__in'] = $reg_blog_ids; } } elseif ( is_numeric( $s ) && empty( $wild ) ) { $args['ID'] = $s; } else { $args['search'] = $s; if ( ! is_subdomain_install() ) { $args['search_columns'] = array( 'path' ); } } $order_by = $_REQUEST['orderby'] ?? ''; if ( 'registered' === $order_by ) { // 'registered' is a valid field name. } elseif ( 'lastupdated' === $order_by ) { $order_by = 'last_updated'; } elseif ( 'blogname' === $order_by ) { if ( is_subdomain_install() ) { $order_by = 'domain'; } else { $order_by = 'path'; } } elseif ( 'blog_id' === $order_by ) { $order_by = 'id'; } elseif ( ! $order_by ) { $order_by = false; } $args['orderby'] = $order_by; if ( $order_by ) { $args['order'] = ( isset( $_REQUEST['order'] ) && 'DESC' === strtoupper( $_REQUEST['order'] ) ) ? 'DESC' : 'ASC'; } if ( wp_is_large_network() ) { $args['no_found_rows'] = true; } else { $args['no_found_rows'] = false; } // Take into account the role the user has selected. $status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : ''; if ( in_array( $status, array( 'public', 'archived', 'mature', 'spam', 'deleted' ), true ) ) { $args[ $status ] = 1; } /** * Filters the arguments for the site query in the sites list table. * * @since 4.6.0 * * @param array $args An array of get_sites() arguments. */ $args = apply_filters( 'ms_sites_list_table_query_args', $args ); $_sites = get_sites( $args ); if ( is_array( $_sites ) ) { update_site_cache( $_sites ); $this->items = array_slice( $_sites, 0, $per_page ); } $total_sites = get_sites( array_merge( $args, array( 'count' => true, 'offset' => 0, 'number' => 0, ) ) ); $this->set_pagination_args( array( 'total_items' => $total_sites, 'per_page' => $per_page, ) ); } /** * Displays a message when no sites are found. * * @since 3.1.0 */ public function no_items() { _e( 'No sites found.' ); } /** * Gets links to filter sites by status. * * @since 5.3.0 * * @return array */ protected function get_views() { $counts = wp_count_sites(); $statuses = array( /* translators: %s: Number of sites. */ 'all' => _nx_noop( 'All (%s)', 'All (%s)', 'sites' ), /* translators: %s: Number of sites. */ 'public' => _n_noop( 'Public (%s)', 'Public (%s)' ), /* translators: %s: Number of sites. */ 'archived' => _n_noop( 'Archived (%s)', 'Archived (%s)' ), /* translators: %s: Number of sites. */ 'mature' => _n_noop( 'Mature (%s)', 'Mature (%s)' ), /* translators: %s: Number of sites. */ 'spam' => _nx_noop( 'Spam (%s)', 'Spam (%s)', 'sites' ), /* translators: %s: Number of sites. */ 'deleted' => _n_noop( 'Flagged for Deletion (%s)', 'Flagged for Deletion (%s)' ), ); $view_links = array(); $requested_status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : ''; $url = 'sites.php'; foreach ( $statuses as $status => $label_count ) { if ( (int) $counts[ $status ] > 0 ) { $label = sprintf( translate_nooped_plural( $label_count, $counts[ $status ] ), number_format_i18n( $counts[ $status ] ) ); $full_url = 'all' === $status ? $url : add_query_arg( 'status', $status, $url ); $view_links[ $status ] = array( 'url' => esc_url( $full_url ), 'label' => $label, 'current' => $requested_status === $status || ( '' === $requested_status && 'all' === $status ), ); } } return $this->get_views_links( $view_links ); } /** * Gets an associative array of bulk actions for this table. * * @since 3.1.0 * * @return array An associative array of bulk actions. */ protected function get_bulk_actions() { $actions = array(); if ( current_user_can( 'delete_sites' ) ) { $actions['delete'] = __( 'Delete' ); } $actions['spam'] = _x( 'Mark as spam', 'site' ); $actions['notspam'] = _x( 'Not spam', 'site' ); return $actions; } /** * Displays the pagination. * * @since 3.1.0 * * @global string $mode List table view mode. * * @param string $which The location of the pagination nav markup: Either 'top' or 'bottom'. */ protected function pagination( $which ) { global $mode; parent::pagination( $which ); if ( 'top' === $which ) { $this->view_switcher( $mode ); } } /** * Displays extra controls between bulk actions and pagination. * * @since 5.3.0 * * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. */ protected function extra_tablenav( $which ) { ?>
        'site-query-submit' ) ); } } ?>
        '', 'blogname' => __( 'URL' ), 'lastupdated' => __( 'Last Updated' ), 'registered' => _x( 'Registered', 'site' ), 'users' => __( 'Users' ), ); if ( has_filter( 'wpmublogsaction' ) ) { $sites_columns['plugins'] = __( 'Actions' ); } /** * Filters the displayed site columns in Sites list table. * * @since MU (3.0.0) * * @param string[] $sites_columns An array of displayed site columns. Default 'cb', * 'blogname', 'lastupdated', 'registered', 'users'. */ return apply_filters( 'wpmu_blogs_columns', $sites_columns ); } /** * Gets an array of sortable columns. * * @since 3.1.0 * * @return array An array of sortable columns. */ protected function get_sortable_columns() { if ( is_subdomain_install() ) { $blogname_abbr = __( 'Domain' ); $blogname_orderby_text = __( 'Table ordered by Site Domain Name.' ); } else { $blogname_abbr = __( 'Path' ); $blogname_orderby_text = __( 'Table ordered by Site Path.' ); } return array( 'blogname' => array( 'blogname', false, $blogname_abbr, $blogname_orderby_text ), 'lastupdated' => array( 'lastupdated', true, __( 'Last Updated' ), __( 'Table ordered by Last Updated.' ) ), 'registered' => array( 'blog_id', true, _x( 'Registered', 'site' ), __( 'Table ordered by Site Registered Date.' ), 'desc' ), ); } /** * Handles the checkbox column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support. * * @param array $item Current site. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $blog = $item; if ( ! is_main_site( $blog['blog_id'] ) ) : $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); ?> %2$s', esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ), $blogname ); $this->site_states( $blog ); ?> '; printf( /* translators: 1: Site title, 2: Site tagline. */ __( '%1$s – %2$s' ), get_option( 'blogname' ), '' . get_option( 'blogdescription' ) . '' ); echo '

        '; restore_current_blog(); } } /** * Handles the lastupdated column output. * * @since 4.3.0 * * @global string $mode List table view mode. * * @param array $blog Current site. */ public function column_lastupdated( $blog ) { global $mode; if ( 'list' === $mode ) { $date = __( 'Y/m/d' ); } else { $date = __( 'Y/m/d g:i:s a' ); } if ( '0000-00-00 00:00:00' === $blog['last_updated'] ) { _e( 'Never' ); } else { echo mysql2date( $date, $blog['last_updated'] ); } } /** * Handles the registered column output. * * @since 4.3.0 * * @global string $mode List table view mode. * * @param array $blog Current site. */ public function column_registered( $blog ) { global $mode; if ( 'list' === $mode ) { $date = __( 'Y/m/d' ); } else { $date = __( 'Y/m/d g:i:s a' ); } if ( '0000-00-00 00:00:00' === $blog['registered'] ) { echo '—'; } else { echo mysql2date( $date, $blog['registered'] ); } } /** * Handles the users column output. * * @since 4.3.0 * * @param array $blog Current site. */ public function column_users( $blog ) { $user_count = wp_cache_get( $blog['blog_id'] . '_user_count', 'blog-details' ); if ( ! $user_count ) { $blog_users = new WP_User_Query( array( 'blog_id' => $blog['blog_id'], 'fields' => 'ID', 'number' => 1, 'count_total' => true, ) ); $user_count = $blog_users->get_total(); wp_cache_set( $blog['blog_id'] . '_user_count', $user_count, 'blog-details', 12 * HOUR_IN_SECONDS ); } printf( '%2$s', esc_url( network_admin_url( 'site-users.php?id=' . $blog['blog_id'] ) ), number_format_i18n( $user_count ) ); } /** * Handles the plugins column output. * * @since 4.3.0 * * @param array $blog Current site. */ public function column_plugins( $blog ) { if ( has_filter( 'wpmublogsaction' ) ) { /** * Fires inside the auxiliary 'Actions' column of the Sites list table. * * By default this column is hidden unless something is hooked to the action. * * @since MU (3.0.0) * * @param int $blog_id The site ID. */ do_action( 'wpmublogsaction', $blog['blog_id'] ); } } /** * Handles output for the default column. * * @since 4.3.0 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support. * * @param array $item Current site. * @param string $column_name Current column name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $blog = $item; /** * Fires for each registered custom column in the Sites list table. * * @since 3.1.0 * * @param string $column_name The name of the column to display. * @param int $blog_id The site ID. */ do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] ); } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { foreach ( $this->items as $blog ) { $blog = $blog->to_array(); $class = ''; reset( $this->status_list ); foreach ( $this->status_list as $status => $col ) { if ( '1' === $blog[ $status ] ) { $class = " class='{$col[0]}'"; } } echo ""; $this->single_row_columns( $blog ); echo ''; } } /** * Determines whether to output comma-separated site states. * * @since 5.3.0 * * @param array $site An array of site data. */ protected function site_states( $site ) { $site_states = array(); // $site is still an array, so get the object. $_site = WP_Site::get_instance( $site['blog_id'] ); if ( is_main_site( $_site->id ) ) { $site_states['main'] = __( 'Main' ); } reset( $this->status_list ); $site_status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : ''; foreach ( $this->status_list as $status => $col ) { if ( '1' === $_site->{$status} && $site_status !== $status ) { $site_states[ $col[0] ] = $col[1]; } } /** * Filters the default site display states for items in the Sites list table. * * @since 5.3.0 * * @param string[] $site_states An array of site states. Default 'Main', * 'Archived', 'Mature', 'Spam', 'Flagged for Deletion'. * @param WP_Site $site The current site object. */ $site_states = apply_filters( 'display_site_states', $site_states, $_site ); if ( ! empty( $site_states ) ) { $state_count = count( $site_states ); $separator = wp_get_list_item_separator(); $i = 0; echo ' — '; foreach ( $site_states as $state ) { ++$i; $suffix = ( $i < $state_count ) ? $separator : ''; echo "{$state}{$suffix}"; } } } /** * Gets the name of the default primary column. * * @since 4.3.0 * * @return string Name of the default primary column, in this case, 'blogname'. */ protected function get_default_primary_column_name() { return 'blogname'; } /** * Generates and displays row action links. * * @since 4.3.0 * @since 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support. * * @param array $item Site being acted upon. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string Row actions output for sites in Multisite, or an empty string * if the current column is not the primary column. */ protected function handle_row_actions( $item, $column_name, $primary ) { if ( $primary !== $column_name ) { return ''; } // Restores the more descriptive, specific name for use within this method. $blog = $item; $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); // Preordered. $actions = array( 'edit' => '', 'backend' => '', 'activate' => '', 'deactivate' => '', 'archive' => '', 'unarchive' => '', 'spam' => '', 'unspam' => '', 'delete' => '', 'visit' => '', ); $actions['edit'] = sprintf( '%2$s', esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ), __( 'Edit' ) ); $actions['backend'] = sprintf( '%2$s', esc_url( get_admin_url( $blog['blog_id'] ) ), __( 'Dashboard' ) ); if ( ! is_main_site( $blog['blog_id'] ) ) { if ( '1' === $blog['deleted'] ) { $actions['activate'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=activateblog&id=' . $blog['blog_id'] ), 'activateblog_' . $blog['blog_id'] ) ), _x( 'Remove Deletion Flag', 'site' ) ); } else { $actions['deactivate'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=deactivateblog&id=' . $blog['blog_id'] ), 'deactivateblog_' . $blog['blog_id'] ) ), __( 'Flag for Deletion' ) ); } if ( '1' === $blog['archived'] ) { $actions['unarchive'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] ), 'unarchiveblog_' . $blog['blog_id'] ) ), __( 'Unarchive' ) ); } else { $actions['archive'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=archiveblog&id=' . $blog['blog_id'] ), 'archiveblog_' . $blog['blog_id'] ) ), _x( 'Archive', 'verb; site' ) ); } if ( '1' === $blog['spam'] ) { $actions['unspam'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=unspamblog&id=' . $blog['blog_id'] ), 'unspamblog_' . $blog['blog_id'] ) ), _x( 'Not Spam', 'site' ) ); } else { $actions['spam'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=spamblog&id=' . $blog['blog_id'] ), 'spamblog_' . $blog['blog_id'] ) ), _x( 'Spam', 'site' ) ); } if ( current_user_can( 'delete_site', $blog['blog_id'] ) ) { $actions['delete'] = sprintf( '%2$s', esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] ), 'deleteblog_' . $blog['blog_id'] ) ), __( 'Delete Permanently' ) ); } } $actions['visit'] = sprintf( '%2$s', esc_url( get_home_url( $blog['blog_id'], '/' ) ), __( 'Visit' ) ); /** * Filters the action links displayed for each site in the Sites list table. * * The 'Edit', 'Dashboard', 'Delete Permanently', and 'Visit' links are displayed by * default for each site. The site's status determines whether to show the * 'Remove Deletion Flag' or 'Flag for Deletion' link, 'Unarchive' or 'Archive' links, and * 'Not Spam' or 'Spam' link for each site. * * @since 3.1.0 * * @param string[] $actions An array of action links to be displayed. * @param int $blog_id The site ID. * @param string $blogname Site path, formatted depending on whether it is a sub-domain * or subdirectory multisite installation. */ $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname ); return $this->row_actions( $actions ); } } includes/revision.php000064400000040365152213653150010734 0ustar00post_parent !== $post->ID && $compare_from->ID !== $post->ID ) { return false; } if ( $compare_to->post_parent !== $post->ID && $compare_to->ID !== $post->ID ) { return false; } if ( $compare_from && strtotime( $compare_from->post_date_gmt ) > strtotime( $compare_to->post_date_gmt ) ) { $temp = $compare_from; $compare_from = $compare_to; $compare_to = $temp; } // Add default title if title field is empty. if ( $compare_from && empty( $compare_from->post_title ) ) { $compare_from->post_title = __( '(no title)' ); } if ( empty( $compare_to->post_title ) ) { $compare_to->post_title = __( '(no title)' ); } $return = array(); foreach ( _wp_post_revision_fields( $post ) as $field => $name ) { /** * Contextually filter a post revision field. * * The dynamic portion of the hook name, `$field`, corresponds to a name of a * field of the revision object. * * Possible hook names include: * * - `_wp_post_revision_field_post_title` * - `_wp_post_revision_field_post_content` * - `_wp_post_revision_field_post_excerpt` * * @since 3.6.0 * * @param string $revision_field The current revision field to compare to or from. * @param string $field The current revision field. * @param WP_Post $compare_from The revision post object to compare to or from. * @param string $context The context of whether the current revision is the old * or the new one. Either 'to' or 'from'. */ $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : ''; /** This filter is documented in wp-admin/includes/revision.php */ $content_to = apply_filters( "_wp_post_revision_field_{$field}", $compare_to->$field, $field, $compare_to, 'to' ); $args = array( 'show_split_view' => true, 'title_left' => __( 'Removed' ), 'title_right' => __( 'Added' ), ); /** * Filters revisions text diff options. * * Filters the options passed to wp_text_diff() when viewing a post revision. * * @since 4.1.0 * * @param array $args { * Associative array of options to pass to wp_text_diff(). * * @type bool $show_split_view True for split view (two columns), false for * un-split view (single column). Default true. * } * @param string $field The current revision field. * @param WP_Post $compare_from The revision post to compare from. * @param WP_Post $compare_to The revision post to compare to. */ $args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to ); $diff = wp_text_diff( $content_from, $content_to, $args ); if ( ! $diff && 'post_title' === $field ) { /* * It's a better user experience to still show the Title, even if it didn't change. * No, you didn't see this. */ $diff = ''; // In split screen mode, show the title before/after side by side. if ( true === $args['show_split_view'] ) { $diff .= ''; } else { $diff .= ''; // In single column mode, only show the title once if unchanged. if ( $compare_from->post_title !== $compare_to->post_title ) { $diff .= ''; } } $diff .= ''; $diff .= '
        ' . esc_html( $compare_from->post_title ) . '' . esc_html( $compare_to->post_title ) . '' . esc_html( $compare_from->post_title ) . '
        ' . esc_html( $compare_to->post_title ) . '
        '; } if ( $diff ) { $return[] = array( 'id' => $field, 'name' => $name, 'diff' => $diff, ); } } /** * Filters the fields displayed in the post revision diff UI. * * @since 4.1.0 * * @param array[] $return Array of revision UI fields. Each item is an array of id, name, and diff. * @param WP_Post $compare_from The revision post to compare from. * @param WP_Post $compare_to The revision post to compare to. */ return apply_filters( 'wp_get_revision_ui_diff', $return, $compare_from, $compare_to ); } /** * Prepare revisions for JavaScript. * * @since 3.6.0 * * @param WP_Post|int $post The post object or post ID. * @param int $selected_revision_id The selected revision ID. * @param int $from Optional. The revision ID to compare from. * @return array An associative array of revision data and related settings. */ function wp_prepare_revisions_for_js( $post, $selected_revision_id, $from = null ) { $post = get_post( $post ); $authors = array(); $now_gmt = time(); $revisions = wp_get_post_revisions( $post->ID, array( 'order' => 'ASC', 'check_enabled' => false, ) ); // If revisions are disabled, we only want autosaves and the current post. if ( ! wp_revisions_enabled( $post ) ) { foreach ( $revisions as $revision_id => $revision ) { if ( ! wp_is_post_autosave( $revision ) ) { unset( $revisions[ $revision_id ] ); } } $revisions = array( $post->ID => $post ) + $revisions; } $show_avatars = get_option( 'show_avatars' ); update_post_author_caches( $revisions ); $can_restore = current_user_can( 'edit_post', $post->ID ); $current_id = false; foreach ( $revisions as $revision ) { $modified = strtotime( $revision->post_modified ); $modified_gmt = strtotime( $revision->post_modified_gmt . ' +0000' ); if ( $can_restore ) { $restore_link = str_replace( '&', '&', wp_nonce_url( add_query_arg( array( 'revision' => $revision->ID, 'action' => 'restore', ), admin_url( 'revision.php' ) ), "restore-post_{$revision->ID}" ) ); } if ( ! isset( $authors[ $revision->post_author ] ) ) { $authors[ $revision->post_author ] = array( 'id' => (int) $revision->post_author, 'avatar' => $show_avatars ? get_avatar( $revision->post_author, 32 ) : '', 'name' => get_the_author_meta( 'display_name', $revision->post_author ), ); } $autosave = (bool) wp_is_post_autosave( $revision ); $current = ! $autosave && $revision->post_modified_gmt === $post->post_modified_gmt; if ( $current && ! empty( $current_id ) ) { // If multiple revisions have the same post_modified_gmt, highest ID is current. if ( $current_id < $revision->ID ) { $revisions[ $current_id ]['current'] = false; $current_id = $revision->ID; } else { $current = false; } } elseif ( $current ) { $current_id = $revision->ID; } $revisions_data = array( 'id' => $revision->ID, 'title' => get_the_title( $post->ID ), 'author' => $authors[ $revision->post_author ], 'date' => date_i18n( __( 'M j, Y @ H:i' ), $modified ), 'dateShort' => date_i18n( _x( 'j M Y @ H:i', 'revision date short format' ), $modified ), /* translators: %s: Human-readable time difference. */ 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( $modified_gmt, $now_gmt ) ), 'autosave' => $autosave, 'current' => $current, 'restoreUrl' => $can_restore ? $restore_link : false, ); /** * Filters the array of revisions used on the revisions screen. * * @since 4.4.0 * * @param array $revisions_data { * The bootstrapped data for the revisions screen. * * @type int $id Revision ID. * @type string $title Title for the revision's parent WP_Post object. * @type int $author Revision post author ID. * @type string $date Date the revision was modified. * @type string $dateShort Short-form version of the date the revision was modified. * @type string $timeAgo GMT-aware amount of time ago the revision was modified. * @type bool $autosave Whether the revision is an autosave. * @type bool $current Whether the revision is both not an autosave and the post * modified date matches the revision modified date (GMT-aware). * @type bool|false $restoreUrl URL if the revision can be restored, false otherwise. * } * @param WP_Post $revision The revision's WP_Post object. * @param WP_Post $post The revision's parent WP_Post object. */ $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post ); } /* * If we only have one revision, the initial revision is missing. This happens * when we have an autosave and the user has clicked 'View the Autosave'. */ if ( 1 === count( $revisions ) ) { $revisions[ $post->ID ] = array( 'id' => $post->ID, 'title' => get_the_title( $post->ID ), 'author' => $authors[ $revision->post_author ], 'date' => date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_modified ) ), 'dateShort' => date_i18n( _x( 'j M @ H:i', 'revision date short format' ), strtotime( $post->post_modified ) ), /* translators: %s: Human-readable time difference. */ 'timeAgo' => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ), 'autosave' => false, 'current' => true, 'restoreUrl' => false, ); $current_id = $post->ID; } /* * If a post has been saved since the latest revision (no revisioned fields * were changed), we may not have a "current" revision. Mark the latest * revision as "current". */ if ( empty( $current_id ) ) { if ( $revisions[ $revision->ID ]['autosave'] ) { $revision = end( $revisions ); while ( $revision['autosave'] ) { $revision = prev( $revisions ); } $current_id = $revision['id']; } else { $current_id = $revision->ID; } $revisions[ $current_id ]['current'] = true; } // Now, grab the initial diff. $compare_two_mode = is_numeric( $from ); if ( ! $compare_two_mode ) { $found = array_search( $selected_revision_id, array_keys( $revisions ), true ); if ( $found ) { $from = array_keys( array_slice( $revisions, $found - 1, 1, true ) ); $from = reset( $from ); } else { $from = 0; } } $from = absint( $from ); $diffs = array( array( 'id' => $from . ':' . $selected_revision_id, 'fields' => wp_get_revision_ui_diff( $post->ID, $from, $selected_revision_id ), ), ); return array( 'postId' => $post->ID, 'nonce' => wp_create_nonce( 'revisions-ajax-nonce' ), 'revisionData' => array_values( $revisions ), 'to' => $selected_revision_id, 'from' => $from, 'diffData' => $diffs, 'baseUrl' => parse_url( admin_url( 'revision.php' ), PHP_URL_PATH ), 'compareTwoMode' => absint( $compare_two_mode ), // Apparently booleans are not allowed. 'revisionIds' => array_keys( $revisions ), ); } /** * Print JavaScript templates required for the revisions experience. * * @since 4.1.0 * * @global WP_Post $post Global post object. */ function wp_print_revision_templates() { global $post; ?> status; $request_id = $item->ID; $row_actions = array(); if ( 'request-confirmed' !== $status ) { /** This filter is documented in wp-admin/includes/ajax-actions.php */ $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); $erasers_count = count( $erasers ); $nonce = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id ); $remove_data_markup = ''; $remove_data_markup .= '' . '' . '' . ''; $remove_data_markup .= ''; $row_actions['remove-data'] = $remove_data_markup; } if ( 'request-completed' !== $status ) { $complete_request_markup = ''; $complete_request_markup .= sprintf( '%s', esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'complete', 'request_id' => array( $request_id ), ), admin_url( 'erase-personal-data.php' ) ), 'bulk-privacy_requests' ) ), esc_attr( sprintf( /* translators: %s: Request email. */ __( 'Mark export request for “%s” as completed.' ), $item->email ) ), __( 'Complete request' ) ); $complete_request_markup .= ''; } if ( ! empty( $complete_request_markup ) ) { $row_actions['complete-request'] = $complete_request_markup; } return sprintf( '%2$s %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) ); } /** * Outputs the Next steps column. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. */ public function column_next_steps( $item ) { $status = $item->status; switch ( $status ) { case 'request-pending': esc_html_e( 'Waiting for confirmation' ); break; case 'request-confirmed': /** This filter is documented in wp-admin/includes/ajax-actions.php */ $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); $erasers_count = count( $erasers ); $request_id = $item->ID; $nonce = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id ); echo '
        '; ?> '; break; case 'request-failed': echo ''; break; case 'request-completed': echo '' . esc_html__( 'Remove request' ) . ''; break; } } } includes/continents-cities.php000064400000050074152213653150012536 0ustar00strings['up_to_date'] = __( 'The theme is at the latest version.' ); $this->strings['no_package'] = __( 'Update package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['remove_old'] = __( 'Removing the old version of the theme…' ); $this->strings['remove_old_failed'] = __( 'Could not remove the old theme.' ); $this->strings['process_failed'] = __( 'Theme update failed.' ); $this->strings['process_success'] = __( 'Theme updated successfully.' ); } /** * Initializes the installation strings. * * @since 2.8.0 */ public function install_strings() { $this->strings['no_package'] = __( 'Installation package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the package…' ); $this->strings['installing_package'] = __( 'Installing the theme…' ); $this->strings['remove_old'] = __( 'Removing the old version of the theme…' ); $this->strings['remove_old_failed'] = __( 'Could not remove the old theme.' ); $this->strings['no_files'] = __( 'The theme contains no files.' ); $this->strings['process_failed'] = __( 'Theme installation failed.' ); $this->strings['process_success'] = __( 'Theme installed successfully.' ); /* translators: 1: Theme name, 2: Theme version. */ $this->strings['process_success_specific'] = __( 'Successfully installed the theme %1$s %2$s.' ); $this->strings['parent_theme_search'] = __( 'This theme requires a parent theme. Checking if it is installed…' ); /* translators: 1: Theme name, 2: Theme version. */ $this->strings['parent_theme_prepare_install'] = __( 'Preparing to install %1$s %2$s…' ); /* translators: 1: Theme name, 2: Theme version. */ $this->strings['parent_theme_currently_installed'] = __( 'The parent theme, %1$s %2$s, is currently installed.' ); /* translators: 1: Theme name, 2: Theme version. */ $this->strings['parent_theme_install_success'] = __( 'Successfully installed the parent theme, %1$s %2$s.' ); /* translators: %s: Theme name. */ $this->strings['parent_theme_not_found'] = sprintf( __( 'The parent theme could not be found. You will need to install the parent theme, %s, before you can use this child theme.' ), '%s' ); /* translators: %s: Theme error. */ $this->strings['current_theme_has_errors'] = __( 'The active theme has the following error: "%s".' ); if ( ! empty( $this->skin->overwrite ) ) { if ( 'update-theme' === $this->skin->overwrite ) { $this->strings['installing_package'] = __( 'Updating the theme…' ); $this->strings['process_failed'] = __( 'Theme update failed.' ); $this->strings['process_success'] = __( 'Theme updated successfully.' ); } if ( 'downgrade-theme' === $this->skin->overwrite ) { $this->strings['installing_package'] = __( 'Downgrading the theme…' ); $this->strings['process_failed'] = __( 'Theme downgrade failed.' ); $this->strings['process_success'] = __( 'Theme downgraded successfully.' ); } } } /** * Checks if a child theme is being installed and its parent also needs to be installed. * * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::install(). * * @since 3.4.0 * * @param bool $install_result * @param array $hook_extra * @param array $child_result * @return bool */ public function check_parent_theme_filter( $install_result, $hook_extra, $child_result ) { // Check to see if we need to install a parent theme. $theme_info = $this->theme_info(); if ( ! $theme_info->parent() ) { return $install_result; } $this->skin->feedback( 'parent_theme_search' ); if ( ! $theme_info->parent()->errors() ) { $this->skin->feedback( 'parent_theme_currently_installed', $theme_info->parent()->display( 'Name' ), $theme_info->parent()->display( 'Version' ) ); // We already have the theme, fall through. return $install_result; } // We don't have the parent theme, let's install it. $api = themes_api( 'theme_information', array( 'slug' => $theme_info->get( 'Template' ), 'fields' => array( 'sections' => false, 'tags' => false, ), ) ); // Save on a bit of bandwidth. if ( ! $api || is_wp_error( $api ) ) { $this->skin->feedback( 'parent_theme_not_found', $theme_info->get( 'Template' ) ); // Don't show activate or preview actions after installation. add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) ); return $install_result; } // Backup required data we're going to override: $child_api = $this->skin->api; $child_success_message = $this->strings['process_success']; // Override them. $this->skin->api = $api; $this->strings['process_success_specific'] = $this->strings['parent_theme_install_success']; $this->skin->feedback( 'parent_theme_prepare_install', $api->name, $api->version ); add_filter( 'install_theme_complete_actions', '__return_false', 999 ); // Don't show any actions after installing the theme. // Install the parent theme. $parent_result = $this->run( array( 'package' => $api->download_link, 'destination' => get_theme_root(), 'clear_destination' => false, // Do not overwrite files. 'clear_working' => true, ) ); if ( is_wp_error( $parent_result ) ) { add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) ); } // Start cleaning up after the parent's installation. remove_filter( 'install_theme_complete_actions', '__return_false', 999 ); // Reset child's result and data. $this->result = $child_result; $this->skin->api = $child_api; $this->strings['process_success'] = $child_success_message; return $install_result; } /** * Don't display the activate and preview actions to the user. * * Hooked to the {@see 'install_theme_complete_actions'} filter by * Theme_Upgrader::check_parent_theme_filter() when installing * a child theme and installing the parent theme fails. * * @since 3.4.0 * * @param array $actions Preview actions. * @return array */ public function hide_activate_preview_actions( $actions ) { unset( $actions['activate'], $actions['preview'] ); return $actions; } /** * Install a theme package. * * @since 2.8.0 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. * * @param string $package The full local path or URI of the package. * @param array $args { * Optional. Other arguments for installing a theme package. Default empty array. * * @type bool $clear_update_cache Whether to clear the updates cache if successful. * Default true. * } * * @return bool|WP_Error True if the installation was successful, false or a WP_Error object otherwise. */ public function install( $package, $args = array() ) { $defaults = array( 'clear_update_cache' => true, 'overwrite_package' => false, // Do not overwrite files. ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->install_strings(); add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); add_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ), 10, 3 ); if ( $parsed_args['clear_update_cache'] ) { // Clear cache so wp_update_themes() knows about the new theme. add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 ); } $this->run( array( 'package' => $package, 'destination' => get_theme_root(), 'clear_destination' => $parsed_args['overwrite_package'], 'clear_working' => true, 'hook_extra' => array( 'type' => 'theme', 'action' => 'install', ), ) ); remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 ); remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); remove_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ) ); if ( ! $this->result || is_wp_error( $this->result ) ) { return $this->result; } // Refresh the Theme Update information. wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); if ( $parsed_args['overwrite_package'] ) { /** This action is documented in wp-admin/includes/class-plugin-upgrader.php */ do_action( 'upgrader_overwrote_package', $package, $this->new_theme_data, 'theme' ); } return true; } /** * Upgrades a theme. * * @since 2.8.0 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. * * @param string $theme The theme slug. * @param array $args { * Optional. Other arguments for upgrading a theme. Default empty array. * * @type bool $clear_update_cache Whether to clear the update cache if successful. * Default true. * } * @return bool|WP_Error True if the upgrade was successful, false or a WP_Error object otherwise. */ public function upgrade( $theme, $args = array() ) { $defaults = array( 'clear_update_cache' => true, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->upgrade_strings(); // Is an update available? $current = get_site_transient( 'update_themes' ); if ( ! isset( $current->response[ $theme ] ) ) { $this->skin->before(); $this->skin->set_result( false ); $this->skin->error( 'up_to_date' ); $this->skin->after(); return false; } $upgrade_data = $current->response[ $theme ]; add_filter( 'upgrader_pre_install', array( $this, 'current_before' ), 10, 2 ); add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 ); add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ), 10, 4 ); if ( $parsed_args['clear_update_cache'] ) { // Clear cache so wp_update_themes() knows about the new theme. add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 ); } $this->run( array( 'package' => $upgrade_data['package'], 'destination' => get_theme_root( $theme ), 'clear_destination' => true, 'clear_working' => true, 'hook_extra' => array( 'theme' => $theme, 'type' => 'theme', 'action' => 'update', 'temp_backup' => array( 'slug' => $theme, 'src' => get_theme_root( $theme ), 'dir' => 'themes', ), ), ) ); remove_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9 ); remove_filter( 'upgrader_pre_install', array( $this, 'current_before' ) ); remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) ); remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) ); if ( ! $this->result || is_wp_error( $this->result ) ) { return $this->result; } wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); /* * Ensure any future auto-update failures trigger a failure email by removing * the last failure notification from the list when themes update successfully. */ $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); if ( isset( $past_failure_emails[ $theme ] ) ) { unset( $past_failure_emails[ $theme ] ); update_option( 'auto_plugin_theme_update_emails', $past_failure_emails ); } return true; } /** * Upgrades several themes at once. * * @since 3.0.0 * @since 3.7.0 The `$args` parameter was added, making clearing the update cache optional. * * @param string[] $themes Array of the theme slugs. * @param array $args { * Optional. Other arguments for upgrading several themes at once. Default empty array. * * @type bool $clear_update_cache Whether to clear the update cache if successful. * Default true. * } * @return array[]|false An array of results, or false if unable to connect to the filesystem. */ public function bulk_upgrade( $themes, $args = array() ) { $wp_version = wp_get_wp_version(); $defaults = array( 'clear_update_cache' => true, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->bulk = true; $this->upgrade_strings(); $current = get_site_transient( 'update_themes' ); add_filter( 'upgrader_pre_install', array( $this, 'current_before' ), 10, 2 ); add_filter( 'upgrader_post_install', array( $this, 'current_after' ), 10, 2 ); add_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ), 10, 4 ); $this->skin->header(); // Connect to the filesystem first. $connected = $this->fs_connect( array( WP_CONTENT_DIR ) ); if ( ! $connected ) { $this->skin->footer(); return false; } $this->skin->bulk_header(); /* * Only start maintenance mode if: * - running Multisite and there are one or more themes specified, OR * - a theme with an update available is currently in use. * @todo For multisite, maintenance mode should only kick in for individual sites if at all possible. */ $maintenance = ( is_multisite() && ! empty( $themes ) ); foreach ( $themes as $theme ) { $maintenance = $maintenance || get_stylesheet() === $theme || get_template() === $theme; } if ( $maintenance ) { $this->maintenance_mode( true ); } $results = array(); $this->update_count = count( $themes ); $this->update_current = 0; foreach ( $themes as $theme ) { ++$this->update_current; $this->skin->theme_info = $this->theme_info( $theme ); if ( ! isset( $current->response[ $theme ] ) ) { $this->skin->set_result( true ); $this->skin->before(); $this->skin->feedback( 'up_to_date' ); $this->skin->after(); $results[ $theme ] = true; continue; } // Get the URL to the zip file. $upgrade_data = $current->response[ $theme ]; if ( isset( $upgrade_data['requires'] ) && ! is_wp_version_compatible( $upgrade_data['requires'] ) ) { $result = new WP_Error( 'incompatible_wp_required_version', sprintf( /* translators: 1: Current WordPress version, 2: WordPress version required by the new theme version. */ __( 'Your WordPress version is %1$s, however the new theme version requires %2$s.' ), $wp_version, $upgrade_data['requires'] ) ); $this->skin->before( $result ); $this->skin->error( $result ); $this->skin->after(); } elseif ( isset( $upgrade_data['requires_php'] ) && ! is_php_version_compatible( $upgrade_data['requires_php'] ) ) { $result = new WP_Error( 'incompatible_php_required_version', sprintf( /* translators: 1: Current PHP version, 2: PHP version required by the new theme version. */ __( 'The PHP version on your server is %1$s, however the new theme version requires %2$s.' ), PHP_VERSION, $upgrade_data['requires_php'] ) ); $this->skin->before( $result ); $this->skin->error( $result ); $this->skin->after(); } else { add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); $result = $this->run( array( 'package' => $upgrade_data['package'], 'destination' => get_theme_root( $theme ), 'clear_destination' => true, 'clear_working' => true, 'is_multi' => true, 'hook_extra' => array( 'theme' => $theme, 'temp_backup' => array( 'slug' => $theme, 'src' => get_theme_root( $theme ), 'dir' => 'themes', ), ), ) ); remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); } $results[ $theme ] = $result; // Prevent credentials auth screen from displaying multiple times. if ( false === $result ) { break; } } // End foreach $themes. $this->maintenance_mode( false ); // Refresh the Theme Update information. wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'theme', 'bulk' => true, 'themes' => $themes, ) ); $this->skin->bulk_footer(); $this->skin->footer(); // Cleanup our hooks, in case something else does an upgrade on this connection. remove_filter( 'upgrader_pre_install', array( $this, 'current_before' ) ); remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) ); remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) ); /* * Ensure any future auto-update failures trigger a failure email by removing * the last failure notification from the list when themes update successfully. */ $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); foreach ( $results as $theme => $result ) { // Maintain last failure notification when themes failed to update manually. if ( ! $result || is_wp_error( $result ) || ! isset( $past_failure_emails[ $theme ] ) ) { continue; } unset( $past_failure_emails[ $theme ] ); } update_option( 'auto_plugin_theme_update_emails', $past_failure_emails ); return $results; } /** * Checks that the package source contains a valid theme. * * Hooked to the {@see 'upgrader_source_selection'} filter by Theme_Upgrader::install(). * * @since 3.3.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $source The path to the downloaded package source. * @return string|WP_Error The source as passed, or a WP_Error object on failure. */ public function check_package( $source ) { global $wp_filesystem; $wp_version = wp_get_wp_version(); $this->new_theme_data = array(); if ( is_wp_error( $source ) ) { return $source; } // Check that the folder contains a valid theme. $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation. return $source; } // A proper archive should have a style.css file in the single subdirectory. if ( ! file_exists( $working_directory . 'style.css' ) ) { return new WP_Error( 'incompatible_archive_theme_no_style', $this->strings['incompatible_archive'], sprintf( /* translators: %s: style.css */ __( 'The theme is missing the %s stylesheet.' ), 'style.css' ) ); } // All these headers are needed on Theme_Installer_Skin::do_overwrite(). $new_theme_data = get_file_data( $working_directory . 'style.css', array( 'Name' => 'Theme Name', 'Version' => 'Version', 'Author' => 'Author', 'Template' => 'Template', 'RequiresWP' => 'Requires at least', 'RequiresPHP' => 'Requires PHP', ) ); if ( empty( $new_theme_data['Name'] ) ) { return new WP_Error( 'incompatible_archive_theme_no_name', $this->strings['incompatible_archive'], sprintf( /* translators: %s: style.css */ __( 'The %s stylesheet does not contain a valid theme header.' ), 'style.css' ) ); } /* * Parent themes must contain an index file: * - classic themes require /index.php * - block themes require /templates/index.html or block-templates/index.html (deprecated 5.9.0). */ if ( empty( $new_theme_data['Template'] ) && ! file_exists( $working_directory . 'index.php' ) && ! file_exists( $working_directory . 'templates/index.html' ) && ! file_exists( $working_directory . 'block-templates/index.html' ) ) { return new WP_Error( 'incompatible_archive_theme_no_index', $this->strings['incompatible_archive'], sprintf( /* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: Template, 5: style.css */ __( 'Template is missing. Standalone themes need to have a %1$s or %2$s template file. Child themes need to have a %4$s header in the %5$s stylesheet.' ), 'templates/index.html', 'index.php', __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ), 'Template', 'style.css' ) ); } $requires_php = $new_theme_data['RequiresPHP'] ?? null; $requires_wp = $new_theme_data['RequiresWP'] ?? null; if ( ! is_php_version_compatible( $requires_php ) ) { $error = sprintf( /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ __( 'The PHP version on your server is %1$s, however the uploaded theme requires %2$s.' ), PHP_VERSION, $requires_php ); return new WP_Error( 'incompatible_php_required_version', $this->strings['incompatible_archive'], $error ); } if ( ! is_wp_version_compatible( $requires_wp ) ) { $error = sprintf( /* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */ __( 'Your WordPress version is %1$s, however the uploaded theme requires %2$s.' ), $wp_version, $requires_wp ); return new WP_Error( 'incompatible_wp_required_version', $this->strings['incompatible_archive'], $error ); } $this->new_theme_data = $new_theme_data; return $source; } /** * Turns on maintenance mode before attempting to upgrade the active theme. * * Hooked to the {@see 'upgrader_pre_install'} filter by Theme_Upgrader::upgrade() and * Theme_Upgrader::bulk_upgrade(). * * @since 2.8.0 * * @param bool|WP_Error $response The installation response before the installation has started. * @param array $theme Theme arguments. * @return bool|WP_Error The original `$response` parameter or WP_Error. */ public function current_before( $response, $theme ) { if ( is_wp_error( $response ) ) { return $response; } $theme = $theme['theme'] ?? ''; // Only run if active theme. if ( get_stylesheet() !== $theme ) { return $response; } // Change to maintenance mode. Bulk edit handles this separately. if ( ! $this->bulk ) { $this->maintenance_mode( true ); } return $response; } /** * Turns off maintenance mode after upgrading the active theme. * * Hooked to the {@see 'upgrader_post_install'} filter by Theme_Upgrader::upgrade() * and Theme_Upgrader::bulk_upgrade(). * * @since 2.8.0 * * @param bool|WP_Error $response The installation response after the installation has finished. * @param array $theme Theme arguments. * @return bool|WP_Error The original `$response` parameter or WP_Error. */ public function current_after( $response, $theme ) { if ( is_wp_error( $response ) ) { return $response; } $theme = $theme['theme'] ?? ''; // Only run if active theme. if ( get_stylesheet() !== $theme ) { return $response; } // Ensure stylesheet name hasn't changed after the upgrade: if ( get_stylesheet() === $theme && $theme !== $this->result['destination_name'] ) { wp_clean_themes_cache(); $stylesheet = $this->result['destination_name']; switch_theme( $stylesheet ); } // Time to remove maintenance mode. Bulk edit handles this separately. if ( ! $this->bulk ) { $this->maintenance_mode( false ); } return $response; } /** * Deletes the old theme during an upgrade. * * Hooked to the {@see 'upgrader_clear_destination'} filter by Theme_Upgrader::upgrade() * and Theme_Upgrader::bulk_upgrade(). * * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem Filesystem subclass. * * @param bool $removed * @param string $local_destination * @param string $remote_destination * @param array $theme * @return bool */ public function delete_old_theme( $removed, $local_destination, $remote_destination, $theme ) { global $wp_filesystem; if ( is_wp_error( $removed ) ) { return $removed; // Pass errors through. } if ( ! isset( $theme['theme'] ) ) { return $removed; } $theme = $theme['theme']; $themes_dir = trailingslashit( $wp_filesystem->wp_themes_dir( $theme ) ); if ( $wp_filesystem->exists( $themes_dir . $theme ) ) { if ( ! $wp_filesystem->delete( $themes_dir . $theme, true ) ) { return false; } } return true; } /** * Gets the WP_Theme object for a theme. * * @since 2.8.0 * @since 3.0.0 The `$theme` argument was added. * * @param string $theme The directory name of the theme. This is optional, and if not supplied, * the directory name from the last result will be used. * @return WP_Theme|false The theme's info object, or false `$theme` is not supplied * and the last result isn't set. */ public function theme_info( $theme = null ) { if ( empty( $theme ) ) { if ( ! empty( $this->result['destination_name'] ) ) { $theme = $this->result['destination_name']; } else { return false; } } $theme = wp_get_theme( $theme ); $theme->cache_delete(); return $theme; } } includes/class-wp-site-health.php000064400000400251152213653150013026 0ustar00maybe_create_scheduled_event(); // Save memory limit before it's affected by wp_raise_memory_limit( 'admin' ). $this->php_memory_limit = ini_get( 'memory_limit' ); $this->timeout_late_cron = 0; $this->timeout_missed_cron = - 5 * MINUTE_IN_SECONDS; if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) { $this->timeout_late_cron = - 15 * MINUTE_IN_SECONDS; $this->timeout_missed_cron = - 1 * HOUR_IN_SECONDS; } add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); add_action( 'wp_site_health_scheduled_check', array( $this, 'wp_cron_scheduled_check' ) ); add_action( 'site_health_tab_content', array( $this, 'show_site_health_tab' ) ); } /** * Outputs the content of a tab in the Site Health screen. * * @since 5.8.0 * * @param string $tab Slug of the current tab being displayed. */ public function show_site_health_tab( $tab ) { if ( 'debug' === $tab ) { require_once ABSPATH . 'wp-admin/site-health-info.php'; } } /** * Returns an instance of the WP_Site_Health class, or create one if none exist yet. * * @since 5.4.0 * * @return WP_Site_Health|null */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new WP_Site_Health(); } return self::$instance; } /** * Enqueues the site health scripts. * * @since 5.2.0 */ public function enqueue_scripts() { $screen = get_current_screen(); if ( 'site-health' !== $screen->id && 'dashboard' !== $screen->id ) { return; } $health_check_js_variables = array( 'screen' => $screen->id, 'nonce' => array( 'site_status' => wp_create_nonce( 'health-check-site-status' ), 'site_status_result' => wp_create_nonce( 'health-check-site-status-result' ), ), 'site_status' => array( 'direct' => array(), 'async' => array(), 'issues' => array( 'good' => 0, 'recommended' => 0, 'critical' => 0, ), ), ); $issue_counts = get_transient( 'health-check-site-status-result' ); if ( false !== $issue_counts ) { $issue_counts = json_decode( $issue_counts ); $health_check_js_variables['site_status']['issues'] = $issue_counts; } if ( 'site-health' === $screen->id && ( ! isset( $_GET['tab'] ) || empty( $_GET['tab'] ) ) ) { $tests = WP_Site_Health::get_tests(); // Don't run https test on development environments. if ( $this->is_development_environment() ) { unset( $tests['async']['https_status'] ); } foreach ( $tests['direct'] as $test ) { if ( is_string( $test['test'] ) ) { $test_function = sprintf( 'get_test_%s', $test['test'] ); if ( method_exists( $this, $test_function ) && is_callable( array( $this, $test_function ) ) ) { $health_check_js_variables['site_status']['direct'][] = $this->perform_test( array( $this, $test_function ) ); continue; } } if ( is_callable( $test['test'] ) ) { $health_check_js_variables['site_status']['direct'][] = $this->perform_test( $test['test'] ); } } foreach ( $tests['async'] as $test ) { if ( is_string( $test['test'] ) ) { $health_check_js_variables['site_status']['async'][] = array( 'test' => $test['test'], 'has_rest' => $test['has_rest'] ?? false, 'completed' => false, 'headers' => $test['headers'] ?? array(), ); } } } wp_localize_script( 'site-health', 'SiteHealth', $health_check_js_variables ); } /** * Runs a Site Health test directly. * * @since 5.4.0 * * @param callable $callback * @return mixed|void */ private function perform_test( $callback ) { /** * Filters the output of a finished Site Health test. * * @since 5.3.0 * * @param array $test_result { * An associative array of test result data. * * @type string $label A label describing the test, and is used as a header in the output. * @type string $status The status of the test, which can be a value of `good`, `recommended` or `critical`. * @type array $badge { * Tests are put into categories which have an associated badge shown, these can be modified and assigned here. * * @type string $label The test label, for example `Performance`. * @type string $color Default `blue`. A string representing a color to use for the label. * } * @type string $description A more descriptive explanation of what the test looks for, and why it is important for the end user. * @type string $actions An action to direct the user to where they can resolve the issue, if one exists. * @type string $test The name of the test being ran, used as a reference point. * } */ return apply_filters( 'site_status_test_result', call_user_func( $callback ) ); } /** * Runs the SQL version checks. * * These values are used in later tests, but the part of preparing them is more easily managed * early in the class for ease of access and discovery. * * @since 5.2.0 * * @global wpdb $wpdb WordPress database abstraction object. */ private function prepare_sql_data() { global $wpdb; $mysql_server_type = $wpdb->db_server_info(); $this->mysql_server_version = $wpdb->get_var( 'SELECT VERSION()' ); if ( stristr( $mysql_server_type, 'mariadb' ) ) { $this->is_mariadb = true; $this->mysql_recommended_version = $this->mariadb_recommended_version; } $this->is_acceptable_mysql_version = version_compare( $this->mysql_required_version, $this->mysql_server_version, '<=' ); $this->is_recommended_mysql_version = version_compare( $this->mysql_recommended_version, $this->mysql_server_version, '<=' ); } /** * Tests whether `wp_version_check` is blocked. * * It's possible to block updates with the `wp_version_check` filter, but this can't be checked * during an Ajax call, as the filter is never introduced then. * * This filter overrides a standard page request if it's made by an admin through the Ajax call * with the right query argument to check for this. * * @since 5.2.0 */ public function check_wp_version_check_exists() { if ( ! is_admin() || ! is_user_logged_in() || ! current_user_can( 'update_core' ) || ! isset( $_GET['health-check-test-wp_version_check'] ) ) { return; } echo ( has_filter( 'wp_version_check', 'wp_version_check' ) ? 'yes' : 'no' ); die(); } /** * Tests for WordPress version and outputs it. * * Gives various results depending on what kind of updates are available, if any, to encourage * the user to install security updates as a priority. * * @since 5.2.0 * * @return array The test result. */ public function get_test_wordpress_version() { $result = array( 'label' => '', 'status' => '', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => '', 'actions' => '', 'test' => 'wordpress_version', ); $core_current_version = wp_get_wp_version(); $core_updates = get_core_updates(); if ( ! is_array( $core_updates ) ) { $result['status'] = 'recommended'; $result['label'] = sprintf( /* translators: %s: Your current version of WordPress. */ __( 'WordPress version %s' ), $core_current_version ); $result['description'] = sprintf( '

        %s

        ', __( 'Unable to check if any new versions of WordPress are available.' ) ); $result['actions'] = sprintf( '%s', esc_url( admin_url( 'update-core.php?force-check=1' ) ), __( 'Check for updates manually' ) ); } else { foreach ( $core_updates as $core => $update ) { if ( 'upgrade' === $update->response ) { $current_version = explode( '.', $core_current_version ); $new_version = explode( '.', $update->version ); $current_major = $current_version[0] . '.' . $current_version[1]; $new_major = $new_version[0] . '.' . $new_version[1]; $result['label'] = sprintf( /* translators: %s: The latest version of WordPress available. */ __( 'WordPress update available (%s)' ), $update->version ); $result['actions'] = sprintf( '%s', esc_url( admin_url( 'update-core.php' ) ), __( 'Install the latest version of WordPress' ) ); if ( $current_major !== $new_major ) { // This is a major version mismatch. $result['status'] = 'recommended'; $result['description'] = sprintf( '

        %s

        ', __( 'A new version of WordPress is available.' ) ); } else { // This is a minor version, sometimes considered more critical. $result['status'] = 'critical'; $result['badge']['label'] = __( 'Security' ); $result['description'] = sprintf( '

        %s

        ', __( 'A new minor update is available for your site. Because minor updates often address security, it’s important to install them.' ) ); } } else { $result['status'] = 'good'; $result['label'] = sprintf( /* translators: %s: The current version of WordPress installed on this site. */ __( 'Your version of WordPress (%s) is up to date' ), $core_current_version ); $result['description'] = sprintf( '

        %s

        ', __( 'You are currently running the latest version of WordPress available, keep it up!' ) ); } } } return $result; } /** * Tests if plugins are outdated, or unnecessary. * * The test checks if your plugins are up to date, and encourages you to remove any * that are not in use. * * @since 5.2.0 * * @return array The test result. */ public function get_test_plugin_version() { $result = array( 'label' => __( 'Your plugins are all up to date' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Plugins extend your site’s functionality with things like contact forms, ecommerce and much more. That means they have deep access to your site, so it’s vital to keep them up to date.' ) ), 'actions' => sprintf( '

        %s

        ', esc_url( admin_url( 'plugins.php' ) ), __( 'Manage your plugins' ) ), 'test' => 'plugin_version', ); $plugins = get_plugins(); $plugin_updates = get_plugin_updates(); $plugins_active = 0; $plugins_total = 0; $plugins_need_update = 0; // Loop over the available plugins and check their versions and active state. foreach ( $plugins as $plugin_path => $plugin ) { ++$plugins_total; if ( is_plugin_active( $plugin_path ) ) { ++$plugins_active; } if ( array_key_exists( $plugin_path, $plugin_updates ) ) { ++$plugins_need_update; } } // Add a notice if there are outdated plugins. if ( $plugins_need_update > 0 ) { $result['status'] = 'critical'; $result['label'] = __( 'You have plugins waiting to be updated' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %d: The number of outdated plugins. */ _n( 'Your site has %d plugin waiting to be updated.', 'Your site has %d plugins waiting to be updated.', $plugins_need_update ), $plugins_need_update ) ); $result['actions'] .= sprintf( '

        %s

        ', esc_url( network_admin_url( 'plugins.php?plugin_status=upgrade' ) ), __( 'Update your plugins' ) ); } else { if ( 1 === $plugins_active ) { $result['description'] .= sprintf( '

        %s

        ', __( 'Your site has 1 active plugin, and it is up to date.' ) ); } elseif ( $plugins_active > 0 ) { $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %d: The number of active plugins. */ _n( 'Your site has %d active plugin, and it is up to date.', 'Your site has %d active plugins, and they are all up to date.', $plugins_active ), $plugins_active ) ); } else { $result['description'] .= sprintf( '

        %s

        ', __( 'Your site does not have any active plugins.' ) ); } } // Check if there are inactive plugins. if ( $plugins_total > $plugins_active && ! is_multisite() ) { $unused_plugins = $plugins_total - $plugins_active; $result['status'] = 'recommended'; $result['label'] = __( 'You should remove inactive plugins' ); $result['description'] .= sprintf( '

        %s %s

        ', sprintf( /* translators: %d: The number of inactive plugins. */ _n( 'Your site has %d inactive plugin.', 'Your site has %d inactive plugins.', $unused_plugins ), $unused_plugins ), __( 'Inactive plugins are tempting targets for attackers. If you are not going to use a plugin, you should consider removing it.' ) ); $result['actions'] .= sprintf( '

        %s

        ', esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ), __( 'Manage inactive plugins' ) ); } return $result; } /** * Tests if themes are outdated, or unnecessary. * * Checks if your site has a default theme (to fall back on if there is a need), * if your themes are up to date and, finally, encourages you to remove any themes * that are not needed. * * @since 5.2.0 * * @return array The test results. */ public function get_test_theme_version() { $result = array( 'label' => __( 'Your themes are all up to date' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Themes add your site’s look and feel. It’s important to keep them up to date, to stay consistent with your brand and keep your site secure.' ) ), 'actions' => sprintf( '

        %s

        ', esc_url( admin_url( 'themes.php' ) ), __( 'Manage your themes' ) ), 'test' => 'theme_version', ); $theme_updates = get_theme_updates(); $themes_total = 0; $themes_need_updates = 0; $themes_inactive = 0; // This value is changed during processing to determine how many themes are considered a reasonable amount. $allowed_theme_count = 1; $has_default_theme = false; $has_unused_themes = false; $show_unused_themes = true; $using_default_theme = false; // Populate a list of all themes available in the install. $all_themes = wp_get_themes(); $active_theme = wp_get_theme(); // If WP_DEFAULT_THEME doesn't exist, fall back to the latest core default theme. $default_theme = wp_get_theme( WP_DEFAULT_THEME ); if ( ! $default_theme->exists() ) { $default_theme = WP_Theme::get_core_default_theme(); } if ( $default_theme ) { $has_default_theme = true; if ( $active_theme->get_stylesheet() === $default_theme->get_stylesheet() || is_child_theme() && $active_theme->get_template() === $default_theme->get_template() ) { $using_default_theme = true; } } foreach ( $all_themes as $theme_slug => $theme ) { ++$themes_total; if ( array_key_exists( $theme_slug, $theme_updates ) ) { ++$themes_need_updates; } } // If this is a child theme, increase the allowed theme count by one, to account for the parent. if ( is_child_theme() ) { ++$allowed_theme_count; } // If there's a default theme installed and not in use, we count that as allowed as well. if ( $has_default_theme && ! $using_default_theme ) { ++$allowed_theme_count; } if ( $themes_total > $allowed_theme_count ) { $has_unused_themes = true; $themes_inactive = ( $themes_total - $allowed_theme_count ); } // Check if any themes need to be updated. if ( $themes_need_updates > 0 ) { $result['status'] = 'critical'; $result['label'] = __( 'You have themes waiting to be updated' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %d: The number of outdated themes. */ _n( 'Your site has %d theme waiting to be updated.', 'Your site has %d themes waiting to be updated.', $themes_need_updates ), $themes_need_updates ) ); } else { // Give positive feedback about the site being good about keeping things up to date. if ( 1 === $themes_total ) { $result['description'] .= sprintf( '

        %s

        ', __( 'Your site has 1 installed theme, and it is up to date.' ) ); } elseif ( $themes_total > 0 ) { $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %d: The number of themes. */ _n( 'Your site has %d installed theme, and it is up to date.', 'Your site has %d installed themes, and they are all up to date.', $themes_total ), $themes_total ) ); } else { $result['description'] .= sprintf( '

        %s

        ', __( 'Your site does not have any installed themes.' ) ); } } if ( $has_unused_themes && $show_unused_themes && ! is_multisite() ) { // This is a child theme, so we want to be a bit more explicit in our messages. if ( $active_theme->parent() ) { // Recommend removing inactive themes, except a default theme, your current one, and the parent theme. $result['status'] = 'recommended'; $result['label'] = __( 'You should remove inactive themes' ); if ( $using_default_theme ) { $result['description'] .= sprintf( '

        %s %s

        ', sprintf( /* translators: %d: The number of inactive themes. */ _n( 'Your site has %d inactive theme.', 'Your site has %d inactive themes.', $themes_inactive ), $themes_inactive ), sprintf( /* translators: 1: The currently active theme. 2: The active theme's parent theme. */ __( 'To enhance your site’s security, you should consider removing any themes you are not using. You should keep your active theme, %1$s, and %2$s, its parent theme.' ), $active_theme->name, $active_theme->parent()->name ) ); } else { $result['description'] .= sprintf( '

        %s %s

        ', sprintf( /* translators: %d: The number of inactive themes. */ _n( 'Your site has %d inactive theme.', 'Your site has %d inactive themes.', $themes_inactive ), $themes_inactive ), sprintf( /* translators: 1: The default theme for WordPress. 2: The currently active theme. 3: The active theme's parent theme. */ __( 'To enhance your site’s security, you should consider removing any themes you are not using. You should keep %1$s, the default WordPress theme, %2$s, your active theme, and %3$s, its parent theme.' ), $default_theme ? $default_theme->name : WP_DEFAULT_THEME, $active_theme->name, $active_theme->parent()->name ) ); } } else { // Recommend removing all inactive themes. $result['status'] = 'recommended'; $result['label'] = __( 'You should remove inactive themes' ); if ( $using_default_theme ) { $result['description'] .= sprintf( '

        %s %s

        ', sprintf( /* translators: 1: The amount of inactive themes. 2: The currently active theme. */ _n( 'Your site has %1$d inactive theme, other than %2$s, your active theme.', 'Your site has %1$d inactive themes, other than %2$s, your active theme.', $themes_inactive ), $themes_inactive, $active_theme->name ), __( 'You should consider removing any unused themes to enhance your site’s security.' ) ); } else { $result['description'] .= sprintf( '

        %s %s

        ', sprintf( /* translators: 1: The amount of inactive themes. 2: The default theme for WordPress. 3: The currently active theme. */ _n( 'Your site has %1$d inactive theme, other than %2$s, the default WordPress theme, and %3$s, your active theme.', 'Your site has %1$d inactive themes, other than %2$s, the default WordPress theme, and %3$s, your active theme.', $themes_inactive ), $themes_inactive, $default_theme ? $default_theme->name : WP_DEFAULT_THEME, $active_theme->name ), __( 'You should consider removing any unused themes to enhance your site’s security.' ) ); } } } // If no default Twenty* theme exists. if ( ! $has_default_theme ) { $result['status'] = 'recommended'; $result['label'] = __( 'Have a default theme available' ); $result['description'] .= sprintf( '

        %s

        ', __( 'Your site does not have any default theme. Default themes are used by WordPress automatically if anything is wrong with your chosen theme.' ) ); } return $result; } /** * Tests if the supplied PHP version is supported. * * @since 5.2.0 * * @return array The test results. */ public function get_test_php_version() { $response = wp_check_php_version(); $result = array( 'label' => sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running PHP %s' ), PHP_VERSION ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'PHP is one of the programming languages used to build WordPress. Newer versions of PHP receive regular security updates and may increase your site’s performance.' ) ), 'actions' => sprintf( '

        %s %s

        ', esc_url( wp_get_update_php_url() ), __( 'Learn more about updating PHP' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'php_version', ); if ( ! $response ) { $result['label'] = sprintf( /* translators: %s: The server PHP version. */ __( 'Unable to determine the status of the current PHP version (%s)' ), PHP_VERSION ); $result['status'] = 'recommended'; $result['description'] = '

        ' . sprintf( /* translators: %s is the URL to the Serve Happy docs page. */ __( 'Unable to access the WordPress.org API for Serve Happy.' ), 'https://codex.wordpress.org/WordPress.org_API#Serve_Happy' ) . '

        ' . $result['description']; return $result; } $result['description'] .= '

        ' . sprintf( /* translators: %s: The minimum recommended PHP version. */ __( 'The minimum recommended version of PHP is %s.' ), $response['recommended_version'] ) . '

        '; // PHP is up to date. if ( version_compare( PHP_VERSION, $response['recommended_version'], '>=' ) ) { $result['label'] = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running a recommended version of PHP (%s)' ), PHP_VERSION ); $result['status'] = 'good'; return $result; } // The PHP version is older than the recommended version, but still receiving active support. if ( $response['is_supported'] ) { $result['label'] = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an older version of PHP (%s)' ), PHP_VERSION ); $result['status'] = 'recommended'; return $result; } /* * The PHP version is still receiving security fixes, but is lower than * the expected minimum version that will be required by WordPress in the near future. */ if ( $response['is_secure'] && $response['is_lower_than_future_minimum'] ) { // The `is_secure` array key name doesn't actually imply this is a secure version of PHP. It only means it receives security updates. $result['label'] = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which soon will not be supported by WordPress.' ), PHP_VERSION ); $result['status'] = 'critical'; $result['badge']['label'] = __( 'Requirements' ); return $result; } // The PHP version is only receiving security fixes. if ( $response['is_secure'] ) { $result['label'] = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an older version of PHP (%s), which should be updated' ), PHP_VERSION ); $result['status'] = 'recommended'; return $result; } // No more security updates for the PHP version, and lower than the expected minimum version required by WordPress. if ( $response['is_lower_than_future_minimum'] ) { $message = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates and soon will not be supported by WordPress.' ), PHP_VERSION ); } else { // No more security updates for the PHP version, must be updated. $message = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates. It should be updated.' ), PHP_VERSION ); } $result['label'] = $message; $result['status'] = 'critical'; $result['badge']['label'] = __( 'Security' ); return $result; } /** * Checks if the passed extension or function are available. * * Make the check for available PHP modules into a simple boolean operator for a cleaner test runner. * * @since 5.2.0 * @since 5.3.0 The `$constant_name` and `$class_name` parameters were added. * * @param string $extension_name Optional. The extension name to test. Default null. * @param string $function_name Optional. The function name to test. Default null. * @param string $constant_name Optional. The constant name to test for. Default null. * @param string $class_name Optional. The class name to test for. Default null. * @return bool Whether or not the extension and function are available. */ private function test_php_extension_availability( $extension_name = null, $function_name = null, $constant_name = null, $class_name = null ) { // If no extension or function is passed, claim to fail testing, as we have nothing to test against. if ( ! $extension_name && ! $function_name && ! $constant_name && ! $class_name ) { return false; } if ( $extension_name && ! extension_loaded( $extension_name ) ) { return false; } if ( $function_name && ! function_exists( $function_name ) ) { return false; } if ( $constant_name && ! defined( $constant_name ) ) { return false; } if ( $class_name && ! class_exists( $class_name ) ) { return false; } return true; } /** * Tests if required PHP modules are installed on the host. * * This test builds on the recommendations made by the WordPress Hosting Team * as seen at https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions * * @since 5.2.0 * * @return array */ public function get_test_php_extensions() { $result = array( 'label' => __( 'Required and recommended modules are installed' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        %s

        ', __( 'PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.' ), sprintf( /* translators: 1: Link to the hosting group page about recommended PHP modules. 2: Additional link attributes. 3: Accessibility text. */ __( 'The WordPress Hosting Team maintains a list of those modules, both recommended and required, in the team handbook%3$s.' ), /* translators: Localized team handbook, if one exists. */ esc_url( __( 'https://make.wordpress.org/hosting/handbook/handbook/server-environment/#php-extensions' ) ), 'target="_blank"', sprintf( ' %s', /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ) ) ), 'actions' => '', 'test' => 'php_extensions', ); $modules = array( 'curl' => array( 'function' => 'curl_version', 'required' => false, ), 'dom' => array( 'class' => 'DOMNode', 'required' => false, ), 'exif' => array( 'function' => 'exif_read_data', 'required' => false, ), 'fileinfo' => array( 'function' => 'finfo_file', 'required' => false, ), 'hash' => array( 'function' => 'hash', 'required' => true, ), 'imagick' => array( 'extension' => 'imagick', 'required' => false, ), 'json' => array( 'function' => 'json_last_error', 'required' => true, ), 'mbstring' => array( 'function' => 'mb_check_encoding', 'required' => false, ), 'mysqli' => array( 'function' => 'mysqli_connect', 'required' => false, ), // Sodium was introduced in PHP 7.2, but the extension may not be enabled. 'libsodium' => array( 'constant' => 'SODIUM_LIBRARY_VERSION', 'required' => false, 'php_bundled_version' => '7.2.0', ), 'openssl' => array( 'function' => 'openssl_encrypt', 'required' => false, ), 'pcre' => array( 'function' => 'preg_match', 'required' => false, ), 'mod_xml' => array( 'extension' => 'libxml', 'required' => false, ), 'zip' => array( 'class' => 'ZipArchive', 'required' => false, ), 'filter' => array( 'function' => 'filter_list', 'required' => false, ), 'gd' => array( 'extension' => 'gd', 'required' => false, 'fallback_for' => 'imagick', ), 'iconv' => array( 'function' => 'iconv', 'required' => false, ), 'intl' => array( 'extension' => 'intl', 'required' => false, ), 'mcrypt' => array( 'extension' => 'mcrypt', 'required' => false, 'fallback_for' => 'libsodium', ), 'simplexml' => array( 'extension' => 'simplexml', 'required' => false, 'fallback_for' => 'mod_xml', ), 'xmlreader' => array( 'extension' => 'xmlreader', 'required' => false, 'fallback_for' => 'mod_xml', ), 'zlib' => array( 'extension' => 'zlib', 'required' => false, 'fallback_for' => 'zip', ), ); /** * Filters the array representing all the modules we wish to test for. * * @since 5.2.0 * @since 5.3.0 The `$constant` and `$class` parameters were added. * * @param array $modules { * An associative array of modules to test for. * * @type array ...$0 { * An associative array of module properties used during testing. * One of either `$function` or `$extension` must be provided, or they will fail by default. * * @type string $function Optional. A function name to test for the existence of. * @type string $extension Optional. An extension to check if is loaded in PHP. * @type string $constant Optional. A constant name to check for to verify an extension exists. * @type string $class Optional. A class name to check for to verify an extension exists. * @type bool $required Is this a required feature or not. * @type string $fallback_for Optional. The module this module replaces as a fallback. * } * } */ $modules = apply_filters( 'site_status_test_php_modules', $modules ); $failures = array(); foreach ( $modules as $library => $module ) { $extension_name = $module['extension'] ?? null; $function_name = $module['function'] ?? null; $constant_name = $module['constant'] ?? null; $class_name = $module['class'] ?? null; // If this module is a fallback for another function, check if that other function passed. if ( isset( $module['fallback_for'] ) ) { /* * If that other function has a failure, mark this module as required for usual operations. * If that other function hasn't failed, skip this test as it's only a fallback. */ if ( isset( $failures[ $module['fallback_for'] ] ) ) { $module['required'] = true; } else { continue; } } if ( ! $this->test_php_extension_availability( $extension_name, $function_name, $constant_name, $class_name ) && ( ! isset( $module['php_bundled_version'] ) || version_compare( PHP_VERSION, $module['php_bundled_version'], '<' ) ) ) { if ( $module['required'] ) { $result['status'] = 'critical'; $class = 'error'; /* translators: Hidden accessibility text. */ $screen_reader = __( 'Error' ); $message = sprintf( /* translators: %s: The module name. */ __( 'The required module, %s, is not installed, or has been disabled.' ), $library ); } else { $class = 'warning'; /* translators: Hidden accessibility text. */ $screen_reader = __( 'Warning' ); $message = sprintf( /* translators: %s: The module name. */ __( 'The optional module, %s, is not installed, or has been disabled.' ), $library ); } if ( ! $module['required'] && 'good' === $result['status'] ) { $result['status'] = 'recommended'; } $failures[ $library ] = "$screen_reader $message"; } } if ( ! empty( $failures ) ) { $output = '
          '; foreach ( $failures as $failure ) { $output .= sprintf( '
        • %s
        • ', $failure ); } $output .= '
        '; } if ( 'good' !== $result['status'] ) { if ( 'recommended' === $result['status'] ) { $result['label'] = __( 'One or more recommended modules are missing' ); } if ( 'critical' === $result['status'] ) { $result['label'] = __( 'One or more required modules are missing' ); } $result['description'] .= $output; } return $result; } /** * Tests if the PHP default timezone is set to UTC. * * @since 5.3.1 * * @return array The test results. */ public function get_test_php_default_timezone() { $result = array( 'label' => __( 'PHP default timezone is valid' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'PHP default timezone was configured by WordPress on loading. This is necessary for correct calculations of dates and times.' ) ), 'actions' => '', 'test' => 'php_default_timezone', ); if ( 'UTC' !== date_default_timezone_get() ) { $result['status'] = 'critical'; $result['label'] = __( 'PHP default timezone is invalid' ); $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: %s: date_default_timezone_set() */ __( 'PHP default timezone was changed after WordPress loading by a %s function call. This interferes with correct calculations of dates and times.' ), 'date_default_timezone_set()' ) ); } return $result; } /** * Tests if there's an active PHP session that can affect loopback requests. * * @since 5.5.0 * * @return array The test results. */ public function get_test_php_sessions() { $result = array( 'label' => __( 'No PHP sessions detected' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', sprintf( /* translators: 1: session_start(), 2: session_write_close() */ __( 'PHP sessions created by a %1$s function call may interfere with REST API and loopback requests. An active session should be closed by %2$s before making any HTTP requests.' ), 'session_start()', 'session_write_close()' ) ), 'test' => 'php_sessions', ); if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) { $result['status'] = 'critical'; $result['label'] = __( 'An active PHP session was detected' ); $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: 1: session_start(), 2: session_write_close() */ __( 'A PHP session was created by a %1$s function call. This interferes with REST API and loopback requests. The session should be closed by %2$s before making any HTTP requests.' ), 'session_start()', 'session_write_close()' ) ); } return $result; } /** * Tests if the SQL server is up to date. * * @since 5.2.0 * * @return array The test results. */ public function get_test_sql_server() { if ( ! $this->mysql_server_version ) { $this->prepare_sql_data(); } $result = array( 'label' => __( 'SQL server is up to date' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'The SQL server is a required piece of software for the database WordPress uses to store all your site’s content and settings.' ) ), 'actions' => sprintf( '

        %s %s

        ', /* translators: Localized version of WordPress requirements if one exists. */ esc_url( __( 'https://wordpress.org/about/requirements/' ) ), __( 'Learn more about what WordPress requires to run.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'sql_server', ); $db_dropin = file_exists( WP_CONTENT_DIR . '/db.php' ); if ( ! $this->is_recommended_mysql_version ) { $result['status'] = 'recommended'; $result['label'] = __( 'Outdated SQL server' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: 1: The database engine in use (MySQL or MariaDB). 2: Database server recommended version number. */ __( 'For optimal performance and security reasons, you should consider running %1$s version %2$s or higher. Contact your web hosting company to correct this.' ), ( $this->is_mariadb ? 'MariaDB' : 'MySQL' ), $this->mysql_recommended_version ) ); } if ( ! $this->is_acceptable_mysql_version ) { $result['status'] = 'critical'; $result['label'] = __( 'Severely outdated SQL server' ); $result['badge']['label'] = __( 'Security' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: 1: The database engine in use (MySQL or MariaDB). 2: Database server minimum version number. */ __( 'WordPress requires %1$s version %2$s or higher. Contact your web hosting company to correct this.' ), ( $this->is_mariadb ? 'MariaDB' : 'MySQL' ), $this->mysql_required_version ) ); } if ( $db_dropin ) { $result['description'] .= sprintf( '

        %s

        ', wp_kses( sprintf( /* translators: 1: The name of the drop-in. 2: The name of the database engine. */ __( 'You are using a %1$s drop-in which might mean that a %2$s database is not being used.' ), 'wp-content/db.php', ( $this->is_mariadb ? 'MariaDB' : 'MySQL' ) ), array( 'code' => true, ) ) ); } return $result; } /** * Tests if the site can communicate with WordPress.org. * * @since 5.2.0 * * @return array The test results. */ public function get_test_dotorg_communication() { $result = array( 'label' => __( 'Can communicate with WordPress.org' ), 'status' => '', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Communicating with the WordPress servers is used to check for new versions, and to both install and update WordPress core, themes or plugins.' ) ), 'actions' => '', 'test' => 'dotorg_communication', ); $wp_dotorg = wp_remote_get( 'https://api.wordpress.org', array( 'timeout' => 10, ) ); if ( ! is_wp_error( $wp_dotorg ) ) { $result['status'] = 'good'; } else { $result['status'] = 'critical'; $result['label'] = __( 'Could not reach WordPress.org' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( '%s %s', /* translators: Hidden accessibility text. */ __( 'Error' ), sprintf( /* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */ __( 'Your site is unable to reach WordPress.org at %1$s, and returned the error: %2$s' ), gethostbyname( 'api.wordpress.org' ), $wp_dotorg->get_error_message() ) ) ); $result['actions'] = sprintf( '

        %s %s

        ', /* translators: Localized Support reference. */ esc_url( __( 'https://wordpress.org/support/forums/' ) ), __( 'Get help resolving this issue.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); } return $result; } /** * Tests if debug information is enabled. * * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors, * or logged to a publicly accessible file. * * Debugging is also frequently left enabled after looking for errors on a site, * as site owners do not understand the implications of this. * * @since 5.2.0 * * @return array The test results. */ public function get_test_is_in_debug_mode() { $result = array( 'label' => __( 'Your site is not set to output debug information' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Debug mode is often enabled to gather more details about an error or site failure, but may contain sensitive information which should not be available on a publicly available website.' ) ), 'actions' => sprintf( '

        %s %s

        ', /* translators: Documentation explaining debugging in WordPress. */ esc_url( __( 'https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/' ) ), __( 'Learn more about debugging in WordPress.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'is_in_debug_mode', ); if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) { $result['label'] = __( 'Your site is set to log errors to a potentially public file' ); $result['status'] = str_starts_with( ini_get( 'error_log' ), ABSPATH ) ? 'critical' : 'recommended'; $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %s: WP_DEBUG_LOG */ __( 'The value, %s, has been added to this website’s configuration file. This means any errors on the site will be written to a file which is potentially available to all users.' ), 'WP_DEBUG_LOG' ) ); } if ( defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY ) { $result['label'] = __( 'Your site is set to display errors to site visitors' ); $result['status'] = 'critical'; // On development environments, set the status to recommended. if ( $this->is_development_environment() ) { $result['status'] = 'recommended'; } $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: 1: WP_DEBUG_DISPLAY, 2: WP_DEBUG */ __( 'The value, %1$s, has either been enabled by %2$s or added to your configuration file. This will make errors display on the front end of your site.' ), 'WP_DEBUG_DISPLAY', 'WP_DEBUG' ) ); } } return $result; } /** * Tests if the site is serving content over HTTPS. * * Many sites have varying degrees of HTTPS support, the most common of which is sites that have it * enabled, but only if you visit the right site address. * * @since 5.2.0 * @since 5.7.0 Updated to rely on {@see wp_is_using_https()} and {@see wp_is_https_supported()}. * * @return array The test results. */ public function get_test_https_status() { /* * Check HTTPS detection results. */ $errors = wp_get_https_detection_errors(); $default_update_url = wp_get_default_update_https_url(); $result = array( 'label' => __( 'Your website is using an active HTTPS connection' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'An HTTPS connection is a more secure way of browsing the web. Many services now have HTTPS as a requirement. HTTPS allows you to take advantage of new features that can increase site speed, improve search rankings, and gain the trust of your visitors by helping to protect their online privacy.' ) ), 'actions' => sprintf( '

        %s %s

        ', esc_url( $default_update_url ), __( 'Learn more about why you should use HTTPS' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'https_status', ); if ( ! wp_is_using_https() ) { /* * If the website is not using HTTPS, provide more information * about whether it is supported and how it can be enabled. */ $result['status'] = 'recommended'; $result['label'] = __( 'Your website does not use HTTPS' ); if ( wp_is_site_url_using_https() ) { if ( is_ssl() ) { $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: %s: URL to Settings > General > Site Address. */ __( 'You are accessing this website using HTTPS, but your Site Address is not set up to use HTTPS by default.' ), esc_url( admin_url( 'options-general.php' ) . '#home' ) ) ); } else { $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: %s: URL to Settings > General > Site Address. */ __( 'Your Site Address is not set up to use HTTPS.' ), esc_url( admin_url( 'options-general.php' ) . '#home' ) ) ); } } else { if ( is_ssl() ) { $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: 1: URL to Settings > General > WordPress Address, 2: URL to Settings > General > Site Address. */ __( 'You are accessing this website using HTTPS, but your WordPress Address and Site Address are not set up to use HTTPS by default.' ), esc_url( admin_url( 'options-general.php' ) . '#siteurl' ), esc_url( admin_url( 'options-general.php' ) . '#home' ) ) ); } else { $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: 1: URL to Settings > General > WordPress Address, 2: URL to Settings > General > Site Address. */ __( 'Your WordPress Address and Site Address are not set up to use HTTPS.' ), esc_url( admin_url( 'options-general.php' ) . '#siteurl' ), esc_url( admin_url( 'options-general.php' ) . '#home' ) ) ); } } if ( wp_is_https_supported() ) { $result['description'] .= sprintf( '

        %s

        ', __( 'HTTPS is already supported for your website.' ) ); if ( defined( 'WP_HOME' ) || defined( 'WP_SITEURL' ) ) { $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: 1: wp-config.php, 2: WP_HOME, 3: WP_SITEURL */ __( 'However, your WordPress Address is currently controlled by a PHP constant and therefore cannot be updated. You need to edit your %1$s and remove or update the definitions of %2$s and %3$s.' ), 'wp-config.php', 'WP_HOME', 'WP_SITEURL' ) ); } elseif ( current_user_can( 'update_https' ) ) { $default_direct_update_url = add_query_arg( 'action', 'update_https', wp_nonce_url( admin_url( 'site-health.php' ), 'wp_update_https' ) ); $direct_update_url = wp_get_direct_update_https_url(); if ( ! empty( $direct_update_url ) ) { $result['actions'] = sprintf( '

        %2$s %3$s

        ', esc_url( $direct_update_url ), __( 'Update your site to use HTTPS' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); } else { $result['actions'] = sprintf( '

        %2$s

        ', esc_url( $default_direct_update_url ), __( 'Update your site to use HTTPS' ) ); } } } else { // If host-specific "Update HTTPS" URL is provided, include a link. $update_url = wp_get_update_https_url(); if ( $update_url !== $default_update_url ) { $result['description'] .= sprintf( '

        %s %s

        ', esc_url( $update_url ), __( 'Talk to your web host about supporting HTTPS for your website.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); } else { $result['description'] .= sprintf( '

        %s

        ', __( 'Talk to your web host about supporting HTTPS for your website.' ) ); } } } return $result; } /** * Checks if the HTTP API can handle SSL/TLS requests. * * @since 5.2.0 * * @return array The test result. */ public function get_test_ssl_support() { $result = array( 'label' => '', 'status' => '', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Securely communicating between servers are needed for transactions such as fetching files, conducting sales on store sites, and much more.' ) ), 'actions' => '', 'test' => 'ssl_support', ); $supports_https = wp_http_supports( array( 'ssl' ) ); if ( $supports_https ) { $result['status'] = 'good'; $result['label'] = __( 'Your site can communicate securely with other services' ); } else { $result['status'] = 'critical'; $result['label'] = __( 'Your site is unable to communicate securely with other services' ); $result['description'] .= sprintf( '

        %s

        ', __( 'Talk to your web host about OpenSSL support for PHP.' ) ); } return $result; } /** * Tests if scheduled events run as intended. * * If scheduled events are not running, this may indicate something with WP_Cron is not working * as intended, or that there are orphaned events hanging around from older code. * * @since 5.2.0 * * @return array The test results. */ public function get_test_scheduled_events() { $result = array( 'label' => __( 'Scheduled events are running' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Scheduled events are what periodically looks for updates to plugins, themes and WordPress itself. It is also what makes sure scheduled posts are published on time. It may also be used by various plugins to make sure that planned actions are executed.' ) ), 'actions' => '', 'test' => 'scheduled_events', ); $this->wp_schedule_test_init(); if ( is_wp_error( $this->has_missed_cron() ) ) { $result['status'] = 'critical'; $result['label'] = __( 'It was not possible to check your scheduled events' ); $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: %s: The error message returned while from the cron scheduler. */ __( 'While trying to test your site’s scheduled events, the following error was returned: %s' ), $this->has_missed_cron()->get_error_message() ) ); } elseif ( $this->has_missed_cron() ) { $result['status'] = 'recommended'; $result['label'] = __( 'A scheduled event has failed' ); $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: %s: The name of the failed cron event. */ __( 'The scheduled event, %s, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.' ), $this->last_missed_cron ) ); } elseif ( $this->has_late_cron() ) { $result['status'] = 'recommended'; $result['label'] = __( 'A scheduled event is late' ); $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: %s: The name of the late cron event. */ __( 'The scheduled event, %s, is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.' ), $this->last_late_cron ) ); } return $result; } /** * Tests if WordPress can run automated background updates. * * Background updates in WordPress are primarily used for minor releases and security updates. * It's important to either have these working, or be aware that they are intentionally disabled * for whatever reason. * * @since 5.2.0 * * @return array The test results. */ public function get_test_background_updates() { $result = array( 'label' => __( 'Background updates are working' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Background updates ensure that WordPress can auto-update if a security update is released for the version you are currently using.' ) ), 'actions' => '', 'test' => 'background_updates', ); if ( ! class_exists( 'WP_Site_Health_Auto_Updates' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-site-health-auto-updates.php'; } /* * Run the auto-update tests in a separate class, * as there are many considerations to be made. */ $automatic_updates = new WP_Site_Health_Auto_Updates(); $tests = $automatic_updates->run_tests(); $output = '
          '; foreach ( $tests as $test ) { /* translators: Hidden accessibility text. */ $severity_string = __( 'Passed' ); if ( 'fail' === $test->severity ) { $result['label'] = __( 'Background updates are not working as expected' ); $result['status'] = 'critical'; /* translators: Hidden accessibility text. */ $severity_string = __( 'Error' ); } if ( 'warning' === $test->severity && 'good' === $result['status'] ) { $result['label'] = __( 'Background updates may not be working properly' ); $result['status'] = 'recommended'; /* translators: Hidden accessibility text. */ $severity_string = __( 'Warning' ); } $output .= sprintf( '
        • %s %s
        • ', esc_attr( $test->severity ), $severity_string, $test->description ); } $output .= '
        '; if ( 'good' !== $result['status'] ) { $result['description'] .= $output; } return $result; } /** * Tests if plugin and theme auto-updates appear to be configured correctly. * * @since 5.5.0 * * @return array The test results. */ public function get_test_plugin_theme_auto_updates() { $result = array( 'label' => __( 'Plugin and theme auto-updates appear to be configured correctly' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Plugin and theme auto-updates ensure that the latest versions are always installed.' ) ), 'actions' => '', 'test' => 'plugin_theme_auto_updates', ); $check_plugin_theme_updates = $this->detect_plugin_theme_auto_update_issues(); $result['status'] = $check_plugin_theme_updates->status; if ( 'good' !== $result['status'] ) { $result['label'] = __( 'Your site may have problems auto-updating plugins and themes' ); $result['description'] .= sprintf( '

        %s

        ', $check_plugin_theme_updates->message ); } return $result; } /** * Tests available disk space for updates. * * @since 6.3.0 * * @return array The test results. */ public function get_test_available_updates_disk_space() { $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false; $result = array( 'label' => __( 'Disk space available to safely perform updates' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( /* translators: %s: Available disk space in MB or GB. */ '

        ' . __( '%s available disk space was detected, update routines can be performed safely.' ) . '

        ', size_format( $available_space ) ), 'actions' => '', 'test' => 'available_updates_disk_space', ); if ( false === $available_space ) { $result['description'] = __( 'Could not determine available disk space for updates.' ); $result['status'] = 'recommended'; } elseif ( $available_space < 20 * MB_IN_BYTES ) { $result['description'] = sprintf( /* translators: %s: Available disk space in MB or GB. */ __( 'Available disk space is critically low, less than %s available. Proceed with caution, updates may fail.' ), size_format( 20 * MB_IN_BYTES ) ); $result['status'] = 'critical'; } elseif ( $available_space < 100 * MB_IN_BYTES ) { $result['description'] = sprintf( /* translators: %s: Available disk space in MB or GB. */ __( 'Available disk space is low, less than %s available.' ), size_format( 100 * MB_IN_BYTES ) ); $result['status'] = 'recommended'; } return $result; } /** * Tests if registration is open to everyone and the default role is privileged. * * @since 7.0.0 * * @return array The test results. */ public function get_test_insecure_registration() { $users_can_register = get_option( 'users_can_register' ); $default_role = get_option( 'default_role' ); $result = array( 'label' => __( 'Open Registration with privileged default role' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => '

        ' . __( 'The combination of open registration setting and the default user role may lead to security issues.' ) . '

        ', 'actions' => '', 'test' => 'insecure_registration', ); if ( $users_can_register && in_array( $default_role, array( 'editor', 'administrator' ), true ) ) { $result['description'] = __( 'Registration is open to anyone, and the default role is set to a privileged role.' ); $result['status'] = 'critical'; $result['actions'] = sprintf( '

        %s

        ', esc_url( admin_url( 'options-general.php' ) ), __( 'Change these settings' ) ); } return $result; } /** * Tests if plugin and theme temporary backup directories are writable or can be created. * * @since 6.3.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @return array The test results. */ public function get_test_update_temp_backup_writable() { global $wp_filesystem; $result = array( 'label' => __( 'Plugin and theme temporary backup directory is writable' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( /* translators: %s: wp-content/upgrade-temp-backup */ '

        ' . __( 'The %s directory used to improve the stability of plugin and theme updates is writable.' ) . '

        ', 'wp-content/upgrade-temp-backup' ), 'actions' => '', 'test' => 'update_temp_backup_writable', ); if ( ! function_exists( 'WP_Filesystem' ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; } ob_start(); $credentials = request_filesystem_credentials( '' ); ob_end_clean(); if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { $result['status'] = 'recommended'; $result['label'] = __( 'Could not access filesystem' ); $result['description'] = __( 'Unable to connect to the filesystem. Please confirm your credentials.' ); return $result; } $wp_content = $wp_filesystem->wp_content_dir(); if ( ! $wp_content ) { $result['status'] = 'critical'; $result['label'] = __( 'Unable to locate WordPress content directory' ); $result['description'] = sprintf( /* translators: %s: wp-content */ '

        ' . __( 'The %s directory cannot be located.' ) . '

        ', 'wp-content' ); return $result; } $upgrade_dir_exists = $wp_filesystem->is_dir( "$wp_content/upgrade" ); $upgrade_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade" ); $backup_dir_exists = $wp_filesystem->is_dir( "$wp_content/upgrade-temp-backup" ); $backup_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade-temp-backup" ); $plugins_dir_exists = $wp_filesystem->is_dir( "$wp_content/upgrade-temp-backup/plugins" ); $plugins_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade-temp-backup/plugins" ); $themes_dir_exists = $wp_filesystem->is_dir( "$wp_content/upgrade-temp-backup/themes" ); $themes_dir_is_writable = $wp_filesystem->is_writable( "$wp_content/upgrade-temp-backup/themes" ); if ( $plugins_dir_exists && ! $plugins_dir_is_writable && $themes_dir_exists && ! $themes_dir_is_writable ) { $result['status'] = 'critical'; $result['label'] = __( 'Plugin and theme temporary backup directories exist but are not writable' ); $result['description'] = sprintf( /* translators: 1: wp-content/upgrade-temp-backup/plugins, 2: wp-content/upgrade-temp-backup/themes. */ '

        ' . __( 'The %1$s and %2$s directories exist but are not writable. These directories are used to improve the stability of plugin updates. Please make sure the server has write permissions to these directories.' ) . '

        ', 'wp-content/upgrade-temp-backup/plugins', 'wp-content/upgrade-temp-backup/themes' ); return $result; } if ( $plugins_dir_exists && ! $plugins_dir_is_writable ) { $result['status'] = 'critical'; $result['label'] = __( 'Plugin temporary backup directory exists but is not writable' ); $result['description'] = sprintf( /* translators: %s: wp-content/upgrade-temp-backup/plugins */ '

        ' . __( 'The %s directory exists but is not writable. This directory is used to improve the stability of plugin updates. Please make sure the server has write permissions to this directory.' ) . '

        ', 'wp-content/upgrade-temp-backup/plugins' ); return $result; } if ( $themes_dir_exists && ! $themes_dir_is_writable ) { $result['status'] = 'critical'; $result['label'] = __( 'Theme temporary backup directory exists but is not writable' ); $result['description'] = sprintf( /* translators: %s: wp-content/upgrade-temp-backup/themes */ '

        ' . __( 'The %s directory exists but is not writable. This directory is used to improve the stability of theme updates. Please make sure the server has write permissions to this directory.' ) . '

        ', 'wp-content/upgrade-temp-backup/themes' ); return $result; } if ( ( ! $plugins_dir_exists || ! $themes_dir_exists ) && $backup_dir_exists && ! $backup_dir_is_writable ) { $result['status'] = 'critical'; $result['label'] = __( 'The temporary backup directory exists but is not writable' ); $result['description'] = sprintf( /* translators: %s: wp-content/upgrade-temp-backup */ '

        ' . __( 'The %s directory exists but is not writable. This directory is used to improve the stability of plugin and theme updates. Please make sure the server has write permissions to this directory.' ) . '

        ', 'wp-content/upgrade-temp-backup' ); return $result; } if ( ! $backup_dir_exists && $upgrade_dir_exists && ! $upgrade_dir_is_writable ) { $result['status'] = 'critical'; $result['label'] = __( 'The upgrade directory exists but is not writable' ); $result['description'] = sprintf( /* translators: %s: wp-content/upgrade */ '

        ' . __( 'The %s directory exists but is not writable. This directory is used for plugin and theme updates. Please make sure the server has write permissions to this directory.' ) . '

        ', 'wp-content/upgrade' ); return $result; } if ( ! $upgrade_dir_exists && ! $wp_filesystem->is_writable( $wp_content ) ) { $result['status'] = 'critical'; $result['label'] = __( 'The upgrade directory cannot be created' ); $result['description'] = sprintf( /* translators: 1: wp-content/upgrade, 2: wp-content. */ '

        ' . __( 'The %1$s directory does not exist, and the server does not have write permissions in %2$s to create it. This directory is used for plugin and theme updates. Please make sure the server has write permissions in %2$s.' ) . '

        ', 'wp-content/upgrade', 'wp-content' ); return $result; } return $result; } /** * Tests if loopbacks work as expected. * * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance, * or when editing a plugin or theme. This has shown itself to be a recurring issue, * as code can very easily break this interaction. * * @since 5.2.0 * * @return array The test results. */ public function get_test_loopback_requests() { $result = array( 'label' => __( 'Your site can perform loopback requests' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.' ) ), 'actions' => '', 'test' => 'loopback_requests', ); $check_loopback = $this->can_perform_loopback(); $result['status'] = $check_loopback->status; if ( 'good' !== $result['status'] ) { $result['label'] = __( 'Your site could not complete a loopback request' ); $result['description'] .= sprintf( '

        %s

        ', $check_loopback->message ); } return $result; } /** * Tests if HTTP requests are blocked. * * It's possible to block all outgoing communication (with the possibility of allowing certain * hosts) via the HTTP API. This may create problems for users as many features are running as * services these days. * * @since 5.2.0 * * @return array The test results. */ public function get_test_http_requests() { $result = array( 'label' => __( 'HTTP requests seem to be working as expected' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'It is possible for site maintainers to block all, or some, communication to other sites and services. If set up incorrectly, this may prevent plugins and themes from working as intended.' ) ), 'actions' => '', 'test' => 'http_requests', ); $blocked = false; $hosts = array(); if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) { $blocked = true; } if ( defined( 'WP_ACCESSIBLE_HOSTS' ) ) { $hosts = explode( ',', WP_ACCESSIBLE_HOSTS ); } if ( $blocked && 0 === count( $hosts ) ) { $result['status'] = 'critical'; $result['label'] = __( 'HTTP requests are blocked' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %s: Name of the constant used. */ __( 'HTTP requests have been blocked by the %s constant, with no allowed hosts.' ), 'WP_HTTP_BLOCK_EXTERNAL' ) ); } if ( $blocked && 0 < count( $hosts ) ) { $result['status'] = 'recommended'; $result['label'] = __( 'HTTP requests are partially blocked' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: 1: Name of the constant used. 2: List of allowed hostnames. */ __( 'HTTP requests have been blocked by the %1$s constant, with some allowed hosts: %2$s.' ), 'WP_HTTP_BLOCK_EXTERNAL', implode( ',', $hosts ) ) ); } return $result; } /** * Tests if the REST API is accessible. * * Various security measures may block the REST API from working, or it may have been disabled in general. * This is required for the new block editor to work, so we explicitly test for this. * * @since 5.2.0 * * @return array The test results. */ public function get_test_rest_availability() { $result = array( 'label' => __( 'The REST API is available' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.' ) ), 'actions' => '', 'test' => 'rest_availability', ); $cookies = wp_unslash( $_COOKIE ); $timeout = 10; // 10 seconds. $headers = array( 'Cache-Control' => 'no-cache', 'X-WP-Nonce' => wp_create_nonce( 'wp_rest' ), ); /** This filter is documented in wp-includes/class-wp-http-streams.php */ $sslverify = apply_filters( 'https_local_ssl_verify', false ); // Include Basic auth in loopback requests. if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) ); } $url = rest_url( 'wp/v2/types/post' ); // The context for this is editing with the new block editor. $url = add_query_arg( array( 'context' => 'edit', ), $url ); $r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) ); if ( is_wp_error( $r ) ) { $result['status'] = 'critical'; $result['label'] = __( 'The REST API encountered an error' ); $result['description'] .= sprintf( '

        %s

        %s
        %s

        ', __( 'When testing the REST API, an error was encountered:' ), sprintf( // translators: %s: The REST API URL. __( 'REST API Endpoint: %s' ), $url ), sprintf( // translators: 1: The WordPress error code. 2: The WordPress error message. __( 'REST API Response: (%1$s) %2$s' ), $r->get_error_code(), $r->get_error_message() ) ); } elseif ( 200 !== wp_remote_retrieve_response_code( $r ) ) { $result['status'] = 'recommended'; $result['label'] = __( 'The REST API encountered an unexpected result' ); $result['description'] .= sprintf( '

        %s

        %s
        %s

        ', __( 'When testing the REST API, an unexpected result was returned:' ), sprintf( // translators: %s: The REST API URL. __( 'REST API Endpoint: %s' ), $url ), sprintf( // translators: 1: The WordPress error code. 2: The HTTP status code error message. __( 'REST API Response: (%1$s) %2$s' ), wp_remote_retrieve_response_code( $r ), wp_remote_retrieve_response_message( $r ) ) ); } else { $json = json_decode( wp_remote_retrieve_body( $r ), true ); if ( false !== $json && ! isset( $json['capabilities'] ) ) { $result['status'] = 'recommended'; $result['label'] = __( 'The REST API did not behave correctly' ); $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: %s: The name of the query parameter being tested. */ __( 'The REST API did not process the %s query parameter correctly.' ), 'context' ) ); } } return $result; } /** * Tests if 'file_uploads' directive in PHP.ini is turned off. * * @since 5.5.0 * * @return array The test results. */ public function get_test_file_uploads() { $result = array( 'label' => __( 'Files can be uploaded' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', sprintf( /* translators: 1: file_uploads, 2: php.ini */ __( 'The %1$s directive in %2$s determines if uploading files is allowed on your site.' ), 'file_uploads', 'php.ini' ) ), 'actions' => '', 'test' => 'file_uploads', ); if ( ! function_exists( 'ini_get' ) ) { $result['status'] = 'critical'; $result['description'] .= sprintf( /* translators: %s: ini_get() */ __( 'The %s function has been disabled, some media settings are unavailable because of this.' ), 'ini_get()' ); return $result; } if ( empty( ini_get( 'file_uploads' ) ) ) { $result['status'] = 'critical'; $result['description'] .= sprintf( '

        %s

        ', sprintf( /* translators: 1: file_uploads, 2: 0 */ __( '%1$s is set to %2$s. You won\'t be able to upload files on your site.' ), 'file_uploads', '0' ) ); return $result; } $post_max_size = ini_get( 'post_max_size' ); $upload_max_filesize = ini_get( 'upload_max_filesize' ); if ( wp_convert_hr_to_bytes( $post_max_size ) < wp_convert_hr_to_bytes( $upload_max_filesize ) ) { $result['label'] = sprintf( /* translators: 1: post_max_size, 2: upload_max_filesize */ __( 'The "%1$s" value is smaller than "%2$s"' ), 'post_max_size', 'upload_max_filesize' ); $result['status'] = 'recommended'; if ( 0 === wp_convert_hr_to_bytes( $post_max_size ) ) { $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: 1: post_max_size, 2: upload_max_filesize */ __( 'The setting for %1$s is currently configured as 0, this could cause some problems when trying to upload files through plugin or theme features that rely on various upload methods. It is recommended to configure this setting to a fixed value, ideally matching the value of %2$s, as some upload methods read the value 0 as either unlimited, or disabled.' ), 'post_max_size', 'upload_max_filesize' ) ); } else { $result['description'] = sprintf( '

        %s

        ', sprintf( /* translators: 1: post_max_size, 2: upload_max_filesize */ __( 'The setting for %1$s is smaller than %2$s, this could cause some problems when trying to upload files.' ), 'post_max_size', 'upload_max_filesize' ) ); } return $result; } return $result; } /** * Tests if the Authorization header has the expected values. * * @since 5.6.0 * * @return array */ public function get_test_authorization_header() { $result = array( 'label' => __( 'The Authorization header is working as expected' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Security' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'The Authorization header is used by third-party applications you have approved for this site. Without this header, those apps cannot connect to your site.' ) ), 'actions' => '', 'test' => 'authorization_header', ); if ( ! isset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) ) { $result['label'] = __( 'The authorization header is missing' ); } elseif ( 'user' !== $_SERVER['PHP_AUTH_USER'] || 'pwd' !== $_SERVER['PHP_AUTH_PW'] ) { $result['label'] = __( 'The authorization header is invalid' ); } else { return $result; } $result['status'] = 'recommended'; $result['description'] .= sprintf( '

        %s

        ', __( 'If you are still seeing this warning after having tried the actions below, you may need to contact your hosting provider for further assistance.' ) ); if ( ! function_exists( 'got_mod_rewrite' ) ) { require_once ABSPATH . 'wp-admin/includes/misc.php'; } if ( got_mod_rewrite() ) { $result['actions'] .= sprintf( '

        %s

        ', esc_url( admin_url( 'options-permalink.php' ) ), __( 'Flush permalinks' ) ); } else { $result['actions'] .= sprintf( '

        %s %s

        ', __( 'https://developer.wordpress.org/rest-api/frequently-asked-questions/#why-is-authentication-not-working' ), __( 'Learn how to configure the Authorization header.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); } return $result; } /** * Tests if a full page cache is available. * * @since 6.1.0 * * @return array The test result. */ public function get_test_page_cache() { $description = '

        ' . __( 'Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.' ) . '

        '; $description .= '

        ' . __( 'Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:' ) . '

        '; $description .= '' . implode( ', ', array_keys( $this->get_page_cache_headers() ) ) . '.'; $result = array( 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => wp_kses_post( $description ), 'test' => 'page_cache', 'status' => 'good', 'label' => '', 'actions' => sprintf( '

        %2$s %3$s

        ', __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#caching' ), __( 'Learn more about page cache' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), ); $page_cache_detail = $this->get_page_cache_detail(); if ( is_wp_error( $page_cache_detail ) ) { $result['label'] = __( 'Unable to detect the presence of page cache' ); $result['status'] = 'recommended'; $error_info = sprintf( /* translators: 1: Error message, 2: Error code. */ __( 'Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: %1$s (Code: %2$s)' ), $page_cache_detail->get_error_message(), $page_cache_detail->get_error_code() ); $result['description'] = wp_kses_post( "

        $error_info

        " ) . $result['description']; return $result; } $result['status'] = $page_cache_detail['status']; switch ( $page_cache_detail['status'] ) { case 'recommended': $result['label'] = __( 'Page cache is not detected but the server response time is OK' ); break; case 'good': $result['label'] = __( 'Page cache is detected and the server response time is good' ); break; default: if ( empty( $page_cache_detail['headers'] ) && ! $page_cache_detail['advanced_cache_present'] ) { $result['label'] = __( 'Page cache is not detected and the server response time is slow' ); } else { $result['label'] = __( 'Page cache is detected but the server response time is still slow' ); } } $page_cache_test_summary = array(); if ( empty( $page_cache_detail['response_time'] ) ) { $page_cache_test_summary[] = ' ' . __( 'Server response time could not be determined. Verify that loopback requests are working.' ); } else { $threshold = $this->get_good_response_time_threshold(); if ( $page_cache_detail['response_time'] < $threshold ) { $page_cache_test_summary[] = ' ' . sprintf( /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */ __( 'Median server response time was %1$s milliseconds. This is less than the recommended %2$s milliseconds threshold.' ), number_format_i18n( $page_cache_detail['response_time'] ), number_format_i18n( $threshold ) ); } else { $page_cache_test_summary[] = ' ' . sprintf( /* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */ __( 'Median server response time was %1$s milliseconds. It should be less than the recommended %2$s milliseconds threshold.' ), number_format_i18n( $page_cache_detail['response_time'] ), number_format_i18n( $threshold ) ); } if ( empty( $page_cache_detail['headers'] ) ) { $page_cache_test_summary[] = ' ' . __( 'No client caching response headers were detected.' ); } else { $headers_summary = ''; $headers_summary .= ' ' . sprintf( /* translators: %d: Number of caching headers. */ _n( 'There was %d client caching response header detected:', 'There were %d client caching response headers detected:', count( $page_cache_detail['headers'] ) ), count( $page_cache_detail['headers'] ) ); $headers_summary .= ' ' . implode( ', ', $page_cache_detail['headers'] ) . '.'; $page_cache_test_summary[] = $headers_summary; } } if ( $page_cache_detail['advanced_cache_present'] ) { $page_cache_test_summary[] = ' ' . __( 'A page cache plugin was detected.' ); } elseif ( ! ( is_array( $page_cache_detail ) && ! empty( $page_cache_detail['headers'] ) ) ) { // Note: This message is not shown if client caching response headers were present since an external caching layer may be employed. $page_cache_test_summary[] = ' ' . __( 'A page cache plugin was not detected.' ); } $result['description'] .= '
        • ' . implode( '
        • ', $page_cache_test_summary ) . '
        '; return $result; } /** * Tests if the site uses persistent object cache and recommends to use it if not. * * @since 6.1.0 * * @return array The test result. */ public function get_test_persistent_object_cache() { /** * Filters the action URL for the persistent object cache health check. * * @since 6.1.0 * * @param string $action_url Learn more link for persistent object cache health check. */ $action_url = apply_filters( 'site_status_persistent_object_cache_url', /* translators: Localized Support reference. */ __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache' ) ); $result = array( 'test' => 'persistent_object_cache', 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'label' => __( 'A persistent object cache is being used' ), 'description' => sprintf( '

        %s

        ', __( 'A persistent object cache makes your site’s database more efficient, resulting in faster load times because WordPress can retrieve your site’s content and settings much more quickly.' ) ), 'actions' => sprintf( '

        %s %s

        ', esc_url( $action_url ), __( 'Learn more about persistent object caching.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), ); if ( wp_using_ext_object_cache() ) { return $result; } if ( ! $this->should_suggest_persistent_object_cache() ) { $result['label'] = __( 'A persistent object cache is not required' ); return $result; } $available_services = $this->available_object_cache_services(); $notes = __( 'Your hosting provider can tell you if a persistent object cache can be enabled on your site.' ); if ( ! empty( $available_services ) ) { $notes .= ' ' . sprintf( /* translators: Available object caching services. */ __( 'Your host appears to support the following object caching services: %s.' ), implode( ', ', $available_services ) ); } /** * Filters the second paragraph of the health check's description * when suggesting the use of a persistent object cache. * * Hosts may want to replace the notes to recommend their preferred object caching solution. * * Plugin authors may want to append notes (not replace) on why object caching is recommended for their plugin. * * @since 6.1.0 * * @param string $notes The notes appended to the health check description. * @param string[] $available_services The list of available persistent object cache services. */ $notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services ); $result['status'] = 'recommended'; $result['label'] = __( 'You should use a persistent object cache' ); $result['description'] .= sprintf( '

        %s

        ', wp_kses( $notes, array( 'a' => array( 'href' => true ), 'code' => true, 'em' => true, 'strong' => true, ) ) ); return $result; } /** * Calculates total amount of autoloaded data. * * @since 6.6.0 * * @return int Autoloaded data in bytes. */ public function get_autoloaded_options_size() { $alloptions = wp_load_alloptions(); $total_length = 0; foreach ( $alloptions as $option_value ) { if ( is_array( $option_value ) || is_object( $option_value ) ) { $option_value = maybe_serialize( $option_value ); } $total_length += strlen( (string) $option_value ); } return $total_length; } /** * Tests the number of autoloaded options. * * @since 6.6.0 * * @return array The test results. */ public function get_test_autoloaded_options() { $autoloaded_options_size = $this->get_autoloaded_options_size(); $autoloaded_options_count = count( wp_load_alloptions() ); $base_description = __( 'Autoloaded options are configuration settings for plugins and themes that are automatically loaded with every page load in WordPress. Having too many autoloaded options can slow down your site.' ); $result = array( 'label' => __( 'Autoloaded options are acceptable' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( /* translators: 1: Number of autoloaded options, 2: Autoloaded options size. */ '

        ' . esc_html( $base_description ) . ' ' . __( 'Your site has %1$s autoloaded options (size: %2$s) in the options table, which is acceptable.' ) . '

        ', $autoloaded_options_count, size_format( $autoloaded_options_size ) ), 'actions' => '', 'test' => 'autoloaded_options', ); /** * Filters max bytes threshold to trigger warning in Site Health. * * @since 6.6.0 * * @param int $limit Autoloaded options threshold size. Default 800000. */ $limit = apply_filters( 'site_status_autoloaded_options_size_limit', 800000 ); if ( $autoloaded_options_size < $limit ) { return $result; } $result['status'] = 'critical'; $result['label'] = __( 'Autoloaded options could affect performance' ); $result['description'] = sprintf( /* translators: 1: Number of autoloaded options, 2: Autoloaded options size. */ '

        ' . esc_html( $base_description ) . ' ' . __( 'Your site has %1$s autoloaded options (size: %2$s) in the options table, which could cause your site to be slow. You can review the options being autoloaded in your database and remove any options that are no longer needed by your site.' ) . '

        ', $autoloaded_options_count, size_format( $autoloaded_options_size ) ); /** * Filters description to be shown on Site Health warning when threshold is met. * * @since 6.6.0 * * @param string $description Description message when autoloaded options bigger than threshold. */ $result['description'] = apply_filters( 'site_status_autoloaded_options_limit_description', $result['description'] ); $result['actions'] = sprintf( /* translators: 1: HelpHub URL, 2: Link description. */ '

        %2$s

        ', esc_url( __( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#autoloaded-options' ) ), __( 'More info about optimizing autoloaded options' ) ); /** * Filters actionable information to tackle the problem. It can be a link to an external guide. * * @since 6.6.0 * * @param string $actions Call to Action to be used to point to the right direction to solve the issue. */ $result['actions'] = apply_filters( 'site_status_autoloaded_options_action_to_perform', $result['actions'] ); return $result; } /** * Tests whether search engine indexing is enabled. * * Surfaces as “good” if `blog_public === 1`, or “recommended” if `blog_public === 0`. * * @since 6.9.0 * * @return array The test results. */ public function get_test_search_engine_visibility() { $result = array( 'label' => __( 'Search engine indexing is enabled.', 'default' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Privacy', 'default' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Search engines can crawl and index your site. No action needed.', 'default' ) ), 'actions' => sprintf( '

        %2$s

        ', esc_url( admin_url( 'options-reading.php#blog_public' ) ), __( 'Review your visibility settings', 'default' ) ), 'test' => 'search_engine_visibility', ); // If indexing is discouraged, flip to “recommended”: if ( ! get_option( 'blog_public' ) ) { $result['status'] = 'recommended'; $result['label'] = __( 'Search engines are discouraged from indexing this site.', 'default' ); $result['badge']['color'] = 'blue'; $result['description'] = sprintf( '

        %s

        ', __( 'Your site is hidden from search engines. Consider enabling indexing if this is a public site.', 'default' ) ); } return $result; } /** * Tests if opcode cache is enabled and available. * * @since 7.0.0 * * @return array> The test result. */ public function get_test_opcode_cache(): array { $opcode_cache_enabled = false; if ( function_exists( 'opcache_get_status' ) ) { $status = @opcache_get_status( false ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- Warning emitted in failure case. if ( $status && true === $status['opcache_enabled'] ) { $opcode_cache_enabled = true; } } $result = array( 'label' => __( 'Opcode cache is enabled' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Performance' ), 'color' => 'blue', ), 'description' => sprintf( '

        %s

        ', __( 'Opcode cache improves PHP performance by storing precompiled script bytecode in memory, reducing the need for PHP to load and parse scripts on each request.' ) ), 'actions' => sprintf( '

        %s %s

        ', esc_url( 'https://www.php.net/manual/en/book.opcache.php' ), __( 'Learn more about OPcache.' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'opcode_cache', ); if ( ! $opcode_cache_enabled ) { $result['status'] = 'recommended'; $result['label'] = __( 'Opcode cache is not enabled' ); $result['description'] .= '

        ' . __( 'Enabling this cache can significantly improve the performance of your site.' ) . '

        '; } return $result; } /** * Returns a set of tests that belong to the site status page. * * Each site status test is defined here, they may be `direct` tests, that run on page load, or `async` tests * which will run later down the line via JavaScript calls to improve page performance and hopefully also user * experiences. * * @since 5.2.0 * @since 5.6.0 Added support for `has_rest` and `permissions`. * * @return array The list of tests to run. */ public static function get_tests() { $tests = array( 'direct' => array( 'wordpress_version' => array( 'label' => __( 'WordPress Version' ), 'test' => 'wordpress_version', ), 'plugin_version' => array( 'label' => __( 'Plugin Versions' ), 'test' => 'plugin_version', ), 'theme_version' => array( 'label' => __( 'Theme Versions' ), 'test' => 'theme_version', ), 'php_version' => array( 'label' => __( 'PHP Version' ), 'test' => 'php_version', ), 'php_extensions' => array( 'label' => __( 'PHP Extensions' ), 'test' => 'php_extensions', ), 'php_default_timezone' => array( 'label' => __( 'PHP Default Timezone' ), 'test' => 'php_default_timezone', ), 'php_sessions' => array( 'label' => __( 'PHP Sessions' ), 'test' => 'php_sessions', ), 'sql_server' => array( 'label' => __( 'Database Server version' ), 'test' => 'sql_server', ), 'ssl_support' => array( 'label' => __( 'Secure communication' ), 'test' => 'ssl_support', ), 'scheduled_events' => array( 'label' => __( 'Scheduled events' ), 'test' => 'scheduled_events', ), 'http_requests' => array( 'label' => __( 'HTTP Requests' ), 'test' => 'http_requests', ), 'rest_availability' => array( 'label' => __( 'REST API availability' ), 'test' => 'rest_availability', 'skip_cron' => true, ), 'debug_enabled' => array( 'label' => __( 'Debugging enabled' ), 'test' => 'is_in_debug_mode', ), 'file_uploads' => array( 'label' => __( 'File uploads' ), 'test' => 'file_uploads', ), 'plugin_theme_auto_updates' => array( 'label' => __( 'Plugin and theme auto-updates' ), 'test' => 'plugin_theme_auto_updates', ), 'update_temp_backup_writable' => array( 'label' => __( 'Plugin and theme temporary backup directory access' ), 'test' => 'update_temp_backup_writable', ), 'available_updates_disk_space' => array( 'label' => __( 'Available disk space' ), 'test' => 'available_updates_disk_space', ), 'autoloaded_options' => array( 'label' => __( 'Autoloaded options' ), 'test' => 'autoloaded_options', ), 'insecure_registration' => array( 'label' => __( 'Open Registration with privileged default role' ), 'test' => 'insecure_registration', ), 'search_engine_visibility' => array( 'label' => __( 'Search Engine Visibility' ), 'test' => 'search_engine_visibility', ), 'opcode_cache' => array( 'label' => __( 'Opcode cache' ), 'test' => 'opcode_cache', ), ), 'async' => array( 'dotorg_communication' => array( 'label' => __( 'Communication with WordPress.org' ), 'test' => rest_url( 'wp-site-health/v1/tests/dotorg-communication' ), 'has_rest' => true, 'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_dotorg_communication' ), ), 'background_updates' => array( 'label' => __( 'Background updates' ), 'test' => rest_url( 'wp-site-health/v1/tests/background-updates' ), 'has_rest' => true, 'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_background_updates' ), ), 'loopback_requests' => array( 'label' => __( 'Loopback request' ), 'test' => rest_url( 'wp-site-health/v1/tests/loopback-requests' ), 'has_rest' => true, 'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_loopback_requests' ), ), 'https_status' => array( 'label' => __( 'HTTPS status' ), 'test' => rest_url( 'wp-site-health/v1/tests/https-status' ), 'has_rest' => true, 'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_https_status' ), ), ), ); // Conditionally include Authorization header test if the site isn't protected by Basic Auth. if ( ! wp_is_site_protected_by_basic_auth() ) { $tests['async']['authorization_header'] = array( 'label' => __( 'Authorization header' ), 'test' => rest_url( 'wp-site-health/v1/tests/authorization-header' ), 'has_rest' => true, 'headers' => array( 'Authorization' => 'Basic ' . base64_encode( 'user:pwd' ) ), 'skip_cron' => true, ); } // Only check for caches in production environments. if ( 'production' === wp_get_environment_type() ) { $tests['async']['page_cache'] = array( 'label' => __( 'Page cache' ), 'test' => rest_url( 'wp-site-health/v1/tests/page-cache' ), 'has_rest' => true, 'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_page_cache' ), ); $tests['direct']['persistent_object_cache'] = array( 'label' => __( 'Persistent object cache' ), 'test' => 'persistent_object_cache', ); } /** * Filters which site status tests are run on a site. * * The site health is determined by a set of tests based on best practices from * both the WordPress Hosting Team and web standards in general. * * Some sites may not have the same requirements, for example the automatic update * checks may be handled by a host, and are therefore disabled in core. * Or maybe you want to introduce a new test, is caching enabled/disabled/stale for example. * * Tests may be added either as direct, or asynchronous ones. Any test that may require some time * to complete should run asynchronously, to avoid extended loading periods within wp-admin. * * @since 5.2.0 * @since 5.6.0 Added the `async_direct_test` array key for asynchronous tests. * Added the `skip_cron` array key for all tests. * * @param array[] $tests { * An associative array of direct and asynchronous tests. * * @type array[] $direct { * An array of direct tests. * * @type array ...$identifier { * `$identifier` should be a unique identifier for the test. Plugins and themes are encouraged to * prefix test identifiers with their slug to avoid collisions between tests. * * @type string $label The friendly label to identify the test. * @type callable $test The callback function that runs the test and returns its result. * @type bool $skip_cron Whether to skip this test when running as cron. * } * } * @type array[] $async { * An array of asynchronous tests. * * @type array ...$identifier { * `$identifier` should be a unique identifier for the test. Plugins and themes are encouraged to * prefix test identifiers with their slug to avoid collisions between tests. * * @type string $label The friendly label to identify the test. * @type string $test An admin-ajax.php action to be called to perform the test, or * if `$has_rest` is true, a URL to a REST API endpoint to perform * the test. * @type bool $has_rest Whether the `$test` property points to a REST API endpoint. * @type bool $skip_cron Whether to skip this test when running as cron. * @type callable $async_direct_test A manner of directly calling the test marked as asynchronous, * as the scheduled event can not authenticate, and endpoints * may require authentication. * } * } * } */ $tests = apply_filters( 'site_status_tests', $tests ); // Ensure that the filtered tests contain the required array keys. $tests = array_merge( array( 'direct' => array(), 'async' => array(), ), $tests ); return $tests; } /** * Adds a class to the body HTML tag. * * Filters the body class string for admin pages and adds our own class for easier styling. * * @since 5.2.0 * * @param string $body_class The body class string. * @return string The modified body class string. */ public function admin_body_class( $body_class ) { $screen = get_current_screen(); if ( 'site-health' !== $screen->id ) { return $body_class; } $body_class .= ' site-health'; return $body_class; } /** * Initiates the WP_Cron schedule test cases. * * @since 5.2.0 */ private function wp_schedule_test_init() { $this->schedules = wp_get_schedules(); $this->get_cron_tasks(); } /** * Populates the list of cron events and store them to a class-wide variable. * * @since 5.2.0 */ private function get_cron_tasks() { $cron_tasks = _get_cron_array(); if ( empty( $cron_tasks ) ) { $this->crons = new WP_Error( 'no_tasks', __( 'No scheduled events exist on this site.' ) ); return; } $this->crons = array(); foreach ( $cron_tasks as $time => $cron ) { foreach ( $cron as $hook => $dings ) { foreach ( $dings as $sig => $data ) { $this->crons[ "$hook-$sig-$time" ] = (object) array( 'hook' => $hook, 'time' => $time, 'sig' => $sig, 'args' => $data['args'], 'schedule' => $data['schedule'], 'interval' => $data['interval'] ?? null, ); } } } } /** * Checks if any scheduled tasks have been missed. * * Returns a boolean value of `true` if a scheduled task has been missed and ends processing. * * If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value. * * @since 5.2.0 * * @return bool|WP_Error True if a cron was missed, false if not. WP_Error if the cron is set to that. */ public function has_missed_cron() { if ( is_wp_error( $this->crons ) ) { return $this->crons; } foreach ( $this->crons as $id => $cron ) { if ( ( $cron->time - time() ) < $this->timeout_missed_cron ) { $this->last_missed_cron = $cron->hook; return true; } } return false; } /** * Checks if any scheduled tasks are late. * * Returns a boolean value of `true` if a scheduled task is late and ends processing. * * If the list of crons is an instance of WP_Error, returns the instance instead of a boolean value. * * @since 5.3.0 * * @return bool|WP_Error True if a cron is late, false if not. WP_Error if the cron is set to that. */ public function has_late_cron() { if ( is_wp_error( $this->crons ) ) { return $this->crons; } foreach ( $this->crons as $id => $cron ) { $cron_offset = $cron->time - time(); if ( $cron_offset >= $this->timeout_missed_cron && $cron_offset < $this->timeout_late_cron ) { $this->last_late_cron = $cron->hook; return true; } } return false; } /** * Checks for potential issues with plugin and theme auto-updates. * * Though there is no way to 100% determine if plugin and theme auto-updates are configured * correctly, a few educated guesses could be made to flag any conditions that would * potentially cause unexpected behaviors. * * @since 5.5.0 * * @return object The test results. */ public function detect_plugin_theme_auto_update_issues() { $mock_plugin = (object) array( 'id' => 'w.org/plugins/a-fake-plugin', 'slug' => 'a-fake-plugin', 'plugin' => 'a-fake-plugin/a-fake-plugin.php', 'new_version' => '9.9', 'url' => 'https://wordpress.org/plugins/a-fake-plugin/', 'package' => 'https://downloads.wordpress.org/plugin/a-fake-plugin.9.9.zip', 'icons' => array( '2x' => 'https://ps.w.org/a-fake-plugin/assets/icon-256x256.png', '1x' => 'https://ps.w.org/a-fake-plugin/assets/icon-128x128.png', ), 'banners' => array( '2x' => 'https://ps.w.org/a-fake-plugin/assets/banner-1544x500.png', '1x' => 'https://ps.w.org/a-fake-plugin/assets/banner-772x250.png', ), 'banners_rtl' => array(), 'tested' => '5.5.0', 'requires_php' => '5.6.20', 'compatibility' => new stdClass(), ); $mock_theme = (object) array( 'theme' => 'a-fake-theme', 'new_version' => '9.9', 'url' => 'https://wordpress.org/themes/a-fake-theme/', 'package' => 'https://downloads.wordpress.org/theme/a-fake-theme.9.9.zip', 'requires' => '5.0.0', 'requires_php' => '5.6.20', ); $test_plugins_enabled = wp_is_auto_update_forced_for_item( 'plugin', true, $mock_plugin ); $test_themes_enabled = wp_is_auto_update_forced_for_item( 'theme', true, $mock_theme ); $ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' ); $ui_enabled_for_themes = wp_is_auto_update_enabled_for_type( 'theme' ); $plugin_filter_present = has_filter( 'auto_update_plugin' ); $theme_filter_present = has_filter( 'auto_update_theme' ); if ( ( ! $test_plugins_enabled && $ui_enabled_for_plugins ) || ( ! $test_themes_enabled && $ui_enabled_for_themes ) ) { return (object) array( 'status' => 'critical', 'message' => __( 'Auto-updates for plugins and/or themes appear to be disabled, but settings are still set to be displayed. This could cause auto-updates to not work as expected.' ), ); } if ( ( ! $test_plugins_enabled && $plugin_filter_present ) && ( ! $test_themes_enabled && $theme_filter_present ) ) { return (object) array( 'status' => 'recommended', 'message' => __( 'Auto-updates for plugins and themes appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ), ); } elseif ( ! $test_plugins_enabled && $plugin_filter_present ) { return (object) array( 'status' => 'recommended', 'message' => __( 'Auto-updates for plugins appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ), ); } elseif ( ! $test_themes_enabled && $theme_filter_present ) { return (object) array( 'status' => 'recommended', 'message' => __( 'Auto-updates for themes appear to be disabled. This will prevent your site from receiving new versions automatically when available.' ), ); } return (object) array( 'status' => 'good', 'message' => __( 'There appear to be no issues with plugin and theme auto-updates.' ), ); } /** * Runs a loopback test on the site. * * Loopbacks are what WordPress uses to communicate with itself to start up WP_Cron, scheduled posts, * make sure plugin or theme edits don't cause site failures and similar. * * @since 5.2.0 * * @return object The test results. */ public function can_perform_loopback() { $body = array( 'site-health' => 'loopback-test' ); $cookies = wp_unslash( $_COOKIE ); $timeout = 10; // 10 seconds. $headers = array( 'Cache-Control' => 'no-cache', ); /** This filter is documented in wp-includes/class-wp-http-streams.php */ $sslverify = apply_filters( 'https_local_ssl_verify', false ); // Include Basic auth in loopback requests. if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) ); } $url = site_url( 'wp-cron.php' ); /* * A post request is used for the wp-cron.php loopback test to cause the file * to finish early without triggering cron jobs. This has two benefits: * - cron jobs are not triggered a second time on the site health page, * - the loopback request finishes sooner providing a quicker result. * * Using a POST request causes the loopback to differ slightly to the standard * GET request WordPress uses for wp-cron.php loopback requests but is close * enough. See https://core.trac.wordpress.org/ticket/52547 */ $r = wp_remote_post( $url, compact( 'body', 'cookies', 'headers', 'timeout', 'sslverify' ) ); if ( is_wp_error( $r ) ) { return (object) array( 'status' => 'critical', 'message' => sprintf( '%s
        %s', __( 'The loopback request to your site failed, this means features relying on them are not currently working as expected.' ), sprintf( /* translators: 1: The WordPress error message. 2: The WordPress error code. */ __( 'Error: %1$s (%2$s)' ), $r->get_error_message(), $r->get_error_code() ) ), ); } if ( 200 !== wp_remote_retrieve_response_code( $r ) ) { return (object) array( 'status' => 'recommended', 'message' => sprintf( /* translators: %d: The HTTP response code returned. */ __( 'The loopback request returned an unexpected http status code, %d, it was not possible to determine if this will prevent features from working as expected.' ), wp_remote_retrieve_response_code( $r ) ), ); } return (object) array( 'status' => 'good', 'message' => __( 'The loopback request to your site completed successfully.' ), ); } /** * Creates a weekly cron event, if one does not already exist. * * @since 5.4.0 */ public function maybe_create_scheduled_event() { if ( ! wp_next_scheduled( 'wp_site_health_scheduled_check' ) && ! wp_installing() ) { wp_schedule_event( time() + DAY_IN_SECONDS, 'weekly', 'wp_site_health_scheduled_check' ); } } /** * Runs the scheduled event to check and update the latest site health status for the website. * * @since 5.4.0 */ public function wp_cron_scheduled_check() { // Bootstrap wp-admin, as WP_Cron doesn't do this for us. require_once trailingslashit( ABSPATH ) . 'wp-admin/includes/admin.php'; $tests = WP_Site_Health::get_tests(); $results = array(); $site_status = array( 'good' => 0, 'recommended' => 0, 'critical' => 0, ); // Don't run https test on development environments. if ( $this->is_development_environment() ) { unset( $tests['async']['https_status'] ); } foreach ( $tests['direct'] as $test ) { if ( ! empty( $test['skip_cron'] ) ) { continue; } if ( is_string( $test['test'] ) ) { $test_function = sprintf( 'get_test_%s', $test['test'] ); if ( method_exists( $this, $test_function ) && is_callable( array( $this, $test_function ) ) ) { $results[] = $this->perform_test( array( $this, $test_function ) ); continue; } } if ( is_callable( $test['test'] ) ) { $results[] = $this->perform_test( $test['test'] ); } } foreach ( $tests['async'] as $test ) { if ( ! empty( $test['skip_cron'] ) ) { continue; } // Local endpoints may require authentication, so asynchronous tests can pass a direct test runner as well. if ( ! empty( $test['async_direct_test'] ) && is_callable( $test['async_direct_test'] ) ) { // This test is callable, do so and continue to the next asynchronous check. $results[] = $this->perform_test( $test['async_direct_test'] ); continue; } if ( is_string( $test['test'] ) ) { // Check if this test has a REST API endpoint. if ( isset( $test['has_rest'] ) && $test['has_rest'] ) { $result_fetch = wp_remote_get( $test['test'], array( 'body' => array( '_wpnonce' => wp_create_nonce( 'wp_rest' ), ), ) ); } else { $result_fetch = wp_remote_post( admin_url( 'admin-ajax.php' ), array( 'body' => array( 'action' => $test['test'], '_wpnonce' => wp_create_nonce( 'health-check-site-status' ), ), ) ); } if ( ! is_wp_error( $result_fetch ) && 200 === wp_remote_retrieve_response_code( $result_fetch ) ) { $result = json_decode( wp_remote_retrieve_body( $result_fetch ), true ); } else { $result = false; } if ( is_array( $result ) ) { $results[] = $result; } else { $results[] = array( 'status' => 'recommended', 'label' => __( 'A test is unavailable' ), ); } } } foreach ( $results as $result ) { if ( 'critical' === $result['status'] ) { ++$site_status['critical']; } elseif ( 'recommended' === $result['status'] ) { ++$site_status['recommended']; } else { ++$site_status['good']; } } set_transient( 'health-check-site-status-result', wp_json_encode( $site_status ) ); } /** * Checks if the current environment type is set to 'development' or 'local'. * * @since 5.6.0 * * @return bool True if it is a development environment, false if not. */ public function is_development_environment() { return in_array( wp_get_environment_type(), array( 'development', 'local' ), true ); } /** * Returns a mapping from response headers to an optional callback to verify if page cache is enabled or not. * * @since 6.1.0 * * @return array Mapping of page caching headers and their (optional) verification callbacks. * A null value means a simple existence check is used for the header. */ public function get_page_cache_headers(): array { $cache_hit_callback = static function ( $header_value ) { return 1 === preg_match( '/(^| |,)HIT(,| |$)/i', $header_value ); }; $cache_headers = array( // Standard HTTP caching headers. 'cache-control' => static function ( $header_value ) { return (bool) preg_match( '/max-age=[1-9]/', $header_value ); }, 'expires' => static function ( $header_value ) { return strtotime( $header_value ) > time(); }, 'age' => static function ( $header_value ) { return is_numeric( $header_value ) && $header_value > 0; }, 'last-modified' => null, 'etag' => null, 'via' => null, /** * Custom caching headers. * * These do not seem to be actually used by any caching layers. There were first introduced in a Site Health * test in the AMP plugin. They were copied into the Performance Lab plugin's Site Health test before they * were merged into core. * * @link https://github.com/ampproject/amp-wp/pull/6849 * @link https://github.com/WordPress/performance/pull/263 * @link https://core.trac.wordpress.org/changeset/54043 */ 'x-cache-enabled' => static function ( $header_value ) { return ( 'true' === strtolower( $header_value ) ); }, 'x-cache-disabled' => static function ( $header_value ) { return ( 'on' !== strtolower( $header_value ) ); }, /** * CloudFlare. * * @link https://developers.cloudflare.com/cache/concepts/cache-responses/ */ 'cf-cache-status' => $cache_hit_callback, /** * Fastly. * * @link https://www.fastly.com/documentation/reference/http/http-headers/X-Cache/ */ 'x-cache' => $cache_hit_callback, /** * LightSpeed. * * @link https://docs.litespeedtech.com/lscache/devguide/controls/#x-litespeed-cache */ 'x-litespeed-cache' => $cache_hit_callback, /** * OpenResty srcache-nginx-module. * * The `x-srcache-store-status` header indicates if the response was stored in the cache. * Valid values include `STORE` and `BYPASS`. * * The `x-srcache-fetch-status` header indicates if the response was fetched from the cache. * Valid values include `HIT`, `MISS`, and `BYPASS`. * * @link https://github.com/openresty/srcache-nginx-module */ 'x-srcache-store-status' => static function ( $header_value ) { return 'store' === strtolower( $header_value ); }, 'x-srcache-fetch-status' => $cache_hit_callback, /** * Nginx. * * @link https://blog.nginx.org/blog/nginx-caching-guide * @link https://www.inmotionhosting.com/support/website/nginx-cache-management/ */ 'x-cache-status' => $cache_hit_callback, 'x-proxy-cache' => $cache_hit_callback, /** * Varnish Cache. * * A header with a single number indicates it was not cached. If there are two numbers (or more), then this * indicates the response was cached. * * @link https://vinyl-cache.org/docs/2.1/faq/http.html * @link https://www.fastly.com/documentation/reference/http/http-headers/X-Varnish/ * @link https://www.linuxjournal.com/content/speed-your-web-site-varnish */ 'x-varnish' => static function ( $header_value ) { return 1 === preg_match( '/^\d+ \d+/', $header_value ); }, ); /** * Filters the list of cache headers supported by core. * * This list indicates how each of the specified headers will be checked to indicate if a page cache is enabled * or not. WordPress checks for each of the headers in the returned array. If the callback is provided, it will * be passed the value for the corresponding header and return a boolean value indicating if the header suggests * that a cache is active. If the value is `null` for the header, then WordPress will assume that a cache is * active if the header is present, regardless of its value. * * @since 6.1.0 * * @param array $cache_headers Mapping from cache-related HTTP headers to whether they * indicate if a page cache is enabled for the site. `null` * indicates caching in the presence of the header; a callback is * provided the header’s value and should return `true` if it * implies that a cache is active. */ return (array) apply_filters( 'site_status_page_cache_supported_cache_headers', $cache_headers ); } /** * Checks if site has page cache enabled or not. * * @since 6.1.0 * * @return WP_Error|array { * Page cache detection details or else error information. * * @type bool $advanced_cache_present Whether a page cache plugin is present. * @type array[] $page_caching_response_headers Sets of client caching headers for the responses. * @type float[] $response_timing Response timings. * } */ private function check_for_page_caching() { /** This filter is documented in wp-includes/class-wp-http-streams.php */ $sslverify = apply_filters( 'https_local_ssl_verify', false ); $headers = array(); /* * Include basic auth in loopback requests. Note that this will only pass along basic auth when user is * initiating the test. If a site requires basic auth, the test will fail when it runs in WP Cron as part of * wp_site_health_scheduled_check. This logic is copied from WP_Site_Health::can_perform_loopback(). */ if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) ); } $caching_headers = $this->get_page_cache_headers(); $page_caching_response_headers = array(); $response_timing = array(); for ( $i = 1; $i <= 3; $i++ ) { $start_time = microtime( true ); $http_response = wp_remote_get( home_url( '/' ), compact( 'sslverify', 'headers' ) ); $end_time = microtime( true ); if ( is_wp_error( $http_response ) ) { return $http_response; } if ( wp_remote_retrieve_response_code( $http_response ) !== 200 ) { return new WP_Error( 'http_' . wp_remote_retrieve_response_code( $http_response ), wp_remote_retrieve_response_message( $http_response ) ); } $response_headers = array(); foreach ( $caching_headers as $header => $callback ) { $header_values = wp_remote_retrieve_header( $http_response, $header ); if ( empty( $header_values ) ) { continue; } $header_values = (array) $header_values; if ( empty( $callback ) || ( is_callable( $callback ) && count( array_filter( $header_values, $callback ) ) > 0 ) ) { $response_headers[ $header ] = $header_values; } } $page_caching_response_headers[] = $response_headers; $response_timing[] = ( $end_time - $start_time ) * 1000; } return array( 'advanced_cache_present' => ( file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) && ( defined( 'WP_CACHE' ) && WP_CACHE ) && /** This filter is documented in wp-settings.php */ apply_filters( 'enable_loading_advanced_cache_dropin', true ) ), 'page_caching_response_headers' => $page_caching_response_headers, 'response_timing' => $response_timing, ); } /** * Gets page cache details. * * @since 6.1.0 * * @return WP_Error|array { * Page cache detail or else a WP_Error if unable to determine. * * @type string $status Page cache status. Good, Recommended or Critical. * @type bool $advanced_cache_present Whether page cache plugin is available or not. * @type string[] $headers Client caching response headers detected. * @type float $response_time Response time of site. * } */ private function get_page_cache_detail() { $page_cache_detail = $this->check_for_page_caching(); if ( is_wp_error( $page_cache_detail ) ) { return $page_cache_detail; } // Use the median server response time. $response_timings = $page_cache_detail['response_timing']; rsort( $response_timings ); $page_speed = $response_timings[ floor( count( $response_timings ) / 2 ) ]; // Obtain unique set of all client caching response headers. $headers = array(); foreach ( $page_cache_detail['page_caching_response_headers'] as $page_caching_response_headers ) { $headers = array_merge( $headers, array_keys( $page_caching_response_headers ) ); } $headers = array_unique( $headers ); // Page cache is detected if there are response headers or a page cache plugin is present. $has_page_caching = ( count( $headers ) > 0 || $page_cache_detail['advanced_cache_present'] ); if ( $page_speed && $page_speed < $this->get_good_response_time_threshold() ) { $result = $has_page_caching ? 'good' : 'recommended'; } else { $result = 'critical'; } return array( 'status' => $result, 'advanced_cache_present' => $page_cache_detail['advanced_cache_present'], 'headers' => $headers, 'response_time' => $page_speed, ); } /** * Gets the threshold below which a response time is considered good. * * @since 6.1.0 * * @return int Threshold in milliseconds. */ private function get_good_response_time_threshold() { /** * Filters the threshold below which a response time is considered good. * * The default is based on https://web.dev/time-to-first-byte/. * * @since 6.1.0 * * @param int $threshold Threshold in milliseconds. Default 600. */ return (int) apply_filters( 'site_status_good_response_time_threshold', 600 ); } /** * Determines whether to suggest using a persistent object cache. * * @since 6.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @return bool Whether to suggest using a persistent object cache. */ public function should_suggest_persistent_object_cache() { global $wpdb; /** * Filters whether to suggest use of a persistent object cache and bypass default threshold checks. * * Using this filter allows to override the default logic, effectively short-circuiting the method. * * @since 6.1.0 * * @param bool|null $suggest Boolean to short-circuit, for whether to suggest using a persistent object cache. * Default null. */ $short_circuit = apply_filters( 'site_status_should_suggest_persistent_object_cache', null ); if ( is_bool( $short_circuit ) ) { return $short_circuit; } if ( is_multisite() ) { return true; } /** * Filters the thresholds used to determine whether to suggest the use of a persistent object cache. * * @since 6.1.0 * * @param int[] $thresholds The list of threshold numbers keyed by threshold name. */ $thresholds = apply_filters( 'site_status_persistent_object_cache_thresholds', array( 'alloptions_count' => 500, 'alloptions_bytes' => 100000, 'comments_count' => 1000, 'options_count' => 1000, 'posts_count' => 1000, 'terms_count' => 1000, 'users_count' => 1000, ) ); $alloptions = wp_load_alloptions(); if ( $thresholds['alloptions_count'] < count( $alloptions ) ) { return true; } if ( $thresholds['alloptions_bytes'] < strlen( serialize( $alloptions ) ) ) { return true; } $table_names = implode( "','", array( $wpdb->comments, $wpdb->options, $wpdb->posts, $wpdb->terms, $wpdb->users ) ); // With InnoDB the `TABLE_ROWS` are estimates, which are accurate enough and faster to retrieve than individual `COUNT()` queries. $results = $wpdb->get_results( $wpdb->prepare( // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- This query cannot use interpolation. "SELECT TABLE_NAME AS 'table', TABLE_ROWS AS 'rows', SUM(data_length + index_length) as 'bytes' FROM information_schema.TABLES WHERE TABLE_SCHEMA = %s AND TABLE_NAME IN ('$table_names') GROUP BY TABLE_NAME;", DB_NAME ), OBJECT_K ); $threshold_map = array( 'comments_count' => $wpdb->comments, 'options_count' => $wpdb->options, 'posts_count' => $wpdb->posts, 'terms_count' => $wpdb->terms, 'users_count' => $wpdb->users, ); foreach ( $threshold_map as $threshold => $table ) { if ( $thresholds[ $threshold ] <= $results[ $table ]->rows ) { return true; } } return false; } /** * Returns a list of available persistent object cache services. * * @since 6.1.0 * * @return string[] The list of available persistent object cache services. */ private function available_object_cache_services() { $extensions = array_map( 'extension_loaded', array( 'APCu' => 'apcu', 'Redis' => 'redis', 'Relay' => 'relay', 'Memcache' => 'memcache', 'Memcached' => 'memcached', ) ); $services = array_keys( array_filter( $extensions ) ); /** * Filters the persistent object cache services available to the user. * * This can be useful to hide or add services not included in the defaults. * * @since 6.1.0 * * @param string[] $services The list of available persistent object cache services. */ return apply_filters( 'site_status_available_object_cache_services', $services ); } } includes/class-wp-list-table.php000064400000147530152213653150012667 0ustar00 '', 'singular' => '', 'ajax' => false, 'screen' => null, ) ); $this->screen = convert_to_screen( $args['screen'] ); add_filter( "manage_{$this->screen->id}_columns", array( $this, 'get_columns' ), 0 ); if ( ! $args['plural'] ) { $args['plural'] = $this->screen->base; } $args['plural'] = sanitize_key( $args['plural'] ); $args['singular'] = sanitize_key( $args['singular'] ); $this->_args = $args; if ( $args['ajax'] ) { // wp_enqueue_script( 'list-table' ); add_action( 'admin_footer', array( $this, '_js_vars' ) ); } if ( empty( $this->modes ) ) { $this->modes = array( 'list' => __( 'Compact view' ), 'excerpt' => __( 'Extended view' ), ); } } /** * Makes private properties readable for backward compatibility. * * @since 4.0.0 * @since 6.4.0 Getting a dynamic property is deprecated. * * @param string $name Property to get. * @return mixed Property. */ public function __get( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { return $this->$name; } wp_trigger_error( __METHOD__, "The property `{$name}` is not declared. Getting a dynamic property is " . 'deprecated since version 6.4.0! Instead, declare the property on the class.', E_USER_DEPRECATED ); return null; } /** * Makes private properties settable for backward compatibility. * * @since 4.0.0 * @since 6.4.0 Setting a dynamic property is deprecated. * * @param string $name Property to check if set. * @param mixed $value Property value. */ public function __set( $name, $value ) { if ( in_array( $name, $this->compat_fields, true ) ) { $this->$name = $value; return; } wp_trigger_error( __METHOD__, "The property `{$name}` is not declared. Setting a dynamic property is " . 'deprecated since version 6.4.0! Instead, declare the property on the class.', E_USER_DEPRECATED ); } /** * Makes private properties checkable for backward compatibility. * * @since 4.0.0 * @since 6.4.0 Checking a dynamic property is deprecated. * * @param string $name Property to check if set. * @return bool Whether the property is a back-compat property and it is set. */ public function __isset( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { return isset( $this->$name ); } wp_trigger_error( __METHOD__, "The property `{$name}` is not declared. Checking `isset()` on a dynamic property " . 'is deprecated since version 6.4.0! Instead, declare the property on the class.', E_USER_DEPRECATED ); return false; } /** * Makes private properties un-settable for backward compatibility. * * @since 4.0.0 * @since 6.4.0 Unsetting a dynamic property is deprecated. * * @param string $name Property to unset. */ public function __unset( $name ) { if ( in_array( $name, $this->compat_fields, true ) ) { unset( $this->$name ); return; } wp_trigger_error( __METHOD__, "A property `{$name}` is not declared. Unsetting a dynamic property is " . 'deprecated since version 6.4.0! Instead, declare the property on the class.', E_USER_DEPRECATED ); } /** * Makes private/protected methods readable for backward compatibility. * * @since 4.0.0 * * @param string $name Method to call. * @param array $arguments Arguments to pass when calling. * @return mixed|bool Return value of the callback, false otherwise. */ public function __call( $name, $arguments ) { if ( in_array( $name, $this->compat_methods, true ) ) { return $this->$name( ...$arguments ); } return false; } /** * Checks the current user's permissions. * * @since 3.1.0 * @abstract */ public function ajax_user_can() { die( 'function WP_List_Table::ajax_user_can() must be overridden in a subclass.' ); } /** * Prepares the list of items for displaying. * * @uses WP_List_Table::set_pagination_args() * * @since 3.1.0 * @abstract */ public function prepare_items() { die( 'function WP_List_Table::prepare_items() must be overridden in a subclass.' ); } /** * Sets all the necessary pagination arguments. * * @since 3.1.0 * * @param array|string $args Array or string of arguments with information about the pagination. */ protected function set_pagination_args( $args ) { $args = wp_parse_args( $args, array( 'total_items' => 0, 'total_pages' => 0, 'per_page' => 0, ) ); if ( ! $args['total_pages'] && $args['per_page'] > 0 ) { $args['total_pages'] = (int) ceil( $args['total_items'] / $args['per_page'] ); } // Redirect if page number is invalid and headers are not already sent. if ( ! headers_sent() && ! wp_doing_ajax() && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages'] ) { wp_redirect( add_query_arg( 'paged', $args['total_pages'] ) ); exit; } $this->_pagination_args = $args; } /** * Access the pagination args. * * @since 3.1.0 * * @param string $key Pagination argument to retrieve. Common values include 'total_items', * 'total_pages', 'per_page', or 'infinite_scroll'. * @return int Number of items that correspond to the given pagination argument. */ public function get_pagination_arg( $key ) { if ( 'page' === $key ) { return $this->get_pagenum(); } return $this->_pagination_args[ $key ] ?? 0; } /** * Determines whether the table has items to display or not * * @since 3.1.0 * * @return bool Whether the table has items to display. */ public function has_items() { return ! empty( $this->items ); } /** * Message to be displayed when there are no items * * @since 3.1.0 */ public function no_items() { _e( 'No items found.' ); } /** * Displays the search box. * * @since 3.1.0 * * @param string $text The 'submit' button label. * @param string $input_id ID attribute value for the search input field. */ public function search_box( $text, $input_id ) { if ( empty( $_REQUEST['s'] ) && ! $this->has_items() ) { return; } $input_id = $input_id . '-search-input'; if ( ! empty( $_REQUEST['orderby'] ) ) { if ( is_array( $_REQUEST['orderby'] ) ) { foreach ( $_REQUEST['orderby'] as $key => $value ) { echo ''; } } else { echo ''; } } if ( ! empty( $_REQUEST['order'] ) ) { echo ''; } if ( ! empty( $_REQUEST['post_mime_type'] ) ) { echo ''; } if ( ! empty( $_REQUEST['detached'] ) ) { echo ''; } ?> $link_data' ), '6.1.0' ); return array( '' ); } $views_links = array(); foreach ( $link_data as $view => $link ) { if ( empty( $link['url'] ) || ! is_string( $link['url'] ) || '' === trim( $link['url'] ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %1$s: The argument name. %2$s: The view name. */ __( 'The %1$s argument must be a non-empty string for %2$s.' ), 'url', '' . esc_html( $view ) . '' ), '6.1.0' ); continue; } if ( empty( $link['label'] ) || ! is_string( $link['label'] ) || '' === trim( $link['label'] ) ) { _doing_it_wrong( __METHOD__, sprintf( /* translators: %1$s: The argument name. %2$s: The view name. */ __( 'The %1$s argument must be a non-empty string for %2$s.' ), 'label', '' . esc_html( $view ) . '' ), '6.1.0' ); continue; } $views_links[ $view ] = sprintf( '%s', esc_url( $link['url'] ), isset( $link['current'] ) && true === $link['current'] ? ' class="current" aria-current="page"' : '', $link['label'] ); } return $views_links; } /** * Gets the list of views available on this table. * * The format is an associative array: * - `'id' => 'link'` * * @since 3.1.0 * * @return array An associative array of views. */ protected function get_views() { return array(); } /** * Displays the list of views available on this table. * * @since 3.1.0 */ public function views() { $views = $this->get_views(); /** * Filters the list of available list table views. * * The dynamic portion of the hook name, `$this->screen->id`, refers * to the ID of the current screen. * * @since 3.1.0 * * @param string[] $views An array of available list table views. */ $views = apply_filters( "views_{$this->screen->id}", $views ); if ( empty( $views ) ) { return; } $this->screen->render_screen_reader_content( 'heading_views' ); echo "
          \n"; foreach ( $views as $class => $view ) { $views[ $class ] = "\t
        • $view"; } echo implode( " |
        • \n", $views ) . "\n"; echo '
        '; } /** * Retrieves the list of bulk actions available for this table. * * The format is an associative array where each element represents either a top level option value and label, or * an array representing an optgroup and its options. * * For a standard option, the array element key is the field value and the array element value is the field label. * * For an optgroup, the array element key is the label and the array element value is an associative array of * options as above. * * Example: * * [ * 'edit' => 'Edit', * 'delete' => 'Delete', * 'Change State' => [ * 'feature' => 'Featured', * 'sale' => 'On Sale', * ] * ] * * @since 3.1.0 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup. * * @return array> An associative array of bulk actions. */ protected function get_bulk_actions() { return array(); } /** * Displays the bulk actions dropdown. * * @since 3.1.0 * * @param string $which The location of the bulk actions: Either 'top' or 'bottom'. * This is designated as optional for backward compatibility. */ protected function bulk_actions( $which = '' ) { if ( is_null( $this->_actions ) ) { $this->_actions = $this->get_bulk_actions(); /** * Filters the items in the bulk actions menu of the list table. * * The dynamic portion of the hook name, `$this->screen->id`, refers * to the ID of the current screen. * * @since 3.1.0 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup. * * @param array $actions An array of the available bulk actions. */ $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores $two = ''; } else { $two = '2'; } if ( empty( $this->_actions ) ) { return; } echo ''; echo '\n"; submit_button( __( 'Apply' ), 'action', 'bulk_action', false, array( 'id' => "doaction$two" ) ); echo "\n"; } /** * Gets the current action selected from the bulk actions dropdown. * * @since 3.1.0 * * @return string|false The action name. False if no action was selected. */ public function current_action() { if ( isset( $_REQUEST['filter_action'] ) && ! empty( $_REQUEST['filter_action'] ) ) { return false; } if ( isset( $_REQUEST['action'] ) && '-1' !== $_REQUEST['action'] ) { return $_REQUEST['action']; } return false; } /** * Generates the required HTML for a list of row action links. * * @since 3.1.0 * * @param string[] $actions An array of action links. * @param bool $always_visible Whether the actions should be always visible. * @return string The HTML for the row actions. */ protected function row_actions( $actions, $always_visible = false ) { $action_count = count( $actions ); if ( ! $action_count ) { return ''; } $mode = get_user_setting( 'posts_list_mode', 'list' ); if ( 'excerpt' === $mode ) { $always_visible = true; } $output = '
        '; $i = 0; foreach ( $actions as $action => $link ) { ++$i; $separator = ( $i < $action_count ) ? ' | ' : ''; $output .= "{$link}{$separator}"; } $output .= '
        '; $output .= ''; return $output; } /** * Displays a dropdown for filtering items in the list table by month. * * @since 3.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Locale $wp_locale WordPress date and time locale object. * * @param string $post_type The post type. */ protected function months_dropdown( $post_type ) { global $wpdb, $wp_locale; /** * Filters whether to remove the 'Months' drop-down from the post list table. * * @since 4.2.0 * * @param bool $disable Whether to disable the drop-down. Default false. * @param string $post_type The post type. */ if ( apply_filters( 'disable_months_dropdown', false, $post_type ) ) { return; } /** * Filters whether to short-circuit performing the months dropdown query. * * @since 5.7.0 * * @param object[]|false $months 'Months' drop-down results. Default false. * @param string $post_type The post type. */ $months = apply_filters( 'pre_months_dropdown_query', false, $post_type ); if ( ! is_array( $months ) ) { $extra_checks = "AND post_status != 'auto-draft'"; if ( ! isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) { $extra_checks .= " AND post_status != 'trash'"; } elseif ( isset( $_GET['post_status'] ) ) { $extra_checks = $wpdb->prepare( ' AND post_status = %s', $_GET['post_status'] ); } $months = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month FROM $wpdb->posts WHERE post_type = %s $extra_checks ORDER BY post_date DESC", $post_type ) ); } /** * Filters the 'Months' drop-down results. * * @since 3.7.0 * * @param object[] $months Array of the months drop-down query results. * @param string $post_type The post type. */ $months = apply_filters( 'months_dropdown_results', $months, $post_type ); $month_count = count( $months ); if ( ! $month_count || ( 1 === $month_count && 0 === (int) $months[0]->month ) ) { return; } $selected_month = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; ?>
        modes as $mode => $title ) { $classes = array( 'view-' . $mode ); $aria_current = ''; if ( $current_mode === $mode ) { $classes[] = 'current'; $aria_current = ' aria-current="page"'; } printf( "" . "%s" . "\n", esc_url( remove_query_arg( 'attachment-filter', add_query_arg( 'mode', $mode ) ) ), implode( ' ', $classes ), $title ); } ?>
        —' . '%s', __( 'No comments' ) ); } elseif ( $approved_comments && 'trash' === get_post_status( $post_id ) ) { // Don't link the comment bubble for a trashed post. printf( '' . '' . '%s' . '', $approved_comments_number, $pending_comments ? $approved_phrase : $approved_only_phrase ); } elseif ( $approved_comments ) { // Link the comment bubble to approved comments. printf( '' . '' . '%s' . '', esc_url( add_query_arg( array( 'p' => $post_id, 'comment_status' => 'approved', ), admin_url( 'edit-comments.php' ) ) ), $approved_comments_number, $pending_comments ? $approved_phrase : $approved_only_phrase ); } else { // Don't link the comment bubble when there are no approved comments. printf( '' . '' . '%s' . '', $approved_comments_number, $pending_comments ? /* translators: Hidden accessibility text. */ __( 'No approved comments' ) : /* translators: Hidden accessibility text. */ __( 'No comments' ) ); } if ( $pending_comments ) { printf( '' . '' . '%s' . '', esc_url( add_query_arg( array( 'p' => $post_id, 'comment_status' => 'moderated', ), admin_url( 'edit-comments.php' ) ) ), $pending_comments_number, $pending_phrase ); } else { printf( '' . '' . '%s' . '', $pending_comments_number, $approved_comments ? /* translators: Hidden accessibility text. */ __( 'No pending comments' ) : /* translators: Hidden accessibility text. */ __( 'No comments' ) ); } } /** * Gets the current page number. * * @since 3.1.0 * * @return int Current page number. */ public function get_pagenum() { $pagenum = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 0; if ( isset( $this->_pagination_args['total_pages'] ) && $pagenum > $this->_pagination_args['total_pages'] ) { $pagenum = $this->_pagination_args['total_pages']; } return max( 1, $pagenum ); } /** * Gets the number of items to display on a single page. * * @since 3.1.0 * * @param string $option User option name. * @param int $default_value Optional. The number of items to display. Default 20. * @return int Number of items to display per page. */ protected function get_items_per_page( $option, $default_value = 20 ) { $per_page = (int) get_user_option( $option ); if ( empty( $per_page ) || $per_page < 1 ) { $per_page = $default_value; } /** * Filters the number of items to be displayed on each page of the list table. * * The dynamic hook name, `$option`, refers to the `per_page` option depending * on the type of list table in use. Possible filter names include: * * - `edit_comments_per_page` * - `sites_network_per_page` * - `site_themes_network_per_page` * - `themes_network_per_page` * - `users_network_per_page` * - `edit_post_per_page` * - `edit_page_per_page` * - `edit_{$post_type}_per_page` * - `edit_post_tag_per_page` * - `edit_category_per_page` * - `edit_{$taxonomy}_per_page` * - `site_users_network_per_page` * - `users_per_page` * * @since 2.9.0 * * @param int $per_page Number of items to be displayed. Default 20. */ return (int) apply_filters( "{$option}", $per_page ); } /** * Displays the pagination. * * @since 3.1.0 * * @param string $which The location of the pagination: Either 'top' or 'bottom'. */ protected function pagination( $which ) { if ( empty( $this->_pagination_args['total_items'] ) ) { return; } $total_items = $this->_pagination_args['total_items']; $total_pages = $this->_pagination_args['total_pages']; $infinite_scroll = false; if ( isset( $this->_pagination_args['infinite_scroll'] ) ) { $infinite_scroll = $this->_pagination_args['infinite_scroll']; } if ( 'top' === $which && $total_pages > 1 ) { $this->screen->render_screen_reader_content( 'heading_pagination' ); } $output = '' . sprintf( /* translators: %s: Number of items. */ _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . ''; $current = $this->get_pagenum(); $removable_query_args = wp_removable_query_args(); $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $current_url = remove_query_arg( $removable_query_args, $current_url ); $page_links = array(); $total_pages_before = ''; $total_pages_after = ''; $disable_first = false; $disable_last = false; $disable_prev = false; $disable_next = false; if ( 1 === $current ) { $disable_first = true; $disable_prev = true; } if ( $total_pages === $current ) { $disable_last = true; $disable_next = true; } if ( $disable_first ) { $page_links[] = ''; } else { $page_links[] = sprintf( "" . "%s" . "" . '', esc_url( remove_query_arg( 'paged', $current_url ) ), /* translators: Hidden accessibility text. */ __( 'First page' ), '«' ); } if ( $disable_prev ) { $page_links[] = ''; } else { $page_links[] = sprintf( "" . "%s" . "" . '', esc_url( add_query_arg( 'paged', max( 1, $current - 1 ), $current_url ) ), /* translators: Hidden accessibility text. */ __( 'Previous page' ), '‹' ); } if ( 'bottom' === $which ) { $html_current_page = $current; $total_pages_before = sprintf( '%s' . '' . '', /* translators: Hidden accessibility text. */ __( 'Current Page' ) ); } else { $html_current_page = sprintf( '' . "" . "", /* translators: Hidden accessibility text. */ __( 'Current Page' ), $current, strlen( $total_pages ) ); } $html_total_pages = sprintf( "%s", number_format_i18n( $total_pages ) ); $page_links[] = $total_pages_before . sprintf( /* translators: 1: Current page, 2: Total pages. */ _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . $total_pages_after; if ( $disable_next ) { $page_links[] = ''; } else { $page_links[] = sprintf( "" . "%s" . "" . '', esc_url( add_query_arg( 'paged', min( $total_pages, $current + 1 ), $current_url ) ), /* translators: Hidden accessibility text. */ __( 'Next page' ), '›' ); } if ( $disable_last ) { $page_links[] = ''; } else { $page_links[] = sprintf( "" . "%s" . "" . '', esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), /* translators: Hidden accessibility text. */ __( 'Last page' ), '»' ); } $pagination_links_class = 'pagination-links'; if ( ! empty( $infinite_scroll ) ) { $pagination_links_class .= ' hide-if-js'; } $output .= "\n" . implode( "\n", $page_links ) . ''; if ( $total_pages ) { $page_class = $total_pages < 2 ? ' one-page' : ''; } else { $page_class = ' no-pages'; } $this->_pagination = "
        $output
        "; echo $this->_pagination; } /** * Gets a list of columns. * * The format is: * - `'internal-name' => 'Title'` * * @since 3.1.0 * @abstract * * @return array An associative array of columns. */ public function get_columns() { die( 'function WP_List_Table::get_columns() must be overridden in a subclass.' ); } /** * Gets a list of sortable columns. * * The format is: * - `'internal-name' => 'orderby'` * - `'internal-name' => array( 'orderby', bool, 'abbr', 'orderby-text', 'initially-sorted-column-order' )` - * - `'internal-name' => array( 'orderby', 'asc' )` - The second element sets the initial sorting order. * - `'internal-name' => array( 'orderby', true )` - The second element makes the initial order descending. * * In the second format, passing true as second parameter will make the initial * sorting order be descending. Following parameters add a short column name to * be used as 'abbr' attribute, a translatable string for the current sorting, * and the initial order for the initial sorted column, 'asc' or 'desc' (default: false). * * @since 3.1.0 * @since 6.3.0 Added 'abbr', 'orderby-text' and 'initially-sorted-column-order'. * * @return array|string> An associative array of sortable columns. */ protected function get_sortable_columns() { return array(); } /** * Gets the name of the default primary column. * * @since 4.3.0 * * @return string Name of the default primary column, in this case, an empty string. */ protected function get_default_primary_column_name() { $columns = $this->get_columns(); $column = ''; if ( empty( $columns ) ) { return $column; } /* * We need a primary defined so responsive views show something, * so let's fall back to the first non-checkbox column. */ foreach ( $columns as $col => $column_name ) { if ( 'cb' === $col ) { continue; } $column = $col; break; } return $column; } /** * Gets the name of the primary column. * * Public wrapper for WP_List_Table::get_default_primary_column_name(). * * @since 4.4.0 * * @return string Name of the default primary column. */ public function get_primary_column() { return $this->get_primary_column_name(); } /** * Gets the name of the primary column. * * @since 4.3.0 * * @return string The name of the primary column. */ protected function get_primary_column_name() { $columns = get_column_headers( $this->screen ); $default = $this->get_default_primary_column_name(); /* * If the primary column doesn't exist, * fall back to the first non-checkbox column. */ if ( ! isset( $columns[ $default ] ) ) { $default = self::get_default_primary_column_name(); } /** * Filters the name of the primary column for the current list table. * * @since 4.3.0 * * @param string $default Column name default for the specific list table, e.g. 'name'. * @param string $context Screen ID for specific list table, e.g. 'plugins'. */ $column = apply_filters( 'list_table_primary_column', $default, $this->screen->id ); if ( empty( $column ) || ! isset( $columns[ $column ] ) ) { $column = $default; } return $column; } /** * Gets a list of all, hidden, and sortable columns, with filter applied. * * @since 3.1.0 * * @return array Column information. */ protected function get_column_info() { // $_column_headers is already set / cached. if ( isset( $this->_column_headers ) && is_array( $this->_column_headers ) ) { /* * Backward compatibility for `$_column_headers` format prior to WordPress 4.3. * * In WordPress 4.3 the primary column name was added as a fourth item in the * column headers property. This ensures the primary column name is included * in plugins setting the property directly in the three item format. */ if ( 4 === count( $this->_column_headers ) ) { return $this->_column_headers; } $column_headers = array( array(), array(), array(), $this->get_primary_column_name() ); foreach ( $this->_column_headers as $key => $value ) { $column_headers[ $key ] = $value; } $this->_column_headers = $column_headers; return $this->_column_headers; } $columns = get_column_headers( $this->screen ); $hidden = get_hidden_columns( $this->screen ); $sortable_columns = $this->get_sortable_columns(); /** * Filters the list table sortable columns for a specific screen. * * The dynamic portion of the hook name, `$this->screen->id`, refers * to the ID of the current screen. * * @since 3.1.0 * * @param array $sortable_columns An array of sortable columns. */ $_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns ); $sortable = array(); foreach ( $_sortable as $id => $data ) { if ( empty( $data ) ) { continue; } $data = (array) $data; // Descending initial sorting. if ( ! isset( $data[1] ) ) { $data[1] = false; } // Current sorting translatable string. if ( ! isset( $data[2] ) ) { $data[2] = ''; } // Initial view sorted column and asc/desc order, default: false. if ( ! isset( $data[3] ) ) { $data[3] = false; } // Initial order for the initial sorted column, default: false. if ( ! isset( $data[4] ) ) { $data[4] = false; } $sortable[ $id ] = $data; } $primary = $this->get_primary_column_name(); $this->_column_headers = array( $columns, $hidden, $sortable, $primary ); return $this->_column_headers; } /** * Returns the number of visible columns. * * @since 3.1.0 * * @return int The number of visible columns. */ public function get_column_count() { list ( $columns, $hidden ) = $this->get_column_info(); $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) ); return count( $columns ) - count( $hidden ); } /** * Prints column headers, accounting for hidden and sortable columns. * * @since 3.1.0 * * @param bool $with_id Whether to set the ID attribute or not */ public function print_column_headers( $with_id = true ) { list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $current_url = remove_query_arg( 'paged', $current_url ); // When users click on a column header to sort by other columns. if ( isset( $_GET['orderby'] ) ) { $current_orderby = $_GET['orderby']; // In the initial view there's no orderby parameter. } else { $current_orderby = ''; } // Not in the initial view and descending order. if ( isset( $_GET['order'] ) && 'desc' === $_GET['order'] ) { $current_order = 'desc'; } else { // The initial view is not always 'asc', we'll take care of this below. $current_order = 'asc'; } if ( ! empty( $columns['cb'] ) ) { static $cb_counter = 1; $columns['cb'] = ' '; ++$cb_counter; } foreach ( $columns as $column_key => $column_display_name ) { $class = array( 'manage-column', "column-$column_key" ); $aria_sort_attr = ''; $abbr_attr = ''; $order_text = ''; if ( in_array( $column_key, $hidden, true ) ) { $class[] = 'hidden'; } if ( 'cb' === $column_key ) { $class[] = 'check-column'; } elseif ( in_array( $column_key, array( 'posts', 'comments', 'links' ), true ) ) { $class[] = 'num'; } if ( $column_key === $primary ) { $class[] = 'column-primary'; } if ( isset( $sortable[ $column_key ] ) ) { $orderby = $sortable[ $column_key ][0] ?? ''; $desc_first = $sortable[ $column_key ][1] ?? false; $abbr = $sortable[ $column_key ][2] ?? ''; $orderby_text = $sortable[ $column_key ][3] ?? ''; $initial_order = $sortable[ $column_key ][4] ?? ''; /* * We're in the initial view and there's no $_GET['orderby'] then check if the * initial sorting information is set in the sortable columns and use that. */ if ( '' === $current_orderby && $initial_order ) { // Use the initially sorted column $orderby as current orderby. $current_orderby = $orderby; // Use the initially sorted column asc/desc order as initial order. $current_order = $initial_order; } /* * True in the initial view when an initial orderby is set via get_sortable_columns() * and true in the sorted views when the actual $_GET['orderby'] is equal to $orderby. */ if ( $current_orderby === $orderby ) { // The sorted column. The `aria-sort` attribute must be set only on the sorted column. if ( 'asc' === $current_order ) { $order = 'desc'; $aria_sort_attr = ' aria-sort="ascending"'; } else { $order = 'asc'; $aria_sort_attr = ' aria-sort="descending"'; } $class[] = 'sorted'; $class[] = $current_order; } else { // The other sortable columns. $order = strtolower( $desc_first ); if ( ! in_array( $order, array( 'desc', 'asc' ), true ) ) { $order = $desc_first ? 'desc' : 'asc'; } $class[] = 'sortable'; $class[] = 'desc' === $order ? 'asc' : 'desc'; /* translators: Hidden accessibility text. */ $asc_text = __( 'Sort ascending.' ); /* translators: Hidden accessibility text. */ $desc_text = __( 'Sort descending.' ); $order_text = 'asc' === $order ? $asc_text : $desc_text; } if ( '' !== $order_text ) { $order_text = ' ' . $order_text . ''; } // Print an 'abbr' attribute if a value is provided via get_sortable_columns(). $abbr_attr = $abbr ? ' abbr="' . esc_attr( $abbr ) . '"' : ''; $column_display_name = sprintf( '' . '%2$s' . '' . '' . '' . '' . '%3$s' . '', esc_url( add_query_arg( compact( 'orderby', 'order' ), $current_url ) ), $column_display_name, $order_text ); } $tag = ( 'cb' === $column_key ) ? 'td' : 'th'; $scope = ( 'th' === $tag ) ? 'scope="col"' : ''; $id = $with_id ? "id='$column_key'" : ''; $class_attr = "class='" . implode( ' ', $class ) . "'"; echo "<$tag $scope $id $class_attr $aria_sort_attr $abbr_attr>$column_display_name"; } } /** * Print a table description with information about current sorting and order. * * For the table initial view, information about initial orderby and order * should be provided via get_sortable_columns(). * * @since 6.3.0 */ public function print_table_description() { list( $columns, $hidden, $sortable ) = $this->get_column_info(); if ( empty( $sortable ) ) { return; } // When users click on a column header to sort by other columns. if ( isset( $_GET['orderby'] ) ) { $current_orderby = $_GET['orderby']; // In the initial view there's no orderby parameter. } else { $current_orderby = ''; } // Not in the initial view and descending order. if ( isset( $_GET['order'] ) && 'desc' === $_GET['order'] ) { $current_order = 'desc'; } else { // The initial view is not always 'asc', we'll take care of this below. $current_order = 'asc'; } foreach ( array_keys( $columns ) as $column_key ) { if ( isset( $sortable[ $column_key ] ) ) { $orderby = $sortable[ $column_key ][0] ?? ''; $desc_first = $sortable[ $column_key ][1] ?? false; $abbr = $sortable[ $column_key ][2] ?? ''; $orderby_text = $sortable[ $column_key ][3] ?? ''; $initial_order = $sortable[ $column_key ][4] ?? ''; if ( ! is_string( $orderby_text ) || '' === $orderby_text ) { return; } /* * We're in the initial view and there's no $_GET['orderby'] then check if the * initial sorting information is set in the sortable columns and use that. */ if ( '' === $current_orderby && $initial_order ) { // Use the initially sorted column $orderby as current orderby. $current_orderby = $orderby; // Use the initially sorted column asc/desc order as initial order. $current_order = $initial_order; } /* * True in the initial view when an initial orderby is set via get_sortable_columns() * and true in the sorted views when the actual $_GET['orderby'] is equal to $orderby. */ if ( $current_orderby === $orderby ) { /* translators: Hidden accessibility text. */ $asc_text = __( 'Ascending.' ); /* translators: Hidden accessibility text. */ $desc_text = __( 'Descending.' ); $order_text = 'asc' === $current_order ? $asc_text : $desc_text; echo '' . $orderby_text . ' ' . $order_text . ''; return; } } } } /** * Displays the table. * * @since 3.1.0 */ public function display() { $singular = $this->_args['singular']; $this->display_tablenav( 'top' ); $this->screen->render_screen_reader_content( 'heading_list' ); ?> print_table_description(); ?> print_column_headers(); ?> > display_rows_or_placeholder(); ?> print_column_headers( false ); ?>
        display_tablenav( 'bottom' ); } /** * Gets a list of CSS classes for the WP_List_Table table tag. * * @since 3.1.0 * * @return string[] Array of CSS classes for the table tag. */ protected function get_table_classes() { $mode = get_user_setting( 'posts_list_mode', 'list' ); $mode_class = esc_attr( 'table-view-' . $mode ); return array( 'widefat', 'fixed', 'striped', $mode_class, $this->_args['plural'] ); } /** * Generates the table navigation above or below the table * * @since 3.1.0 * @param string $which The location of the navigation: Either 'top' or 'bottom'. */ protected function display_tablenav( $which ) { if ( 'bottom' === $which && ! $this->has_items() ) { return; } if ( 'top' === $which ) { wp_nonce_field( 'bulk-' . $this->_args['plural'] ); } ?>
        has_items() ) : ?>
        bulk_actions( $which ); ?>
        extra_tablenav( $which ); $this->pagination( $which ); ?>
        has_items() ) { $this->display_rows(); } else { echo ''; $this->no_items(); echo ''; } } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { foreach ( $this->items as $item ) { $this->single_row( $item ); } } /** * Generates content for a single row of the table. * * @since 3.1.0 * * @param object|array $item The current item */ public function single_row( $item ) { echo ''; $this->single_row_columns( $item ); echo ''; } /** * @param object|array $item * @param string $column_name */ protected function column_default( $item, $column_name ) {} /** * @param object|array $item */ protected function column_cb( $item ) {} /** * Generates the columns for a single row of the table. * * @since 3.1.0 * * @param object|array $item The current item. */ protected function single_row_columns( $item ) { list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); foreach ( $columns as $column_name => $column_display_name ) { $classes = "$column_name column-$column_name"; if ( $primary === $column_name ) { $classes .= ' has-row-actions column-primary'; } if ( in_array( $column_name, $hidden, true ) ) { $classes .= ' hidden'; } /* * Comments column uses HTML in the display name with screen reader text. * Strip tags to get closer to a user-friendly string. */ $data = 'data-colname="' . esc_attr( wp_strip_all_tags( $column_display_name ) ) . '"'; $attributes = "class='$classes' $data"; if ( 'cb' === $column_name ) { echo ''; echo $this->column_cb( $item ); echo ''; } elseif ( method_exists( $this, '_column_' . $column_name ) ) { echo call_user_func( array( $this, '_column_' . $column_name ), $item, $classes, $data, $primary ); } elseif ( method_exists( $this, 'column_' . $column_name ) ) { echo ""; echo call_user_func( array( $this, 'column_' . $column_name ), $item ); echo $this->handle_row_actions( $item, $column_name, $primary ); echo ''; } else { echo ""; echo $this->column_default( $item, $column_name ); echo $this->handle_row_actions( $item, $column_name, $primary ); echo ''; } } } /** * Generates and display row actions links for the list table. * * @since 4.3.0 * * @param object|array $item The item being acted upon. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string The row actions HTML, or an empty string * if the current column is not the primary column. */ protected function handle_row_actions( $item, $column_name, $primary ) { return $column_name === $primary ? '' : ''; } /** * Handles an incoming ajax request (called from admin-ajax.php) * * @since 3.1.0 */ public function ajax_response() { $this->prepare_items(); ob_start(); if ( ! empty( $_REQUEST['no_placeholder'] ) ) { $this->display_rows(); } else { $this->display_rows_or_placeholder(); } $rows = ob_get_clean(); $response = array( 'rows' => $rows ); if ( isset( $this->_pagination_args['total_items'] ) ) { $response['total_items_i18n'] = sprintf( /* translators: Number of items. */ _n( '%s item', '%s items', $this->_pagination_args['total_items'] ), number_format_i18n( $this->_pagination_args['total_items'] ) ); } if ( isset( $this->_pagination_args['total_pages'] ) ) { $response['total_pages'] = $this->_pagination_args['total_pages']; $response['total_pages_i18n'] = number_format_i18n( $this->_pagination_args['total_pages'] ); } die( wp_json_encode( $response ) ); } /** * Sends required variables to JavaScript land. * * @since 3.1.0 */ public function _js_vars() { $args = array( 'class' => get_class( $this ), 'screen' => array( 'id' => $this->screen->id, 'base' => $this->screen->base, ), ); printf( "\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); } } includes/plugin-install.php000064400000114200152213653150012026 0ustar00per_page ) ) { $args->per_page = 24; } } if ( ! isset( $args->locale ) ) { $args->locale = get_user_locale(); } if ( ! isset( $args->wp_version ) ) { $args->wp_version = substr( wp_get_wp_version(), 0, 3 ); // x.y } /** * Filters the WordPress.org Plugin Installation API arguments. * * Important: An object MUST be returned to this filter. * * @since 2.7.0 * * @param object $args Plugin API arguments. * @param string $action The type of information being requested from the Plugin Installation API. */ $args = apply_filters( 'plugins_api_args', $args, $action ); /** * Filters the response for the current WordPress.org Plugin Installation API request. * * Returning a non-false value will effectively short-circuit the WordPress.org API request. * * If `$action` is 'query_plugins' or 'plugin_information', an object MUST be passed. * If `$action` is 'hot_tags', an array should be passed. * * @since 2.7.0 * * @param false|object|array $result The result object or array. Default false. * @param string $action The type of information being requested from the Plugin Installation API. * @param object $args Plugin API arguments. */ $res = apply_filters( 'plugins_api', false, $action, $args ); if ( false === $res ) { $url = 'http://api.wordpress.org/plugins/info/1.2/'; $url = add_query_arg( array( 'action' => $action, 'request' => $args, ), $url ); $http_url = $url; $ssl = wp_http_supports( array( 'ssl' ) ); if ( $ssl ) { $url = set_url_scheme( $url, 'https' ); } $http_args = array( 'timeout' => 15, 'user-agent' => 'WordPress/' . wp_get_wp_version() . '; ' . home_url( '/' ), ); $request = wp_remote_get( $url, $http_args ); if ( $ssl && is_wp_error( $request ) ) { if ( ! wp_is_json_request() ) { wp_trigger_error( __FUNCTION__, sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); } $request = wp_remote_get( $http_url, $http_args ); } if ( is_wp_error( $request ) ) { $res = new WP_Error( 'plugins_api_failed', sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ), $request->get_error_message() ); } else { $res = json_decode( wp_remote_retrieve_body( $request ), true ); if ( is_array( $res ) ) { // Object casting is required in order to match the info/1.0 format. $res = (object) $res; } elseif ( null === $res ) { $res = new WP_Error( 'plugins_api_failed', sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ), wp_remote_retrieve_body( $request ) ); } if ( isset( $res->error ) ) { $res = new WP_Error( 'plugins_api_failed', $res->error ); } } } elseif ( ! is_wp_error( $res ) ) { $res->external = true; } /** * Filters the Plugin Installation API response results. * * @since 2.7.0 * * @param object|WP_Error $res Response object or WP_Error. * @param string $action The type of information being requested from the Plugin Installation API. * @param object $args Plugin API arguments. */ return apply_filters( 'plugins_api_result', $res, $action, $args ); } /** * Retrieves popular WordPress plugin tags. * * @since 2.7.0 * * @param array $args * @return array|WP_Error */ function install_popular_tags( $args = array() ) { $key = md5( serialize( $args ) ); $tags = get_site_transient( 'poptags_' . $key ); if ( false !== $tags ) { return $tags; } $tags = plugins_api( 'hot_tags', $args ); if ( is_wp_error( $tags ) ) { return $tags; } set_site_transient( 'poptags_' . $key, $tags, 3 * HOUR_IN_SECONDS ); return $tags; } /** * Displays the Featured tab of Add Plugins screen. * * @since 2.7.0 */ function install_dashboard() { display_plugins_table(); ?> '; } /** * Displays a search form for searching plugins. * * @since 2.7.0 * @since 4.6.0 The `$type_selector` parameter was deprecated. * * @param bool $deprecated Not used. */ function install_search_form( $deprecated = true ) { $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; $term = isset( $_REQUEST['s'] ) ? urldecode( wp_unslash( $_REQUEST['s'] ) ) : ''; ?>
        'search-submit' ) ); ?>

        ' . __( 'You are using a development version of WordPress. These feature plugins are also under development. Learn more.' ) . '

        ', 'https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/' ); break; case 'install_plugins_featured': echo '
        '; break; case 'install_plugins_recommended': echo '

        ' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '

        '; break; case 'install_plugins_favorites': if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) { return; } break; } ?>
        display(); ?>
        response ) ) { foreach ( (array) $update_plugins->response as $file => $plugin ) { if ( $plugin->slug === $api->slug ) { $status = 'update_available'; $update_file = $file; $version = $plugin->new_version; if ( current_user_can( 'update_plugins' ) ) { $url = wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . $update_file ), 'upgrade-plugin_' . $update_file ); } break; } } } if ( 'install' === $status ) { if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) { $installed_plugin = get_plugins( '/' . $api->slug ); if ( empty( $installed_plugin ) ) { if ( current_user_can( 'install_plugins' ) ) { $url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $api->slug ), 'install-plugin_' . $api->slug ); } } else { $key = array_keys( $installed_plugin ); /* * Use the first plugin regardless of the name. * Could have issues for multiple plugins in one directory if they share different version numbers. */ $key = reset( $key ); $update_file = $api->slug . '/' . $key; if ( version_compare( $api->version, $installed_plugin[ $key ]['Version'], '=' ) ) { $status = 'latest_installed'; } elseif ( version_compare( $api->version, $installed_plugin[ $key ]['Version'], '<' ) ) { $status = 'newer_installed'; $version = $installed_plugin[ $key ]['Version']; } else { // If the above update check failed, then that probably means that the update checker has out-of-date information, force a refresh. if ( ! $loop ) { delete_site_transient( 'update_plugins' ); wp_update_plugins(); return install_plugin_install_status( $api, true ); } } } } else { // "install" & no directory with that slug. if ( current_user_can( 'install_plugins' ) ) { $url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $api->slug ), 'install-plugin_' . $api->slug ); } } } if ( isset( $_GET['from'] ) ) { $url .= '&from=' . urlencode( wp_unslash( $_GET['from'] ) ); } $file = $update_file; return compact( 'status', 'url', 'version', 'file' ); } /** * Displays plugin information in dialog box form. * * @since 2.7.0 * * @global string $tab */ function install_plugin_information() { global $tab; if ( empty( $_REQUEST['plugin'] ) ) { return; } $api = plugins_api( 'plugin_information', array( 'slug' => wp_unslash( $_REQUEST['plugin'] ), ) ); if ( is_wp_error( $api ) ) { wp_die( $api ); } $plugins_allowedtags = array( 'a' => array( 'href' => array(), 'title' => array(), 'target' => array(), ), 'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), 'div' => array( 'class' => array() ), 'span' => array( 'class' => array() ), 'p' => array(), 'br' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'img' => array( 'src' => array(), 'class' => array(), 'alt' => array(), ), 'blockquote' => array( 'cite' => true ), ); $plugins_section_titles = array( 'description' => _x( 'Description', 'Plugin installer section title' ), 'installation' => _x( 'Installation', 'Plugin installer section title' ), 'faq' => _x( 'FAQ', 'Plugin installer section title' ), 'screenshots' => _x( 'Screenshots', 'Plugin installer section title' ), 'changelog' => _x( 'Changelog', 'Plugin installer section title' ), 'reviews' => _x( 'Reviews', 'Plugin installer section title' ), 'other_notes' => _x( 'Other Notes', 'Plugin installer section title' ), ); // Sanitize HTML. foreach ( (array) $api->sections as $section_name => $content ) { $api->sections[ $section_name ] = wp_kses( $content, $plugins_allowedtags ); } foreach ( array( 'version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug' ) as $key ) { if ( isset( $api->$key ) ) { $api->$key = wp_kses( $api->$key, $plugins_allowedtags ); } } $_tab = esc_attr( $tab ); // Default to the Description tab, Do not translate, API returns English. $section = isset( $_REQUEST['section'] ) ? wp_unslash( $_REQUEST['section'] ) : 'description'; if ( empty( $section ) || ! isset( $api->sections[ $section ] ) ) { $section_titles = array_keys( (array) $api->sections ); $section = reset( $section_titles ); } iframe_header( __( 'Plugin Installation' ) ); $_with_banner = ''; if ( ! empty( $api->banners ) && ( ! empty( $api->banners['low'] ) || ! empty( $api->banners['high'] ) ) ) { $_with_banner = 'with-banner'; $low = empty( $api->banners['low'] ) ? $api->banners['high'] : $api->banners['low']; $high = empty( $api->banners['high'] ) ? $api->banners['low'] : $api->banners['high']; ?> '; echo "

        {$api->name}

        "; echo "
        \n"; foreach ( (array) $api->sections as $section_name => $content ) { if ( 'reviews' === $section_name && ( empty( $api->ratings ) || 0 === array_sum( (array) $api->ratings ) ) ) { continue; } if ( isset( $plugins_section_titles[ $section_name ] ) ) { $title = $plugins_section_titles[ $section_name ]; } else { $title = ucwords( str_replace( '_', ' ', $section_name ) ); } $class = ( $section_name === $section ) ? ' class="current"' : ''; $href = add_query_arg( array( 'tab' => $tab, 'section' => $section_name, ) ); $href = esc_url( $href ); $san_section = esc_attr( $section_name ); echo "\t$title\n"; } echo "
        \n"; ?>
          version ) ) { ?>
        • version; ?>
        • author ) ) { ?>
        • author, '_blank' ); ?>
        • last_updated ) ) { ?>
        • last_updated ) ) ); ?>
        • requires ) ) { ?>
        • requires ); ?>
        • tested ) ) { ?>
        • tested; ?>
        • requires_php ) ) { ?>
        • requires_php ); ?>
        • active_installs ) ) { ?>
        • active_installs >= 1000000 ) { $active_installs_millions = floor( $api->active_installs / 1000000 ); printf( /* translators: %s: Number of millions. */ _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), number_format_i18n( $active_installs_millions ) ); } elseif ( $api->active_installs < 10 ) { _ex( 'Less Than 10', 'Active plugin installations' ); } else { echo number_format_i18n( $api->active_installs ) . '+'; } ?>
        • slug ) && empty( $api->external ) ) { ?>
        • homepage ) ) { ?>
        • donate_link ) && empty( $api->contributors ) ) { ?>
        rating ) ) { ?>

        $api->rating, 'type' => 'percent', 'number' => $api->num_ratings, ) ); ?> ratings ) && array_sum( (array) $api->ratings ) > 0 ) { ?>

        ratings as $key => $ratecount ) { // Avoid div-by-zero. $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0; $aria_label = esc_attr( sprintf( /* translators: 1: Number of stars (used to determine singular/plural), 2: Number of reviews. */ _n( 'Reviews with %1$d star: %2$s. Opens in a new tab.', 'Reviews with %1$d stars: %2$s. Opens in a new tab.', $key ), $key, number_format_i18n( $ratecount ) ) ); ?>
        %s', "https://wordpress.org/support/plugin/{$api->slug}/reviews/?filter={$key}", $aria_label, /* translators: %s: Number of stars. */ sprintf( _n( '%d star', '%d stars', $key ), $key ) ); ?>
        contributors ) ) { ?>

          contributors as $contrib_username => $contrib_details ) { $contrib_name = $contrib_details['display_name']; if ( ! $contrib_name ) { $contrib_name = $contrib_username; } $contrib_name = esc_html( $contrib_name ); $contrib_profile = esc_url( $contrib_details['profile'] ); $contrib_avatar = esc_url( add_query_arg( 's', '36', $contrib_details['avatar'] ) ); echo "
        • {$contrib_name}
        • "; } ?>
        donate_link ) ) { ?>
        requires_php ?? null; $requires_wp = $api->requires ?? null; $compatible_php = is_php_version_compatible( $requires_php ); $compatible_wp = is_wp_version_compatible( $requires_wp ); $tested_wp = ( empty( $api->tested ) || version_compare( get_bloginfo( 'version' ), $api->tested, '<=' ) ); if ( ! $compatible_php ) { $compatible_php_notice_message = '

        '; $compatible_php_notice_message .= __( 'Error: This plugin requires a newer version of PHP.' ); if ( current_user_can( 'update_php' ) ) { $compatible_php_notice_message .= sprintf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Click here to learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ) . wp_update_php_annotation( '

        ', '', false ); } else { $compatible_php_notice_message .= '

        '; } wp_admin_notice( $compatible_php_notice_message, array( 'type' => 'error', 'additional_classes' => array( 'notice-alt' ), 'paragraph_wrap' => false, ) ); } if ( ! $tested_wp ) { wp_admin_notice( __( 'Warning: This plugin has not been tested with your current version of WordPress.' ), array( 'type' => 'warning', 'additional_classes' => array( 'notice-alt' ), ) ); } elseif ( ! $compatible_wp ) { $compatible_wp_notice_message = __( 'Error: This plugin requires a newer version of WordPress.' ); if ( current_user_can( 'update_core' ) ) { $compatible_wp_notice_message .= sprintf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Click here to update WordPress.' ), esc_url( self_admin_url( 'update-core.php' ) ) ); } wp_admin_notice( $compatible_wp_notice_message, array( 'type' => 'error', 'additional_classes' => array( 'notice-alt' ), ) ); } foreach ( (array) $api->sections as $section_name => $content ) { $content = links_add_base_url( $content, 'https://wordpress.org/plugins/' . $api->slug . '/' ); $content = links_add_target( $content, '_blank' ); $san_section = esc_attr( $section_name ); $display = ( $section_name === $section ) ? 'block' : 'none'; echo "\t
        \n"; echo $content; echo "\t
        \n"; } echo "
        \n"; echo "
        \n"; echo "
        \n"; // #plugin-information-scrollable echo "\n"; wp_print_request_filesystem_credentials_modal(); wp_print_admin_notice_templates(); iframe_footer(); exit; } /** * Gets the markup for the plugin install action button. * * @since 6.5.0 * * @param string $name Plugin name. * @param array|object $data { * An array or object of plugin data. Can be retrieved from the API. * * @type string $slug The plugin slug. * @type string[] $requires_plugins An array of plugin dependency slugs. * @type string $version The plugin's version string. Used when getting the install status. * } * @param bool $compatible_php The result of a PHP compatibility check. * @param bool $compatible_wp The result of a WP compatibility check. * @return string The markup for the dependency row button. An empty string if the user does not have capabilities. */ function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible_wp ) { $button = ''; $data = (object) $data; $status = install_plugin_install_status( $data ); $requires_plugins = $data->requires_plugins ?? array(); // Determine the status of plugin dependencies. $installed_plugins = get_plugins(); $active_plugins = get_option( 'active_plugins', array() ); $plugin_dependencies_count = count( $requires_plugins ); $installed_plugin_dependencies_count = 0; $active_plugin_dependencies_count = 0; foreach ( $requires_plugins as $dependency ) { foreach ( array_keys( $installed_plugins ) as $installed_plugin_file ) { if ( str_contains( $installed_plugin_file, '/' ) && explode( '/', $installed_plugin_file )[0] === $dependency ) { ++$installed_plugin_dependencies_count; } } foreach ( $active_plugins as $active_plugin_file ) { if ( str_contains( $active_plugin_file, '/' ) && explode( '/', $active_plugin_file )[0] === $dependency ) { ++$active_plugin_dependencies_count; } } } $all_plugin_dependencies_installed = $installed_plugin_dependencies_count === $plugin_dependencies_count; $all_plugin_dependencies_active = $active_plugin_dependencies_count === $plugin_dependencies_count; if ( current_user_can( 'install_plugins' ) || current_user_can( 'update_plugins' ) ) { switch ( $status['status'] ) { case 'install': if ( $status['url'] ) { if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_installed && ! empty( $data->download_link ) ) { $button = sprintf( '%s', esc_attr( $data->slug ), esc_url( $status['url'] ), /* translators: %s: Plugin name and version. */ esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ), esc_attr( $name ), _x( 'Install Now', 'plugin' ) ); } else { $button = sprintf( '', _x( 'Install Now', 'plugin' ) ); } } break; case 'update_available': if ( $status['url'] ) { if ( $compatible_php && $compatible_wp ) { $button = sprintf( '%s', esc_attr( $status['file'] ), esc_attr( $data->slug ), esc_url( $status['url'] ), /* translators: %s: Plugin name and version. */ esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ), esc_attr( $name ), _x( 'Update Now', 'plugin' ) ); } else { $button = sprintf( '', _x( 'Update Now', 'plugin' ) ); } } break; case 'latest_installed': case 'newer_installed': if ( is_plugin_active( $status['file'] ) ) { $button = sprintf( '', _x( 'Active', 'plugin' ) ); } elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) { if ( $compatible_php && $compatible_wp && $all_plugin_dependencies_active ) { $button_text = _x( 'Activate', 'plugin' ); /* translators: %s: Plugin name. */ $button_label = _x( 'Activate %s', 'plugin' ); $activate_url = add_query_arg( array( '_wpnonce' => wp_create_nonce( 'activate-plugin_' . $status['file'] ), 'action' => 'activate', 'plugin' => $status['file'], ), network_admin_url( 'plugins.php' ) ); if ( is_network_admin() ) { $button_text = _x( 'Network Activate', 'plugin' ); /* translators: %s: Plugin name. */ $button_label = _x( 'Network Activate %s', 'plugin' ); $activate_url = add_query_arg( array( 'networkwide' => 1 ), $activate_url ); } $button = sprintf( '%6$s', esc_url( $activate_url ), esc_attr( $name ), esc_attr( $data->slug ), esc_attr( $status['file'] ), esc_attr( sprintf( $button_label, $name ) ), $button_text ); } else { $button = sprintf( '', is_network_admin() ? _x( 'Network Activate', 'plugin' ) : _x( 'Activate', 'plugin' ) ); } } else { $button = sprintf( '', _x( 'Installed', 'plugin' ) ); } break; } } return $button; } includes/class-wp-site-icon.php000064400000014416152213653150012515 0ustar00ID ); $url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url ); $size = wp_getimagesize( $cropped ); $image_type = ( $size ) ? $size['mime'] : 'image/jpeg'; $attachment = array( 'ID' => $parent_attachment_id, 'post_title' => wp_basename( $cropped ), 'post_content' => $url, 'post_mime_type' => $image_type, 'guid' => $url, 'context' => 'site-icon', ); return $attachment; } /** * Inserts an attachment. * * @since 4.3.0 * * @param array $attachment An array with attachment object data. * @param string $file File path of the attached image. * @return int Attachment ID. */ public function insert_attachment( $attachment, $file ) { $attachment_id = wp_insert_attachment( $attachment, $file ); $metadata = wp_generate_attachment_metadata( $attachment_id, $file ); /** * Filters the site icon attachment metadata. * * @since 4.3.0 * * @see wp_generate_attachment_metadata() * * @param array $metadata Attachment metadata. */ $metadata = apply_filters( 'site_icon_attachment_metadata', $metadata ); wp_update_attachment_metadata( $attachment_id, $metadata ); return $attachment_id; } /** * Adds additional sizes to be made when creating the site icon images. * * @since 4.3.0 * * @param array[] $sizes Array of arrays containing information for additional sizes. * @return array[] Array of arrays containing additional image sizes. */ public function additional_sizes( $sizes = array() ) { $only_crop_sizes = array(); /** * Filters the different dimensions that a site icon is saved in. * * @since 4.3.0 * * @param int[] $site_icon_sizes Array of sizes available for the Site Icon. */ $this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes ); // Use a natural sort of numbers. natsort( $this->site_icon_sizes ); $this->site_icon_sizes = array_reverse( $this->site_icon_sizes ); // Ensure that we only resize the image into sizes that allow cropping. foreach ( $sizes as $name => $size_array ) { if ( isset( $size_array['crop'] ) ) { $only_crop_sizes[ $name ] = $size_array; } } foreach ( $this->site_icon_sizes as $size ) { if ( $size < $this->min_size ) { $only_crop_sizes[ 'site_icon-' . $size ] = array( 'width ' => $size, 'height' => $size, 'crop' => true, ); } } return $only_crop_sizes; } /** * Adds Site Icon sizes to the array of image sizes on demand. * * @since 4.3.0 * * @param string[] $sizes Array of image size names. * @return string[] Array of image size names. */ public function intermediate_image_sizes( $sizes = array() ) { /** This filter is documented in wp-admin/includes/class-wp-site-icon.php */ $this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes ); foreach ( $this->site_icon_sizes as $size ) { $sizes[] = 'site_icon-' . $size; } return $sizes; } /** * Deletes the Site Icon when the image file is deleted. * * @since 4.3.0 * * @param int $post_id Attachment ID. */ public function delete_attachment_data( $post_id ) { $site_icon_id = (int) get_option( 'site_icon' ); if ( $site_icon_id && $post_id === $site_icon_id ) { delete_option( 'site_icon' ); } } /** * Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon. * * @since 4.3.0 * * @param null|array|string $value The value get_metadata() should return a single metadata value, or an * array of values. * @param int $post_id Post ID. * @param string $meta_key Meta key. * @param bool $single Whether to return only the first value of the specified `$meta_key`. * @return array|null|string The attachment metadata value, array of values, or null. */ public function get_post_metadata( $value, $post_id, $meta_key, $single ) { if ( $single && '_wp_attachment_backup_sizes' === $meta_key ) { $site_icon_id = (int) get_option( 'site_icon' ); if ( $post_id === $site_icon_id ) { add_filter( 'intermediate_image_sizes', array( $this, 'intermediate_image_sizes' ) ); } } return $value; } } includes/network.php000064400000064636152213653150010576 0ustar00get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) ) ) ) { return $wpdb->get_var( "SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" ); } return false; } /** * Allow subdomain installation * * @since 3.0.0 * @return bool Whether subdomain installation is allowed */ function allow_subdomain_install() { $home = get_option( 'home' ); $domain = parse_url( $home, PHP_URL_HOST ); if ( parse_url( $home, PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$|', $domain ) ) { return false; } return true; } /** * Allow subdirectory installation. * * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @return bool Whether subdirectory installation is allowed */ function allow_subdirectory_install() { global $wpdb; /** * Filters whether to enable the subdirectory installation feature in Multisite. * * @since 3.0.0 * * @param bool $allow Whether to enable the subdirectory installation feature in Multisite. * Default false. */ if ( apply_filters( 'allow_subdirectory_install', false ) ) { return true; } if ( defined( 'ALLOW_SUBDIRECTORY_INSTALL' ) && ALLOW_SUBDIRECTORY_INSTALL ) { return true; } $post = $wpdb->get_row( "SELECT ID FROM $wpdb->posts WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 MONTH) AND post_status = 'publish'" ); if ( empty( $post ) ) { return true; } return false; } /** * Get base domain of network. * * @since 3.0.0 * @return string Base domain. */ function get_clean_basedomain() { $existing_domain = network_domain_check(); if ( $existing_domain ) { return $existing_domain; } $domain = preg_replace( '|https?://|', '', get_option( 'siteurl' ) ); $slash = strpos( $domain, '/' ); if ( $slash ) { $domain = substr( $domain, 0, $slash ); } return $domain; } /** * Prints step 1 for Network installation process. * * @todo Realistically, step 1 should be a welcome screen explaining what a Network is and such. * Navigating to Tools > Network should not be a sudden "Welcome to a new install process! * Fill this out and click here." See also contextual help todo. * * @since 3.0.0 * * @global bool $is_apache * * @param false|WP_Error $errors Optional. Error object. Default false. */ function network_step1( $errors = false ) { global $is_apache; if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { $cannot_define_constant_message = '' . __( 'Error:' ) . ' '; $cannot_define_constant_message .= sprintf( /* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */ __( 'The constant %s cannot be defined when creating a network.' ), 'DO_NOT_UPGRADE_GLOBAL_TABLES' ); wp_admin_notice( $cannot_define_constant_message, array( 'additional_classes' => array( 'error' ), ) ); echo ''; require_once ABSPATH . 'wp-admin/admin-footer.php'; die(); } $active_plugins = get_option( 'active_plugins' ); if ( ! empty( $active_plugins ) ) { wp_admin_notice( '' . __( 'Warning:' ) . ' ' . sprintf( /* translators: %s: URL to Plugins screen. */ __( 'Please deactivate your plugins before enabling the Network feature.' ), admin_url( 'plugins.php?plugin_status=active' ) ), array( 'type' => 'warning' ) ); echo '

        ' . __( 'Once the network is created, you may reactivate your plugins.' ) . '

        '; echo ''; require_once ABSPATH . 'wp-admin/admin-footer.php'; die(); } // Strip standard port from hostname. $hostname = preg_replace( '/(?::80|:443)$/', '', get_clean_basedomain() ); echo '
        '; wp_nonce_field( 'install-network-1' ); $error_codes = array(); if ( is_wp_error( $errors ) ) { $network_created_error_message = '

        ' . __( 'Error:' ) . ' ' . __( 'The network could not be created.' ) . '

        '; foreach ( $errors->get_error_messages() as $error ) { $network_created_error_message .= "

        $error

        "; } wp_admin_notice( $network_created_error_message, array( 'additional_classes' => array( 'error' ), 'paragraph_wrap' => false, ) ); $error_codes = $errors->get_error_codes(); } if ( ! empty( $_POST['sitename'] ) && ! in_array( 'empty_sitename', $error_codes, true ) ) { $site_name = $_POST['sitename']; } else { /* translators: %s: Default network title. */ $site_name = sprintf( __( '%s Sites' ), get_option( 'blogname' ) ); } if ( ! empty( $_POST['email'] ) && ! in_array( 'invalid_email', $error_codes, true ) ) { $admin_email = $_POST['email']; } else { $admin_email = get_option( 'admin_email' ); } ?>

        ' . __( 'Warning:' ) . ' '; $message .= '

        ' . sprintf( /* translators: %s: mod_rewrite */ __( 'Please make sure the Apache %s module is installed as it will be used at the end of this installation.' ), 'mod_rewrite' ) . '

        '; } elseif ( $is_apache ) { $message_class = 'error'; $message = '

        ' . __( 'Warning:' ) . ' '; $message .= sprintf( /* translators: %s: mod_rewrite */ __( 'It looks like the Apache %s module is not installed.' ), 'mod_rewrite' ) . '

        '; } if ( $got_mod_rewrite || $is_apache ) { // Protect against mod_rewrite mimicry (but ! Apache). $message .= '

        ' . sprintf( /* translators: 1: mod_rewrite, 2: mod_rewrite documentation URL, 3: Google search for mod_rewrite. */ __( 'If %1$s is disabled, ask your administrator to enable that module, or look at the Apache documentation or elsewhere for help setting it up.' ), 'mod_rewrite', 'https://httpd.apache.org/docs/mod/mod_rewrite.html', 'https://www.google.com/search?q=apache+mod_rewrite' ) . '

        '; wp_admin_notice( $message, array( 'additional_classes' => array( $message_class, 'inline' ), 'paragraph_wrap' => false, ) ); } } if ( allow_subdomain_install() && allow_subdirectory_install() ) : ?>

        ' . __( 'Warning:' ) . ' '; $subdirectory_warning_message .= __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ); wp_admin_notice( $subdirectory_warning_message, array( 'additional_classes' => array( 'error', 'inline' ), ) ); } $is_www = str_starts_with( $hostname, 'www.' ); if ( $is_www ) : ?>

        ' . substr( $hostname, 4 ) . '', '' . $hostname . '', 'www' ); ?>

        get_error_message(), array( 'additional_classes' => array( 'error' ), ) ); } if ( $_POST ) { if ( allow_subdomain_install() ) { $subdomain_install = allow_subdirectory_install() ? ! empty( $_POST['subdomain_install'] ) : true; } else { $subdomain_install = false; } } else { if ( is_multisite() ) { $subdomain_install = is_subdomain_install(); ?>

        get_var( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = 1 AND meta_key = 'subdomain_install'" ); wp_admin_notice( '' . __( 'Warning:' ) . ' ' . __( 'An existing WordPress network was detected.' ), array( 'additional_classes' => array( 'error' ), ) ); ?>

        ' . __( 'Caution:' ) . ' '; $notice_args = array( 'type' => 'warning', 'additional_classes' => array( 'inline' ), ); if ( file_exists( $home_path . '.htaccess' ) ) { $notice_message .= sprintf( /* translators: 1: wp-config.php, 2: .htaccess */ __( 'You should back up your existing %1$s and %2$s files.' ), 'wp-config.php', '.htaccess' ); } elseif ( file_exists( $home_path . 'web.config' ) ) { $notice_message .= sprintf( /* translators: 1: wp-config.php, 2: web.config */ __( 'You should back up your existing %1$s and %2$s files.' ), 'wp-config.php', 'web.config' ); } else { $notice_message .= sprintf( /* translators: %s: wp-config.php */ __( 'You should back up your existing %s file.' ), 'wp-config.php' ); } wp_admin_notice( $notice_message, $notice_args ); } ?>
        1. above the line reading %3$s:' ), 'wp-config.php', '' . $location_of_wp_config . '', /* * translators: This string should only be translated if wp-config-sample.php is localized. * You can check the localized release package or * https://i18n.svn.wordpress.org//branches//dist/wp-config-sample.php */ '/* ' . __( 'That’s all, stop editing! Happy publishing.' ) . ' */' ); ?>

          '', 'SECURE_AUTH_KEY' => '', 'LOGGED_IN_KEY' => '', 'NONCE_KEY' => '', 'AUTH_SALT' => '', 'SECURE_AUTH_SALT' => '', 'LOGGED_IN_SALT' => '', 'NONCE_SALT' => '', ); foreach ( $keys_salts as $c => $v ) { if ( defined( $c ) ) { unset( $keys_salts[ $c ] ); } } if ( ! empty( $keys_salts ) ) { $keys_salts_str = ''; $from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); if ( is_wp_error( $from_api ) ) { foreach ( $keys_salts as $c => $v ) { $keys_salts_str .= "\ndefine( '$c', '" . wp_generate_password( 64, true, true ) . "' );"; } } else { $from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) ); foreach ( $keys_salts as $c => $v ) { $keys_salts_str .= "\ndefine( '$c', '" . substr( array_shift( $from_api ), 28, 64 ) . "' );"; } } $num_keys_salts = count( $keys_salts ); ?>

          wp-config.php' ); } else { printf( /* translators: %s: wp-config.php */ __( 'These unique authentication keys are also missing from your %s file.' ), 'wp-config.php' ); } ?>

        2. '; if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) { $web_config_file .= ' '; } $web_config_file .= ' '; echo '
        3. '; printf( /* translators: 1: File name (.htaccess or web.config), 2: File path. */ __( 'Add the following to your %1$s file in %2$s, replacing other WordPress rules:' ), 'web.config', '' . $home_path . '' ); echo '

          '; if ( ! $subdomain_install && WP_CONTENT_DIR !== ABSPATH . 'wp-content' ) { echo '

          ' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '

          '; } ?>

        '; printf( /* translators: %s: Documentation URL. */ __( 'It seems your network is running with Nginx web server. Learn more about further configuration.' ), __( 'https://developer.wordpress.org/advanced-administration/server/web-server/nginx/' ) ); echo '

        '; else : // End $is_nginx. Construct an .htaccess file instead: $ms_files_rewriting = ''; if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) { $ms_files_rewriting = "\n# uploaded files\nRewriteRule ^"; $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n"; } $htaccess_file = <<

        '; printf( /* translators: 1: File name (.htaccess or web.config), 2: File path. */ __( 'Add the following to your %1$s file in %2$s, replacing other WordPress rules:' ), '.htaccess', '' . $home_path . '' ); echo '

        '; if ( ! $subdomain_install && WP_CONTENT_DIR !== ABSPATH . 'wp-content' ) { echo '

        ' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '

        '; } ?>

        get_results( $wpdb->prepare( "SELECT post_id, meta_value FROM $wpdb->postmeta WHERE meta_key = %s LIMIT %d,%d", $meta_key, $offset, $limit ) ); // Increment offset. $offset = ( $limit + $offset ); if ( ! empty( $results ) ) { foreach ( $results as $r ) { // Set permalinks into array. $hashtable[ $r->meta_value ] = (int) $r->post_id; } } } while ( count( $results ) === $limit ); return $hashtable; } /** * Returns count of imported permalinks from WordPress database. * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $importer_name * @param string $blog_id * @return int */ public function count_imported_posts( $importer_name, $blog_id ) { global $wpdb; $count = 0; // Get count of permalinks. $meta_key = $importer_name . '_' . $blog_id . '_permalink'; $result = $wpdb->get_results( $wpdb->prepare( "SELECT COUNT( post_id ) AS cnt FROM $wpdb->postmeta WHERE meta_key = %s", $meta_key ) ); if ( ! empty( $result ) ) { $count = (int) $result[0]->cnt; } return $count; } /** * Sets array with imported comments from WordPress database. * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $blog_id * @return array */ public function get_imported_comments( $blog_id ) { global $wpdb; $hashtable = array(); $limit = 100; $offset = 0; // Grab all comments in chunks. do { $results = $wpdb->get_results( $wpdb->prepare( "SELECT comment_ID, comment_agent FROM $wpdb->comments LIMIT %d,%d", $offset, $limit ) ); // Increment offset. $offset = ( $limit + $offset ); if ( ! empty( $results ) ) { foreach ( $results as $r ) { // Explode comment_agent key. list ( $comment_agent_blog_id, $source_comment_id ) = explode( '-', $r->comment_agent ); $source_comment_id = (int) $source_comment_id; // Check if this comment came from this blog. if ( (int) $blog_id === (int) $comment_agent_blog_id ) { $hashtable[ $source_comment_id ] = (int) $r->comment_ID; } } } } while ( count( $results ) === $limit ); return $hashtable; } /** * @param int $blog_id * @return int|void */ public function set_blog( $blog_id ) { if ( is_numeric( $blog_id ) ) { $blog_id = (int) $blog_id; } else { $blog = 'http://' . preg_replace( '#^https?://#', '', $blog_id ); $parsed = parse_url( $blog ); if ( ! $parsed || empty( $parsed['host'] ) ) { fwrite( STDERR, "Error: can not determine blog_id from $blog_id\n" ); exit; } if ( empty( $parsed['path'] ) ) { $parsed['path'] = '/'; } $blogs = get_sites( array( 'domain' => $parsed['host'], 'number' => 1, 'path' => $parsed['path'], ) ); if ( ! $blogs ) { fwrite( STDERR, "Error: Could not find blog\n" ); exit; } $blog = array_shift( $blogs ); $blog_id = (int) $blog->blog_id; } if ( function_exists( 'is_multisite' ) ) { if ( is_multisite() ) { switch_to_blog( $blog_id ); } } return $blog_id; } /** * @param int $user_id * @return int|void */ public function set_user( $user_id ) { if ( is_numeric( $user_id ) ) { $user_id = (int) $user_id; } else { $user_id = (int) username_exists( $user_id ); } if ( ! $user_id || ! wp_set_current_user( $user_id ) ) { fwrite( STDERR, "Error: can not find user\n" ); exit; } return $user_id; } /** * Sorts by strlen, longest string first. * * @param string $a * @param string $b * @return int */ public function cmpr_strlen( $a, $b ) { return strlen( $b ) - strlen( $a ); } /** * Gets URL. * * @param string $url * @param string $username * @param string $password * @param bool $head * @return array */ public function get_page( $url, $username = '', #[\SensitiveParameter] $password = '', $head = false ) { // Increase the timeout. add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) ); $headers = array(); $args = array(); if ( true === $head ) { $args['method'] = 'HEAD'; } if ( ! empty( $username ) && ! empty( $password ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( "$username:$password" ); } $args['headers'] = $headers; return wp_safe_remote_request( $url, $args ); } /** * Bumps up the request timeout for http requests. * * @param int $val * @return int */ public function bump_request_timeout( $val ) { return 60; } /** * Checks if user has exceeded disk quota. * * @return bool */ public function is_user_over_quota() { if ( function_exists( 'upload_is_user_over_quota' ) ) { if ( upload_is_user_over_quota() ) { return true; } } return false; } /** * Replaces newlines, tabs, and multiple spaces with a single space. * * @param string $text * @return string */ public function min_whitespace( $text ) { return preg_replace( '|[\r\n\t ]+|', ' ', $text ); } /** * Resets global variables that grow out of control during imports. * * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * @global int[] $wp_actions Stores the number of times each action was triggered. */ public function stop_the_insanity() { global $wpdb, $wp_actions; // Or define( 'WP_IMPORTING', true ); $wpdb->queries = array(); // Reset $wp_actions to keep it from growing out of control. $wp_actions = array(); } } /** * Returns value of command line params. * Exits when a required param is not set. * * @param string $param The parameter name to retrieve. * @param bool $required Optional. Whether the parameter is required. Default false. * @return string|true|null|never The parameter value or true if found, null otherwise. * The function exits when a required parameter is missing. */ function get_cli_args( $param, $required = false ) { $args = $_SERVER['argv']; if ( ! is_array( $args ) ) { $args = array(); } $out = array(); $last_arg = null; $return = null; $il = count( $args ); for ( $i = 1, $il; $i < $il; $i++ ) { if ( (bool) preg_match( '/^--(.+)/', $args[ $i ], $match ) ) { $parts = explode( '=', $match[1] ); $key = preg_replace( '/[^a-z0-9]+/', '', $parts[0] ); $out[ $key ] = $parts[1] ?? true; $last_arg = $key; } elseif ( (bool) preg_match( '/^-([a-zA-Z0-9]+)/', $args[ $i ], $match ) ) { for ( $j = 0, $jl = strlen( $match[1] ); $j < $jl; $j++ ) { $key = $match[1][ $j ]; $out[ $key ] = true; } $last_arg = $key; } elseif ( null !== $last_arg ) { $out[ $last_arg ] = $args[ $i ]; } } // Check array for specified param. if ( isset( $out[ $param ] ) ) { // Set return value. $return = $out[ $param ]; } // Check for missing required param. if ( ! isset( $out[ $param ] ) && $required ) { // Display message and exit. echo "\"$param\" parameter is required but was not specified\n"; exit; } return $return; } includes/class-wp-application-passwords-list-table.php000064400000015445152213653150017212 0ustar00 __( 'Name' ), 'created' => __( 'Created' ), 'last_used' => __( 'Last Used' ), 'last_ip' => __( 'Last IP' ), 'revoke' => __( 'Revoke' ), ); } /** * Prepares the list of items for displaying. * * @since 5.6.0 * * @global int $user_id User ID. */ public function prepare_items() { global $user_id; $this->items = array_reverse( WP_Application_Passwords::get_user_application_passwords( $user_id ) ); } /** * Handles the name column output. * * @since 5.6.0 * * @param array $item The current application password item. */ public function column_name( $item ) { echo esc_html( $item['name'] ); } /** * Handles the created column output. * * @since 5.6.0 * * @param array $item The current application password item. */ public function column_created( $item ) { if ( empty( $item['created'] ) ) { echo '—'; } else { echo date_i18n( __( 'F j, Y' ), $item['created'] ); } } /** * Handles the last used column output. * * @since 5.6.0 * * @param array $item The current application password item. */ public function column_last_used( $item ) { if ( empty( $item['last_used'] ) ) { echo '—'; } else { echo date_i18n( __( 'F j, Y' ), $item['last_used'] ); } } /** * Handles the last ip column output. * * @since 5.6.0 * * @param array $item The current application password item. */ public function column_last_ip( $item ) { if ( empty( $item['last_ip'] ) ) { echo '—'; } else { echo $item['last_ip']; } } /** * Handles the revoke column output. * * @since 5.6.0 * * @param array $item The current application password item. */ public function column_revoke( $item ) { $name = 'revoke-application-password-' . $item['uuid']; printf( '', esc_attr( $name ), /* translators: %s: the application password's given name. */ esc_attr( sprintf( __( 'Revoke "%s"' ), $item['name'] ) ), __( 'Revoke' ) ); } /** * Generates content for a single row of the table * * @since 5.6.0 * * @param array $item The current item. * @param string $column_name The current column name. */ protected function column_default( $item, $column_name ) { /** * Fires for each custom column in the Application Passwords list table. * * Custom columns are registered using the {@see 'manage_application-passwords-user_columns'} filter. * * @since 5.6.0 * * @param string $column_name Name of the custom column. * @param array $item The application password item. */ do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item ); } /** * Generates custom table navigation to prevent conflicting nonces. * * @since 5.6.0 * * @param string $which The location of the bulk actions: Either 'top' or 'bottom'. */ protected function display_tablenav( $which ) { ?>
        bulk_actions( $which ); ?>
        extra_tablenav( $which ); $this->pagination( $which ); ?>
        '; $this->single_row_columns( $item ); echo ''; } /** * Gets the name of the default primary column. * * @since 5.6.0 * * @return string Name of the default primary column, in this case, 'name'. */ protected function get_default_primary_column_name() { return 'name'; } /** * Prints the JavaScript template for the new row item. * * @since 5.6.0 */ public function print_js_template_row() { list( $columns, $hidden, , $primary ) = $this->get_column_info(); echo ''; foreach ( $columns as $column_name => $display_name ) { $is_primary = $primary === $column_name; $classes = "{$column_name} column-{$column_name}"; if ( $is_primary ) { $classes .= ' has-row-actions column-primary'; } if ( in_array( $column_name, $hidden, true ) ) { $classes .= ' hidden'; } printf( '', esc_attr( $classes ), esc_attr( wp_strip_all_tags( $display_name ) ) ); switch ( $column_name ) { case 'name': echo '{{ data.name }}'; break; case 'created': // JSON encoding automatically doubles backslashes to ensure they don't get lost when printing the inline JS. echo '<# print( wp.date.dateI18n( ' . wp_json_encode( __( 'F j, Y' ) ) . ', data.created ) ) #>'; break; case 'last_used': echo '<# print( data.last_used !== null ? wp.date.dateI18n( ' . wp_json_encode( __( 'F j, Y' ) ) . ", data.last_used ) : '—' ) #>"; break; case 'last_ip': echo "{{ data.last_ip || '—' }}"; break; case 'revoke': printf( '', /* translators: %s: the application password's given name. */ esc_attr( sprintf( __( 'Revoke "%s"' ), '{{ data.name }}' ) ), esc_html__( 'Revoke' ) ); break; default: /** * Fires in the JavaScript row template for each custom column in the Application Passwords list table. * * Custom columns are registered using the {@see 'manage_application-passwords-user_columns'} filter. * * @since 5.6.0 * * @param string $column_name Name of the custom column. */ do_action( "manage_{$this->screen->id}_custom_column_js_template", $column_name ); break; } if ( $is_primary ) { echo ''; } echo ''; } echo ''; } } includes/deprecated.php000064400000121431152213653150011170 0ustar00 0) ); if ( $categories ) { foreach ( $categories as $category ) { if ( $current_cat != $category->term_id && $category_parent == $category->parent) { $pad = str_repeat( '– ', $level ); $category->name = esc_html( $category->name ); echo "\n\t"; wp_dropdown_cats( $current_cat, $current_parent, $category->term_id, $level +1, $categories ); } } } else { return false; } } /** * Register a setting and its sanitization callback * * @since 2.7.0 * @deprecated 3.0.0 Use register_setting() * @see register_setting() * * @param string $option_group A settings group name. Should correspond to an allowed option key name. * Default allowed option key names include 'general', 'discussion', 'media', * 'reading', 'writing', and 'options'. * @param string $option_name The name of an option to sanitize and save. * @param callable $sanitize_callback Optional. A callback function that sanitizes the option's value. */ function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { _deprecated_function( __FUNCTION__, '3.0.0', 'register_setting()' ); register_setting( $option_group, $option_name, $sanitize_callback ); } /** * Unregister a setting * * @since 2.7.0 * @deprecated 3.0.0 Use unregister_setting() * @see unregister_setting() * * @param string $option_group The settings group name used during registration. * @param string $option_name The name of the option to unregister. * @param callable $sanitize_callback Optional. Deprecated. */ function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { _deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' ); unregister_setting( $option_group, $option_name, $sanitize_callback ); } /** * Determines the language to use for CodePress syntax highlighting. * * @since 2.8.0 * @deprecated 3.0.0 * * @param string $filename */ function codepress_get_lang( $filename ) { _deprecated_function( __FUNCTION__, '3.0.0' ); } /** * Adds JavaScript required to make CodePress work on the theme/plugin file editors. * * @since 2.8.0 * @deprecated 3.0.0 */ function codepress_footer_js() { _deprecated_function( __FUNCTION__, '3.0.0' ); } /** * Determine whether to use CodePress. * * @since 2.8.0 * @deprecated 3.0.0 */ function use_codepress() { _deprecated_function( __FUNCTION__, '3.0.0' ); } /** * Get all user IDs. * * @deprecated 3.1.0 Use get_users() * * @global wpdb $wpdb WordPress database abstraction object. * * @return array List of user IDs. */ function get_author_user_ids() { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; if ( !is_multisite() ) $level_key = $wpdb->get_blog_prefix() . 'user_level'; else $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels. return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value != '0'", $level_key) ); } /** * Gets author users who can edit posts. * * @deprecated 3.1.0 Use get_users() * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $user_id User ID. * @return array|false List of editable authors. False if no editable users. */ function get_editable_authors( $user_id ) { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; $editable = get_editable_user_ids( $user_id ); if ( !$editable ) { return false; } else { $editable = join(',', $editable); $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" ); } return apply_filters('get_editable_authors', $authors); } /** * Gets the IDs of any users who can edit posts. * * @deprecated 3.1.0 Use get_users() * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $user_id User ID. * @param bool $exclude_zeros Optional. Whether to exclude zeroes. Default true. * @return array Array of editable user IDs, empty array otherwise. */ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'post' ) { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; if ( ! $user = get_userdata( $user_id ) ) return array(); $post_type_obj = get_post_type_object($post_type); if ( ! $user->has_cap($post_type_obj->cap->edit_others_posts) ) { if ( $user->has_cap($post_type_obj->cap->edit_posts) || ! $exclude_zeros ) return array($user->ID); else return array(); } if ( !is_multisite() ) $level_key = $wpdb->get_blog_prefix() . 'user_level'; else $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels. $query = $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s", $level_key); if ( $exclude_zeros ) $query .= " AND meta_value != '0'"; return $wpdb->get_col( $query ); } /** * Gets all users who are not authors. * * @deprecated 3.1.0 Use get_users() * * @global wpdb $wpdb WordPress database abstraction object. */ function get_nonauthor_user_ids() { _deprecated_function( __FUNCTION__, '3.1.0', 'get_users()' ); global $wpdb; if ( !is_multisite() ) $level_key = $wpdb->get_blog_prefix() . 'user_level'; else $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // WPMU site admins don't have user_levels. return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) ); } if ( ! class_exists( 'WP_User_Search', false ) ) : /** * WordPress User Search class. * * @since 2.1.0 * @deprecated 3.1.0 Use WP_User_Query */ class WP_User_Search { /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var mixed */ var $results; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var string */ var $search_term; /** * Page number. * * @since 2.1.0 * @access private * @var int */ var $page; /** * Role name that users have. * * @since 2.5.0 * @access private * @var string */ var $role; /** * Raw page number. * * @since 2.1.0 * @access private * @var int|bool */ var $raw_page; /** * Amount of users to display per page. * * @since 2.1.0 * @access public * @var int */ var $users_per_page = 50; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var int */ var $first_user; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var int */ var $last_user; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var string */ var $query_limit; /** * {@internal Missing Description}} * * @since 3.0.0 * @access private * @var string */ var $query_orderby; /** * {@internal Missing Description}} * * @since 3.0.0 * @access private * @var string */ var $query_from; /** * {@internal Missing Description}} * * @since 3.0.0 * @access private * @var string */ var $query_where; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var int */ var $total_users_for_query = 0; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var bool */ var $too_many_total_users = false; /** * {@internal Missing Description}} * * @since 2.1.0 * @access private * @var WP_Error */ var $search_errors; /** * {@internal Missing Description}} * * @since 2.7.0 * @access private * @var string */ var $paging_text; /** * PHP5 Constructor - Sets up the object properties. * * @since 2.1.0 * * @param string $search_term Search terms string. * @param int $page Optional. Page ID. * @param string $role Role name. * @return WP_User_Search */ function __construct( $search_term = '', $page = '', $role = '' ) { _deprecated_class( 'WP_User_Search', '3.1.0', 'WP_User_Query' ); $this->search_term = wp_unslash( $search_term ); $this->raw_page = ( '' == $page ) ? false : (int) $page; $this->page = ( '' == $page ) ? 1 : (int) $page; $this->role = $role; $this->prepare_query(); $this->query(); $this->do_paging(); } /** * PHP4 Constructor - Sets up the object properties. * * @since 2.1.0 * * @param string $search_term Search terms string. * @param int $page Optional. Page ID. * @param string $role Role name. * @return WP_User_Search */ public function WP_User_Search( $search_term = '', $page = '', $role = '' ) { _deprecated_constructor( 'WP_User_Search', '3.1.0', get_class( $this ) ); self::__construct( $search_term, $page, $role ); } /** * Prepares the user search query (legacy). * * @since 2.1.0 * @access public * * @global wpdb $wpdb WordPress database abstraction object. */ public function prepare_query() { global $wpdb; $this->first_user = ($this->page - 1) * $this->users_per_page; $this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page); $this->query_orderby = ' ORDER BY user_login'; $search_sql = ''; if ( $this->search_term ) { $searches = array(); $search_sql = 'AND ('; foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col ) $searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' ); $search_sql .= implode(' OR ', $searches); $search_sql .= ')'; } $this->query_from = " FROM $wpdb->users"; $this->query_where = " WHERE 1=1 $search_sql"; if ( $this->role ) { $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id"; $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%'); } elseif ( is_multisite() ) { $level_key = $wpdb->prefix . 'capabilities'; // WPMU site admins don't have user_levels. $this->query_from .= ", $wpdb->usermeta"; $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'"; } do_action_ref_array( 'pre_user_search', array( &$this ) ); } /** * Executes the user search query. * * @since 2.1.0 * @access public * * @global wpdb $wpdb WordPress database abstraction object. */ public function query() { global $wpdb; $this->results = $wpdb->get_col("SELECT DISTINCT($wpdb->users.ID)" . $this->query_from . $this->query_where . $this->query_orderby . $this->query_limit); if ( $this->results ) $this->total_users_for_query = $wpdb->get_var("SELECT COUNT(DISTINCT($wpdb->users.ID))" . $this->query_from . $this->query_where); // No limit. else $this->search_errors = new WP_Error('no_matching_users_found', __('No users found.')); } /** * Prepares variables for use in templates. * * @since 2.1.0 * @access public */ function prepare_vars_for_template_usage() {} /** * Handles paging for the user search query. * * @since 2.1.0 * @access public */ public function do_paging() { if ( $this->total_users_for_query > $this->users_per_page ) { // Have to page the results. $args = array(); if ( ! empty($this->search_term) ) $args['usersearch'] = urlencode($this->search_term); if ( ! empty($this->role) ) $args['role'] = urlencode($this->role); $this->paging_text = paginate_links( array( 'total' => ceil($this->total_users_for_query / $this->users_per_page), 'current' => $this->page, 'base' => 'users.php?%_%', 'format' => 'userspage=%#%', 'add_args' => $args ) ); if ( $this->paging_text ) { $this->paging_text = sprintf( /* translators: 1: Starting number of users on the current page, 2: Ending number of users, 3: Total number of users. */ '' . __( 'Displaying %1$s–%2$s of %3$s' ) . '%s', number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), number_format_i18n( $this->total_users_for_query ), $this->paging_text ); } } } /** * Retrieves the user search query results. * * @since 2.1.0 * @access public * * @return array */ public function get_results() { return (array) $this->results; } /** * Displaying paging text. * * @see do_paging() Builds paging text. * * @since 2.1.0 * @access public */ function page_links() { echo $this->paging_text; } /** * Whether paging is enabled. * * @see do_paging() Builds paging text. * * @since 2.1.0 * @access public * * @return bool */ function results_are_paged() { if ( $this->paging_text ) return true; return false; } /** * Whether there are search terms. * * @since 2.1.0 * @access public * * @return bool */ function is_search() { if ( $this->search_term ) return true; return false; } } endif; /** * Retrieves editable posts from other users. * * @since 2.3.0 * @deprecated 3.1.0 Use get_posts() * @see get_posts() * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $user_id User ID to not retrieve posts from. * @param string $type Optional. Post type to retrieve. Accepts 'draft', 'pending' or 'any' (all). * Default 'any'. * @return array List of posts from others. */ function get_others_unpublished_posts( $user_id, $type = 'any' ) { _deprecated_function( __FUNCTION__, '3.1.0' ); global $wpdb; $editable = get_editable_user_ids( $user_id ); if ( in_array($type, array('draft', 'pending')) ) $type_sql = " post_status = '$type' "; else $type_sql = " ( post_status = 'draft' OR post_status = 'pending' ) "; $dir = ( 'pending' == $type ) ? 'ASC' : 'DESC'; if ( !$editable ) { $other_unpubs = ''; } else { $editable = join(',', $editable); $other_unpubs = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title, post_author FROM $wpdb->posts WHERE post_type = 'post' AND $type_sql AND post_author IN ($editable) AND post_author != %d ORDER BY post_modified $dir", $user_id) ); } return apply_filters('get_others_drafts', $other_unpubs); } /** * Retrieve drafts from other users. * * @deprecated 3.1.0 Use get_posts() * @see get_posts() * * @param int $user_id User ID. * @return array List of drafts from other users. */ function get_others_drafts($user_id) { _deprecated_function( __FUNCTION__, '3.1.0' ); return get_others_unpublished_posts($user_id, 'draft'); } /** * Retrieve pending review posts from other users. * * @deprecated 3.1.0 Use get_posts() * @see get_posts() * * @param int $user_id User ID. * @return array List of posts with pending review post type from other users. */ function get_others_pending($user_id) { _deprecated_function( __FUNCTION__, '3.1.0' ); return get_others_unpublished_posts($user_id, 'pending'); } /** * Output the QuickPress dashboard widget. * * @since 3.0.0 * @deprecated 3.2.0 Use wp_dashboard_quick_press() * @see wp_dashboard_quick_press() */ function wp_dashboard_quick_press_output() { _deprecated_function( __FUNCTION__, '3.2.0', 'wp_dashboard_quick_press()' ); wp_dashboard_quick_press(); } /** * Outputs the TinyMCE editor. * * @since 2.7.0 * @deprecated 3.3.0 Use wp_editor() * @see wp_editor() */ function wp_tiny_mce( $teeny = false, $settings = false ) { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); static $num = 1; if ( ! class_exists( '_WP_Editors', false ) ) require_once ABSPATH . WPINC . '/class-wp-editor.php'; $editor_id = 'content' . $num++; $set = array( 'teeny' => $teeny, 'tinymce' => $settings ? $settings : true, 'quicktags' => false ); $set = _WP_Editors::parse_settings($editor_id, $set); _WP_Editors::editor_settings($editor_id, $set); } /** * Preloads TinyMCE dialogs. * * @deprecated 3.3.0 Use wp_editor() * @see wp_editor() */ function wp_preload_dialogs() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); } /** * Prints TinyMCE editor JS. * * @deprecated 3.3.0 Use wp_editor() * @see wp_editor() */ function wp_print_editor_js() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); } /** * Handles quicktags. * * @deprecated 3.3.0 Use wp_editor() * @see wp_editor() */ function wp_quicktags() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_editor()' ); } /** * Returns the screen layout options. * * @since 2.8.0 * @deprecated 3.3.0 WP_Screen::render_screen_layout() * @see WP_Screen::render_screen_layout() */ function screen_layout( $screen ) { _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' ); $current_screen = get_current_screen(); if ( ! $current_screen ) return ''; ob_start(); $current_screen->render_screen_layout(); return ob_get_clean(); } /** * Returns the screen's per-page options. * * @since 2.8.0 * @deprecated 3.3.0 Use WP_Screen::render_per_page_options() * @see WP_Screen::render_per_page_options() */ function screen_options( $screen ) { _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' ); $current_screen = get_current_screen(); if ( ! $current_screen ) return ''; ob_start(); $current_screen->render_per_page_options(); return ob_get_clean(); } /** * Renders the screen's help. * * @since 2.7.0 * @deprecated 3.3.0 Use WP_Screen::render_screen_meta() * @see WP_Screen::render_screen_meta() */ function screen_meta( $screen ) { $current_screen = get_current_screen(); $current_screen->render_screen_meta(); } /** * Favorite actions were deprecated in version 3.2. Use the admin bar instead. * * @since 2.7.0 * @deprecated 3.2.0 Use WP_Admin_Bar * @see WP_Admin_Bar */ function favorite_actions() { _deprecated_function( __FUNCTION__, '3.2.0', 'WP_Admin_Bar' ); } /** * Handles uploading an image. * * @deprecated 3.3.0 Use wp_media_upload_handler() * @see wp_media_upload_handler() * * @return null|string */ function media_upload_image() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } /** * Handles uploading an audio file. * * @deprecated 3.3.0 Use wp_media_upload_handler() * @see wp_media_upload_handler() * * @return null|string */ function media_upload_audio() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } /** * Handles uploading a video file. * * @deprecated 3.3.0 Use wp_media_upload_handler() * @see wp_media_upload_handler() * * @return null|string */ function media_upload_video() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } /** * Handles uploading a generic file. * * @deprecated 3.3.0 Use wp_media_upload_handler() * @see wp_media_upload_handler() * * @return null|string */ function media_upload_file() { _deprecated_function( __FUNCTION__, '3.3.0', 'wp_media_upload_handler()' ); return wp_media_upload_handler(); } /** * Handles retrieving the insert-from-URL form for an image. * * @deprecated 3.3.0 Use wp_media_insert_url_form() * @see wp_media_insert_url_form() * * @return string */ function type_url_form_image() { _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('image')" ); return wp_media_insert_url_form( 'image' ); } /** * Handles retrieving the insert-from-URL form for an audio file. * * @deprecated 3.3.0 Use wp_media_insert_url_form() * @see wp_media_insert_url_form() * * @return string */ function type_url_form_audio() { _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('audio')" ); return wp_media_insert_url_form( 'audio' ); } /** * Handles retrieving the insert-from-URL form for a video file. * * @deprecated 3.3.0 Use wp_media_insert_url_form() * @see wp_media_insert_url_form() * * @return string */ function type_url_form_video() { _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('video')" ); return wp_media_insert_url_form( 'video' ); } /** * Handles retrieving the insert-from-URL form for a generic file. * * @deprecated 3.3.0 Use wp_media_insert_url_form() * @see wp_media_insert_url_form() * * @return string */ function type_url_form_file() { _deprecated_function( __FUNCTION__, '3.3.0', "wp_media_insert_url_form('file')" ); return wp_media_insert_url_form( 'file' ); } /** * Add contextual help text for a page. * * Creates an 'Overview' help tab. * * @since 2.7.0 * @deprecated 3.3.0 Use WP_Screen::add_help_tab() * @see WP_Screen::add_help_tab() * * @param string $screen The handle for the screen to add help to. This is usually * the hook name returned by the `add_*_page()` functions. * @param string $help The content of an 'Overview' help tab. */ function add_contextual_help( $screen, $help ) { _deprecated_function( __FUNCTION__, '3.3.0', 'get_current_screen()->add_help_tab()' ); if ( is_string( $screen ) ) $screen = convert_to_screen( $screen ); WP_Screen::add_old_compat_help( $screen, $help ); } /** * Get the allowed themes for the current site. * * @since 3.0.0 * @deprecated 3.4.0 Use wp_get_themes() * @see wp_get_themes() * * @return WP_Theme[] Array of WP_Theme objects keyed by their name. */ function get_allowed_themes() { _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'allowed' => true ) )" ); $themes = wp_get_themes( array( 'allowed' => true ) ); $wp_themes = array(); foreach ( $themes as $theme ) { $wp_themes[ $theme->get('Name') ] = $theme; } return $wp_themes; } /** * Retrieves a list of broken themes. * * @since 1.5.0 * @deprecated 3.4.0 Use wp_get_themes() * @see wp_get_themes() * * @return array */ function get_broken_themes() { _deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" ); $themes = wp_get_themes( array( 'errors' => true ) ); $broken = array(); foreach ( $themes as $theme ) { $name = $theme->get('Name'); $broken[ $name ] = array( 'Name' => $name, 'Title' => $name, 'Description' => $theme->errors()->get_error_message(), ); } return $broken; } /** * Retrieves information on the current active theme. * * @since 2.0.0 * @deprecated 3.4.0 Use wp_get_theme() * @see wp_get_theme() * * @return WP_Theme */ function current_theme_info() { _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); return wp_get_theme(); } /** * This was once used to display an 'Insert into Post' button. * * Now it is deprecated and stubbed. * * @deprecated 3.5.0 */ function _insert_into_post_button( $type ) { _deprecated_function( __FUNCTION__, '3.5.0' ); } /** * This was once used to display a media button. * * Now it is deprecated and stubbed. * * @deprecated 3.5.0 */ function _media_button($title, $icon, $type, $id) { _deprecated_function( __FUNCTION__, '3.5.0' ); } /** * Gets an existing post and format it for editing. * * @since 2.0.0 * @deprecated 3.5.0 Use get_post() * @see get_post() * * @param int $id * @return WP_Post */ function get_post_to_edit( $id ) { _deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' ); return get_post( $id, OBJECT, 'edit' ); } /** * Gets the default page information to use. * * @since 2.5.0 * @deprecated 3.5.0 Use get_default_post_to_edit() * @see get_default_post_to_edit() * * @return WP_Post Post object containing all the default post data as attributes */ function get_default_page_to_edit() { _deprecated_function( __FUNCTION__, '3.5.0', "get_default_post_to_edit( 'page' )" ); $page = get_default_post_to_edit(); $page->post_type = 'page'; return $page; } /** * This was once used to create a thumbnail from an Image given a maximum side size. * * @since 1.2.0 * @deprecated 3.5.0 Use image_resize() * @see image_resize() * * @param mixed $file Filename of the original image, Or attachment ID. * @param int $max_side Maximum length of a single side for the thumbnail. * @param mixed $deprecated Never used. * @return string Thumbnail path on success, Error string on failure. */ function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) { _deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' ); return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) ); } /** * This was once used to display a meta box for the nav menu theme locations. * * Deprecated in favor of a 'Manage Locations' tab added to nav menus management screen. * * @since 3.0.0 * @deprecated 3.6.0 */ function wp_nav_menu_locations_meta_box() { _deprecated_function( __FUNCTION__, '3.6.0' ); } /** * This was once used to kick-off the Core Updater. * * Deprecated in favor of instantiating a Core_Upgrader instance directly, * and calling the 'upgrade' method. * * @since 2.7.0 * @deprecated 3.7.0 Use Core_Upgrader * @see Core_Upgrader */ function wp_update_core($current, $feedback = '') { _deprecated_function( __FUNCTION__, '3.7.0', 'new Core_Upgrader();' ); if ( !empty($feedback) ) add_filter('update_feedback', $feedback); require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $upgrader = new Core_Upgrader(); return $upgrader->upgrade($current); } /** * This was once used to kick-off the Plugin Updater. * * Deprecated in favor of instantiating a Plugin_Upgrader instance directly, * and calling the 'upgrade' method. * Unused since 2.8.0. * * @since 2.5.0 * @deprecated 3.7.0 Use Plugin_Upgrader * @see Plugin_Upgrader */ function wp_update_plugin($plugin, $feedback = '') { _deprecated_function( __FUNCTION__, '3.7.0', 'new Plugin_Upgrader();' ); if ( !empty($feedback) ) add_filter('update_feedback', $feedback); require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $upgrader = new Plugin_Upgrader(); return $upgrader->upgrade($plugin); } /** * This was once used to kick-off the Theme Updater. * * Deprecated in favor of instantiating a Theme_Upgrader instance directly, * and calling the 'upgrade' method. * Unused since 2.8.0. * * @since 2.7.0 * @deprecated 3.7.0 Use Theme_Upgrader * @see Theme_Upgrader */ function wp_update_theme($theme, $feedback = '') { _deprecated_function( __FUNCTION__, '3.7.0', 'new Theme_Upgrader();' ); if ( !empty($feedback) ) add_filter('update_feedback', $feedback); require ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $upgrader = new Theme_Upgrader(); return $upgrader->upgrade($theme); } /** * This was once used to display attachment links. Now it is deprecated and stubbed. * * @since 2.0.0 * @deprecated 3.7.0 * * @param int|bool $id */ function the_attachment_links( $id = false ) { _deprecated_function( __FUNCTION__, '3.7.0' ); } /** * Displays a screen icon. * * @since 2.7.0 * @deprecated 3.8.0 */ function screen_icon() { _deprecated_function( __FUNCTION__, '3.8.0' ); echo get_screen_icon(); } /** * Retrieves the screen icon (no longer used in 3.8+). * * @since 3.2.0 * @deprecated 3.8.0 * * @return string An HTML comment explaining that icons are no longer used. */ function get_screen_icon() { _deprecated_function( __FUNCTION__, '3.8.0' ); return ''; } /** * Deprecated dashboard widget controls. * * @since 2.5.0 * @deprecated 3.8.0 */ function wp_dashboard_incoming_links_output() {} /** * Deprecated dashboard secondary output. * * @deprecated 3.8.0 */ function wp_dashboard_secondary_output() {} /** * Deprecated dashboard widget controls. * * @since 2.7.0 * @deprecated 3.8.0 */ function wp_dashboard_incoming_links() {} /** * Deprecated dashboard incoming links control. * * @deprecated 3.8.0 */ function wp_dashboard_incoming_links_control() {} /** * Deprecated dashboard plugins control. * * @deprecated 3.8.0 */ function wp_dashboard_plugins() {} /** * Deprecated dashboard primary control. * * @deprecated 3.8.0 */ function wp_dashboard_primary_control() {} /** * Deprecated dashboard recent comments control. * * @deprecated 3.8.0 */ function wp_dashboard_recent_comments_control() {} /** * Deprecated dashboard secondary section. * * @deprecated 3.8.0 */ function wp_dashboard_secondary() {} /** * Deprecated dashboard secondary control. * * @deprecated 3.8.0 */ function wp_dashboard_secondary_control() {} /** * Display plugins text for the WordPress news widget. * * @since 2.5.0 * @deprecated 4.8.0 * * @param string $rss The RSS feed URL. * @param array $args Array of arguments for this RSS feed. */ function wp_dashboard_plugins_output( $rss, $args = array() ) { _deprecated_function( __FUNCTION__, '4.8.0' ); // Plugin feeds plus link to install them. $popular = fetch_feed( $args['url']['popular'] ); if ( false === $plugin_slugs = get_transient( 'plugin_slugs' ) ) { $plugin_slugs = array_keys( get_plugins() ); set_transient( 'plugin_slugs', $plugin_slugs, DAY_IN_SECONDS ); } echo '
          '; foreach ( array( $popular ) as $feed ) { if ( is_wp_error( $feed ) || ! $feed->get_item_quantity() ) continue; $items = $feed->get_items(0, 5); // Pick a random, non-installed plugin. while ( true ) { // Abort this foreach loop iteration if there's no plugins left of this type. if ( 0 === count($items) ) continue 2; $item_key = array_rand($items); $item = $items[$item_key]; list($link, $frag) = explode( '#', $item->get_link() ); $link = esc_url($link); if ( preg_match( '|/([^/]+?)/?$|', $link, $matches ) ) $slug = $matches[1]; else { unset( $items[$item_key] ); continue; } // Is this random plugin's slug already installed? If so, try again. reset( $plugin_slugs ); foreach ( $plugin_slugs as $plugin_slug ) { if ( str_starts_with( $plugin_slug, $slug ) ) { unset( $items[$item_key] ); continue 2; } } // If we get to this point, then the random plugin isn't installed and we can stop the while(). break; } // Eliminate some common badly formed plugin descriptions. while ( ( null !== $item_key = array_rand($items) ) && str_contains( $items[$item_key]->get_description(), 'Plugin Name:' ) ) unset($items[$item_key]); if ( !isset($items[$item_key]) ) continue; $raw_title = $item->get_title(); $ilink = wp_nonce_url('plugin-install.php?tab=plugin-information&plugin=' . $slug, 'install-plugin_' . $slug) . '&TB_iframe=true&width=600&height=800'; echo '
        • ' . __( 'Popular Plugin' ) . ': ' . esc_html( $raw_title ) . ' (' . __( 'Install' ) . ')
        • '; $feed->__destruct(); unset( $feed ); } echo '
        '; } /** * This was once used to move child posts to a new parent. * * @since 2.3.0 * @deprecated 3.9.0 * @access private * * @param int $old_ID * @param int $new_ID */ function _relocate_children( $old_ID, $new_ID ) { _deprecated_function( __FUNCTION__, '3.9.0' ); } /** * Add a top-level menu page in the 'objects' section. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * * @deprecated 4.5.0 Use add_menu_page() * @see add_menu_page() * @global int $_wp_last_object_menu * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param string $icon_url Optional. The URL to the icon to be used for this menu. * @return string The resulting page's hook_suffix. */ function add_object_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '') { _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' ); global $_wp_last_object_menu; $_wp_last_object_menu++; return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $_wp_last_object_menu); } /** * Add a top-level menu page in the 'utility' section. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * * @deprecated 4.5.0 Use add_menu_page() * @see add_menu_page() * @global int $_wp_last_utility_menu * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param string $icon_url Optional. The URL to the icon to be used for this menu. * @return string The resulting page's hook_suffix. */ function add_utility_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '') { _deprecated_function( __FUNCTION__, '4.5.0', 'add_menu_page()' ); global $_wp_last_utility_menu; $_wp_last_utility_menu++; return add_menu_page($page_title, $menu_title, $capability, $menu_slug, $callback, $icon_url, $_wp_last_utility_menu); } /** * Disables autocomplete on the 'post' form (Add/Edit Post screens) for WebKit browsers, * as they disregard the autocomplete setting on the editor textarea. That can break the editor * when the user navigates to it with the browser's Back button. See #28037 * * Replaced with wp_page_reload_on_back_button_js() that also fixes this problem. * * @since 4.0.0 * @deprecated 4.6.0 * * @link https://core.trac.wordpress.org/ticket/35852 * * @global bool $is_safari * @global bool $is_chrome */ function post_form_autocomplete_off() { global $is_safari, $is_chrome; _deprecated_function( __FUNCTION__, '4.6.0' ); if ( $is_safari || $is_chrome ) { echo ' autocomplete="off"'; } } /** * Display JavaScript on the page. * * @since 3.5.0 * @deprecated 4.9.0 */ function options_permalink_add_js() { ?> 'tags', 'singular' => 'tag', 'screen' => $args['screen'] ?? null, ) ); $action = $this->screen->action; $post_type = $this->screen->post_type; $taxonomy = $this->screen->taxonomy; if ( empty( $taxonomy ) ) { $taxonomy = 'post_tag'; } if ( ! taxonomy_exists( $taxonomy ) ) { wp_die( __( 'Invalid taxonomy.' ) ); } $tax = get_taxonomy( $taxonomy ); // @todo Still needed? Maybe just the show_ui part. if ( empty( $post_type ) || ! in_array( $post_type, get_post_types( array( 'show_ui' => true ) ), true ) ) { $post_type = 'post'; } } /** * @return bool */ public function ajax_user_can() { return current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->manage_terms ); } /** */ public function prepare_items() { $taxonomy = $this->screen->taxonomy; $tags_per_page = $this->get_items_per_page( "edit_{$taxonomy}_per_page" ); if ( 'post_tag' === $taxonomy ) { /** * Filters the number of terms displayed per page for the Tags list table. * * @since 2.8.0 * * @param int $tags_per_page Number of tags to be displayed. Default 20. */ $tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page ); /** * Filters the number of terms displayed per page for the Tags list table. * * @since 2.7.0 * @deprecated 2.8.0 Use {@see 'edit_tags_per_page'} instead. * * @param int $tags_per_page Number of tags to be displayed. Default 20. */ $tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' ); } elseif ( 'category' === $taxonomy ) { /** * Filters the number of terms displayed per page for the Categories list table. * * @since 2.8.0 * * @param int $tags_per_page Number of categories to be displayed. Default 20. */ $tags_per_page = apply_filters( 'edit_categories_per_page', $tags_per_page ); } $search = ! empty( $_REQUEST['s'] ) ? trim( wp_unslash( $_REQUEST['s'] ) ) : ''; $args = array( 'taxonomy' => $taxonomy, 'search' => $search, 'page' => $this->get_pagenum(), 'number' => $tags_per_page, 'hide_empty' => 0, ); if ( ! empty( $_REQUEST['orderby'] ) ) { $args['orderby'] = trim( wp_unslash( $_REQUEST['orderby'] ) ); } if ( ! empty( $_REQUEST['order'] ) ) { $args['order'] = trim( wp_unslash( $_REQUEST['order'] ) ); } $args['offset'] = ( $args['page'] - 1 ) * $args['number']; // Save the values because 'number' and 'offset' can be subsequently overridden. $this->callback_args = $args; if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $args['orderby'] ) ) { // We'll need the full set of terms then. $args['number'] = 0; $args['offset'] = $args['number']; } $this->items = get_terms( $args ); $this->set_pagination_args( array( 'total_items' => wp_count_terms( array( 'taxonomy' => $taxonomy, 'search' => $search, ) ), 'per_page' => $tags_per_page, ) ); } /** */ public function no_items() { echo get_taxonomy( $this->screen->taxonomy )->labels->not_found; } /** * @return array */ protected function get_bulk_actions() { $actions = array(); if ( current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->delete_terms ) ) { $actions['delete'] = __( 'Delete' ); } return $actions; } /** * @return string */ public function current_action() { if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['delete_tags'] ) && 'delete' === $_REQUEST['action'] ) { return 'bulk-delete'; } return parent::current_action(); } /** * @return string[] Array of column titles keyed by their column name. */ public function get_columns() { $columns = array( 'cb' => '', 'name' => _x( 'Name', 'term name' ), 'description' => __( 'Description' ), 'slug' => __( 'Slug' ), ); if ( 'link_category' === $this->screen->taxonomy ) { $columns['links'] = __( 'Links' ); } else { $columns['posts'] = _x( 'Count', 'Number/count of items' ); } return $columns; } /** * @return array */ protected function get_sortable_columns() { $taxonomy = $this->screen->taxonomy; if ( ! isset( $_GET['orderby'] ) && is_taxonomy_hierarchical( $taxonomy ) ) { $name_orderby_text = __( 'Table ordered hierarchically.' ); } else { $name_orderby_text = __( 'Table ordered by Name.' ); } return array( 'name' => array( 'name', false, _x( 'Name', 'term name' ), $name_orderby_text, 'asc' ), 'description' => array( 'description', false, __( 'Description' ), __( 'Table ordered by Description.' ) ), 'slug' => array( 'slug', false, __( 'Slug' ), __( 'Table ordered by Slug.' ) ), 'posts' => array( 'count', false, _x( 'Count', 'Number/count of items' ), __( 'Table ordered by Posts Count.' ) ), 'links' => array( 'count', false, __( 'Links' ), __( 'Table ordered by Links.' ) ), ); } /** */ public function display_rows_or_placeholder() { $taxonomy = $this->screen->taxonomy; $number = $this->callback_args['number']; $offset = $this->callback_args['offset']; // Convert it to table rows. $count = 0; if ( empty( $this->items ) || ! is_array( $this->items ) ) { echo ''; $this->no_items(); echo ''; return; } if ( is_taxonomy_hierarchical( $taxonomy ) && ! isset( $this->callback_args['orderby'] ) ) { if ( ! empty( $this->callback_args['search'] ) ) {// Ignore children on searches. $children = array(); } else { $children = _get_term_hierarchy( $taxonomy ); } /* * Some funky recursion to get the job done (paging & parents mainly) is contained within. * Skip it for non-hierarchical taxonomies for performance sake. */ $this->_rows( $taxonomy, $this->items, $children, $offset, $number, $count ); } else { foreach ( $this->items as $term ) { $this->single_row( $term ); } } } /** * @param string $taxonomy * @param array $terms * @param array $children * @param int $start * @param int $per_page * @param int $count * @param int $parent_term * @param int $level */ private function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent_term = 0, $level = 0 ) { $end = $start + $per_page; foreach ( $terms as $key => $term ) { if ( $count >= $end ) { break; } if ( $term->parent !== $parent_term && empty( $_REQUEST['s'] ) ) { continue; } // If the page starts in a subtree, print the parents. if ( $count === $start && $term->parent > 0 && empty( $_REQUEST['s'] ) ) { $my_parents = array(); $parent_ids = array(); $p = $term->parent; while ( $p ) { $my_parent = get_term( $p, $taxonomy ); $my_parents[] = $my_parent; $p = $my_parent->parent; if ( in_array( $p, $parent_ids, true ) ) { // Prevent parent loops. break; } $parent_ids[] = $p; } unset( $parent_ids ); $num_parents = count( $my_parents ); while ( $my_parent = array_pop( $my_parents ) ) { echo "\t"; $this->single_row( $my_parent, $level - $num_parents ); --$num_parents; } } if ( $count >= $start ) { echo "\t"; $this->single_row( $term, $level ); } ++$count; unset( $terms[ $key ] ); if ( isset( $children[ $term->term_id ] ) && empty( $_REQUEST['s'] ) ) { $this->_rows( $taxonomy, $terms, $children, $start, $per_page, $count, $term->term_id, $level + 1 ); } } } /** * @global string $taxonomy Global taxonomy. * * @param WP_Term $tag Term object. * @param int $level */ public function single_row( $tag, $level = 0 ) { global $taxonomy; $tag = sanitize_term( $tag, $taxonomy ); $this->level = $level; if ( $tag->parent ) { $count = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) ); $level = 'level-' . $count; } else { $level = 'level-0'; } echo ''; $this->single_row_columns( $tag ); echo ''; } /** * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Term $item Term object. * @return string */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $tag = $item; if ( current_user_can( 'delete_term', $tag->term_id ) ) { return sprintf( '' . '', $tag->term_id, /* translators: Hidden accessibility text. %s: Taxonomy term name. */ sprintf( __( 'Select %s' ), $tag->name ) ); } return ' '; } /** * @param WP_Term $tag Term object. * @return string */ public function column_name( $tag ) { $taxonomy = $this->screen->taxonomy; $pad = str_repeat( '— ', max( 0, $this->level ) ); /** * Filters display of the term name in the terms list table. * * The default output may include padding due to the term's * current level in the term hierarchy. * * @since 2.5.0 * * @see WP_Terms_List_Table::column_name() * * @param string $pad_tag_name The term name, padded if not top-level. * @param WP_Term $tag Term object. */ $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' ); $uri = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI']; $edit_link = get_edit_term_link( $tag, $taxonomy, $this->screen->post_type ); if ( $edit_link ) { $edit_link = add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $uri ) ), $edit_link ); $name = sprintf( '%s', esc_url( $edit_link ), $name ); } $output = sprintf( '%s
        ', $name ); /** This filter is documented in wp-admin/includes/class-wp-terms-list-table.php */ $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy ); if ( $quick_edit_enabled ) { $output .= ''; } return $output; } /** * Gets the name of the default primary column. * * @since 4.3.0 * * @return string Name of the default primary column, in this case, 'name'. */ protected function get_default_primary_column_name() { return 'name'; } /** * Generates and displays row action links. * * @since 4.3.0 * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Term $item Tag being acted upon. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string Row actions output for terms, or an empty string * if the current column is not the primary column. */ protected function handle_row_actions( $item, $column_name, $primary ) { if ( $primary !== $column_name ) { return ''; } // Restores the more descriptive, specific name for use within this method. $tag = $item; $taxonomy = $this->screen->taxonomy; $uri = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI']; $actions = array(); if ( current_user_can( 'edit_term', $tag->term_id ) ) { $actions['edit'] = sprintf( '%s', esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $uri ) ), get_edit_term_link( $tag, $taxonomy, $this->screen->post_type ) ) ), /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ), __( 'Edit' ) ); /** * Filters whether Quick Edit should be enabled for the given taxonomy. * * @since 6.4.0 * * @param bool $enable Whether to enable the Quick Edit functionality. Default true. * @param string $taxonomy Taxonomy name. */ $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy ); if ( $quick_edit_enabled ) { $actions['inline hide-if-no-js'] = sprintf( '', /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ), __( 'Quick Edit' ) ); } } if ( current_user_can( 'delete_term', $tag->term_id ) ) { $actions['delete'] = sprintf( '%s', wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ), /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ), __( 'Delete' ) ); } if ( is_term_publicly_viewable( $tag ) ) { $actions['view'] = sprintf( '%s', get_term_link( $tag ), /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'View “%s” archive' ), $tag->name ) ), __( 'View' ) ); } /** * Filters the action links displayed for each term in the Tags list table. * * @since 2.8.0 * @since 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter. * @since 5.4.2 Restored (un-deprecated). * * @param string[] $actions An array of action links to be displayed. Default * 'Edit', 'Quick Edit', 'Delete', and 'View'. * @param WP_Term $tag Term object. */ $actions = apply_filters( 'tag_row_actions', $actions, $tag ); /** * Filters the action links displayed for each term in the terms list table. * * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * Possible hook names include: * * - `category_row_actions` * - `post_tag_row_actions` * * @since 3.0.0 * * @param string[] $actions An array of action links to be displayed. Default * 'Edit', 'Quick Edit', 'Delete', and 'View'. * @param WP_Term $tag Term object. */ $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag ); return $this->row_actions( $actions ); } /** * @param WP_Term $tag Term object. * @return string */ public function column_description( $tag ) { if ( $tag->description ) { return $tag->description; } else { return '' . /* translators: Hidden accessibility text. */ __( 'No description' ) . ''; } } /** * @param WP_Term $tag Term object. * @return string */ public function column_slug( $tag ) { /** This filter is documented in wp-admin/edit-tag-form.php */ return apply_filters( 'editable_slug', $tag->slug, $tag ); } /** * @param WP_Term $tag Term object. * @return string */ public function column_posts( $tag ) { $count = number_format_i18n( $tag->count ); $tax = get_taxonomy( $this->screen->taxonomy ); $ptype_object = get_post_type_object( $this->screen->post_type ); if ( ! $ptype_object->show_ui ) { return $count; } if ( $tax->query_var ) { $args = array( $tax->query_var => $tag->slug ); } else { $args = array( 'taxonomy' => $tax->name, 'term' => $tag->slug, ); } if ( 'post' !== $this->screen->post_type ) { $args['post_type'] = $this->screen->post_type; } if ( 'attachment' === $this->screen->post_type ) { return "$count"; } return "$count"; } /** * @param WP_Term $tag Term object. * @return string */ public function column_links( $tag ) { $count = number_format_i18n( $tag->count ); if ( $count ) { $count = "$count"; } return $count; } /** * @since 5.9.0 Renamed `$tag` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Term $item Term object. * @param string $column_name Name of the column. * @return string */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $tag = $item; /** * Filters the displayed columns in the terms list table. * * The dynamic portion of the hook name, `$this->screen->taxonomy`, * refers to the slug of the current taxonomy. * * Possible hook names include: * * - `manage_category_custom_column` * - `manage_post_tag_custom_column` * * @since 2.8.0 * * @param string $string Custom column output. Default empty. * @param string $column_name Name of the column. * @param int $term_id Term ID. */ return apply_filters( "manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id ); } /** * Outputs the hidden row displayed when inline editing * * @since 3.1.0 */ public function inline_edit() { $tax = get_taxonomy( $this->screen->taxonomy ); if ( ! current_user_can( $tax->cap->edit_terms ) ) { return; } ?>
        'all', 'author' => false, 'category' => false, 'start_date' => false, 'end_date' => false, 'status' => false, ); $args = wp_parse_args( $args, $defaults ); /** * Fires at the beginning of an export, before any headers are sent. * * @since 2.3.0 * * @param array $args An array of export arguments. */ do_action( 'export_wp', $args ); $sitename = sanitize_key( get_bloginfo( 'name' ) ); if ( ! empty( $sitename ) ) { $sitename .= '.'; } $date = gmdate( 'Y-m-d' ); $wp_filename = $sitename . 'WordPress.' . $date . '.xml'; /** * Filters the export filename. * * @since 4.4.0 * * @param string $wp_filename The name of the file for download. * @param string $sitename The site name. * @param string $date Today's date, formatted. */ $filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date ); header( 'Content-Description: File Transfer' ); header( 'Content-Disposition: attachment; filename=' . $filename ); header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), true ); if ( 'all' !== $args['content'] && post_type_exists( $args['content'] ) ) { $ptype = get_post_type_object( $args['content'] ); if ( ! $ptype->can_export ) { $args['content'] = 'post'; } $where = $wpdb->prepare( "{$wpdb->posts}.post_type = %s", $args['content'] ); } else { $post_types = get_post_types( array( 'can_export' => true ) ); $esses = array_fill( 0, count( $post_types ), '%s' ); // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare $where = $wpdb->prepare( "{$wpdb->posts}.post_type IN (" . implode( ',', $esses ) . ')', $post_types ); } if ( $args['status'] && ( 'post' === $args['content'] || 'page' === $args['content'] ) ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_status = %s", $args['status'] ); } else { $where .= " AND {$wpdb->posts}.post_status != 'auto-draft'"; } $join = ''; if ( $args['category'] && 'post' === $args['content'] ) { $term = term_exists( $args['category'], 'category' ); if ( $term ) { $join = "INNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id)"; $where .= $wpdb->prepare( " AND {$wpdb->term_relationships}.term_taxonomy_id = %d", $term['term_taxonomy_id'] ); } } if ( in_array( $args['content'], array( 'post', 'page', 'attachment' ), true ) ) { if ( $args['author'] ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] ); } if ( $args['start_date'] ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date >= %s", gmdate( 'Y-m-d', strtotime( $args['start_date'] ) ) ); } if ( $args['end_date'] ) { $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_date < %s", gmdate( 'Y-m-d', strtotime( '+1 month', strtotime( $args['end_date'] ) ) ) ); } } // Grab a snapshot of post IDs, just in case it changes during the export. $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" ); // Get IDs for the attachments of each post, unless all content is already being exported. if ( ! in_array( $args['content'], array( 'all', 'attachment' ), true ) ) { // Array to hold all additional IDs (attachments and thumbnails). $additional_ids = array(); // Create a copy of the post IDs array to avoid modifying the original array. $processing_ids = $post_ids; while ( $next_posts = array_splice( $processing_ids, 0, 20 ) ) { $posts_in = array_map( 'absint', $next_posts ); $placeholders = array_fill( 0, count( $posts_in ), '%d' ); // Create a string for the placeholders. $in_placeholder = implode( ',', $placeholders ); // Prepare the SQL statement for attachment ids. $attachment_ids = $wpdb->get_col( $wpdb->prepare( " SELECT ID FROM $wpdb->posts WHERE post_parent IN ($in_placeholder) AND post_type = 'attachment' ", $posts_in ) ); $thumbnails_ids = $wpdb->get_col( $wpdb->prepare( " SELECT meta_value FROM $wpdb->postmeta WHERE $wpdb->postmeta.post_id IN ($in_placeholder) AND $wpdb->postmeta.meta_key = '_thumbnail_id' ", $posts_in ) ); $additional_ids = array_merge( $additional_ids, $attachment_ids, $thumbnails_ids ); } // Merge the additional IDs back with the original post IDs after processing all posts $post_ids = array_unique( array_merge( $post_ids, $additional_ids ) ); } /* * Get the requested terms ready, empty unless posts filtered by category * or all content. */ $cats = array(); $tags = array(); $terms = array(); if ( isset( $term ) && $term ) { $cat = get_term( $term['term_id'], 'category' ); $cats = array( $cat->term_id => $cat ); unset( $term, $cat ); } elseif ( 'all' === $args['content'] ) { $categories = (array) get_categories( array( 'get' => 'all' ) ); $tags = (array) get_tags( array( 'get' => 'all' ) ); $custom_taxonomies = get_taxonomies( array( '_builtin' => false ) ); $custom_terms = (array) get_terms( array( 'taxonomy' => $custom_taxonomies, 'get' => 'all', ) ); // Put categories in order with no child going before its parent. while ( $cat = array_shift( $categories ) ) { if ( ! $cat->parent || isset( $cats[ $cat->parent ] ) ) { $cats[ $cat->term_id ] = $cat; } else { $categories[] = $cat; } } // Put terms in order with no child going before its parent. while ( $t = array_shift( $custom_terms ) ) { if ( ! $t->parent || isset( $terms[ $t->parent ] ) ) { $terms[ $t->term_id ] = $t; } else { $custom_terms[] = $t; } } unset( $categories, $custom_taxonomies, $custom_terms ); } /** * Wraps given string in XML CDATA tag. * * @since 2.1.0 * * @param string|null $str String to wrap in XML CDATA tag. May be null. * @return string */ function wxr_cdata( $str ) { $str = (string) $str; if ( ! wp_is_valid_utf8( $str ) ) { $str = utf8_encode( $str ); } // $str = ent2ncr(esc_html($str)); $str = '', ']]]]>', $str ) . ']]>'; return $str; } /** * Returns the URL of the site. * * @since 2.5.0 * * @return string Site URL. */ function wxr_site_url() { if ( is_multisite() ) { // Multisite: the base URL. return network_home_url(); } else { // WordPress (single site): the site URL. return get_bloginfo_rss( 'url' ); } } /** * Outputs a cat_name XML tag from a given category object. * * @since 2.1.0 * * @param WP_Term $category Category Object. */ function wxr_cat_name( $category ) { if ( empty( $category->name ) ) { return; } echo '' . wxr_cdata( $category->name ) . "\n"; } /** * Outputs a category_description XML tag from a given category object. * * @since 2.1.0 * * @param WP_Term $category Category Object. */ function wxr_category_description( $category ) { if ( empty( $category->description ) ) { return; } echo '' . wxr_cdata( $category->description ) . "\n"; } /** * Outputs a tag_name XML tag from a given tag object. * * @since 2.3.0 * * @param WP_Term $tag Tag Object. */ function wxr_tag_name( $tag ) { if ( empty( $tag->name ) ) { return; } echo '' . wxr_cdata( $tag->name ) . "\n"; } /** * Outputs a tag_description XML tag from a given tag object. * * @since 2.3.0 * * @param WP_Term $tag Tag Object. */ function wxr_tag_description( $tag ) { if ( empty( $tag->description ) ) { return; } echo '' . wxr_cdata( $tag->description ) . "\n"; } /** * Outputs a term_name XML tag from a given term object. * * @since 2.9.0 * * @param WP_Term $term Term Object. */ function wxr_term_name( $term ) { if ( empty( $term->name ) ) { return; } echo '' . wxr_cdata( $term->name ) . "\n"; } /** * Outputs a term_description XML tag from a given term object. * * @since 2.9.0 * * @param WP_Term $term Term Object. */ function wxr_term_description( $term ) { if ( empty( $term->description ) ) { return; } echo "\t\t" . wxr_cdata( $term->description ) . "\n"; } /** * Outputs term meta XML tags for a given term object. * * @since 4.6.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param WP_Term $term Term object. */ function wxr_term_meta( $term ) { global $wpdb; $termmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->termmeta WHERE term_id = %d", $term->term_id ) ); foreach ( $termmeta as $meta ) { /** * Filters whether to selectively skip term meta used for WXR exports. * * Returning a truthy value from the filter will skip the current meta * object from being exported. * * @since 4.6.0 * * @param bool $skip Whether to skip the current piece of term meta. Default false. * @param string $meta_key Current meta key. * @param object $meta Current meta object. */ if ( ! apply_filters( 'wxr_export_skip_termmeta', false, $meta->meta_key, $meta ) ) { printf( "\t\t\n\t\t\t%s\n\t\t\t%s\n\t\t\n", wxr_cdata( $meta->meta_key ), wxr_cdata( $meta->meta_value ) ); } } } /** * Outputs list of authors with posts. * * @since 3.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int[] $post_ids Optional. Array of post IDs to filter the query by. */ function wxr_authors_list( ?array $post_ids = null ) { global $wpdb; if ( ! empty( $post_ids ) ) { $post_ids = array_map( 'absint', $post_ids ); $post_id_chunks = array_chunk( $post_ids, 20 ); } else { $post_id_chunks = array( array() ); } $authors = array(); foreach ( $post_id_chunks as $next_posts ) { $and = ! empty( $next_posts ) ? 'AND ID IN (' . implode( ', ', $next_posts ) . ')' : ''; $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft' $and" ); foreach ( (array) $results as $result ) { $authors[] = get_userdata( $result->post_author ); } } $authors = array_filter( $authors ); $authors = array_unique( $authors, SORT_REGULAR ); // Remove duplicate authors. foreach ( $authors as $author ) { echo "\t"; echo '' . (int) $author->ID . ''; echo '' . wxr_cdata( $author->user_login ) . ''; echo '' . wxr_cdata( $author->user_email ) . ''; echo '' . wxr_cdata( $author->display_name ) . ''; echo '' . wxr_cdata( $author->first_name ) . ''; echo '' . wxr_cdata( $author->last_name ) . ''; echo "\n"; } } /** * Outputs all navigation menu terms. * * @since 3.1.0 */ function wxr_nav_menu_terms() { $nav_menus = wp_get_nav_menus(); if ( empty( $nav_menus ) || ! is_array( $nav_menus ) ) { return; } foreach ( $nav_menus as $menu ) { echo "\t"; echo '' . (int) $menu->term_id . ''; echo 'nav_menu'; echo '' . wxr_cdata( $menu->slug ) . ''; wxr_term_name( $menu ); echo "\n"; } } /** * Outputs list of taxonomy terms, in XML tag format, associated with a post. * * @since 2.3.0 */ function wxr_post_taxonomy() { $post = get_post(); $taxonomies = get_object_taxonomies( $post->post_type ); if ( empty( $taxonomies ) ) { return; } $terms = wp_get_object_terms( $post->ID, $taxonomies ); foreach ( (array) $terms as $term ) { echo "\t\ttaxonomy}\" nicename=\"{$term->slug}\">" . wxr_cdata( $term->name ) . "\n"; } } /** * Determines whether to selectively skip post meta used for WXR exports. * * @since 3.3.0 * * @param bool $return_me Whether to skip the current post meta. Default false. * @param string $meta_key Meta key. * @return bool */ function wxr_filter_postmeta( $return_me, $meta_key ) { if ( '_edit_lock' === $meta_key ) { $return_me = true; } return $return_me; } add_filter( 'wxr_export_skip_postmeta', 'wxr_filter_postmeta', 10, 2 ); echo '\n"; ?> <?php bloginfo_rss( 'name' ); ?> term_id; ?> slug ); ?> parent ? $cats[ $c->parent ]->slug : '' ); ?> term_id; ?> slug ); ?> term_id; ?> taxonomy ); ?> slug ); ?> parent ? $terms[ $t->parent ]->slug : '' ); ?> in_the_loop = true; // Fetch 20 posts at a time rather than loading the entire table into memory. while ( $next_posts = array_splice( $post_ids, 0, 20 ) ) { $where = 'WHERE ID IN (' . implode( ',', $next_posts ) . ')'; $posts = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} $where" ); // Begin Loop. foreach ( $posts as $post ) { setup_postdata( $post ); /** * Filters the post title used for WXR exports. * * @since 5.7.0 * * @param string $post_title Title of the current post. */ $title = wxr_cdata( apply_filters( 'the_title_export', $post->post_title ) ); /** * Filters the post content used for WXR exports. * * @since 2.5.0 * * @param string $post_content Content of the current post. */ $content = wxr_cdata( apply_filters( 'the_content_export', $post->post_content ) ); /** * Filters the post excerpt used for WXR exports. * * @since 2.6.0 * * @param string $post_excerpt Excerpt for the current post. */ $excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) ); $is_sticky = is_sticky( $post->ID ) ? 1 : 0; ?> <?php echo $title; ?> ID; ?> post_date ); ?> post_date_gmt ); ?> post_modified ); ?> post_modified_gmt ); ?> comment_status ); ?> ping_status ); ?> post_name ); ?> post_status ); ?> post_parent; ?> menu_order; ?> post_type ); ?> post_password ); ?> post_type ) : ?> ID ) ); ?> get_results( $wpdb->prepare( "SELECT * FROM $wpdb->postmeta WHERE post_id = %d", $post->ID ) ); foreach ( $postmeta as $meta ) : /** * Filters whether to selectively skip post meta used for WXR exports. * * Returning a truthy value from the filter will skip the current meta * object from being exported. * * @since 3.3.0 * * @param bool $skip Whether to skip the current post meta. Default false. * @param string $meta_key Current meta key. * @param object $meta Current meta object. */ if ( apply_filters( 'wxr_export_skip_postmeta', false, $meta->meta_key, $meta ) ) { continue; } ?> meta_key ); ?> meta_value ); ?> get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved <> 'spam'", $post->ID ) ); $comments = array_filter( array_map( 'get_comment', $_comments ), static function ( $comment ) { return $comment instanceof WP_Comment; } ); foreach ( $comments as $c ) : ?> comment_ID; ?> comment_author ); ?> comment_author_email ); ?> comment_author_url ); ?> comment_author_IP ); ?> comment_date ); ?> comment_date_gmt ); ?> comment_content ); ?> comment_approved ); ?> comment_type ); ?> comment_parent; ?> user_id; ?> get_results( $wpdb->prepare( "SELECT * FROM $wpdb->commentmeta WHERE comment_id = %d", $c->comment_ID ) ); foreach ( $c_meta as $meta ) : /** * Filters whether to selectively skip comment meta used for WXR exports. * * Returning a truthy value from the filter will skip the current meta * object from being exported. * * @since 4.0.0 * * @param bool $skip Whether to skip the current comment meta. Default false. * @param string $meta_key Current meta key. * @param object $meta Current meta object. */ if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) { continue; } ?> meta_key ); ?> meta_value ); ?> find_folder( ABSPATH ); /* * Perhaps the FTP folder is rooted at the WordPress install. * Check for wp-includes folder in root. Could have some false positives, but rare. */ if ( ! $folder && $this->is_dir( '/' . WPINC ) ) { $folder = '/'; } return $folder; } /** * Returns the path on the remote filesystem of WP_CONTENT_DIR. * * @since 2.7.0 * * @return string The location of the remote path. */ public function wp_content_dir() { return $this->find_folder( WP_CONTENT_DIR ); } /** * Returns the path on the remote filesystem of WP_PLUGIN_DIR. * * @since 2.7.0 * * @return string The location of the remote path. */ public function wp_plugins_dir() { return $this->find_folder( WP_PLUGIN_DIR ); } /** * Returns the path on the remote filesystem of the Themes Directory. * * @since 2.7.0 * * @param string|false $theme Optional. The theme stylesheet or template for the directory. * Default false. * @return string The location of the remote path. */ public function wp_themes_dir( $theme = false ) { $theme_root = get_theme_root( $theme ); // Account for relative theme roots. if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) { $theme_root = WP_CONTENT_DIR . $theme_root; } return $this->find_folder( $theme_root ); } /** * Returns the path on the remote filesystem of WP_LANG_DIR. * * @since 3.2.0 * * @return string The location of the remote path. */ public function wp_lang_dir() { return $this->find_folder( WP_LANG_DIR ); } /** * Locates a folder on the remote filesystem. * * @since 2.5.0 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() instead. * @see WP_Filesystem_Base::abspath() * @see WP_Filesystem_Base::wp_content_dir() * @see WP_Filesystem_Base::wp_plugins_dir() * @see WP_Filesystem_Base::wp_themes_dir() * @see WP_Filesystem_Base::wp_lang_dir() * * @param string $base Optional. The folder to start searching from. Default '.'. * @param bool $verbose Optional. True to display debug information. Default false. * @return string The location of the remote path. */ public function find_base_dir( $base = '.', $verbose = false ) { _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' ); $this->verbose = $verbose; return $this->abspath(); } /** * Locates a folder on the remote filesystem. * * @since 2.5.0 * @deprecated 2.7.0 use WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir() methods instead. * @see WP_Filesystem_Base::abspath() * @see WP_Filesystem_Base::wp_content_dir() * @see WP_Filesystem_Base::wp_plugins_dir() * @see WP_Filesystem_Base::wp_themes_dir() * @see WP_Filesystem_Base::wp_lang_dir() * * @param string $base Optional. The folder to start searching from. Default '.'. * @param bool $verbose Optional. True to display debug information. Default false. * @return string The location of the remote path. */ public function get_base_dir( $base = '.', $verbose = false ) { _deprecated_function( __FUNCTION__, '2.7.0', 'WP_Filesystem_Base::abspath() or WP_Filesystem_Base::wp_*_dir()' ); $this->verbose = $verbose; return $this->abspath(); } /** * Locates a folder on the remote filesystem. * * Assumes that on Windows systems, Stripping off the Drive * letter is OK Sanitizes \\ to / in Windows filepaths. * * @since 2.7.0 * * @param string $folder the folder to locate. * @return string|false The location of the remote path, false on failure. */ public function find_folder( $folder ) { if ( isset( $this->cache[ $folder ] ) ) { return $this->cache[ $folder ]; } if ( stripos( $this->method, 'ftp' ) !== false ) { $constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR, 'FTP_LANG_DIR' => WP_LANG_DIR, ); // Direct matches ( folder = CONSTANT/ ). foreach ( $constant_overrides as $constant => $dir ) { if ( ! defined( $constant ) ) { continue; } if ( $folder === $dir ) { return trailingslashit( constant( $constant ) ); } } // Prefix matches ( folder = CONSTANT/subdir ), foreach ( $constant_overrides as $constant => $dir ) { if ( ! defined( $constant ) ) { continue; } if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir. $potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder ); $potential_folder = trailingslashit( $potential_folder ); if ( $this->is_dir( $potential_folder ) ) { $this->cache[ $folder ] = $potential_folder; return $potential_folder; } } } } elseif ( 'direct' === $this->method ) { $folder = str_replace( '\\', '/', $folder ); // Windows path sanitization. return trailingslashit( $folder ); } $folder = preg_replace( '|^([a-z]{1}):|i', '', $folder ); // Strip out Windows drive letter if it's there. $folder = str_replace( '\\', '/', $folder ); // Windows path sanitization. if ( isset( $this->cache[ $folder ] ) ) { return $this->cache[ $folder ]; } if ( $this->exists( $folder ) ) { // Folder exists at that absolute path. $folder = trailingslashit( $folder ); $this->cache[ $folder ] = $folder; return $folder; } $return = $this->search_for_folder( $folder ); if ( $return ) { $this->cache[ $folder ] = $return; } return $return; } /** * Locates a folder on the remote filesystem. * * Expects Windows sanitized path. * * @since 2.7.0 * * @param string $folder The folder to locate. * @param string $base The folder to start searching from. * @param bool $loop If the function has recursed. Internal use only. * @return string|false The location of the remote path, false to cease looping. */ public function search_for_folder( $folder, $base = '.', $loop = false ) { if ( empty( $base ) || '.' === $base ) { $base = trailingslashit( $this->cwd() ); } $folder = untrailingslashit( $folder ); if ( $this->verbose ) { /* translators: 1: Folder to locate, 2: Folder to start searching from. */ printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "
        \n", $folder, $base ); } $folder_parts = explode( '/', $folder ); $folder_part_keys = array_keys( $folder_parts ); $last_index = array_pop( $folder_part_keys ); $last_path = $folder_parts[ $last_index ]; $files = $this->dirlist( $base ); foreach ( $folder_parts as $index => $key ) { if ( $index === $last_index ) { continue; // We want this to be caught by the next code block. } /* * Working from /home/ to /user/ to /wordpress/ see if that file exists within * the current folder, If it's found, change into it and follow through looking * for it. If it can't find WordPress down that route, it'll continue onto the next * folder level, and see if that matches, and so on. If it reaches the end, and still * can't find it, it'll return false for the entire function. */ if ( isset( $files[ $key ] ) ) { // Let's try that folder: $newdir = trailingslashit( path_join( $base, $key ) ); if ( $this->verbose ) { /* translators: %s: Directory name. */ printf( "\n" . __( 'Changing to %s' ) . "
        \n", $newdir ); } // Only search for the remaining path tokens in the directory, not the full path again. $newfolder = implode( '/', array_slice( $folder_parts, $index + 1 ) ); $ret = $this->search_for_folder( $newfolder, $newdir, $loop ); if ( $ret ) { return $ret; } } } /* * Only check this as a last resort, to prevent locating the incorrect install. * All above procedures will fail quickly if this is the right branch to take. */ if ( isset( $files[ $last_path ] ) ) { if ( $this->verbose ) { /* translators: %s: Directory name. */ printf( "\n" . __( 'Found %s' ) . "
        \n", $base . $last_path ); } return trailingslashit( $base . $last_path ); } /* * Prevent this function from looping again. * No need to proceed if we've just searched in `/`. */ if ( $loop || '/' === $base ) { return false; } /* * As an extra last resort, Change back to / if the folder wasn't found. * This comes into effect when the CWD is /home/user/ but WP is at /var/www/.... */ return $this->search_for_folder( $folder, '/', true ); } /** * Returns the *nix-style file permissions for a file. * * From the PHP documentation page for fileperms(). * * @link https://www.php.net/manual/en/function.fileperms.php * * @since 2.5.0 * * @param string $file String filename. * @return string The *nix-style representation of permissions. */ public function gethchmod( $file ) { $perms = intval( $this->getchmod( $file ), 8 ); if ( ( $perms & 0xC000 ) === 0xC000 ) { // Socket. $info = 's'; } elseif ( ( $perms & 0xA000 ) === 0xA000 ) { // Symbolic Link. $info = 'l'; } elseif ( ( $perms & 0x8000 ) === 0x8000 ) { // Regular. $info = '-'; } elseif ( ( $perms & 0x6000 ) === 0x6000 ) { // Block special. $info = 'b'; } elseif ( ( $perms & 0x4000 ) === 0x4000 ) { // Directory. $info = 'd'; } elseif ( ( $perms & 0x2000 ) === 0x2000 ) { // Character special. $info = 'c'; } elseif ( ( $perms & 0x1000 ) === 0x1000 ) { // FIFO pipe. $info = 'p'; } else { // Unknown. $info = 'u'; } // Owner. $info .= ( ( $perms & 0x0100 ) ? 'r' : '-' ); $info .= ( ( $perms & 0x0080 ) ? 'w' : '-' ); $info .= ( ( $perms & 0x0040 ) ? ( ( $perms & 0x0800 ) ? 's' : 'x' ) : ( ( $perms & 0x0800 ) ? 'S' : '-' ) ); // Group. $info .= ( ( $perms & 0x0020 ) ? 'r' : '-' ); $info .= ( ( $perms & 0x0010 ) ? 'w' : '-' ); $info .= ( ( $perms & 0x0008 ) ? ( ( $perms & 0x0400 ) ? 's' : 'x' ) : ( ( $perms & 0x0400 ) ? 'S' : '-' ) ); // World. $info .= ( ( $perms & 0x0004 ) ? 'r' : '-' ); $info .= ( ( $perms & 0x0002 ) ? 'w' : '-' ); $info .= ( ( $perms & 0x0001 ) ? ( ( $perms & 0x0200 ) ? 't' : 'x' ) : ( ( $perms & 0x0200 ) ? 'T' : '-' ) ); return $info; } /** * Gets the permissions of the specified file or filepath in their octal format. * * @since 2.5.0 * * @param string $file Path to the file. * @return string Mode of the file (the last 3 digits). */ public function getchmod( $file ) { return '777'; } /** * Converts *nix-style file permissions to an octal number. * * Converts '-rw-r--r--' to 0644 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod() * * @link https://www.php.net/manual/en/function.chmod.php#49614 * * @since 2.5.0 * * @param string $mode string The *nix-style file permissions. * @return string Octal representation of permissions. */ public function getnumchmodfromh( $mode ) { $realmode = ''; $legal = array( '', 'w', 'r', 'x', '-' ); $attarray = preg_split( '//', $mode ); for ( $i = 0, $c = count( $attarray ); $i < $c; $i++ ) { $key = array_search( $attarray[ $i ], $legal, true ); if ( $key ) { $realmode .= $legal[ $key ]; } } $mode = str_pad( $realmode, 10, '-', STR_PAD_LEFT ); $trans = array( '-' => '0', 'r' => '4', 'w' => '2', 'x' => '1', ); $mode = strtr( $mode, $trans ); $newmode = $mode[0]; $newmode .= $mode[1] + $mode[2] + $mode[3]; $newmode .= $mode[4] + $mode[5] + $mode[6]; $newmode .= $mode[7] + $mode[8] + $mode[9]; return $newmode; } /** * Determines if the string provided contains binary characters. * * @since 2.7.0 * * @param string $text String to test against. * @return bool True if string is binary, false otherwise. */ public function is_binary( $text ) { return (bool) preg_match( '|[^\x20-\x7E]|', $text ); // chr(32)..chr(127) } /** * Changes the owner of a file or directory. * * Default behavior is to do nothing, override this in your subclass, if desired. * * @since 2.5.0 * * @param string $file Path to the file or directory. * @param string|int $owner A user name or number. * @param bool $recursive Optional. If set to true, changes file owner recursively. * Default false. * @return bool True on success, false on failure. */ public function chown( $file, $owner, $recursive = false ) { return false; } /** * Connects filesystem. * * @since 2.5.0 * @abstract * * @return bool True on success, false on failure (always true for WP_Filesystem_Direct). */ public function connect() { return true; } /** * Reads entire file into a string. * * @since 2.5.0 * @abstract * * @param string $file Name of the file to read. * @return string|false Read data on success, false on failure. */ public function get_contents( $file ) { return false; } /** * Reads entire file into an array. * * @since 2.5.0 * @abstract * * @param string $file Path to the file. * @return array|false File contents in an array on success, false on failure. */ public function get_contents_array( $file ) { return false; } /** * Writes a string to a file. * * @since 2.5.0 * @abstract * * @param string $file Remote path to the file where to write the data. * @param string $contents The data to write. * @param int|false $mode Optional. The file permissions as octal number, usually 0644. * Default false. * @return bool True on success, false on failure. */ public function put_contents( $file, $contents, $mode = false ) { return false; } /** * Gets the current working directory. * * @since 2.5.0 * @abstract * * @return string|false The current working directory on success, false on failure. */ public function cwd() { return false; } /** * Changes current directory. * * @since 2.5.0 * @abstract * * @param string $dir The new current directory. * @return bool True on success, false on failure. */ public function chdir( $dir ) { return false; } /** * Changes the file group. * * @since 2.5.0 * @abstract * * @param string $file Path to the file. * @param string|int $group A group name or number. * @param bool $recursive Optional. If set to true, changes file group recursively. * Default false. * @return bool True on success, false on failure. */ public function chgrp( $file, $group, $recursive = false ) { return false; } /** * Changes filesystem permissions. * * @since 2.5.0 * @abstract * * @param string $file Path to the file. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for directories. Default false. * @param bool $recursive Optional. If set to true, changes file permissions recursively. * Default false. * @return bool True on success, false on failure. */ public function chmod( $file, $mode = false, $recursive = false ) { return false; } /** * Gets the file owner. * * @since 2.5.0 * @abstract * * @param string $file Path to the file. * @return string|false Username of the owner on success, false on failure. */ public function owner( $file ) { return false; } /** * Gets the file's group. * * @since 2.5.0 * @abstract * * @param string $file Path to the file. * @return string|false The group on success, false on failure. */ public function group( $file ) { return false; } /** * Copies a file. * * @since 2.5.0 * @abstract * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for dirs. Default false. * @return bool True on success, false on failure. */ public function copy( $source, $destination, $overwrite = false, $mode = false ) { return false; } /** * Moves a file. * * @since 2.5.0 * @abstract * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @return bool True on success, false on failure. */ public function move( $source, $destination, $overwrite = false ) { return false; } /** * Deletes a file or directory. * * @since 2.5.0 * @abstract * * @param string $file Path to the file or directory. * @param bool $recursive Optional. If set to true, deletes files and folders recursively. * Default false. * @param string|false $type Type of resource. 'f' for file, 'd' for directory. * Default false. * @return bool True on success, false on failure. */ public function delete( $file, $recursive = false, $type = false ) { return false; } /** * Checks if a file or directory exists. * * @since 2.5.0 * @abstract * * @param string $path Path to file or directory. * @return bool Whether $path exists or not. */ public function exists( $path ) { return false; } /** * Checks if resource is a file. * * @since 2.5.0 * @abstract * * @param string $file File path. * @return bool Whether $file is a file. */ public function is_file( $file ) { return false; } /** * Checks if resource is a directory. * * @since 2.5.0 * @abstract * * @param string $path Directory path. * @return bool Whether $path is a directory. */ public function is_dir( $path ) { return false; } /** * Checks if a file is readable. * * @since 2.5.0 * @abstract * * @param string $file Path to file. * @return bool Whether $file is readable. */ public function is_readable( $file ) { return false; } /** * Checks if a file or directory is writable. * * @since 2.5.0 * @abstract * * @param string $path Path to file or directory. * @return bool Whether $path is writable. */ public function is_writable( $path ) { return false; } /** * Gets the file's last access time. * * @since 2.5.0 * @abstract * * @param string $file Path to file. * @return int|false Unix timestamp representing last access time, false on failure. */ public function atime( $file ) { return false; } /** * Gets the file modification time. * * @since 2.5.0 * @abstract * * @param string $file Path to file. * @return int|false Unix timestamp representing modification time, false on failure. */ public function mtime( $file ) { return false; } /** * Gets the file size (in bytes). * * @since 2.5.0 * @abstract * * @param string $file Path to file. * @return int|false Size of the file in bytes on success, false on failure. */ public function size( $file ) { return false; } /** * Sets the access and modification times of a file. * * Note: If $file doesn't exist, it will be created. * * @since 2.5.0 * @abstract * * @param string $file Path to file. * @param int $time Optional. Modified time to set for file. * Default 0. * @param int $atime Optional. Access time to set for file. * Default 0. * @return bool True on success, false on failure. */ public function touch( $file, $time = 0, $atime = 0 ) { return false; } /** * Creates a directory. * * @since 2.5.0 * @abstract * * @param string $path Path for new directory. * @param int|false $chmod Optional. The permissions as octal number (or false to skip chmod). * Default false. * @param string|int|false $chown Optional. A user name or number (or false to skip chown). * Default false. * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp). * Default false. * @return bool True on success, false on failure. */ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { return false; } /** * Deletes a directory. * * @since 2.5.0 * @abstract * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool True on success, false on failure. */ public function rmdir( $path, $recursive = false ) { return false; } /** * Gets details for files in a directory or a specific file. * * @since 2.5.0 * @abstract * * @param string $path Path to directory or file. * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. * Default true. * @param bool $recursive Optional. Whether to recursively include file details in nested directories. * Default false. * @return array|false { * Array of arrays containing file information. False if unable to list directory contents. * * @type array ...$0 { * Array of file information. Note that some elements may not be available on all filesystems. * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. * @type string $permsn Octal representation of permissions. * @type int|string|false $number File number. May be a numeric string. False if not available. * @type string|false $owner Owner name or ID, or false if not available. * @type string|false $group File permissions group, or false if not available. * @type int|string|false $size Size of file in bytes. May be a numeric string. * False if not available. * @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string. * False if not available. * @type string|false $lastmod Last modified month (3 letters) and day (without leading 0), or * false if not available. * @type string|false $time Last modified time, or false if not available. * @type string $type Type of resource. 'f' for file, 'd' for directory, 'l' for link. * @type array|false $files If a directory and `$recursive` is true, contains another array of * files. False if unable to list directory contents. * } * } */ public function dirlist( $path, $include_hidden = true, $recursive = false ) { return false; } } includes/class-wp-ms-users-list-table.php000064400000036513152213653150014441 0ustar00get_items_per_page( 'users_network_per_page' ); $role = $_REQUEST['role'] ?? ''; $paged = $this->get_pagenum(); $args = array( 'number' => $users_per_page, 'offset' => ( $paged - 1 ) * $users_per_page, 'search' => $usersearch, 'blog_id' => 0, 'fields' => 'all_with_meta', ); if ( wp_is_large_network( 'users' ) ) { $args['search'] = ltrim( $args['search'], '*' ); } elseif ( '' !== $args['search'] ) { $args['search'] = trim( $args['search'], '*' ); $args['search'] = '*' . $args['search'] . '*'; } if ( 'super' === $role ) { $args['login__in'] = get_super_admins(); } /* * If the network is large and a search is not being performed, * show only the latest users with no paging in order to avoid * expensive count queries. */ if ( ! $usersearch && wp_is_large_network( 'users' ) ) { if ( ! isset( $_REQUEST['orderby'] ) ) { $_GET['orderby'] = 'id'; $_REQUEST['orderby'] = 'id'; } if ( ! isset( $_REQUEST['order'] ) ) { $_GET['order'] = 'DESC'; $_REQUEST['order'] = 'DESC'; } $args['count_total'] = false; } if ( isset( $_REQUEST['orderby'] ) ) { $args['orderby'] = $_REQUEST['orderby']; } if ( isset( $_REQUEST['order'] ) ) { $args['order'] = $_REQUEST['order']; } /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */ $args = apply_filters( 'users_list_table_query_args', $args ); // Query the user IDs for this page. $wp_user_search = new WP_User_Query( $args ); $this->items = $wp_user_search->get_results(); $this->set_pagination_args( array( 'total_items' => $wp_user_search->get_total(), 'per_page' => $users_per_page, ) ); } /** * @return array */ protected function get_bulk_actions() { $actions = array(); if ( current_user_can( 'delete_users' ) ) { $actions['delete'] = __( 'Delete' ); } $actions['spam'] = _x( 'Mark as spam', 'user' ); $actions['notspam'] = _x( 'Not spam', 'user' ); return $actions; } /** */ public function no_items() { _e( 'No users found.' ); } /** * @global string $role * @return array */ protected function get_views() { global $role; $total_users = get_user_count(); $super_admins = get_super_admins(); $total_admins = count( $super_admins ); $role_links = array(); $role_links['all'] = array( 'url' => network_admin_url( 'users.php' ), 'label' => sprintf( /* translators: Number of users. */ _nx( 'All (%s)', 'All (%s)', $total_users, 'users' ), number_format_i18n( $total_users ) ), 'current' => 'super' !== $role, ); $role_links['super'] = array( 'url' => network_admin_url( 'users.php?role=super' ), 'label' => sprintf( /* translators: Number of users. */ _n( 'Super Admin (%s)', 'Super Admins (%s)', $total_admins ), number_format_i18n( $total_admins ) ), 'current' => 'super' === $role, ); return $this->get_views_links( $role_links ); } /** * @global string $mode List table view mode. * * @param string $which */ protected function pagination( $which ) { global $mode; parent::pagination( $which ); if ( 'top' === $which ) { $this->view_switcher( $mode ); } } /** * @return string[] Array of column titles keyed by their column name. */ public function get_columns() { $users_columns = array( 'cb' => '', 'username' => __( 'Username' ), 'name' => __( 'Name' ), 'email' => __( 'Email' ), 'registered' => _x( 'Registered', 'user' ), 'blogs' => __( 'Sites' ), ); /** * Filters the columns displayed in the Network Admin Users list table. * * @since MU (3.0.0) * * @param string[] $users_columns An array of user columns. Default 'cb', 'username', * 'name', 'email', 'registered', 'blogs'. */ return apply_filters( 'wpmu_users_columns', $users_columns ); } /** * @return array */ protected function get_sortable_columns() { return array( 'username' => array( 'login', false, __( 'Username' ), __( 'Table ordered by Username.' ), 'asc' ), 'name' => array( 'name', false, __( 'Name' ), __( 'Table ordered by Name.' ) ), 'email' => array( 'email', false, __( 'E-mail' ), __( 'Table ordered by E-mail.' ) ), 'registered' => array( 'id', false, _x( 'Registered', 'user' ), __( 'Table ordered by User Registered Date.' ) ), ); } /** * Handles the checkbox column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_User $item The current WP_User object. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $user = $item; if ( is_super_admin( $user->ID ) ) { return; } ?> ID; } /** * Handles the username column output. * * @since 4.3.0 * * @param WP_User $user The current WP_User object. */ public function column_username( $user ) { $super_admins = get_super_admins(); $avatar = get_avatar( $user->user_email, 32 ); echo $avatar; if ( current_user_can( 'edit_user', $user->ID ) ) { $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user->ID ) ) ); $edit = "{$user->user_login}"; } else { $edit = $user->user_login; } ?> user_login, $super_admins, true ) ) { echo ' — ' . __( 'Super Admin' ); } ?> first_name && $user->last_name ) { printf( /* translators: 1: User's first name, 2: Last name. */ _x( '%1$s %2$s', 'Display name based on first name and last name' ), $user->first_name, $user->last_name ); } elseif ( $user->first_name ) { echo $user->first_name; } elseif ( $user->last_name ) { echo $user->last_name; } else { echo '' . /* translators: Hidden accessibility text. */ _x( 'Unknown', 'name' ) . ''; } } /** * Handles the email column output. * * @since 4.3.0 * * @param WP_User $user The current WP_User object. */ public function column_email( $user ) { echo "$user->user_email"; } /** * Handles the registered date column output. * * @since 4.3.0 * * @global string $mode List table view mode. * * @param WP_User $user The current WP_User object. */ public function column_registered( $user ) { global $mode; if ( 'list' === $mode ) { $date = __( 'Y/m/d' ); } else { $date = __( 'Y/m/d g:i:s a' ); } echo mysql2date( $date, $user->user_registered ); } /** * @since 4.3.0 * * @param WP_User $user * @param string $classes * @param string $data * @param string $primary */ protected function _column_blogs( $user, $classes, $data, $primary ) { echo ''; echo $this->column_blogs( $user ); echo $this->handle_row_actions( $user, 'blogs', $primary ); echo ''; } /** * Handles the sites column output. * * @since 4.3.0 * * @param WP_User $user The current WP_User object. */ public function column_blogs( $user ) { $blogs = get_blogs_of_user( $user->ID, true ); if ( ! is_array( $blogs ) ) { return; } foreach ( $blogs as $site ) { if ( ! can_edit_network( $site->site_id ) ) { continue; } $path = ( '/' === $site->path ) ? '' : $site->path; $site_classes = array( 'site-' . $site->site_id ); /** * Filters the span class for a site listing on the multisite user list table. * * @since 5.2.0 * * @param string[] $site_classes Array of class names used within the span tag. * Default "site-#" with the site's network ID. * @param int $site_id Site ID. * @param int $network_id Network ID. * @param WP_User $user WP_User object. */ $site_classes = apply_filters( 'ms_user_list_site_class', $site_classes, $site->userblog_id, $site->site_id, $user ); if ( is_array( $site_classes ) && ! empty( $site_classes ) ) { $site_classes = array_map( 'sanitize_html_class', array_unique( $site_classes ) ); echo ''; } else { echo ''; } echo '' . str_replace( '.' . get_network()->domain, '', $site->domain . $path ) . ''; echo ' '; $actions = array(); $actions['edit'] = '' . __( 'Edit' ) . ''; $class = ''; if ( 1 === (int) $site->spam ) { $class .= 'site-spammed '; } if ( 1 === (int) $site->mature ) { $class .= 'site-mature '; } if ( 1 === (int) $site->deleted ) { $class .= 'site-deleted '; } if ( 1 === (int) $site->archived ) { $class .= 'site-archived '; } $actions['view'] = '' . __( 'View' ) . ''; /** * Filters the action links displayed next the sites a user belongs to * in the Network Admin Users list table. * * @since 3.1.0 * * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'View'. * @param int $userblog_id The site ID. */ $actions = apply_filters( 'ms_user_list_site_actions', $actions, $site->userblog_id ); $action_count = count( $actions ); $i = 0; foreach ( $actions as $action => $link ) { ++$i; $separator = ( $i < $action_count ) ? ' | ' : ''; echo "{$link}{$separator}"; } echo '
        '; } } /** * Handles the default column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$user` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_User $item The current WP_User object. * @param string $column_name The current column name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $user = $item; /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */ $column_output = apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID ); /** * Filters the display output of custom columns in the Network Users list table. * * @since 6.8.0 * * @param string $output Custom column output. Default empty. * @param string $column_name Name of the custom column. * @param int $user_id ID of the currently-listed user. */ echo apply_filters( 'manage_users-network_custom_column', $column_output, $column_name, $user->ID ); } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { foreach ( $this->items as $user ) { $class = ''; $status_list = array( 'spam' => 'site-spammed', 'deleted' => 'site-deleted', ); foreach ( $status_list as $status => $col ) { if ( $user->$status ) { $class .= " $col"; } } ?> single_row_columns( $user ); ?> ID ) ) { $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user->ID ) ) ); $actions['edit'] = '' . __( 'Edit' ) . ''; } if ( current_user_can( 'delete_user', $user->ID ) && ! in_array( $user->user_login, $super_admins, true ) ) { $actions['delete'] = '' . __( 'Delete' ) . ''; } /** * Filters the action links displayed under each user in the Network Admin Users list table. * * @since 3.2.0 * * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'. * @param WP_User $user WP_User object. */ $actions = apply_filters( 'ms_user_row_actions', $actions, $user ); return $this->row_actions( $actions ); } } includes/plugin.php000064400000266141152213653150010376 0ustar00 'Plugin Name', 'PluginURI' => 'Plugin URI', 'Version' => 'Version', 'Description' => 'Description', 'Author' => 'Author', 'AuthorURI' => 'Author URI', 'TextDomain' => 'Text Domain', 'DomainPath' => 'Domain Path', 'Network' => 'Network', 'RequiresWP' => 'Requires at least', 'RequiresPHP' => 'Requires PHP', 'UpdateURI' => 'Update URI', 'RequiresPlugins' => 'Requires Plugins', // Site Wide Only is deprecated in favor of Network. '_sitewide' => 'Site Wide Only', ); $plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' ); // Site Wide Only is the old header for Network. if ( ! $plugin_data['Network'] && $plugin_data['_sitewide'] ) { /* translators: 1: Site Wide Only: true, 2: Network: true */ _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( __( 'The %1$s plugin header is deprecated. Use %2$s instead.' ), 'Site Wide Only: true', 'Network: true' ) ); $plugin_data['Network'] = $plugin_data['_sitewide']; } $plugin_data['Network'] = ( 'true' === strtolower( $plugin_data['Network'] ) ); unset( $plugin_data['_sitewide'] ); // If no text domain is defined fall back to the plugin slug. if ( ! $plugin_data['TextDomain'] ) { $plugin_slug = dirname( plugin_basename( $plugin_file ) ); if ( '.' !== $plugin_slug && ! str_contains( $plugin_slug, '/' ) ) { $plugin_data['TextDomain'] = $plugin_slug; } } if ( $markup || $translate ) { $plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate ); } else { $plugin_data['Title'] = $plugin_data['Name']; $plugin_data['AuthorName'] = $plugin_data['Author']; } return $plugin_data; } /** * Sanitizes plugin data, optionally adds markup, optionally translates. * * @since 2.7.0 * * @see get_plugin_data() * * @access private * * @param string $plugin_file Path to the main plugin file. * @param array $plugin_data An array of plugin data. See get_plugin_data(). * @param bool $markup Optional. If the returned data should have HTML markup applied. * Default true. * @param bool $translate Optional. If the returned data should be translated. Default true. * @return array Plugin data. Values will be empty if not supplied by the plugin. * See get_plugin_data() for the list of possible values. */ function _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup = true, $translate = true ) { // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path. $plugin_file = plugin_basename( $plugin_file ); // Translate fields. if ( $translate ) { $textdomain = $plugin_data['TextDomain']; if ( $textdomain ) { if ( ! is_textdomain_loaded( $textdomain ) ) { if ( $plugin_data['DomainPath'] ) { load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) . $plugin_data['DomainPath'] ); } else { load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) ); } } } elseif ( 'hello.php' === basename( $plugin_file ) ) { $textdomain = 'default'; } if ( $textdomain ) { foreach ( array( 'Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version' ) as $field ) { if ( ! empty( $plugin_data[ $field ] ) ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain $plugin_data[ $field ] = translate( $plugin_data[ $field ], $textdomain ); } } } } // Sanitize fields. $allowed_tags_in_links = array( 'abbr' => array( 'title' => true ), 'acronym' => array( 'title' => true ), 'code' => true, 'em' => true, 'strong' => true, ); $allowed_tags = $allowed_tags_in_links; $allowed_tags['a'] = array( 'href' => true, 'title' => true, ); /* * Name is marked up inside tags. Don't allow these. * Author is too, but some plugins have used here (omitting Author URI). */ $plugin_data['Name'] = wp_kses( $plugin_data['Name'], $allowed_tags_in_links ); $plugin_data['Author'] = wp_kses( $plugin_data['Author'], $allowed_tags ); $plugin_data['Description'] = wp_kses( $plugin_data['Description'], $allowed_tags ); $plugin_data['Version'] = wp_kses( $plugin_data['Version'], $allowed_tags ); $plugin_data['PluginURI'] = esc_url( $plugin_data['PluginURI'] ); $plugin_data['AuthorURI'] = esc_url( $plugin_data['AuthorURI'] ); $plugin_data['Title'] = $plugin_data['Name']; $plugin_data['AuthorName'] = $plugin_data['Author']; // Apply markup. if ( $markup ) { if ( $plugin_data['PluginURI'] && $plugin_data['Name'] ) { $plugin_data['Title'] = '' . $plugin_data['Name'] . ''; } if ( $plugin_data['AuthorURI'] && $plugin_data['Author'] ) { $plugin_data['Author'] = '' . $plugin_data['Author'] . ''; } $plugin_data['Description'] = wptexturize( $plugin_data['Description'] ); if ( $plugin_data['Author'] ) { $plugin_data['Description'] .= sprintf( /* translators: %s: Plugin author. */ ' ' . __( 'By %s.' ) . '', $plugin_data['Author'] ); } } return $plugin_data; } /** * Gets a list of a plugin's files. * * @since 2.8.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return string[] Array of file names relative to the plugin root. */ function get_plugin_files( $plugin ) { $plugin_file = WP_PLUGIN_DIR . '/' . $plugin; $dir = dirname( $plugin_file ); $plugin_files = array( plugin_basename( $plugin_file ) ); if ( is_dir( $dir ) && WP_PLUGIN_DIR !== $dir ) { /** * Filters the array of excluded directories and files while scanning the folder. * * @since 4.9.0 * * @param string[] $exclusions Array of excluded directories and files. */ $exclusions = (array) apply_filters( 'plugin_files_exclusions', array( 'CVS', 'node_modules', 'vendor', 'bower_components' ) ); $list_files = list_files( $dir, 100, $exclusions ); $list_files = array_map( 'plugin_basename', $list_files ); $plugin_files = array_merge( $plugin_files, $list_files ); $plugin_files = array_values( array_unique( $plugin_files ) ); } return $plugin_files; } /** * Checks the plugins directory and retrieve all plugin files with plugin data. * * WordPress only supports plugin files in the base plugins directory * (wp-content/plugins) and in one directory above the plugins directory * (wp-content/plugins/my-plugin). The file it looks for has the plugin data * and must be found in those two locations. It is recommended to keep your * plugin files in their own directories. * * The file with the plugin data is the file that will be included and therefore * needs to have the main execution for the plugin. This does not mean * everything must be contained in the file and it is recommended that the file * be split for maintainability. Keep everything in one file for extreme * optimization purposes. * * @since 1.5.0 * * @param string $plugin_folder Optional. Relative path to single plugin folder. * @return array[] Array of arrays of plugin data, keyed by plugin file name. See get_plugin_data(). */ function get_plugins( $plugin_folder = '' ) { $cache_plugins = wp_cache_get( 'plugins', 'plugins' ); if ( ! $cache_plugins ) { $cache_plugins = array(); } if ( isset( $cache_plugins[ $plugin_folder ] ) ) { return $cache_plugins[ $plugin_folder ]; } $wp_plugins = array(); $plugin_root = WP_PLUGIN_DIR; if ( ! empty( $plugin_folder ) ) { $plugin_root .= $plugin_folder; } // Files in wp-content/plugins directory. $plugins_dir = @opendir( $plugin_root ); $plugin_files = array(); if ( $plugins_dir ) { while ( ( $file = readdir( $plugins_dir ) ) !== false ) { if ( str_starts_with( $file, '.' ) ) { continue; } if ( is_dir( $plugin_root . '/' . $file ) ) { $plugins_subdir = @opendir( $plugin_root . '/' . $file ); if ( $plugins_subdir ) { while ( ( $subfile = readdir( $plugins_subdir ) ) !== false ) { if ( str_starts_with( $subfile, '.' ) ) { continue; } if ( str_ends_with( $subfile, '.php' ) ) { $plugin_files[] = "$file/$subfile"; } } closedir( $plugins_subdir ); } } elseif ( str_ends_with( $file, '.php' ) ) { $plugin_files[] = $file; } } closedir( $plugins_dir ); } if ( empty( $plugin_files ) ) { return $wp_plugins; } foreach ( $plugin_files as $plugin_file ) { if ( ! is_readable( "$plugin_root/$plugin_file" ) ) { continue; } // Do not apply markup/translate as it will be cached. $plugin_data = get_plugin_data( "$plugin_root/$plugin_file", false, false ); if ( empty( $plugin_data['Name'] ) ) { continue; } $wp_plugins[ plugin_basename( $plugin_file ) ] = $plugin_data; } uasort( $wp_plugins, '_sort_uname_callback' ); $cache_plugins[ $plugin_folder ] = $wp_plugins; wp_cache_set( 'plugins', $cache_plugins, 'plugins' ); return $wp_plugins; } /** * Checks the mu-plugins directory and retrieve all mu-plugin files with any plugin data. * * WordPress only includes mu-plugin files in the base mu-plugins directory (wp-content/mu-plugins). * * @since 3.0.0 * @return array[] Array of arrays of mu-plugin data, keyed by plugin file name. See get_plugin_data(). */ function get_mu_plugins() { $wp_plugins = array(); $plugin_files = array(); if ( ! is_dir( WPMU_PLUGIN_DIR ) ) { return $wp_plugins; } // Files in wp-content/mu-plugins directory. $plugins_dir = @opendir( WPMU_PLUGIN_DIR ); if ( $plugins_dir ) { while ( ( $file = readdir( $plugins_dir ) ) !== false ) { if ( str_ends_with( $file, '.php' ) ) { $plugin_files[] = $file; } } } else { return $wp_plugins; } closedir( $plugins_dir ); if ( empty( $plugin_files ) ) { return $wp_plugins; } foreach ( $plugin_files as $plugin_file ) { if ( ! is_readable( WPMU_PLUGIN_DIR . "/$plugin_file" ) ) { continue; } // Do not apply markup/translate as it will be cached. $plugin_data = get_plugin_data( WPMU_PLUGIN_DIR . "/$plugin_file", false, false ); if ( empty( $plugin_data['Name'] ) ) { $plugin_data['Name'] = $plugin_file; } $wp_plugins[ $plugin_file ] = $plugin_data; } if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php' ) <= 30 ) { // Silence is golden. unset( $wp_plugins['index.php'] ); } uasort( $wp_plugins, '_sort_uname_callback' ); return $wp_plugins; } /** * Declares a callback to sort array by a 'Name' key. * * @since 3.1.0 * * @access private * * @param array $a array with 'Name' key. * @param array $b array with 'Name' key. * @return int Return 0 or 1 based on two string comparison. */ function _sort_uname_callback( $a, $b ) { return strnatcasecmp( $a['Name'], $b['Name'] ); } /** * Checks the wp-content directory and retrieve all drop-ins with any plugin data. * * @since 3.0.0 * @return array[] Array of arrays of dropin plugin data, keyed by plugin file name. See get_plugin_data(). */ function get_dropins() { $dropins = array(); $plugin_files = array(); $_dropins = _get_dropins(); // Files in wp-content directory. $plugins_dir = @opendir( WP_CONTENT_DIR ); if ( $plugins_dir ) { while ( ( $file = readdir( $plugins_dir ) ) !== false ) { if ( isset( $_dropins[ $file ] ) ) { $plugin_files[] = $file; } } } else { return $dropins; } closedir( $plugins_dir ); if ( empty( $plugin_files ) ) { return $dropins; } foreach ( $plugin_files as $plugin_file ) { if ( ! is_readable( WP_CONTENT_DIR . "/$plugin_file" ) ) { continue; } // Do not apply markup/translate as it will be cached. $plugin_data = get_plugin_data( WP_CONTENT_DIR . "/$plugin_file", false, false ); if ( empty( $plugin_data['Name'] ) ) { $plugin_data['Name'] = $plugin_file; } $dropins[ $plugin_file ] = $plugin_data; } uksort( $dropins, 'strnatcasecmp' ); return $dropins; } /** * Returns drop-in plugins that WordPress uses. * * Includes Multisite drop-ins only when is_multisite() * * @since 3.0.0 * * @return array[] { * Key is file name. The value is an array of data about the drop-in. * * @type array ...$0 { * Data about the drop-in. * * @type string $0 The purpose of the drop-in. * @type string|true $1 Name of the constant that must be true for the drop-in * to be used, or true if no constant is required. * } * } */ function _get_dropins() { $dropins = array( 'advanced-cache.php' => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ), // WP_CACHE 'db.php' => array( __( 'Custom database class.' ), true ), // Auto on load. 'db-error.php' => array( __( 'Custom database error message.' ), true ), // Auto on error. 'install.php' => array( __( 'Custom installation script.' ), true ), // Auto on installation. 'maintenance.php' => array( __( 'Custom maintenance message.' ), true ), // Auto on maintenance. 'object-cache.php' => array( __( 'External object cache.' ), true ), // Auto on load. 'php-error.php' => array( __( 'Custom PHP error message.' ), true ), // Auto on error. 'fatal-error-handler.php' => array( __( 'Custom PHP fatal error handler.' ), true ), // Auto on error. ); if ( is_multisite() ) { $dropins['sunrise.php'] = array( __( 'Executed before Multisite is loaded.' ), 'SUNRISE' ); // SUNRISE $dropins['blog-deleted.php'] = array( __( 'Custom site deleted message.' ), true ); // Auto on deleted blog. $dropins['blog-inactive.php'] = array( __( 'Custom site inactive message.' ), true ); // Auto on inactive blog. $dropins['blog-suspended.php'] = array( __( 'Custom site suspended message.' ), true ); // Auto on archived or spammed blog. } return $dropins; } /** * Determines whether a plugin is active. * * Only plugins installed in the plugins/ folder can be active. * * Plugins in the mu-plugins/ folder can't be "activated," so this function will * return false for those plugins. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ * Conditional Tags} article in the Theme Developer Handbook. * * @since 2.5.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return bool True, if in the active plugins list. False, not in the list. */ function is_plugin_active( $plugin ) { return in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) || is_plugin_active_for_network( $plugin ); } /** * Determines whether the plugin is inactive. * * Reverse of is_plugin_active(). Used as a callback. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ * Conditional Tags} article in the Theme Developer Handbook. * * @since 3.1.0 * * @see is_plugin_active() * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return bool True if inactive. False if active. */ function is_plugin_inactive( $plugin ) { return ! is_plugin_active( $plugin ); } /** * Determines whether the plugin is active for the entire network. * * Only plugins installed in the plugins/ folder can be active. * * Plugins in the mu-plugins/ folder can't be "activated," so this function will * return false for those plugins. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ * Conditional Tags} article in the Theme Developer Handbook. * * @since 3.0.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return bool True if active for the network, otherwise false. */ function is_plugin_active_for_network( $plugin ) { if ( ! is_multisite() ) { return false; } $plugins = get_site_option( 'active_sitewide_plugins' ); if ( isset( $plugins[ $plugin ] ) ) { return true; } return false; } /** * Checks for "Network: true" in the plugin header to see if this should * be activated only as a network wide plugin. The plugin would also work * when Multisite is not enabled. * * Checks for "Site Wide Only: true" for backward compatibility. * * @since 3.0.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return bool True if plugin is network only, false otherwise. */ function is_network_only_plugin( $plugin ) { $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); if ( $plugin_data ) { return $plugin_data['Network']; } return false; } /** * Attempts activation of plugin in a "sandbox" and redirects on success. * * A plugin that is already activated will not attempt to be activated again. * * The way it works is by setting the redirection to the error before trying to * include the plugin file. If the plugin fails, then the redirection will not * be overwritten with the success message. Also, the options will not be * updated and the activation hook will not be called on plugin error. * * It should be noted that in no way the below code will actually prevent errors * within the file. The code should not be used elsewhere to replicate the * "sandbox", which uses redirection to work. * {@source 13 1} * * If any errors are found or text is outputted, then it will be captured to * ensure that the success redirection will update the error redirection. * * @since 2.5.0 * @since 5.2.0 Test for WordPress version and PHP version compatibility. * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param string $redirect Optional. URL to redirect to. * @param bool $network_wide Optional. Whether to enable the plugin for all sites in the network * or just the current site. Multisite only. Default false. * @param bool $silent Optional. Whether to prevent calling activation hooks. Default false. * @return null|WP_Error Null on success, WP_Error on invalid file. */ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silent = false ) { $plugin = plugin_basename( trim( $plugin ) ); if ( is_multisite() && ( $network_wide || is_network_only_plugin( $plugin ) ) ) { $network_wide = true; $current = get_site_option( 'active_sitewide_plugins', array() ); $_GET['networkwide'] = 1; // Back compat for plugins looking for this value. } else { $current = get_option( 'active_plugins', array() ); } $valid = validate_plugin( $plugin ); if ( is_wp_error( $valid ) ) { return $valid; } $requirements = validate_plugin_requirements( $plugin ); if ( is_wp_error( $requirements ) ) { return $requirements; } if ( $network_wide && ! isset( $current[ $plugin ] ) || ! $network_wide && ! in_array( $plugin, $current, true ) ) { if ( ! empty( $redirect ) ) { // We'll override this later if the plugin can be included without fatal error. wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-activation-error_' . $plugin ), $redirect ) ); } ob_start(); // Load the plugin to test whether it throws any errors. plugin_sandbox_scrape( $plugin ); if ( ! $silent ) { /** * Fires before a plugin is activated. * * If a plugin is silently activated (such as during an update), * this hook does not fire. * * @since 2.9.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param bool $network_wide Whether to enable the plugin for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( 'activate_plugin', $plugin, $network_wide ); /** * Fires as a specific plugin is being activated. * * This hook is the "activation" hook used internally by register_activation_hook(). * The dynamic portion of the hook name, `$plugin`, refers to the plugin basename. * * If a plugin is silently activated (such as during an update), this hook does not fire. * * @since 2.0.0 * * @param bool $network_wide Whether to enable the plugin for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( "activate_{$plugin}", $network_wide ); } if ( $network_wide ) { $current = get_site_option( 'active_sitewide_plugins', array() ); $current[ $plugin ] = time(); update_site_option( 'active_sitewide_plugins', $current ); } else { $current = get_option( 'active_plugins', array() ); $current[] = $plugin; sort( $current ); update_option( 'active_plugins', $current ); } if ( ! $silent ) { /** * Fires after a plugin has been activated. * * If a plugin is silently activated (such as during an update), * this hook does not fire. * * @since 2.9.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param bool $network_wide Whether to enable the plugin for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( 'activated_plugin', $plugin, $network_wide ); } if ( ob_get_length() > 0 ) { $output = ob_get_clean(); return new WP_Error( 'unexpected_output', __( 'The plugin generated unexpected output.' ), $output ); } ob_end_clean(); } return null; } /** * Deactivates a single plugin or multiple plugins. * * The deactivation hook is disabled by the plugin upgrader by using the $silent * parameter. * * @since 2.5.0 * * @param string|string[] $plugins Single plugin or list of plugins to deactivate. * @param bool $silent Prevent calling deactivation hooks. Default false. * @param bool|null $network_wide Whether to deactivate the plugin for all sites in the network. * A value of null will deactivate plugins for both the network * and the current site. Multisite only. Default null. */ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { if ( is_multisite() ) { $network_current = get_site_option( 'active_sitewide_plugins', array() ); } $current = get_option( 'active_plugins', array() ); $do_blog = false; $do_network = false; foreach ( (array) $plugins as $plugin ) { $plugin = plugin_basename( trim( $plugin ) ); if ( ! is_plugin_active( $plugin ) ) { continue; } $network_deactivating = ( false !== $network_wide ) && is_plugin_active_for_network( $plugin ); if ( ! $silent ) { /** * Fires before a plugin is deactivated. * * If a plugin is silently deactivated (such as during an update), * this hook does not fire. * * @since 2.9.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( 'deactivate_plugin', $plugin, $network_deactivating ); } if ( false !== $network_wide ) { if ( is_plugin_active_for_network( $plugin ) ) { $do_network = true; unset( $network_current[ $plugin ] ); } elseif ( $network_wide ) { continue; } } if ( true !== $network_wide ) { $key = array_search( $plugin, $current, true ); if ( false !== $key ) { $do_blog = true; unset( $current[ $key ] ); } } if ( $do_blog && wp_is_recovery_mode() ) { list( $extension ) = explode( '/', $plugin ); wp_paused_plugins()->delete( $extension ); } if ( ! $silent ) { /** * Fires as a specific plugin is being deactivated. * * This hook is the "deactivation" hook used internally by register_deactivation_hook(). * The dynamic portion of the hook name, `$plugin`, refers to the plugin basename. * * If a plugin is silently deactivated (such as during an update), this hook does not fire. * * @since 2.0.0 * * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( "deactivate_{$plugin}", $network_deactivating ); /** * Fires after a plugin is deactivated. * * If a plugin is silently deactivated (such as during an update), * this hook does not fire. * * @since 2.9.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network * or just the current site. Multisite only. Default false. */ do_action( 'deactivated_plugin', $plugin, $network_deactivating ); } } if ( $do_blog ) { update_option( 'active_plugins', $current ); } if ( $do_network ) { update_site_option( 'active_sitewide_plugins', $network_current ); } } /** * Activates multiple plugins. * * When WP_Error is returned, it does not mean that one of the plugins had * errors. It means that one or more of the plugin file paths were invalid. * * The execution will be halted as soon as one of the plugins has an error. * * @since 2.6.0 * * @param string|string[] $plugins Single plugin or list of plugins to activate. * @param string $redirect Redirect to page after successful activation. * @param bool $network_wide Whether to enable the plugin for all sites in the network. * Default false. * @param bool $silent Prevent calling activation hooks. Default false. * @return true|WP_Error True when finished or WP_Error if there were errors during a plugin activation. */ function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) { if ( ! is_array( $plugins ) ) { $plugins = array( $plugins ); } $errors = array(); foreach ( $plugins as $plugin ) { if ( ! empty( $redirect ) ) { $redirect = add_query_arg( 'plugin', $plugin, $redirect ); } $result = activate_plugin( $plugin, $redirect, $network_wide, $silent ); if ( is_wp_error( $result ) ) { $errors[ $plugin ] = $result; } } if ( ! empty( $errors ) ) { return new WP_Error( 'plugins_invalid', __( 'One of the plugins is invalid.' ), $errors ); } return true; } /** * Removes directory and files of a plugin for a list of plugins. * * @since 2.6.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string[] $plugins List of plugin paths to delete, relative to the plugins directory. * @param string $deprecated Not used. * @return bool|null|WP_Error True on success, false if `$plugins` is empty, `WP_Error` on failure. * `null` if filesystem credentials are required to proceed. */ function delete_plugins( $plugins, $deprecated = '' ) { global $wp_filesystem; if ( empty( $plugins ) ) { return false; } $checked = array(); foreach ( $plugins as $plugin ) { $checked[] = 'checked[]=' . $plugin; } $url = wp_nonce_url( 'plugins.php?action=delete-selected&verify-delete=1&' . implode( '&', $checked ), 'bulk-plugins' ); ob_start(); $credentials = request_filesystem_credentials( $url ); $data = ob_get_clean(); if ( false === $credentials ) { if ( ! empty( $data ) ) { require_once ABSPATH . 'wp-admin/admin-header.php'; echo $data; require_once ABSPATH . 'wp-admin/admin-footer.php'; exit; } return null; } if ( ! WP_Filesystem( $credentials ) ) { ob_start(); // Failed to connect. Error and request again. request_filesystem_credentials( $url, '', true ); $data = ob_get_clean(); if ( ! empty( $data ) ) { require_once ABSPATH . 'wp-admin/admin-header.php'; echo $data; require_once ABSPATH . 'wp-admin/admin-footer.php'; exit; } return null; } if ( ! is_object( $wp_filesystem ) ) { return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); } if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors ); } // Get the base plugin folder. $plugins_dir = $wp_filesystem->wp_plugins_dir(); if ( empty( $plugins_dir ) ) { return new WP_Error( 'fs_no_plugins_dir', __( 'Unable to locate WordPress plugin directory.' ) ); } $plugins_dir = trailingslashit( $plugins_dir ); $plugin_translations = wp_get_installed_translations( 'plugins' ); $errors = array(); foreach ( $plugins as $plugin_file ) { // Run Uninstall hook. if ( is_uninstallable_plugin( $plugin_file ) ) { uninstall_plugin( $plugin_file ); } /** * Fires immediately before a plugin deletion attempt. * * @since 4.4.0 * * @param string $plugin_file Path to the plugin file relative to the plugins directory. */ do_action( 'delete_plugin', $plugin_file ); $this_plugin_dir = trailingslashit( dirname( $plugins_dir . $plugin_file ) ); /* * If plugin is in its own directory, recursively delete the directory. * Base check on if plugin includes directory separator AND that it's not the root plugin folder. */ if ( strpos( $plugin_file, '/' ) && $this_plugin_dir !== $plugins_dir ) { $deleted = $wp_filesystem->delete( $this_plugin_dir, true ); } else { $deleted = $wp_filesystem->delete( $plugins_dir . $plugin_file ); } /** * Fires immediately after a plugin deletion attempt. * * @since 4.4.0 * * @param string $plugin_file Path to the plugin file relative to the plugins directory. * @param bool $deleted Whether the plugin deletion was successful. */ do_action( 'deleted_plugin', $plugin_file, $deleted ); if ( ! $deleted ) { $errors[] = $plugin_file; continue; } $plugin_slug = dirname( $plugin_file ); if ( 'hello.php' === $plugin_file ) { $plugin_slug = 'hello-dolly'; } // Remove language files, silently. if ( '.' !== $plugin_slug && ! empty( $plugin_translations[ $plugin_slug ] ) ) { $translations = $plugin_translations[ $plugin_slug ]; foreach ( $translations as $translation => $data ) { $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.po' ); $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.mo' ); $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.l10n.php' ); $json_translation_files = glob( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '-*.json' ); if ( $json_translation_files ) { array_map( array( $wp_filesystem, 'delete' ), $json_translation_files ); } } } } // Remove deleted plugins from the plugin updates list. $current = get_site_transient( 'update_plugins' ); if ( $current ) { // Don't remove the plugins that weren't deleted. $deleted = array_diff( $plugins, $errors ); foreach ( $deleted as $plugin_file ) { unset( $current->response[ $plugin_file ] ); } set_site_transient( 'update_plugins', $current ); } if ( ! empty( $errors ) ) { if ( 1 === count( $errors ) ) { /* translators: %s: Plugin filename. */ $message = __( 'Could not fully remove the plugin %s.' ); } else { /* translators: %s: Comma-separated list of plugin filenames. */ $message = __( 'Could not fully remove the plugins %s.' ); } return new WP_Error( 'could_not_remove_plugin', sprintf( $message, implode( ', ', $errors ) ) ); } return true; } /** * Validates active plugins. * * Validate all active plugins, deactivates invalid and * returns an array of deactivated ones. * * @since 2.5.0 * @return WP_Error[] Array of plugin errors keyed by plugin file name. */ function validate_active_plugins() { $plugins = get_option( 'active_plugins', array() ); // Validate vartype: array. if ( ! is_array( $plugins ) ) { update_option( 'active_plugins', array() ); $plugins = array(); } if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { $network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() ); $plugins = array_merge( $plugins, array_keys( $network_plugins ) ); } if ( empty( $plugins ) ) { return array(); } $invalid = array(); // Invalid plugins get deactivated. foreach ( $plugins as $plugin ) { $result = validate_plugin( $plugin ); if ( is_wp_error( $result ) ) { $invalid[ $plugin ] = $result; deactivate_plugins( $plugin, true ); } } return $invalid; } /** * Validates the plugin path. * * Checks that the main plugin file exists and is a valid plugin. See validate_file(). * * @since 2.5.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return int|WP_Error 0 on success, WP_Error on failure. */ function validate_plugin( $plugin ) { if ( validate_file( $plugin ) ) { return new WP_Error( 'plugin_invalid', __( 'Invalid plugin path.' ) ); } if ( ! file_exists( WP_PLUGIN_DIR . '/' . $plugin ) ) { return new WP_Error( 'plugin_not_found', __( 'Plugin file does not exist.' ) ); } $installed_plugins = get_plugins(); if ( ! isset( $installed_plugins[ $plugin ] ) ) { return new WP_Error( 'no_plugin_header', __( 'The plugin does not have a valid header.' ) ); } return 0; } /** * Validates the plugin requirements for WordPress version and PHP version. * * Uses the information from `Requires at least`, `Requires PHP` and `Requires Plugins` headers * defined in the plugin's main PHP file. * * @since 5.2.0 * @since 5.3.0 Added support for reading the headers from the plugin's * main PHP file, with `readme.txt` as a fallback. * @since 5.8.0 Removed support for using `readme.txt` as a fallback. * @since 6.5.0 Added support for the 'Requires Plugins' header. * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return true|WP_Error True if requirements are met, WP_Error on failure. */ function validate_plugin_requirements( $plugin ) { $plugin_headers = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); $requirements = array( 'requires' => ! empty( $plugin_headers['RequiresWP'] ) ? $plugin_headers['RequiresWP'] : '', 'requires_php' => ! empty( $plugin_headers['RequiresPHP'] ) ? $plugin_headers['RequiresPHP'] : '', 'requires_plugins' => ! empty( $plugin_headers['RequiresPlugins'] ) ? $plugin_headers['RequiresPlugins'] : '', ); $compatible_wp = is_wp_version_compatible( $requirements['requires'] ); $compatible_php = is_php_version_compatible( $requirements['requires_php'] ); $php_update_message = '

        ' . sprintf( /* translators: %s: URL to Update PHP page. */ __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); $annotation = wp_get_update_php_annotation(); if ( $annotation ) { $php_update_message .= '

        ' . $annotation . ''; } if ( ! $compatible_wp && ! $compatible_php ) { return new WP_Error( 'plugin_wp_php_incompatible', '

        ' . sprintf( /* translators: 1: Current WordPress version, 2: Current PHP version, 3: Plugin name, 4: Required WordPress version, 5: Required PHP version. */ _x( 'Error: Current versions of WordPress (%1$s) and PHP (%2$s) do not meet minimum requirements for %3$s. The plugin requires WordPress %4$s and PHP %5$s.', 'plugin' ), get_bloginfo( 'version' ), PHP_VERSION, $plugin_headers['Name'], $requirements['requires'], $requirements['requires_php'] ) . $php_update_message . '

        ' ); } elseif ( ! $compatible_php ) { return new WP_Error( 'plugin_php_incompatible', '

        ' . sprintf( /* translators: 1: Current PHP version, 2: Plugin name, 3: Required PHP version. */ _x( 'Error: Current PHP version (%1$s) does not meet minimum requirements for %2$s. The plugin requires PHP %3$s.', 'plugin' ), PHP_VERSION, $plugin_headers['Name'], $requirements['requires_php'] ) . $php_update_message . '

        ' ); } elseif ( ! $compatible_wp ) { return new WP_Error( 'plugin_wp_incompatible', '

        ' . sprintf( /* translators: 1: Current WordPress version, 2: Plugin name, 3: Required WordPress version. */ _x( 'Error: Current WordPress version (%1$s) does not meet minimum requirements for %2$s. The plugin requires WordPress %3$s.', 'plugin' ), get_bloginfo( 'version' ), $plugin_headers['Name'], $requirements['requires'] ) . '

        ' ); } WP_Plugin_Dependencies::initialize(); if ( WP_Plugin_Dependencies::has_unmet_dependencies( $plugin ) ) { $dependency_names = WP_Plugin_Dependencies::get_dependency_names( $plugin ); $unmet_dependencies = array(); $unmet_dependency_names = array(); foreach ( $dependency_names as $dependency => $dependency_name ) { $dependency_file = WP_Plugin_Dependencies::get_dependency_filepath( $dependency ); if ( false === $dependency_file ) { $unmet_dependencies['not_installed'][ $dependency ] = $dependency_name; $unmet_dependency_names[] = $dependency_name; } elseif ( is_plugin_inactive( $dependency_file ) ) { $unmet_dependencies['inactive'][ $dependency ] = $dependency_name; $unmet_dependency_names[] = $dependency_name; } } $error_message = sprintf( /* translators: 1: Plugin name, 2: Number of plugins, 3: A comma-separated list of plugin names. */ _n( 'Error: %1$s requires %2$d plugin to be installed and activated: %3$s.', 'Error: %1$s requires %2$d plugins to be installed and activated: %3$s.', count( $unmet_dependency_names ) ), $plugin_headers['Name'], count( $unmet_dependency_names ), implode( wp_get_list_item_separator(), $unmet_dependency_names ) ); if ( is_multisite() ) { if ( current_user_can( 'manage_network_plugins' ) ) { $error_message .= ' ' . sprintf( /* translators: %s: Link to the plugins page. */ __( 'Manage plugins.' ), esc_url( network_admin_url( 'plugins.php' ) ) ); } else { $error_message .= ' ' . __( 'Please contact your network administrator.' ); } } else { $error_message .= ' ' . sprintf( /* translators: %s: Link to the plugins page. */ __( 'Manage plugins.' ), esc_url( admin_url( 'plugins.php' ) ) ); } return new WP_Error( 'plugin_missing_dependencies', "

        {$error_message}

        ", $unmet_dependencies ); } /** * Filters the plugin requirement validation response. * * If a plugin fails due to a Core-provided validation (incompatible WP, PHP versions), this * filter will not fire. A WP_Error response will already be returned. * * This filter is intended to add additional validation steps by site administrators. * * @since 6.9.0 * * @param bool|WP_Error $met_requirements True if the plugin meets requirements, WP_Error if not. * @param string $plugin Path to the plugin file relative to the plugins directory. */ return apply_filters( 'validate_plugin_requirements', true, $plugin ); } /** * Determines whether the plugin can be uninstalled. * * @since 2.7.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return bool Whether plugin can be uninstalled. */ function is_uninstallable_plugin( $plugin ) { $file = plugin_basename( $plugin ); $uninstallable_plugins = (array) get_option( 'uninstall_plugins' ); if ( isset( $uninstallable_plugins[ $file ] ) || file_exists( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ) ) { return true; } return false; } /** * Uninstalls a single plugin. * * Calls the uninstall hook, if it is available. * * @since 2.7.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return true|void True if a plugin's uninstall.php file has been found and included. * Void otherwise. */ function uninstall_plugin( $plugin ) { $file = plugin_basename( $plugin ); $uninstallable_plugins = (array) get_option( 'uninstall_plugins' ); /** * Fires in uninstall_plugin() immediately before the plugin is uninstalled. * * @since 4.5.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @param array $uninstallable_plugins Uninstallable plugins. */ do_action( 'pre_uninstall_plugin', $plugin, $uninstallable_plugins ); if ( file_exists( WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php' ) ) { if ( isset( $uninstallable_plugins[ $file ] ) ) { unset( $uninstallable_plugins[ $file ] ); update_option( 'uninstall_plugins', $uninstallable_plugins ); } unset( $uninstallable_plugins ); define( 'WP_UNINSTALL_PLUGIN', $file ); wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); include_once WP_PLUGIN_DIR . '/' . dirname( $file ) . '/uninstall.php'; return true; } if ( isset( $uninstallable_plugins[ $file ] ) ) { $callable = $uninstallable_plugins[ $file ]; unset( $uninstallable_plugins[ $file ] ); update_option( 'uninstall_plugins', $uninstallable_plugins ); unset( $uninstallable_plugins ); wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); include_once WP_PLUGIN_DIR . '/' . $file; add_action( "uninstall_{$file}", $callable ); /** * Fires in uninstall_plugin() once the plugin has been uninstalled. * * The action concatenates the 'uninstall_' prefix with the basename of the * plugin passed to uninstall_plugin() to create a dynamically-named action. * * @since 2.7.0 */ do_action( "uninstall_{$file}" ); } } // // Menu. // /** * Adds a top-level menu page. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 1.5.0 * * @global array $menu * @global array $admin_page_hooks * @global array $_registered_pages * @global array $_parent_pages * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by. Should be unique for this menu page and only * include lowercase alphanumeric, dashes, and underscores characters to be compatible * with sanitize_key(). * @param callable $callback Optional. The function to be called to output the content for this page. * @param string $icon_url Optional. The URL to the icon to be used for this menu. * * Pass a base64-encoded SVG using a data URI, which will be colored to match * the color scheme. This should begin with 'data:image/svg+xml;base64,'. * * Pass the name of a Dashicons helper class to use a font icon, * e.g. 'dashicons-chart-pie'. * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. * @param int|float $position Optional. The position in the menu order this item should appear. * @return string The resulting page's hook_suffix. */ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $icon_url = '', $position = null ) { global $menu, $admin_page_hooks, $_registered_pages, $_parent_pages; $menu_slug = plugin_basename( $menu_slug ); $admin_page_hooks[ $menu_slug ] = sanitize_title( $menu_title ); $hookname = get_plugin_page_hookname( $menu_slug, '' ); if ( ! empty( $callback ) && ! empty( $hookname ) && current_user_can( $capability ) ) { add_action( $hookname, $callback ); } if ( empty( $icon_url ) ) { $icon_url = 'dashicons-admin-generic'; $icon_class = 'menu-icon-generic '; } else { $icon_url = set_url_scheme( $icon_url ); $icon_class = ''; } $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); if ( null !== $position && ! is_numeric( $position ) ) { _doing_it_wrong( __FUNCTION__, sprintf( /* translators: %s: add_menu_page() */ __( 'The seventh parameter passed to %s should be numeric representing menu position.' ), 'add_menu_page()' ), '6.0.0' ); $position = null; } if ( null === $position || ! is_numeric( $position ) ) { $menu[] = $new_menu; } elseif ( isset( $menu[ (string) $position ] ) ) { $collision_avoider = (int) base_convert( substr( md5( $menu_slug . $menu_title ), -4 ), 16, 10 ) * 0.00001; $position = (string) ( $position + $collision_avoider ); $menu[ $position ] = $new_menu; } else { /* * Cast menu position to a string. * * This allows for floats to be passed as the position. PHP will normally cast a float to an * integer value, this ensures the float retains its mantissa (positive fractional part). * * A string containing an integer value, eg "10", is treated as a numeric index. */ $position = (string) $position; $menu[ $position ] = $new_menu; } $_registered_pages[ $hookname ] = true; // No parent as top level. $_parent_pages[ $menu_slug ] = false; return $hookname; } /** * Adds a submenu page. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 1.5.0 * @since 5.3.0 Added the `$position` parameter. * * @global array $submenu * @global array $menu * @global array $_wp_real_parent_file * @global bool $_wp_submenu_nopriv * @global array $_registered_pages * @global array $_parent_pages * * @param string $parent_slug The slug name for the parent menu (or the file name of a standard * WordPress admin page). * @param string $page_title The text to be displayed in the title tags of the page when the menu * is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by. Should be unique for this menu * and only include lowercase alphanumeric, dashes, and underscores characters * to be compatible with sanitize_key(). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int|float $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { global $submenu, $menu, $_wp_real_parent_file, $_wp_submenu_nopriv, $_registered_pages, $_parent_pages; $menu_slug = plugin_basename( $menu_slug ); $parent_slug = plugin_basename( $parent_slug ); if ( isset( $_wp_real_parent_file[ $parent_slug ] ) ) { $parent_slug = $_wp_real_parent_file[ $parent_slug ]; } if ( ! current_user_can( $capability ) ) { $_wp_submenu_nopriv[ $parent_slug ][ $menu_slug ] = true; return false; } /* * If the parent doesn't already have a submenu, add a link to the parent * as the first item in the submenu. If the submenu file is the same as the * parent file someone is trying to link back to the parent manually. In * this case, don't automatically add a link back to avoid duplication. */ if ( ! isset( $submenu[ $parent_slug ] ) && $menu_slug !== $parent_slug ) { foreach ( (array) $menu as $parent_menu ) { if ( $parent_menu[2] === $parent_slug && current_user_can( $parent_menu[1] ) ) { $submenu[ $parent_slug ][] = array_slice( $parent_menu, 0, 4 ); } } } $new_sub_menu = array( $menu_title, $capability, $menu_slug, $page_title ); if ( null !== $position && ! is_numeric( $position ) ) { _doing_it_wrong( __FUNCTION__, sprintf( /* translators: %s: add_submenu_page() */ __( 'The seventh parameter passed to %s should be numeric representing menu position.' ), 'add_submenu_page()' ), '5.3.0' ); $position = null; } if ( null === $position || ( ! isset( $submenu[ $parent_slug ] ) || $position >= count( $submenu[ $parent_slug ] ) ) ) { $submenu[ $parent_slug ][] = $new_sub_menu; } else { // Test for a negative position. $position = max( $position, 0 ); if ( 0 === $position ) { // For negative or `0` positions, prepend the submenu. array_unshift( $submenu[ $parent_slug ], $new_sub_menu ); } else { $position = absint( $position ); // Grab all of the items before the insertion point. $before_items = array_slice( $submenu[ $parent_slug ], 0, $position, true ); // Grab all of the items after the insertion point. $after_items = array_slice( $submenu[ $parent_slug ], $position, null, true ); // Add the new item. $before_items[] = $new_sub_menu; // Merge the items. $submenu[ $parent_slug ] = array_merge( $before_items, $after_items ); } } // Sort the parent array. ksort( $submenu[ $parent_slug ] ); $hookname = get_plugin_page_hookname( $menu_slug, $parent_slug ); if ( ! empty( $callback ) && ! empty( $hookname ) ) { add_action( $hookname, $callback ); } $_registered_pages[ $hookname ] = true; /* * Backward-compatibility for plugins using add_management_page(). * See wp-admin/admin.php for redirect from edit.php to tools.php. */ if ( 'tools.php' === $parent_slug ) { $_registered_pages[ get_plugin_page_hookname( $menu_slug, 'edit.php' ) ] = true; } // No parent as top level. $_parent_pages[ $menu_slug ] = $parent_slug; return $hookname; } /** * Adds a submenu page to the Tools main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 1.5.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_management_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'tools.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Settings main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 1.5.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'options-general.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Appearance main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.0.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'themes.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Plugins main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 3.0.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'plugins.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Users/Profile main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.1.3 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { if ( current_user_can( 'edit_users' ) ) { $parent = 'users.php'; } else { $parent = 'profile.php'; } return add_submenu_page( $parent, $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Dashboard main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'index.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Posts main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'edit.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Media main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'upload.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Links main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'link-manager.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Pages main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Adds a submenu page to the Comments main menu. * * This function takes a capability which will be used to determine whether * or not a page is included in the menu. * * The function which is hooked in to handle the output of the page must check * that the user has the required capability as well. * * @since 2.7.0 * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. * @param string $capability The capability required for this menu to be displayed to the user. * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param callable $callback Optional. The function to be called to output the content for this page. * @param int $position Optional. The position in the menu order this item should appear. * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $callback = '', $position = null ) { return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $callback, $position ); } /** * Removes a top-level admin menu. * * Example usage: * * - `remove_menu_page( 'tools.php' )` * - `remove_menu_page( 'plugin_menu_slug' )` * * @since 3.1.0 * * @global array $menu * * @param string $menu_slug The slug of the menu. * @return array|false The removed menu on success, false if not found. */ function remove_menu_page( $menu_slug ) { global $menu; foreach ( $menu as $i => $item ) { if ( $menu_slug === $item[2] ) { unset( $menu[ $i ] ); return $item; } } return false; } /** * Removes an admin submenu. * * Example usage: * * - `remove_submenu_page( 'themes.php', 'nav-menus.php' )` * - `remove_submenu_page( 'tools.php', 'plugin_submenu_slug' )` * - `remove_submenu_page( 'plugin_menu_slug', 'plugin_submenu_slug' )` * * @since 3.1.0 * * @global array $submenu * * @param string $menu_slug The slug for the parent menu. * @param string $submenu_slug The slug of the submenu. * @return array|false The removed submenu on success, false if not found. */ function remove_submenu_page( $menu_slug, $submenu_slug ) { global $submenu; if ( ! isset( $submenu[ $menu_slug ] ) ) { return false; } foreach ( $submenu[ $menu_slug ] as $i => $item ) { if ( $submenu_slug === $item[2] ) { unset( $submenu[ $menu_slug ][ $i ] ); return $item; } } return false; } /** * Gets the URL to access a particular menu page based on the slug it was registered with. * * If the slug hasn't been registered properly, no URL will be returned. * * @since 3.0.0 * * @global array $_parent_pages * * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). * @param bool $display Optional. Whether or not to display the URL. Default true. * @return string The menu page URL. */ function menu_page_url( $menu_slug, $display = true ) { global $_parent_pages; if ( isset( $_parent_pages[ $menu_slug ] ) ) { $parent_slug = $_parent_pages[ $menu_slug ]; if ( $parent_slug && ! isset( $_parent_pages[ $parent_slug ] ) ) { $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) ); } else { $url = admin_url( 'admin.php?page=' . $menu_slug ); } } else { $url = ''; } $url = esc_url( $url ); if ( $display ) { echo $url; } return $url; } // // Pluggable Menu Support -- Private. // /** * Gets the parent file of the current admin page. * * @since 1.5.0 * * @global string $parent_file * @global array $menu * @global array $submenu * @global string $pagenow The filename of the current screen. * @global string $typenow The post type of the current screen. * @global string $plugin_page * @global array $_wp_real_parent_file * @global array $_wp_menu_nopriv * @global array $_wp_submenu_nopriv * * @param string $parent_page Optional. The slug name for the parent menu (or the file name * of a standard WordPress admin page). Default empty string. * @return string The parent file of the current admin page. */ function get_admin_page_parent( $parent_page = '' ) { global $parent_file, $menu, $submenu, $pagenow, $typenow, $plugin_page, $_wp_real_parent_file, $_wp_menu_nopriv, $_wp_submenu_nopriv; if ( ! empty( $parent_page ) && 'admin.php' !== $parent_page ) { return $_wp_real_parent_file[ $parent_page ] ?? $parent_page; } if ( 'admin.php' === $pagenow && isset( $plugin_page ) ) { foreach ( (array) $menu as $parent_menu ) { if ( $parent_menu[2] === $plugin_page ) { $parent_file = $plugin_page; return $_wp_real_parent_file[ $parent_file ] ?? $parent_file; } } if ( isset( $_wp_menu_nopriv[ $plugin_page ] ) ) { $parent_file = $plugin_page; return $_wp_real_parent_file[ $parent_file ] ?? $parent_file; } } if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $pagenow ][ $plugin_page ] ) ) { $parent_file = $pagenow; return $_wp_real_parent_file[ $parent_file ] ?? $parent_file; } foreach ( array_keys( (array) $submenu ) as $parent_page ) { foreach ( $submenu[ $parent_page ] as $submenu_array ) { if ( isset( $_wp_real_parent_file[ $parent_page ] ) ) { $parent_page = $_wp_real_parent_file[ $parent_page ]; } if ( ! empty( $typenow ) && "$pagenow?post_type=$typenow" === $submenu_array[2] ) { $parent_file = $parent_page; return $parent_page; } elseif ( empty( $typenow ) && $pagenow === $submenu_array[2] && ( empty( $parent_file ) || ! str_contains( $parent_file, '?' ) ) ) { $parent_file = $parent_page; return $parent_page; } elseif ( isset( $plugin_page ) && $plugin_page === $submenu_array[2] ) { $parent_file = $parent_page; return $parent_page; } } } if ( empty( $parent_file ) ) { $parent_file = ''; } return ''; } /** * Gets the title of the current admin page. * * @since 1.5.0 * * @global string $title The title of the current screen. * @global array $menu * @global array $submenu * @global string $pagenow The filename of the current screen. * @global string $typenow The post type of the current screen. * @global string $plugin_page * * @return string The title of the current admin page. */ function get_admin_page_title() { global $title, $menu, $submenu, $pagenow, $typenow, $plugin_page; if ( ! empty( $title ) ) { return $title; } $hook = get_plugin_page_hook( $plugin_page, $pagenow ); $parent = get_admin_page_parent(); $parent1 = $parent; if ( empty( $parent ) ) { foreach ( (array) $menu as $menu_array ) { if ( isset( $menu_array[3] ) ) { if ( $menu_array[2] === $pagenow ) { $title = $menu_array[3]; return $menu_array[3]; } elseif ( isset( $plugin_page ) && $plugin_page === $menu_array[2] && $hook === $menu_array[5] ) { $title = $menu_array[3]; return $menu_array[3]; } } else { $title = $menu_array[0]; return $title; } } } else { foreach ( array_keys( $submenu ) as $parent ) { foreach ( $submenu[ $parent ] as $submenu_array ) { if ( isset( $plugin_page ) && $plugin_page === $submenu_array[2] && ( $pagenow === $parent || $plugin_page === $parent || $plugin_page === $hook || 'admin.php' === $pagenow && $parent1 !== $submenu_array[2] || ! empty( $typenow ) && "$pagenow?post_type=$typenow" === $parent ) ) { $title = $submenu_array[3]; return $submenu_array[3]; } if ( $submenu_array[2] !== $pagenow || isset( $_GET['page'] ) ) { // Not the current page. continue; } if ( isset( $submenu_array[3] ) ) { $title = $submenu_array[3]; return $submenu_array[3]; } else { $title = $submenu_array[0]; return $title; } } } if ( empty( $title ) ) { foreach ( $menu as $menu_array ) { if ( isset( $plugin_page ) && $plugin_page === $menu_array[2] && 'admin.php' === $pagenow && $parent1 === $menu_array[2] ) { $title = $menu_array[3]; return $menu_array[3]; } } } } return $title; } /** * Gets the hook attached to the administrative page of a plugin. * * @since 1.5.0 * * @param string $plugin_page The slug name of the plugin page. * @param string $parent_page The slug name for the parent menu (or the file name of a standard * WordPress admin page). * @return string|null Hook attached to the plugin page, null otherwise. */ function get_plugin_page_hook( $plugin_page, $parent_page ) { $hook = get_plugin_page_hookname( $plugin_page, $parent_page ); if ( has_action( $hook ) ) { return $hook; } else { return null; } } /** * Gets the hook name for the administrative page of a plugin. * * @since 1.5.0 * * @global array $admin_page_hooks * * @param string $plugin_page The slug name of the plugin page. * @param string $parent_page The slug name for the parent menu (or the file name of a standard * WordPress admin page). * @return string Hook name for the plugin page. */ function get_plugin_page_hookname( $plugin_page, $parent_page ) { global $admin_page_hooks; $parent = get_admin_page_parent( $parent_page ); $page_type = 'admin'; if ( empty( $parent_page ) || 'admin.php' === $parent_page || isset( $admin_page_hooks[ $plugin_page ] ) ) { if ( isset( $admin_page_hooks[ $plugin_page ] ) ) { $page_type = 'toplevel'; } elseif ( isset( $admin_page_hooks[ $parent ] ) ) { $page_type = $admin_page_hooks[ $parent ]; } } elseif ( isset( $admin_page_hooks[ $parent ] ) ) { $page_type = $admin_page_hooks[ $parent ]; } $plugin_name = preg_replace( '!\.php!', '', $plugin_page ); return $page_type . '_page_' . $plugin_name; } /** * Determines whether the current user can access the current admin page. * * @since 1.5.0 * * @global string $pagenow The filename of the current screen. * @global array $menu * @global array $submenu * @global array $_wp_menu_nopriv * @global array $_wp_submenu_nopriv * @global string $plugin_page * @global array $_registered_pages * * @return bool True if the current user can access the admin page, false otherwise. */ function user_can_access_admin_page() { global $pagenow, $menu, $submenu, $_wp_menu_nopriv, $_wp_submenu_nopriv, $plugin_page, $_registered_pages; $parent = get_admin_page_parent(); if ( ! isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $parent ][ $pagenow ] ) ) { return false; } if ( isset( $plugin_page ) ) { if ( isset( $_wp_submenu_nopriv[ $parent ][ $plugin_page ] ) ) { return false; } $hookname = get_plugin_page_hookname( $plugin_page, $parent ); if ( ! isset( $_registered_pages[ $hookname ] ) ) { return false; } } if ( empty( $parent ) ) { if ( isset( $_wp_menu_nopriv[ $pagenow ] ) ) { return false; } if ( isset( $_wp_submenu_nopriv[ $pagenow ][ $pagenow ] ) ) { return false; } if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $pagenow ][ $plugin_page ] ) ) { return false; } if ( isset( $plugin_page ) && isset( $_wp_menu_nopriv[ $plugin_page ] ) ) { return false; } foreach ( array_keys( $_wp_submenu_nopriv ) as $key ) { if ( isset( $_wp_submenu_nopriv[ $key ][ $pagenow ] ) ) { return false; } if ( isset( $plugin_page ) && isset( $_wp_submenu_nopriv[ $key ][ $plugin_page ] ) ) { return false; } } return true; } if ( isset( $plugin_page ) && $plugin_page === $parent && isset( $_wp_menu_nopriv[ $plugin_page ] ) ) { return false; } if ( isset( $submenu[ $parent ] ) ) { foreach ( $submenu[ $parent ] as $submenu_array ) { if ( isset( $plugin_page ) && $submenu_array[2] === $plugin_page ) { return current_user_can( $submenu_array[1] ); } elseif ( $submenu_array[2] === $pagenow ) { return current_user_can( $submenu_array[1] ); } } } foreach ( $menu as $menu_array ) { if ( $menu_array[2] === $parent ) { return current_user_can( $menu_array[1] ); } } return true; } /* Allowed list functions */ /** * Refreshes the value of the allowed options list available via the 'allowed_options' hook. * * See the {@see 'allowed_options'} filter. * * @since 2.7.0 * @since 5.5.0 `$new_whitelist_options` was renamed to `$new_allowed_options`. * Please consider writing more inclusive code. * * @global array $new_allowed_options * * @param array $options * @return array Updated allowed options. */ function option_update_filter( $options ) { global $new_allowed_options; if ( is_array( $new_allowed_options ) ) { $options = add_allowed_options( $new_allowed_options, $options ); } return $options; } /** * Adds an array of options to the list of allowed options. * * @since 5.5.0 * * @global array $allowed_options * * @param array $new_options * @param string|array $options * @return array Updated allowed options. */ function add_allowed_options( $new_options, $options = '' ) { if ( '' === $options ) { global $allowed_options; } else { $allowed_options = $options; } foreach ( $new_options as $page => $keys ) { foreach ( $keys as $key ) { if ( ! isset( $allowed_options[ $page ] ) || ! is_array( $allowed_options[ $page ] ) ) { $allowed_options[ $page ] = array(); $allowed_options[ $page ][] = $key; } else { $pos = array_search( $key, $allowed_options[ $page ], true ); if ( false === $pos ) { $allowed_options[ $page ][] = $key; } } } } return $allowed_options; } /** * Removes a list of options from the allowed options list. * * @since 5.5.0 * * @global array $allowed_options * * @param array $del_options * @param string|array $options * @return array Updated allowed options. */ function remove_allowed_options( $del_options, $options = '' ) { if ( '' === $options ) { global $allowed_options; } else { $allowed_options = $options; } foreach ( $del_options as $page => $keys ) { foreach ( $keys as $key ) { if ( isset( $allowed_options[ $page ] ) && is_array( $allowed_options[ $page ] ) ) { $pos = array_search( $key, $allowed_options[ $page ], true ); if ( false !== $pos ) { unset( $allowed_options[ $page ][ $pos ] ); } } } } return $allowed_options; } /** * Outputs nonce, action, and option_page fields for a settings page. * * @since 2.7.0 * * @param string $option_group A settings group name. This should match the group name * used in register_setting(). */ function settings_fields( $option_group ) { echo ""; echo ''; wp_nonce_field( "$option_group-options" ); } /** * Clears the plugins cache used by get_plugins() and by default, the plugin updates cache. * * @since 3.7.0 * * @param bool $clear_update_cache Whether to clear the plugin updates cache. Default true. */ function wp_clean_plugins_cache( $clear_update_cache = true ) { if ( $clear_update_cache ) { delete_site_transient( 'update_plugins' ); } wp_cache_delete( 'plugins', 'plugins' ); } /** * Loads a given plugin attempt to generate errors. * * @since 3.0.0 * @since 4.4.0 Function was moved into the `wp-admin/includes/plugin.php` file. * * @param string $plugin Path to the plugin file relative to the plugins directory. */ function plugin_sandbox_scrape( $plugin ) { if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { define( 'WP_SANDBOX_SCRAPING', true ); } wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); include_once WP_PLUGIN_DIR . '/' . $plugin; } /** * Declares a helper function for adding content to the Privacy Policy Guide. * * Plugins and themes should suggest text for inclusion in the site's privacy policy. * The suggested text should contain information about any functionality that affects user privacy, * and will be shown on the Privacy Policy Guide screen. * * A plugin or theme can use this function multiple times as long as it will help to better present * the suggested policy content. For example modular plugins such as WooCommerse or Jetpack * can add or remove suggested content depending on the modules/extensions that are enabled. * For more information see the Plugin Handbook: * https://developer.wordpress.org/plugins/privacy/suggesting-text-for-the-site-privacy-policy/. * * The HTML contents of the `$policy_text` supports use of a specialized `.privacy-policy-tutorial` * CSS class which can be used to provide supplemental information. Any content contained within * HTML elements that have the `.privacy-policy-tutorial` CSS class applied will be omitted * from the clipboard when the section content is copied. * * Intended for use with the `'admin_init'` action. * * @since 4.9.6 * * @param string $plugin_name The name of the plugin or theme that is suggesting content * for the site's privacy policy. * @param string $policy_text The suggested content for inclusion in the policy. */ function wp_add_privacy_policy_content( $plugin_name, $policy_text ) { if ( ! is_admin() ) { _doing_it_wrong( __FUNCTION__, sprintf( /* translators: %s: admin_init */ __( 'The suggested privacy policy content should be added only in wp-admin by using the %s (or later) action.' ), 'admin_init' ), '4.9.7' ); return; } elseif ( ! doing_action( 'admin_init' ) && ! did_action( 'admin_init' ) ) { _doing_it_wrong( __FUNCTION__, sprintf( /* translators: %s: admin_init */ __( 'The suggested privacy policy content should be added by using the %s (or later) action. Please see the inline documentation.' ), 'admin_init' ), '4.9.7' ); return; } if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php'; } WP_Privacy_Policy_Content::add( $plugin_name, $policy_text ); } /** * Determines whether a plugin is technically active but was paused while * loading. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ * Conditional Tags} article in the Theme Developer Handbook. * * @since 5.2.0 * * @global WP_Paused_Extensions_Storage $_paused_plugins * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return bool True, if in the list of paused plugins. False, if not in the list. */ function is_plugin_paused( $plugin ) { if ( ! isset( $GLOBALS['_paused_plugins'] ) ) { return false; } if ( ! is_plugin_active( $plugin ) ) { return false; } list( $plugin ) = explode( '/', $plugin ); return array_key_exists( $plugin, $GLOBALS['_paused_plugins'] ); } /** * Gets the error that was recorded for a paused plugin. * * @since 5.2.0 * * @global WP_Paused_Extensions_Storage $_paused_plugins * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return array|false Array of error information as returned by `error_get_last()`, * or false if none was recorded. */ function wp_get_plugin_error( $plugin ) { if ( ! isset( $GLOBALS['_paused_plugins'] ) ) { return false; } list( $plugin ) = explode( '/', $plugin ); if ( ! array_key_exists( $plugin, $GLOBALS['_paused_plugins'] ) ) { return false; } return $GLOBALS['_paused_plugins'][ $plugin ]; } /** * Tries to resume a single plugin. * * If a redirect was provided, we first ensure the plugin does not throw fatal * errors anymore. * * The way it works is by setting the redirection to the error before trying to * include the plugin file. If the plugin fails, then the redirection will not * be overwritten with the success message and the plugin will not be resumed. * * @since 5.2.0 * * @param string $plugin Single plugin to resume. * @param string $redirect Optional. URL to redirect to. Default empty string. * @return true|WP_Error True on success, false if `$plugin` was not paused, * `WP_Error` on failure. */ function resume_plugin( $plugin, $redirect = '' ) { /* * We'll override this later if the plugin could be resumed without * creating a fatal error. */ if ( ! empty( $redirect ) ) { wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-resume-error_' . $plugin ), $redirect ) ); // Load the plugin to test whether it throws a fatal error. ob_start(); plugin_sandbox_scrape( $plugin ); ob_clean(); } list( $extension ) = explode( '/', $plugin ); $result = wp_paused_plugins()->delete( $extension ); if ( ! $result ) { return new WP_Error( 'could_not_resume_plugin', __( 'Could not resume the plugin.' ) ); } return true; } /** * Renders an admin notice in case some plugins have been paused due to errors. * * @since 5.2.0 * * @global string $pagenow The filename of the current screen. * @global WP_Paused_Extensions_Storage $_paused_plugins */ function paused_plugins_notice() { if ( 'plugins.php' === $GLOBALS['pagenow'] ) { return; } if ( ! current_user_can( 'resume_plugins' ) ) { return; } if ( ! isset( $GLOBALS['_paused_plugins'] ) || empty( $GLOBALS['_paused_plugins'] ) ) { return; } $message = sprintf( '%s
        %s

        %s', __( 'One or more plugins failed to load properly.' ), __( 'You can find more details and make changes on the Plugins screen.' ), esc_url( admin_url( 'plugins.php?plugin_status=paused' ) ), __( 'Go to the Plugins screen' ) ); wp_admin_notice( $message, array( 'type' => 'error' ) ); } /** * Renders an admin notice when a plugin was deactivated during an update. * * Displays an admin notice in case a plugin has been deactivated during an * upgrade due to incompatibility with the current version of WordPress. * * @since 5.8.0 * @access private * * @global string $pagenow The filename of the current screen. * @global string $wp_version The WordPress version string. */ function deactivated_plugins_notice() { if ( 'plugins.php' === $GLOBALS['pagenow'] ) { return; } if ( ! current_user_can( 'activate_plugins' ) ) { return; } $blog_deactivated_plugins = get_option( 'wp_force_deactivated_plugins' ); $site_deactivated_plugins = array(); if ( false === $blog_deactivated_plugins ) { // Option not in database, add an empty array to avoid extra DB queries on subsequent loads. update_option( 'wp_force_deactivated_plugins', array(), false ); } if ( is_multisite() ) { $site_deactivated_plugins = get_site_option( 'wp_force_deactivated_plugins' ); if ( false === $site_deactivated_plugins ) { // Option not in database, add an empty array to avoid extra DB queries on subsequent loads. update_site_option( 'wp_force_deactivated_plugins', array() ); } } if ( empty( $blog_deactivated_plugins ) && empty( $site_deactivated_plugins ) ) { // No deactivated plugins. return; } $deactivated_plugins = array_merge( $blog_deactivated_plugins, $site_deactivated_plugins ); foreach ( $deactivated_plugins as $plugin ) { if ( ! empty( $plugin['version_compatible'] ) && ! empty( $plugin['version_deactivated'] ) ) { $explanation = sprintf( /* translators: 1: Name of deactivated plugin, 2: Plugin version deactivated, 3: Current WP version, 4: Compatible plugin version. */ __( '%1$s %2$s was deactivated due to incompatibility with WordPress %3$s, please upgrade to %1$s %4$s or later.' ), $plugin['plugin_name'], $plugin['version_deactivated'], $GLOBALS['wp_version'], $plugin['version_compatible'] ); } else { $explanation = sprintf( /* translators: 1: Name of deactivated plugin, 2: Plugin version deactivated, 3: Current WP version. */ __( '%1$s %2$s was deactivated due to incompatibility with WordPress %3$s.' ), $plugin['plugin_name'], ! empty( $plugin['version_deactivated'] ) ? $plugin['version_deactivated'] : '', $GLOBALS['wp_version'], $plugin['version_compatible'] ); } $message = sprintf( '%s
        %s

        %s', sprintf( /* translators: %s: Name of deactivated plugin. */ __( '%s plugin deactivated during WordPress upgrade.' ), $plugin['plugin_name'] ), $explanation, esc_url( admin_url( 'plugins.php?plugin_status=inactive' ) ), __( 'Go to the Plugins screen' ) ); wp_admin_notice( $message, array( 'type' => 'warning' ) ); } // Empty the options. update_option( 'wp_force_deactivated_plugins', array(), false ); if ( is_multisite() ) { update_site_option( 'wp_force_deactivated_plugins', array() ); } } includes/comment.php000064400000014127152213653150010535 0ustar00get_var( $wpdb->prepare( "SELECT comment_post_ID FROM $wpdb->comments WHERE comment_author = %s AND $date_field = %s", stripslashes( $comment_author ), stripslashes( $comment_date ) ) ); } /** * Updates a comment with values provided in $_POST. * * @since 2.0.0 * @since 5.5.0 A return value was added. * * @return int|WP_Error The value 1 if the comment was updated, 0 if not updated. * A WP_Error object on failure. */ function edit_comment() { if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) { wp_die( __( 'Sorry, you are not allowed to edit comments on this post.' ) ); } if ( isset( $_POST['newcomment_author'] ) ) { $_POST['comment_author'] = $_POST['newcomment_author']; } if ( isset( $_POST['newcomment_author_email'] ) ) { $_POST['comment_author_email'] = $_POST['newcomment_author_email']; } if ( isset( $_POST['newcomment_author_url'] ) ) { $_POST['comment_author_url'] = $_POST['newcomment_author_url']; } if ( isset( $_POST['comment_status'] ) ) { $_POST['comment_approved'] = $_POST['comment_status']; } if ( isset( $_POST['content'] ) ) { $_POST['comment_content'] = $_POST['content']; } if ( isset( $_POST['comment_ID'] ) ) { $_POST['comment_ID'] = (int) $_POST['comment_ID']; } foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) { if ( ! empty( $_POST[ 'hidden_' . $timeunit ] ) && $_POST[ 'hidden_' . $timeunit ] !== $_POST[ $timeunit ] ) { $_POST['edit_date'] = '1'; break; } } if ( ! empty( $_POST['edit_date'] ) ) { $aa = $_POST['aa']; $mm = $_POST['mm']; $jj = $_POST['jj']; $hh = $_POST['hh']; $mn = $_POST['mn']; $ss = $_POST['ss']; $jj = ( $jj > 31 ) ? 31 : $jj; $hh = ( $hh > 23 ) ? $hh - 24 : $hh; $mn = ( $mn > 59 ) ? $mn - 60 : $mn; $ss = ( $ss > 59 ) ? $ss - 60 : $ss; $_POST['comment_date'] = "$aa-$mm-$jj $hh:$mn:$ss"; } return wp_update_comment( $_POST, true ); } /** * Returns a WP_Comment object based on comment ID. * * @since 2.0.0 * * @param int $id ID of comment to retrieve. * @return WP_Comment|false Comment if found. False on failure. */ function get_comment_to_edit( $id ) { $comment = get_comment( $id ); if ( ! $comment ) { return false; } $comment->comment_ID = (int) $comment->comment_ID; $comment->comment_post_ID = (int) $comment->comment_post_ID; $comment->comment_content = format_to_edit( $comment->comment_content ); /** * Filters the comment content before editing. * * @since 2.0.0 * * @param string $comment_content Comment content. */ $comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content ); $comment->comment_author = format_to_edit( $comment->comment_author ); $comment->comment_author_email = format_to_edit( $comment->comment_author_email ); $comment->comment_author_url = format_to_edit( $comment->comment_author_url ); $comment->comment_author_url = esc_url( $comment->comment_author_url ); return $comment; } /** * Gets the number of pending comments on a post or posts. * * @since 2.3.0 * @since 6.9.0 Exclude the 'note' comment type from the count. * * @global wpdb $wpdb WordPress database abstraction object. * * @param int|int[] $post_id Either a single Post ID or an array of Post IDs * @return int|int[] Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs */ function get_pending_comments_num( $post_id ) { global $wpdb; $single = false; if ( ! is_array( $post_id ) ) { $post_id_array = (array) $post_id; $single = true; } else { $post_id_array = $post_id; } $post_id_array = array_map( 'intval', $post_id_array ); $post_id_in = "'" . implode( "', '", $post_id_array ) . "'"; $pending = $wpdb->get_results( "SELECT comment_post_ID, COUNT(comment_ID) as num_comments FROM $wpdb->comments WHERE comment_post_ID IN ( $post_id_in ) AND comment_approved = '0' AND comment_type != 'note' GROUP BY comment_post_ID", ARRAY_A ); if ( $single ) { if ( empty( $pending ) ) { return 0; } else { return absint( $pending[0]['num_comments'] ); } } $pending_keyed = array(); // Default to zero pending for all posts in request. foreach ( $post_id_array as $id ) { $pending_keyed[ $id ] = 0; } if ( ! empty( $pending ) ) { foreach ( $pending as $pend ) { $pending_keyed[ $pend['comment_post_ID'] ] = absint( $pend['num_comments'] ); } } return $pending_keyed; } /** * Adds avatars to relevant places in admin. * * @since 2.5.0 * * @param string $name User name. * @return string Avatar with the user name. */ function floated_admin_avatar( $name ) { $avatar = get_avatar( get_comment(), 32, 'mystery' ); return "$avatar $name"; } /** * Enqueues comment shortcuts jQuery script. * * @since 2.7.0 */ function enqueue_comment_hotkeys_js() { if ( 'true' === get_user_option( 'comment_shortcuts' ) ) { wp_enqueue_script( 'jquery-table-hotkeys' ); } } /** * Displays error message at bottom of comments. * * @since 2.5.0 * * @param string $msg Error Message. Assumed to contain HTML and be sanitized. */ function comment_footer_die( $msg ) { echo "

        $msg

        "; require_once ABSPATH . 'wp-admin/admin-footer.php'; die; } includes/class-wp-media-list-table.php000064400000064634152213653150013747 0ustar00detached = ( isset( $_REQUEST['attachment-filter'] ) && 'detached' === $_REQUEST['attachment-filter'] ); $this->modes = array( 'list' => __( 'List view' ), 'grid' => __( 'Grid view' ), ); parent::__construct( array( 'plural' => 'media', 'screen' => $args['screen'] ?? null, ) ); } /** * Checks if the current user has permissions to upload files. * * @since 3.1.0 * * @return bool Whether the user can upload files. */ public function ajax_user_can() { return current_user_can( 'upload_files' ); } /** * Prepares the list of items for displaying. * * @since 3.1.0 * * @global string $mode List table view mode. * @global WP_Query $wp_query WordPress Query object. * @global array $post_mime_types An array of post mime types. * @global array $avail_post_mime_types An array of available post mime types. */ public function prepare_items() { global $mode, $wp_query, $post_mime_types, $avail_post_mime_types; $mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode']; /* * Exclude attachments scheduled for deletion in the next two hours * if they are for zip packages for interrupted or failed updates. * See File_Upload_Upgrader class. */ $not_in = array(); $crons = _get_cron_array(); if ( is_array( $crons ) ) { foreach ( $crons as $cron ) { if ( isset( $cron['upgrader_scheduled_cleanup'] ) ) { $details = reset( $cron['upgrader_scheduled_cleanup'] ); if ( ! empty( $details['args'][0] ) ) { $not_in[] = (int) $details['args'][0]; } } } } if ( ! empty( $_REQUEST['post__not_in'] ) && is_array( $_REQUEST['post__not_in'] ) ) { $not_in = array_merge( array_values( $_REQUEST['post__not_in'] ), $not_in ); } if ( ! empty( $not_in ) ) { $_REQUEST['post__not_in'] = $not_in; } list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $_REQUEST ); $this->is_trash = isset( $_REQUEST['attachment-filter'] ) && 'trash' === $_REQUEST['attachment-filter']; $this->set_pagination_args( array( 'total_items' => $wp_query->found_posts, 'total_pages' => $wp_query->max_num_pages, 'per_page' => $wp_query->query_vars['posts_per_page'], ) ); if ( $wp_query->posts ) { update_post_thumbnail_cache( $wp_query ); update_post_parent_caches( $wp_query->posts ); } } /** * Gets an array of links for the available views on this table. * * @since 3.1.0 * * @global array $post_mime_types An array of post mime types. * @global array $avail_post_mime_types An array of available post mime types. * @return array An array of links for the available views. */ protected function get_views() { global $post_mime_types, $avail_post_mime_types; $type_links = array(); $filter = empty( $_GET['attachment-filter'] ) ? '' : $_GET['attachment-filter']; $type_links['all'] = sprintf( '', selected( $filter, true, false ), __( 'All media items' ) ); foreach ( $post_mime_types as $mime_type => $label ) { if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) { continue; } $selected = selected( $filter && str_starts_with( $filter, 'post_mime_type:' ) && wp_match_mime_types( $mime_type, str_replace( 'post_mime_type:', '', $filter ) ), true, false ); $type_links[ $mime_type ] = sprintf( '', esc_attr( $mime_type ), $selected, $label[0] ); } $type_links['detached'] = ''; $type_links['mine'] = sprintf( '', selected( 'mine' === $filter, true, false ), _x( 'Mine', 'media items' ) ); if ( $this->is_trash || ( defined( 'MEDIA_TRASH' ) && MEDIA_TRASH ) ) { $type_links['trash'] = sprintf( '', selected( 'trash' === $filter, true, false ), _x( 'Trash', 'attachment filter' ) ); } return $type_links; } /** * @return array An associative array of bulk actions. */ protected function get_bulk_actions() { $actions = array(); if ( MEDIA_TRASH ) { if ( $this->is_trash ) { $actions['untrash'] = __( 'Restore' ); $actions['delete'] = __( 'Delete permanently' ); } else { $actions['trash'] = __( 'Move to Trash' ); } } else { $actions['delete'] = __( 'Delete permanently' ); } if ( $this->detached ) { $actions['attach'] = __( 'Attach' ); } return $actions; } /** * Displays extra controls between bulk actions and pagination. * * @since 3.1.0 * * @param string $which The location of the extra table nav: 'top' or 'bottom'. */ protected function extra_tablenav( $which ) { if ( 'bar' !== $which ) { return; } ?>
        is_trash ) { $this->months_dropdown( 'attachment' ); } /** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */ do_action( 'restrict_manage_posts', $this->screen->post_type, $which ); submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); if ( $this->is_trash && $this->has_items() && current_user_can( 'edit_others_posts' ) ) { submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false ); } ?>
        is_trash ) { _e( 'No media files found in Trash.' ); } else { _e( 'No media files found.' ); } } /** * Overrides parent views to use the filter bar display. * * @global string $mode List table view mode. */ public function views() { global $mode; $views = $this->get_views(); $this->screen->render_screen_reader_content( 'heading_views' ); ?>
        view_switcher( $mode ); ?> extra_tablenav( 'bar' ); /** This filter is documented in wp-admin/includes/class-wp-list-table.php */ $views = apply_filters( "views_{$this->screen->id}", array() ); // Back compat for pre-4.0 view links. if ( ! empty( $views ) ) { echo ''; } ?>
        '; /* translators: Column name. */ $posts_columns['title'] = _x( 'File', 'column name' ); $posts_columns['author'] = __( 'Author' ); $taxonomies = get_taxonomies_for_attachments( 'objects' ); $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' ); /** * Filters the taxonomy columns for attachments in the Media list table. * * @since 3.5.0 * * @param string[] $taxonomies An array of registered taxonomy names to show for attachments. * @param string $post_type The post type. Default 'attachment'. */ $taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' ); $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' ); foreach ( $taxonomies as $taxonomy ) { if ( 'category' === $taxonomy ) { $column_key = 'categories'; } elseif ( 'post_tag' === $taxonomy ) { $column_key = 'tags'; } else { $column_key = 'taxonomy-' . $taxonomy; } $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; } /* translators: Column name. */ if ( ! $this->detached ) { $posts_columns['parent'] = _x( 'Uploaded to', 'column name' ); if ( post_type_supports( 'attachment', 'comments' ) && get_option( 'wp_attachment_pages_enabled' ) ) { $posts_columns['comments'] = sprintf( '%2$s', esc_attr__( 'Comments' ), /* translators: Hidden accessibility text. */ __( 'Comments' ) ); } } /* translators: Column name. */ $posts_columns['date'] = _x( 'Date', 'column name' ); /** * Filters the Media list table columns. * * @since 2.5.0 * * @param string[] $posts_columns An array of columns displayed in the Media list table. * @param bool $detached Whether the list table contains media not attached * to any posts. Default true. */ return apply_filters( 'manage_media_columns', $posts_columns, $this->detached ); } /** * @return array> An array of sortable columns. */ protected function get_sortable_columns() { return array( 'title' => array( 'title', false, _x( 'File', 'column name' ), __( 'Table ordered by File Name.' ) ), 'author' => array( 'author', false, __( 'Author' ), __( 'Table ordered by Author.' ) ), 'parent' => array( 'parent', false, _x( 'Uploaded to', 'column name' ), __( 'Table ordered by Uploaded To.' ) ), 'comments' => array( 'comment_count', __( 'Comments' ), false, __( 'Table ordered by Comments.' ) ), 'date' => array( 'date', true, __( 'Date' ), __( 'Table ordered by Date.' ), 'desc' ), ); } /** * Handles the checkbox column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item The current WP_Post object. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $post = $item; if ( current_user_can( 'edit_post', $post->ID ) ) { ?> post_mime_type ); $attachment_id = $post->ID; if ( has_post_thumbnail( $post ) ) { $thumbnail_id = get_post_thumbnail_id( $post ); if ( ! empty( $thumbnail_id ) ) { $attachment_id = $thumbnail_id; } } $title = _draft_or_post_title(); $thumb = wp_get_attachment_image( $attachment_id, array( 60, 60 ), true, array( 'alt' => '' ) ); $link_start = ''; $link_end = ''; if ( current_user_can( 'edit_post', $post->ID ) && ! $this->is_trash ) { $link_start = sprintf( '', get_edit_post_link( $post->ID ), ); $link_end = ''; } $class = $thumb ? ' class="has-media-icon"' : ''; ?> >

        ID ); echo esc_html( wp_basename( $file ) ); ?>

        %s', esc_url( add_query_arg( array( 'author' => get_the_author_meta( 'ID' ) ), 'upload.php' ) ), esc_html( $author ) ); } else { echo '' . __( '(no author)' ) . ''; } } /** * Handles the description column output. * * @since 4.3.0 * @deprecated 6.2.0 * * @param WP_Post $post The current WP_Post object. */ public function column_desc( $post ) { _deprecated_function( __METHOD__, '6.2.0' ); echo has_excerpt() ? $post->post_excerpt : ''; } /** * Handles the date column output. * * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. */ public function column_date( $post ) { if ( '0000-00-00 00:00:00' === $post->post_date ) { $h_time = __( 'Unpublished' ); } else { $time = get_post_timestamp( $post ); $time_diff = time() - $time; if ( $time && $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) { /* translators: %s: Human-readable time difference. */ $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); } else { $h_time = get_the_time( __( 'Y/m/d' ), $post ); } } /** * Filters the published time of an attachment displayed in the Media list table. * * @since 6.0.0 * * @param string $h_time The published time. * @param WP_Post $post Attachment object. * @param string $column_name The column name. */ echo apply_filters( 'media_date_column_time', $h_time, $post, 'date' ); } /** * Handles the parent column output. * * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. */ public function column_parent( $post ) { $user_can_edit = current_user_can( 'edit_post', $post->ID ); if ( $post->post_parent > 0 ) { $parent = get_post( $post->post_parent ); } else { $parent = false; } if ( $parent ) { $title = _draft_or_post_title( $post->post_parent ); $parent_type = get_post_type_object( $parent->post_type ); if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $post->post_parent ) ) { printf( '%s', get_edit_post_link( $post->post_parent ), $title ); } elseif ( $parent_type && current_user_can( 'read_post', $post->post_parent ) ) { printf( '%s', $title ); } else { _e( '(Private post)' ); } if ( $user_can_edit ) : $detach_url = add_query_arg( array( 'parent_post_id' => $post->post_parent, 'media[]' => $post->ID, '_wpnonce' => wp_create_nonce( 'bulk-' . $this->_args['plural'] ), ), 'upload.php' ); printf( '
        %s', $detach_url, /* translators: %s: Title of the post the attachment is attached to. */ esc_attr( sprintf( __( 'Detach from “%s”' ), $title ) ), __( 'Detach' ) ); endif; } else { _e( '(Unattached)' ); ?> post_parent ); printf( '
        %s', $post->ID, /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Attach “%s” to existing content' ), $title ) ), __( 'Attach' ) ); } } } /** * Handles the comments column output. * * @since 4.3.0 * * @param WP_Post $post The current WP_Post object. */ public function column_comments( $post ) { echo '
        '; if ( isset( $this->comment_pending_count[ $post->ID ] ) ) { $pending_comments = $this->comment_pending_count[ $post->ID ]; } else { $pending_comments = get_pending_comments_num( $post->ID ); } $this->comments_bubble( $post->ID, $pending_comments ); echo '
        '; } /** * Handles output for the default column. * * @since 4.3.0 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item The current WP_Post object. * @param string $column_name Current column name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $post = $item; if ( 'categories' === $column_name ) { $taxonomy = 'category'; } elseif ( 'tags' === $column_name ) { $taxonomy = 'post_tag'; } elseif ( str_starts_with( $column_name, 'taxonomy-' ) ) { $taxonomy = substr( $column_name, 9 ); } else { $taxonomy = false; } if ( $taxonomy ) { $terms = get_the_terms( $post->ID, $taxonomy ); if ( is_array( $terms ) ) { $output = array(); foreach ( $terms as $t ) { $posts_in_term_qv = array(); $posts_in_term_qv['taxonomy'] = $taxonomy; $posts_in_term_qv['term'] = $t->slug; $output[] = sprintf( '%s', esc_url( add_query_arg( $posts_in_term_qv, 'upload.php' ) ), esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) ) ); } echo implode( wp_get_list_item_separator(), $output ); } else { echo '' . get_taxonomy( $taxonomy )->labels->no_terms . ''; } return; } /** * Fires for each custom column in the Media list table. * * Custom columns are registered using the {@see 'manage_media_columns'} filter. * * @since 2.5.0 * * @param string $column_name Name of the custom column. * @param int $post_id Attachment ID. */ do_action( 'manage_media_custom_column', $column_name, $post->ID ); } /** * Generates the list table rows. * * @since 3.1.0 * * @global WP_Post $post Global post object. * @global WP_Query $wp_query WordPress Query object. */ public function display_rows() { global $post, $wp_query; $post_ids = wp_list_pluck( $wp_query->posts, 'ID' ); reset( $wp_query->posts ); $this->comment_pending_count = get_pending_comments_num( $post_ids ); add_filter( 'the_title', 'esc_html' ); while ( have_posts() ) : the_post(); if ( $this->is_trash && 'trash' !== $post->post_status || ! $this->is_trash && 'trash' === $post->post_status ) { continue; } $post_owner = ( get_current_user_id() === (int) $post->post_author ) ? 'self' : 'other'; ?> single_row_columns( $post ); ?> An array of row actions. */ private function _get_row_actions( $post, $att_title ) { $actions = array(); if ( ! $this->is_trash && current_user_can( 'edit_post', $post->ID ) ) { $actions['edit'] = sprintf( '%s', esc_url( get_edit_post_link( $post->ID ) ), /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $att_title ) ), __( 'Edit' ) ); } if ( current_user_can( 'delete_post', $post->ID ) ) { if ( $this->is_trash ) { $actions['untrash'] = sprintf( '%s', esc_url( wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ) ), /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $att_title ) ), __( 'Restore' ) ); } elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { $actions['trash'] = sprintf( '%s', esc_url( wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) ), /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $att_title ) ), _x( 'Trash', 'verb' ) ); } if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) { $show_confirmation = ( ! $this->is_trash && ! MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; $actions['delete'] = sprintf( '%s', esc_url( wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ) ), $show_confirmation, /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $att_title ) ), __( 'Delete Permanently' ) ); } } $attachment_url = wp_get_attachment_url( $post->ID ); if ( ! $this->is_trash ) { $permalink = get_permalink( $post->ID ); if ( $permalink ) { $actions['view'] = sprintf( '%s', esc_url( $permalink ), /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), __( 'View' ) ); } if ( $attachment_url ) { $actions['copy'] = sprintf( '', esc_url( $attachment_url ), /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Copy “%s” URL to clipboard' ), $att_title ) ), __( 'Copy URL' ), __( 'Copied!' ) ); } } if ( $attachment_url ) { $actions['download'] = sprintf( '%s', esc_url( $attachment_url ), /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Download “%s”' ), $att_title ) ), __( 'Download file' ) ); } if ( $this->detached && current_user_can( 'edit_post', $post->ID ) ) { $actions['attach'] = sprintf( '%s', $post->ID, /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Attach “%s” to existing content' ), $att_title ) ), __( 'Attach' ) ); } /** * Filters the action links for each attachment in the Media list table. * * @since 2.8.0 * * @param string[] $actions An array of action links for each attachment. * Includes 'Edit', 'Delete Permanently', 'View', * 'Copy URL' and 'Download file'. * @param WP_Post $post WP_Post object for the current attachment. * @param bool $detached Whether the list table contains media not attached * to any posts. Default true. */ return apply_filters( 'media_row_actions', $actions, $post, $this->detached ); } /** * Generates and displays row action links. * * @since 4.3.0 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Post $item Attachment being acted upon. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string Row actions output for media attachments, or an empty string * if the current column is not the primary column. */ protected function handle_row_actions( $item, $column_name, $primary ) { if ( $primary !== $column_name ) { return ''; } // Restores the more descriptive, specific name for use within this method. $post = $item; $att_title = _draft_or_post_title(); $actions = $this->_get_row_actions( $post, $att_title ); return $this->row_actions( $actions ); } } includes/class-wp-debug-data.php000064400000214430152213653150012616 0ustar00 self::get_wp_core(), 'wp-paths-sizes' => self::get_wp_paths_sizes(), 'wp-dropins' => self::get_wp_dropins(), 'wp-active-theme' => self::get_wp_active_theme(), 'wp-parent-theme' => self::get_wp_parent_theme(), 'wp-themes-inactive' => self::get_wp_themes_inactive(), 'wp-mu-plugins' => self::get_wp_mu_plugins(), 'wp-plugins-active' => self::get_wp_plugins_active(), 'wp-plugins-inactive' => self::get_wp_plugins_inactive(), 'wp-media' => self::get_wp_media(), 'wp-server' => self::get_wp_server(), 'wp-database' => self::get_wp_database(), 'wp-constants' => self::get_wp_constants(), 'wp-filesystem' => self::get_wp_filesystem(), ); /* * Remove null elements from the array. The individual methods are * allowed to return `null`, which communicates that the category * of debug data isn't relevant and shouldn't be passed through. */ $info = array_filter( $info, static function ( $section ) { return isset( $section ); } ); /** * Filters the debug information shown on the Tools -> Site Health -> Info screen. * * Plugin or themes may wish to introduce their own debug information without creating * additional admin pages. They can utilize this filter to introduce their own sections * or add more data to existing sections. * * Array keys for sections added by core are all prefixed with `wp-`. Plugins and themes * should use their own slug as a prefix, both for consistency as well as avoiding * key collisions. Note that the array keys are used as labels for the copied data. * * All strings are expected to be plain text except `$description` that can contain * inline HTML tags (see below). * * @since 5.2.0 * * @param array $args { * The debug information to be added to the core information page. * * This is an associative multi-dimensional array, up to three levels deep. * The topmost array holds the sections, keyed by section ID. * * @type array ...$0 { * Each section has a `$fields` associative array (see below), and each `$value` in `$fields` * can be another associative array of name/value pairs when there is more structured data * to display. * * @type string $label Required. The title for this section of the debug output. * @type string $description Optional. A description for your information section which * may contain basic HTML markup, inline tags only as it is * outputted in a paragraph. * @type bool $show_count Optional. If set to `true`, the amount of fields will be included * in the title for this section. Default false. * @type bool $private Optional. If set to `true`, the section and all associated fields * will be excluded from the copied data. Default false. * @type array $fields { * Required. An associative array containing the fields to be displayed in the section, * keyed by field ID. * * @type array ...$0 { * An associative array containing the data to be displayed for the field. * * @type string $label Required. The label for this piece of information. * @type mixed $value Required. The output that is displayed for this field. * Text should be translated. Can be an associative array * that is displayed as name/value pairs. * Accepted types: `string|int|float|(string|int|float)[]`. * @type string $debug Optional. The output that is used for this field when * the user copies the data. It should be more concise and * not translated. If not set, the content of `$value` * is used. Note that the array keys are used as labels * for the copied data. * @type bool $private Optional. If set to `true`, the field will be excluded * from the copied data, allowing you to show, for example, * API keys here. Default false. * } * } * } * } */ $info = apply_filters( 'debug_information', $info ); return $info; } /** * Gets the WordPress core section of the debug data. * * @since 6.7.0 * * @return array The debug data for the Info screen. */ private static function get_wp_core(): array { // Save few function calls. $permalink_structure = get_option( 'permalink_structure' ); $is_ssl = is_ssl(); $users_can_register = get_option( 'users_can_register' ); $blog_public = get_option( 'blog_public' ); $default_comment_status = get_option( 'default_comment_status' ); $environment_type = wp_get_environment_type(); $core_version = wp_get_wp_version(); $core_updates = get_core_updates(); $core_update_needed = ''; if ( is_array( $core_updates ) ) { foreach ( $core_updates as $core => $update ) { if ( 'upgrade' === $update->response ) { /* translators: %s: Latest WordPress version number. */ $core_update_needed = ' ' . sprintf( __( '(Latest version: %s)' ), $update->version ); } else { $core_update_needed = ''; } } } $fields = array( 'version' => array( 'label' => __( 'Version' ), 'value' => $core_version . $core_update_needed, 'debug' => $core_version, ), 'site_language' => array( 'label' => __( 'Site Language' ), 'value' => get_locale(), ), 'user_language' => array( 'label' => __( 'User Language' ), 'value' => get_user_locale(), ), 'timezone' => array( 'label' => __( 'Timezone' ), 'value' => wp_timezone_string(), ), 'home_url' => array( 'label' => __( 'Home URL' ), 'value' => get_bloginfo( 'url' ), 'private' => true, ), 'site_url' => array( 'label' => __( 'Site URL' ), 'value' => get_bloginfo( 'wpurl' ), 'private' => true, ), 'permalink' => array( 'label' => __( 'Permalink structure' ), 'value' => $permalink_structure ? $permalink_structure : __( 'No permalink structure set' ), 'debug' => $permalink_structure, ), 'https_status' => array( 'label' => __( 'Is this site using HTTPS?' ), 'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ), 'debug' => $is_ssl, ), 'multisite' => array( 'label' => __( 'Is this a multisite?' ), 'value' => is_multisite() ? __( 'Yes' ) : __( 'No' ), 'debug' => is_multisite(), ), 'user_registration' => array( 'label' => __( 'Can anyone register on this site?' ), 'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ), 'debug' => $users_can_register, ), 'blog_public' => array( 'label' => __( 'Is this site discouraging search engines?' ), 'value' => $blog_public ? __( 'No' ) : __( 'Yes' ), 'debug' => $blog_public, ), 'default_comment_status' => array( 'label' => __( 'Default comment status' ), 'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ), 'debug' => $default_comment_status, ), 'environment_type' => array( 'label' => __( 'Environment type' ), 'value' => $environment_type, 'debug' => $environment_type, ), ); // Conditionally add debug information for multisite setups. if ( is_multisite() ) { $site_id = get_current_blog_id(); $fields['site_id'] = array( 'label' => __( 'Site ID' ), 'value' => $site_id, 'debug' => $site_id, ); $network_query = new WP_Network_Query(); $network_ids = $network_query->query( array( 'fields' => 'ids', 'number' => 100, 'no_found_rows' => false, ) ); $site_count = 0; foreach ( $network_ids as $network_id ) { $site_count += get_blog_count( $network_id ); } $fields['site_count'] = array( 'label' => __( 'Site count' ), 'value' => $site_count, ); $fields['network_count'] = array( 'label' => __( 'Network count' ), 'value' => $network_query->found_networks, ); } $fields['user_count'] = array( 'label' => __( 'User count' ), 'value' => get_user_count(), ); // WordPress features requiring processing. $wp_dotorg = wp_remote_get( 'https://wordpress.org', array( 'timeout' => 10 ) ); if ( ! is_wp_error( $wp_dotorg ) ) { $fields['dotorg_communication'] = array( 'label' => __( 'Communication with WordPress.org' ), 'value' => __( 'WordPress.org is reachable' ), 'debug' => 'true', ); } else { $fields['dotorg_communication'] = array( 'label' => __( 'Communication with WordPress.org' ), 'value' => sprintf( /* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */ __( 'Unable to reach WordPress.org at %1$s: %2$s' ), gethostbyname( 'wordpress.org' ), $wp_dotorg->get_error_message() ), 'debug' => $wp_dotorg->get_error_message(), ); } return array( 'label' => __( 'WordPress' ), 'fields' => $fields, ); } /** * Gets the WordPress drop-in section of the debug data. * * @since 6.7.0 * * @return array The drop-ins debug data. */ private static function get_wp_dropins(): array { // Get a list of all drop-in replacements. $dropins = get_dropins(); // Get drop-ins descriptions. $dropin_descriptions = _get_dropins(); $fields = array(); foreach ( $dropins as $dropin_key => $dropin ) { $fields[ sanitize_text_field( $dropin_key ) ] = array( 'label' => $dropin_key, 'value' => $dropin_descriptions[ $dropin_key ][0], 'debug' => 'true', ); } return array( 'label' => __( 'Drop-ins' ), 'show_count' => true, 'description' => sprintf( /* translators: %s: wp-content directory name. */ __( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ), '' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '' ), 'fields' => $fields, ); } /** * Gets the WordPress server section of the debug data. * * @since 6.7.0 * * @return array The server-related debug data. */ private static function get_wp_server(): array { // Populate the server debug fields. if ( function_exists( 'php_uname' ) ) { $server_architecture = sprintf( '%s %s %s', php_uname( 's' ), php_uname( 'r' ), php_uname( 'm' ) ); } else { $server_architecture = 'unknown'; } $php_version_debug = PHP_VERSION; // Whether PHP supports 64-bit. $php64bit = ( PHP_INT_SIZE * 8 === 64 ); $php_version = sprintf( '%s %s', $php_version_debug, ( $php64bit ? __( '(Supports 64bit values)' ) : __( '(Does not support 64bit values)' ) ) ); if ( $php64bit ) { $php_version_debug .= ' 64bit'; } $fields = array(); $fields['server_architecture'] = array( 'label' => __( 'Server architecture' ), 'value' => ( 'unknown' !== $server_architecture ? $server_architecture : __( 'Unable to determine server architecture' ) ), 'debug' => $server_architecture, ); $fields['httpd_software'] = array( 'label' => __( 'Web server' ), 'value' => ! empty( $_SERVER['SERVER_SOFTWARE'] ) ? wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) : __( 'Unable to determine what web server software is used' ), 'debug' => ! empty( $_SERVER['SERVER_SOFTWARE'] ) ? wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) : 'unknown', ); $fields['php_version'] = array( 'label' => __( 'PHP version' ), 'value' => $php_version, 'debug' => $php_version_debug, ); $fields['php_sapi'] = array( 'label' => __( 'PHP SAPI' ), 'value' => PHP_SAPI, 'debug' => PHP_SAPI, ); // Some servers disable `ini_set()` and `ini_get()`, we check this before trying to get configuration values. if ( ! function_exists( 'ini_get' ) ) { $fields['ini_get'] = array( 'label' => __( 'Server settings' ), 'value' => sprintf( /* translators: %s: ini_get() */ __( 'Unable to determine some settings, as the %s function has been disabled.' ), 'ini_get()' ), 'debug' => 'ini_get() is disabled', ); } else { $fields['max_input_variables'] = array( 'label' => __( 'PHP max input variables' ), 'value' => ini_get( 'max_input_vars' ), ); $fields['time_limit'] = array( 'label' => __( 'PHP time limit' ), 'value' => ini_get( 'max_execution_time' ), ); if ( WP_Site_Health::get_instance()->php_memory_limit !== ini_get( 'memory_limit' ) ) { $fields['memory_limit'] = array( 'label' => __( 'PHP memory limit' ), 'value' => WP_Site_Health::get_instance()->php_memory_limit, ); $fields['admin_memory_limit'] = array( 'label' => __( 'PHP memory limit (only for admin screens)' ), 'value' => ini_get( 'memory_limit' ), ); } else { $fields['memory_limit'] = array( 'label' => __( 'PHP memory limit' ), 'value' => ini_get( 'memory_limit' ), ); } $fields['max_input_time'] = array( 'label' => __( 'Max input time' ), 'value' => ini_get( 'max_input_time' ), ); $fields['upload_max_filesize'] = array( 'label' => __( 'Upload max filesize' ), 'value' => ini_get( 'upload_max_filesize' ), ); $fields['php_post_max_size'] = array( 'label' => __( 'PHP post max size' ), 'value' => ini_get( 'post_max_size' ), ); } if ( function_exists( 'curl_version' ) ) { $curl = curl_version(); $fields['curl_version'] = array( 'label' => __( 'cURL version' ), 'value' => sprintf( '%s %s', $curl['version'], $curl['ssl_version'] ), ); } else { $fields['curl_version'] = array( 'label' => __( 'cURL version' ), 'value' => __( 'Not available' ), 'debug' => 'not available', ); } // SUHOSIN. $suhosin_loaded = ( extension_loaded( 'suhosin' ) || ( defined( 'SUHOSIN_PATCH' ) && constant( 'SUHOSIN_PATCH' ) ) ); $fields['suhosin'] = array( 'label' => __( 'Is SUHOSIN installed?' ), 'value' => ( $suhosin_loaded ? __( 'Yes' ) : __( 'No' ) ), 'debug' => $suhosin_loaded, ); // Imagick. $imagick_loaded = extension_loaded( 'imagick' ); $fields['imagick_availability'] = array( 'label' => __( 'Is the Imagick library available?' ), 'value' => ( $imagick_loaded ? __( 'Yes' ) : __( 'No' ) ), 'debug' => $imagick_loaded, ); // Opcode Cache. if ( function_exists( 'opcache_get_status' ) ) { $opcache_status = @opcache_get_status( false ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- Warning emitted in failure case. if ( false === $opcache_status ) { $fields['opcode_cache'] = array( 'label' => __( 'Opcode cache' ), 'value' => __( 'Disabled by configuration' ), 'debug' => 'not available', ); } else { $fields['opcode_cache'] = array( 'label' => __( 'Opcode cache' ), 'value' => $opcache_status['opcache_enabled'] ? __( 'Enabled' ) : __( 'Disabled' ), 'debug' => $opcache_status['opcache_enabled'], ); if ( true === $opcache_status['opcache_enabled'] ) { $fields['opcode_cache_memory_usage'] = array( 'label' => __( 'Opcode cache memory usage' ), 'value' => sprintf( /* translators: 1: Used memory, 2: Total memory */ __( '%1$s of %2$s' ), size_format( $opcache_status['memory_usage']['used_memory'] ), size_format( $opcache_status['memory_usage']['free_memory'] + $opcache_status['memory_usage']['used_memory'] ) ), 'debug' => sprintf( '%s of %s', $opcache_status['memory_usage']['used_memory'], $opcache_status['memory_usage']['free_memory'] + $opcache_status['memory_usage']['used_memory'] ), ); if ( 0 !== $opcache_status['interned_strings_usage']['buffer_size'] ) { $fields['opcode_cache_interned_strings_usage'] = array( 'label' => __( 'Opcode cache interned strings usage' ), 'value' => sprintf( /* translators: 1: Percentage used, 2: Total memory, 3: Free memory */ __( '%1$s%% of %2$s (%3$s free)' ), number_format_i18n( ( $opcache_status['interned_strings_usage']['used_memory'] / $opcache_status['interned_strings_usage']['buffer_size'] ) * 100, 2 ), size_format( $opcache_status['interned_strings_usage']['buffer_size'] ), size_format( $opcache_status['interned_strings_usage']['free_memory'] ) ), 'debug' => sprintf( '%s%% of %s (%s free)', round( ( $opcache_status['interned_strings_usage']['used_memory'] / $opcache_status['interned_strings_usage']['buffer_size'] ) * 100, 2 ), $opcache_status['interned_strings_usage']['buffer_size'], $opcache_status['interned_strings_usage']['free_memory'] ), ); } $fields['opcode_cache_hit_rate'] = array( 'label' => __( 'Opcode cache hit rate' ), 'value' => sprintf( /* translators: %s: Hit rate percentage */ __( '%s%%' ), number_format_i18n( $opcache_status['opcache_statistics']['opcache_hit_rate'], 2 ) ), 'debug' => round( $opcache_status['opcache_statistics']['opcache_hit_rate'], 2 ), ); $fields['opcode_cache_full'] = array( 'label' => __( 'Is the Opcode cache full?' ), 'value' => $opcache_status['cache_full'] ? __( 'Yes' ) : __( 'No' ), 'debug' => $opcache_status['cache_full'], ); } } } else { $fields['opcode_cache'] = array( 'label' => __( 'Opcode cache' ), 'value' => __( 'Disabled' ), 'debug' => 'not available', ); } // Pretty permalinks. $pretty_permalinks_supported = got_url_rewrite(); $fields['pretty_permalinks'] = array( 'label' => __( 'Are pretty permalinks supported?' ), 'value' => ( $pretty_permalinks_supported ? __( 'Yes' ) : __( 'No' ) ), 'debug' => $pretty_permalinks_supported, ); // Check if a .htaccess file exists. if ( is_file( ABSPATH . '.htaccess' ) ) { // If the file exists, grab the content of it. $htaccess_content = file_get_contents( ABSPATH . '.htaccess' ); // Filter away the core WordPress rules. $filtered_htaccess_content = trim( preg_replace( '/\# BEGIN WordPress[\s\S]+?# END WordPress/si', '', $htaccess_content ) ); $filtered_htaccess_content = ! empty( $filtered_htaccess_content ); if ( $filtered_htaccess_content ) { /* translators: %s: .htaccess */ $htaccess_rules_string = sprintf( __( 'Custom rules have been added to your %s file.' ), '.htaccess' ); } else { /* translators: %s: .htaccess */ $htaccess_rules_string = sprintf( __( 'Your %s file contains only core WordPress features.' ), '.htaccess' ); } $fields['htaccess_extra_rules'] = array( 'label' => __( '.htaccess rules' ), 'value' => $htaccess_rules_string, 'debug' => $filtered_htaccess_content, ); } // Check if a robots.txt file exists. if ( is_file( get_home_path() . 'robots.txt' ) ) { // If the file exists, turn debug info to true. $robotstxt_debug = true; /* translators: %s: robots.txt */ $robotstxt_string = sprintf( __( 'Your site is using a static %s file. WordPress cannot dynamically serve one.' ), 'robots.txt' ); } elseif ( got_url_rewrite() ) { // No robots.txt file available and rewrite rules in place, turn debug info to false. $robotstxt_debug = false; /* translators: %s: robots.txt */ $robotstxt_string = sprintf( __( 'Your site is using the dynamic %s file which is generated by WordPress.' ), 'robots.txt' ); } else { // No robots.txt file, but without rewrite rules WP can't serve one. $robotstxt_debug = true; /* translators: %s: robots.txt */ $robotstxt_string = sprintf( __( 'WordPress cannot dynamically serve a %s file due to a lack of rewrite rule support.' ), 'robots.txt' ); } $fields['static_robotstxt_file'] = array( 'label' => __( 'robots.txt' ), 'value' => $robotstxt_string, 'debug' => $robotstxt_debug, ); // Server time. $date = new DateTime( 'now', new DateTimeZone( 'UTC' ) ); $fields['current'] = array( 'label' => __( 'Current time' ), 'value' => $date->format( DateTime::ATOM ), ); $fields['utc-time'] = array( 'label' => __( 'Current UTC time' ), 'value' => $date->format( DateTime::RFC850 ), ); $fields['server-time'] = array( 'label' => __( 'Current Server time' ), 'value' => isset( $_SERVER['REQUEST_TIME'] ) ? wp_date( 'c', (int) $_SERVER['REQUEST_TIME'] ) : __( 'Unable to determine server time' ), ); return array( 'label' => __( 'Server' ), 'description' => __( 'The options shown below relate to your server setup. If changes are required, you may need your web host’s assistance.' ), 'fields' => $fields, ); } /** * Gets the WordPress media section of the debug data. * * @since 6.7.0 * * @throws ImagickException * @return array The media handling debug data. */ private static function get_wp_media(): array { // Spare few function calls. $not_available = __( 'Not available' ); // Populate the media fields. $fields['image_editor'] = array( 'label' => __( 'Active editor' ), 'value' => _wp_image_editor_choose(), ); // Get ImageMagic information, if available. if ( class_exists( 'Imagick' ) ) { // Save the Imagick instance for later use. $imagick = new Imagick(); $imagemagick_version = $imagick->getVersion(); } else { $imagemagick_version = __( 'Not available' ); } $fields['imagick_module_version'] = array( 'label' => __( 'ImageMagick version number' ), 'value' => ( is_array( $imagemagick_version ) ? $imagemagick_version['versionNumber'] : $imagemagick_version ), ); $fields['imagemagick_version'] = array( 'label' => __( 'ImageMagick version string' ), 'value' => ( is_array( $imagemagick_version ) ? $imagemagick_version['versionString'] : $imagemagick_version ), ); $imagick_version = phpversion( 'imagick' ); $fields['imagick_version'] = array( 'label' => __( 'Imagick version' ), 'value' => ( $imagick_version ) ? $imagick_version : __( 'Not available' ), ); if ( ! function_exists( 'ini_get' ) ) { $fields['ini_get'] = array( 'label' => __( 'File upload settings' ), 'value' => sprintf( /* translators: %s: ini_get() */ __( 'Unable to determine some settings, as the %s function has been disabled.' ), 'ini_get()' ), 'debug' => 'ini_get() is disabled', ); } else { // Get the PHP ini directive values. $file_uploads = ini_get( 'file_uploads' ); $post_max_size = ini_get( 'post_max_size' ); $upload_max_filesize = ini_get( 'upload_max_filesize' ); $max_file_uploads = ini_get( 'max_file_uploads' ); $effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_filesize ) ); // Add info in Media section. $fields['file_uploads'] = array( 'label' => __( 'File uploads' ), 'value' => $file_uploads ? __( 'Enabled' ) : __( 'Disabled' ), 'debug' => $file_uploads, ); $fields['post_max_size'] = array( 'label' => __( 'Max size of post data allowed' ), 'value' => $post_max_size, ); $fields['upload_max_filesize'] = array( 'label' => __( 'Max size of an uploaded file' ), 'value' => $upload_max_filesize, ); $fields['max_effective_size'] = array( 'label' => __( 'Max effective file size' ), 'value' => size_format( $effective ), ); $fields['max_file_uploads'] = array( 'label' => __( 'Max simultaneous file uploads' ), 'value' => $max_file_uploads, ); } // If Imagick is used as our editor, provide some more information about its limitations. if ( 'WP_Image_Editor_Imagick' === _wp_image_editor_choose() && isset( $imagick ) && $imagick instanceof Imagick ) { $limits = array( 'area' => ( defined( 'imagick::RESOURCETYPE_AREA' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_AREA ) ) : $not_available ), 'disk' => ( defined( 'imagick::RESOURCETYPE_DISK' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_DISK ) : $not_available ), 'file' => ( defined( 'imagick::RESOURCETYPE_FILE' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_FILE ) : $not_available ), 'map' => ( defined( 'imagick::RESOURCETYPE_MAP' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MAP ) ) : $not_available ), 'memory' => ( defined( 'imagick::RESOURCETYPE_MEMORY' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MEMORY ) ) : $not_available ), 'thread' => ( defined( 'imagick::RESOURCETYPE_THREAD' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_THREAD ) : $not_available ), 'time' => ( defined( 'imagick::RESOURCETYPE_TIME' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_TIME ) : $not_available ), ); $limits_debug = array( 'imagick::RESOURCETYPE_AREA' => ( defined( 'imagick::RESOURCETYPE_AREA' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_AREA ) ) : 'not available' ), 'imagick::RESOURCETYPE_DISK' => ( defined( 'imagick::RESOURCETYPE_DISK' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_DISK ) : 'not available' ), 'imagick::RESOURCETYPE_FILE' => ( defined( 'imagick::RESOURCETYPE_FILE' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_FILE ) : 'not available' ), 'imagick::RESOURCETYPE_MAP' => ( defined( 'imagick::RESOURCETYPE_MAP' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MAP ) ) : 'not available' ), 'imagick::RESOURCETYPE_MEMORY' => ( defined( 'imagick::RESOURCETYPE_MEMORY' ) ? size_format( $imagick->getResourceLimit( imagick::RESOURCETYPE_MEMORY ) ) : 'not available' ), 'imagick::RESOURCETYPE_THREAD' => ( defined( 'imagick::RESOURCETYPE_THREAD' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_THREAD ) : 'not available' ), 'imagick::RESOURCETYPE_TIME' => ( defined( 'imagick::RESOURCETYPE_TIME' ) ? $imagick->getResourceLimit( imagick::RESOURCETYPE_TIME ) : 'not available' ), ); $fields['imagick_limits'] = array( 'label' => __( 'Imagick Resource Limits' ), 'value' => $limits, 'debug' => $limits_debug, ); try { $formats = Imagick::queryFormats( '*' ); } catch ( Exception $e ) { $formats = array(); } $fields['imagemagick_file_formats'] = array( 'label' => __( 'ImageMagick supported file formats' ), 'value' => ( empty( $formats ) ) ? __( 'Unable to determine' ) : implode( ', ', $formats ), 'debug' => ( empty( $formats ) ) ? 'Unable to determine' : implode( ', ', $formats ), ); } // Get the image format transforms. $mappings = wp_get_image_editor_output_format( '', '' ); $formatted_mappings = array(); if ( ! empty( $mappings ) ) { foreach ( $mappings as $format => $mime_type ) { $formatted_mappings[] = sprintf( '%s → %s', $format, $mime_type ); } $mappings_display = implode( ', ', $formatted_mappings ); } else { $mappings_display = __( 'No format transforms defined' ); } $fields['image_format_transforms'] = array( 'label' => __( 'Image format transforms' ), 'value' => $mappings_display, 'debug' => ( empty( $mappings ) ) ? 'No format transforms defined' : $mappings_display, ); // Get GD information, if available. if ( function_exists( 'gd_info' ) ) { $gd = gd_info(); } else { $gd = false; } $fields['gd_version'] = array( 'label' => __( 'GD version' ), 'value' => ( is_array( $gd ) ? $gd['GD Version'] : $not_available ), 'debug' => ( is_array( $gd ) ? $gd['GD Version'] : 'not available' ), ); $gd_image_formats = array(); $gd_supported_formats = array( 'GIF Create' => 'GIF', 'JPEG' => 'JPEG', 'PNG' => 'PNG', 'WebP' => 'WebP', 'BMP' => 'BMP', 'AVIF' => 'AVIF', 'HEIF' => 'HEIF', 'TIFF' => 'TIFF', 'XPM' => 'XPM', ); foreach ( $gd_supported_formats as $format_key => $format ) { $index = $format_key . ' Support'; if ( isset( $gd[ $index ] ) && $gd[ $index ] ) { array_push( $gd_image_formats, $format ); } } if ( ! empty( $gd_image_formats ) ) { $fields['gd_formats'] = array( 'label' => __( 'GD supported file formats' ), 'value' => implode( ', ', $gd_image_formats ), ); } // Get Ghostscript information, if available. if ( function_exists( 'exec' ) ) { $gs = exec( 'gs --version' ); if ( empty( $gs ) ) { $gs = $not_available; $gs_debug = 'not available'; } else { $gs_debug = $gs; } } else { $gs = __( 'Unable to determine if Ghostscript is installed' ); $gs_debug = 'unknown'; } $fields['ghostscript_version'] = array( 'label' => __( 'Ghostscript version' ), 'value' => $gs, 'debug' => $gs_debug, ); return array( 'label' => __( 'Media Handling' ), 'fields' => $fields, ); } /** * Gets the WordPress MU plugins section of the debug data. * * @since 6.7.0 * * @return array The must-use plugins debug data. */ private static function get_wp_mu_plugins(): array { // List must use plugins if there are any. $mu_plugins = get_mu_plugins(); $fields = array(); foreach ( $mu_plugins as $plugin_path => $plugin ) { $plugin_version = $plugin['Version']; $plugin_author = $plugin['Author']; $plugin_version_string = __( 'No version or author information is available.' ); $plugin_version_string_debug = 'author: (undefined), version: (undefined)'; if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) { /* translators: 1: Plugin version number. 2: Plugin author name. */ $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author ); $plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author ); } else { if ( ! empty( $plugin_author ) ) { /* translators: %s: Plugin author name. */ $plugin_version_string = sprintf( __( 'By %s' ), $plugin_author ); $plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author ); } if ( ! empty( $plugin_version ) ) { /* translators: %s: Plugin version number. */ $plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version ); $plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version ); } } $fields[ sanitize_text_field( $plugin['Name'] ) ] = array( 'label' => $plugin['Name'], 'value' => $plugin_version_string, 'debug' => $plugin_version_string_debug, ); } return array( 'label' => __( 'Must Use Plugins' ), 'show_count' => true, 'fields' => $fields, ); } /** * Gets the WordPress paths and sizes section of the debug data. * * @since 6.7.0 * * @return array|null Paths and sizes debug data for single sites, * otherwise `null` for multi-site installs. */ private static function get_wp_paths_sizes(): ?array { if ( is_multisite() ) { return null; } $loading = __( 'Loading…' ); $fields = array( 'wordpress_path' => array( 'label' => __( 'WordPress directory location' ), 'value' => untrailingslashit( ABSPATH ), ), 'wordpress_size' => array( 'label' => __( 'WordPress directory size' ), 'value' => $loading, 'debug' => 'loading...', ), 'uploads_path' => array( 'label' => __( 'Uploads directory location' ), 'value' => wp_upload_dir()['basedir'], ), 'uploads_size' => array( 'label' => __( 'Uploads directory size' ), 'value' => $loading, 'debug' => 'loading...', ), 'themes_path' => array( 'label' => __( 'Themes directory location' ), 'value' => get_theme_root(), ), 'themes_size' => array( 'label' => __( 'Themes directory size' ), 'value' => $loading, 'debug' => 'loading...', ), 'plugins_path' => array( 'label' => __( 'Plugins directory location' ), 'value' => WP_PLUGIN_DIR, ), 'plugins_size' => array( 'label' => __( 'Plugins directory size' ), 'value' => $loading, 'debug' => 'loading...', ), 'fonts_path' => array( 'label' => __( 'Fonts directory location' ), 'value' => wp_get_font_dir()['basedir'], ), 'fonts_size' => array( 'label' => __( 'Fonts directory size' ), 'value' => $loading, 'debug' => 'loading...', ), 'database_size' => array( 'label' => __( 'Database size' ), 'value' => $loading, 'debug' => 'loading...', ), 'total_size' => array( 'label' => __( 'Total installation size' ), 'value' => $loading, 'debug' => 'loading...', ), ); return array( /* translators: Filesystem directory paths and storage sizes. */ 'label' => __( 'Directories and Sizes' ), 'fields' => $fields, ); } /** * Gets the WordPress active plugins section of the debug data. * * @since 6.7.0 * * @return array The active plugins debug data. */ private static function get_wp_plugins_active(): array { return array( 'label' => __( 'Active Plugins' ), 'show_count' => true, 'fields' => self::get_wp_plugins_raw_data()['wp-plugins-active'], ); } /** * Gets the WordPress inactive plugins section of the debug data. * * @since 6.7.0 * * @return array The inactive plugins debug data. */ private static function get_wp_plugins_inactive(): array { return array( 'label' => __( 'Inactive Plugins' ), 'show_count' => true, 'fields' => self::get_wp_plugins_raw_data()['wp-plugins-inactive'], ); } /** * Gets the raw plugin data for the WordPress active and inactive sections of the debug data. * * @since 6.7.0 * * @return array>> The raw plugin debug data for active and inactive plugins. */ private static function get_wp_plugins_raw_data(): array { // List all available plugins. $plugins = get_plugins(); $plugin_updates = get_plugin_updates(); $transient = get_site_transient( 'update_plugins' ); $auto_updates = array(); $fields = array( 'wp-plugins-active' => array(), 'wp-plugins-inactive' => array(), ); $auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'plugin' ); if ( $auto_updates_enabled ) { $auto_updates = (array) get_site_option( 'auto_update_plugins', array() ); } foreach ( $plugins as $plugin_path => $plugin ) { $plugin_part = ( is_plugin_active( $plugin_path ) ) ? 'wp-plugins-active' : 'wp-plugins-inactive'; $plugin_version = $plugin['Version']; $plugin_author = $plugin['Author']; $plugin_version_string = __( 'No version or author information is available.' ); $plugin_version_string_debug = 'author: (undefined), version: (undefined)'; if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) { /* translators: 1: Plugin version number. 2: Plugin author name. */ $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author ); $plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author ); } else { if ( ! empty( $plugin_author ) ) { /* translators: %s: Plugin author name. */ $plugin_version_string = sprintf( __( 'By %s' ), $plugin_author ); $plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author ); } if ( ! empty( $plugin_version ) ) { /* translators: %s: Plugin version number. */ $plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version ); $plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version ); } } if ( array_key_exists( $plugin_path, $plugin_updates ) ) { /* translators: %s: Latest plugin version number. */ $plugin_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $plugin_updates[ $plugin_path ]->update->new_version ); $plugin_version_string_debug .= sprintf( ' (latest version: %s)', $plugin_updates[ $plugin_path ]->update->new_version ); } if ( $auto_updates_enabled ) { if ( isset( $transient->response[ $plugin_path ] ) ) { $item = $transient->response[ $plugin_path ]; } elseif ( isset( $transient->no_update[ $plugin_path ] ) ) { $item = $transient->no_update[ $plugin_path ]; } else { $item = array( 'id' => $plugin_path, 'slug' => '', 'plugin' => $plugin_path, 'new_version' => '', 'url' => '', 'package' => '', 'icons' => array(), 'banners' => array(), 'banners_rtl' => array(), 'tested' => '', 'requires_php' => '', 'compatibility' => new stdClass(), ); $item = wp_parse_args( $plugin, $item ); } $auto_update_forced = wp_is_auto_update_forced_for_item( 'plugin', null, (object) $item ); if ( ! is_null( $auto_update_forced ) ) { $enabled = $auto_update_forced; } else { $enabled = in_array( $plugin_path, $auto_updates, true ); } if ( $enabled ) { $auto_updates_string = __( 'Auto-updates enabled' ); } else { $auto_updates_string = __( 'Auto-updates disabled' ); } /** * Filters the text string of the auto-updates setting for each plugin in the Site Health debug data. * * @since 5.5.0 * * @param string $auto_updates_string The string output for the auto-updates column. * @param string $plugin_path The path to the plugin file. * @param array $plugin An array of plugin data. * @param bool $enabled Whether auto-updates are enabled for this item. */ $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled ); $plugin_version_string .= ' | ' . $auto_updates_string; $plugin_version_string_debug .= ', ' . $auto_updates_string; } $fields[ $plugin_part ][ sanitize_text_field( $plugin['Name'] ) ] = array( 'label' => $plugin['Name'], 'value' => $plugin_version_string, 'debug' => $plugin_version_string_debug, ); } return $fields; } /** * Gets the WordPress active theme section of the debug data. * * @since 6.7.0 * * @global array $_wp_theme_features The theme features for the active theme. * * @return array The active theme debug data. */ private static function get_wp_active_theme(): array { global $_wp_theme_features; // Populate the section for the currently active theme. $theme_features = array(); if ( ! empty( $_wp_theme_features ) ) { foreach ( $_wp_theme_features as $feature => $options ) { $theme_features[] = $feature; } } $active_theme = wp_get_theme(); $theme_updates = get_theme_updates(); $transient = get_site_transient( 'update_themes' ); $active_theme_version = $active_theme->version; $active_theme_version_debug = $active_theme_version; $auto_updates = array(); $auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' ); if ( $auto_updates_enabled ) { $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); } if ( array_key_exists( $active_theme->stylesheet, $theme_updates ) ) { $theme_update_new_version = $theme_updates[ $active_theme->stylesheet ]->update['new_version']; /* translators: %s: Latest theme version number. */ $active_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_update_new_version ); $active_theme_version_debug .= sprintf( ' (latest version: %s)', $theme_update_new_version ); } $active_theme_author_uri = $active_theme->display( 'AuthorURI' ); if ( $active_theme->parent_theme ) { $active_theme_parent_theme = sprintf( /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), $active_theme->parent_theme, $active_theme->template ); $active_theme_parent_theme_debug = sprintf( '%s (%s)', $active_theme->parent_theme, $active_theme->template ); } else { $active_theme_parent_theme = __( 'None' ); $active_theme_parent_theme_debug = 'none'; } $fields = array( 'name' => array( 'label' => __( 'Name' ), 'value' => sprintf( /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), $active_theme->name, $active_theme->stylesheet ), ), 'version' => array( 'label' => __( 'Version' ), 'value' => $active_theme_version, 'debug' => $active_theme_version_debug, ), 'author' => array( 'label' => __( 'Author' ), 'value' => wp_kses( $active_theme->author, array() ), ), 'author_website' => array( 'label' => __( 'Author website' ), 'value' => ( $active_theme_author_uri ? $active_theme_author_uri : __( 'Undefined' ) ), 'debug' => ( $active_theme_author_uri ? $active_theme_author_uri : '(undefined)' ), ), 'parent_theme' => array( 'label' => __( 'Parent theme' ), 'value' => $active_theme_parent_theme, 'debug' => $active_theme_parent_theme_debug, ), 'theme_features' => array( 'label' => __( 'Theme features' ), 'value' => implode( ', ', $theme_features ), ), 'theme_path' => array( 'label' => __( 'Theme directory location' ), 'value' => get_stylesheet_directory(), ), ); if ( $auto_updates_enabled ) { if ( isset( $transient->response[ $active_theme->stylesheet ] ) ) { $item = $transient->response[ $active_theme->stylesheet ]; } elseif ( isset( $transient->no_update[ $active_theme->stylesheet ] ) ) { $item = $transient->no_update[ $active_theme->stylesheet ]; } else { $item = array( 'theme' => $active_theme->stylesheet, 'new_version' => $active_theme->version, 'url' => '', 'package' => '', 'requires' => '', 'requires_php' => '', ); } $auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item ); if ( ! is_null( $auto_update_forced ) ) { $enabled = $auto_update_forced; } else { $enabled = in_array( $active_theme->stylesheet, $auto_updates, true ); } if ( $enabled ) { $auto_updates_string = __( 'Enabled' ); } else { $auto_updates_string = __( 'Disabled' ); } /** This filter is documented in wp-admin/includes/class-wp-debug-data.php */ $auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled ); $fields['auto_update'] = array( 'label' => __( 'Auto-updates' ), 'value' => $auto_updates_string, 'debug' => $auto_updates_string, ); } return array( 'label' => __( 'Active Theme' ), 'fields' => $fields, ); } /** * Gets the WordPress parent theme section of the debug data. * * @since 6.7.0 * * @return array The parent theme debug data. */ private static function get_wp_parent_theme(): array { $theme_updates = get_theme_updates(); $transient = get_site_transient( 'update_themes' ); $auto_updates = array(); $auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' ); if ( $auto_updates_enabled ) { $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); } $active_theme = wp_get_theme(); $parent_theme = $active_theme->parent(); $fields = array(); if ( $parent_theme ) { $parent_theme_version = $parent_theme->version; $parent_theme_version_debug = $parent_theme_version; if ( array_key_exists( $parent_theme->stylesheet, $theme_updates ) ) { $parent_theme_update_new_version = $theme_updates[ $parent_theme->stylesheet ]->update['new_version']; /* translators: %s: Latest theme version number. */ $parent_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $parent_theme_update_new_version ); $parent_theme_version_debug .= sprintf( ' (latest version: %s)', $parent_theme_update_new_version ); } $parent_theme_author_uri = $parent_theme->display( 'AuthorURI' ); $fields = array( 'name' => array( 'label' => __( 'Name' ), 'value' => sprintf( /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), $parent_theme->name, $parent_theme->stylesheet ), ), 'version' => array( 'label' => __( 'Version' ), 'value' => $parent_theme_version, 'debug' => $parent_theme_version_debug, ), 'author' => array( 'label' => __( 'Author' ), 'value' => wp_kses( $parent_theme->author, array() ), ), 'author_website' => array( 'label' => __( 'Author website' ), 'value' => ( $parent_theme_author_uri ? $parent_theme_author_uri : __( 'Undefined' ) ), 'debug' => ( $parent_theme_author_uri ? $parent_theme_author_uri : '(undefined)' ), ), 'theme_path' => array( 'label' => __( 'Theme directory location' ), 'value' => get_template_directory(), ), ); if ( $auto_updates_enabled ) { if ( isset( $transient->response[ $parent_theme->stylesheet ] ) ) { $item = $transient->response[ $parent_theme->stylesheet ]; } elseif ( isset( $transient->no_update[ $parent_theme->stylesheet ] ) ) { $item = $transient->no_update[ $parent_theme->stylesheet ]; } else { $item = array( 'theme' => $parent_theme->stylesheet, 'new_version' => $parent_theme->version, 'url' => '', 'package' => '', 'requires' => '', 'requires_php' => '', ); } $auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item ); if ( ! is_null( $auto_update_forced ) ) { $enabled = $auto_update_forced; } else { $enabled = in_array( $parent_theme->stylesheet, $auto_updates, true ); } if ( $enabled ) { $parent_theme_auto_update_string = __( 'Enabled' ); } else { $parent_theme_auto_update_string = __( 'Disabled' ); } /** This filter is documented in wp-admin/includes/class-wp-debug-data.php */ $parent_theme_auto_update_string = apply_filters( 'theme_auto_update_debug_string', $parent_theme_auto_update_string, $parent_theme, $enabled ); $fields['auto_update'] = array( 'label' => __( 'Auto-update' ), 'value' => $parent_theme_auto_update_string, 'debug' => $parent_theme_auto_update_string, ); } } return array( 'label' => __( 'Parent Theme' ), 'fields' => $fields, ); } /** * Gets the WordPress inactive themes section of the debug data. * * @since 6.7.0 * * @return array The inactive themes debug data. */ private static function get_wp_themes_inactive(): array { $active_theme = wp_get_theme(); $parent_theme = $active_theme->parent(); $theme_updates = get_theme_updates(); $transient = get_site_transient( 'update_themes' ); $auto_updates = array(); $auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' ); if ( $auto_updates_enabled ) { $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); } // Populate a list of all themes available in the installation. $all_themes = wp_get_themes(); $fields = array(); foreach ( $all_themes as $theme_slug => $theme ) { // Exclude the currently active theme from the list of all themes. if ( $active_theme->stylesheet === $theme_slug ) { continue; } // Exclude the currently active parent theme from the list of all themes. if ( ! empty( $parent_theme ) && $parent_theme->stylesheet === $theme_slug ) { continue; } $theme_version = $theme->version; $theme_author = $theme->author; // Sanitize. $theme_author = wp_kses( $theme_author, array() ); $theme_version_string = __( 'No version or author information is available.' ); $theme_version_string_debug = 'undefined'; if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) { /* translators: 1: Theme version number. 2: Theme author name. */ $theme_version_string = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, $theme_author ); $theme_version_string_debug = sprintf( 'version: %s, author: %s', $theme_version, $theme_author ); } else { if ( ! empty( $theme_author ) ) { /* translators: %s: Theme author name. */ $theme_version_string = sprintf( __( 'By %s' ), $theme_author ); $theme_version_string_debug = sprintf( 'author: %s, version: (undefined)', $theme_author ); } if ( ! empty( $theme_version ) ) { /* translators: %s: Theme version number. */ $theme_version_string = sprintf( __( 'Version %s' ), $theme_version ); $theme_version_string_debug = sprintf( 'author: (undefined), version: %s', $theme_version ); } } if ( array_key_exists( $theme_slug, $theme_updates ) ) { /* translators: %s: Latest theme version number. */ $theme_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_updates[ $theme_slug ]->update['new_version'] ); $theme_version_string_debug .= sprintf( ' (latest version: %s)', $theme_updates[ $theme_slug ]->update['new_version'] ); } if ( $auto_updates_enabled ) { if ( isset( $transient->response[ $theme_slug ] ) ) { $item = $transient->response[ $theme_slug ]; } elseif ( isset( $transient->no_update[ $theme_slug ] ) ) { $item = $transient->no_update[ $theme_slug ]; } else { $item = array( 'theme' => $theme_slug, 'new_version' => $theme->version, 'url' => '', 'package' => '', 'requires' => '', 'requires_php' => '', ); } $auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, (object) $item ); if ( ! is_null( $auto_update_forced ) ) { $enabled = $auto_update_forced; } else { $enabled = in_array( $theme_slug, $auto_updates, true ); } if ( $enabled ) { $auto_updates_string = __( 'Auto-updates enabled' ); } else { $auto_updates_string = __( 'Auto-updates disabled' ); } /** * Filters the text string of the auto-updates setting for each theme in the Site Health debug data. * * @since 5.5.0 * * @param string $auto_updates_string The string output for the auto-updates column. * @param WP_Theme $theme An object of theme data. * @param bool $enabled Whether auto-updates are enabled for this item. */ $auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled ); $theme_version_string .= ' | ' . $auto_updates_string; $theme_version_string_debug .= ', ' . $auto_updates_string; } $fields[ sanitize_text_field( $theme->name ) ] = array( 'label' => sprintf( /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), $theme->name, $theme_slug ), 'value' => $theme_version_string, 'debug' => $theme_version_string_debug, ); } return array( 'label' => __( 'Inactive Themes' ), 'show_count' => true, 'fields' => $fields, ); } /** * Gets the WordPress constants section of the debug data. * * @since 6.7.0 * * @return array The WordPress constants debug data. */ private static function get_wp_constants(): array { // Check if WP_DEBUG_LOG is set. $wp_debug_log_value = __( 'Disabled' ); if ( is_string( WP_DEBUG_LOG ) ) { $wp_debug_log_value = WP_DEBUG_LOG; } elseif ( WP_DEBUG_LOG ) { $wp_debug_log_value = __( 'Enabled' ); } // Check CONCATENATE_SCRIPTS. if ( defined( 'CONCATENATE_SCRIPTS' ) ) { $concatenate_scripts = CONCATENATE_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' ); $concatenate_scripts_debug = CONCATENATE_SCRIPTS ? 'true' : 'false'; } else { $concatenate_scripts = __( 'Undefined' ); $concatenate_scripts_debug = 'undefined'; } // Check COMPRESS_SCRIPTS. if ( defined( 'COMPRESS_SCRIPTS' ) ) { $compress_scripts = COMPRESS_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' ); $compress_scripts_debug = COMPRESS_SCRIPTS ? 'true' : 'false'; } else { $compress_scripts = __( 'Undefined' ); $compress_scripts_debug = 'undefined'; } // Check COMPRESS_CSS. if ( defined( 'COMPRESS_CSS' ) ) { $compress_css = COMPRESS_CSS ? __( 'Enabled' ) : __( 'Disabled' ); $compress_css_debug = COMPRESS_CSS ? 'true' : 'false'; } else { $compress_css = __( 'Undefined' ); $compress_css_debug = 'undefined'; } // Check WP_ENVIRONMENT_TYPE. if ( defined( 'WP_ENVIRONMENT_TYPE' ) ) { $wp_environment_type = WP_ENVIRONMENT_TYPE ? WP_ENVIRONMENT_TYPE : __( 'Empty value' ); $wp_environment_type_debug = WP_ENVIRONMENT_TYPE; } else { $wp_environment_type = __( 'Undefined' ); $wp_environment_type_debug = 'undefined'; } // Check DB_COLLATE. if ( defined( 'DB_COLLATE' ) ) { $db_collate = DB_COLLATE ? DB_COLLATE : __( 'Empty value' ); $db_collate_debug = DB_COLLATE; } else { $db_collate = __( 'Undefined' ); $db_collate_debug = 'undefined'; } $fields = array( 'ABSPATH' => array( 'label' => 'ABSPATH', 'value' => ABSPATH, 'private' => true, ), 'WP_HOME' => array( 'label' => 'WP_HOME', 'value' => ( defined( 'WP_HOME' ) ? WP_HOME : __( 'Undefined' ) ), 'debug' => ( defined( 'WP_HOME' ) ? WP_HOME : 'undefined' ), ), 'WP_SITEURL' => array( 'label' => 'WP_SITEURL', 'value' => ( defined( 'WP_SITEURL' ) ? WP_SITEURL : __( 'Undefined' ) ), 'debug' => ( defined( 'WP_SITEURL' ) ? WP_SITEURL : 'undefined' ), ), 'WP_CONTENT_DIR' => array( 'label' => 'WP_CONTENT_DIR', 'value' => WP_CONTENT_DIR, ), 'WP_PLUGIN_DIR' => array( 'label' => 'WP_PLUGIN_DIR', 'value' => WP_PLUGIN_DIR, ), 'WP_MEMORY_LIMIT' => array( 'label' => 'WP_MEMORY_LIMIT', 'value' => WP_MEMORY_LIMIT, ), 'WP_MAX_MEMORY_LIMIT' => array( 'label' => 'WP_MAX_MEMORY_LIMIT', 'value' => WP_MAX_MEMORY_LIMIT, ), 'WP_DEBUG' => array( 'label' => 'WP_DEBUG', 'value' => WP_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ), 'debug' => WP_DEBUG, ), 'WP_DEBUG_DISPLAY' => array( 'label' => 'WP_DEBUG_DISPLAY', 'value' => WP_DEBUG_DISPLAY ? __( 'Enabled' ) : __( 'Disabled' ), 'debug' => WP_DEBUG_DISPLAY, ), 'WP_DEBUG_LOG' => array( 'label' => 'WP_DEBUG_LOG', 'value' => $wp_debug_log_value, 'debug' => WP_DEBUG_LOG, ), 'SCRIPT_DEBUG' => array( 'label' => 'SCRIPT_DEBUG', 'value' => SCRIPT_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ), 'debug' => SCRIPT_DEBUG, ), 'WP_CACHE' => array( 'label' => 'WP_CACHE', 'value' => WP_CACHE ? __( 'Enabled' ) : __( 'Disabled' ), 'debug' => WP_CACHE, ), 'CONCATENATE_SCRIPTS' => array( 'label' => 'CONCATENATE_SCRIPTS', 'value' => $concatenate_scripts, 'debug' => $concatenate_scripts_debug, ), 'COMPRESS_SCRIPTS' => array( 'label' => 'COMPRESS_SCRIPTS', 'value' => $compress_scripts, 'debug' => $compress_scripts_debug, ), 'COMPRESS_CSS' => array( 'label' => 'COMPRESS_CSS', 'value' => $compress_css, 'debug' => $compress_css_debug, ), 'WP_ENVIRONMENT_TYPE' => array( 'label' => 'WP_ENVIRONMENT_TYPE', 'value' => $wp_environment_type, 'debug' => $wp_environment_type_debug, ), 'WP_DEVELOPMENT_MODE' => array( 'label' => 'WP_DEVELOPMENT_MODE', 'value' => WP_DEVELOPMENT_MODE ? WP_DEVELOPMENT_MODE : __( 'Disabled' ), 'debug' => WP_DEVELOPMENT_MODE, ), 'DB_CHARSET' => array( 'label' => 'DB_CHARSET', 'value' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : __( 'Undefined' ) ), 'debug' => ( defined( 'DB_CHARSET' ) ? DB_CHARSET : 'undefined' ), ), 'DB_COLLATE' => array( 'label' => 'DB_COLLATE', 'value' => $db_collate, 'debug' => $db_collate_debug, ), 'EMPTY_TRASH_DAYS' => array( 'label' => 'EMPTY_TRASH_DAYS', 'value' => EMPTY_TRASH_DAYS ? EMPTY_TRASH_DAYS : __( 'Empty value' ), 'debug' => EMPTY_TRASH_DAYS, ), ); return array( 'label' => __( 'WordPress Constants' ), 'description' => __( 'These settings alter where and how parts of WordPress are loaded.' ), 'fields' => $fields, ); } /** * Gets the WordPress database section of the debug data. * * @since 6.7.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @return array The database debug data. */ private static function get_wp_database(): array { global $wpdb; // Populate the database debug fields. if ( is_object( $wpdb->dbh ) ) { // mysqli or PDO. $extension = get_class( $wpdb->dbh ); } else { // Unknown sql extension. $extension = null; } $server = $wpdb->get_var( 'SELECT VERSION()' ); $client_version = $wpdb->dbh->client_info; $fields = array( 'extension' => array( 'label' => __( 'Database Extension' ), 'value' => $extension, ), 'server_version' => array( 'label' => __( 'Server version' ), 'value' => $server, ), 'client_version' => array( 'label' => __( 'Client version' ), 'value' => $client_version, ), 'database_user' => array( 'label' => __( 'Database username' ), 'value' => $wpdb->dbuser, 'private' => true, ), 'database_host' => array( 'label' => __( 'Database host' ), 'value' => $wpdb->dbhost, 'private' => true, ), 'database_name' => array( 'label' => __( 'Database name' ), 'value' => $wpdb->dbname, 'private' => true, ), 'database_prefix' => array( 'label' => __( 'Table prefix' ), 'value' => $wpdb->prefix, 'private' => true, ), 'database_charset' => array( 'label' => __( 'Database charset' ), 'value' => $wpdb->charset, 'private' => true, ), 'database_collate' => array( 'label' => __( 'Database collation' ), 'value' => $wpdb->collate, 'private' => true, ), 'max_allowed_packet' => array( 'label' => __( 'Max allowed packet size' ), 'value' => self::get_mysql_var( 'max_allowed_packet' ), ), 'max_connections' => array( 'label' => __( 'Max connections number' ), 'value' => self::get_mysql_var( 'max_connections' ), ), ); return array( 'label' => __( 'Database' ), 'fields' => $fields, ); } /** * Gets the file system section of the debug data. * * @since 6.7.0 * * @return array The debug data and other information for the Info screen. */ private static function get_wp_filesystem(): array { $upload_dir = wp_upload_dir(); $fonts_dir_exists = file_exists( wp_get_font_dir()['basedir'] ); $is_writable_abspath = wp_is_writable( ABSPATH ); $is_writable_wp_content_dir = wp_is_writable( WP_CONTENT_DIR ); $is_writable_upload_dir = wp_is_writable( $upload_dir['basedir'] ); $is_writable_wp_plugin_dir = wp_is_writable( WP_PLUGIN_DIR ); $is_writable_template_directory = wp_is_writable( get_theme_root( get_template() ) ); $is_writable_fonts_dir = $fonts_dir_exists ? wp_is_writable( wp_get_font_dir()['basedir'] ) : false; $fields = array( 'wordpress' => array( 'label' => __( 'The main WordPress directory' ), 'value' => ( $is_writable_abspath ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_abspath ? 'writable' : 'not writable' ), ), 'wp-content' => array( 'label' => __( 'The wp-content directory' ), 'value' => ( $is_writable_wp_content_dir ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_wp_content_dir ? 'writable' : 'not writable' ), ), 'uploads' => array( 'label' => __( 'The uploads directory' ), 'value' => ( $is_writable_upload_dir ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_upload_dir ? 'writable' : 'not writable' ), ), 'plugins' => array( 'label' => __( 'The plugins directory' ), 'value' => ( $is_writable_wp_plugin_dir ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_wp_plugin_dir ? 'writable' : 'not writable' ), ), 'themes' => array( 'label' => __( 'The themes directory' ), 'value' => ( $is_writable_template_directory ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_template_directory ? 'writable' : 'not writable' ), ), 'fonts' => array( 'label' => __( 'The fonts directory' ), 'value' => $fonts_dir_exists ? ( $is_writable_fonts_dir ? __( 'Writable' ) : __( 'Not writable' ) ) : __( 'Does not exist' ), 'debug' => $fonts_dir_exists ? ( $is_writable_fonts_dir ? 'writable' : 'not writable' ) : 'does not exist', ), ); // Add more filesystem checks. if ( defined( 'WPMU_PLUGIN_DIR' ) && is_dir( WPMU_PLUGIN_DIR ) ) { $is_writable_wpmu_plugin_dir = wp_is_writable( WPMU_PLUGIN_DIR ); $fields['mu-plugins'] = array( 'label' => __( 'The must use plugins directory' ), 'value' => ( $is_writable_wpmu_plugin_dir ? __( 'Writable' ) : __( 'Not writable' ) ), 'debug' => ( $is_writable_wpmu_plugin_dir ? 'writable' : 'not writable' ), ); } return array( 'label' => __( 'Filesystem Permissions' ), 'description' => __( 'Shows whether WordPress is able to write to the directories it needs access to.' ), 'fields' => $fields, ); } /** * Returns the value of a MySQL system variable. * * @since 5.9.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $mysql_var Name of the MySQL system variable. * @return string|null The variable value on success. Null if the variable does not exist. */ public static function get_mysql_var( $mysql_var ) { global $wpdb; $result = $wpdb->get_row( $wpdb->prepare( 'SHOW VARIABLES LIKE %s', $mysql_var ), ARRAY_A ); if ( ! empty( $result ) && array_key_exists( 'Value', $result ) ) { return $result['Value']; } return null; } /** * Formats the information gathered for debugging, in a manner suitable for copying to a forum or support ticket. * * @since 5.2.0 * * @param array $info_array Information gathered from the `WP_Debug_Data::debug_data()` function. * @param string $data_type The data type to return, either 'info' or 'debug'. * @return string The formatted data. */ public static function format( $info_array, $data_type ) { $return = "`\n"; foreach ( $info_array as $section => $details ) { // Skip this section if there are no fields, or the section has been declared as private. if ( empty( $details['fields'] ) || ( isset( $details['private'] ) && $details['private'] ) ) { continue; } $section_label = 'debug' === $data_type ? $section : $details['label']; $return .= sprintf( "### %s%s ###\n\n", $section_label, ( isset( $details['show_count'] ) && $details['show_count'] ? sprintf( ' (%d)', count( $details['fields'] ) ) : '' ) ); foreach ( $details['fields'] as $field_name => $field ) { if ( isset( $field['private'] ) && true === $field['private'] ) { continue; } if ( 'debug' === $data_type && isset( $field['debug'] ) ) { $debug_data = $field['debug']; } else { $debug_data = $field['value']; } // Can be array, one level deep only. if ( is_array( $debug_data ) ) { $value = ''; foreach ( $debug_data as $sub_field_name => $sub_field_value ) { $value .= sprintf( "\n\t%s: %s", $sub_field_name, $sub_field_value ); } } elseif ( is_bool( $debug_data ) ) { $value = $debug_data ? 'true' : 'false'; } elseif ( empty( $debug_data ) && '0' !== $debug_data ) { $value = 'undefined'; } else { $value = $debug_data; } if ( 'debug' === $data_type ) { $label = $field_name; } else { $label = $field['label']; } $return .= sprintf( "%s: %s\n", $label, $value ); } $return .= "\n"; } $return .= '`'; return $return; } /** * Fetches the total size of all the database tables for the active database user. * * @since 5.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @return int The size of the database, in bytes. */ public static function get_database_size() { global $wpdb; $size = 0; $rows = $wpdb->get_results( 'SHOW TABLE STATUS', ARRAY_A ); if ( $wpdb->num_rows > 0 ) { foreach ( $rows as $row ) { $size += $row['Data_length'] + $row['Index_length']; } } return (int) $size; } /** * Fetches the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`. * Intended to supplement the array returned by `WP_Debug_Data::debug_data()`. * * @since 5.2.0 * @deprecated 5.6.0 Use WP_REST_Site_Health_Controller::get_directory_sizes() * @see WP_REST_Site_Health_Controller::get_directory_sizes() * * @return array The sizes of the directories, also the database size and total installation size. */ public static function get_sizes() { _deprecated_function( __METHOD__, '5.6.0', 'WP_REST_Site_Health_Controller::get_directory_sizes()' ); $size_db = self::get_database_size(); $upload_dir = wp_get_upload_dir(); /* * We will be using the PHP max execution time to prevent the size calculations * from causing a timeout. The default value is 30 seconds, and some * hosts do not allow you to read configuration values. */ if ( function_exists( 'ini_get' ) ) { $max_execution_time = ini_get( 'max_execution_time' ); } /* * The max_execution_time defaults to 0 when PHP runs from cli. * We still want to limit it below. */ if ( empty( $max_execution_time ) ) { $max_execution_time = 30; // 30 seconds. } if ( $max_execution_time > 20 ) { /* * If the max_execution_time is set to lower than 20 seconds, reduce it a bit to prevent * edge-case timeouts that may happen after the size loop has finished running. */ $max_execution_time -= 2; } /* * Go through the various installation directories and calculate their sizes. * No trailing slashes. */ $paths = array( 'wordpress_size' => untrailingslashit( ABSPATH ), 'themes_size' => get_theme_root(), 'plugins_size' => WP_PLUGIN_DIR, 'uploads_size' => $upload_dir['basedir'], 'fonts_size' => wp_get_font_dir()['basedir'], ); $exclude = $paths; unset( $exclude['wordpress_size'] ); $exclude = array_values( $exclude ); $size_total = 0; $all_sizes = array(); // Loop over all the directories we want to gather the sizes for. foreach ( $paths as $name => $path ) { $dir_size = null; // Default to timeout. $results = array( 'path' => $path, 'raw' => 0, ); // If the directory does not exist, skip checking it, as it will skew the other results. if ( ! is_dir( $path ) ) { $all_sizes[ $name ] = array( 'path' => $path, 'raw' => 0, 'size' => __( 'The directory does not exist.' ), 'debug' => 'directory not found', ); continue; } if ( microtime( true ) - WP_START_TIMESTAMP < $max_execution_time ) { if ( 'wordpress_size' === $name ) { $dir_size = recurse_dirsize( $path, $exclude, $max_execution_time ); } else { $dir_size = recurse_dirsize( $path, null, $max_execution_time ); } } if ( false === $dir_size ) { // Error reading. $results['size'] = __( 'The size cannot be calculated. The directory is not accessible. Usually caused by invalid permissions.' ); $results['debug'] = 'not accessible'; // Stop total size calculation. $size_total = null; } elseif ( null === $dir_size ) { // Timeout. $results['size'] = __( 'The directory size calculation has timed out. Usually caused by a very large number of sub-directories and files.' ); $results['debug'] = 'timeout while calculating size'; // Stop total size calculation. $size_total = null; } else { if ( null !== $size_total ) { $size_total += $dir_size; } $results['raw'] = $dir_size; $results['size'] = size_format( $dir_size, 2 ); $results['debug'] = $results['size'] . " ({$dir_size} bytes)"; } $all_sizes[ $name ] = $results; } if ( $size_db > 0 ) { $database_size = size_format( $size_db, 2 ); $all_sizes['database_size'] = array( 'raw' => $size_db, 'size' => $database_size, 'debug' => $database_size . " ({$size_db} bytes)", ); } else { $all_sizes['database_size'] = array( 'size' => __( 'Not available' ), 'debug' => 'not available', ); } if ( null !== $size_total && $size_db > 0 ) { $total_size = $size_total + $size_db; $total_size_mb = size_format( $total_size, 2 ); $all_sizes['total_size'] = array( 'raw' => $total_size, 'size' => $total_size_mb, 'debug' => $total_size_mb . " ({$total_size} bytes)", ); } else { $all_sizes['total_size'] = array( 'size' => __( 'Total size is not available. Some errors were encountered when determining the size of your installation.' ), 'debug' => 'not available', ); } return $all_sizes; } } includes/class-wp-comments-list-table.php000064400000103465152213653150014511 0ustar00 'comments', 'singular' => 'comment', 'ajax' => true, 'screen' => $args['screen'] ?? null, ) ); } /** * Adds avatars to comment author names. * * @since 3.1.0 * * @param string $name Comment author name. * @param int $comment_id Comment ID. * @return string Avatar with the user name. */ public function floated_admin_avatar( $name, $comment_id ) { $comment = get_comment( $comment_id ); $avatar = get_avatar( $comment, 32, 'mystery' ); return "$avatar $name"; } /** * Checks if the user can edit posts. * * @return bool Whether the user can edit posts. */ public function ajax_user_can() { return current_user_can( 'edit_posts' ); } /** * Prepares the comments list items. * * @global string $mode Current list table display mode. * @global int $post_id Current post ID filter. * @global string $comment_status Comment status filter. * @global string $comment_type Comment type filter. * @global string $search Search term. */ public function prepare_items() { global $mode, $post_id, $comment_status, $comment_type, $search; if ( ! empty( $_REQUEST['mode'] ) ) { $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list'; set_user_setting( 'posts_list_mode', $mode ); } else { $mode = get_user_setting( 'posts_list_mode', 'list' ); } $comment_status = $_REQUEST['comment_status'] ?? 'all'; if ( ! in_array( $comment_status, array( 'all', 'mine', 'moderated', 'approved', 'spam', 'trash' ), true ) ) { $comment_status = 'all'; } $comment_type = ''; if ( ! empty( $_REQUEST['comment_type'] ) && 'note' !== $_REQUEST['comment_type'] ) { $comment_type = $_REQUEST['comment_type']; } $search = $_REQUEST['s'] ?? ''; $post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : ''; $user_id = $_REQUEST['user_id'] ?? ''; $orderby = $_REQUEST['orderby'] ?? ''; $order = $_REQUEST['order'] ?? ''; $comments_per_page = $this->get_per_page( $comment_status ); $doing_ajax = wp_doing_ajax(); if ( isset( $_REQUEST['number'] ) ) { $number = (int) $_REQUEST['number']; } else { $number = $comments_per_page + min( 8, $comments_per_page ); // Grab a few extra. } $page = $this->get_pagenum(); if ( isset( $_REQUEST['start'] ) ) { $start = $_REQUEST['start']; } else { $start = ( $page - 1 ) * $comments_per_page; } if ( $doing_ajax && isset( $_REQUEST['offset'] ) ) { $start += $_REQUEST['offset']; } $status_map = array( 'mine' => '', 'moderated' => 'hold', 'approved' => 'approve', 'all' => '', ); $args = array( 'status' => $status_map[ $comment_status ] ?? $comment_status, 'search' => $search, 'user_id' => $user_id, 'offset' => $start, 'number' => $number, 'post_id' => $post_id, 'type' => $comment_type, 'type__not_in' => array( 'note' ), 'orderby' => $orderby, 'order' => $order, 'post_type' => $post_type, 'update_comment_post_cache' => true, ); /** * Filters the arguments for the comment query in the comments list table. * * @since 5.1.0 * * @param array $args An array of get_comments() arguments. */ $args = apply_filters( 'comments_list_table_query_args', $args ); $_comments = get_comments( $args ); if ( is_array( $_comments ) ) { $this->items = array_slice( $_comments, 0, $comments_per_page ); $this->extra_items = array_slice( $_comments, $comments_per_page ); $_comment_post_ids = array_unique( wp_list_pluck( $_comments, 'comment_post_ID' ) ); $this->pending_count = get_pending_comments_num( $_comment_post_ids ); } $total_comments = get_comments( array_merge( $args, array( 'count' => true, 'offset' => 0, 'number' => 0, 'orderby' => 'none', ) ) ); $this->set_pagination_args( array( 'total_items' => $total_comments, 'per_page' => $comments_per_page, ) ); } /** * Gets the number of comments to display per page. * * @param string $comment_status Comment status. * @return int Comments per page. */ public function get_per_page( $comment_status = 'all' ) { $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' ); /** * Filters the number of comments listed per page in the comments list table. * * @since 2.6.0 * * @param int $comments_per_page The number of comments to list per page. * @param string $comment_status The comment status name. Default 'All'. */ return apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); } /** * Displays a message when no comments are found. * @global string $comment_status The current comment status filter. */ public function no_items() { global $comment_status; if ( 'moderated' === $comment_status ) { _e( 'No comments awaiting moderation.' ); } elseif ( 'trash' === $comment_status ) { _e( 'No comments found in Trash.' ); } else { _e( 'No comments found.' ); } } /** * Returns an array of comment status links. * * @global int $post_id The ID of the post to show comments for. * @global string $comment_status The current comment status. * @global string $comment_type The current comment type. * * @return array Comment status HTML links keyed by view. */ protected function get_views() { global $post_id, $comment_status, $comment_type; $status_links = array(); $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments(); $statuses = array( /* translators: %s: Number of comments. */ 'all' => _nx_noop( 'All (%s)', 'All (%s)', 'comments' ), // Singular not used. /* translators: %s: Number of comments. */ 'mine' => _nx_noop( 'Mine (%s)', 'Mine (%s)', 'comments' ), /* translators: %s: Number of comments. */ 'moderated' => _nx_noop( 'Pending (%s)', 'Pending (%s)', 'comments' ), /* translators: %s: Number of comments. */ 'approved' => _nx_noop( 'Approved (%s)', 'Approved (%s)', 'comments' ), /* translators: %s: Number of comments. */ 'spam' => _nx_noop( 'Spam (%s)', 'Spam (%s)', 'comments' ), /* translators: %s: Number of comments. */ 'trash' => _nx_noop( 'Trash (%s)', 'Trash (%s)', 'comments' ), ); if ( ! EMPTY_TRASH_DAYS ) { unset( $statuses['trash'] ); } $link = admin_url( 'edit-comments.php' ); if ( ! empty( $comment_type ) && 'all' !== $comment_type ) { $link = add_query_arg( 'comment_type', $comment_type, $link ); } foreach ( $statuses as $status => $label ) { if ( 'mine' === $status ) { $current_user_id = get_current_user_id(); $num_comments->mine = get_comments( array( 'post_id' => $post_id ? $post_id : 0, 'user_id' => $current_user_id, 'count' => true, 'orderby' => 'none', ) ); $link = add_query_arg( 'user_id', $current_user_id, $link ); } else { $link = remove_query_arg( 'user_id', $link ); } if ( ! isset( $num_comments->$status ) ) { $num_comments->$status = 10; } $link = add_query_arg( 'comment_status', $status, $link ); if ( $post_id ) { $link = add_query_arg( 'p', absint( $post_id ), $link ); } /* // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark if ( !empty( $_REQUEST['s'] ) ) $link = add_query_arg( 's', esc_attr( wp_unslash( $_REQUEST['s'] ) ), $link ); */ $status_links[ $status ] = array( 'url' => esc_url( $link ), 'label' => sprintf( translate_nooped_plural( $label, $num_comments->$status ), sprintf( '%s', ( 'moderated' === $status ) ? 'pending' : $status, number_format_i18n( $num_comments->$status ) ) ), 'current' => $status === $comment_status, ); } /** * Filters the comment status links. * * @since 2.5.0 * @since 5.1.0 The 'Mine' link was added. * * @param string[] $status_links An associative array of fully-formed comment status links. Includes 'All', 'Mine', * 'Pending', 'Approved', 'Spam', and 'Trash'. */ return apply_filters( 'comment_status_links', $this->get_views_links( $status_links ) ); } /** * Gets the available bulk actions for the comments list. * * @global string $comment_status Current comment status filter. * * @return array Bulk action labels keyed by action name. */ protected function get_bulk_actions() { global $comment_status; if ( ! current_user_can( 'moderate_comments' ) ) { return array(); // Return an empty array if the user doesn't have permission } $actions = array(); if ( in_array( $comment_status, array( 'all', 'approved' ), true ) ) { $actions['unapprove'] = __( 'Unapprove' ); } if ( in_array( $comment_status, array( 'all', 'moderated' ), true ) ) { $actions['approve'] = __( 'Approve' ); } if ( in_array( $comment_status, array( 'all', 'moderated', 'approved', 'trash' ), true ) ) { $actions['spam'] = _x( 'Mark as spam', 'comment' ); } if ( 'trash' === $comment_status ) { $actions['untrash'] = __( 'Restore' ); } elseif ( 'spam' === $comment_status ) { $actions['unspam'] = _x( 'Not spam', 'comment' ); } if ( in_array( $comment_status, array( 'trash', 'spam' ), true ) || ! EMPTY_TRASH_DAYS ) { $actions['delete'] = __( 'Delete permanently' ); } else { $actions['trash'] = __( 'Move to Trash' ); } return $actions; } /** * Displays extra controls between bulk actions and pagination. * * @global string $comment_status Current comment status. * @global string $comment_type Current comment type. * * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. */ protected function extra_tablenav( $which ) { global $comment_status, $comment_type; static $has_items; if ( ! isset( $has_items ) ) { $has_items = $this->has_items(); } echo '
        '; if ( 'top' === $which ) { ob_start(); $this->comment_type_dropdown( $comment_type ); /** * Fires just before the Filter submit button for comment types. * * @since 3.5.0 */ do_action( 'restrict_manage_comments' ); $output = ob_get_clean(); if ( ! empty( $output ) && $this->has_items() ) { echo $output; submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); } } if ( ( 'spam' === $comment_status || 'trash' === $comment_status ) && $has_items && current_user_can( 'moderate_comments' ) ) { wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); $title = ( 'spam' === $comment_status ) ? esc_attr__( 'Empty Spam' ) : esc_attr__( 'Empty Trash' ); submit_button( $title, 'apply', 'delete_all', false ); } /** * Fires after the Filter submit button for comment types. * * @since 2.5.0 * @since 5.6.0 The `$which` parameter was added. * * @param string $comment_status The comment status name. Default 'All'. * @param string $which The location of the extra table nav markup: Either 'top' or 'bottom'. */ do_action( 'manage_comments_nav', $comment_status, $which ); echo '
        '; } /** * Gets the current action selected from the bulk actions dropdown. * * @return string|false Current action or false if none. */ public function current_action() { if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) { return 'delete_all'; } return parent::current_action(); } /** * Gets the list of columns. * * @global int $post_id The ID of the post comments are being shown for. * * @return string[] Array of column titles keyed by their column name. */ public function get_columns() { global $post_id; $columns = array(); if ( $this->checkbox ) { $columns['cb'] = ''; } $columns['author'] = __( 'Author' ); $columns['comment'] = _x( 'Comment', 'column name' ); if ( ! $post_id ) { /* translators: Column name or table row header. */ $columns['response'] = __( 'In response to' ); } $columns['date'] = _x( 'Submitted on', 'column name' ); return $columns; } /** * Displays a comment type drop-down for filtering on the Comments list table. * * @since 5.5.0 * @since 5.6.0 Renamed from `comment_status_dropdown()` to `comment_type_dropdown()`. * * @param string $comment_type The current comment type slug. */ protected function comment_type_dropdown( $comment_type ) { /** * Filters the comment types shown in the drop-down menu on the Comments list table. * * @since 2.7.0 * * @param string[] $comment_types Array of comment type labels keyed by their name. */ $comment_types = apply_filters( 'admin_comment_types_dropdown', array( 'comment' => __( 'Comments' ), 'pings' => __( 'Pings' ), ) ); if ( $comment_types && is_array( $comment_types ) ) { printf( '', /* translators: Hidden accessibility text. */ __( 'Filter by comment type' ) ); echo ''; } } /** * Gets a list of sortable columns. * * @return array The sortable columns. */ protected function get_sortable_columns() { return array( 'author' => array( 'comment_author', false, __( 'Author' ), __( 'Table ordered by Comment Author.' ) ), 'response' => array( 'comment_post_ID', false, _x( 'In Response To', 'column name' ), __( 'Table ordered by Post Replied To.' ) ), 'date' => 'comment_date', ); } /** * Gets the name of the default primary column. * * @since 4.3.0 * * @return string Name of the default primary column, in this case, 'comment'. */ protected function get_default_primary_column_name() { return 'comment'; } /** * Displays the comments table. * * Overrides the parent display() method to render extra comments. * * @since 3.1.0 */ public function display() { wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' ); static $has_items; if ( ! isset( $has_items ) ) { $has_items = $this->has_items(); if ( $has_items ) { $this->display_tablenav( 'top' ); } } $this->screen->render_screen_reader_content( 'heading_list' ); ?> ' . /* translators: Hidden accessibility text. */ __( 'Ordered by Comment Date, descending.' ) . ''; } else { $this->print_table_description(); } ?> print_column_headers(); ?> display_rows_or_placeholder(); ?> items; $this->items = $this->extra_items; $this->display_rows_or_placeholder(); $this->items = $items; ?> print_column_headers( false ); ?>
        display_tablenav( 'bottom' ); } /** * Generates content for a single row of the table. * * @global WP_Post $post Global post object. * @global WP_Comment $comment Global comment object. * * @param WP_Comment $item The comment object. */ public function single_row( $item ) { global $post, $comment; // Restores the more descriptive, specific name for use within this method. $comment = $item; if ( $comment->comment_post_ID > 0 ) { $post = get_post( $comment->comment_post_ID ); } $edit_post_cap = $post ? 'edit_post' : 'edit_posts'; if ( ! current_user_can( $edit_post_cap, $comment->comment_post_ID ) && ( post_password_required( $comment->comment_post_ID ) || ! current_user_can( 'read_post', $comment->comment_post_ID ) ) ) { // The user has no access to the post and thus cannot see the comments. return false; } $the_comment_class = wp_get_comment_status( $comment ); if ( ! $the_comment_class ) { $the_comment_class = ''; } $the_comment_class = implode( ' ', get_comment_class( $the_comment_class, $comment, $comment->comment_post_ID ) ); $this->user_can = current_user_can( 'edit_comment', $comment->comment_ID ); echo ""; $this->single_row_columns( $comment ); echo "\n"; unset( $GLOBALS['post'], $GLOBALS['comment'] ); } /** * Generates and displays row actions links. * * @since 4.3.0 * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. * * @global string $comment_status Status for the current listed comments. * * @param WP_Comment $item The comment object. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string Row actions output for comments. An empty string * if the current column is not the primary column, * or if the current user cannot edit the comment. */ protected function handle_row_actions( $item, $column_name, $primary ) { global $comment_status; if ( $primary !== $column_name ) { return ''; } if ( ! $this->user_can ) { return ''; } // Restores the more descriptive, specific name for use within this method. $comment = $item; $the_comment_status = wp_get_comment_status( $comment ); $output = ''; $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( 'approve-comment_' . $comment->comment_ID ) ); $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( 'delete-comment_' . $comment->comment_ID ) ); $action_string = 'comment.php?action=%s&c=' . $comment->comment_ID . '&%s'; $approve_url = sprintf( $action_string, 'approvecomment', $approve_nonce ); $unapprove_url = sprintf( $action_string, 'unapprovecomment', $approve_nonce ); $spam_url = sprintf( $action_string, 'spamcomment', $del_nonce ); $unspam_url = sprintf( $action_string, 'unspamcomment', $del_nonce ); $trash_url = sprintf( $action_string, 'trashcomment', $del_nonce ); $untrash_url = sprintf( $action_string, 'untrashcomment', $del_nonce ); $delete_url = sprintf( $action_string, 'deletecomment', $del_nonce ); // Preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash. $actions = array( 'approve' => '', 'unapprove' => '', 'reply' => '', 'quickedit' => '', 'edit' => '', 'spam' => '', 'unspam' => '', 'trash' => '', 'untrash' => '', 'delete' => '', ); // Not looking at all comments. if ( $comment_status && 'all' !== $comment_status ) { if ( 'approved' === $the_comment_status ) { $actions['unapprove'] = sprintf( '%s', esc_url( $unapprove_url ), "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=unapproved", esc_attr__( 'Unapprove this comment' ), __( 'Unapprove' ) ); } elseif ( 'unapproved' === $the_comment_status ) { $actions['approve'] = sprintf( '%s', esc_url( $approve_url ), "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=approved", esc_attr__( 'Approve this comment' ), __( 'Approve' ) ); } } else { $actions['approve'] = sprintf( '%s', esc_url( $approve_url ), "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", esc_attr__( 'Approve this comment' ), __( 'Approve' ) ); $actions['unapprove'] = sprintf( '%s', esc_url( $unapprove_url ), "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", esc_attr__( 'Unapprove this comment' ), __( 'Unapprove' ) ); } if ( 'spam' !== $the_comment_status ) { $actions['spam'] = sprintf( '%s', esc_url( $spam_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", esc_attr__( 'Mark this comment as spam' ), /* translators: "Mark as spam" link. */ _x( 'Spam', 'verb' ) ); } elseif ( 'spam' === $the_comment_status ) { $actions['unspam'] = sprintf( '%s', esc_url( $unspam_url ), "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1", esc_attr__( 'Restore this comment from the spam' ), _x( 'Not Spam', 'comment' ) ); } if ( 'trash' === $the_comment_status ) { $actions['untrash'] = sprintf( '%s', esc_url( $untrash_url ), "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:untrash=1", esc_attr__( 'Restore this comment from the Trash' ), __( 'Restore' ) ); } if ( 'spam' === $the_comment_status || 'trash' === $the_comment_status || ! EMPTY_TRASH_DAYS ) { $actions['delete'] = sprintf( '%s', esc_url( $delete_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::delete=1", esc_attr__( 'Delete this comment permanently' ), __( 'Delete Permanently' ) ); } else { $actions['trash'] = sprintf( '%s', esc_url( $trash_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", esc_attr__( 'Move this comment to the Trash' ), _x( 'Trash', 'verb' ) ); } if ( 'spam' !== $the_comment_status && 'trash' !== $the_comment_status ) { $actions['edit'] = sprintf( '%s', "comment.php?action=editcomment&c={$comment->comment_ID}", esc_attr__( 'Edit this comment' ), __( 'Edit' ) ); $format = ''; $actions['quickedit'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'edit', 'vim-q comment-inline', esc_attr__( 'Quick edit this comment inline' ), __( 'Quick Edit' ) ); $actions['reply'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'replyto', 'vim-r comment-inline', esc_attr__( 'Reply to this comment' ), /* translators: Comment reply button text. */ _x( 'Reply', 'verb' ) ); } /** * Filters the action links displayed for each comment in the Comments list table. * * @since 2.6.0 * * @param string[] $actions An array of comment actions. Default actions include: * 'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam', * 'Delete', and 'Trash'. * @param WP_Comment $comment The comment object. */ $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); $always_visible = false; $mode = get_user_setting( 'posts_list_mode', 'list' ); if ( 'excerpt' === $mode ) { $always_visible = true; } $output .= '
        '; $i = 0; foreach ( $actions as $action => $link ) { ++$i; if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i ) || 1 === $i ) { $separator = ''; } else { $separator = ' | '; } // Reply and quickedit need a hide-if-no-js span when not added with Ajax. if ( ( 'reply' === $action || 'quickedit' === $action ) && ! wp_doing_ajax() ) { $action .= ' hide-if-no-js'; } elseif ( ( 'untrash' === $action && 'trash' === $the_comment_status ) || ( 'unspam' === $action && 'spam' === $the_comment_status ) ) { if ( '1' === get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) ) { $action .= ' approve'; } else { $action .= ' unapprove'; } } $output .= "{$separator}{$link}"; } $output .= '
        '; $output .= ''; return $output; } /** * Outputs the checkbox column. * * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Comment $item The comment object. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $comment = $item; if ( $this->user_can ) { ?> '; $this->column_author( $comment ); echo ''; if ( $comment->comment_parent ) { $parent = get_comment( $comment->comment_parent ); if ( $parent ) { $parent_link = esc_url( get_comment_link( $parent ) ); $name = get_comment_author( $parent ); printf( /* translators: %s: Comment link. */ __( 'In reply to %s.' ), '' . $name . '' ); } } comment_text( $comment ); if ( $this->user_can ) { /** This filter is documented in wp-admin/includes/comment.php */ $comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content ); ?> 50 ) { $author_url_display = wp_html_excerpt( $author_url_display, 49, '…' ); } echo ''; comment_author( $comment ); echo '
        '; if ( ! empty( $author_url_display ) ) { // Print link to author URL, and disallow referrer information (without using target="_blank"). printf( '%s
        ', esc_url( $author_url ), esc_html( $author_url_display ) ); } if ( $this->user_can ) { if ( ! empty( $comment->comment_author_email ) ) { /** This filter is documented in wp-includes/comment-template.php */ $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment ); if ( ! empty( $email ) && '@' !== $email ) { printf( '%2$s
        ', esc_url( 'mailto:' . $email ), esc_html( $email ) ); } } $author_ip = get_comment_author_IP( $comment ); if ( $author_ip ) { $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail', ), admin_url( 'edit-comments.php' ) ); if ( 'spam' === $comment_status ) { $author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url ); } printf( '%2$s', esc_url( $author_ip_url ), esc_html( $author_ip ) ); } } } /** * Outputs the date column. * * @param WP_Comment $comment The comment object. */ public function column_date( $comment ) { $submitted = sprintf( /* translators: 1: Comment date, 2: Comment time. */ __( '%1$s at %2$s' ), /* translators: Comment date format. See https://www.php.net/manual/datetime.format.php */ get_comment_date( __( 'Y/m/d' ), $comment ), /* translators: Comment time format. See https://www.php.net/manual/datetime.format.php */ get_comment_date( __( 'g:i a' ), $comment ) ); echo ''; } /** * Outputs the response column. * * @param WP_Comment $comment The comment object. */ public function column_response( $comment ) { $post = get_post(); if ( ! $post ) { return; } if ( isset( $this->pending_count[ $post->ID ] ) ) { $pending_comments = $this->pending_count[ $post->ID ]; } else { $_pending_count_temp = get_pending_comments_num( array( $post->ID ) ); $pending_comments = $_pending_count_temp[ $post->ID ]; $this->pending_count[ $post->ID ] = $pending_comments; } if ( current_user_can( 'edit_post', $post->ID ) ) { $post_link = ""; $post_link .= esc_html( get_the_title( $post->ID ) ) . ''; } else { $post_link = esc_html( get_the_title( $post->ID ) ); } echo ''; } /** * Outputs the default column. * * @since 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Comment $item The comment object. * @param string $column_name The custom column's name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $comment = $item; /** * Fires when the default column output is displayed for a single row. * * @since 2.8.0 * * @param string $column_name The custom column's name. * @param string $comment_id The comment ID as a numeric string. */ do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID ); } } includes/options.php000064400000010224152213653150010560 0ustar00 '; echo '

        ' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '

        '; } includes/class-bulk-upgrader-skin.php000064400000015005152213653150013700 0ustar00 '', 'nonce' => '', ); $args = wp_parse_args( $args, $defaults ); parent::__construct( $args ); } /** * Sets up the strings used in the update process. * * @since 3.0.0 */ public function add_strings() { $this->upgrader->strings['skin_upgrade_start'] = __( 'The update process is starting. This process may take a while on some hosts, so please be patient.' ); /* translators: 1: Title of an update, 2: Error message. */ $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while updating %1$s: %2$s' ); /* translators: %s: Title of an update. */ $this->upgrader->strings['skin_update_failed'] = __( 'The update of %s failed.' ); /* translators: %s: Title of an update. */ $this->upgrader->strings['skin_update_successful'] = __( '%s updated successfully.' ); $this->upgrader->strings['skin_upgrade_end'] = __( 'All updates have been completed.' ); } /** * Displays a message about the update. * * @since 3.0.0 * @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support. * * @param string $feedback Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $feedback, ...$args ) { if ( isset( $this->upgrader->strings[ $feedback ] ) ) { $feedback = $this->upgrader->strings[ $feedback ]; } if ( str_contains( $feedback, '%' ) ) { if ( $args ) { $args = array_map( 'strip_tags', $args ); $args = array_map( 'esc_html', $args ); $feedback = vsprintf( $feedback, $args ); } } if ( empty( $feedback ) ) { return; } if ( $this->in_loop ) { echo "$feedback
        \n"; } else { echo "

        $feedback

        \n"; } } /** * Displays the header before the update process. * * @since 3.0.0 */ public function header() { // Nothing. This will be displayed within an iframe. } /** * Displays the footer following the update process. * * @since 3.0.0 */ public function footer() { // Nothing. This will be displayed within an iframe. } /** * Displays an error message about the update. * * @since 3.0.0 * @since 5.9.0 Renamed `$error` to `$errors` for PHP 8 named parameter support. * * @param string|WP_Error $errors Errors. */ public function error( $errors ) { if ( is_string( $errors ) && isset( $this->upgrader->strings[ $errors ] ) ) { $this->error = $this->upgrader->strings[ $errors ]; } if ( is_wp_error( $errors ) ) { $messages = array(); foreach ( $errors->get_error_messages() as $emessage ) { if ( $errors->get_error_data() && is_string( $errors->get_error_data() ) ) { $messages[] = $emessage . ' ' . esc_html( strip_tags( $errors->get_error_data() ) ); } else { $messages[] = $emessage; } } $this->error = implode( ', ', $messages ); } echo ''; } /** * Displays the header before the bulk update process. * * @since 3.0.0 */ public function bulk_header() { $this->feedback( 'skin_upgrade_start' ); } /** * Displays the footer following the bulk update process. * * @since 3.0.0 */ public function bulk_footer() { $this->feedback( 'skin_upgrade_end' ); } /** * Performs an action before a bulk update. * * @since 3.0.0 * * @param string $title */ public function before( $title = '' ) { $this->in_loop = true; printf( '

        ' . $this->upgrader->strings['skin_before_update_header'] . '

        ', $title, $this->upgrader->update_current, $this->upgrader->update_count ); echo ''; // This progress messages div gets moved via JavaScript when clicking on "More details.". echo '

        '; $this->flush_output(); } /** * Performs an action following a bulk update. * * @since 3.0.0 * * @param string $title */ public function after( $title = '' ) { echo '

        '; if ( $this->error || ! $this->result ) { if ( $this->error ) { $after_error_message = sprintf( $this->upgrader->strings['skin_update_failed_error'], $title, '' . $this->error . '' ); } else { $after_error_message = sprintf( $this->upgrader->strings['skin_update_failed'], $title ); } wp_admin_notice( $after_error_message, array( 'additional_classes' => array( 'error' ), ) ); echo ''; } if ( $this->result && ! is_wp_error( $this->result ) ) { if ( ! $this->error ) { echo '
        ' . '

        ' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) . ' ' . '

        '; } echo ''; } $this->reset(); $this->flush_output(); } /** * Resets the properties used in the update process. * * @since 3.0.0 */ public function reset() { $this->in_loop = false; $this->error = false; } /** * Flushes all output buffers. * * @since 3.0.0 */ public function flush_output() { wp_ob_end_flush_all(); flush(); } } includes/class-bulk-plugin-upgrader-skin.php000064400000005036152213653150015177 0ustar00upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' ); } /** * Performs an action before a bulk plugin update. * * @since 3.0.0 * * @param string $title */ public function before( $title = '' ) { parent::before( $this->plugin_info['Title'] ); } /** * Performs an action following a bulk plugin update. * * @since 3.0.0 * * @param string $title */ public function after( $title = '' ) { parent::after( $this->plugin_info['Title'] ); $this->decrement_update_count( 'plugin' ); } /** * Displays the footer following the bulk update process. * * @since 3.0.0 */ public function bulk_footer() { parent::bulk_footer(); $update_actions = array( 'plugins_page' => sprintf( '%s', self_admin_url( 'plugins.php' ), __( 'Go to Plugins page' ) ), 'updates_page' => sprintf( '%s', self_admin_url( 'update-core.php' ), __( 'Go to WordPress Updates page' ) ), ); if ( ! current_user_can( 'activate_plugins' ) ) { unset( $update_actions['plugins_page'] ); } /** * Filters the list of action links available following bulk plugin updates. * * @since 3.0.0 * * @param string[] $update_actions Array of plugin action links. * @param array $plugin_info Array of information for the last-updated plugin. */ $update_actions = apply_filters( 'update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info ); if ( ! empty( $update_actions ) ) { $this->feedback( implode( ' | ', (array) $update_actions ) ); } } } includes/update.php000064400000104034152213653150010352 0ustar00 'latest' ); } return $updates[0]; } /** * Gets available core updates. * * @since 2.7.0 * * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too, * set $options['available'] to false to skip not-dismissed updates. * @return array|false Array of the update objects on success, false on failure. */ function get_core_updates( $options = array() ) { $options = array_merge( array( 'available' => true, 'dismissed' => false, ), $options ); $dismissed = get_site_option( 'dismissed_update_core' ); if ( ! is_array( $dismissed ) ) { $dismissed = array(); } $from_api = get_site_transient( 'update_core' ); if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) ) { return false; } $updates = $from_api->updates; $result = array(); foreach ( $updates as $update ) { if ( 'autoupdate' === $update->response ) { continue; } if ( array_key_exists( $update->current . '|' . $update->locale, $dismissed ) ) { if ( $options['dismissed'] ) { $update->dismissed = true; $result[] = $update; } } else { if ( $options['available'] ) { $update->dismissed = false; $result[] = $update; } } } return $result; } /** * Gets the best available (and enabled) Auto-Update for WordPress core. * * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the installation allows it, else, 1.2.3. * * @since 3.7.0 * * @return object|false The core update offering on success, false on failure. */ function find_core_auto_update() { $updates = get_site_transient( 'update_core' ); if ( ! $updates || empty( $updates->updates ) ) { return false; } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $auto_update = false; $upgrader = new WP_Automatic_Updater(); foreach ( $updates->updates as $update ) { if ( 'autoupdate' !== $update->response ) { continue; } if ( ! $upgrader->should_update( 'core', $update, ABSPATH ) ) { continue; } if ( ! $auto_update || version_compare( $update->current, $auto_update->current, '>' ) ) { $auto_update = $update; } } return $auto_update; } /** * Gets and caches the checksums for the given version of WordPress. * * @since 3.7.0 * * @param string $version Version string to query. * @param string $locale Locale to query. * @return array|false An array of checksums on success, false on failure. */ function get_core_checksums( $version, $locale ) { $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), '', '&' ); $url = $http_url; $ssl = wp_http_supports( array( 'ssl' ) ); if ( $ssl ) { $url = set_url_scheme( $url, 'https' ); } $options = array( 'timeout' => wp_doing_cron() ? 30 : 3, ); $response = wp_remote_get( $url, $options ); if ( $ssl && is_wp_error( $response ) ) { wp_trigger_error( __FUNCTION__, sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); $response = wp_remote_get( $http_url, $options ); } if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) { return false; } $body = trim( wp_remote_retrieve_body( $response ) ); $body = json_decode( $body, true ); if ( ! is_array( $body ) || ! isset( $body['checksums'] ) || ! is_array( $body['checksums'] ) ) { return false; } return $body['checksums']; } /** * Dismisses core update. * * @since 2.7.0 * * @param object $update * @return bool True if the option was updated, false otherwise. */ function dismiss_core_update( $update ) { $dismissed = get_site_option( 'dismissed_update_core' ); $dismissed[ $update->current . '|' . $update->locale ] = true; return update_site_option( 'dismissed_update_core', $dismissed ); } /** * Undismisses core update. * * @since 2.7.0 * * @param string $version * @param string $locale * @return bool True if the option was updated, false otherwise. */ function undismiss_core_update( $version, $locale ) { $dismissed = get_site_option( 'dismissed_update_core' ); $key = $version . '|' . $locale; if ( ! isset( $dismissed[ $key ] ) ) { return false; } unset( $dismissed[ $key ] ); return update_site_option( 'dismissed_update_core', $dismissed ); } /** * Finds the available update for WordPress core. * * @since 2.7.0 * * @param string $version Version string to find the update for. * @param string $locale Locale to find the update for. * @return object|false The core update offering on success, false on failure. */ function find_core_update( $version, $locale ) { $from_api = get_site_transient( 'update_core' ); if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) ) { return false; } $updates = $from_api->updates; foreach ( $updates as $update ) { if ( $update->current === $version && $update->locale === $locale ) { return $update; } } return false; } /** * Returns core update footer message. * * @since 2.3.0 * * @param string $msg * @return string The core update footer message. */ function core_update_footer( $msg = '' ) { if ( ! current_user_can( 'update_core' ) ) { /* translators: %s: WordPress version. */ return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); } $cur = get_preferred_from_update_core(); if ( ! is_object( $cur ) ) { $cur = new stdClass(); } if ( ! isset( $cur->current ) ) { $cur->current = ''; } if ( ! isset( $cur->response ) ) { $cur->response = ''; } $is_development_version = preg_match( '/alpha|beta|RC/', wp_get_wp_version() ); if ( $is_development_version ) { return sprintf( /* translators: 1: WordPress version number, 2: URL to WordPress Updates screen. */ __( 'You are using a development version (%1$s). Cool! Please stay updated.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) ); } switch ( $cur->response ) { case 'upgrade': return sprintf( '%s', network_admin_url( 'update-core.php' ), /* translators: %s: WordPress version. */ sprintf( __( 'Get Version %s' ), $cur->current ) ); case 'latest': default: /* translators: %s: WordPress version. */ return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); } } /** * Returns core update notification message. * * @since 2.3.0 * * @global string $pagenow The filename of the current screen. * @return void|false Void on success, false if the update nag should not be displayed. */ function update_nag() { global $pagenow; if ( is_multisite() && ! current_user_can( 'update_core' ) ) { return false; } if ( 'update-core.php' === $pagenow ) { return; } $cur = get_preferred_from_update_core(); if ( ! isset( $cur->response ) || 'upgrade' !== $cur->response ) { return false; } $version_url = sprintf( /* translators: %s: WordPress version. */ esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ), sanitize_title( $cur->current ) ); if ( current_user_can( 'update_core' ) ) { $msg = sprintf( /* translators: 1: URL to WordPress release notes, 2: New WordPress version, 3: URL to network admin, 4: Accessibility text. */ __( 'WordPress %2$s is available! Please update now.' ), $version_url, $cur->current, network_admin_url( 'update-core.php' ), esc_attr__( 'Please update WordPress now' ) ); } else { $msg = sprintf( /* translators: 1: URL to WordPress release notes, 2: New WordPress version. */ __( 'WordPress %2$s is available! Please notify the site administrator.' ), $version_url, $cur->current ); } wp_admin_notice( $msg, array( 'type' => 'warning', 'additional_classes' => array( 'update-nag', 'inline' ), 'paragraph_wrap' => false, ) ); } /** * Displays WordPress version and active theme in the 'At a Glance' dashboard widget. * * @since 2.5.0 */ function update_right_now_message() { $theme_name = wp_get_theme(); if ( current_user_can( 'switch_themes' ) ) { $theme_name = sprintf( '%1$s', $theme_name ); } $msg = ''; if ( current_user_can( 'update_core' ) ) { $cur = get_preferred_from_update_core(); if ( isset( $cur->response ) && 'upgrade' === $cur->response ) { $msg .= sprintf( '%s ', network_admin_url( 'update-core.php' ), /* translators: %s: WordPress version number, or 'Latest' string. */ sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) ); } } /* translators: 1: Version number, 2: Theme name. */ $content = __( 'WordPress %1$s running %2$s theme.' ); /** * Filters the text displayed in the 'At a Glance' dashboard widget. * * Prior to 3.8.0, the widget was named 'Right Now'. * * @since 4.4.0 * * @param string $content Default text. */ $content = apply_filters( 'update_right_now_text', $content ); $msg .= sprintf( '' . $content . '', get_bloginfo( 'version', 'display' ), $theme_name ); echo "

        $msg

        "; } /** * Retrieves plugins with updates available. * * @since 2.9.0 * * @return array Array of plugin objects with available updates. */ function get_plugin_updates() { $all_plugins = get_plugins(); $upgrade_plugins = array(); $current = get_site_transient( 'update_plugins' ); foreach ( (array) $all_plugins as $plugin_file => $plugin_data ) { if ( isset( $current->response[ $plugin_file ] ) ) { $upgrade_plugins[ $plugin_file ] = (object) $plugin_data; $upgrade_plugins[ $plugin_file ]->update = $current->response[ $plugin_file ]; } } return $upgrade_plugins; } /** * Adds a callback to display update information for plugins with updates available. * * @since 2.9.0 */ function wp_plugin_update_rows() { if ( ! current_user_can( 'update_plugins' ) ) { return; } $plugins = get_site_transient( 'update_plugins' ); if ( isset( $plugins->response ) && is_array( $plugins->response ) ) { $plugins = array_keys( $plugins->response ); foreach ( $plugins as $plugin_file ) { add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 ); } } } /** * Displays update information for a plugin. * * @since 2.3.0 * * @param string $file Plugin basename. * @param array $plugin_data Plugin information. * @return void|false Void on success, false if the plugin update is not available. */ function wp_plugin_update_row( $file, $plugin_data ) { $current = get_site_transient( 'update_plugins' ); if ( ! isset( $current->response[ $file ] ) ) { return false; } $response = $current->response[ $file ]; $plugins_allowedtags = array( 'a' => array( 'href' => array(), 'title' => array(), ), 'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ), 'code' => array(), 'em' => array(), 'strong' => array(), ); $plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags ); $plugin_slug = $response->slug ?? $response->id; if ( isset( $response->slug ) ) { $details_url = self_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . $plugin_slug . '§ion=changelog' ); } elseif ( isset( $response->url ) ) { $details_url = $response->url; } else { $details_url = $plugin_data['PluginURI']; } $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 600, 'height' => 800, ), $details_url ); /** @var WP_Plugins_List_Table $wp_list_table */ $wp_list_table = _get_list_table( 'WP_Plugins_List_Table', array( 'screen' => get_current_screen(), ) ); if ( is_network_admin() || ! is_multisite() ) { if ( is_network_admin() ) { $active_class = is_plugin_active_for_network( $file ) ? ' active' : ''; } else { $active_class = is_plugin_active( $file ) ? ' active' : ''; } $requires_php = $response->requires_php ?? null; $compatible_php = is_php_version_compatible( $requires_php ); $notice_type = $compatible_php ? 'notice-warning' : 'notice-error'; printf( '' . '' . '

        ', $active_class, esc_attr( $plugin_slug . '-update' ), esc_attr( $plugin_slug ), esc_attr( $file ), esc_attr( $wp_list_table->get_column_count() ), $notice_type ); if ( ! current_user_can( 'update_plugins' ) ) { printf( /* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */ __( 'There is a new version of %1$s available. View version %4$s details.' ), $plugin_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Plugin name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) ), esc_attr( $response->new_version ) ); } elseif ( empty( $response->package ) ) { printf( /* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */ __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.' ), $plugin_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Plugin name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) ), esc_attr( $response->new_version ) ); } else { if ( $compatible_php ) { printf( /* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ __( 'There is a new version of %1$s available. View version %4$s details or update now.' ), $plugin_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Plugin name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) ), esc_attr( $response->new_version ), wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $file, 'upgrade-plugin_' . $file ), sprintf( 'class="update-link" aria-label="%s"', /* translators: %s: Plugin name. */ esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $plugin_name ) ) ) ); } else { printf( /* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number 5: URL to Update PHP page. */ __( 'There is a new version of %1$s available, but it does not work with your version of PHP. View version %4$s details or learn more about updating PHP.' ), $plugin_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Plugin name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $plugin_name, $response->new_version ) ) ), esc_attr( $response->new_version ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '
        ', '' ); } } /** * Fires at the end of the update message container in each * row of the plugins list table. * * The dynamic portion of the hook name, `$file`, refers to the path * of the plugin's primary file relative to the plugins directory. * * @since 2.8.0 * * @param array $plugin_data An array of plugin metadata. See get_plugin_data() * and the {@see 'plugin_row_meta'} filter for the list * of possible values. * @param object $response { * An object of metadata about the available plugin update. * * @type string $id Plugin ID, e.g. `w.org/plugins/[plugin-name]`. * @type string $slug Plugin slug. * @type string $plugin Plugin basename. * @type string $new_version New plugin version. * @type string $url Plugin URL. * @type string $package Plugin update package URL. * @type string[] $icons An array of plugin icon URLs. * @type string[] $banners An array of plugin banner URLs. * @type string[] $banners_rtl An array of plugin RTL banner URLs. * @type string $requires The version of WordPress which the plugin requires. * @type string $tested The version of WordPress the plugin is tested against. * @type string $requires_php The version of PHP which the plugin requires. * } */ do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores echo '

        '; } } /** * Retrieves themes with updates available. * * @since 2.9.0 * * @return array Array of theme objects with available updates. */ function get_theme_updates() { $current = get_site_transient( 'update_themes' ); if ( ! isset( $current->response ) ) { return array(); } $update_themes = array(); foreach ( $current->response as $stylesheet => $data ) { $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet ); $update_themes[ $stylesheet ]->update = $data; } return $update_themes; } /** * Adds a callback to display update information for themes with updates available. * * @since 3.1.0 */ function wp_theme_update_rows() { if ( ! current_user_can( 'update_themes' ) ) { return; } $themes = get_site_transient( 'update_themes' ); if ( isset( $themes->response ) && is_array( $themes->response ) ) { $themes = array_keys( $themes->response ); foreach ( $themes as $theme ) { add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 ); } } } /** * Displays update information for a theme. * * @since 3.1.0 * * @param string $theme_key Theme stylesheet. * @param WP_Theme $theme Theme object. * @return void|false Void on success, false if the theme update is not available. */ function wp_theme_update_row( $theme_key, $theme ) { $current = get_site_transient( 'update_themes' ); if ( ! isset( $current->response[ $theme_key ] ) ) { return false; } $response = $current->response[ $theme_key ]; $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 1024, 'height' => 800, ), $current->response[ $theme_key ]['url'] ); /** @var WP_MS_Themes_List_Table $wp_list_table */ $wp_list_table = _get_list_table( 'WP_MS_Themes_List_Table' ); $active = $theme->is_allowed( 'network' ) ? ' active' : ''; $requires_wp = $response['requires'] ?? null; $requires_php = $response['requires_php'] ?? null; $compatible_wp = is_wp_version_compatible( $requires_wp ); $compatible_php = is_php_version_compatible( $requires_php ); printf( '' . '' . '

        ', $active, esc_attr( $theme->get_stylesheet() . '-update' ), esc_attr( $theme->get_stylesheet() ), $wp_list_table->get_column_count() ); if ( $compatible_wp && $compatible_php ) { if ( ! current_user_can( 'update_themes' ) ) { printf( /* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number. */ __( 'There is a new version of %1$s available. View version %4$s details.' ), $theme['Name'], esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Theme name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) ), $response['new_version'] ); } elseif ( empty( $response['package'] ) ) { printf( /* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number. */ __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this theme.' ), $theme['Name'], esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Theme name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) ), $response['new_version'] ); } else { printf( /* translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ __( 'There is a new version of %1$s available. View version %4$s details or update now.' ), $theme['Name'], esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Theme name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme['Name'], $response['new_version'] ) ) ), $response['new_version'], wp_nonce_url( self_admin_url( 'update.php?action=upgrade-theme&theme=' ) . $theme_key, 'upgrade-theme_' . $theme_key ), sprintf( 'class="update-link" aria-label="%s"', /* translators: %s: Theme name. */ esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme['Name'] ) ) ) ); } } else { if ( ! $compatible_wp && ! $compatible_php ) { printf( /* translators: %s: Theme name. */ __( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ), $theme['Name'] ); if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { printf( /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ ' ' . __( 'Please update WordPress, and then learn more about updating PHP.' ), self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

        ', '' ); } elseif ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } elseif ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

        ', '' ); } } elseif ( ! $compatible_wp ) { printf( /* translators: %s: Theme name. */ __( 'There is a new version of %s available, but it does not work with your version of WordPress.' ), $theme['Name'] ); if ( current_user_can( 'update_core' ) ) { printf( /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } } elseif ( ! $compatible_php ) { printf( /* translators: %s: Theme name. */ __( 'There is a new version of %s available, but it does not work with your version of PHP.' ), $theme['Name'] ); if ( current_user_can( 'update_php' ) ) { printf( /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); wp_update_php_annotation( '

        ', '' ); } } } /** * Fires at the end of the update message container in each * row of the themes list table. * * The dynamic portion of the hook name, `$theme_key`, refers to * the theme slug as found in the WordPress.org themes repository. * * @since 3.1.0 * * @param WP_Theme $theme The WP_Theme object. * @param array $response { * An array of metadata about the available theme update. * * @type string $new_version New theme version. * @type string $url Theme URL. * @type string $package Theme update package URL. * } */ do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores echo '

        '; } /** * Displays maintenance nag HTML message. * * @since 2.7.0 * * @global int $upgrading * * @return void|false Void on success, false if the maintenance nag should not be displayed. */ function maintenance_nag() { global $upgrading; $nag = isset( $upgrading ); if ( ! $nag ) { $failed = get_site_option( 'auto_core_update_failed' ); /* * If an update failed critically, we may have copied over version.php but not other files. * In that case, if the installation claims we're running the version we attempted, nag. * This is serious enough to err on the side of nagging. * * If we simply failed to update before we tried to copy any files, then assume things are * OK if they are now running the latest. * * This flag is cleared whenever a successful update occurs using Core_Upgrader. */ $comparison = ! empty( $failed['critical'] ) ? '>=' : '>'; if ( isset( $failed['attempted'] ) && version_compare( $failed['attempted'], wp_get_wp_version(), $comparison ) ) { $nag = true; } } if ( ! $nag ) { return false; } if ( current_user_can( 'update_core' ) ) { $msg = sprintf( /* translators: %s: URL to WordPress Updates screen. */ __( 'An automated WordPress update has failed to complete - please attempt the update again now.' ), 'update-core.php' ); } else { $msg = __( 'An automated WordPress update has failed to complete! Please notify the site administrator.' ); } wp_admin_notice( $msg, array( 'type' => 'warning', 'additional_classes' => array( 'update-nag', 'inline' ), 'paragraph_wrap' => false, ) ); } /** * Prints the JavaScript templates for update admin notices. * * @since 4.6.0 * * Template takes one argument with four values: * * param {object} data { * Arguments for admin notice. * * @type string id ID of the notice. * @type string className Class names for the notice. * @type string message The notice's message. * @type string type The type of update the notice is for. Either 'plugin' or 'theme'. * } */ function wp_print_admin_notice_templates() { ?> Exit Recovery Mode' ), esc_url( $url ) ); wp_admin_notice( $message, array( 'type' => 'info' ) ); } /** * Checks whether auto-updates are enabled. * * @since 5.5.0 * * @param string $type The type of update being checked: Either 'theme' or 'plugin'. * @return bool True if auto-updates are enabled for `$type`, false otherwise. */ function wp_is_auto_update_enabled_for_type( $type ) { if ( ! class_exists( 'WP_Automatic_Updater' ) ) { require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php'; } $updater = new WP_Automatic_Updater(); $enabled = ! $updater->is_disabled(); switch ( $type ) { case 'plugin': /** * Filters whether plugins auto-update is enabled. * * @since 5.5.0 * * @param bool $enabled True if plugins auto-update is enabled, false otherwise. */ return apply_filters( 'plugins_auto_update_enabled', $enabled ); case 'theme': /** * Filters whether themes auto-update is enabled. * * @since 5.5.0 * * @param bool $enabled True if themes auto-update is enabled, false otherwise. */ return apply_filters( 'themes_auto_update_enabled', $enabled ); } return false; } /** * Checks whether auto-updates are forced for an item. * * @since 5.6.0 * * @param string $type The type of update being checked: Either 'theme' or 'plugin'. * @param bool|null $update Whether to update. The value of null is internally used * to detect whether nothing has hooked into this filter. * @param object $item The update offer. * @return bool True if auto-updates are forced for `$item`, false otherwise. */ function wp_is_auto_update_forced_for_item( $type, $update, $item ) { /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ return apply_filters( "auto_update_{$type}", $update, $item ); } /** * Determines the appropriate auto-update message to be displayed. * * @since 5.5.0 * * @return string The update message to be shown. */ function wp_get_auto_update_message() { $next_update_time = wp_next_scheduled( 'wp_version_check' ); // Check if the event exists. if ( false === $next_update_time ) { $message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' ); } else { $time_to_next_update = human_time_diff( (int) $next_update_time ); // See if cron is overdue. $overdue = ( time() - $next_update_time ) > 0; if ( $overdue ) { $message = sprintf( /* translators: %s: Duration that WP-Cron has been overdue. */ __( 'Automatic update overdue by %s. There may be a problem with WP-Cron.' ), $time_to_next_update ); } else { $message = sprintf( /* translators: %s: Time until the next update. */ __( 'Automatic update scheduled in %s.' ), $time_to_next_update ); } } return $message; } includes/class-language-pack-upgrader.php000064400000036250152213653150014505 0ustar00is_vcs_checkout( WP_CONTENT_DIR ) ) { return; } foreach ( $language_updates as $key => $language_update ) { $update = ! empty( $language_update->autoupdate ); /** * Filters whether to asynchronously update translation for core, a plugin, or a theme. * * @since 4.0.0 * * @param bool $update Whether to update. * @param object $language_update The update offer. */ $update = apply_filters( 'async_update_translation', $update, $language_update ); if ( ! $update ) { unset( $language_updates[ $key ] ); } } if ( empty( $language_updates ) ) { return; } // Re-use the automatic upgrader skin if the parent upgrader is using it. if ( $upgrader && $upgrader->skin instanceof Automatic_Upgrader_Skin ) { $skin = $upgrader->skin; } else { $skin = new Language_Pack_Upgrader_Skin( array( 'skip_header_footer' => true, ) ); } $lp_upgrader = new Language_Pack_Upgrader( $skin ); $lp_upgrader->bulk_upgrade( $language_updates ); } /** * Initializes the upgrade strings. * * @since 3.7.0 */ public function upgrade_strings() { $this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while they are updated as well.' ); $this->strings['up_to_date'] = __( 'Your translations are all up to date.' ); $this->strings['no_package'] = __( 'Update package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['process_failed'] = __( 'Translation update failed.' ); $this->strings['process_success'] = __( 'Translation updated successfully.' ); $this->strings['remove_old'] = __( 'Removing the old version of the translation…' ); $this->strings['remove_old_failed'] = __( 'Could not remove the old translation.' ); } /** * Upgrades a language pack. * * @since 3.7.0 * * @param string|false $update Optional. Whether an update offer is available. Default false. * @param array $args Optional. Other optional arguments, see * Language_Pack_Upgrader::bulk_upgrade(). Default empty array. * @return array|bool|WP_Error The result of the upgrade, or a WP_Error object instead. */ public function upgrade( $update = false, $args = array() ) { if ( $update ) { $update = array( $update ); } $results = $this->bulk_upgrade( $update, $args ); if ( ! is_array( $results ) ) { return $results; } return $results[0]; } /** * Upgrades several language packs at once. * * @since 3.7.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param object[] $language_updates Optional. Array of language packs to update. See {@see wp_get_translation_updates()}. * Default empty array. * @param array $args { * Other arguments for upgrading multiple language packs. Default empty array. * * @type bool $clear_update_cache Whether to clear the update cache when done. * Default true. * } * @return array|bool|WP_Error Will return an array of results, or true if there are no updates, * false or WP_Error for initial errors. */ public function bulk_upgrade( $language_updates = array(), $args = array() ) { global $wp_filesystem; $defaults = array( 'clear_update_cache' => true, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->upgrade_strings(); if ( ! $language_updates ) { $language_updates = wp_get_translation_updates(); } if ( empty( $language_updates ) ) { $this->skin->header(); $this->skin->set_result( true ); $this->skin->feedback( 'up_to_date' ); $this->skin->bulk_footer(); $this->skin->footer(); return true; } if ( 'upgrader_process_complete' === current_filter() ) { $this->skin->feedback( 'starting_upgrade' ); } // Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230. remove_all_filters( 'upgrader_pre_install' ); remove_all_filters( 'upgrader_clear_destination' ); remove_all_filters( 'upgrader_post_install' ); remove_all_filters( 'upgrader_source_selection' ); add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 ); $this->skin->header(); // Connect to the filesystem first. $res = $this->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); if ( ! $res ) { $this->skin->footer(); return false; } $results = array(); $this->update_count = count( $language_updates ); $this->update_current = 0; /* * The filesystem's mkdir() is not recursive. Make sure WP_LANG_DIR exists, * as we then may need to create a /plugins or /themes directory inside of it. */ $remote_destination = $wp_filesystem->find_folder( WP_LANG_DIR ); if ( ! $wp_filesystem->exists( $remote_destination ) ) { if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) { return new WP_Error( 'mkdir_failed_lang_dir', $this->strings['mkdir_failed'], $remote_destination ); } } $language_updates_results = array(); foreach ( $language_updates as $language_update ) { $this->skin->language_update = $language_update; $destination = WP_LANG_DIR; if ( 'plugin' === $language_update->type ) { $destination .= '/plugins'; } elseif ( 'theme' === $language_update->type ) { $destination .= '/themes'; } ++$this->update_current; $options = array( 'package' => $language_update->package, 'destination' => $destination, 'clear_destination' => true, 'abort_if_destination_exists' => false, // We expect the destination to exist. 'clear_working' => true, 'is_multi' => true, 'hook_extra' => array( 'language_update_type' => $language_update->type, 'language_update' => $language_update, ), ); $result = $this->run( $options ); $results[] = $this->result; // Prevent credentials auth screen from displaying multiple times. if ( false === $result ) { break; } $language_updates_results[] = array( 'language' => $language_update->language, 'type' => $language_update->type, 'slug' => $language_update->slug ?? 'default', 'version' => $language_update->version, ); } // Remove upgrade hooks which are not required for translation updates. remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); remove_action( 'upgrader_process_complete', 'wp_version_check' ); remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); remove_action( 'upgrader_process_complete', 'wp_update_themes' ); /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'translation', 'bulk' => true, 'translations' => $language_updates_results, ) ); // Re-add upgrade hooks. add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 ); add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 ); add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); $this->skin->bulk_footer(); $this->skin->footer(); // Clean up our hooks, in case something else does an upgrade on this connection. remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); if ( $parsed_args['clear_update_cache'] ) { wp_clean_update_cache(); } return $results; } /** * Checks that the package source contains .mo and .po files. * * Hooked to the {@see 'upgrader_source_selection'} filter by * Language_Pack_Upgrader::bulk_upgrade(). * * @since 3.7.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string|WP_Error $source The path to the downloaded package source. * @param string $remote_source Remote file source location. * @return string|WP_Error The source as passed, or a WP_Error object on failure. */ public function check_package( $source, $remote_source ) { global $wp_filesystem; if ( is_wp_error( $source ) ) { return $source; } // Check that the folder contains a valid language. $files = $wp_filesystem->dirlist( $remote_source ); // Check to see if the expected files exist in the folder. $po = false; $mo = false; $php = false; foreach ( (array) $files as $file => $filedata ) { if ( str_ends_with( $file, '.po' ) ) { $po = true; } elseif ( str_ends_with( $file, '.mo' ) ) { $mo = true; } elseif ( str_ends_with( $file, '.l10n.php' ) ) { $php = true; } } if ( $php ) { return $source; } if ( ! $mo || ! $po ) { return new WP_Error( 'incompatible_archive_pomo', $this->strings['incompatible_archive'], sprintf( /* translators: 1: .po, 2: .mo, 3: .l10n.php */ __( 'The language pack is missing either the %1$s, %2$s, or %3$s files.' ), '.po', '.mo', '.l10n.php' ) ); } return $source; } /** * Gets the name of an item being updated. * * @since 3.7.0 * * @param object $update The data for an update. * @return string The name of the item being updated. */ public function get_name_for_update( $update ) { switch ( $update->type ) { case 'core': return 'WordPress'; // Not translated. case 'theme': $theme = wp_get_theme( $update->slug ); if ( $theme->exists() ) { return $theme->get( 'Name' ); } break; case 'plugin': $plugin_data = get_plugins( '/' . $update->slug ); $plugin_data = reset( $plugin_data ); if ( $plugin_data ) { return $plugin_data['Name']; } break; } return ''; } /** * Clears existing translations where this item is going to be installed into. * * @since 5.1.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $remote_destination The location on the remote filesystem to be cleared. * @return bool|WP_Error True upon success, WP_Error on failure. */ public function clear_destination( $remote_destination ) { global $wp_filesystem; $language_update = $this->skin->language_update; $language_directory = WP_LANG_DIR . '/'; // Local path for use with glob(). if ( 'core' === $language_update->type ) { $files = array( $remote_destination . $language_update->language . '.po', $remote_destination . $language_update->language . '.mo', $remote_destination . $language_update->language . '.l10n.php', $remote_destination . 'admin-' . $language_update->language . '.po', $remote_destination . 'admin-' . $language_update->language . '.mo', $remote_destination . 'admin-' . $language_update->language . '.l10n.php', $remote_destination . 'admin-network-' . $language_update->language . '.po', $remote_destination . 'admin-network-' . $language_update->language . '.mo', $remote_destination . 'admin-network-' . $language_update->language . '.l10n.php', $remote_destination . 'continents-cities-' . $language_update->language . '.po', $remote_destination . 'continents-cities-' . $language_update->language . '.mo', $remote_destination . 'continents-cities-' . $language_update->language . '.l10n.php', ); $json_translation_files = glob( $language_directory . $language_update->language . '-*.json' ); if ( $json_translation_files ) { foreach ( $json_translation_files as $json_translation_file ) { $files[] = str_replace( $language_directory, $remote_destination, $json_translation_file ); } } } else { $files = array( $remote_destination . $language_update->slug . '-' . $language_update->language . '.po', $remote_destination . $language_update->slug . '-' . $language_update->language . '.mo', $remote_destination . $language_update->slug . '-' . $language_update->language . '.l10n.php', ); $language_directory = $language_directory . $language_update->type . 's/'; $json_translation_files = glob( $language_directory . $language_update->slug . '-' . $language_update->language . '-*.json' ); if ( $json_translation_files ) { foreach ( $json_translation_files as $json_translation_file ) { $files[] = str_replace( $language_directory, $remote_destination, $json_translation_file ); } } } $files = array_filter( $files, array( $wp_filesystem, 'exists' ) ); // No files to delete. if ( ! $files ) { return true; } // Check all files are writable before attempting to clear the destination. $unwritable_files = array(); // Check writability. foreach ( $files as $file ) { if ( ! $wp_filesystem->is_writable( $file ) ) { // Attempt to alter permissions to allow writes and try again. $wp_filesystem->chmod( $file, FS_CHMOD_FILE ); if ( ! $wp_filesystem->is_writable( $file ) ) { $unwritable_files[] = $file; } } } if ( ! empty( $unwritable_files ) ) { return new WP_Error( 'files_not_writable', $this->strings['files_not_writable'], implode( ', ', $unwritable_files ) ); } foreach ( $files as $file ) { if ( ! $wp_filesystem->delete( $file ) ) { return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] ); } } return true; } } includes/dashboard.php000064400000211357152213653150011026 0ustar00cap->create_posts ) ) { $quick_draft_title = sprintf( '%1$s %2$s', __( 'Quick Draft' ), __( 'Your Recent Drafts' ) ); wp_add_dashboard_widget( 'dashboard_quick_press', $quick_draft_title, 'wp_dashboard_quick_press' ); } // WordPress Events and News. wp_add_dashboard_widget( 'dashboard_primary', __( 'WordPress Events and News' ), 'wp_dashboard_events_news' ); if ( is_network_admin() ) { /** * Fires after core widgets for the Network Admin dashboard have been registered. * * @since 3.1.0 */ do_action( 'wp_network_dashboard_setup' ); /** * Filters the list of widgets to load for the Network Admin dashboard. * * @since 3.1.0 * * @param string[] $dashboard_widgets An array of dashboard widget IDs. */ $dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() ); } elseif ( is_user_admin() ) { /** * Fires after core widgets for the User Admin dashboard have been registered. * * @since 3.1.0 */ do_action( 'wp_user_dashboard_setup' ); /** * Filters the list of widgets to load for the User Admin dashboard. * * @since 3.1.0 * * @param string[] $dashboard_widgets An array of dashboard widget IDs. */ $dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() ); } else { /** * Fires after core widgets for the admin dashboard have been registered. * * @since 2.5.0 */ do_action( 'wp_dashboard_setup' ); /** * Filters the list of widgets to load for the admin dashboard. * * @since 2.5.0 * * @param string[] $dashboard_widgets An array of dashboard widget IDs. */ $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() ); } foreach ( $dashboard_widgets as $widget_id ) { $name = empty( $wp_registered_widgets[ $widget_id ]['all_link'] ) ? $wp_registered_widgets[ $widget_id ]['name'] : $wp_registered_widgets[ $widget_id ]['name'] . " " . __( 'View all' ) . ''; wp_add_dashboard_widget( $widget_id, $name, $wp_registered_widgets[ $widget_id ]['callback'], $wp_registered_widget_controls[ $widget_id ]['callback'] ); } if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['widget_id'] ) ) { check_admin_referer( 'edit-dashboard-widget_' . $_POST['widget_id'], 'dashboard-widget-nonce' ); ob_start(); // Hack - but the same hack wp-admin/widgets.php uses. wp_dashboard_trigger_widget_control( $_POST['widget_id'] ); ob_end_clean(); wp_redirect( remove_query_arg( 'edit' ) ); exit; } /** This action is documented in wp-admin/includes/meta-boxes.php */ do_action( 'do_meta_boxes', $screen->id, 'normal', '' ); /** This action is documented in wp-admin/includes/meta-boxes.php */ do_action( 'do_meta_boxes', $screen->id, 'side', '' ); } /** * Adds a new dashboard widget. * * @since 2.7.0 * @since 5.6.0 The `$context` and `$priority` parameters were added. * * @global callable[] $wp_dashboard_control_callbacks * * @param string $widget_id Widget ID (used in the 'id' attribute for the widget). * @param string $widget_name Title of the widget. * @param callable $callback Function that fills the widget with the desired content. * The function should echo its output. * @param callable $control_callback Optional. Function that outputs controls for the widget. Default null. * @param array $callback_args Optional. Data that should be set as the $args property of the widget array * (which is the second parameter passed to your callback). Default null. * @param string $context Optional. The context within the screen where the box should display. * Accepts 'normal', 'side', 'column3', or 'column4'. Default 'normal'. * @param string $priority Optional. The priority within the context where the box should show. * Accepts 'high', 'core', 'default', or 'low'. Default 'core'. */ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null, $callback_args = null, $context = 'normal', $priority = 'core' ) { global $wp_dashboard_control_callbacks; $screen = get_current_screen(); $private_callback_args = array( '__widget_basename' => $widget_name ); if ( is_null( $callback_args ) ) { $callback_args = $private_callback_args; } elseif ( is_array( $callback_args ) ) { $callback_args = array_merge( $callback_args, $private_callback_args ); } if ( $control_callback && is_callable( $control_callback ) && current_user_can( 'edit_dashboard' ) ) { $wp_dashboard_control_callbacks[ $widget_id ] = $control_callback; if ( isset( $_GET['edit'] ) && $widget_id === $_GET['edit'] ) { list($url) = explode( '#', add_query_arg( 'edit', false ), 2 ); $widget_name .= ' ' . __( 'Cancel' ) . ''; $callback = '_wp_dashboard_control_callback'; } else { list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 ); $widget_name .= ' ' . __( 'Configure' ) . ''; } } $side_widgets = array( 'dashboard_quick_press', 'dashboard_primary' ); if ( in_array( $widget_id, $side_widgets, true ) ) { $context = 'side'; } $high_priority_widgets = array( 'dashboard_browser_nag', 'dashboard_php_nag' ); if ( in_array( $widget_id, $high_priority_widgets, true ) ) { $priority = 'high'; } if ( empty( $context ) ) { $context = 'normal'; } if ( empty( $priority ) ) { $priority = 'core'; } add_meta_box( $widget_id, $widget_name, $callback, $screen, $context, $priority, $callback_args ); } /** * Outputs controls for the current dashboard widget. * * @access private * @since 2.7.0 * * @param mixed $dashboard * @param array $meta_box */ function _wp_dashboard_control_callback( $dashboard, $meta_box ) { echo '
        '; wp_dashboard_trigger_widget_control( $meta_box['id'] ); wp_nonce_field( 'edit-dashboard-widget_' . $meta_box['id'], 'dashboard-widget-nonce' ); echo ''; submit_button( __( 'Save Changes' ) ); echo '
        '; } /** * Displays the dashboard. * * @since 2.5.0 */ function wp_dashboard() { $screen = get_current_screen(); $columns = absint( $screen->get_columns() ); $columns_css = ''; if ( $columns ) { $columns_css = " columns-$columns"; } ?>
        id, 'normal', '' ); ?>
        id, 'side', '' ); ?>
        id, 'column3', '' ); ?>
        id, 'column4', '' ); ?>
          publish ) { if ( 'post' === $post_type ) { /* translators: %s: Number of posts. */ $text = _n( '%s Published post', '%s Published posts', $num_posts->publish ); } else { /* translators: %s: Number of pages. */ $text = _n( '%s Published page', '%s Published pages', $num_posts->publish ); } $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); $post_type_object = get_post_type_object( $post_type ); if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) { $url = add_query_arg( array( 'post_status' => 'publish', 'post_type' => $post_type, ), admin_url( 'edit.php' ) ); printf( '
        • %3$s
        • ', $post_type, esc_url( $url ), esc_html( $text ) ); } else { printf( '
        • %2$s
        • ', $post_type, $text ); } } } // Comments. $num_comm = wp_count_comments(); if ( $num_comm && ( $num_comm->approved || $num_comm->moderated ) ) { /* translators: %s: Number of comments. */ $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); ?>
        • moderated ); /* translators: %s: Number of comments. */ $text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated ), $moderated_comments_count_i18n ); ?>
        • ' . implode( "\n
        • ", $elements ) . "
        • \n"; } ?>
        $content

        "; } ?>
        ' . __( 'Create a New Site' ) . ''; } if ( current_user_can( 'create_users' ) ) { $actions['create-user'] = '' . __( 'Create a New User' ) . ''; } $c_users = get_user_count(); $c_blogs = get_blog_count(); /* translators: %s: Number of users on the network. */ $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) ); /* translators: %s: Number of sites on the network. */ $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) ); /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network. */ $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text ); if ( $actions ) { echo '
          '; foreach ( $actions as $class => $action ) { $actions[ $class ] = "\t
        • $action"; } echo implode( " |
        • \n", $actions ) . "\n"; echo '
        '; } ?>

        'submit_users' ) ); ?>

        'submit_sites' ) ); ?>

        post_status ) { // auto-draft doesn't exist anymore. $post = get_default_post_to_edit( 'post', true ); update_user_option( get_current_user_id(), 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID. } else { $post->post_title = ''; // Remove the auto draft title. } } else { $post = get_default_post_to_edit( 'post', true ); $user_id = get_current_user_id(); // Don't create an option if this is a super admin who does not belong to this site. if ( in_array( get_current_blog_id(), array_keys( get_blogs_of_user( $user_id ) ), true ) ) { update_user_option( $user_id, 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID. } } $post_ID = (int) $post->ID; ?>
        array( 'error' ), ) ); } ?>

        'save-post' ) ); ?>

        'post', 'post_status' => 'draft', 'author' => get_current_user_id(), 'posts_per_page' => 4, 'orderby' => 'modified', 'order' => 'DESC', ); /** * Filters the post query arguments for the 'Recent Drafts' dashboard widget. * * @since 4.4.0 * * @param array $query_args The query arguments for the 'Recent Drafts' dashboard widget. */ $query_args = apply_filters( 'dashboard_recent_drafts_query_args', $query_args ); $drafts = get_posts( $query_args ); if ( ! $drafts ) { return; } } echo '
        '; if ( count( $drafts ) > 3 ) { printf( '

        %s

        ' . "\n", esc_url( admin_url( 'edit.php?post_status=draft' ) ), __( 'View all drafts' ) ); } echo '

        ' . __( 'Your Recent Drafts' ) . "

        \n"; echo '
          '; /* translators: Maximum number of words used in a preview of a draft on the dashboard. */ $draft_length = (int) _x( '10', 'draft_length' ); $drafts = array_slice( $drafts, 0, 3 ); foreach ( $drafts as $draft ) { $url = get_edit_post_link( $draft->ID ); $title = _draft_or_post_title( $draft->ID ); echo "
        • \n"; printf( '
          %s
          ', esc_url( $url ), /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), esc_html( $title ), get_the_time( 'c', $draft ), get_the_time( __( 'F j, Y' ), $draft ) ); $the_content = wp_trim_words( $draft->post_content, $draft_length ); if ( $the_content ) { echo '

          ' . $the_content . '

          '; } echo "
        • \n"; } echo "
        \n"; echo '
        '; } /** * Outputs a row for the Recent Comments widget. * * @access private * @since 2.7.0 * * @global WP_Comment $comment Global comment object. * * @param WP_Comment $comment The current comment. * @param bool $show_date Optional. Whether to display the date. */ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { $GLOBALS['comment'] = clone $comment; if ( $comment->comment_post_ID > 0 ) { $comment_post_title = _draft_or_post_title( $comment->comment_post_ID ); $comment_post_url = get_the_permalink( $comment->comment_post_ID ); $comment_post_link = '' . $comment_post_title . ''; } else { $comment_post_link = ''; } $actions_string = ''; if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { // Pre-order it: Approve | Reply | Edit | Spam | Trash. $actions = array( 'approve' => '', 'unapprove' => '', 'reply' => '', 'edit' => '', 'spam' => '', 'trash' => '', 'delete' => '', 'view' => '', ); $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( 'approve-comment_' . $comment->comment_ID ) ); $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( 'delete-comment_' . $comment->comment_ID ) ); $action_string = 'comment.php?action=%s&p=' . $comment->comment_post_ID . '&c=' . $comment->comment_ID . '&%s'; $approve_url = sprintf( $action_string, 'approvecomment', $approve_nonce ); $unapprove_url = sprintf( $action_string, 'unapprovecomment', $approve_nonce ); $spam_url = sprintf( $action_string, 'spamcomment', $del_nonce ); $trash_url = sprintf( $action_string, 'trashcomment', $del_nonce ); $delete_url = sprintf( $action_string, 'deletecomment', $del_nonce ); $actions['approve'] = sprintf( '%s', esc_url( $approve_url ), "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", esc_attr__( 'Approve this comment' ), __( 'Approve' ) ); $actions['unapprove'] = sprintf( '%s', esc_url( $unapprove_url ), "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", esc_attr__( 'Unapprove this comment' ), __( 'Unapprove' ) ); $actions['edit'] = sprintf( '%s', "comment.php?action=editcomment&c={$comment->comment_ID}", esc_attr__( 'Edit this comment' ), __( 'Edit' ) ); $actions['reply'] = sprintf( '', $comment->comment_ID, $comment->comment_post_ID, esc_attr__( 'Reply to this comment' ), /* translators: Comment reply button text. */ _x( 'Reply', 'verb' ) ); $actions['spam'] = sprintf( '%s', esc_url( $spam_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", esc_attr__( 'Mark this comment as spam' ), /* translators: "Mark as spam" link. */ _x( 'Spam', 'verb' ) ); if ( ! EMPTY_TRASH_DAYS ) { $actions['delete'] = sprintf( '%s', esc_url( $delete_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", esc_attr__( 'Delete this comment permanently' ), __( 'Delete Permanently' ) ); } else { $actions['trash'] = sprintf( '%s', esc_url( $trash_url ), "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", esc_attr__( 'Move this comment to the Trash' ), _x( 'Trash', 'verb' ) ); } $actions['view'] = sprintf( '%s', esc_url( get_comment_link( $comment ) ), esc_attr__( 'View this comment' ), __( 'View' ) ); /** This filter is documented in wp-admin/includes/class-wp-comments-list-table.php */ $actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment ); $i = 0; foreach ( $actions as $action => $link ) { ++$i; if ( ( ( 'approve' === $action || 'unapprove' === $action ) && 2 === $i ) || 1 === $i ) { $separator = ''; } else { $separator = ' | '; } // Reply and quickedit need a hide-if-no-js span. if ( 'reply' === $action || 'quickedit' === $action ) { $action .= ' hide-if-no-js'; } if ( 'view' === $action && '1' !== $comment->comment_approved ) { $action .= ' hidden'; } $actions_string .= "{$separator}{$link}"; } } ?>
      • > comment_type || 'comment' === $comment->comment_type ) : ?>

        ' . get_comment_author_link( $comment ) . '', $comment_post_link, '' . __( '[Pending]' ) . '' ); } else { printf( /* translators: 1: Comment author, 2: Notification if the comment is pending. */ __( 'From %1$s %2$s' ), '' . get_comment_author_link( $comment ) . '', '' . __( '[Pending]' ) . '' ); } ?>

        comment_type ) { case 'pingback': $type = __( 'Pingback' ); break; case 'trackback': $type = __( 'Trackback' ); break; default: $type = ucwords( $comment->comment_type ); } $type = esc_html( $type ); ?>

        $type", $comment_post_link, '' . __( '[Pending]' ) . '' ); } else { printf( /* translators: 1: Type of comment, 2: Notification if the comment is pending. */ _x( '%1$s %2$s', 'dashboard' ), "$type", '' . __( '[Pending]' ) . '' ); } ?>

      • '; $future_posts = wp_dashboard_recent_posts( array( 'max' => 5, 'status' => 'future', 'order' => 'ASC', 'title' => __( 'Publishing Soon' ), 'id' => 'future-posts', ) ); $recent_posts = wp_dashboard_recent_posts( array( 'max' => 5, 'status' => 'publish', 'order' => 'DESC', 'title' => __( 'Recently Published' ), 'id' => 'published-posts', ) ); $recent_comments = wp_dashboard_recent_comments(); if ( ! $future_posts && ! $recent_posts && ! $recent_comments ) { echo '
        '; echo '

        ' . __( 'No activity yet!' ) . '

        '; echo '
        '; } echo ''; } /** * Generates Publishing Soon and Recently Published sections. * * @since 3.8.0 * * @param array $args { * An array of query and display arguments. * * @type int $max Number of posts to display. * @type string $status Post status. * @type string $order Designates ascending ('ASC') or descending ('DESC') order. * @type string $title Section title. * @type string $id The container id. * } * @return bool False if no posts were found. True otherwise. */ function wp_dashboard_recent_posts( $args ) { $query_args = array( 'post_type' => 'post', 'post_status' => $args['status'], 'orderby' => 'date', 'order' => $args['order'], 'posts_per_page' => (int) $args['max'], 'no_found_rows' => true, 'cache_results' => true, 'perm' => ( 'future' === $args['status'] ) ? 'editable' : 'readable', ); /** * Filters the query arguments used for the Recent Posts widget. * * @since 4.2.0 * * @param array $query_args The arguments passed to WP_Query to produce the list of posts. */ $query_args = apply_filters( 'dashboard_recent_posts_query_args', $query_args ); $posts = new WP_Query( $query_args ); if ( $posts->have_posts() ) { echo '
        '; echo '

        ' . $args['title'] . '

        '; echo '
          '; $today = current_time( 'Y-m-d' ); $tomorrow = current_datetime()->modify( '+1 day' )->format( 'Y-m-d' ); $year = current_time( 'Y' ); while ( $posts->have_posts() ) { $posts->the_post(); $time = get_the_time( 'U' ); if ( ! is_int( $time ) ) { /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/manual/datetime.format.php */ $date = get_the_date( __( 'M jS Y' ) ); } elseif ( gmdate( 'Y-m-d', $time ) === $today ) { $date = __( 'Today' ); } elseif ( gmdate( 'Y-m-d', $time ) === $tomorrow ) { $date = __( 'Tomorrow' ); } elseif ( gmdate( 'Y', $time ) !== $year ) { /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://www.php.net/manual/datetime.format.php */ $date = date_i18n( __( 'M jS Y' ), $time ); } else { /* translators: Date and time format for recent posts on the dashboard, see https://www.php.net/manual/datetime.format.php */ $date = date_i18n( __( 'M jS' ), $time ); } // Use the post edit link for those who can edit, the permalink otherwise. $recent_post_link = current_user_can( 'edit_post', get_the_ID() ) ? get_edit_post_link() : get_permalink(); $draft_or_post_title = _draft_or_post_title(); printf( '
        • %1$s %4$s
        • ', /* translators: 1: Relative date, 2: Time. */ sprintf( _x( '%1$s, %2$s', 'dashboard' ), $date, get_the_time() ), $recent_post_link, /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ), $draft_or_post_title ); } echo '
        '; echo '
        '; } else { return false; } wp_reset_postdata(); return true; } /** * Show Comments section. * * @since 3.8.0 * * @param int $total_items Optional. Number of comments to query. Default 5. * @return bool False if no comments were found. True otherwise. */ function wp_dashboard_recent_comments( $total_items = 5 ) { // Select all comment types and filter out spam later for better query performance. $comments = array(); $comments_query = array( 'number' => $total_items * 5, 'offset' => 0, ); if ( ! current_user_can( 'edit_posts' ) ) { $comments_query['status'] = 'approve'; } $comments_count = 0; do { $possible = get_comments( $comments_query ); if ( empty( $possible ) || ! is_array( $possible ) ) { break; } foreach ( $possible as $comment ) { if ( ! current_user_can( 'edit_post', $comment->comment_post_ID ) && ( post_password_required( $comment->comment_post_ID ) || ! current_user_can( 'read_post', $comment->comment_post_ID ) ) ) { // The user has no access to the post and thus cannot see the comments. continue; } $comments[] = $comment; $comments_count = count( $comments ); if ( $comments_count === $total_items ) { break 2; } } $comments_query['offset'] += $comments_query['number']; $comments_query['number'] = $total_items * 10; } while ( $comments_count < $total_items ); if ( $comments ) { echo '
        '; echo '

        ' . __( 'Recent Comments' ) . '

        '; echo '
          '; foreach ( $comments as $comment ) { _wp_dashboard_recent_comments_row( $comment ); } echo '
        '; if ( current_user_can( 'edit_posts' ) ) { echo '

        ' . /* translators: Hidden accessibility text. */ __( 'View more comments' ) . '

        '; _get_list_table( 'WP_Comments_List_Table' )->views(); } wp_comment_reply( -1, false, 'dashboard', false ); wp_comment_trashnotice(); echo '
        '; } else { return false; } return true; } /** * Display generic dashboard RSS widget feed. * * @since 2.5.0 * * @param string $widget_id */ function wp_dashboard_rss_output( $widget_id ) { $widgets = get_option( 'dashboard_widget_options' ); echo '
        '; wp_widget_rss_output( $widgets[ $widget_id ] ); echo '
        '; } /** * Checks to see if all of the feed url in $check_urls are cached. * * If $check_urls is empty, look for the rss feed url found in the dashboard * widget options of $widget_id. If cached, call $callback, a function that * echoes out output for this widget. If not cache, echo a "Loading..." stub * which is later replaced by Ajax call (see top of /wp-admin/index.php) * * @since 2.5.0 * @since 5.3.0 Formalized the existing and already documented `...$args` parameter * by adding it to the function signature. * * @param string $widget_id The widget ID. * @param callable $callback The callback function used to display each feed. * @param array $check_urls RSS feeds. * @param mixed ...$args Optional additional parameters to pass to the callback function. * @return bool True on success, false on failure. */ function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array(), ...$args ) { $doing_ajax = wp_doing_ajax(); $loading = '

        ' . __( 'Loading…' ) . '

        '; $loading .= wp_get_admin_notice( __( 'This widget requires JavaScript.' ), array( 'type' => 'error', 'additional_classes' => array( 'inline', 'hide-if-js' ), ) ); if ( empty( $check_urls ) ) { $widgets = get_option( 'dashboard_widget_options' ); if ( empty( $widgets[ $widget_id ]['url'] ) && ! $doing_ajax ) { echo $loading; return false; } $check_urls = array( $widgets[ $widget_id ]['url'] ); } $locale = get_user_locale(); $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale ); $output = get_transient( $cache_key ); if ( false !== $output ) { echo $output; return true; } if ( ! $doing_ajax ) { echo $loading; return false; } if ( $callback && is_callable( $callback ) ) { array_unshift( $args, $widget_id, $check_urls ); ob_start(); call_user_func_array( $callback, $args ); // Default lifetime in cache of 12 hours (same as the feeds). set_transient( $cache_key, ob_get_flush(), 12 * HOUR_IN_SECONDS ); } return true; } // // Dashboard Widgets Controls. // /** * Calls widget control callback. * * @since 2.5.0 * * @global callable[] $wp_dashboard_control_callbacks * * @param int|false $widget_control_id Optional. Registered widget ID. Default false. */ function wp_dashboard_trigger_widget_control( $widget_control_id = false ) { global $wp_dashboard_control_callbacks; if ( is_scalar( $widget_control_id ) && $widget_control_id && isset( $wp_dashboard_control_callbacks[ $widget_control_id ] ) && is_callable( $wp_dashboard_control_callbacks[ $widget_control_id ] ) ) { call_user_func( $wp_dashboard_control_callbacks[ $widget_control_id ], '', array( 'id' => $widget_control_id, 'callback' => $wp_dashboard_control_callbacks[ $widget_control_id ], ) ); } } /** * Sets up the RSS dashboard widget control and $args to be used as input to wp_widget_rss_form(). * * Handles POST data from RSS-type widgets. * * @since 2.5.0 * * @param string $widget_id * @param array $form_inputs */ function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) { $widget_options = get_option( 'dashboard_widget_options' ); if ( ! $widget_options ) { $widget_options = array(); } if ( ! isset( $widget_options[ $widget_id ] ) ) { $widget_options[ $widget_id ] = array(); } $number = 1; // Hack to use wp_widget_rss_form(). $widget_options[ $widget_id ]['number'] = $number; if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['widget-rss'][ $number ] ) ) { $_POST['widget-rss'][ $number ] = wp_unslash( $_POST['widget-rss'][ $number ] ); $widget_options[ $widget_id ] = wp_widget_rss_process( $_POST['widget-rss'][ $number ] ); $widget_options[ $widget_id ]['number'] = $number; // Title is optional. If black, fill it if possible. if ( ! $widget_options[ $widget_id ]['title'] && isset( $_POST['widget-rss'][ $number ]['title'] ) ) { $rss = fetch_feed( $widget_options[ $widget_id ]['url'] ); if ( is_wp_error( $rss ) ) { $widget_options[ $widget_id ]['title'] = htmlentities( __( 'Unknown Feed' ) ); } else { $widget_options[ $widget_id ]['title'] = htmlentities( strip_tags( $rss->get_title() ) ); $rss->__destruct(); unset( $rss ); } } update_option( 'dashboard_widget_options', $widget_options, false ); $locale = get_user_locale(); $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale ); delete_transient( $cache_key ); } wp_widget_rss_form( $widget_options[ $widget_id ], $form_inputs ); } /** * Renders the Events and News dashboard widget. * * @since 4.8.0 */ function wp_dashboard_events_news() { wp_print_community_events_markup(); ?>
        ' . ( 'This widget requires JavaScript.' ) . '

        '; $community_events_notice .= ''; $community_events_notice .= ''; wp_admin_notice( $community_events_notice, array( 'type' => 'error', 'additional_classes' => array( 'community-events-errors', 'inline', 'hide-if-js' ), 'paragraph_wrap' => false, ) ); /* * Hide the main element when the page first loads, because the content * won't be ready until wp.communityEvents.renderEventsTemplate() has run. */ ?> array( /** * Filters the primary link URL for the 'WordPress Events and News' dashboard widget. * * @since 2.5.0 * * @param string $link The widget's primary link URL. */ 'link' => apply_filters( 'dashboard_primary_link', __( 'https://wordpress.org/news/' ) ), /** * Filters the primary feed URL for the 'WordPress Events and News' dashboard widget. * * @since 2.3.0 * * @param string $url The widget's primary feed URL. */ 'url' => apply_filters( 'dashboard_primary_feed', __( 'https://wordpress.org/news/feed/' ) ), /** * Filters the primary link title for the 'WordPress Events and News' dashboard widget. * * @since 2.3.0 * * @param string $title Title attribute for the widget's primary link. */ 'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ), 'items' => 2, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0, ), 'planet' => array( /** * Filters the secondary link URL for the 'WordPress Events and News' dashboard widget. * * @since 2.3.0 * * @param string $link The widget's secondary link URL. */ 'link' => apply_filters( 'dashboard_secondary_link', /* translators: Link to the Planet website of the locale. */ __( 'https://planet.wordpress.org/' ) ), /** * Filters the secondary feed URL for the 'WordPress Events and News' dashboard widget. * * @since 2.3.0 * * @param string $url The widget's secondary feed URL. */ 'url' => apply_filters( 'dashboard_secondary_feed', /* translators: Link to the Planet feed of the locale. */ __( 'https://planet.wordpress.org/feed/' ) ), /** * Filters the secondary link title for the 'WordPress Events and News' dashboard widget. * * @since 2.3.0 * * @param string $title Title attribute for the widget's secondary link. */ 'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ), /** * Filters the number of secondary link items for the 'WordPress Events and News' dashboard widget. * * @since 4.4.0 * * @param string $items How many items to show in the secondary feed. */ 'items' => apply_filters( 'dashboard_secondary_items', 3 ), 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0, ), ); wp_dashboard_cached_rss_widget( 'dashboard_primary', 'wp_dashboard_primary_output', $feeds ); } /** * Displays the WordPress events and news feeds. * * @since 3.8.0 * @since 4.8.0 Removed popular plugins feed. * * @param string $widget_id Widget ID. * @param array $feeds Array of RSS feeds. */ function wp_dashboard_primary_output( $widget_id, $feeds ) { foreach ( $feeds as $type => $args ) { $args['type'] = $type; echo '
        '; wp_widget_rss_output( $args['url'], $args ); echo '
        '; } } /** * Displays file upload quota on dashboard. * * Runs on the {@see 'activity_box_end'} hook in wp_dashboard_right_now(). * * @since 3.0.0 * * @return true|void True if not multisite, user can't upload files, or the space check option is disabled. */ function wp_dashboard_quota() { if ( ! is_multisite() || ! current_user_can( 'upload_files' ) || get_site_option( 'upload_space_check_disabled' ) ) { return true; } $quota = get_space_allowed(); $used = get_space_used(); if ( $used > $quota ) { $percentused = '100'; } else { $percentused = ( $used / $quota ) * 100; } $used_class = ( $percentused >= 70 ) ? ' warning' : ''; $used = round( $used, 2 ); $percentused = number_format( $percentused ); ?>

        • %2$s (%3$s)', esc_url( admin_url( 'upload.php' ) ), $text, /* translators: Hidden accessibility text. */ __( 'Manage Uploads' ) ); ?>
        • %2$s (%3$s)', esc_url( admin_url( 'upload.php' ) ), $text, /* translators: Hidden accessibility text. */ __( 'Manage Uploads' ) ); ?>
        %s', esc_url( $response['update_url'] ), esc_html( $response['name'] ) ) ); } else { $msg = sprintf( /* translators: %s: Browser name and link. */ __( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ), sprintf( '%s', esc_url( $response['update_url'] ), esc_html( $response['name'] ) ) ); } $browser_nag_class = ''; if ( ! empty( $response['img_src'] ) ) { $img_src = ( is_ssl() && ! empty( $response['img_src_ssl'] ) ) ? $response['img_src_ssl'] : $response['img_src']; $notice .= '
        '; $browser_nag_class = ' has-browser-icon'; } $notice .= "

        {$msg}

        "; $browsehappy = 'https://browsehappy.com/'; $locale = get_user_locale(); if ( 'en_US' !== $locale ) { $browsehappy = add_query_arg( 'locale', $locale, $browsehappy ); } if ( $is_IE ) { $msg_browsehappy = sprintf( /* translators: %s: Browse Happy URL. */ __( 'Learn how to browse happy' ), esc_url( $browsehappy ) ); } else { $msg_browsehappy = sprintf( /* translators: 1: Browser update URL, 2: Browser name, 3: Browse Happy URL. */ __( 'Update %2$s or learn how to browse happy' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ); } $notice .= '

        ' . $msg_browsehappy . '

        '; $notice .= '

        ' . __( 'Dismiss' ) . '

        '; $notice .= '
        '; } /** * Filters the notice output for the 'Browse Happy' nag meta box. * * @since 3.2.0 * * @param string $notice The notice content. * @param array|false $response An array containing web browser information, or * false on failure. See wp_check_browser_version(). */ echo apply_filters( 'browse-happy-notice', $notice, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores } /** * Adds an additional class to the browser nag if the current version is insecure. * * @since 3.2.0 * * @param string[] $classes Array of meta box classes. * @return string[] Modified array of meta box classes. */ function dashboard_browser_nag_class( $classes ) { $response = wp_check_browser_version(); if ( $response && $response['insecure'] ) { $classes[] = 'browser-insecure'; } return $classes; } /** * Checks if the user needs a browser update. * * @since 3.2.0 * * @return array|false Array of browser data on success, false on failure. */ function wp_check_browser_version() { if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) { return false; } $key = md5( $_SERVER['HTTP_USER_AGENT'] ); $response = get_site_transient( 'browser_' . $key ); if ( false === $response ) { $url = 'http://api.wordpress.org/core/browse-happy/1.1/'; $options = array( 'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ), 'user-agent' => 'WordPress/' . wp_get_wp_version() . '; ' . home_url( '/' ), ); if ( wp_http_supports( array( 'ssl' ) ) ) { $url = set_url_scheme( $url, 'https' ); } $response = wp_remote_post( $url, $options ); if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) { return false; } /** * Response should be an array with: * 'platform' - string - A user-friendly platform name, if it can be determined * 'name' - string - A user-friendly browser name * 'version' - string - The version of the browser the user is using * 'current_version' - string - The most recent version of the browser * 'upgrade' - boolean - Whether the browser needs an upgrade * 'insecure' - boolean - Whether the browser is deemed insecure * 'update_url' - string - The url to visit to upgrade * 'img_src' - string - An image representing the browser * 'img_src_ssl' - string - An image (over SSL) representing the browser */ $response = json_decode( wp_remote_retrieve_body( $response ), true ); if ( ! is_array( $response ) ) { return false; } set_site_transient( 'browser_' . $key, $response, WEEK_IN_SECONDS ); } return $response; } /** * Displays the PHP update nag. * * @since 5.1.0 */ function wp_dashboard_php_nag() { $response = wp_check_php_version(); if ( ! $response ) { return; } if ( isset( $response['is_secure'] ) && ! $response['is_secure'] ) { // The `is_secure` array key name doesn't actually imply this is a secure version of PHP. It only means it receives security updates. if ( $response['is_lower_than_future_minimum'] ) { $message = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates and soon will not be supported by WordPress. Ensure that PHP is updated on your server as soon as possible. Otherwise you will not be able to upgrade WordPress.' ), PHP_VERSION ); } else { $message = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which does not receive security updates. It should be updated.' ), PHP_VERSION ); } } elseif ( $response['is_lower_than_future_minimum'] ) { $message = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which soon will not be supported by WordPress. Ensure that PHP is updated on your server as soon as possible. Otherwise you will not be able to upgrade WordPress.' ), PHP_VERSION ); } else { $message = sprintf( /* translators: %s: The server PHP version. */ __( 'Your site is running on an outdated version of PHP (%s), which should be updated.' ), PHP_VERSION ); } ?>

        %2$s %3$s', esc_url( wp_get_update_php_url() ), __( 'Learn more about updating PHP' ), /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); ?>

        0, 'recommended' => 0, 'critical' => 0, ); } $issues_total = $issue_counts['recommended'] + $issue_counts['critical']; ?>

        visit the Site Health screen to gather information about your site now.' ), esc_url( admin_url( 'site-health.php' ) ) ); ?>

        1 ) : ?>

        0 && false !== $get_issues ) : ?>

        %1$d item on the Site Health screen.', 'Take a look at the %1$d items on the Site Health screen.', $issues_total ), $issues_total, esc_url( admin_url( 'site-health.php' ) ) ); ?>

        '', 'theme' => '', 'nonce' => '', 'title' => __( 'Update Theme' ), ); $args = wp_parse_args( $args, $defaults ); $this->theme = $args['theme']; parent::__construct( $args ); } /** * Performs an action following a single theme update. * * @since 2.8.0 */ public function after() { $this->decrement_update_count( 'theme' ); $update_actions = array(); $theme_info = $this->upgrader->theme_info(); if ( $theme_info ) { $name = $theme_info->display( 'Name' ); $stylesheet = $this->upgrader->result['destination_name']; $template = $theme_info->get_template(); $activate_link = add_query_arg( array( 'action' => 'activate', 'template' => urlencode( $template ), 'stylesheet' => urlencode( $stylesheet ), ), admin_url( 'themes.php' ) ); $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); $customize_url = add_query_arg( array( 'theme' => urlencode( $stylesheet ), 'return' => urlencode( admin_url( 'themes.php' ) ), ), admin_url( 'customize.php' ) ); if ( get_stylesheet() === $stylesheet ) { if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { $update_actions['preview'] = sprintf( '' . '%s', esc_url( $customize_url ), __( 'Customize' ), /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( __( 'Customize “%s”' ), $name ) ); } } elseif ( current_user_can( 'switch_themes' ) ) { if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { $update_actions['preview'] = sprintf( '' . '%s', esc_url( $customize_url ), __( 'Live Preview' ), /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( __( 'Live Preview “%s”' ), $name ) ); } $update_actions['activate'] = sprintf( '' . '%s', esc_url( $activate_link ), _x( 'Activate', 'theme' ), /* translators: Hidden accessibility text. %s: Theme name. */ sprintf( _x( 'Activate “%s”', 'theme' ), $name ) ); } if ( ! $this->result || is_wp_error( $this->result ) || is_network_admin() ) { unset( $update_actions['preview'], $update_actions['activate'] ); } } $update_actions['themes_page'] = sprintf( '%s', self_admin_url( 'themes.php' ), __( 'Go to Themes page' ) ); /** * Filters the list of action links available following a single theme update. * * @since 2.8.0 * * @param string[] $update_actions Array of theme action links. * @param string $theme Theme directory name. */ $update_actions = apply_filters( 'update_theme_complete_actions', $update_actions, $this->theme ); if ( ! empty( $update_actions ) ) { $this->feedback( implode( ' | ', (array) $update_actions ) ); } } } includes/theme-install.php000064400000015516152213653150011644 0ustar00 array( 'href' => array(), 'title' => array(), 'target' => array(), ), 'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), 'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'img' => array( 'src' => array(), 'class' => array(), 'alt' => array(), ), ); $theme_field_defaults = array( 'description' => true, 'sections' => false, 'tested' => true, 'requires' => true, 'rating' => true, 'downloaded' => true, 'downloadlink' => true, 'last_updated' => true, 'homepage' => true, 'tags' => true, 'num_ratings' => true, ); /** * Retrieves the list of WordPress theme features (aka theme tags). * * @since 2.8.0 * * @deprecated 3.1.0 Use get_theme_feature_list() instead. * * @return array */ function install_themes_feature_list() { _deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' ); $cache = get_transient( 'wporg_theme_feature_list' ); if ( ! $cache ) { set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); } if ( $cache ) { return $cache; } $feature_list = themes_api( 'feature_list', array() ); if ( is_wp_error( $feature_list ) ) { return array(); } set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS ); return $feature_list; } /** * Displays search form for searching themes. * * @since 2.8.0 * * @param bool $type_selector */ function install_theme_search_form( $type_selector = true ) { $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : ''; if ( ! $type_selector ) { echo '

        ' . __( 'Search for themes by keyword.' ) . '

        '; } ?>

        '; foreach ( (array) $feature_list as $feature_name => $features ) { $feature_name = esc_html( $feature_name ); echo '
        ' . $feature_name . '
        '; echo '
          '; foreach ( $features as $feature => $feature_name ) { $feature_name = esc_html( $feature_name ); $feature = esc_attr( $feature ); ?>


        prepare_items(); $wp_list_table->single_row( $theme ); } /** * Displays theme content based on theme list. * * @since 2.8.0 * * @global WP_Theme_Install_List_Table $wp_list_table */ function display_themes() { global $wp_list_table; if ( ! isset( $wp_list_table ) ) { $wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' ); } $wp_list_table->prepare_items(); $wp_list_table->display(); } /** * Displays theme information in dialog box form. * * @since 2.8.0 * * @global WP_Theme_Install_List_Table $wp_list_table */ function install_theme_information() { global $wp_list_table; $theme = themes_api( 'theme_information', array( 'slug' => wp_unslash( $_REQUEST['theme'] ) ) ); if ( is_wp_error( $theme ) ) { wp_die( $theme ); } iframe_header( __( 'Theme Installation' ) ); if ( ! isset( $wp_list_table ) ) { $wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' ); } $wp_list_table->theme_installer_single( $theme ); iframe_footer(); exit; } includes/schema.php000064400000131017152213653150010331 0ustar00get_charset_collate(); /** * Retrieve the SQL for creating database tables. * * @since 3.3.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all. * @param int $blog_id Optional. The site ID for which to retrieve SQL. Default is the current site ID. * @return string The SQL needed to create the requested tables. */ function wp_get_db_schema( $scope = 'all', $blog_id = null ) { global $wpdb; $charset_collate = $wpdb->get_charset_collate(); if ( $blog_id && (int) $blog_id !== $wpdb->blogid ) { $old_blog_id = $wpdb->set_blog_id( $blog_id ); } // Engage multisite if in the middle of turning it on from network.php. $is_multisite = is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ); /* * Indexes have a maximum size of 767 bytes. Historically, we haven't need to be concerned about that. * As of 4.2, however, we moved to utf8mb4, which uses 4 bytes per character. This means that an index which * used to have room for floor(767/3) = 255 characters, now only has room for floor(767/4) = 191 characters. */ $max_index_length = 191; // Blog-specific tables. $blog_tables = "CREATE TABLE $wpdb->termmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, term_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY term_id (term_id), KEY meta_key (meta_key($max_index_length)) ) $charset_collate; CREATE TABLE $wpdb->terms ( term_id bigint(20) unsigned NOT NULL auto_increment, name varchar(200) NOT NULL default '', slug varchar(200) NOT NULL default '', term_group bigint(10) NOT NULL default 0, PRIMARY KEY (term_id), KEY slug (slug($max_index_length)), KEY name (name($max_index_length)) ) $charset_collate; CREATE TABLE $wpdb->term_taxonomy ( term_taxonomy_id bigint(20) unsigned NOT NULL auto_increment, term_id bigint(20) unsigned NOT NULL default 0, taxonomy varchar(32) NOT NULL default '', description longtext NOT NULL, parent bigint(20) unsigned NOT NULL default 0, count bigint(20) NOT NULL default 0, PRIMARY KEY (term_taxonomy_id), UNIQUE KEY term_id_taxonomy (term_id,taxonomy), KEY taxonomy (taxonomy) ) $charset_collate; CREATE TABLE $wpdb->term_relationships ( object_id bigint(20) unsigned NOT NULL default 0, term_taxonomy_id bigint(20) unsigned NOT NULL default 0, term_order int(11) NOT NULL default 0, PRIMARY KEY (object_id,term_taxonomy_id), KEY term_taxonomy_id (term_taxonomy_id) ) $charset_collate; CREATE TABLE $wpdb->commentmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, comment_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY comment_id (comment_id), KEY meta_key (meta_key($max_index_length)) ) $charset_collate; CREATE TABLE $wpdb->comments ( comment_ID bigint(20) unsigned NOT NULL auto_increment, comment_post_ID bigint(20) unsigned NOT NULL default '0', comment_author tinytext NOT NULL, comment_author_email varchar(100) NOT NULL default '', comment_author_url varchar(200) NOT NULL default '', comment_author_IP varchar(100) NOT NULL default '', comment_date datetime NOT NULL default '0000-00-00 00:00:00', comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', comment_content text NOT NULL, comment_karma int(11) NOT NULL default '0', comment_approved varchar(20) NOT NULL default '1', comment_agent varchar(255) NOT NULL default '', comment_type varchar(20) NOT NULL default 'comment', comment_parent bigint(20) unsigned NOT NULL default '0', user_id bigint(20) unsigned NOT NULL default '0', PRIMARY KEY (comment_ID), KEY comment_post_ID (comment_post_ID), KEY comment_approved_date_gmt (comment_approved,comment_date_gmt), KEY comment_date_gmt (comment_date_gmt), KEY comment_parent (comment_parent), KEY comment_author_email (comment_author_email(10)) ) $charset_collate; CREATE TABLE $wpdb->links ( link_id bigint(20) unsigned NOT NULL auto_increment, link_url varchar(255) NOT NULL default '', link_name varchar(255) NOT NULL default '', link_image varchar(255) NOT NULL default '', link_target varchar(25) NOT NULL default '', link_description varchar(255) NOT NULL default '', link_visible varchar(20) NOT NULL default 'Y', link_owner bigint(20) unsigned NOT NULL default '1', link_rating int(11) NOT NULL default '0', link_updated datetime NOT NULL default '0000-00-00 00:00:00', link_rel varchar(255) NOT NULL default '', link_notes mediumtext NOT NULL, link_rss varchar(255) NOT NULL default '', PRIMARY KEY (link_id), KEY link_visible (link_visible) ) $charset_collate; CREATE TABLE $wpdb->options ( option_id bigint(20) unsigned NOT NULL auto_increment, option_name varchar(191) NOT NULL default '', option_value longtext NOT NULL, autoload varchar(20) NOT NULL default 'yes', PRIMARY KEY (option_id), UNIQUE KEY option_name (option_name), KEY autoload (autoload) ) $charset_collate; CREATE TABLE $wpdb->postmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, post_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY post_id (post_id), KEY meta_key (meta_key($max_index_length)) ) $charset_collate; CREATE TABLE $wpdb->posts ( ID bigint(20) unsigned NOT NULL auto_increment, post_author bigint(20) unsigned NOT NULL default '0', post_date datetime NOT NULL default '0000-00-00 00:00:00', post_date_gmt datetime NOT NULL default '0000-00-00 00:00:00', post_content longtext NOT NULL, post_title text NOT NULL, post_excerpt text NOT NULL, post_status varchar(20) NOT NULL default 'publish', comment_status varchar(20) NOT NULL default 'open', ping_status varchar(20) NOT NULL default 'open', post_password varchar(255) NOT NULL default '', post_name varchar(200) NOT NULL default '', to_ping text NOT NULL, pinged text NOT NULL, post_modified datetime NOT NULL default '0000-00-00 00:00:00', post_modified_gmt datetime NOT NULL default '0000-00-00 00:00:00', post_content_filtered longtext NOT NULL, post_parent bigint(20) unsigned NOT NULL default '0', guid varchar(255) NOT NULL default '', menu_order int(11) NOT NULL default '0', post_type varchar(20) NOT NULL default 'post', post_mime_type varchar(100) NOT NULL default '', comment_count bigint(20) NOT NULL default '0', PRIMARY KEY (ID), KEY post_name (post_name($max_index_length)), KEY type_status_date (post_type,post_status,post_date,ID), KEY post_parent (post_parent), KEY post_author (post_author), KEY type_status_author (post_type,post_status,post_author) ) $charset_collate;\n"; // Single site users table. The multisite flavor of the users table is handled below. $users_single_table = "CREATE TABLE $wpdb->users ( ID bigint(20) unsigned NOT NULL auto_increment, user_login varchar(60) NOT NULL default '', user_pass varchar(255) NOT NULL default '', user_nicename varchar(50) NOT NULL default '', user_email varchar(100) NOT NULL default '', user_url varchar(100) NOT NULL default '', user_registered datetime NOT NULL default '0000-00-00 00:00:00', user_activation_key varchar(255) NOT NULL default '', user_status int(11) NOT NULL default '0', display_name varchar(250) NOT NULL default '', PRIMARY KEY (ID), KEY user_login_key (user_login), KEY user_nicename (user_nicename), KEY user_email (user_email) ) $charset_collate;\n"; // Multisite users table. $users_multi_table = "CREATE TABLE $wpdb->users ( ID bigint(20) unsigned NOT NULL auto_increment, user_login varchar(60) NOT NULL default '', user_pass varchar(255) NOT NULL default '', user_nicename varchar(50) NOT NULL default '', user_email varchar(100) NOT NULL default '', user_url varchar(100) NOT NULL default '', user_registered datetime NOT NULL default '0000-00-00 00:00:00', user_activation_key varchar(255) NOT NULL default '', user_status int(11) NOT NULL default '0', display_name varchar(250) NOT NULL default '', spam tinyint(2) NOT NULL default '0', deleted tinyint(2) NOT NULL default '0', PRIMARY KEY (ID), KEY user_login_key (user_login), KEY user_nicename (user_nicename), KEY user_email (user_email) ) $charset_collate;\n"; // Usermeta. $usermeta_table = "CREATE TABLE $wpdb->usermeta ( umeta_id bigint(20) unsigned NOT NULL auto_increment, user_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (umeta_id), KEY user_id (user_id), KEY meta_key (meta_key($max_index_length)) ) $charset_collate;\n"; // Global tables. if ( $is_multisite ) { $global_tables = $users_multi_table . $usermeta_table; } else { $global_tables = $users_single_table . $usermeta_table; } // Multisite global tables. $ms_global_tables = "CREATE TABLE $wpdb->blogs ( blog_id bigint(20) unsigned NOT NULL auto_increment, site_id bigint(20) unsigned NOT NULL default '0', domain varchar(200) NOT NULL default '', path varchar(100) NOT NULL default '', registered datetime NOT NULL default '0000-00-00 00:00:00', last_updated datetime NOT NULL default '0000-00-00 00:00:00', public tinyint(2) NOT NULL default '1', archived tinyint(2) NOT NULL default '0', mature tinyint(2) NOT NULL default '0', spam tinyint(2) NOT NULL default '0', deleted tinyint(2) NOT NULL default '0', lang_id int(11) NOT NULL default '0', PRIMARY KEY (blog_id), KEY domain (domain(50),path(5)), KEY lang_id (lang_id) ) $charset_collate; CREATE TABLE $wpdb->blogmeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, blog_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY meta_key (meta_key($max_index_length)), KEY blog_id (blog_id) ) $charset_collate; CREATE TABLE $wpdb->registration_log ( ID bigint(20) unsigned NOT NULL auto_increment, email varchar(255) NOT NULL default '', IP varchar(30) NOT NULL default '', blog_id bigint(20) unsigned NOT NULL default '0', date_registered datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (ID), KEY IP (IP) ) $charset_collate; CREATE TABLE $wpdb->site ( id bigint(20) unsigned NOT NULL auto_increment, domain varchar(200) NOT NULL default '', path varchar(100) NOT NULL default '', PRIMARY KEY (id), KEY domain (domain(140),path(51)) ) $charset_collate; CREATE TABLE $wpdb->sitemeta ( meta_id bigint(20) unsigned NOT NULL auto_increment, site_id bigint(20) unsigned NOT NULL default '0', meta_key varchar(255) default NULL, meta_value longtext, PRIMARY KEY (meta_id), KEY meta_key (meta_key($max_index_length)), KEY site_id (site_id) ) $charset_collate; CREATE TABLE $wpdb->signups ( signup_id bigint(20) unsigned NOT NULL auto_increment, domain varchar(200) NOT NULL default '', path varchar(100) NOT NULL default '', title longtext NOT NULL, user_login varchar(60) NOT NULL default '', user_email varchar(100) NOT NULL default '', registered datetime NOT NULL default '0000-00-00 00:00:00', activated datetime NOT NULL default '0000-00-00 00:00:00', active tinyint(1) NOT NULL default '0', activation_key varchar(50) NOT NULL default '', meta longtext, PRIMARY KEY (signup_id), KEY activation_key (activation_key), KEY user_email (user_email), KEY user_login_email (user_login,user_email), KEY domain_path (domain(140),path(51)) ) $charset_collate;"; switch ( $scope ) { case 'blog': $queries = $blog_tables; break; case 'global': $queries = $global_tables; if ( $is_multisite ) { $queries .= $ms_global_tables; } break; case 'ms_global': $queries = $ms_global_tables; break; case 'all': default: $queries = $global_tables . $blog_tables; if ( $is_multisite ) { $queries .= $ms_global_tables; } break; } if ( isset( $old_blog_id ) ) { $wpdb->set_blog_id( $old_blog_id ); } return $queries; } // Populate for back compat. $wp_queries = wp_get_db_schema( 'all' ); /** * Create WordPress options and set the default values. * * @since 1.5.0 * @since 5.1.0 The $options parameter has been added. * * @global wpdb $wpdb WordPress database abstraction object. * @global int $wp_db_version WordPress database version. * @global int $wp_current_db_version The old (current) database version. * * @param array $options Optional. Custom option $key => $value pairs to use. Default empty array. */ function populate_options( array $options = array() ) { global $wpdb, $wp_db_version, $wp_current_db_version; $guessurl = wp_guess_url(); /** * Fires before creating WordPress options and populating their default values. * * @since 2.6.0 */ do_action( 'populate_options' ); // If WP_DEFAULT_THEME doesn't exist, fall back to the latest core default theme. $stylesheet = WP_DEFAULT_THEME; $template = WP_DEFAULT_THEME; $theme = wp_get_theme( WP_DEFAULT_THEME ); if ( ! $theme->exists() ) { $theme = WP_Theme::get_core_default_theme(); } // If we can't find a core default theme, WP_DEFAULT_THEME is the best we can do. if ( $theme ) { $stylesheet = $theme->get_stylesheet(); $template = $theme->get_template(); } $timezone_string = ''; $gmt_offset = 0; /* * translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14) * or a valid timezone string (America/New_York). See https://www.php.net/manual/en/timezones.php * for all timezone strings currently supported by PHP. * * Important: When a previous timezone string, like `Europe/Kiev`, has been superseded by an * updated one, like `Europe/Kyiv`, as a rule of thumb, the **old** timezone name should be used * in the "translation" to allow for the default timezone setting to be PHP cross-version compatible, * as old timezone names will be recognized in new PHP versions, while new timezone names cannot * be recognized in old PHP versions. * * To verify which timezone strings are available in the _oldest_ PHP version supported, you can * use https://3v4l.org/6YQAt#v5.6.20 and replace the "BR" (Brazil) in the code line with the * country code for which you want to look up the supported timezone names. */ $offset_or_tz = _x( '0', 'default GMT offset or timezone string' ); if ( is_numeric( $offset_or_tz ) ) { $gmt_offset = $offset_or_tz; } elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list( DateTimeZone::ALL_WITH_BC ), true ) ) { $timezone_string = $offset_or_tz; } $defaults = array( 'siteurl' => $guessurl, 'home' => $guessurl, 'blogname' => __( 'My Site' ), 'blogdescription' => '', 'users_can_register' => 0, 'admin_email' => 'you@example.com', /* translators: Default start of the week. 0 = Sunday, 1 = Monday. */ 'start_of_week' => _x( '1', 'start of week' ), 'use_balanceTags' => 0, 'use_smilies' => 1, 'require_name_email' => 1, 'comments_notify' => 1, 'posts_per_rss' => 10, 'rss_use_excerpt' => 0, 'mailserver_url' => 'mail.example.com', 'mailserver_login' => 'login@example.com', 'mailserver_pass' => '', 'mailserver_port' => 110, 'default_category' => 1, 'default_comment_status' => 'open', 'default_ping_status' => 'open', 'default_pingback_flag' => 1, 'posts_per_page' => 10, /* translators: Default date format, see https://www.php.net/manual/datetime.format.php */ 'date_format' => __( 'F j, Y' ), /* translators: Default time format, see https://www.php.net/manual/datetime.format.php */ 'time_format' => __( 'g:i a' ), /* translators: Links last updated date format, see https://www.php.net/manual/datetime.format.php */ 'links_updated_date_format' => __( 'F j, Y g:i a' ), 'comment_moderation' => 0, 'moderation_notify' => 1, 'permalink_structure' => '', 'rewrite_rules' => '', 'hack_file' => 0, 'blog_charset' => 'UTF-8', 'moderation_keys' => '', 'active_plugins' => array(), 'category_base' => '', 'ping_sites' => 'https://rpc.pingomatic.com/', 'comment_max_links' => 2, 'gmt_offset' => $gmt_offset, // 1.5.0 'default_email_category' => 1, 'recently_edited' => '', 'template' => $template, 'stylesheet' => $stylesheet, 'comment_registration' => 0, 'html_type' => 'text/html', // 1.5.1 'use_trackback' => 0, // 2.0.0 'default_role' => 'subscriber', 'db_version' => $wp_db_version, // 2.0.1 'uploads_use_yearmonth_folders' => 1, 'upload_path' => '', // 2.1.0 'blog_public' => '1', 'default_link_category' => 2, 'show_on_front' => 'posts', // 2.2.0 'tag_base' => '', // 2.5.0 'show_avatars' => '1', 'avatar_rating' => 'G', 'upload_url_path' => '', 'thumbnail_size_w' => 150, 'thumbnail_size_h' => 150, 'thumbnail_crop' => 1, 'medium_size_w' => 300, 'medium_size_h' => 300, // 2.6.0 'avatar_default' => 'mystery', // 2.7.0 'large_size_w' => 1024, 'large_size_h' => 1024, 'image_default_link_type' => 'none', 'image_default_size' => '', 'image_default_align' => '', 'close_comments_for_old_posts' => 0, 'close_comments_days_old' => 14, 'thread_comments' => 1, 'thread_comments_depth' => 5, 'page_comments' => 0, 'comments_per_page' => 50, 'default_comments_page' => 'newest', 'comment_order' => 'asc', 'sticky_posts' => array(), 'widget_categories' => array(), 'widget_text' => array(), 'widget_rss' => array(), 'uninstall_plugins' => array(), // 2.8.0 'timezone_string' => $timezone_string, // 3.0.0 'page_for_posts' => 0, 'page_on_front' => 0, // 3.1.0 'default_post_format' => 0, // 3.5.0 'link_manager_enabled' => 0, // 4.3.0 'finished_splitting_shared_terms' => 1, 'site_icon' => 0, // 4.4.0 'medium_large_size_w' => 768, 'medium_large_size_h' => 0, // 4.9.6 'wp_page_for_privacy_policy' => 0, // 4.9.8 'show_comments_cookies_opt_in' => 1, // 5.3.0 'admin_email_lifespan' => ( time() + 6 * MONTH_IN_SECONDS ), // 5.5.0 'disallowed_keys' => '', 'comment_previously_approved' => 1, 'auto_plugin_theme_update_emails' => array(), // 5.6.0 'auto_update_core_dev' => 'enabled', 'auto_update_core_minor' => 'enabled', /* * Default to enabled for new installs. * See https://core.trac.wordpress.org/ticket/51742. */ 'auto_update_core_major' => 'enabled', // 5.8.0 'wp_force_deactivated_plugins' => array(), // 6.4.0 'wp_attachment_pages_enabled' => 0, // 6.9.0 'wp_notes_notify' => 1, ); // 3.3.0 if ( ! is_multisite() ) { $defaults['initial_db_version'] = ! empty( $wp_current_db_version ) && $wp_current_db_version < $wp_db_version ? $wp_current_db_version : $wp_db_version; } // 3.0.0 multisite. if ( is_multisite() ) { $defaults['permalink_structure'] = '/%year%/%monthnum%/%day%/%postname%/'; } $options = wp_parse_args( $options, $defaults ); // Set autoload to no for these options. $fat_options = array( 'moderation_keys', 'recently_edited', 'disallowed_keys', 'uninstall_plugins', 'auto_plugin_theme_update_emails', ); $keys = "'" . implode( "', '", array_keys( $options ) ) . "'"; $existing_options = $wpdb->get_col( "SELECT option_name FROM $wpdb->options WHERE option_name in ( $keys )" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $insert = ''; foreach ( $options as $option => $value ) { if ( in_array( $option, $existing_options, true ) ) { continue; } if ( in_array( $option, $fat_options, true ) ) { $autoload = 'off'; } else { $autoload = 'on'; } if ( ! empty( $insert ) ) { $insert .= ', '; } $value = maybe_serialize( sanitize_option( $option, $value ) ); $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload ); } if ( ! empty( $insert ) ) { $wpdb->query( "INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } // In case it is set, but blank, update "home". if ( ! __get_option( 'home' ) ) { update_option( 'home', $guessurl ); } // Delete unused options. $unusedoptions = array( 'blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'links_recently_updated_time', 'links_recently_updated_prepend', 'links_recently_updated_append', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts', 'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret', 'use_linksupdate', 'default_comment_status_page', 'wporg_popular_tags', 'what_to_show', 'rss_language', 'language', 'enable_xmlrpc', 'enable_app', 'embed_autourls', 'default_post_edit_rows', 'gzipcompression', 'advanced_edit', ); foreach ( $unusedoptions as $option ) { delete_option( $option ); } // Delete obsolete magpie stuff. $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'" ); // Clear expired transients. delete_expired_transients( true ); } /** * Execute WordPress role creation for the various WordPress versions. * * @since 2.0.0 */ function populate_roles() { $wp_roles = wp_roles(); // Disable role updates to the database while populating roles. $original_use_db = $wp_roles->use_db; $wp_roles->use_db = false; // Populate roles populate_roles_160(); populate_roles_210(); populate_roles_230(); populate_roles_250(); populate_roles_260(); populate_roles_270(); populate_roles_280(); populate_roles_300(); // Save the updated roles to the database. if ( $original_use_db ) { update_option( $wp_roles->role_key, $wp_roles->roles, true ); } // Restore original value for writing to database. $wp_roles->use_db = $original_use_db; } /** * Create the roles for WordPress 2.0 * * @since 2.0.0 */ function populate_roles_160() { // Add roles. add_role( 'administrator', 'Administrator' ); add_role( 'editor', 'Editor' ); add_role( 'author', 'Author' ); add_role( 'contributor', 'Contributor' ); add_role( 'subscriber', 'Subscriber' ); // Add caps for Administrator role. $role = get_role( 'administrator' ); $role->add_cap( 'switch_themes' ); $role->add_cap( 'edit_themes' ); $role->add_cap( 'activate_plugins' ); $role->add_cap( 'edit_plugins' ); $role->add_cap( 'edit_users' ); $role->add_cap( 'edit_files' ); $role->add_cap( 'manage_options' ); $role->add_cap( 'moderate_comments' ); $role->add_cap( 'manage_categories' ); $role->add_cap( 'manage_links' ); $role->add_cap( 'upload_files' ); $role->add_cap( 'import' ); $role->add_cap( 'unfiltered_html' ); $role->add_cap( 'edit_posts' ); $role->add_cap( 'edit_others_posts' ); $role->add_cap( 'edit_published_posts' ); $role->add_cap( 'publish_posts' ); $role->add_cap( 'edit_pages' ); $role->add_cap( 'read' ); $role->add_cap( 'level_10' ); $role->add_cap( 'level_9' ); $role->add_cap( 'level_8' ); $role->add_cap( 'level_7' ); $role->add_cap( 'level_6' ); $role->add_cap( 'level_5' ); $role->add_cap( 'level_4' ); $role->add_cap( 'level_3' ); $role->add_cap( 'level_2' ); $role->add_cap( 'level_1' ); $role->add_cap( 'level_0' ); // Add caps for Editor role. $role = get_role( 'editor' ); $role->add_cap( 'moderate_comments' ); $role->add_cap( 'manage_categories' ); $role->add_cap( 'manage_links' ); $role->add_cap( 'upload_files' ); $role->add_cap( 'unfiltered_html' ); $role->add_cap( 'edit_posts' ); $role->add_cap( 'edit_others_posts' ); $role->add_cap( 'edit_published_posts' ); $role->add_cap( 'publish_posts' ); $role->add_cap( 'edit_pages' ); $role->add_cap( 'read' ); $role->add_cap( 'level_7' ); $role->add_cap( 'level_6' ); $role->add_cap( 'level_5' ); $role->add_cap( 'level_4' ); $role->add_cap( 'level_3' ); $role->add_cap( 'level_2' ); $role->add_cap( 'level_1' ); $role->add_cap( 'level_0' ); // Add caps for Author role. $role = get_role( 'author' ); $role->add_cap( 'upload_files' ); $role->add_cap( 'edit_posts' ); $role->add_cap( 'edit_published_posts' ); $role->add_cap( 'publish_posts' ); $role->add_cap( 'read' ); $role->add_cap( 'level_2' ); $role->add_cap( 'level_1' ); $role->add_cap( 'level_0' ); // Add caps for Contributor role. $role = get_role( 'contributor' ); $role->add_cap( 'edit_posts' ); $role->add_cap( 'read' ); $role->add_cap( 'level_1' ); $role->add_cap( 'level_0' ); // Add caps for Subscriber role. $role = get_role( 'subscriber' ); $role->add_cap( 'read' ); $role->add_cap( 'level_0' ); } /** * Create and modify WordPress roles for WordPress 2.1. * * @since 2.1.0 */ function populate_roles_210() { $roles = array( 'administrator', 'editor' ); foreach ( $roles as $role ) { $role = get_role( $role ); if ( empty( $role ) ) { continue; } $role->add_cap( 'edit_others_pages' ); $role->add_cap( 'edit_published_pages' ); $role->add_cap( 'publish_pages' ); $role->add_cap( 'delete_pages' ); $role->add_cap( 'delete_others_pages' ); $role->add_cap( 'delete_published_pages' ); $role->add_cap( 'delete_posts' ); $role->add_cap( 'delete_others_posts' ); $role->add_cap( 'delete_published_posts' ); $role->add_cap( 'delete_private_posts' ); $role->add_cap( 'edit_private_posts' ); $role->add_cap( 'read_private_posts' ); $role->add_cap( 'delete_private_pages' ); $role->add_cap( 'edit_private_pages' ); $role->add_cap( 'read_private_pages' ); } $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'delete_users' ); $role->add_cap( 'create_users' ); } $role = get_role( 'author' ); if ( ! empty( $role ) ) { $role->add_cap( 'delete_posts' ); $role->add_cap( 'delete_published_posts' ); } $role = get_role( 'contributor' ); if ( ! empty( $role ) ) { $role->add_cap( 'delete_posts' ); } } /** * Create and modify WordPress roles for WordPress 2.3. * * @since 2.3.0 */ function populate_roles_230() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'unfiltered_upload' ); } } /** * Create and modify WordPress roles for WordPress 2.5. * * @since 2.5.0 */ function populate_roles_250() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'edit_dashboard' ); } } /** * Create and modify WordPress roles for WordPress 2.6. * * @since 2.6.0 */ function populate_roles_260() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'update_plugins' ); $role->add_cap( 'delete_plugins' ); } } /** * Create and modify WordPress roles for WordPress 2.7. * * @since 2.7.0 */ function populate_roles_270() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'install_plugins' ); $role->add_cap( 'update_themes' ); } } /** * Create and modify WordPress roles for WordPress 2.8. * * @since 2.8.0 */ function populate_roles_280() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'install_themes' ); } } /** * Create and modify WordPress roles for WordPress 3.0. * * @since 3.0.0 */ function populate_roles_300() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'update_core' ); $role->add_cap( 'list_users' ); $role->add_cap( 'remove_users' ); $role->add_cap( 'promote_users' ); $role->add_cap( 'edit_theme_options' ); $role->add_cap( 'delete_themes' ); $role->add_cap( 'export' ); } } if ( ! function_exists( 'install_network' ) ) : /** * Install Network. * * @since 3.0.0 */ function install_network() { if ( ! defined( 'WP_INSTALLING_NETWORK' ) ) { define( 'WP_INSTALLING_NETWORK', true ); } dbDelta( wp_get_db_schema( 'global' ) ); } endif; /** * Populate network settings. * * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * @global object $current_site * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param int $network_id ID of network to populate. * @param string $domain The domain name for the network. Example: "example.com". * @param string $email Email address for the network administrator. * @param string $site_name The name of the network. * @param string $path Optional. The path to append to the network's domain name. Default '/'. * @param bool $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation. * Default false, meaning the network is a subdirectory installation. * @return true|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful, * so the error code must be checked) or failure. */ function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) { global $wpdb, $current_site, $wp_rewrite; $network_id = (int) $network_id; /** * Fires before a network is populated. * * @since 6.9.0 * * @param int $network_id ID of network to populate. * @param string $domain The domain name for the network. * @param string $email Email address for the network administrator. * @param string $site_name The name of the network. * @param string $path The path to append to the network's domain name. * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. */ do_action( 'before_populate_network', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); $errors = new WP_Error(); if ( '' === $domain ) { $errors->add( 'empty_domain', __( 'You must provide a domain name.' ) ); } if ( '' === $site_name ) { $errors->add( 'empty_sitename', __( 'You must provide a name for your network of sites.' ) ); } // Check for network collision. if ( is_multisite() ) { if ( get_network( $network_id ) ) { $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); } } else { if ( $network_id === (int) $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $wpdb->site WHERE id = %d", $network_id ) ) ) { $errors->add( 'siteid_exists', __( 'The network already exists.' ) ); } } if ( ! is_email( $email ) ) { $errors->add( 'invalid_email', __( 'You must provide a valid email address.' ) ); } if ( $errors->has_errors() ) { return $errors; } if ( 1 === $network_id ) { $wpdb->insert( $wpdb->site, array( 'domain' => $domain, 'path' => $path, ) ); $network_id = $wpdb->insert_id; } else { $wpdb->insert( $wpdb->site, array( 'domain' => $domain, 'path' => $path, 'id' => $network_id, ) ); } populate_network_meta( $network_id, array( 'admin_email' => $email, 'site_name' => $site_name, 'subdomain_install' => $subdomain_install, ) ); // Remove the cron event since Recovery Mode is not used in Multisite. if ( wp_next_scheduled( 'recovery_mode_clean_expired_keys' ) ) { wp_clear_scheduled_hook( 'recovery_mode_clean_expired_keys' ); } /* * When upgrading from single to multisite, assume the current site will * become the main site of the network. When using populate_network() * to create another network in an existing multisite environment, skip * these steps since the main site of the new network has not yet been * created. */ if ( ! is_multisite() ) { $current_site = new stdClass(); $current_site->domain = $domain; $current_site->path = $path; $current_site->site_name = ucfirst( $domain ); $wpdb->insert( $wpdb->blogs, array( 'site_id' => $network_id, 'blog_id' => 1, 'domain' => $domain, 'path' => $path, 'registered' => current_time( 'mysql' ), ) ); $current_site->blog_id = $wpdb->insert_id; $site_user_id = (int) $wpdb->get_var( $wpdb->prepare( "SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = %s AND site_id = %d", 'admin_user_id', $network_id ) ); update_user_meta( $site_user_id, 'source_domain', $domain ); update_user_meta( $site_user_id, 'primary_blog', $current_site->blog_id ); // Unable to use update_network_option() while populating the network. $wpdb->insert( $wpdb->sitemeta, array( 'site_id' => $network_id, 'meta_key' => 'main_site', 'meta_value' => $current_site->blog_id, ) ); if ( $subdomain_install ) { $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); } else { $wp_rewrite->set_permalink_structure( '/blog/%year%/%monthnum%/%day%/%postname%/' ); } flush_rewrite_rules(); /** * Fires after a network is created when converting a single site to multisite. * * @since 6.9.0 * * @param int $network_id ID of network created. * @param string $domain The domain name for the network. * @param string $email Email address for the network administrator. * @param string $site_name The name of the network. * @param string $path The path to append to the network's domain name. * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. */ do_action( 'after_upgrade_to_multisite', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); if ( ! $subdomain_install ) { return true; } $vhost_ok = false; $errstr = ''; $hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname! $page = wp_remote_get( 'http://' . $hostname, array( 'timeout' => 5, 'httpversion' => '1.1', ) ); if ( is_wp_error( $page ) ) { $errstr = $page->get_error_message(); } elseif ( 200 === wp_remote_retrieve_response_code( $page ) ) { $vhost_ok = true; } if ( ! $vhost_ok ) { $msg = '

        ' . __( 'Warning! Wildcard DNS may not be configured correctly!' ) . '

        '; $msg .= '

        ' . sprintf( /* translators: %s: Host name. */ __( 'The installer attempted to contact a random hostname (%s) on your domain.' ), '' . $hostname . '' ); if ( ! empty( $errstr ) ) { /* translators: %s: Error message. */ $msg .= ' ' . sprintf( __( 'This resulted in an error message: %s' ), '' . $errstr . '' ); } $msg .= '

        '; $msg .= '

        ' . sprintf( /* translators: %s: Asterisk symbol (*). */ __( 'To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a %s hostname record pointing at your web server in your DNS configuration tool.' ), '*' ) . '

        '; $msg .= '

        ' . __( 'You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.' ) . '

        '; return new WP_Error( 'no_wildcard_dns', $msg ); } } /** * Fires after a network is fully populated. * * @since 6.9.0 * * @param int $network_id ID of network created. * @param string $domain The domain name for the network. * @param string $email Email address for the network administrator. * @param string $site_name The name of the network. * @param string $path The path to append to the network's domain name. * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. */ do_action( 'after_populate_network', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); return true; } /** * Creates WordPress network meta and sets the default values. * * @since 5.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * @global int $wp_db_version WordPress database version. * * @param int $network_id Network ID to populate meta for. * @param array $meta Optional. Custom meta $key => $value pairs to use. Default empty array. */ function populate_network_meta( $network_id, array $meta = array() ) { global $wpdb, $wp_db_version; $network_id = (int) $network_id; $email = ! empty( $meta['admin_email'] ) ? $meta['admin_email'] : ''; $subdomain_install = isset( $meta['subdomain_install'] ) ? (int) $meta['subdomain_install'] : 0; // If a user with the provided email does not exist, default to the current user as the new network admin. $site_user = ! empty( $email ) ? get_user_by( 'email', $email ) : false; if ( false === $site_user ) { $site_user = wp_get_current_user(); } if ( empty( $email ) ) { $email = $site_user->user_email; } $template = get_option( 'template' ); $stylesheet = get_option( 'stylesheet' ); $allowed_themes = array( $stylesheet => true ); if ( $template !== $stylesheet ) { $allowed_themes[ $template ] = true; } if ( WP_DEFAULT_THEME !== $stylesheet && WP_DEFAULT_THEME !== $template ) { $allowed_themes[ WP_DEFAULT_THEME ] = true; } // If WP_DEFAULT_THEME doesn't exist, also include the latest core default theme. if ( ! wp_get_theme( WP_DEFAULT_THEME )->exists() ) { $core_default = WP_Theme::get_core_default_theme(); if ( $core_default ) { $allowed_themes[ $core_default->get_stylesheet() ] = true; } } if ( function_exists( 'clean_network_cache' ) ) { clean_network_cache( $network_id ); } else { wp_cache_delete( $network_id, 'networks' ); } if ( ! is_multisite() ) { $site_admins = array( $site_user->user_login ); $users = get_users( array( 'fields' => array( 'user_login' ), 'role' => 'administrator', ) ); if ( $users ) { foreach ( $users as $user ) { $site_admins[] = $user->user_login; } $site_admins = array_unique( $site_admins ); } } else { $site_admins = get_site_option( 'site_admins' ); } /* translators: Do not translate USERNAME, SITE_NAME, BLOG_URL, PASSWORD: those are placeholders. */ $welcome_email = __( 'Howdy USERNAME, Your new SITE_NAME site has been successfully set up at: BLOG_URL You can log in to the administrator account with the following information: Username: USERNAME Password: PASSWORD Log in here: BLOG_URLwp-login.php We hope you enjoy your new site. Thanks! --The Team @ SITE_NAME' ); $allowed_file_types = array(); $all_mime_types = get_allowed_mime_types(); foreach ( $all_mime_types as $ext => $mime ) { array_push( $allowed_file_types, ...explode( '|', $ext ) ); } $upload_filetypes = array_unique( $allowed_file_types ); $sitemeta = array( 'site_name' => __( 'My Network' ), 'admin_email' => $email, 'admin_user_id' => $site_user->ID, 'registration' => 'none', 'upload_filetypes' => implode( ' ', $upload_filetypes ), 'blog_upload_space' => 100, 'fileupload_maxk' => 1500, 'site_admins' => $site_admins, 'allowedthemes' => $allowed_themes, 'illegal_names' => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ), 'wpmu_upgrade_site' => $wp_db_version, 'welcome_email' => $welcome_email, /* translators: %s: Site link. */ 'first_post' => __( 'Welcome to %s. This is your first post. Edit or delete it, then start writing!' ), // @todo - Network admins should have a method of editing the network siteurl (used for cookie hash). 'siteurl' => get_option( 'siteurl' ) . '/', 'add_new_users' => '0', 'upload_space_check_disabled' => is_multisite() ? get_site_option( 'upload_space_check_disabled' ) : '1', 'subdomain_install' => $subdomain_install, 'ms_files_rewriting' => is_multisite() ? get_site_option( 'ms_files_rewriting' ) : '0', 'user_count' => get_site_option( 'user_count' ), 'initial_db_version' => get_option( 'initial_db_version' ), 'active_sitewide_plugins' => array(), 'WPLANG' => get_locale(), ); if ( ! $subdomain_install ) { $sitemeta['illegal_names'][] = 'blog'; } $sitemeta = wp_parse_args( $meta, $sitemeta ); /** * Filters meta for a network on creation. * * @since 3.7.0 * * @param array $sitemeta Associative array of network meta keys and values to be inserted. * @param int $network_id ID of network to populate. */ $sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id ); $insert = ''; foreach ( $sitemeta as $meta_key => $meta_value ) { if ( is_array( $meta_value ) ) { $meta_value = serialize( $meta_value ); } if ( ! empty( $insert ) ) { $insert .= ', '; } $insert .= $wpdb->prepare( '( %d, %s, %s)', $network_id, $meta_key, $meta_value ); } $wpdb->query( "INSERT INTO $wpdb->sitemeta ( site_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared } /** * Creates WordPress site meta and sets the default values. * * @since 5.1.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $site_id Site ID to populate meta for. * @param array $meta Optional. Custom meta $key => $value pairs to use. Default empty array. */ function populate_site_meta( $site_id, array $meta = array() ) { global $wpdb; $site_id = (int) $site_id; if ( ! is_site_meta_supported() ) { return; } if ( empty( $meta ) ) { return; } /** * Filters meta for a site on creation. * * @since 5.2.0 * * @param array $meta Associative array of site meta keys and values to be inserted. * @param int $site_id ID of site to populate. */ $site_meta = apply_filters( 'populate_site_meta', $meta, $site_id ); $insert = ''; foreach ( $site_meta as $meta_key => $meta_value ) { if ( is_array( $meta_value ) ) { $meta_value = serialize( $meta_value ); } if ( ! empty( $insert ) ) { $insert .= ', '; } $insert .= $wpdb->prepare( '( %d, %s, %s)', $site_id, $meta_key, $meta_value ); } $wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared wp_cache_delete( $site_id, 'blog_meta' ); wp_cache_set_sites_last_changed(); } includes/privacy-tools.php000064400000101241152213653150011700 0ustar00post_type ) { return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) ); } $result = wp_send_user_request( $request_id ); if ( is_wp_error( $result ) ) { return $result; } elseif ( ! $result ) { return new WP_Error( 'privacy_request_error', __( 'Unable to initiate confirmation for personal data request.' ) ); } return true; } /** * Marks a request as completed by the admin and logs the current timestamp. * * @since 4.9.6 * @access private * * @param int $request_id Request ID. * @return int|WP_Error Request ID on success, or a WP_Error on failure. */ function _wp_privacy_completed_request( $request_id ) { // Get the request. $request_id = absint( $request_id ); $request = wp_get_user_request( $request_id ); if ( ! $request ) { return new WP_Error( 'privacy_request_error', __( 'Invalid personal data request.' ) ); } update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() ); $result = wp_update_post( array( 'ID' => $request_id, 'post_status' => 'request-completed', ) ); return $result; } /** * Handle list table actions. * * @since 4.9.6 * @access private */ function _wp_personal_data_handle_actions() { if ( isset( $_POST['privacy_action_email_retry'] ) ) { check_admin_referer( 'bulk-privacy_requests' ); $request_id = absint( current( array_keys( (array) wp_unslash( $_POST['privacy_action_email_retry'] ) ) ) ); $result = _wp_privacy_resend_request( $request_id ); if ( is_wp_error( $result ) ) { add_settings_error( 'privacy_action_email_retry', 'privacy_action_email_retry', $result->get_error_message(), 'error' ); } else { add_settings_error( 'privacy_action_email_retry', 'privacy_action_email_retry', __( 'Confirmation request sent again successfully.' ), 'success' ); } } elseif ( isset( $_POST['action'] ) ) { $action = ! empty( $_POST['action'] ) ? sanitize_key( wp_unslash( $_POST['action'] ) ) : ''; switch ( $action ) { case 'add_export_personal_data_request': case 'add_remove_personal_data_request': check_admin_referer( 'personal-data-request' ); if ( ! isset( $_POST['type_of_action'], $_POST['username_or_email_for_privacy_request'] ) ) { add_settings_error( 'action_type', 'action_type', __( 'Invalid personal data action.' ), 'error' ); } $action_type = sanitize_text_field( wp_unslash( $_POST['type_of_action'] ) ); $username_or_email_address = sanitize_text_field( wp_unslash( $_POST['username_or_email_for_privacy_request'] ) ); $email_address = ''; $status = 'pending'; if ( ! isset( $_POST['send_confirmation_email'] ) ) { $status = 'confirmed'; } if ( ! in_array( $action_type, _wp_privacy_action_request_types(), true ) ) { add_settings_error( 'action_type', 'action_type', __( 'Invalid personal data action.' ), 'error' ); } if ( ! is_email( $username_or_email_address ) ) { $user = get_user_by( 'login', $username_or_email_address ); if ( ! $user instanceof WP_User ) { add_settings_error( 'username_or_email_for_privacy_request', 'username_or_email_for_privacy_request', __( 'Unable to add this request. A valid email address or username must be supplied.' ), 'error' ); } else { $email_address = $user->user_email; } } else { $email_address = $username_or_email_address; } if ( empty( $email_address ) ) { break; } $request_id = wp_create_user_request( $email_address, $action_type, array(), $status ); $message = ''; if ( is_wp_error( $request_id ) ) { $message = $request_id->get_error_message(); } elseif ( ! $request_id ) { $message = __( 'Unable to initiate confirmation request.' ); } if ( $message ) { add_settings_error( 'username_or_email_for_privacy_request', 'username_or_email_for_privacy_request', $message, 'error' ); break; } if ( 'pending' === $status ) { wp_send_user_request( $request_id ); $message = __( 'Confirmation request initiated successfully.' ); } elseif ( 'confirmed' === $status ) { $message = __( 'Request added successfully.' ); } if ( $message ) { add_settings_error( 'username_or_email_for_privacy_request', 'username_or_email_for_privacy_request', $message, 'success' ); break; } } } } /** * Cleans up failed and expired requests before displaying the list table. * * @since 4.9.6 * @access private */ function _wp_personal_data_cleanup_requests() { /** This filter is documented in wp-includes/user.php */ $expires = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS ); $requests_query = new WP_Query( array( 'post_type' => 'user_request', 'posts_per_page' => -1, 'post_status' => 'request-pending', 'fields' => 'ids', 'date_query' => array( array( 'column' => 'post_modified_gmt', 'before' => $expires . ' seconds ago', ), ), ) ); $request_ids = $requests_query->posts; foreach ( $request_ids as $request_id ) { wp_update_post( array( 'ID' => $request_id, 'post_status' => 'request-failed', 'post_password' => '', ) ); } } /** * Generate a single group for the personal data export report. * * @since 4.9.6 * @since 5.4.0 Added the `$group_id` and `$groups_count` parameters. * * @param array $group_data { * The group data to render. * * @type string $group_label The user-facing heading for the group, e.g. 'Comments'. * @type array $items { * An array of group items. * * @type array $group_item_data { * An array of name-value pairs for the item. * * @type string $name The user-facing name of an item name-value pair, e.g. 'IP Address'. * @type string $value The user-facing value of an item data pair, e.g. '50.60.70.0'. * } * } * } * @param string $group_id The group identifier. * @param int $groups_count The number of all groups * @return string The HTML for this group and its items. */ function wp_privacy_generate_personal_data_export_group_html( $group_data, $group_id = '', $groups_count = 1 ) { $group_id_attr = sanitize_title_with_dashes( $group_data['group_label'] . '-' . $group_id ); $group_html = '

        '; $group_html .= esc_html( $group_data['group_label'] ); $items_count = count( (array) $group_data['items'] ); if ( $items_count > 1 ) { $group_html .= sprintf( ' (%d)', $items_count ); } $group_html .= '

        '; if ( ! empty( $group_data['group_description'] ) ) { $group_html .= '

        ' . esc_html( $group_data['group_description'] ) . '

        '; } $group_html .= '
        '; foreach ( (array) $group_data['items'] as $group_item_id => $group_item_data ) { $group_html .= ''; $group_html .= ''; foreach ( (array) $group_item_data as $group_item_datum ) { $value = $group_item_datum['value']; // If it looks like a link, make it a link. if ( ! str_contains( $value, ' ' ) && ( str_starts_with( $value, 'http://' ) || str_starts_with( $value, 'https://' ) ) ) { $value = '' . esc_html( $value ) . ''; } $group_html .= ''; $group_html .= ''; $group_html .= ''; $group_html .= ''; } $group_html .= ''; $group_html .= '
        ' . esc_html( $group_item_datum['name'] ) . '' . wp_kses( $value, 'personal_data_export' ) . '
        '; } if ( $groups_count > 1 ) { $group_html .= '
        '; $group_html .= ' ' . esc_html__( 'Go to top' ) . ''; $group_html .= '
        '; } $group_html .= '
        '; return $group_html; } /** * Generate the personal data export file. * * @since 4.9.6 * * @param int $request_id The export request ID. */ function wp_privacy_generate_personal_data_export_file( $request_id ) { if ( ! class_exists( 'ZipArchive' ) ) { wp_send_json_error( __( 'Unable to generate personal data export file. ZipArchive not available.' ) ); } // Get the request. $request = wp_get_user_request( $request_id ); if ( ! $request || 'export_personal_data' !== $request->action_name ) { wp_send_json_error( __( 'Invalid request ID when generating personal data export file.' ) ); } $email_address = $request->email; if ( ! is_email( $email_address ) ) { wp_send_json_error( __( 'Invalid email address when generating personal data export file.' ) ); } // Create the exports folder if needed. $exports_dir = wp_privacy_exports_dir(); $exports_url = wp_privacy_exports_url(); if ( ! wp_mkdir_p( $exports_dir ) ) { wp_send_json_error( __( 'Unable to create personal data export folder.' ) ); } // Protect export folder from browsing. $index_pathname = $exports_dir . 'index.php'; if ( ! file_exists( $index_pathname ) ) { $file = fopen( $index_pathname, 'w' ); if ( false === $file ) { wp_send_json_error( __( 'Unable to protect personal data export folder from browsing.' ) ); } fwrite( $file, " _x( 'About', 'personal data group label' ), /* translators: Description for the About section in a personal data export. */ 'group_description' => _x( 'Overview of export report.', 'personal data group description' ), 'items' => array( 'about-1' => array( array( 'name' => _x( 'Report generated for', 'email address' ), 'value' => $email_address, ), array( 'name' => _x( 'For site', 'website name' ), 'value' => get_bloginfo( 'name' ), ), array( 'name' => _x( 'At URL', 'website URL' ), 'value' => get_bloginfo( 'url' ), ), array( 'name' => _x( 'On', 'date/time' ), 'value' => current_time( 'mysql' ), ), ), ), ); // And now, all the Groups. $groups = get_post_meta( $request_id, '_export_data_grouped', true ); if ( is_array( $groups ) ) { // Merge in the special "About" group. $groups = array_merge( array( 'about' => $about_group ), $groups ); $groups_count = count( $groups ); } else { if ( false !== $groups ) { _doing_it_wrong( __FUNCTION__, /* translators: %s: Post meta key. */ sprintf( __( 'The %s post meta must be an array.' ), '_export_data_grouped' ), '5.8.0' ); } $groups = null; $groups_count = 0; } // Convert the groups to JSON format. $groups_json = wp_json_encode( $groups ); if ( false === $groups_json ) { $error_message = sprintf( /* translators: %s: Error message. */ __( 'Unable to encode the personal data for export. Error: %s' ), json_last_error_msg() ); wp_send_json_error( $error_message ); } /* * Handle the JSON export. */ $file = fopen( $json_report_pathname, 'w' ); if ( false === $file ) { wp_send_json_error( __( 'Unable to open personal data export file (JSON report) for writing.' ) ); } fwrite( $file, '{' ); fwrite( $file, '"' . $title . '":' ); fwrite( $file, $groups_json ); fwrite( $file, '}' ); fclose( $file ); /* * Handle the HTML export. */ $file = fopen( $html_report_pathname, 'w' ); if ( false === $file ) { wp_send_json_error( __( 'Unable to open personal data export (HTML report) for writing.' ) ); } fwrite( $file, "\n" ); fwrite( $file, "\n" ); fwrite( $file, "\n" ); fwrite( $file, "\n" ); fwrite( $file, '' ); fwrite( $file, '' ); fwrite( $file, esc_html( $title ) ); fwrite( $file, '' ); fwrite( $file, "\n" ); fwrite( $file, "\n" ); fwrite( $file, '

        ' . esc_html__( 'Personal Data Export' ) . '

        ' ); // Create TOC. if ( $groups_count > 1 ) { fwrite( $file, '
        ' ); fwrite( $file, '

        ' . esc_html__( 'Table of Contents' ) . '

        ' ); fwrite( $file, '
          ' ); foreach ( (array) $groups as $group_id => $group_data ) { $group_label = esc_html( $group_data['group_label'] ); $group_id_attr = sanitize_title_with_dashes( $group_data['group_label'] . '-' . $group_id ); $group_items_count = count( (array) $group_data['items'] ); if ( $group_items_count > 1 ) { $group_label .= sprintf( ' (%d)', $group_items_count ); } fwrite( $file, '
        • ' ); fwrite( $file, '' . $group_label . '' ); fwrite( $file, '
        • ' ); } fwrite( $file, '
        ' ); fwrite( $file, '
        ' ); } // Now, iterate over every group in $groups and have the formatter render it in HTML. foreach ( (array) $groups as $group_id => $group_data ) { fwrite( $file, wp_privacy_generate_personal_data_export_group_html( $group_data, $group_id, $groups_count ) ); } fwrite( $file, "\n" ); fwrite( $file, "\n" ); fclose( $file ); /* * Now, generate the ZIP. * * If an archive has already been generated, then remove it and reuse the filename, * to avoid breaking any URLs that may have been previously sent via email. */ $error = false; // This meta value is used from version 5.5. $archive_filename = get_post_meta( $request_id, '_export_file_name', true ); // This one stored an absolute path and is used for backward compatibility. $archive_pathname = get_post_meta( $request_id, '_export_file_path', true ); // If a filename meta exists, use it. if ( ! empty( $archive_filename ) ) { $archive_pathname = $exports_dir . $archive_filename; } elseif ( ! empty( $archive_pathname ) ) { // If a full path meta exists, use it and create the new meta value. $archive_filename = basename( $archive_pathname ); update_post_meta( $request_id, '_export_file_name', $archive_filename ); // Remove the back-compat meta values. delete_post_meta( $request_id, '_export_file_url' ); delete_post_meta( $request_id, '_export_file_path' ); } else { // If there's no filename or full path stored, create a new file. $archive_filename = $file_basename . '.zip'; $archive_pathname = $exports_dir . $archive_filename; update_post_meta( $request_id, '_export_file_name', $archive_filename ); } $archive_url = $exports_url . $archive_filename; if ( ! empty( $archive_pathname ) && file_exists( $archive_pathname ) ) { wp_delete_file( $archive_pathname ); } $zip = new ZipArchive(); if ( true === $zip->open( $archive_pathname, ZipArchive::CREATE ) ) { if ( ! $zip->addFile( $json_report_pathname, 'export.json' ) ) { $error = __( 'Unable to archive the personal data export file (JSON format).' ); } if ( ! $zip->addFile( $html_report_pathname, 'index.html' ) ) { $error = __( 'Unable to archive the personal data export file (HTML format).' ); } $zip->close(); if ( ! $error ) { /** * Fires right after all personal data has been written to the export file. * * @since 4.9.6 * @since 5.4.0 Added the `$json_report_pathname` parameter. * * @param string $archive_pathname The full path to the export file on the filesystem. * @param string $archive_url The URL of the archive file. * @param string $html_report_pathname The full path to the HTML personal data report on the filesystem. * @param int $request_id The export request ID. * @param string $json_report_pathname The full path to the JSON personal data report on the filesystem. */ do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id, $json_report_pathname ); } } else { $error = __( 'Unable to open personal data export file (archive) for writing.' ); } // Remove the JSON file. unlink( $json_report_pathname ); // Remove the HTML file. unlink( $html_report_pathname ); if ( $error ) { wp_send_json_error( $error ); } } /** * Send an email to the user with a link to the personal data export file * * @since 4.9.6 * * @param int $request_id The request ID for this personal data export. * @return true|WP_Error True on success or `WP_Error` on failure. */ function wp_privacy_send_personal_data_export_email( $request_id ) { // Get the request. $request = wp_get_user_request( $request_id ); if ( ! $request || 'export_personal_data' !== $request->action_name ) { return new WP_Error( 'invalid_request', __( 'Invalid request ID when sending personal data export email.' ) ); } // Localize message content for user; fallback to site default for visitors. if ( ! empty( $request->user_id ) ) { $switched_locale = switch_to_user_locale( $request->user_id ); } else { $switched_locale = switch_to_locale( get_locale() ); } /** This filter is documented in wp-includes/functions.php */ $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); $exports_url = wp_privacy_exports_url(); $export_file_name = get_post_meta( $request_id, '_export_file_name', true ); $export_file_url = $exports_url . $export_file_name; $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); $site_url = home_url(); /** * Filters the recipient of the personal data export email notification. * Should be used with great caution to avoid sending the data export link to the wrong email. * * @since 5.3.0 * * @param string $request_email The email address of the notification recipient. * @param WP_User_Request $request The request that is initiating the notification. */ $request_email = apply_filters( 'wp_privacy_personal_data_email_to', $request->email, $request ); $email_data = array( 'request' => $request, 'expiration' => $expiration, 'expiration_date' => $expiration_date, 'message_recipient' => $request_email, 'export_file_url' => $export_file_url, 'sitename' => $site_name, 'siteurl' => $site_url, ); /* translators: Personal data export notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Personal Data Export' ), $site_name ); /** * Filters the subject of the email sent when an export request is completed. * * @since 5.3.0 * * @param string $subject The email subject. * @param string $sitename The name of the site. * @param array $email_data { * Data relating to the account action email. * * @type WP_User_Request $request User request object. * @type int $expiration The time in seconds until the export file expires. * @type string $expiration_date The localized date and time when the export file expires. * @type string $message_recipient The address that the email will be sent to. Defaults * to the value of `$request->email`, but can be changed * by the `wp_privacy_personal_data_email_to` filter. * @type string $export_file_url The export file URL. * @type string $sitename The site name sending the mail. * @type string $siteurl The site URL sending the mail. * } */ $subject = apply_filters( 'wp_privacy_personal_data_email_subject', $subject, $site_name, $email_data ); /* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */ $email_text = __( 'Howdy, Your request for an export of personal data has been completed. You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on ###EXPIRATION###, so please download it before then. ###LINK### Regards, All at ###SITENAME### ###SITEURL###' ); /** * Filters the text of the email sent with a personal data export file. * * The following strings have a special meaning and will get replaced dynamically: * * - `###EXPIRATION###` The date when the URL will be automatically deleted. * - `###LINK###` URL of the personal data export file for the user. * - `###SITENAME###` The name of the site. * - `###SITEURL###` The URL to the site. * * @since 4.9.6 * @since 5.3.0 Introduced the `$email_data` array. * * @param string $email_text Text in the email. * @param int $request_id The request ID for this personal data export. * @param array $email_data { * Data relating to the account action email. * * @type WP_User_Request $request User request object. * @type int $expiration The time in seconds until the export file expires. * @type string $expiration_date The localized date and time when the export file expires. * @type string $message_recipient The address that the email will be sent to. Defaults * to the value of `$request->email`, but can be changed * by the `wp_privacy_personal_data_email_to` filter. * @type string $export_file_url The export file URL. * @type string $sitename The site name sending the mail. * @type string $siteurl The site URL sending the mail. */ $content = apply_filters( 'wp_privacy_personal_data_email_content', $email_text, $request_id, $email_data ); $content = str_replace( '###EXPIRATION###', $expiration_date, $content ); $content = str_replace( '###LINK###', sanitize_url( $export_file_url ), $content ); $content = str_replace( '###EMAIL###', $request_email, $content ); $content = str_replace( '###SITENAME###', $site_name, $content ); $content = str_replace( '###SITEURL###', sanitize_url( $site_url ), $content ); $headers = ''; /** * Filters the headers of the email sent with a personal data export file. * * @since 5.4.0 * * @param string|array $headers The email headers. * @param string $subject The email subject. * @param string $content The email content. * @param int $request_id The request ID. * @param array $email_data { * Data relating to the account action email. * * @type WP_User_Request $request User request object. * @type int $expiration The time in seconds until the export file expires. * @type string $expiration_date The localized date and time when the export file expires. * @type string $message_recipient The address that the email will be sent to. Defaults * to the value of `$request->email`, but can be changed * by the `wp_privacy_personal_data_email_to` filter. * @type string $export_file_url The export file URL. * @type string $sitename The site name sending the mail. * @type string $siteurl The site URL sending the mail. * } */ $headers = apply_filters( 'wp_privacy_personal_data_email_headers', $headers, $subject, $content, $request_id, $email_data ); $mail_success = wp_mail( $request_email, $subject, $content, $headers ); if ( $switched_locale ) { restore_previous_locale(); } if ( ! $mail_success ) { return new WP_Error( 'privacy_email_error', __( 'Unable to send personal data export email.' ) ); } return true; } /** * Intercept personal data exporter page Ajax responses in order to assemble the personal data export file. * * @since 4.9.6 * * @see 'wp_privacy_personal_data_export_page' * * @param array $response The response from the personal data exporter for the given page. * @param int $exporter_index The index of the personal data exporter. Begins at 1. * @param string $email_address The email address of the user whose personal data this is. * @param int $page The page of personal data for this exporter. Begins at 1. * @param int $request_id The request ID for this personal data export. * @param bool $send_as_email Whether the final results of the export should be emailed to the user. * @param string $exporter_key The slug (key) of the exporter. * @return array The filtered response. */ function wp_privacy_process_personal_data_export_page( $response, $exporter_index, $email_address, $page, $request_id, $send_as_email, $exporter_key ) { /* Do some simple checks on the shape of the response from the exporter. * If the exporter response is malformed, don't attempt to consume it - let it * pass through to generate a warning to the user by default Ajax processing. */ if ( ! is_array( $response ) ) { return $response; } if ( ! array_key_exists( 'done', $response ) ) { return $response; } if ( ! array_key_exists( 'data', $response ) ) { return $response; } if ( ! is_array( $response['data'] ) ) { return $response; } // Get the request. $request = wp_get_user_request( $request_id ); if ( ! $request || 'export_personal_data' !== $request->action_name ) { wp_send_json_error( __( 'Invalid request ID when merging personal data to export.' ) ); } $export_data = array(); // First exporter, first page? Reset the report data accumulation array. if ( 1 === $exporter_index && 1 === $page ) { update_post_meta( $request_id, '_export_data_raw', $export_data ); } else { $accumulated_data = get_post_meta( $request_id, '_export_data_raw', true ); if ( $accumulated_data ) { $export_data = $accumulated_data; } } // Now, merge the data from the exporter response into the data we have accumulated already. $export_data = array_merge( $export_data, $response['data'] ); update_post_meta( $request_id, '_export_data_raw', $export_data ); // If we are not yet on the last page of the last exporter, return now. /** This filter is documented in wp-admin/includes/ajax-actions.php */ $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); $is_last_exporter = count( $exporters ) === $exporter_index; $exporter_done = $response['done']; if ( ! $is_last_exporter || ! $exporter_done ) { return $response; } // Last exporter, last page - let's prepare the export file. // First we need to re-organize the raw data hierarchically in groups and items. $groups = array(); foreach ( (array) $export_data as $export_datum ) { $group_id = $export_datum['group_id']; $group_label = $export_datum['group_label']; $group_description = ''; if ( ! empty( $export_datum['group_description'] ) ) { $group_description = $export_datum['group_description']; } if ( ! array_key_exists( $group_id, $groups ) ) { $groups[ $group_id ] = array( 'group_label' => $group_label, 'group_description' => $group_description, 'items' => array(), ); } $item_id = $export_datum['item_id']; if ( ! array_key_exists( $item_id, $groups[ $group_id ]['items'] ) ) { $groups[ $group_id ]['items'][ $item_id ] = array(); } $old_item_data = $groups[ $group_id ]['items'][ $item_id ]; $merged_item_data = array_merge( $export_datum['data'], $old_item_data ); $groups[ $group_id ]['items'][ $item_id ] = $merged_item_data; } // Then save the grouped data into the request. delete_post_meta( $request_id, '_export_data_raw' ); update_post_meta( $request_id, '_export_data_grouped', $groups ); /** * Generate the export file from the collected, grouped personal data. * * @since 4.9.6 * * @param int $request_id The export request ID. */ do_action( 'wp_privacy_personal_data_export_file', $request_id ); // Clear the grouped data now that it is no longer needed. delete_post_meta( $request_id, '_export_data_grouped' ); // If the destination is email, send it now. if ( $send_as_email ) { $mail_success = wp_privacy_send_personal_data_export_email( $request_id ); if ( is_wp_error( $mail_success ) ) { wp_send_json_error( $mail_success->get_error_message() ); } // Update the request to completed state when the export email is sent. _wp_privacy_completed_request( $request_id ); } else { // Modify the response to include the URL of the export file so the browser can fetch it. $exports_url = wp_privacy_exports_url(); $export_file_name = get_post_meta( $request_id, '_export_file_name', true ); $export_file_url = $exports_url . $export_file_name; if ( ! empty( $export_file_url ) ) { $response['url'] = $export_file_url; } } return $response; } /** * Mark erasure requests as completed after processing is finished. * * This intercepts the Ajax responses to personal data eraser page requests, and * monitors the status of a request. Once all of the processing has finished, the * request is marked as completed. * * @since 4.9.6 * * @see 'wp_privacy_personal_data_erasure_page' * * @param array $response The response from the personal data eraser for * the given page. * @param int $eraser_index The index of the personal data eraser. Begins * at 1. * @param string $email_address The email address of the user whose personal * data this is. * @param int $page The page of personal data for this eraser. * Begins at 1. * @param int $request_id The request ID for this personal data erasure. * @return array The filtered response. */ function wp_privacy_process_personal_data_erasure_page( $response, $eraser_index, $email_address, $page, $request_id ) { /* * If the eraser response is malformed, don't attempt to consume it; let it * pass through, so that the default Ajax processing will generate a warning * to the user. */ if ( ! is_array( $response ) ) { return $response; } if ( ! array_key_exists( 'done', $response ) ) { return $response; } if ( ! array_key_exists( 'items_removed', $response ) ) { return $response; } if ( ! array_key_exists( 'items_retained', $response ) ) { return $response; } if ( ! array_key_exists( 'messages', $response ) ) { return $response; } // Get the request. $request = wp_get_user_request( $request_id ); if ( ! $request || 'remove_personal_data' !== $request->action_name ) { wp_send_json_error( __( 'Invalid request ID when processing personal data to erase.' ) ); } /** This filter is documented in wp-admin/includes/ajax-actions.php */ $erasers = apply_filters( 'wp_privacy_personal_data_erasers', array() ); $is_last_eraser = count( $erasers ) === $eraser_index; $eraser_done = $response['done']; if ( ! $is_last_eraser || ! $eraser_done ) { return $response; } _wp_privacy_completed_request( $request_id ); /** * Fires immediately after a personal data erasure request has been marked completed. * * @since 4.9.6 * * @param int $request_id The privacy request post ID associated with this request. */ do_action( 'wp_privacy_personal_data_erased', $request_id ); return $response; } includes/class-wp-upgrader-skin.php000064400000015630152213653150013375 0ustar00 '', 'nonce' => '', 'title' => '', 'context' => false, ); $this->options = wp_parse_args( $args, $defaults ); } /** * Sets the relationship between the skin being used and the upgrader. * * @since 2.8.0 * * @param WP_Upgrader $upgrader */ public function set_upgrader( &$upgrader ) { if ( is_object( $upgrader ) ) { $this->upgrader =& $upgrader; } $this->add_strings(); } /** * Sets up the strings used in the update process. * * @since 3.0.0 */ public function add_strings() { } /** * Sets the result of an upgrade. * * @since 2.8.0 * * @param string|bool|WP_Error $result The result of an upgrade. */ public function set_result( $result ) { $this->result = $result; } /** * Displays a form to the user to request for their FTP/SSH details in order * to connect to the filesystem. * * @since 2.8.0 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string. * * @see request_filesystem_credentials() * * @param bool|WP_Error $error Optional. Whether the current request has failed to connect, * or an error object. Default false. * @param string $context Optional. Full path to the directory that is tested * for being writable. Default empty. * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. * @return bool True on success, false on failure. */ public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) { $url = $this->options['url']; if ( ! $context ) { $context = $this->options['context']; } if ( ! empty( $this->options['nonce'] ) ) { $url = wp_nonce_url( $url, $this->options['nonce'] ); } $extra_fields = array(); return request_filesystem_credentials( $url, '', $error, $context, $extra_fields, $allow_relaxed_file_ownership ); } /** * Displays the header before the update process. * * @since 2.8.0 */ public function header() { if ( $this->done_header ) { return; } $this->done_header = true; echo '
        '; echo '

        ' . $this->options['title'] . '

        '; } /** * Displays the footer following the update process. * * @since 2.8.0 */ public function footer() { if ( $this->done_footer ) { return; } $this->done_footer = true; echo '
        '; } /** * Displays an error message about the update. * * @since 2.8.0 * * @param string|WP_Error $errors Errors. */ public function error( $errors ) { if ( ! $this->done_header ) { $this->header(); } if ( is_string( $errors ) ) { $this->feedback( $errors ); } elseif ( is_wp_error( $errors ) && $errors->has_errors() ) { foreach ( $errors->get_error_messages() as $message ) { if ( $errors->get_error_data() && is_string( $errors->get_error_data() ) ) { $this->feedback( $message . ' ' . esc_html( strip_tags( $errors->get_error_data() ) ) ); } else { $this->feedback( $message ); } } } } /** * Displays a message about the update. * * @since 2.8.0 * @since 5.9.0 Renamed `$string` (a PHP reserved keyword) to `$feedback` for PHP 8 named parameter support. * * @param string $feedback Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $feedback, ...$args ) { if ( isset( $this->upgrader->strings[ $feedback ] ) ) { $feedback = $this->upgrader->strings[ $feedback ]; } if ( str_contains( $feedback, '%' ) ) { if ( $args ) { $args = array_map( 'strip_tags', $args ); $args = array_map( 'esc_html', $args ); $feedback = vsprintf( $feedback, $args ); } } if ( empty( $feedback ) ) { return; } show_message( $feedback ); } /** * Performs an action before an update. * * @since 2.8.0 */ public function before() {} /** * Performs an action following an update. * * @since 2.8.0 */ public function after() {} /** * Outputs JavaScript that calls function to decrement the update counts. * * @since 3.9.0 * * @param string $type Type of update count to decrement. Likely values include 'plugin', * 'theme', 'translation', etc. */ protected function decrement_update_count( $type ) { if ( ! $this->result || is_wp_error( $this->result ) || 'up_to_date' === $this->result ) { return; } if ( defined( 'IFRAME_REQUEST' ) ) { echo ''; } else { echo ''; } } /** * Displays the header before the bulk update process. * * @since 3.0.0 */ public function bulk_header() {} /** * Displays the footer following the bulk update process. * * @since 3.0.0 */ public function bulk_footer() {} /** * Hides the `process_failed` error message when updating by uploading a zip file. * * @since 5.5.0 * * @param WP_Error $wp_error WP_Error object. * @return bool True if the error should be hidden, false otherwise. */ public function hide_process_failed( $wp_error ) { return false; } } includes/credits.php000064400000013310152213653150010521 0ustar00 'WordPress/' . $version . '; ' . home_url( '/' ) ); if ( wp_http_supports( array( 'ssl' ) ) ) { $url = set_url_scheme( $url, 'https' ); } $response = wp_remote_get( $url, $options ); if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) { return false; } $results = json_decode( wp_remote_retrieve_body( $response ), true ); if ( ! is_array( $results ) ) { return false; } set_site_transient( 'wordpress_credits_' . $locale, $results, DAY_IN_SECONDS ); } return $results; } /** * Retrieves the link to a contributor's WordPress.org profile page. * * @access private * @since 3.2.0 * * @param string $display_name The contributor's display name (passed by reference). * @param string $username The contributor's username. * @param string $profiles URL to the contributor's WordPress.org profile page. */ function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { $display_name = '' . esc_html( $display_name ) . ''; } /** * Retrieves the link to an external library used in WordPress. * * @access private * @since 3.2.0 * * @param string $data External library data (passed by reference). */ function _wp_credits_build_object_link( &$data ) { $data = '' . esc_html( $data[0] ) . ''; } /** * Displays the title for a given group of contributors. * * @since 5.3.0 * * @param array $group_data The current contributor group. */ function wp_credits_section_title( $group_data = array() ) { if ( ! count( $group_data ) ) { return; } if ( $group_data['name'] ) { if ( 'Translators' === $group_data['name'] ) { // Considered a special slug in the API response. (Also, will never be returned for en_US.) $title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' ); } elseif ( isset( $group_data['placeholders'] ) ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText $title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] ); } else { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText $title = translate( $group_data['name'] ); } echo '

        ' . esc_html( $title ) . "

        \n"; } } /** * Displays a list of contributors for a given group. * * @since 5.3.0 * * @param array $credits The credits groups returned from the API. * @param string $slug The current group to display. */ function wp_credits_section_list( $credits = array(), $slug = '' ) { $group_data = $credits['groups'][ $slug ] ?? array(); $credits_data = $credits['data']; if ( ! count( $group_data ) ) { return; } if ( ! empty( $group_data['shuffle'] ) ) { shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. } switch ( $group_data['type'] ) { case 'list': array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits_data['profiles'] ); echo '

        ' . wp_sprintf( '%l.', $group_data['data'] ) . "

        \n\n"; break; case 'libraries': array_walk( $group_data['data'], '_wp_credits_build_object_link' ); echo '

        ' . wp_sprintf( '%l.', $group_data['data'] ) . "

        \n\n"; break; default: $compact = 'compact' === $group_data['type']; $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); echo '\n"; break; } } includes/class-wp-links-list-table.php000064400000022452152213653150014000 0ustar00 'bookmarks', 'screen' => $args['screen'] ?? null, ) ); } /** * @return bool */ public function ajax_user_can() { return current_user_can( 'manage_links' ); } /** * @global int $cat_id Link category ID. * @global string $s Search string. * @global string $orderby The field to order the links by. * @global string $order The direction to order the links. */ public function prepare_items() { global $cat_id, $s, $orderby, $order; $cat_id = ! empty( $_REQUEST['cat_id'] ) ? absint( $_REQUEST['cat_id'] ) : 0; $orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : ''; $order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : ''; $s = ! empty( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : ''; $args = array( 'hide_invisible' => 0, 'hide_empty' => 0, ); if ( 'all' !== $cat_id ) { $args['category'] = $cat_id; } if ( ! empty( $s ) ) { $args['search'] = $s; } if ( ! empty( $orderby ) ) { $args['orderby'] = $orderby; } if ( ! empty( $order ) ) { $args['order'] = $order; } $this->items = get_bookmarks( $args ); } /** * Displays the message for no items. */ public function no_items() { _e( 'No links found.' ); } /** * Gets the list of bulk actions. * * @return array */ protected function get_bulk_actions() { $actions = array(); $actions['delete'] = __( 'Delete' ); return $actions; } /** * @global int $cat_id Link category ID. * @param string $which The location: 'top' or 'bottom'. */ protected function extra_tablenav( $which ) { global $cat_id; if ( 'top' !== $which ) { return; } ?>
        $cat_id, 'name' => 'cat_id', 'taxonomy' => 'link_category', 'show_option_all' => get_taxonomy( 'link_category' )->labels->all_items, 'hide_empty' => true, 'hierarchical' => 1, 'show_count' => 0, 'orderby' => 'name', ); echo ''; wp_dropdown_categories( $dropdown_options ); submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); ?>
        '', 'name' => _x( 'Name', 'link name' ), 'url' => __( 'URL' ), 'categories' => __( 'Categories' ), 'rel' => __( 'Relationship' ), 'visible' => __( 'Visible' ), 'rating' => __( 'Rating' ), ); } /** * Gets the list of sortable columns. * * @return array */ protected function get_sortable_columns() { return array( 'name' => array( 'name', false, _x( 'Name', 'link name' ), __( 'Table ordered by Name.' ), 'asc' ), 'url' => array( 'url', false, __( 'URL' ), __( 'Table ordered by URL.' ) ), 'visible' => array( 'visible', false, __( 'Visible' ), __( 'Table ordered by Visibility.' ) ), 'rating' => array( 'rating', false, __( 'Rating' ), __( 'Table ordered by Rating.' ) ), ); } /** * Gets the name of the default primary column. * * @since 4.3.0 * * @return string Name of the default primary column, in this case, 'name'. */ protected function get_default_primary_column_name() { return 'name'; } /** * Handles the checkbox column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support. * * @param object $item The current link object. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $link = $item; ?> %s', $edit_link, /* translators: %s: Link name. */ esc_attr( sprintf( __( 'Edit “%s”' ), $link->link_name ) ), $link->link_name ); } /** * Handles the link URL column output. * * @since 4.3.0 * * @param object $link The current link object. */ public function column_url( $link ) { $short_url = url_shorten( $link->link_url ); echo "$short_url"; } /** * Handles the link categories column output. * * @since 4.3.0 * * @global int $cat_id Link category ID. * * @param object $link The current link object. */ public function column_categories( $link ) { global $cat_id; $cat_names = array(); foreach ( $link->link_category as $category ) { $cat = get_term( $category, 'link_category', OBJECT, 'display' ); if ( is_wp_error( $cat ) ) { echo $cat->get_error_message(); } $cat_name = $cat->name; if ( (int) $cat_id !== $category ) { $cat_name = "$cat_name"; } $cat_names[] = $cat_name; } echo implode( ', ', $cat_names ); } /** * Handles the link relation column output. * * @since 4.3.0 * * @param object $link The current link object. */ public function column_rel( $link ) { echo empty( $link->link_rel ) ? '
        ' : $link->link_rel; } /** * Handles the link visibility column output. * * @since 4.3.0 * * @param object $link The current link object. */ public function column_visible( $link ) { if ( 'Y' === $link->link_visible ) { _e( 'Yes' ); } else { _e( 'No' ); } } /** * Handles the link rating column output. * * @since 4.3.0 * * @param object $link The current link object. */ public function column_rating( $link ) { echo $link->link_rating; } /** * Handles the default column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$link` to `$item` to match parent class for PHP 8 named parameter support. * * @param object $item Link object. * @param string $column_name Current column name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $link = $item; /** * Fires for each registered custom link column. * * @since 2.1.0 * * @param string $column_name Name of the custom column. * @param int $link_id Link ID. */ do_action( 'manage_link_custom_column', $column_name, $link->link_id ); } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { foreach ( $this->items as $link ) { $link = sanitize_bookmark( $link ); $link->link_name = esc_attr( $link->link_name ); $link->link_category = wp_get_link_cats( $link->link_id ); ?> single_row_columns( $link ); ?> ' . __( 'Edit' ) . ''; $actions['delete'] = sprintf( '%s', wp_nonce_url( "link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ), /* translators: %s: Link name. */ esc_js( sprintf( __( "You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ), __( 'Delete' ) ); return $this->row_actions( $actions ); } } includes/class-wp-filesystem-ftpext.php000064400000055351152213653150014322 0ustar00method = 'ftpext'; $this->errors = new WP_Error(); // Check if possible to use ftp functions. if ( ! extension_loaded( 'ftp' ) ) { $this->errors->add( 'no_ftp_ext', __( 'The ftp PHP extension is not available' ) ); return; } // This class uses the timeout on a per-connection basis, others use it on a per-action basis. if ( ! defined( 'FS_TIMEOUT' ) ) { define( 'FS_TIMEOUT', 4 * MINUTE_IN_SECONDS ); } if ( empty( $opt['port'] ) ) { $this->options['port'] = 21; } else { $this->options['port'] = $opt['port']; } if ( empty( $opt['hostname'] ) ) { $this->errors->add( 'empty_hostname', __( 'FTP hostname is required' ) ); } else { $this->options['hostname'] = $opt['hostname']; } // Check if the options provided are OK. if ( empty( $opt['username'] ) ) { $this->errors->add( 'empty_username', __( 'FTP username is required' ) ); } else { $this->options['username'] = $opt['username']; } if ( empty( $opt['password'] ) ) { $this->errors->add( 'empty_password', __( 'FTP password is required' ) ); } else { $this->options['password'] = $opt['password']; } $this->options['ssl'] = false; if ( isset( $opt['connection_type'] ) && 'ftps' === $opt['connection_type'] ) { $this->options['ssl'] = true; } } /** * Connects filesystem. * * @since 2.5.0 * * @return bool True on success, false on failure. */ public function connect() { if ( isset( $this->options['ssl'] ) && $this->options['ssl'] && function_exists( 'ftp_ssl_connect' ) ) { $this->link = @ftp_ssl_connect( $this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT ); } else { $this->link = @ftp_connect( $this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT ); } if ( ! $this->link ) { $this->errors->add( 'connect', sprintf( /* translators: %s: hostname:port */ __( 'Failed to connect to FTP Server %s' ), $this->options['hostname'] . ':' . $this->options['port'] ) ); return false; } if ( ! @ftp_login( $this->link, $this->options['username'], $this->options['password'] ) ) { $this->errors->add( 'auth', sprintf( /* translators: %s: Username. */ __( 'Username/Password incorrect for %s' ), $this->options['username'] ) ); return false; } // Set the connection to use Passive FTP. ftp_pasv( $this->link, true ); if ( @ftp_get_option( $this->link, FTP_TIMEOUT_SEC ) < FS_TIMEOUT ) { @ftp_set_option( $this->link, FTP_TIMEOUT_SEC, FS_TIMEOUT ); } return true; } /** * Reads entire file into a string. * * @since 2.5.0 * * @param string $file Name of the file to read. * @return string|false Read data on success, false if no temporary file could be opened, * or if the file couldn't be retrieved. */ public function get_contents( $file ) { $tempfile = wp_tempnam( $file ); $temphandle = fopen( $tempfile, 'w+' ); if ( ! $temphandle ) { unlink( $tempfile ); return false; } if ( ! ftp_fget( $this->link, $temphandle, $file, FTP_BINARY ) ) { fclose( $temphandle ); unlink( $tempfile ); return false; } fseek( $temphandle, 0 ); // Skip back to the start of the file being written to. $contents = ''; while ( ! feof( $temphandle ) ) { $contents .= fread( $temphandle, 8 * KB_IN_BYTES ); } fclose( $temphandle ); unlink( $tempfile ); return $contents; } /** * Reads entire file into an array. * * @since 2.5.0 * * @param string $file Path to the file. * @return array|false File contents in an array on success, false on failure. */ public function get_contents_array( $file ) { return explode( "\n", $this->get_contents( $file ) ); } /** * Writes a string to a file. * * @since 2.5.0 * * @param string $file Remote path to the file where to write the data. * @param string $contents The data to write. * @param int|false $mode Optional. The file permissions as octal number, usually 0644. * Default false. * @return bool True on success, false on failure. */ public function put_contents( $file, $contents, $mode = false ) { $tempfile = wp_tempnam( $file ); $temphandle = fopen( $tempfile, 'wb+' ); if ( ! $temphandle ) { unlink( $tempfile ); return false; } mbstring_binary_safe_encoding(); $data_length = strlen( $contents ); $bytes_written = fwrite( $temphandle, $contents ); reset_mbstring_encoding(); if ( $data_length !== $bytes_written ) { fclose( $temphandle ); unlink( $tempfile ); return false; } fseek( $temphandle, 0 ); // Skip back to the start of the file being written to. $ret = ftp_fput( $this->link, $file, $temphandle, FTP_BINARY ); fclose( $temphandle ); unlink( $tempfile ); $this->chmod( $file, $mode ); return $ret; } /** * Gets the current working directory. * * @since 2.5.0 * * @return string|false The current working directory on success, false on failure. */ public function cwd() { $cwd = ftp_pwd( $this->link ); if ( $cwd ) { $cwd = trailingslashit( $cwd ); } return $cwd; } /** * Changes current directory. * * @since 2.5.0 * * @param string $dir The new current directory. * @return bool True on success, false on failure. */ public function chdir( $dir ) { return @ftp_chdir( $this->link, $dir ); } /** * Changes filesystem permissions. * * @since 2.5.0 * * @param string $file Path to the file. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for directories. Default false. * @param bool $recursive Optional. If set to true, changes file permissions recursively. * Default false. * @return bool True on success, false on failure. */ public function chmod( $file, $mode = false, $recursive = false ) { if ( ! $mode ) { if ( $this->is_file( $file ) ) { $mode = FS_CHMOD_FILE; } elseif ( $this->is_dir( $file ) ) { $mode = FS_CHMOD_DIR; } else { return false; } } // chmod any sub-objects if recursive. if ( $recursive && $this->is_dir( $file ) ) { $filelist = $this->dirlist( $file ); foreach ( (array) $filelist as $filename => $filemeta ) { $this->chmod( $file . '/' . $filename, $mode, $recursive ); } } // chmod the file or directory. if ( ! function_exists( 'ftp_chmod' ) ) { return (bool) ftp_site( $this->link, sprintf( 'CHMOD %o %s', $mode, $file ) ); } return (bool) ftp_chmod( $this->link, $mode, $file ); } /** * Gets the file owner. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false Username of the owner on success, false on failure. */ public function owner( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['owner'] ?? ''; } /** * Gets the permissions of the specified file or filepath in their octal format. * * @since 2.5.0 * * @param string $file Path to the file. * @return string Mode of the file (the last 3 digits). */ public function getchmod( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['permsn'] ?? ''; } /** * Gets the file's group. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false The group on success, false on failure. */ public function group( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['group'] ?? ''; } /** * Copies a file. * * @since 2.5.0 * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for dirs. Default false. * @return bool True on success, false on failure. */ public function copy( $source, $destination, $overwrite = false, $mode = false ) { if ( ! $overwrite && $this->exists( $destination ) ) { return false; } $content = $this->get_contents( $source ); if ( false === $content ) { return false; } return $this->put_contents( $destination, $content, $mode ); } /** * Moves a file or directory. * * After moving files or directories, OPcache will need to be invalidated. * * If moving a directory fails, `copy_dir()` can be used for a recursive copy. * * Use `move_dir()` for moving directories with OPcache invalidation and a * fallback to `copy_dir()`. * * @since 2.5.0 * * @param string $source Path to the source file or directory. * @param string $destination Path to the destination file or directory. * @param bool $overwrite Optional. Whether to overwrite the destination if it exists. * Default false. * @return bool True on success, false on failure. */ public function move( $source, $destination, $overwrite = false ) { return ftp_rename( $this->link, $source, $destination ); } /** * Deletes a file or directory. * * @since 2.5.0 * * @param string $file Path to the file or directory. * @param bool $recursive Optional. If set to true, deletes files and folders recursively. * Default false. * @param string|false $type Type of resource. 'f' for file, 'd' for directory. * Default false. * @return bool True on success, false on failure. */ public function delete( $file, $recursive = false, $type = false ) { if ( empty( $file ) ) { return false; } if ( 'f' === $type || $this->is_file( $file ) ) { return ftp_delete( $this->link, $file ); } if ( ! $recursive ) { return ftp_rmdir( $this->link, $file ); } $filelist = $this->dirlist( trailingslashit( $file ) ); if ( ! empty( $filelist ) ) { foreach ( $filelist as $delete_file ) { $this->delete( trailingslashit( $file ) . $delete_file['name'], $recursive, $delete_file['type'] ); } } return ftp_rmdir( $this->link, $file ); } /** * Checks if a file or directory exists. * * @since 2.5.0 * @since 6.3.0 Returns false for an empty path. * * @param string $path Path to file or directory. * @return bool Whether $path exists or not. */ public function exists( $path ) { /* * Check for empty path. If ftp_nlist() receives an empty path, * it checks the current working directory and may return true. * * See https://core.trac.wordpress.org/ticket/33058. */ if ( '' === $path ) { return false; } $list = ftp_nlist( $this->link, $path ); if ( empty( $list ) && $this->is_dir( $path ) ) { return true; // File is an empty directory. } return ! empty( $list ); // Empty list = no file, so invert. } /** * Checks if resource is a file. * * @since 2.5.0 * * @param string $file File path. * @return bool Whether $file is a file. */ public function is_file( $file ) { return $this->exists( $file ) && ! $this->is_dir( $file ); } /** * Checks if resource is a directory. * * @since 2.5.0 * * @param string $path Directory path. * @return bool Whether $path is a directory. */ public function is_dir( $path ) { $cwd = $this->cwd(); $result = @ftp_chdir( $this->link, trailingslashit( $path ) ); if ( $result && $path === $this->cwd() || $this->cwd() !== $cwd ) { @ftp_chdir( $this->link, $cwd ); return true; } return false; } /** * Checks if a file is readable. * * @since 2.5.0 * * @param string $file Path to file. * @return bool Whether $file is readable. */ public function is_readable( $file ) { return true; } /** * Checks if a file or directory is writable. * * @since 2.5.0 * * @param string $path Path to file or directory. * @return bool Whether $path is writable. */ public function is_writable( $path ) { return true; } /** * Gets the file's last access time. * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing last access time, false on failure. */ public function atime( $file ) { return false; } /** * Gets the file modification time. * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing modification time, false on failure. */ public function mtime( $file ) { return ftp_mdtm( $this->link, $file ); } /** * Gets the file size (in bytes). * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Size of the file in bytes on success, false on failure. */ public function size( $file ) { $size = ftp_size( $this->link, $file ); return ( $size > -1 ) ? $size : false; } /** * Sets the access and modification times of a file. * * Note: If $file doesn't exist, it will be created. * * @since 2.5.0 * * @param string $file Path to file. * @param int $time Optional. Modified time to set for file. * Default 0. * @param int $atime Optional. Access time to set for file. * Default 0. * @return bool True on success, false on failure. */ public function touch( $file, $time = 0, $atime = 0 ) { return false; } /** * Creates a directory. * * @since 2.5.0 * * @param string $path Path for new directory. * @param int|false $chmod Optional. The permissions as octal number (or false to skip chmod). * Default false. * @param string|int|false $chown Optional. A user name or number (or false to skip chown). * Default false. * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp). * Default false. * @return bool True on success, false on failure. */ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { $path = untrailingslashit( $path ); if ( empty( $path ) ) { return false; } if ( ! ftp_mkdir( $this->link, $path ) ) { return false; } $this->chmod( $path, $chmod ); return true; } /** * Deletes a directory. * * @since 2.5.0 * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool True on success, false on failure. */ public function rmdir( $path, $recursive = false ) { return $this->delete( $path, $recursive ); } /** * Parses an individual entry from the FTP LIST command output. * * @param string $line A line from the directory listing. * @return array|string { * Array of file information. Empty string if the line could not be parsed. * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. * @type string $permsn Octal representation of permissions. * @type string|false $number File number as a string, or false if not available. * @type string|false $owner Owner name or ID, or false if not available. * @type string|false $group File permissions group, or false if not available. * @type string|false $size Size of file in bytes as a string, or false if not available. * @type string|false $lastmodunix Last modified unix timestamp as a string, or false if not available. * @type string|false $lastmod Last modified month (3 letters) and day (without leading 0), or * false if not available. * @type string|false $time Last modified time, or false if not available. * @type string $type Type of resource. 'f' for file, 'd' for directory, 'l' for link. * @type array|false $files If a directory and `$recursive` is true, contains another array of files. * False if unable to list directory contents. * } */ public function parselisting( $line ) { static $is_windows = null; if ( is_null( $is_windows ) ) { $is_windows = stripos( ftp_systype( $this->link ), 'win' ) !== false; } if ( $is_windows && preg_match( '/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|) +(.+)/', $line, $lucifer ) ) { $b = array(); if ( $lucifer[3] < 70 ) { $lucifer[3] += 2000; } else { $lucifer[3] += 1900; // 4-digit year fix. } $b['isdir'] = ( '' === $lucifer[7] ); if ( $b['isdir'] ) { $b['type'] = 'd'; } else { $b['type'] = 'f'; } $b['size'] = $lucifer[7]; $b['month'] = $lucifer[1]; $b['day'] = $lucifer[2]; $b['year'] = $lucifer[3]; $b['hour'] = $lucifer[4]; $b['minute'] = $lucifer[5]; $b['time'] = mktime( $lucifer[4] + ( strcasecmp( $lucifer[6], 'PM' ) === 0 ? 12 : 0 ), $lucifer[5], 0, $lucifer[1], $lucifer[2], $lucifer[3] ); $b['am/pm'] = $lucifer[6]; $b['name'] = $lucifer[8]; } elseif ( ! $is_windows ) { $lucifer = preg_split( '/[ ]/', $line, 9, PREG_SPLIT_NO_EMPTY ); if ( $lucifer ) { $lcount = count( $lucifer ); if ( $lcount < 8 ) { return ''; } $b = array(); $b['isdir'] = 'd' === $lucifer[0][0]; $b['islink'] = 'l' === $lucifer[0][0]; if ( $b['isdir'] ) { $b['type'] = 'd'; } elseif ( $b['islink'] ) { $b['type'] = 'l'; } else { $b['type'] = 'f'; } $b['perms'] = $lucifer[0]; $b['permsn'] = $this->getnumchmodfromh( $b['perms'] ); $b['number'] = $lucifer[1]; $b['owner'] = $lucifer[2]; $b['group'] = $lucifer[3]; $b['size'] = $lucifer[4]; if ( 8 === $lcount ) { sscanf( $lucifer[5], '%d-%d-%d', $b['year'], $b['month'], $b['day'] ); sscanf( $lucifer[6], '%d:%d', $b['hour'], $b['minute'] ); $b['time'] = mktime( $b['hour'], $b['minute'], 0, $b['month'], $b['day'], $b['year'] ); $b['name'] = $lucifer[7]; } else { $b['month'] = $lucifer[5]; $b['day'] = $lucifer[6]; if ( preg_match( '/([0-9]{2}):([0-9]{2})/', $lucifer[7], $l2 ) ) { $b['year'] = gmdate( 'Y' ); $b['hour'] = $l2[1]; $b['minute'] = $l2[2]; } else { $b['year'] = $lucifer[7]; $b['hour'] = 0; $b['minute'] = 0; } $b['time'] = strtotime( sprintf( '%d %s %d %02d:%02d', $b['day'], $b['month'], $b['year'], $b['hour'], $b['minute'] ) ); $b['name'] = $lucifer[8]; } } } // Replace symlinks formatted as "source -> target" with just the source name. if ( isset( $b['islink'] ) && $b['islink'] ) { $b['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $b['name'] ); } return $b; } /** * Gets details for files in a directory or a specific file. * * @since 2.5.0 * * @param string $path Path to directory or file. * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. * Default true. * @param bool $recursive Optional. Whether to recursively include file details in nested directories. * Default false. * @return array|false { * Array of arrays containing file information. False if unable to list directory contents. * * @type array ...$0 { * Array of file information. Note that some elements may not be available on all filesystems. * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. * @type string $permsn Octal representation of permissions. * @type int|string|false $number File number. May be a numeric string. False if not available. * @type string|false $owner Owner name or ID, or false if not available. * @type string|false $group File permissions group, or false if not available. * @type int|string|false $size Size of file in bytes. May be a numeric string. * False if not available. * @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string. * False if not available. * @type string|false $lastmod Last modified month (3 letters) and day (without leading 0), or * false if not available. * @type string|false $time Last modified time, or false if not available. * @type string $type Type of resource. 'f' for file, 'd' for directory, 'l' for link. * @type array|false $files If a directory and `$recursive` is true, contains another array of * files. False if unable to list directory contents. * } * } */ public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) { if ( $this->is_file( $path ) ) { $limit_file = basename( $path ); $path = dirname( $path ) . '/'; } else { $limit_file = false; } $pwd = ftp_pwd( $this->link ); if ( ! @ftp_chdir( $this->link, $path ) ) { // Can't change to folder = folder doesn't exist. return false; } $list = ftp_rawlist( $this->link, '-a', false ); @ftp_chdir( $this->link, $pwd ); if ( empty( $list ) ) { // Empty array = non-existent folder (real folder will show . at least). return false; } $dirlist = array(); foreach ( $list as $k => $v ) { $entry = $this->parselisting( $v ); if ( empty( $entry ) ) { continue; } if ( '.' === $entry['name'] || '..' === $entry['name'] ) { continue; } if ( ! $include_hidden && '.' === $entry['name'][0] ) { continue; } if ( $limit_file && $entry['name'] !== $limit_file ) { continue; } $dirlist[ $entry['name'] ] = $entry; } $path = trailingslashit( $path ); $ret = array(); foreach ( (array) $dirlist as $struc ) { if ( 'd' === $struc['type'] ) { if ( $recursive ) { $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); } else { $struc['files'] = array(); } } $ret[ $struc['name'] ] = $struc; } return $ret; } /** * Destructor. * * @since 2.5.0 */ public function __destruct() { if ( $this->link ) { ftp_close( $this->link ); } } } includes/class-bulk-theme-upgrader-skin.php000064400000005144152213653150015003 0ustar00upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' ); } /** * Performs an action before a bulk theme update. * * @since 3.0.0 * * @param string $title */ public function before( $title = '' ) { parent::before( $this->theme_info->display( 'Name' ) ); } /** * Performs an action following a bulk theme update. * * @since 3.0.0 * * @param string $title */ public function after( $title = '' ) { parent::after( $this->theme_info->display( 'Name' ) ); $this->decrement_update_count( 'theme' ); } /** * Displays the footer following the bulk update process. * * @since 3.0.0 */ public function bulk_footer() { parent::bulk_footer(); $update_actions = array( 'themes_page' => sprintf( '%s', self_admin_url( 'themes.php' ), __( 'Go to Themes page' ) ), 'updates_page' => sprintf( '%s', self_admin_url( 'update-core.php' ), __( 'Go to WordPress Updates page' ) ), ); if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { unset( $update_actions['themes_page'] ); } /** * Filters the list of action links available following bulk theme updates. * * @since 3.0.0 * * @param string[] $update_actions Array of theme action links. * @param WP_Theme $theme_info Theme object for the last-updated theme. */ $update_actions = apply_filters( 'update_bulk_theme_complete_actions', $update_actions, $this->theme_info ); if ( ! empty( $update_actions ) ) { $this->feedback( implode( ' | ', (array) $update_actions ) ); } } } includes/class-wp-list-table-compat.php000064400000002731152213653150014141 0ustar00_screen = $screen; if ( ! empty( $columns ) ) { $this->_columns = $columns; add_filter( 'manage_' . $screen->id . '_columns', array( $this, 'get_columns' ), 0 ); } } /** * Gets a list of all, hidden, and sortable columns. * * @since 3.1.0 * * @return array */ protected function get_column_info() { $columns = get_column_headers( $this->_screen ); $hidden = get_hidden_columns( $this->_screen ); $sortable = array(); $primary = $this->get_default_primary_column_name(); return array( $columns, $hidden, $sortable, $primary ); } /** * Gets a list of columns. * * @since 3.1.0 * * @return array */ public function get_columns() { return $this->_columns; } } includes/post.php000064400000240524152213653150010062 0ustar00cap->create_posts ) ) { if ( 'page' === $post_data['post_type'] ) { return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to create pages as this user.' ) ); } else { return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to create posts as this user.' ) ); } } if ( isset( $post_data['content'] ) ) { $post_data['post_content'] = $post_data['content']; } if ( isset( $post_data['excerpt'] ) ) { $post_data['post_excerpt'] = $post_data['excerpt']; } if ( isset( $post_data['parent_id'] ) ) { $post_data['post_parent'] = (int) $post_data['parent_id']; } if ( isset( $post_data['trackback_url'] ) ) { $post_data['to_ping'] = $post_data['trackback_url']; } $post_data['user_ID'] = get_current_user_id(); if ( ! empty( $post_data['post_author_override'] ) ) { $post_data['post_author'] = (int) $post_data['post_author_override']; } else { if ( ! empty( $post_data['post_author'] ) ) { $post_data['post_author'] = (int) $post_data['post_author']; } else { $post_data['post_author'] = (int) $post_data['user_ID']; } } if ( isset( $post_data['user_ID'] ) && ( $post_data['post_author'] !== $post_data['user_ID'] ) && ! current_user_can( $ptype->cap->edit_others_posts ) ) { if ( $update ) { if ( 'page' === $post_data['post_type'] ) { return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to edit pages as this user.' ) ); } else { return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to edit posts as this user.' ) ); } } else { if ( 'page' === $post_data['post_type'] ) { return new WP_Error( 'edit_others_pages', __( 'Sorry, you are not allowed to create pages as this user.' ) ); } else { return new WP_Error( 'edit_others_posts', __( 'Sorry, you are not allowed to create posts as this user.' ) ); } } } if ( ! empty( $post_data['post_status'] ) ) { $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); // No longer an auto-draft. if ( 'auto-draft' === $post_data['post_status'] ) { $post_data['post_status'] = 'draft'; } if ( ! get_post_status_object( $post_data['post_status'] ) ) { unset( $post_data['post_status'] ); } } // What to do based on which button they pressed. if ( isset( $post_data['saveasdraft'] ) && '' !== $post_data['saveasdraft'] ) { $post_data['post_status'] = 'draft'; } if ( isset( $post_data['saveasprivate'] ) && '' !== $post_data['saveasprivate'] ) { $post_data['post_status'] = 'private'; } if ( isset( $post_data['publish'] ) && ( '' !== $post_data['publish'] ) && ( ! isset( $post_data['post_status'] ) || 'private' !== $post_data['post_status'] ) ) { $post_data['post_status'] = 'publish'; } if ( isset( $post_data['advanced'] ) && '' !== $post_data['advanced'] ) { $post_data['post_status'] = 'draft'; } if ( isset( $post_data['pending'] ) && '' !== $post_data['pending'] ) { $post_data['post_status'] = 'pending'; } $post_id = $post_data['ID'] ?? false; $previous_status = $post_id ? get_post_field( 'post_status', $post_id ) : false; if ( isset( $post_data['post_status'] ) && 'private' === $post_data['post_status'] && ! current_user_can( $ptype->cap->publish_posts ) ) { $post_data['post_status'] = $previous_status ? $previous_status : 'pending'; } $published_statuses = array( 'publish', 'future' ); /* * Posts 'submitted for approval' are submitted to $_POST the same as if they were being published. * Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts. */ if ( isset( $post_data['post_status'] ) && ( in_array( $post_data['post_status'], $published_statuses, true ) && ! current_user_can( $ptype->cap->publish_posts ) ) ) { if ( ! in_array( $previous_status, $published_statuses, true ) || ! current_user_can( 'edit_post', $post_id ) ) { $post_data['post_status'] = 'pending'; } } if ( ! isset( $post_data['post_status'] ) ) { $post_data['post_status'] = 'auto-draft' === $previous_status ? 'draft' : $previous_status; } if ( isset( $post_data['post_password'] ) && ! current_user_can( $ptype->cap->publish_posts ) ) { unset( $post_data['post_password'] ); } if ( ! isset( $post_data['comment_status'] ) ) { $post_data['comment_status'] = 'closed'; } if ( ! isset( $post_data['ping_status'] ) ) { $post_data['ping_status'] = 'closed'; } foreach ( array( 'aa', 'mm', 'jj', 'hh', 'mn' ) as $timeunit ) { if ( ! empty( $post_data[ 'hidden_' . $timeunit ] ) && $post_data[ 'hidden_' . $timeunit ] !== $post_data[ $timeunit ] ) { $post_data['edit_date'] = '1'; break; } } if ( ! empty( $post_data['edit_date'] ) ) { $aa = $post_data['aa']; $mm = $post_data['mm']; $jj = $post_data['jj']; $hh = $post_data['hh']; $mn = $post_data['mn']; $ss = $post_data['ss']; $aa = ( $aa <= 0 ) ? gmdate( 'Y' ) : $aa; $mm = ( $mm <= 0 ) ? gmdate( 'n' ) : $mm; $jj = ( $jj > 31 ) ? 31 : $jj; $jj = ( $jj <= 0 ) ? gmdate( 'j' ) : $jj; $hh = ( $hh > 23 ) ? $hh - 24 : $hh; $mn = ( $mn > 59 ) ? $mn - 60 : $mn; $ss = ( $ss > 59 ) ? $ss - 60 : $ss; $post_data['post_date'] = sprintf( '%04d-%02d-%02d %02d:%02d:%02d', $aa, $mm, $jj, $hh, $mn, $ss ); $valid_date = wp_checkdate( $mm, $jj, $aa, $post_data['post_date'] ); if ( ! $valid_date ) { return new WP_Error( 'invalid_date', __( 'Invalid date.' ) ); } /* * Only assign a post date if the user has explicitly set a new value. * See #59125 and #19907. */ $previous_date = $post_id ? get_post_field( 'post_date', $post_id ) : false; if ( $previous_date && $previous_date !== $post_data['post_date'] ) { $post_data['edit_date'] = true; $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] ); } else { $post_data['edit_date'] = false; unset( $post_data['post_date'] ); unset( $post_data['post_date_gmt'] ); } } if ( isset( $post_data['post_category'] ) ) { $category_object = get_taxonomy( 'category' ); if ( ! current_user_can( $category_object->cap->assign_terms ) ) { unset( $post_data['post_category'] ); } } return $post_data; } /** * Returns only allowed post data fields. * * @since 5.0.1 * * @param array|WP_Error|null $post_data The array of post data to process, or an error object. * Defaults to the `$_POST` superglobal. * @return array|WP_Error Array of post data on success, WP_Error on failure. */ function _wp_get_allowed_postdata( $post_data = null ) { if ( empty( $post_data ) ) { $post_data = $_POST; } // Pass through errors. if ( is_wp_error( $post_data ) ) { return $post_data; } return array_diff_key( $post_data, array_flip( array( 'meta_input', 'file', 'guid' ) ) ); } /** * Updates an existing post with values provided in `$_POST`. * * If post data is passed as an argument, it is treated as an array of data * keyed appropriately for turning into a post object. * * If post data is not passed, the `$_POST` global variable is used instead. * * @since 1.5.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param array|null $post_data Optional. The array of post data to process. * Defaults to the `$_POST` superglobal. * @return int Post ID. */ function edit_post( $post_data = null ) { global $wpdb; if ( empty( $post_data ) ) { $post_data = &$_POST; } // Clear out any data in internal vars. unset( $post_data['filter'] ); $post_id = (int) $post_data['post_ID']; $post = get_post( $post_id ); $post_data['post_type'] = $post->post_type; $post_data['post_mime_type'] = $post->post_mime_type; if ( ! empty( $post_data['post_status'] ) ) { $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); if ( 'inherit' === $post_data['post_status'] ) { unset( $post_data['post_status'] ); } } $ptype = get_post_type_object( $post_data['post_type'] ); if ( ! current_user_can( 'edit_post', $post_id ) ) { if ( 'page' === $post_data['post_type'] ) { wp_die( __( 'Sorry, you are not allowed to edit this page.' ) ); } else { wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); } } if ( post_type_supports( $ptype->name, 'revisions' ) ) { $revisions = wp_get_post_revisions( $post_id, array( 'order' => 'ASC', 'posts_per_page' => 1, ) ); $revision = current( $revisions ); // Check if the revisions have been upgraded. if ( $revisions && _wp_get_post_revision_version( $revision ) < 1 ) { _wp_upgrade_revisions_of_post( $post, wp_get_post_revisions( $post_id ) ); } } if ( isset( $post_data['visibility'] ) ) { switch ( $post_data['visibility'] ) { case 'public': $post_data['post_password'] = ''; break; case 'password': unset( $post_data['sticky'] ); break; case 'private': $post_data['post_status'] = 'private'; $post_data['post_password'] = ''; unset( $post_data['sticky'] ); break; } } $post_data = _wp_translate_postdata( true, $post_data ); if ( is_wp_error( $post_data ) ) { wp_die( $post_data->get_error_message() ); } $translated = _wp_get_allowed_postdata( $post_data ); // Post formats. if ( isset( $post_data['post_format'] ) ) { set_post_format( $post_id, $post_data['post_format'] ); } $format_meta_urls = array( 'url', 'link_url', 'quote_source_url' ); foreach ( $format_meta_urls as $format_meta_url ) { $keyed = '_format_' . $format_meta_url; if ( isset( $post_data[ $keyed ] ) ) { update_post_meta( $post_id, $keyed, wp_slash( sanitize_url( wp_unslash( $post_data[ $keyed ] ) ) ) ); } } $format_keys = array( 'quote', 'quote_source_name', 'image', 'gallery', 'audio_embed', 'video_embed' ); foreach ( $format_keys as $key ) { $keyed = '_format_' . $key; if ( isset( $post_data[ $keyed ] ) ) { if ( current_user_can( 'unfiltered_html' ) ) { update_post_meta( $post_id, $keyed, $post_data[ $keyed ] ); } else { update_post_meta( $post_id, $keyed, wp_filter_post_kses( $post_data[ $keyed ] ) ); } } } if ( 'attachment' === $post_data['post_type'] && preg_match( '#^(audio|video)/#', $post_data['post_mime_type'] ) ) { $id3data = wp_get_attachment_metadata( $post_id ); if ( ! is_array( $id3data ) ) { $id3data = array(); } foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) { if ( isset( $post_data[ 'id3_' . $key ] ) ) { $id3data[ $key ] = sanitize_text_field( wp_unslash( $post_data[ 'id3_' . $key ] ) ); } } wp_update_attachment_metadata( $post_id, $id3data ); } // Meta stuff. if ( isset( $post_data['meta'] ) && $post_data['meta'] ) { foreach ( $post_data['meta'] as $key => $value ) { $meta = get_post_meta_by_id( $key ); if ( ! $meta ) { continue; } if ( (int) $meta->post_id !== $post_id ) { continue; } if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'edit_post_meta', $post_id, $meta->meta_key ) ) { continue; } if ( is_protected_meta( $value['key'], 'post' ) || ! current_user_can( 'edit_post_meta', $post_id, $value['key'] ) ) { continue; } update_meta( $key, $value['key'], $value['value'] ); } } if ( isset( $post_data['deletemeta'] ) && $post_data['deletemeta'] ) { foreach ( $post_data['deletemeta'] as $key => $value ) { $meta = get_post_meta_by_id( $key ); if ( ! $meta ) { continue; } if ( (int) $meta->post_id !== $post_id ) { continue; } if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'delete_post_meta', $post_id, $meta->meta_key ) ) { continue; } delete_meta( $key ); } } // Attachment stuff. if ( 'attachment' === $post_data['post_type'] ) { if ( isset( $post_data['_wp_attachment_image_alt'] ) ) { $image_alt = wp_unslash( $post_data['_wp_attachment_image_alt'] ); if ( get_post_meta( $post_id, '_wp_attachment_image_alt', true ) !== $image_alt ) { $image_alt = wp_strip_all_tags( $image_alt, true ); // update_post_meta() expects slashed. update_post_meta( $post_id, '_wp_attachment_image_alt', wp_slash( $image_alt ) ); } } $attachment_data = $post_data['attachments'][ $post_id ] ?? array(); /** This filter is documented in wp-admin/includes/media.php */ $translated = apply_filters( 'attachment_fields_to_save', $translated, $attachment_data ); } // Convert taxonomy input to term IDs, to avoid ambiguity. if ( isset( $post_data['tax_input'] ) ) { foreach ( (array) $post_data['tax_input'] as $taxonomy => $terms ) { $tax_object = get_taxonomy( $taxonomy ); if ( $tax_object && isset( $tax_object->meta_box_sanitize_cb ) ) { $translated['tax_input'][ $taxonomy ] = call_user_func_array( $tax_object->meta_box_sanitize_cb, array( $taxonomy, $terms ) ); } } } add_meta( $post_id ); update_post_meta( $post_id, '_edit_last', get_current_user_id() ); $success = wp_update_post( $translated ); // If the save failed, see if we can confidence check the main fields and try again. if ( ! $success && is_callable( array( $wpdb, 'strip_invalid_text_for_column' ) ) ) { $fields = array( 'post_title', 'post_content', 'post_excerpt' ); foreach ( $fields as $field ) { if ( isset( $translated[ $field ] ) ) { $translated[ $field ] = $wpdb->strip_invalid_text_for_column( $wpdb->posts, $field, $translated[ $field ] ); } } wp_update_post( $translated ); } // Now that we have an ID we can fix any attachment anchor hrefs. _fix_attachment_links( $post_id ); wp_set_post_lock( $post_id ); if ( current_user_can( $ptype->cap->edit_others_posts ) && current_user_can( $ptype->cap->publish_posts ) ) { if ( ! empty( $post_data['sticky'] ) ) { stick_post( $post_id ); } else { unstick_post( $post_id ); } } return $post_id; } /** * Processes the post data for the bulk editing of posts. * * Updates all bulk edited posts/pages, adding (but not removing) tags and * categories. Skips pages when they would be their own parent or child. * * @since 2.7.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param array|null $post_data Optional. The array of post data to process. * Defaults to the `$_POST` superglobal. * @return array { * An array of updated, skipped, and locked post IDs. * * @type int[] $updated An array of updated post IDs. * @type int[] $skipped An array of skipped post IDs. * @type int[] $locked An array of locked post IDs. * } */ function bulk_edit_posts( $post_data = null ) { global $wpdb; if ( empty( $post_data ) ) { $post_data = &$_POST; } if ( isset( $post_data['post_type'] ) ) { $ptype = get_post_type_object( $post_data['post_type'] ); } else { $ptype = get_post_type_object( 'post' ); } if ( ! current_user_can( $ptype->cap->edit_posts ) ) { if ( 'page' === $ptype->name ) { wp_die( __( 'Sorry, you are not allowed to edit pages.' ) ); } else { wp_die( __( 'Sorry, you are not allowed to edit posts.' ) ); } } if ( '-1' === $post_data['_status'] ) { $post_data['post_status'] = null; unset( $post_data['post_status'] ); } else { $post_data['post_status'] = $post_data['_status']; } unset( $post_data['_status'] ); if ( ! empty( $post_data['post_status'] ) ) { $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); if ( 'inherit' === $post_data['post_status'] ) { unset( $post_data['post_status'] ); } } $post_ids = array_map( 'intval', (array) $post_data['post'] ); $reset = array( 'post_author', 'post_status', 'post_password', 'post_parent', 'page_template', 'comment_status', 'ping_status', 'keep_private', 'tax_input', 'post_category', 'sticky', 'post_format', ); foreach ( $reset as $field ) { if ( isset( $post_data[ $field ] ) && ( '' === $post_data[ $field ] || '-1' === $post_data[ $field ] ) ) { unset( $post_data[ $field ] ); } } if ( isset( $post_data['post_category'] ) ) { if ( is_array( $post_data['post_category'] ) && ! empty( $post_data['post_category'] ) ) { $new_cats = array_map( 'absint', $post_data['post_category'] ); } else { unset( $post_data['post_category'] ); } } $tax_input = array(); if ( isset( $post_data['tax_input'] ) ) { foreach ( $post_data['tax_input'] as $tax_name => $terms ) { if ( empty( $terms ) ) { continue; } if ( is_taxonomy_hierarchical( $tax_name ) ) { $tax_input[ $tax_name ] = array_map( 'absint', $terms ); } else { $comma = _x( ',', 'tag delimiter' ); if ( ',' !== $comma ) { $terms = str_replace( $comma, ',', $terms ); } $tax_input[ $tax_name ] = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) ); } } } if ( isset( $post_data['post_parent'] ) && (int) $post_data['post_parent'] ) { $parent = (int) $post_data['post_parent']; $pages = $wpdb->get_results( "SELECT ID, post_parent FROM $wpdb->posts WHERE post_type = 'page'" ); $children = array(); for ( $i = 0; $i < 50 && $parent > 0; $i++ ) { $children[] = $parent; foreach ( $pages as $page ) { if ( (int) $page->ID === $parent ) { $parent = (int) $page->post_parent; break; } } } } $updated = array(); $skipped = array(); $locked = array(); $shared_post_data = $post_data; foreach ( $post_ids as $post_id ) { // Start with fresh post data with each iteration. $post_data = $shared_post_data; $post_type_object = get_post_type_object( get_post_type( $post_id ) ); if ( ! isset( $post_type_object ) || ( isset( $children ) && in_array( $post_id, $children, true ) ) || ! current_user_can( 'edit_post', $post_id ) ) { $skipped[] = $post_id; continue; } if ( wp_check_post_lock( $post_id ) ) { $locked[] = $post_id; continue; } $post = get_post( $post_id ); $tax_names = get_object_taxonomies( $post ); foreach ( $tax_names as $tax_name ) { $taxonomy_obj = get_taxonomy( $tax_name ); if ( ! $taxonomy_obj->show_in_quick_edit ) { continue; } if ( isset( $tax_input[ $tax_name ] ) && current_user_can( $taxonomy_obj->cap->assign_terms ) ) { $new_terms = $tax_input[ $tax_name ]; } else { $new_terms = array(); } if ( $taxonomy_obj->hierarchical ) { $current_terms = (array) wp_get_object_terms( $post_id, $tax_name, array( 'fields' => 'ids' ) ); } else { $current_terms = (array) wp_get_object_terms( $post_id, $tax_name, array( 'fields' => 'names' ) ); } $post_data['tax_input'][ $tax_name ] = array_merge( $current_terms, $new_terms ); } if ( isset( $new_cats ) && in_array( 'category', $tax_names, true ) ) { $cats = (array) wp_get_post_categories( $post_id ); if ( isset( $post_data['indeterminate_post_category'] ) && is_array( $post_data['indeterminate_post_category'] ) ) { $indeterminate_post_category = $post_data['indeterminate_post_category']; } else { $indeterminate_post_category = array(); } $indeterminate_cats = array_intersect( $cats, $indeterminate_post_category ); $determinate_cats = array_diff( $new_cats, $indeterminate_post_category ); $post_data['post_category'] = array_unique( array_merge( $indeterminate_cats, $determinate_cats ) ); unset( $post_data['tax_input']['category'] ); } $post_data['post_ID'] = $post_id; $post_data['post_type'] = $post->post_type; $post_data['post_mime_type'] = $post->post_mime_type; foreach ( array( 'comment_status', 'ping_status', 'post_author' ) as $field ) { if ( ! isset( $post_data[ $field ] ) ) { $post_data[ $field ] = $post->$field; } } $post_data = _wp_translate_postdata( true, $post_data ); if ( is_wp_error( $post_data ) ) { $skipped[] = $post_id; continue; } $post_data = _wp_get_allowed_postdata( $post_data ); if ( isset( $shared_post_data['post_format'] ) ) { set_post_format( $post_id, $shared_post_data['post_format'] ); } // Prevent wp_insert_post() from overwriting post format with the old data. unset( $post_data['tax_input']['post_format'] ); // Reset post date of scheduled post to be published. if ( in_array( $post->post_status, array( 'future', 'draft' ), true ) && 'publish' === $post_data['post_status'] ) { $post_data['post_date'] = current_time( 'mysql' ); $post_data['post_date_gmt'] = ''; } $post_id = wp_update_post( $post_data ); update_post_meta( $post_id, '_edit_last', get_current_user_id() ); $updated[] = $post_id; if ( isset( $post_data['sticky'] ) && current_user_can( $ptype->cap->edit_others_posts ) ) { if ( 'sticky' === $post_data['sticky'] ) { stick_post( $post_id ); } else { unstick_post( $post_id ); } } } /** * Fires after processing the post data for bulk edit. * * @since 6.3.0 * * @param int[] $updated An array of updated post IDs. * @param array $shared_post_data Associative array containing the post data. */ do_action( 'bulk_edit_posts', $updated, $shared_post_data ); return array( 'updated' => $updated, 'skipped' => $skipped, 'locked' => $locked, ); } /** * Returns default post information to use when populating the "Write Post" form. * * @since 2.0.0 * * @param string $post_type Optional. A post type string. Default 'post'. * @param bool $create_in_db Optional. Whether to insert the post into database. Default false. * @return WP_Post Post object containing all the default post data as attributes */ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) { $post_title = ''; if ( ! empty( $_REQUEST['post_title'] ) ) { $post_title = esc_html( wp_unslash( $_REQUEST['post_title'] ) ); } $post_content = ''; if ( ! empty( $_REQUEST['content'] ) ) { $post_content = esc_html( wp_unslash( $_REQUEST['content'] ) ); } $post_excerpt = ''; if ( ! empty( $_REQUEST['excerpt'] ) ) { $post_excerpt = esc_html( wp_unslash( $_REQUEST['excerpt'] ) ); } if ( $create_in_db ) { $post_id = wp_insert_post( array( 'post_title' => post_type_supports( $post_type, 'title' ) ? __( 'Auto Draft' ) : '', 'post_type' => $post_type, 'post_status' => 'auto-draft', ), true, false ); if ( is_wp_error( $post_id ) ) { wp_die( $post_id->get_error_message() ); } $post = get_post( $post_id ); if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post->post_type, 'post-formats' ) && get_option( 'default_post_format' ) ) { set_post_format( $post, get_option( 'default_post_format' ) ); } wp_after_insert_post( $post, false, null ); // Schedule auto-draft cleanup. if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) ) { wp_schedule_event( time(), 'daily', 'wp_scheduled_auto_draft_delete' ); } } else { $post = new stdClass(); $post->ID = 0; $post->post_author = ''; $post->post_date = ''; $post->post_date_gmt = ''; $post->post_password = ''; $post->post_name = ''; $post->post_type = $post_type; $post->post_status = 'draft'; $post->to_ping = ''; $post->pinged = ''; $post->comment_status = get_default_comment_status( $post_type ); $post->ping_status = get_default_comment_status( $post_type, 'pingback' ); $post->post_pingback = get_option( 'default_pingback_flag' ); $post->post_category = get_option( 'default_category' ); $post->page_template = 'default'; $post->post_parent = 0; $post->menu_order = 0; $post = new WP_Post( $post ); } /** * Filters the default post content initially used in the "Write Post" form. * * @since 1.5.0 * * @param string $post_content Default post content. * @param WP_Post $post Post object. */ $post->post_content = (string) apply_filters( 'default_content', $post_content, $post ); /** * Filters the default post title initially used in the "Write Post" form. * * @since 1.5.0 * * @param string $post_title Default post title. * @param WP_Post $post Post object. */ $post->post_title = (string) apply_filters( 'default_title', $post_title, $post ); /** * Filters the default post excerpt initially used in the "Write Post" form. * * @since 1.5.0 * * @param string $post_excerpt Default post excerpt. * @param WP_Post $post Post object. */ $post->post_excerpt = (string) apply_filters( 'default_excerpt', $post_excerpt, $post ); return $post; } /** * Determines if a post exists based on title, content, date and type. * * @since 2.0.0 * @since 5.2.0 Added the `$type` parameter. * @since 5.8.0 Added the `$status` parameter. * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $title Post title. * @param string $content Optional. Post content. * @param string $date Optional. Post date. * @param string $type Optional. Post type. * @param string $status Optional. Post status. * @return int Post ID if post exists, 0 otherwise. */ function post_exists( $title, $content = '', $date = '', $type = '', $status = '' ) { global $wpdb; $post_title = wp_unslash( sanitize_post_field( 'post_title', $title, 0, 'db' ) ); $post_content = wp_unslash( sanitize_post_field( 'post_content', $content, 0, 'db' ) ); $post_date = wp_unslash( sanitize_post_field( 'post_date', $date, 0, 'db' ) ); $post_type = wp_unslash( sanitize_post_field( 'post_type', $type, 0, 'db' ) ); $post_status = wp_unslash( sanitize_post_field( 'post_status', $status, 0, 'db' ) ); $query = "SELECT ID FROM $wpdb->posts WHERE 1=1"; $args = array(); if ( ! empty( $date ) ) { $query .= ' AND post_date = %s'; $args[] = $post_date; } if ( ! empty( $title ) ) { $query .= ' AND post_title = %s'; $args[] = $post_title; } if ( ! empty( $content ) ) { $query .= ' AND post_content = %s'; $args[] = $post_content; } if ( ! empty( $type ) ) { $query .= ' AND post_type = %s'; $args[] = $post_type; } if ( ! empty( $status ) ) { $query .= ' AND post_status = %s'; $args[] = $post_status; } if ( ! empty( $args ) ) { return (int) $wpdb->get_var( $wpdb->prepare( $query, $args ) ); } return 0; } /** * Creates a new post from the "Write Post" form using `$_POST` information. * * @since 2.1.0 * * @global WP_User $current_user * * @return int|WP_Error Post ID on success, WP_Error on failure. */ function wp_write_post() { if ( isset( $_POST['post_type'] ) ) { $ptype = get_post_type_object( $_POST['post_type'] ); } else { $ptype = get_post_type_object( 'post' ); } if ( ! current_user_can( $ptype->cap->edit_posts ) ) { if ( 'page' === $ptype->name ) { return new WP_Error( 'edit_pages', __( 'Sorry, you are not allowed to create pages on this site.' ) ); } else { return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to create posts or drafts on this site.' ) ); } } $_POST['post_mime_type'] = ''; // Clear out any data in internal vars. unset( $_POST['filter'] ); // Edit, don't write, if we have a post ID. if ( isset( $_POST['post_ID'] ) ) { return edit_post(); } if ( isset( $_POST['visibility'] ) ) { switch ( $_POST['visibility'] ) { case 'public': $_POST['post_password'] = ''; break; case 'password': unset( $_POST['sticky'] ); break; case 'private': $_POST['post_status'] = 'private'; $_POST['post_password'] = ''; unset( $_POST['sticky'] ); break; } } $translated = _wp_translate_postdata( false ); if ( is_wp_error( $translated ) ) { return $translated; } $translated = _wp_get_allowed_postdata( $translated ); // Create the post. $post_id = wp_insert_post( $translated ); if ( is_wp_error( $post_id ) ) { return $post_id; } if ( empty( $post_id ) ) { return 0; } add_meta( $post_id ); add_post_meta( $post_id, '_edit_last', $GLOBALS['current_user']->ID ); // Now that we have an ID we can fix any attachment anchor hrefs. _fix_attachment_links( $post_id ); wp_set_post_lock( $post_id ); return $post_id; } /** * Calls wp_write_post() and handles the errors. * * @since 2.0.0 * * @return int|void Post ID on success, void on failure. */ function write_post() { $result = wp_write_post(); if ( is_wp_error( $result ) ) { wp_die( $result->get_error_message() ); } else { return $result; } } // // Post Meta. // /** * Adds post meta data defined in the `$_POST` superglobal for a post with given ID. * * @since 1.2.0 * * @param int $post_id * @return int|bool */ function add_meta( $post_id ) { $post_id = (int) $post_id; $metakeyselect = isset( $_POST['metakeyselect'] ) ? wp_unslash( trim( $_POST['metakeyselect'] ) ) : ''; $metakeyinput = isset( $_POST['metakeyinput'] ) ? wp_unslash( trim( $_POST['metakeyinput'] ) ) : ''; $metavalue = $_POST['metavalue'] ?? ''; if ( is_string( $metavalue ) ) { $metavalue = trim( $metavalue ); } if ( ( ( '#NONE#' !== $metakeyselect ) && ! empty( $metakeyselect ) ) || ! empty( $metakeyinput ) ) { /* * We have a key/value pair. If both the select and the input * for the key have data, the input takes precedence. */ if ( '#NONE#' !== $metakeyselect ) { $metakey = $metakeyselect; } if ( $metakeyinput ) { $metakey = $metakeyinput; // Default. } if ( is_protected_meta( $metakey, 'post' ) || ! current_user_can( 'add_post_meta', $post_id, $metakey ) ) { return false; } $metakey = wp_slash( $metakey ); return add_post_meta( $post_id, $metakey, $metavalue ); } return false; } /** * Deletes post meta data by meta ID. * * @since 1.2.0 * * @param int $mid * @return bool */ function delete_meta( $mid ) { return delete_metadata_by_mid( 'post', $mid ); } /** * Returns a list of previously defined keys. * * @since 1.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @return string[] Array of meta key names. */ function get_meta_keys() { global $wpdb; $keys = $wpdb->get_col( "SELECT meta_key FROM $wpdb->postmeta GROUP BY meta_key ORDER BY meta_key" ); return $keys; } /** * Returns post meta data by meta ID. * * @since 2.1.0 * * @param int $mid * @return object|bool */ function get_post_meta_by_id( $mid ) { return get_metadata_by_mid( 'post', $mid ); } /** * Returns meta data for the given post ID. * * @since 1.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $post_id A post ID. * @return array[] { * Array of meta data arrays for the given post ID. * * @type array ...$0 { * Associative array of meta data. * * @type string $meta_key Meta key. * @type mixed $meta_value Meta value. * @type string $meta_id Meta ID as a numeric string. * @type string $post_id Post ID as a numeric string. * } * } */ function has_meta( $post_id ) { global $wpdb; return $wpdb->get_results( $wpdb->prepare( "SELECT meta_key, meta_value, meta_id, post_id FROM $wpdb->postmeta WHERE post_id = %d ORDER BY meta_key,meta_id", $post_id ), ARRAY_A ); } /** * Updates post meta data by meta ID. * * @since 1.2.0 * * @param int $meta_id Meta ID. * @param string $meta_key Meta key. Expect slashed. * @param string $meta_value Meta value. Expect slashed. * @return bool */ function update_meta( $meta_id, $meta_key, $meta_value ) { $meta_key = wp_unslash( $meta_key ); $meta_value = wp_unslash( $meta_value ); return update_metadata_by_mid( 'post', $meta_id, $meta_value, $meta_key ); } // // Private. // /** * Replaces hrefs of attachment anchors with up-to-date permalinks. * * @since 2.3.0 * @access private * * @param int|WP_Post $post Post ID or post object. * @return void|int|WP_Error Void if nothing fixed. 0 or WP_Error on update failure. The post ID on update success. */ function _fix_attachment_links( $post ) { $post = get_post( $post, ARRAY_A ); $content = $post['post_content']; // Don't run if no pretty permalinks or post is not published, scheduled, or privately published. if ( ! get_option( 'permalink_structure' ) || ! in_array( $post['post_status'], array( 'publish', 'future', 'private' ), true ) ) { return; } // Short if there aren't any links or no '?attachment_id=' strings (strpos cannot be zero). if ( ! strpos( $content, '?attachment_id=' ) || ! preg_match_all( '/]+)>[\s\S]+?<\/a>/', $content, $link_matches ) ) { return; } $site_url = get_bloginfo( 'url' ); $site_url = substr( $site_url, (int) strpos( $site_url, '://' ) ); // Remove the http(s). $replace = ''; foreach ( $link_matches[1] as $key => $value ) { if ( ! strpos( $value, '?attachment_id=' ) || ! strpos( $value, 'wp-att-' ) || ! preg_match( '/href=(["\'])[^"\']*\?attachment_id=(\d+)[^"\']*\\1/', $value, $url_match ) || ! preg_match( '/rel=["\'][^"\']*wp-att-(\d+)/', $value, $rel_match ) ) { continue; } $quote = $url_match[1]; // The quote (single or double). $url_id = (int) $url_match[2]; $rel_id = (int) $rel_match[1]; if ( ! $url_id || ! $rel_id || $url_id !== $rel_id || ! str_contains( $url_match[0], $site_url ) ) { continue; } $link = $link_matches[0][ $key ]; $replace = str_replace( $url_match[0], 'href=' . $quote . get_attachment_link( $url_id ) . $quote, $link ); $content = str_replace( $link, $replace, $content ); } if ( $replace ) { $post['post_content'] = $content; // Escape data pulled from DB. $post = add_magic_quotes( $post ); return wp_update_post( $post ); } } /** * Returns all the possible statuses for a post type. * * @since 2.5.0 * * @param string $type The post_type you want the statuses for. Default 'post'. * @return string[] An array of all the statuses for the supplied post type. */ function get_available_post_statuses( $type = 'post' ) { $statuses = wp_count_posts( $type ); return array_keys( get_object_vars( $statuses ) ); } /** * Runs the query to fetch the posts for listing on the edit posts page. * * @since 2.5.0 * * @param array|false $q Optional. Array of query variables to use to build the query. * Defaults to the `$_GET` superglobal. * @return string[] An array of all the statuses for the queried post type. */ function wp_edit_posts_query( $q = false ) { if ( false === $q ) { $q = $_GET; } $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0; $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; $post_statuses = get_post_stati(); if ( isset( $q['post_type'] ) && in_array( $q['post_type'], get_post_types(), true ) ) { $post_type = $q['post_type']; } else { $post_type = 'post'; } $avail_post_stati = get_available_post_statuses( $post_type ); $post_status = ''; $perm = ''; if ( isset( $q['post_status'] ) && in_array( $q['post_status'], $post_statuses, true ) ) { $post_status = $q['post_status']; $perm = 'readable'; } $orderby = ''; if ( isset( $q['orderby'] ) ) { $orderby = $q['orderby']; } elseif ( isset( $q['post_status'] ) && in_array( $q['post_status'], array( 'pending', 'draft' ), true ) ) { $orderby = 'modified'; } $order = ''; if ( isset( $q['order'] ) ) { $order = $q['order']; } elseif ( isset( $q['post_status'] ) && 'pending' === $q['post_status'] ) { $order = 'ASC'; } $per_page = "edit_{$post_type}_per_page"; $posts_per_page = (int) get_user_option( $per_page ); if ( empty( $posts_per_page ) || $posts_per_page < 1 ) { $posts_per_page = 20; } /** * Filters the number of items per page to show for a specific 'per_page' type. * * The dynamic portion of the hook name, `$post_type`, refers to the post type. * * Possible hook names include: * * - `edit_post_per_page` * - `edit_page_per_page` * - `edit_attachment_per_page` * * @since 3.0.0 * * @param int $posts_per_page Number of posts to display per page for the given post * type. Default 20. */ $posts_per_page = apply_filters( "edit_{$post_type}_per_page", $posts_per_page ); /** * Filters the number of posts displayed per page when specifically listing "posts". * * @since 2.8.0 * * @param int $posts_per_page Number of posts to be displayed. Default 20. * @param string $post_type The post type. */ $posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type ); $query = compact( 'post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page' ); // Hierarchical types require special args. if ( is_post_type_hierarchical( $post_type ) && empty( $orderby ) ) { $query['orderby'] = 'menu_order title'; $query['order'] = 'asc'; $query['posts_per_page'] = -1; $query['posts_per_archive_page'] = -1; $query['fields'] = 'id=>parent'; } if ( ! empty( $q['show_sticky'] ) ) { $query['post__in'] = (array) get_option( 'sticky_posts' ); } wp( $query ); return $avail_post_stati; } /** * Returns the query variables for the current attachments request. * * @since 4.2.0 * * @param array|false $q Optional. Array of query variables to use to build the query. * Defaults to the `$_GET` superglobal. * @return array The parsed query vars. */ function wp_edit_attachments_query_vars( $q = false ) { if ( false === $q ) { $q = $_GET; } $q['m'] = isset( $q['m'] ) ? (int) $q['m'] : 0; $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; $q['post_type'] = 'attachment'; $post_type = get_post_type_object( 'attachment' ); $states = 'inherit'; if ( current_user_can( $post_type->cap->read_private_posts ) ) { $states .= ',private'; } $q['post_status'] = isset( $q['status'] ) && 'trash' === $q['status'] ? 'trash' : $states; $q['post_status'] = isset( $q['attachment-filter'] ) && 'trash' === $q['attachment-filter'] ? 'trash' : $states; $media_per_page = (int) get_user_option( 'upload_per_page' ); if ( empty( $media_per_page ) || $media_per_page < 1 ) { $media_per_page = 20; } /** * Filters the number of items to list per page when listing media items. * * @since 2.9.0 * * @param int $media_per_page Number of media to list. Default 20. */ $q['posts_per_page'] = apply_filters( 'upload_per_page', $media_per_page ); $post_mime_types = get_post_mime_types(); if ( isset( $q['post_mime_type'] ) && ! array_intersect( (array) $q['post_mime_type'], array_keys( $post_mime_types ) ) ) { unset( $q['post_mime_type'] ); } foreach ( array_keys( $post_mime_types ) as $type ) { if ( isset( $q['attachment-filter'] ) && "post_mime_type:$type" === $q['attachment-filter'] ) { $q['post_mime_type'] = $type; break; } } if ( isset( $q['detached'] ) || ( isset( $q['attachment-filter'] ) && 'detached' === $q['attachment-filter'] ) ) { $q['post_parent'] = 0; } if ( isset( $q['mine'] ) || ( isset( $q['attachment-filter'] ) && 'mine' === $q['attachment-filter'] ) ) { $q['author'] = get_current_user_id(); } // Filter query clauses to include filenames. if ( isset( $q['s'] ) ) { add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' ); } return $q; } /** * Executes a query for attachments. An array of WP_Query arguments * can be passed in, which will override the arguments set by this function. * * @since 2.5.0 * * @param array|false $q Optional. Array of query variables to use to build the query. * Defaults to the `$_GET` superglobal. * @return array { * Array containing the post mime types and available post mime types. * * @type array[] $post_mime_types Post mime types. * @type string[] $avail_post_mime_types Available post mime types. * } */ function wp_edit_attachments_query( $q = false ) { wp( wp_edit_attachments_query_vars( $q ) ); $post_mime_types = get_post_mime_types(); $avail_post_mime_types = get_available_post_mime_types( 'attachment' ); return array( $post_mime_types, $avail_post_mime_types ); } /** * Returns the list of classes to be used by a meta box. * * @since 2.5.0 * * @param string $box_id Meta box ID (used in the 'id' attribute for the meta box). * @param string $screen_id The screen on which the meta box is shown. * @return string Space-separated string of class names. */ function postbox_classes( $box_id, $screen_id ) { if ( isset( $_GET['edit'] ) && $_GET['edit'] === $box_id ) { $classes = array( '' ); } elseif ( get_user_option( 'closedpostboxes_' . $screen_id ) ) { $closed = get_user_option( 'closedpostboxes_' . $screen_id ); if ( ! is_array( $closed ) ) { $classes = array( '' ); } else { $classes = in_array( $box_id, $closed, true ) ? array( 'closed' ) : array( '' ); } } else { $classes = array( '' ); } /** * Filters the postbox classes for a specific screen and box ID combo. * * The dynamic portions of the hook name, `$screen_id` and `$box_id`, refer to * the screen ID and meta box ID, respectively. * * @since 3.2.0 * * @param string[] $classes An array of postbox classes. */ $classes = apply_filters( "postbox_classes_{$screen_id}_{$box_id}", $classes ); return implode( ' ', $classes ); } /** * Returns a sample permalink based on the post name. * * @since 2.5.0 * * @param int|WP_Post $post Post ID or post object. * @param string|null $title Optional. Title to override the post's current title * when generating the post name. Default null. * @param string|null $name Optional. Name to override the post name. Default null. * @return array { * Array containing the sample permalink with placeholder for the post name, and the post name. * * @type string $0 The permalink with placeholder for the post name. * @type string $1 The post name. * } */ function get_sample_permalink( $post, $title = null, $name = null ) { $post = get_post( $post ); if ( ! $post ) { return array( '', '' ); } $ptype = get_post_type_object( $post->post_type ); $original_status = $post->post_status; $original_date = $post->post_date; $original_name = $post->post_name; $original_filter = $post->filter; // Hack: get_permalink() would return plain permalink for drafts, so we will fake that our post is published. if ( in_array( $post->post_status, array( 'auto-draft', 'draft', 'pending', 'future' ), true ) ) { $post->post_status = 'publish'; $post->post_name = sanitize_title( $post->post_name ? $post->post_name : $post->post_title, $post->ID ); } /* * If the user wants to set a new name -- override the current one. * Note: if empty name is supplied -- use the title instead, see #6072. */ if ( ! is_null( $name ) ) { $post->post_name = sanitize_title( $name ? $name : $title, $post->ID ); } $post->post_name = wp_unique_post_slug( $post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent ); $post->filter = 'sample'; $permalink = get_permalink( $post, true ); // Replace custom post_type token with generic pagename token for ease of use. $permalink = str_replace( "%$post->post_type%", '%pagename%', $permalink ); // Handle page hierarchy. if ( $ptype->hierarchical ) { $uri = get_page_uri( $post ); if ( $uri ) { $uri = untrailingslashit( $uri ); $uri = strrev( stristr( strrev( $uri ), '/' ) ); $uri = untrailingslashit( $uri ); } /** This filter is documented in wp-admin/edit-tag-form.php */ $uri = apply_filters( 'editable_slug', $uri, $post ); if ( ! empty( $uri ) ) { $uri .= '/'; } $permalink = str_replace( '%pagename%', "{$uri}%pagename%", $permalink ); } /** This filter is documented in wp-admin/edit-tag-form.php */ $permalink = array( $permalink, apply_filters( 'editable_slug', $post->post_name, $post ) ); $post->post_status = $original_status; $post->post_date = $original_date; $post->post_name = $original_name; $post->filter = $original_filter; /** * Filters the sample permalink. * * @since 4.4.0 * * @param array $permalink { * Array containing the sample permalink with placeholder for the post name, and the post name. * * @type string $0 The permalink with placeholder for the post name. * @type string $1 The post name. * } * @param int $post_id Post ID. * @param string $title Post title. * @param string $name Post name (slug). * @param WP_Post $post Post object. */ return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post ); } /** * Returns the HTML of the sample permalink slug editor. * * @since 2.5.0 * * @param int|WP_Post $post Post ID or post object. * @param string|null $new_title Optional. New title. Default null. * @param string|null $new_slug Optional. New slug. Default null. * @return string The HTML of the sample permalink slug editor. */ function get_sample_permalink_html( $post, $new_title = null, $new_slug = null ) { $post = get_post( $post ); if ( ! $post ) { return ''; } list($permalink, $post_name) = get_sample_permalink( $post->ID, $new_title, $new_slug ); $view_link = false; $preview_target = ''; if ( current_user_can( 'read_post', $post->ID ) ) { if ( 'draft' === $post->post_status || empty( $post->post_name ) ) { $view_link = get_preview_post_link( $post ); $preview_target = " target='wp-preview-{$post->ID}'"; } else { if ( 'publish' === $post->post_status || 'attachment' === $post->post_type ) { $view_link = get_permalink( $post ); } else { // Allow non-published (private, future) to be viewed at a pretty permalink, in case $post->post_name is set. $view_link = str_replace( array( '%pagename%', '%postname%' ), $post->post_name, $permalink ); } } } // Permalinks without a post/page name placeholder don't have anything to edit. if ( ! str_contains( $permalink, '%postname%' ) && ! str_contains( $permalink, '%pagename%' ) ) { $return = '' . __( 'Permalink:' ) . "\n"; if ( false !== $view_link ) { $display_link = urldecode( $view_link ); $return .= '' . esc_html( $display_link ) . "\n"; } else { $return .= '' . $permalink . "\n"; } // Encourage a pretty permalink setting. if ( ! get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && ! ( 'page' === get_option( 'show_on_front' ) && (int) get_option( 'page_on_front' ) === $post->ID ) ) { $return .= '' . __( 'Change Permalink Structure' ) . "\n"; } } else { if ( mb_strlen( $post_name ) > 34 ) { $post_name_abridged = mb_substr( $post_name, 0, 16 ) . '…' . mb_substr( $post_name, -16 ); } else { $post_name_abridged = $post_name; } $post_name_html = '' . esc_html( $post_name_abridged ) . ''; $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, esc_html( urldecode( $permalink ) ) ); $return = '' . __( 'Permalink:' ) . "\n"; $return .= '' . $display_link . "\n"; $return .= '‎'; // Fix bi-directional text display defect in RTL languages. $return .= '\n"; $return .= '' . esc_html( $post_name ) . "\n"; } /** * Filters the sample permalink HTML markup. * * @since 2.9.0 * @since 4.4.0 Added `$post` parameter. * * @param string $return Sample permalink HTML markup. * @param int $post_id Post ID. * @param string|null $new_title New sample permalink title. * @param string|null $new_slug New sample permalink slug. * @param WP_Post $post Post object. */ $return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post ); return $return; } /** * Returns HTML for the post thumbnail meta box. * * @since 2.9.0 * * @param int|null $thumbnail_id Optional. Thumbnail attachment ID. Default null. * @param int|WP_Post|null $post Optional. The post ID or object associated * with the thumbnail. Defaults to global $post. * @return string The post thumbnail HTML. */ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { $_wp_additional_image_sizes = wp_get_additional_image_sizes(); $post = get_post( $post ); $post_type_object = get_post_type_object( $post->post_type ); $set_thumbnail_link = '

        %s

        '; $upload_iframe_src = get_upload_iframe_src( 'image', $post->ID ); $content = sprintf( $set_thumbnail_link, esc_url( $upload_iframe_src ), '', // Empty when there's no featured image set, `aria-describedby` attribute otherwise. esc_html( $post_type_object->labels->set_featured_image ) ); if ( $thumbnail_id && get_post( $thumbnail_id ) ) { $size = isset( $_wp_additional_image_sizes['post-thumbnail'] ) ? 'post-thumbnail' : array( 266, 266 ); /** * Filters the size used to display the post thumbnail image in the 'Featured image' meta box. * * Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' * image size is registered, which differs from the 'thumbnail' image size * managed via the Settings > Media screen. * * @since 4.4.0 * * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). * @param int $thumbnail_id Post thumbnail attachment ID. * @param WP_Post $post The post object associated with the thumbnail. */ $size = apply_filters( 'admin_post_thumbnail_size', $size, $thumbnail_id, $post ); $thumbnail_html = wp_get_attachment_image( $thumbnail_id, $size ); if ( ! empty( $thumbnail_html ) ) { $content = sprintf( $set_thumbnail_link, esc_url( $upload_iframe_src ), ' aria-describedby="set-post-thumbnail-desc"', $thumbnail_html ); $content .= '

        ' . __( 'Click the image to edit or update' ) . '

        '; $content .= '

        ' . esc_html( $post_type_object->labels->remove_featured_image ) . '

        '; } } $content .= ''; /** * Filters the admin post thumbnail HTML markup to return. * * @since 2.9.0 * @since 3.5.0 Added the `$post_id` parameter. * @since 4.6.0 Added the `$thumbnail_id` parameter. * * @param string $content Admin post thumbnail HTML markup. * @param int $post_id Post ID. * @param int|null $thumbnail_id Thumbnail attachment ID, or null if there isn't one. */ return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID, $thumbnail_id ); } /** * Determines whether the post is currently being edited by another user. * * @since 2.5.0 * * @param int|WP_Post $post ID or object of the post to check for editing. * @return int|false ID of the user with lock. False if the post does not exist, post is not locked, * the user with lock does not exist, or the post is locked by current user. */ function wp_check_post_lock( $post ) { $post = get_post( $post ); if ( ! $post ) { return false; } $lock = get_post_meta( $post->ID, '_edit_lock', true ); if ( ! $lock ) { return false; } $lock = explode( ':', $lock ); $time = $lock[0]; $user = isset( $lock[1] ) ? (int) $lock[1] : (int) get_post_meta( $post->ID, '_edit_last', true ); if ( ! get_userdata( $user ) ) { return false; } /** This filter is documented in wp-admin/includes/ajax-actions.php */ $time_window = apply_filters( 'wp_check_post_lock_window', 150 ); if ( $time && $time > time() - $time_window && get_current_user_id() !== $user ) { return $user; } return false; } /** * Marks the post as currently being edited by the current user. * * @since 2.5.0 * * @param int|WP_Post $post ID or object of the post being edited. * @return array|false { * Array of the lock time and user ID. False if the post does not exist, or there * is no current user. * * @type int $0 The current time as a Unix timestamp. * @type int $1 The ID of the current user. * } */ function wp_set_post_lock( $post ) { $post = get_post( $post ); if ( ! $post ) { return false; } $user_id = get_current_user_id(); if ( 0 === $user_id ) { return false; } $now = time(); $lock = "$now:$user_id"; update_post_meta( $post->ID, '_edit_lock', $lock ); return array( $now, $user_id ); } /** * Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. * * @since 2.8.5 */ function _admin_notice_post_locked() { $post = get_post(); if ( ! $post ) { return; } $user = null; $user_id = wp_check_post_lock( $post->ID ); if ( $user_id ) { $user = get_userdata( $user_id ); } if ( $user ) { /** * Filters whether to show the post locked dialog. * * Returning false from the filter will prevent the dialog from being displayed. * * @since 3.6.0 * * @param bool $display Whether to display the dialog. Default true. * @param WP_Post $post Post object. * @param WP_User $user The user with the lock for the post. */ if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) { return; } $locked = true; } else { $locked = false; } $sendback = wp_get_referer(); $sendback_text = __( 'Go back' ); if ( ! $locked || ! $sendback || str_contains( $sendback, 'post.php' ) || str_contains( $sendback, 'post-new.php' ) ) { $sendback = admin_url( 'edit.php' ); if ( 'post' !== $post->post_type ) { $sendback = add_query_arg( 'post_type', $post->post_type, $sendback ); } $post_type_object = get_post_type_object( $post->post_type ); if ( $post_type_object ) { $sendback_text = $post_type_object->labels->all_items; } } $hidden = $locked ? '' : ' hidden'; ?>
        post_type )->public ) { if ( 'publish' === $post->post_status || $user->ID !== (int) $post->post_author ) { // Latest content is in autosave. $nonce = wp_create_nonce( 'post_preview_' . $post->ID ); $query_args['preview_id'] = $post->ID; $query_args['preview_nonce'] = $nonce; } } $preview_link = get_preview_post_link( $post->ID, $query_args ); /** * Filters whether to allow the post lock to be overridden. * * Returning false from the filter will disable the ability * to override the post lock. * * @since 3.6.0 * * @param bool $override Whether to allow the post lock to be overridden. Default true. * @param WP_Post $post Post object. * @param WP_User $user The user with the lock for the post. */ $override = apply_filters( 'override_post_lock', true, $post, $user ); $tab_last = $override ? '' : ' wp-tab-last'; ?>
        ID, 64 ); ?>

        display_name ) ); } else { /* translators: %s: User's display name. */ printf( __( '%s is currently editing this post.' ), esc_html( $user->display_name ) ); } ?>


        ID; $new_autosave['post_author'] = $post_author; $post = get_post( $post_id ); // If the new autosave has the same content as the post, delete the autosave. $autosave_is_different = false; foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { if ( normalize_whitespace( $new_autosave[ $field ] ) !== normalize_whitespace( $post->$field ) ) { $autosave_is_different = true; break; } } if ( ! $autosave_is_different ) { wp_delete_post_revision( $old_autosave->ID ); return 0; } /** * Fires before an autosave is stored. * * @since 4.1.0 * @since 6.4.0 The `$is_update` parameter was added to indicate if the autosave is being updated or was newly created. * * @param array $new_autosave Post array - the autosave that is about to be saved. * @param bool $is_update Whether this is an existing autosave. */ do_action( 'wp_creating_autosave', $new_autosave, true ); return wp_update_post( $new_autosave ); } // _wp_put_post_revision() expects unescaped. $post_data = wp_unslash( $post_data ); // Otherwise create the new autosave as a special post revision. $revision = _wp_put_post_revision( $post_data, true ); if ( ! is_wp_error( $revision ) && 0 !== $revision ) { /** This action is documented in wp-admin/includes/post.php */ do_action( 'wp_creating_autosave', get_post( $revision, ARRAY_A ), false ); } return $revision; } /** * Autosaves the revisioned meta fields. * * Iterates through the revisioned meta fields and checks each to see if they are set, * and have a changed value. If so, the meta value is saved and attached to the autosave. * * @since 6.4.0 * * @param array $new_autosave The new post data being autosaved. */ function wp_autosave_post_revisioned_meta_fields( $new_autosave ) { /* * The post data arrives as either $_POST['data']['wp_autosave'] or the $_POST * itself. This sets $posted_data to the correct variable. * * Ignoring sanitization to avoid altering meta. Ignoring the nonce check because * this is hooked on inner core hooks where a valid nonce was already checked. */ $posted_data = $_POST['data']['wp_autosave'] ?? $_POST; $post_type = get_post_type( $new_autosave['post_parent'] ); /* * Go through the revisioned meta keys and save them as part of the autosave, * if the meta key is part of the posted data, the meta value is not blank, * and the meta value has changes from the last autosaved value. */ foreach ( wp_post_revision_meta_keys( $post_type ) as $meta_key ) { if ( isset( $posted_data[ $meta_key ] ) && get_post_meta( $new_autosave['ID'], $meta_key, true ) !== wp_unslash( $posted_data[ $meta_key ] ) ) { /* * Use the underlying delete_metadata() and add_metadata() functions * vs delete_post_meta() and add_post_meta() to make sure we're working * with the actual revision meta. */ delete_metadata( 'post', $new_autosave['ID'], $meta_key ); // One last check to ensure meta value is not empty. if ( ! empty( $posted_data[ $meta_key ] ) ) { // Add the revisions meta data to the autosave. add_metadata( 'post', $new_autosave['ID'], $meta_key, $posted_data[ $meta_key ] ); } } } } /** * Saves a draft or manually autosaves for the purpose of showing a post preview. * * @since 2.7.0 * * @return string URL to redirect to show the preview. */ function post_preview() { $post_id = (int) $_POST['post_ID']; $_POST['ID'] = $post_id; $post = get_post( $post_id ); if ( ! $post ) { wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); } if ( ! current_user_can( 'edit_post', $post->ID ) ) { wp_die( __( 'Sorry, you are not allowed to edit this post.' ) ); } $is_autosave = false; if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() === (int) $post->post_author && ( 'draft' === $post->post_status || 'auto-draft' === $post->post_status ) ) { $saved_post_id = edit_post(); } else { $is_autosave = true; if ( isset( $_POST['post_status'] ) && 'auto-draft' === $_POST['post_status'] ) { $_POST['post_status'] = 'draft'; } $saved_post_id = wp_create_post_autosave( $post->ID ); } if ( is_wp_error( $saved_post_id ) ) { wp_die( $saved_post_id->get_error_message() ); } $query_args = array(); if ( $is_autosave && $saved_post_id ) { $query_args['preview_id'] = $post->ID; $query_args['preview_nonce'] = wp_create_nonce( 'post_preview_' . $post->ID ); if ( isset( $_POST['post_format'] ) ) { $query_args['post_format'] = empty( $_POST['post_format'] ) ? 'standard' : sanitize_key( $_POST['post_format'] ); } if ( isset( $_POST['_thumbnail_id'] ) ) { $query_args['_thumbnail_id'] = ( (int) $_POST['_thumbnail_id'] <= 0 ) ? '-1' : (int) $_POST['_thumbnail_id']; } } return get_preview_post_link( $post, $query_args ); } /** * Saves a post submitted with XHR. * * Intended for use with heartbeat and autosave.js * * @since 3.9.0 * * @param array $post_data Associative array of the submitted post data. * @return mixed The value 0 or WP_Error on failure. The saved post ID on success. * The ID can be the draft post_id or the autosave revision post_id. */ function wp_autosave( $post_data ) { // Back-compat. if ( ! defined( 'DOING_AUTOSAVE' ) ) { define( 'DOING_AUTOSAVE', true ); } $post_id = (int) $post_data['post_id']; $post_data['ID'] = $post_id; $post_data['post_ID'] = $post_id; if ( false === wp_verify_nonce( $post_data['_wpnonce'], 'update-post_' . $post_id ) ) { return new WP_Error( 'invalid_nonce', __( 'Error while saving.' ) ); } $post = get_post( $post_id ); if ( ! current_user_can( 'edit_post', $post->ID ) ) { return new WP_Error( 'edit_posts', __( 'Sorry, you are not allowed to edit this item.' ) ); } if ( 'auto-draft' === $post->post_status ) { $post_data['post_status'] = 'draft'; } if ( 'page' !== $post_data['post_type'] && ! empty( $post_data['catslist'] ) ) { $post_data['post_category'] = explode( ',', $post_data['catslist'] ); } if ( ! wp_check_post_lock( $post->ID ) && get_current_user_id() === (int) $post->post_author && ( 'auto-draft' === $post->post_status || 'draft' === $post->post_status ) ) { // Drafts and auto-drafts are just overwritten by autosave for the same user if the post is not locked. return edit_post( wp_slash( $post_data ) ); } else { /* * Non-drafts or other users' drafts are not overwritten. * The autosave is stored in a special post revision for each user. */ return wp_create_post_autosave( wp_slash( $post_data ) ); } } /** * Redirects to previous page. * * @since 2.7.0 * * @param int $post_id Optional. Post ID. */ function redirect_post( $post_id = 0 ) { if ( isset( $_POST['save'] ) || isset( $_POST['publish'] ) ) { $status = get_post_status( $post_id ); switch ( $status ) { case 'pending': $message = 8; break; case 'future': $message = 9; break; case 'draft': $message = 10; break; default: $message = isset( $_POST['publish'] ) ? 6 : 1; break; } $location = add_query_arg( 'message', $message, get_edit_post_link( $post_id, 'url' ) ); } elseif ( isset( $_POST['addmeta'] ) && $_POST['addmeta'] ) { $location = add_query_arg( 'message', 2, wp_get_referer() ); $location = explode( '#', $location ); $location = $location[0] . '#postcustom'; } elseif ( isset( $_POST['deletemeta'] ) && $_POST['deletemeta'] ) { $location = add_query_arg( 'message', 3, wp_get_referer() ); $location = explode( '#', $location ); $location = $location[0] . '#postcustom'; } else { $location = add_query_arg( 'message', 4, get_edit_post_link( $post_id, 'url' ) ); } /** * Filters the post redirect destination URL. * * @since 2.9.0 * * @param string $location The destination URL. * @param int $post_id The post ID. */ wp_redirect( apply_filters( 'redirect_post_location', $location, $post_id ) ); exit; } /** * Sanitizes POST values from a checkbox taxonomy metabox. * * @since 5.1.0 * * @param string $taxonomy The taxonomy name. * @param array $terms Raw term data from the 'tax_input' field. * @return int[] Array of sanitized term IDs. */ function taxonomy_meta_box_sanitize_cb_checkboxes( $taxonomy, $terms ) { return array_map( 'intval', $terms ); } /** * Sanitizes POST values from an input taxonomy metabox. * * @since 5.1.0 * * @param string $taxonomy The taxonomy name. * @param array|string $terms Raw term data from the 'tax_input' field. * @return array */ function taxonomy_meta_box_sanitize_cb_input( $taxonomy, $terms ) { /* * Assume that a 'tax_input' string is a comma-separated list of term names. * Some languages may use a character other than a comma as a delimiter, so we standardize on * commas before parsing the list. */ if ( ! is_array( $terms ) ) { $comma = _x( ',', 'tag delimiter' ); if ( ',' !== $comma ) { $terms = str_replace( $comma, ',', $terms ); } $terms = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) ); } $clean_terms = array(); foreach ( $terms as $term ) { // Empty terms are invalid input. if ( empty( $term ) ) { continue; } $_term = get_terms( array( 'taxonomy' => $taxonomy, 'name' => $term, 'fields' => 'ids', 'hide_empty' => false, ) ); if ( ! empty( $_term ) ) { $clean_terms[] = (int) $_term[0]; } else { // No existing term was found, so pass the string. A new term will be created. $clean_terms[] = $term; } } return $clean_terms; } /** * Prepares server-registered blocks for the block editor. * * Returns an associative array of registered block data keyed by block name. Data includes properties * of a block relevant for client registration. * * @since 5.0.0 * @since 6.3.0 Added `selectors` field. * @since 6.4.0 Added `block_hooks` field. * * @return array An associative array of registered block data. */ function get_block_editor_server_block_settings() { $block_registry = WP_Block_Type_Registry::get_instance(); $blocks = array(); $fields_to_pick = array( 'api_version' => 'apiVersion', 'title' => 'title', 'description' => 'description', 'icon' => 'icon', 'attributes' => 'attributes', 'provides_context' => 'providesContext', 'uses_context' => 'usesContext', 'block_hooks' => 'blockHooks', 'selectors' => 'selectors', 'supports' => 'supports', 'category' => 'category', 'styles' => 'styles', 'textdomain' => 'textdomain', 'parent' => 'parent', 'ancestor' => 'ancestor', 'keywords' => 'keywords', 'example' => 'example', 'variations' => 'variations', 'allowed_blocks' => 'allowedBlocks', ); foreach ( $block_registry->get_all_registered() as $block_name => $block_type ) { foreach ( $fields_to_pick as $field => $key ) { if ( ! isset( $block_type->{ $field } ) ) { continue; } if ( ! isset( $blocks[ $block_name ] ) ) { $blocks[ $block_name ] = array(); } $blocks[ $block_name ][ $key ] = $block_type->{ $field }; } } return $blocks; } /** * Renders the meta boxes forms. * * @since 5.0.0 * * @global WP_Post $post Global post object. * @global WP_Screen $current_screen WordPress current screen object. * @global array $wp_meta_boxes Global meta box state. */ function the_block_editor_meta_boxes() { global $post, $current_screen, $wp_meta_boxes; // Handle meta box state. $_original_meta_boxes = $wp_meta_boxes; /** * Fires right before the meta boxes are rendered. * * This allows for the filtering of meta box data, that should already be * present by this point. Do not use as a means of adding meta box data. * * @since 5.0.0 * * @param array $wp_meta_boxes Global meta box state. */ $wp_meta_boxes = apply_filters( 'filter_block_editor_meta_boxes', $wp_meta_boxes ); $locations = array( 'side', 'normal', 'advanced' ); $priorities = array( 'high', 'sorted', 'core', 'default', 'low' ); // Render meta boxes. ?>
        id ][ $location ] ) ) { continue; } foreach ( $priorities as $priority ) { if ( ! isset( $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ] ) ) { continue; } $meta_boxes = (array) $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ]; foreach ( $meta_boxes as $meta_box ) { if ( false === $meta_box || ! $meta_box['title'] ) { continue; } // If a meta box is just here for back compat, don't show it in the block editor. if ( isset( $meta_box['args']['__back_compat_meta_box'] ) && $meta_box['args']['__back_compat_meta_box'] ) { continue; } $meta_boxes_per_location[ $location ][] = array( 'id' => $meta_box['id'], 'title' => $meta_box['title'], ); } } } /* * Sadly we probably cannot add this data directly into editor settings. * * Some meta boxes need `admin_head` to fire for meta box registry. * `admin_head` fires after `admin_enqueue_scripts`, which is where we create * our editor instance. */ $script = 'window._wpLoadBlockEditor.then( function() { wp.data.dispatch( \'core/edit-post\' ).setAvailableMetaBoxesPerLocation( ' . wp_json_encode( $meta_boxes_per_location, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ' ); } );'; wp_add_inline_script( 'wp-edit-post', $script ); /* * When `wp-edit-post` is output in the ``, the inline script needs to be manually printed. * Otherwise, meta boxes will not display because inline scripts for `wp-edit-post` * will not be printed again after this point. */ if ( wp_script_is( 'wp-edit-post', 'done' ) ) { printf( "\n", trim( $script ) ); } /* * If the 'postcustom' meta box is enabled, then we need to perform * some extra initialization on it. */ $enable_custom_fields = (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ); if ( $enable_custom_fields ) { $script = "( function( $ ) { if ( $('#postcustom').length ) { $( '#the-list' ).wpList( { addBefore: function( s ) { s.data += '&post_id=$post->ID'; return s; }, addAfter: function() { $('table#list-table').show(); } }); } } )( jQuery );"; wp_enqueue_script( 'wp-lists' ); wp_add_inline_script( 'wp-lists', $script ); } /* * Refresh nonces used by the meta box loader. * * The logic is very similar to that provided by post.js for the classic editor. */ $script = "( function( $ ) { var check, timeout; function schedule() { check = false; window.clearTimeout( timeout ); timeout = window.setTimeout( function() { check = true; }, 300000 ); } $( document ).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) { var post_id, \$authCheck = $( '#wp-auth-check-wrap' ); if ( check || ( \$authCheck.length && ! \$authCheck.hasClass( 'hidden' ) ) ) { if ( ( post_id = $( '#post_ID' ).val() ) && $( '#_wpnonce' ).val() ) { data['wp-refresh-metabox-loader-nonces'] = { post_id: post_id }; } } }).on( 'heartbeat-tick.wp-refresh-nonces', function( e, data ) { var nonces = data['wp-refresh-metabox-loader-nonces']; if ( nonces ) { if ( nonces.replace ) { if ( nonces.replace.metabox_loader_nonce && window._wpMetaBoxUrl && wp.url ) { window._wpMetaBoxUrl= wp.url.addQueryArgs( window._wpMetaBoxUrl, { 'meta-box-loader-nonce': nonces.replace.metabox_loader_nonce } ); } if ( nonces.replace._wpnonce ) { $( '#_wpnonce' ).val( nonces.replace._wpnonce ); } } } }).ready( function() { schedule(); }); } )( jQuery );"; wp_add_inline_script( 'heartbeat', $script ); // Reset meta box data. $wp_meta_boxes = $_original_meta_boxes; } /** * Renders the hidden form required for the meta boxes form. * * @since 5.0.0 * * @param WP_Post $post Current post object. */ function the_block_editor_meta_box_post_form_hidden_fields( $post ) { $form_extra = ''; if ( 'auto-draft' === $post->post_status ) { $form_extra .= ""; } $form_action = 'editpost'; $nonce_action = 'update-post_' . $post->ID; $form_extra .= ""; $referer = wp_get_referer(); $current_user = wp_get_current_user(); $user_id = $current_user->ID; wp_nonce_field( $nonce_action ); /* * Some meta boxes hook into these actions to add hidden input fields in the classic post form. * For backward compatibility, we can capture the output from these actions, * and extract the hidden input fields. */ ob_start(); /** This filter is documented in wp-admin/edit-form-advanced.php */ do_action( 'edit_form_after_title', $post ); /** This filter is documented in wp-admin/edit-form-advanced.php */ do_action( 'edit_form_advanced', $post ); $classic_output = ob_get_clean(); $classic_elements = wp_html_split( $classic_output ); foreach ( $classic_elements as $element ) { if ( ! str_starts_with( $element, ' ` fields, which will be POSTed back to * the server when meta boxes are saved. * * @since 5.0.0 * * @param WP_Post $post The post that is being edited. */ do_action( 'block_editor_meta_box_hidden_fields', $post ); } /** * Disables block editor for wp_navigation type posts so they can be managed via the UI. * * @since 5.9.0 * @access private * * @param bool $value Whether the CPT supports block editor or not. * @param string $post_type Post type. * @return bool Whether the block editor should be disabled or not. */ function _disable_block_editor_for_navigation_post_type( $value, $post_type ) { if ( 'wp_navigation' === $post_type ) { return false; } return $value; } /** * This callback disables the content editor for wp_navigation type posts. * Content editor cannot handle wp_navigation type posts correctly. * We cannot disable the "editor" feature in the wp_navigation's CPT definition * because it disables the ability to save navigation blocks via REST API. * * @since 5.9.0 * @access private * * @param WP_Post $post An instance of WP_Post class. */ function _disable_content_editor_for_navigation_post_type( $post ) { $post_type = get_post_type( $post ); if ( 'wp_navigation' !== $post_type ) { return; } remove_post_type_support( $post_type, 'editor' ); } /** * This callback enables content editor for wp_navigation type posts. * We need to enable it back because we disable it to hide * the content editor for wp_navigation type posts. * * @since 5.9.0 * @access private * * @see _disable_content_editor_for_navigation_post_type * * @param WP_Post $post An instance of WP_Post class. */ function _enable_content_editor_for_navigation_post_type( $post ) { $post_type = get_post_type( $post ); if ( 'wp_navigation' !== $post_type ) { return; } add_post_type_support( $post_type, 'editor' ); } includes/class-core-upgrader.php000064400000035536152213653150012744 0ustar00strings['up_to_date'] = __( 'WordPress is at the latest version.' ); $this->strings['locked'] = __( 'Another update is currently in progress.' ); $this->strings['no_package'] = __( 'Update package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['copy_failed'] = __( 'Could not copy files.' ); $this->strings['copy_failed_space'] = __( 'Could not copy files. You may have run out of disk space.' ); $this->strings['start_rollback'] = __( 'Attempting to restore the previous version.' ); $this->strings['rollback_was_required'] = __( 'Due to an error during updating, WordPress has been restored to your previous version.' ); } /** * Upgrades WordPress core. * * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * @global callable $_wp_filesystem_direct_method Filesystem direct method callback. * * @param object $current Response object for whether WordPress is current. * @param array $args { * Optional. Arguments for upgrading WordPress core. Default empty array. * * @type bool $pre_check_md5 Whether to check the file checksums before * attempting the upgrade. Default true. * @type bool $attempt_rollback Whether to attempt to rollback the chances if * there is a problem. Default false. * @type bool $do_rollback Whether to perform this "upgrade" as a rollback. * Default false. * } * @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure. */ public function upgrade( $current, $args = array() ) { global $wp_filesystem; require ABSPATH . WPINC . '/version.php'; // $wp_version; $start_time = time(); $defaults = array( 'pre_check_md5' => true, 'attempt_rollback' => false, 'do_rollback' => false, 'allow_relaxed_file_ownership' => false, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->upgrade_strings(); // Is an update available? if ( ! isset( $current->response ) || 'latest' === $current->response ) { return new WP_Error( 'up_to_date', $this->strings['up_to_date'] ); } $res = $this->fs_connect( array( ABSPATH, WP_CONTENT_DIR ), $parsed_args['allow_relaxed_file_ownership'] ); if ( ! $res || is_wp_error( $res ) ) { return $res; } $wp_dir = trailingslashit( $wp_filesystem->abspath() ); $partial = true; if ( $parsed_args['do_rollback'] ) { $partial = false; } elseif ( $parsed_args['pre_check_md5'] && ! $this->check_files() ) { $partial = false; } /* * If partial update is returned from the API, use that, unless we're doing * a reinstallation. If we cross the new_bundled version number, then use * the new_bundled zip. Don't though if the constant is set to skip bundled items. * If the API returns a no_content zip, go with it. Finally, default to the full zip. */ if ( $parsed_args['do_rollback'] && $current->packages->rollback ) { $to_download = 'rollback'; } elseif ( $current->packages->partial && 'reinstall' !== $current->response && $wp_version === $current->partial_version && $partial ) { $to_download = 'partial'; } elseif ( $current->packages->new_bundled && version_compare( $wp_version, $current->new_bundled, '<' ) && ( ! defined( 'CORE_UPGRADE_SKIP_NEW_BUNDLED' ) || ! CORE_UPGRADE_SKIP_NEW_BUNDLED ) ) { $to_download = 'new_bundled'; } elseif ( $current->packages->no_content ) { $to_download = 'no_content'; } else { $to_download = 'full'; } // Lock to prevent multiple Core Updates occurring. $lock = WP_Upgrader::create_lock( 'core_updater', 15 * MINUTE_IN_SECONDS ); if ( ! $lock ) { return new WP_Error( 'locked', $this->strings['locked'] ); } $download = $this->download_package( $current->packages->$to_download, false ); /* * Allow for signature soft-fail. * WARNING: This may be removed in the future. */ if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) { // Output the failure error as a normal feedback, and not as an error: /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', $download->get_error_message() ); // Report this failure back to WordPress.org for debugging purposes. wp_version_check( array( 'signature_failure_code' => $download->get_error_code(), 'signature_failure_data' => $download->get_error_data(), ) ); // Pretend this error didn't happen. $download = $download->get_error_data( 'softfail-filename' ); } if ( is_wp_error( $download ) ) { WP_Upgrader::release_lock( 'core_updater' ); return $download; } $working_dir = $this->unpack_package( $download ); if ( is_wp_error( $working_dir ) ) { WP_Upgrader::release_lock( 'core_updater' ); return $working_dir; } // Copy update-core.php from the new version into place. if ( ! $wp_filesystem->copy( $working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true ) ) { $wp_filesystem->delete( $working_dir, true ); WP_Upgrader::release_lock( 'core_updater' ); return new WP_Error( 'copy_failed_for_update_core_file', __( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ), 'wp-admin/includes/update-core.php' ); } $wp_filesystem->chmod( $wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE ); wp_opcache_invalidate( ABSPATH . 'wp-admin/includes/update-core.php' ); require_once ABSPATH . 'wp-admin/includes/update-core.php'; if ( ! function_exists( 'update_core' ) ) { WP_Upgrader::release_lock( 'core_updater' ); return new WP_Error( 'copy_failed_space', $this->strings['copy_failed_space'] ); } $result = update_core( $working_dir, $wp_dir ); // In the event of an issue, we may be able to roll back. if ( $parsed_args['attempt_rollback'] && $current->packages->rollback && ! $parsed_args['do_rollback'] ) { $try_rollback = false; if ( is_wp_error( $result ) ) { $error_code = $result->get_error_code(); /* * Not all errors are equal. These codes are critical: copy_failed__copy_dir, * mkdir_failed__copy_dir, copy_failed__copy_dir_retry, and disk_full. * do_rollback allows for update_core() to trigger a rollback if needed. */ if ( str_contains( $error_code, 'do_rollback' ) ) { $try_rollback = true; } elseif ( str_contains( $error_code, '__copy_dir' ) ) { $try_rollback = true; } elseif ( 'disk_full' === $error_code ) { $try_rollback = true; } } if ( $try_rollback ) { /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', $result ); /** This filter is documented in wp-admin/includes/update-core.php */ apply_filters( 'update_feedback', $this->strings['start_rollback'] ); $rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) ); $original_result = $result; $result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result, ) ); } } /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core', ) ); // Clear the current updates. delete_site_transient( 'update_core' ); if ( ! $parsed_args['do_rollback'] ) { $stats = array( 'update_type' => $current->response, 'success' => true, 'fs_method' => $wp_filesystem->method, 'fs_method_forced' => defined( 'FS_METHOD' ) || has_filter( 'filesystem_method' ), 'fs_method_direct' => ! empty( $GLOBALS['_wp_filesystem_direct_method'] ) ? $GLOBALS['_wp_filesystem_direct_method'] : '', 'time_taken' => time() - $start_time, 'reported' => $wp_version, 'attempted' => $current->version, ); if ( is_wp_error( $result ) ) { $stats['success'] = false; // Did a rollback occur? if ( ! empty( $try_rollback ) ) { $stats['error_code'] = $original_result->get_error_code(); $stats['error_data'] = $original_result->get_error_data(); // Was the rollback successful? If not, collect its error too. $stats['rollback'] = ! is_wp_error( $rollback_result ); if ( is_wp_error( $rollback_result ) ) { $stats['rollback_code'] = $rollback_result->get_error_code(); $stats['rollback_data'] = $rollback_result->get_error_data(); } } else { $stats['error_code'] = $result->get_error_code(); $stats['error_data'] = $result->get_error_data(); } } wp_version_check( $stats ); } WP_Upgrader::release_lock( 'core_updater' ); return $result; } /** * Determines if this WordPress Core version should update to an offered version or not. * * @since 3.7.0 * * @param string $offered_ver The offered version, of the format x.y.z. * @return bool True if we should update to the offered version, otherwise false. */ public static function should_update_to_version( $offered_ver ) { require ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z $current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y $new_branch = implode( '.', array_slice( preg_split( '/[.-]/', $offered_ver ), 0, 2 ) ); // x.y $current_is_development_version = (bool) strpos( $wp_version, '-' ); // Defaults: $upgrade_dev = get_site_option( 'auto_update_core_dev', 'enabled' ) === 'enabled'; $upgrade_minor = get_site_option( 'auto_update_core_minor', 'enabled' ) === 'enabled'; $upgrade_major = get_site_option( 'auto_update_core_major', 'unset' ) === 'enabled'; // WP_AUTO_UPDATE_CORE = true (all), 'beta', 'rc', 'development', 'branch-development', 'minor', false. if ( defined( 'WP_AUTO_UPDATE_CORE' ) ) { if ( false === WP_AUTO_UPDATE_CORE ) { // Defaults to turned off, unless a filter allows it. $upgrade_dev = false; $upgrade_minor = false; $upgrade_major = false; } elseif ( true === WP_AUTO_UPDATE_CORE || in_array( WP_AUTO_UPDATE_CORE, array( 'beta', 'rc', 'development', 'branch-development' ), true ) ) { // ALL updates for core. $upgrade_dev = true; $upgrade_minor = true; $upgrade_major = true; } elseif ( 'minor' === WP_AUTO_UPDATE_CORE ) { // Only minor updates for core. $upgrade_dev = false; $upgrade_minor = true; $upgrade_major = false; } } // 1: If we're already on that version, not much point in updating? if ( $offered_ver === $wp_version ) { return false; } // 2: If we're running a newer version, that's a nope. if ( version_compare( $wp_version, $offered_ver, '>' ) ) { return false; } $failure_data = get_site_option( 'auto_core_update_failed' ); if ( $failure_data ) { // If this was a critical update failure, cannot update. if ( ! empty( $failure_data['critical'] ) ) { return false; } // Don't claim we can update on update-core.php if we have a non-critical failure logged. if ( $wp_version === $failure_data['current'] && str_contains( $offered_ver, '.1.next.minor' ) ) { return false; } /* * Cannot update if we're retrying the same A to B update that caused a non-critical failure. * Some non-critical failures do allow retries, like download_failed. * 3.7.1 => 3.7.2 resulted in files_not_writable, if we are still on 3.7.1 and still trying to update to 3.7.2. */ if ( empty( $failure_data['retry'] ) && $wp_version === $failure_data['current'] && $offered_ver === $failure_data['attempted'] ) { return false; } } // 3: 3.7-alpha-25000 -> 3.7-alpha-25678 -> 3.7-beta1 -> 3.7-beta2. if ( $current_is_development_version ) { /** * Filters whether to enable automatic core updates for development versions. * * @since 3.7.0 * * @param bool $upgrade_dev Whether to enable automatic updates for * development versions. */ if ( ! apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ) ) { return false; } // Else fall through to minor + major branches below. } // 4: Minor in-branch updates (3.7.0 -> 3.7.1 -> 3.7.2 -> 3.7.4). if ( $current_branch === $new_branch ) { /** * Filters whether to enable minor automatic core updates. * * @since 3.7.0 * * @param bool $upgrade_minor Whether to enable minor automatic core updates. */ return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor ); } // 5: Major version updates (3.7.0 -> 3.8.0 -> 3.9.1). if ( version_compare( $new_branch, $current_branch, '>' ) ) { /** * Filters whether to enable major automatic core updates. * * @since 3.7.0 * * @param bool $upgrade_major Whether to enable major automatic core updates. */ return apply_filters( 'allow_major_auto_core_updates', $upgrade_major ); } // If we're not sure, we don't want it. return false; } /** * Compares the disk file checksums against the expected checksums. * * @since 3.7.0 * * @global string $wp_version The WordPress version string. * @global string $wp_local_package Locale code of the package. * * @return bool True if the checksums match, otherwise false. */ public function check_files() { global $wp_version, $wp_local_package; $checksums = get_core_checksums( $wp_version, $wp_local_package ?? 'en_US' ); if ( ! is_array( $checksums ) ) { return false; } foreach ( $checksums as $file => $checksum ) { // Skip files which get updated. if ( str_starts_with( $file, 'wp-content' ) ) { continue; } if ( ! file_exists( ABSPATH . $file ) || md5_file( ABSPATH . $file ) !== $checksum ) { return false; } } return true; } } includes/import.php000064400000014731152213653150010406 0ustar00 sprintf( /* translators: 1: php.ini, 2: post_max_size, 3: upload_max_filesize */ __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your %1$s file or by %2$s being defined as smaller than %3$s in %1$s.' ), 'php.ini', 'post_max_size', 'upload_max_filesize' ), ); } $overrides = array( 'test_form' => false, 'test_type' => false, ); $_FILES['import']['name'] .= '.txt'; $upload = wp_handle_upload( $_FILES['import'], $overrides ); if ( isset( $upload['error'] ) ) { return $upload; } // Construct the attachment array. $attachment = array( 'post_title' => wp_basename( $upload['file'] ), 'post_content' => $upload['url'], 'post_mime_type' => $upload['type'], 'guid' => $upload['url'], 'context' => 'import', 'post_status' => 'private', ); // Save the data. $id = wp_insert_attachment( $attachment, $upload['file'] ); /* * Schedule a cleanup for one day from now in case of failed * import or missing wp_import_cleanup() call. */ wp_schedule_single_event( time() + DAY_IN_SECONDS, 'importer_scheduled_cleanup', array( $id ) ); return array( 'file' => $upload['file'], 'id' => $id, ); } /** * Returns a list from WordPress.org of popular importer plugins. * * @since 3.5.0 * * @return array Importers with metadata for each. */ function wp_get_popular_importers() { $locale = get_user_locale(); $cache_key = 'popular_importers_' . md5( $locale . wp_get_wp_version() ); $popular_importers = get_site_transient( $cache_key ); if ( ! $popular_importers ) { $url = add_query_arg( array( 'locale' => $locale, 'version' => wp_get_wp_version(), ), 'http://api.wordpress.org/core/importers/1.1/' ); $options = array( 'user-agent' => 'WordPress/' . wp_get_wp_version() . '; ' . home_url( '/' ) ); if ( wp_http_supports( array( 'ssl' ) ) ) { $url = set_url_scheme( $url, 'https' ); } $response = wp_remote_get( $url, $options ); $popular_importers = json_decode( wp_remote_retrieve_body( $response ), true ); if ( is_array( $popular_importers ) ) { set_site_transient( $cache_key, $popular_importers, 2 * DAY_IN_SECONDS ); } else { $popular_importers = false; } } if ( is_array( $popular_importers ) ) { // If the data was received as translated, return it as-is. if ( $popular_importers['translated'] ) { return $popular_importers['importers']; } foreach ( $popular_importers['importers'] as &$importer ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText $importer['description'] = translate( $importer['description'] ); if ( 'WordPress' !== $importer['name'] ) { // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText $importer['name'] = translate( $importer['name'] ); } } return $popular_importers['importers']; } return array( // slug => name, description, plugin slug, and register_importer() slug. 'blogger' => array( 'name' => __( 'Blogger' ), 'description' => __( 'Import posts, comments, and users from a Blogger blog.' ), 'plugin-slug' => 'blogger-importer', 'importer-id' => 'blogger', ), 'wpcat2tag' => array( 'name' => __( 'Categories and Tags Converter' ), 'description' => __( 'Convert existing categories to tags or tags to categories, selectively.' ), 'plugin-slug' => 'wpcat2tag-importer', 'importer-id' => 'wp-cat2tag', ), 'livejournal' => array( 'name' => __( 'LiveJournal' ), 'description' => __( 'Import posts from LiveJournal using their API.' ), 'plugin-slug' => 'livejournal-importer', 'importer-id' => 'livejournal', ), 'movabletype' => array( 'name' => __( 'Movable Type and TypePad' ), 'description' => __( 'Import posts and comments from a Movable Type or TypePad blog.' ), 'plugin-slug' => 'movabletype-importer', 'importer-id' => 'mt', ), 'rss' => array( 'name' => __( 'RSS' ), 'description' => __( 'Import posts from an RSS feed.' ), 'plugin-slug' => 'rss-importer', 'importer-id' => 'rss', ), 'tumblr' => array( 'name' => __( 'Tumblr' ), 'description' => __( 'Import posts & media from Tumblr using their API.' ), 'plugin-slug' => 'tumblr-importer', 'importer-id' => 'tumblr', ), 'wordpress' => array( 'name' => 'WordPress', 'description' => __( 'Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file.' ), 'plugin-slug' => 'wordpress-importer', 'importer-id' => 'wordpress', ), ); } includes/class-ftp-sockets.php000064400000020437152213653150012441 0ustar00 // // function _settimeout($sock) { if(!@socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) { $this->PushError('_connect','socket set receive timeout',socket_strerror(socket_last_error($sock))); @socket_close($sock); return FALSE; } if(!@socket_set_option($sock, SOL_SOCKET , SO_SNDTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) { $this->PushError('_connect','socket set send timeout',socket_strerror(socket_last_error($sock))); @socket_close($sock); return FALSE; } return true; } function _connect($host, $port) { $this->SendMSG("Creating socket"); if(!($sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) { $this->PushError('_connect','socket create failed',socket_strerror(socket_last_error($sock))); return FALSE; } if(!$this->_settimeout($sock)) return FALSE; $this->SendMSG("Connecting to \"".$host.":".$port."\""); if (!($res = @socket_connect($sock, $host, $port))) { $this->PushError('_connect','socket connect failed',socket_strerror(socket_last_error($sock))); @socket_close($sock); return FALSE; } $this->_connected=true; return $sock; } function _readmsg($fnction="_readmsg"){ if(!$this->_connected) { $this->PushError($fnction,'Connect first'); return FALSE; } $result=true; $this->_message=""; $this->_code=0; $go=true; do { $tmp=@socket_read($this->_ftp_control_sock, 4096, PHP_BINARY_READ); if($tmp===false) { $go=$result=false; $this->PushError($fnction,'Read failed', socket_strerror(socket_last_error($this->_ftp_control_sock))); } else { $this->_message.=$tmp; $go = !preg_match("/^([0-9]{3})(-.+\\1)? [^".CRLF."]+".CRLF."$/Us", $this->_message, $regs); } } while($go); if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF; $this->_code=(int)$regs[1]; return $result; } function _exec($cmd, $fnction="_exec") { if(!$this->_ready) { $this->PushError($fnction,'Connect first'); return FALSE; } if($this->LocalEcho) echo "PUT > ",$cmd,CRLF; $status=@socket_write($this->_ftp_control_sock, $cmd.CRLF); if($status===false) { $this->PushError($fnction,'socket write failed', socket_strerror(socket_last_error($this->stream))); return FALSE; } $this->_lastaction=time(); if(!$this->_readmsg($fnction)) return FALSE; return TRUE; } function _data_prepare($mode=FTP_ASCII) { if(!$this->_settype($mode)) return FALSE; $this->SendMSG("Creating data socket"); $this->_ftp_data_sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP); if ($this->_ftp_data_sock < 0) { $this->PushError('_data_prepare','socket create failed',socket_strerror(socket_last_error($this->_ftp_data_sock))); return FALSE; } if(!$this->_settimeout($this->_ftp_data_sock)) { $this->_data_close(); return FALSE; } if($this->_passive) { if(!$this->_exec("PASV", "pasv")) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } $ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message)); $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); if(!@socket_connect($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) { $this->PushError("_data_prepare","socket_connect", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->_data_close(); return FALSE; } else $this->_ftp_temp_sock=$this->_ftp_data_sock; } else { if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) { $this->PushError("_data_prepare","cannot get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock))); $this->_data_close(); return FALSE; } if(!@socket_bind($this->_ftp_data_sock,$addr)){ $this->PushError("_data_prepare","cannot bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->_data_close(); return FALSE; } if(!@socket_listen($this->_ftp_data_sock)) { $this->PushError("_data_prepare","cannot listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->_data_close(); return FALSE; } if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) { $this->PushError("_data_prepare","cannot get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock))); $this->_data_close(); return FALSE; } if(!$this->_exec('PORT '.str_replace('.',',',$this->_datahost.'.'.($this->_dataport>>8).'.'.($this->_dataport&0x00FF)), "_port")) { $this->_data_close(); return FALSE; } if(!$this->_checkCode()) { $this->_data_close(); return FALSE; } } return TRUE; } function _data_read($mode=FTP_ASCII, $fp=NULL) { $NewLine=$this->_eol_code[$this->OS_local]; if(is_resource($fp)) $out=0; else $out=""; if(!$this->_passive) { $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); $this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock); if($this->_ftp_temp_sock===FALSE) { $this->PushError("_data_read","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock))); $this->_data_close(); return FALSE; } } while(($block=@socket_read($this->_ftp_temp_sock, $this->_ftp_buff_size, PHP_BINARY_READ))!==false) { if($block==="") break; if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block); if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block)); else $out.=$block; } return $out; } function _data_write($mode=FTP_ASCII, $fp=NULL) { $NewLine=$this->_eol_code[$this->OS_local]; if(is_resource($fp)) $out=0; else $out=""; if(!$this->_passive) { $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); $this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock); if($this->_ftp_temp_sock===FALSE) { $this->PushError("_data_write","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock))); $this->_data_close(); return false; } } if(is_resource($fp)) { while(!feof($fp)) { $block=fread($fp, $this->_ftp_buff_size); if(!$this->_data_write_block($mode, $block)) return false; } } elseif(!$this->_data_write_block($mode, $fp)) return false; return true; } function _data_write_block($mode, $block) { if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block); do { if(($t=@socket_write($this->_ftp_temp_sock, $block))===FALSE) { $this->PushError("_data_write","socket_write", socket_strerror(socket_last_error($this->_ftp_temp_sock))); $this->_data_close(); return FALSE; } $block=substr($block, $t); } while(!empty($block)); return true; } function _data_close() { @socket_close($this->_ftp_temp_sock); @socket_close($this->_ftp_data_sock); $this->SendMSG("Disconnected data from remote host"); return TRUE; } function _quit() { if($this->_connected) { @socket_close($this->_ftp_control_sock); $this->_connected=false; $this->SendMSG("Socket closed"); } } } ?> includes/class-wp-automatic-updater.php000064400000170716152213653150014261 0ustar00is_allowed_dir( $check_dir ) ) { continue; } $checkout = is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ); if ( $checkout ) { break 2; } } } /** * Filters whether the automatic updater should consider a filesystem * location to be potentially managed by a version control system. * * @since 3.7.0 * * @param bool $checkout Whether a VCS checkout was discovered at `$context` * or ABSPATH, or anywhere higher. * @param string $context The filesystem context (a path) against which * filesystem status should be checked. */ return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context ); } /** * Tests to see if we can and should update a specific item. * * @since 3.7.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param string $type The type of update being checked: 'core', 'theme', * 'plugin', 'translation'. * @param object $item The update offer. * @param string $context The filesystem context (a path) against which filesystem * access and status should be checked. * @return bool True if the item should be updated, false otherwise. */ public function should_update( $type, $item, $context ) { // Used to see if WP_Filesystem is set up to allow unattended updates. $skin = new Automatic_Upgrader_Skin(); if ( $this->is_disabled() ) { return false; } // Only relax the filesystem checks when the update doesn't include new files. $allow_relaxed_file_ownership = false; if ( 'core' === $type && isset( $item->new_files ) && ! $item->new_files ) { $allow_relaxed_file_ownership = true; } // If we can't do an auto core update, we may still be able to email the user. if ( ! $skin->request_filesystem_credentials( false, $context, $allow_relaxed_file_ownership ) || $this->is_vcs_checkout( $context ) ) { if ( 'core' === $type ) { $this->send_core_update_notification_email( $item ); } return false; } // Next up, is this an item we can update? if ( 'core' === $type ) { $update = Core_Upgrader::should_update_to_version( $item->current ); } elseif ( 'plugin' === $type || 'theme' === $type ) { $update = ! empty( $item->autoupdate ); if ( ! $update && wp_is_auto_update_enabled_for_type( $type ) ) { // Check if the site admin has enabled auto-updates by default for the specific item. $auto_updates = (array) get_site_option( "auto_update_{$type}s", array() ); $update = in_array( $item->{$type}, $auto_updates, true ); } } else { $update = ! empty( $item->autoupdate ); } // If the `disable_autoupdate` flag is set, override any user-choice, but allow filters. if ( ! empty( $item->disable_autoupdate ) ) { $update = false; } /** * Filters whether to automatically update core, a plugin, a theme, or a language. * * The dynamic portion of the hook name, `$type`, refers to the type of update * being checked. * * Possible hook names include: * * - `auto_update_core` * - `auto_update_plugin` * - `auto_update_theme` * - `auto_update_translation` * * Since WordPress 3.7, minor and development versions of core, and translations have * been auto-updated by default. New installs on WordPress 5.6 or higher will also * auto-update major versions by default. Starting in 5.6, older sites can opt-in to * major version auto-updates, and auto-updates for plugins and themes. * * See the {@see 'allow_dev_auto_core_updates'}, {@see 'allow_minor_auto_core_updates'}, * and {@see 'allow_major_auto_core_updates'} filters for a more straightforward way to * adjust core updates. * * @since 3.7.0 * @since 5.5.0 The `$update` parameter accepts the value of null. * * @param bool|null $update Whether to update. The value of null is internally used * to detect whether nothing has hooked into this filter. * @param object $item The update offer. */ $update = apply_filters( "auto_update_{$type}", $update, $item ); if ( ! $update ) { if ( 'core' === $type ) { $this->send_core_update_notification_email( $item ); } return false; } // If it's a core update, are we actually compatible with its requirements? if ( 'core' === $type ) { global $wpdb; $php_compat = version_compare( PHP_VERSION, $item->php_version, '>=' ); if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { $mysql_compat = true; } else { $mysql_compat = version_compare( $wpdb->db_version(), $item->mysql_version, '>=' ); } if ( ! $php_compat || ! $mysql_compat ) { return false; } } // If updating a plugin or theme, ensure the minimum PHP version requirements are satisfied. if ( in_array( $type, array( 'plugin', 'theme' ), true ) ) { if ( ! empty( $item->requires_php ) && version_compare( PHP_VERSION, $item->requires_php, '<' ) ) { return false; } } return true; } /** * Notifies an administrator of a core update. * * @since 3.7.0 * * @param object $item The update offer. * @return bool True if the site administrator is notified of a core update, * false otherwise. */ protected function send_core_update_notification_email( $item ) { $notified = get_site_option( 'auto_core_update_notified' ); // Don't notify if we've already notified the same email address of the same version. if ( $notified && get_site_option( 'admin_email' ) === $notified['email'] && $notified['version'] === $item->current ) { return false; } // See if we need to notify users of a core update. $notify = ! empty( $item->notify_email ); /** * Filters whether to notify the site administrator of a new core update. * * By default, administrators are notified when the update offer received * from WordPress.org sets a particular flag. This allows some discretion * in if and when to notify. * * This filter is only evaluated once per release. If the same email address * was already notified of the same new version, WordPress won't repeatedly * email the administrator. * * This filter is also used on about.php to check if a plugin has disabled * these notifications. * * @since 3.7.0 * * @param bool $notify Whether the site administrator is notified. * @param object $item The update offer. */ if ( ! apply_filters( 'send_core_update_notification_email', $notify, $item ) ) { return false; } $this->send_email( 'manual', $item ); return true; } /** * Updates an item, if appropriate. * * @since 3.7.0 * * @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'. * @param object $item The update offer. * @return null|WP_Error */ public function update( $type, $item ) { $skin = new Automatic_Upgrader_Skin(); switch ( $type ) { case 'core': // The Core upgrader doesn't use the Upgrader's skin during the actual main part of the upgrade, instead, firing a filter. add_filter( 'update_feedback', array( $skin, 'feedback' ) ); $upgrader = new Core_Upgrader( $skin ); $context = ABSPATH; break; case 'plugin': $upgrader = new Plugin_Upgrader( $skin ); $context = WP_PLUGIN_DIR; // We don't support custom Plugin directories, or updates for WPMU_PLUGIN_DIR. break; case 'theme': $upgrader = new Theme_Upgrader( $skin ); $context = get_theme_root( $item->theme ); break; case 'translation': $upgrader = new Language_Pack_Upgrader( $skin ); $context = WP_CONTENT_DIR; // WP_LANG_DIR; break; } // Determine whether we can and should perform this update. if ( ! $this->should_update( $type, $item, $context ) ) { return false; } /** * Fires immediately prior to an auto-update. * * @since 4.4.0 * * @param string $type The type of update being checked: 'core', 'theme', 'plugin', or 'translation'. * @param object $item The update offer. * @param string $context The filesystem context (a path) against which filesystem access and status * should be checked. */ do_action( 'pre_auto_update', $type, $item, $context ); $upgrader_item = $item; switch ( $type ) { case 'core': /* translators: %s: WordPress version. */ $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); /* translators: %s: WordPress version. */ $item_name = sprintf( __( 'WordPress %s' ), $item->version ); break; case 'theme': $upgrader_item = $item->theme; $theme = wp_get_theme( $upgrader_item ); $item_name = $theme->get( 'Name' ); // Add the current version so that it can be reported in the notification email. $item->current_version = $theme->get( 'Version' ); if ( empty( $item->current_version ) ) { $item->current_version = false; } /* translators: %s: Theme name. */ $skin->feedback( __( 'Updating theme: %s' ), $item_name ); break; case 'plugin': $upgrader_item = $item->plugin; $plugin_data = get_plugin_data( $context . '/' . $upgrader_item ); $item_name = $plugin_data['Name']; // Add the current version so that it can be reported in the notification email. $item->current_version = $plugin_data['Version']; if ( empty( $item->current_version ) ) { $item->current_version = false; } /* translators: %s: Plugin name. */ $skin->feedback( __( 'Updating plugin: %s' ), $item_name ); break; case 'translation': $language_item_name = $upgrader->get_name_for_update( $item ); /* translators: %s: Project name (plugin, theme, or WordPress). */ $item_name = sprintf( __( 'Translations for %s' ), $language_item_name ); /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) ); break; } $allow_relaxed_file_ownership = false; if ( 'core' === $type && isset( $item->new_files ) && ! $item->new_files ) { $allow_relaxed_file_ownership = true; } $is_debug = WP_DEBUG && WP_DEBUG_LOG; if ( 'plugin' === $type ) { $was_active = is_plugin_active( $upgrader_item ); if ( $is_debug ) { error_log( ' Upgrading plugin ' . var_export( $item->slug, true ) . '...' ); } } if ( 'theme' === $type && $is_debug ) { error_log( ' Upgrading theme ' . var_export( $item->theme, true ) . '...' ); } /* * Enable maintenance mode before upgrading the plugin or theme. * * This avoids potential non-fatal errors being detected * while scraping for a fatal error if some files are still * being moved. * * While these checks are intended only for plugins, * maintenance mode is enabled for all upgrade types as any * update could contain an error or warning, which could cause * the scrape to miss a fatal error in the plugin update. */ if ( 'translation' !== $type ) { $upgrader->maintenance_mode( true ); } // Boom, this site's about to get a whole new splash of paint! $upgrade_result = $upgrader->upgrade( $upgrader_item, array( 'clear_update_cache' => false, // Always use partial builds if possible for core updates. 'pre_check_md5' => false, // Only available for core updates. 'attempt_rollback' => true, // Allow relaxed file ownership in some scenarios. 'allow_relaxed_file_ownership' => $allow_relaxed_file_ownership, ) ); /* * After WP_Upgrader::upgrade() completes, maintenance mode is disabled. * * Re-enable maintenance mode while attempting to detect fatal errors * and potentially rolling back. * * This avoids errors if the site is visited while fatal errors exist * or while files are still being moved. */ if ( 'translation' !== $type ) { $upgrader->maintenance_mode( true ); } // If the filesystem is unavailable, false is returned. if ( false === $upgrade_result ) { $upgrade_result = new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); } if ( 'core' === $type ) { if ( is_wp_error( $upgrade_result ) && ( 'up_to_date' === $upgrade_result->get_error_code() || 'locked' === $upgrade_result->get_error_code() ) ) { // Allow visitors to browse the site again. $upgrader->maintenance_mode( false ); /* * These aren't actual errors, treat it as a skipped-update instead * to avoid triggering the post-core update failure routines. */ return false; } // Core doesn't output this, so let's append it, so we don't get confused. if ( is_wp_error( $upgrade_result ) ) { $upgrade_result->add( 'installation_failed', __( 'Installation failed.' ) ); $skin->error( $upgrade_result ); } else { $skin->feedback( __( 'WordPress updated successfully.' ) ); } } $is_debug = WP_DEBUG && WP_DEBUG_LOG; if ( 'theme' === $type && $is_debug ) { error_log( ' Theme ' . var_export( $item->theme, true ) . ' has been upgraded.' ); } if ( 'plugin' === $type ) { if ( $is_debug ) { error_log( ' Plugin ' . var_export( $item->slug, true ) . ' has been upgraded.' ); if ( is_plugin_inactive( $upgrader_item ) ) { error_log( ' ' . var_export( $upgrader_item, true ) . ' is inactive and will not be checked for fatal errors.' ); } } if ( $was_active && ! is_wp_error( $upgrade_result ) ) { /* * The usual time limit is five minutes. However, as a loopback request * is about to be performed, increase the time limit to account for this. */ if ( function_exists( 'set_time_limit' ) ) { set_time_limit( 10 * MINUTE_IN_SECONDS ); } /* * Avoids a race condition when there are 2 sequential plugins that have * fatal errors. It seems a slight delay is required for the loopback to * use the updated plugin code in the request. This can cause the second * plugin's fatal error checking to be inaccurate, and may also affect * subsequent plugin checks. */ sleep( 2 ); if ( $this->has_fatal_error() ) { $upgrade_result = new WP_Error(); $temp_backup = array( array( 'dir' => 'plugins', 'slug' => $item->slug, 'src' => WP_PLUGIN_DIR, ), ); $backup_restored = $upgrader->restore_temp_backup( $temp_backup ); if ( is_wp_error( $backup_restored ) ) { $upgrade_result->add( 'plugin_update_fatal_error_rollback_failed', sprintf( /* translators: %s: The plugin's slug. */ __( "The update for '%s' contained a fatal error. The previously installed version could not be restored." ), $item->slug ) ); $upgrade_result->merge_from( $backup_restored ); } else { $upgrade_result->add( 'plugin_update_fatal_error_rollback_successful', sprintf( /* translators: %s: The plugin's slug. */ __( "The update for '%s' contained a fatal error. The previously installed version has been restored." ), $item->slug ) ); $backup_deleted = $upgrader->delete_temp_backup( $temp_backup ); if ( is_wp_error( $backup_deleted ) ) { $upgrade_result->merge_from( $backup_deleted ); } } /* * Should emails not be working, log the message(s) so that * the log file contains context for the fatal error, * and whether a rollback was performed. * * `trigger_error()` is not used as it outputs a stack trace * to this location rather than to the fatal error, which will * appear above this entry in the log file. */ if ( $is_debug ) { error_log( ' ' . implode( "\n", $upgrade_result->get_error_messages() ) ); } } elseif ( $is_debug ) { error_log( ' The update for ' . var_export( $item->slug, true ) . ' has no fatal errors.' ); } } } // All processes are complete. Allow visitors to browse the site again. if ( 'translation' !== $type ) { $upgrader->maintenance_mode( false ); } $this->update_results[ $type ][] = (object) array( 'item' => $item, 'result' => $upgrade_result, 'name' => $item_name, 'messages' => $skin->get_upgrade_messages(), ); return $upgrade_result; } /** * Kicks off the background update process, looping through all pending updates. * * @since 3.7.0 */ public function run() { if ( $this->is_disabled() ) { return; } if ( ! is_main_network() || ! is_main_site() ) { return; } if ( ! WP_Upgrader::create_lock( 'auto_updater' ) ) { return; } $is_debug = WP_DEBUG && WP_DEBUG_LOG; if ( $is_debug ) { error_log( 'Automatic updates starting...' ); } // Don't automatically run these things, as we'll handle it ourselves. remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); remove_action( 'upgrader_process_complete', 'wp_version_check' ); remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); remove_action( 'upgrader_process_complete', 'wp_update_themes' ); // Next, plugins. wp_update_plugins(); // Check for plugin updates. $plugin_updates = get_site_transient( 'update_plugins' ); if ( $plugin_updates && ! empty( $plugin_updates->response ) ) { if ( $is_debug ) { error_log( ' Automatic plugin updates starting...' ); } foreach ( $plugin_updates->response as $plugin ) { $this->update( 'plugin', $plugin ); } // Force refresh of plugin update information. wp_clean_plugins_cache(); if ( $is_debug ) { error_log( ' Automatic plugin updates complete.' ); } } // Next, those themes we all love. wp_update_themes(); // Check for theme updates. $theme_updates = get_site_transient( 'update_themes' ); if ( $theme_updates && ! empty( $theme_updates->response ) ) { if ( $is_debug ) { error_log( ' Automatic theme updates starting...' ); } foreach ( $theme_updates->response as $theme ) { $this->update( 'theme', (object) $theme ); } // Force refresh of theme update information. wp_clean_themes_cache(); if ( $is_debug ) { error_log( ' Automatic theme updates complete.' ); } } if ( $is_debug ) { error_log( 'Automatic updates complete.' ); } // Next, process any core update. wp_version_check(); // Check for core updates. $core_update = find_core_auto_update(); if ( $core_update ) { $this->update( 'core', $core_update ); } /* * Clean up, and check for any pending translations. * (Core_Upgrader checks for core updates.) */ $theme_stats = array(); if ( isset( $this->update_results['theme'] ) ) { foreach ( $this->update_results['theme'] as $upgrade ) { $theme_stats[ $upgrade->item->theme ] = ( true === $upgrade->result ); } } wp_update_themes( $theme_stats ); // Check for theme updates. $plugin_stats = array(); if ( isset( $this->update_results['plugin'] ) ) { foreach ( $this->update_results['plugin'] as $upgrade ) { $plugin_stats[ $upgrade->item->plugin ] = ( true === $upgrade->result ); } } wp_update_plugins( $plugin_stats ); // Check for plugin updates. // Finally, process any new translations. $language_updates = wp_get_translation_updates(); if ( $language_updates ) { foreach ( $language_updates as $update ) { $this->update( 'translation', $update ); } // Clear existing caches. wp_clean_update_cache(); wp_version_check(); // Check for core updates. wp_update_themes(); // Check for theme updates. wp_update_plugins(); // Check for plugin updates. } // Send debugging email to admin for all development installations. if ( ! empty( $this->update_results ) ) { $development_version = str_contains( wp_get_wp_version(), '-' ); /** * Filters whether to send a debugging email for each automatic background update. * * @since 3.7.0 * * @param bool $development_version By default, emails are sent if the * install is a development version. * Return false to avoid the email. */ if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) ) { $this->send_debug_email(); } if ( ! empty( $this->update_results['core'] ) ) { $this->after_core_update( $this->update_results['core'][0] ); } elseif ( ! empty( $this->update_results['plugin'] ) || ! empty( $this->update_results['theme'] ) ) { $this->after_plugin_theme_update( $this->update_results ); } /** * Fires after all automatic updates have run. * * @since 3.8.0 * * @param array $update_results The results of all attempted updates. */ do_action( 'automatic_updates_complete', $this->update_results ); } WP_Upgrader::release_lock( 'auto_updater' ); } /** * Checks whether to send an email and avoid processing future updates after * attempting a core update. * * @since 3.7.0 * * @param object $update_result The result of the core update. Includes the update offer and result. */ protected function after_core_update( $update_result ) { $wp_version = wp_get_wp_version(); $core_update = $update_result->item; $result = $update_result->result; if ( ! is_wp_error( $result ) ) { $this->send_email( 'success', $core_update ); return; } $error_code = $result->get_error_code(); /* * Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files. * We should not try to perform a background update again until there is a successful one-click update performed by the user. */ $critical = false; if ( 'disk_full' === $error_code || str_contains( $error_code, '__copy_dir' ) ) { $critical = true; } elseif ( 'rollback_was_required' === $error_code && is_wp_error( $result->get_error_data()->rollback ) ) { // A rollback is only critical if it failed too. $critical = true; $rollback_result = $result->get_error_data()->rollback; } elseif ( str_contains( $error_code, 'do_rollback' ) ) { $critical = true; } if ( $critical ) { $critical_data = array( 'attempted' => $core_update->current, 'current' => $wp_version, 'error_code' => $error_code, 'error_data' => $result->get_error_data(), 'timestamp' => time(), 'critical' => true, ); if ( isset( $rollback_result ) ) { $critical_data['rollback_code'] = $rollback_result->get_error_code(); $critical_data['rollback_data'] = $rollback_result->get_error_data(); } update_site_option( 'auto_core_update_failed', $critical_data ); $this->send_email( 'critical', $core_update, $result ); return; } /* * Any other WP_Error code (like download_failed or files_not_writable) occurs before * we tried to copy over core files. Thus, the failures are early and graceful. * * We should avoid trying to perform a background update again for the same version. * But we can try again if another version is released. * * For certain 'transient' failures, like download_failed, we should allow retries. * In fact, let's schedule a special update for an hour from now. (It's possible * the issue could actually be on WordPress.org's side.) If that one fails, then email. */ $send = true; $transient_failures = array( 'incompatible_archive', 'download_failed', 'insane_distro', 'locked' ); if ( in_array( $error_code, $transient_failures, true ) && ! get_site_option( 'auto_core_update_failed' ) ) { wp_schedule_single_event( time() + HOUR_IN_SECONDS, 'wp_maybe_auto_update' ); $send = false; } $notified = get_site_option( 'auto_core_update_notified' ); // Don't notify if we've already notified the same email address of the same version of the same notification type. if ( $notified && 'fail' === $notified['type'] && get_site_option( 'admin_email' ) === $notified['email'] && $notified['version'] === $core_update->current ) { $send = false; } update_site_option( 'auto_core_update_failed', array( 'attempted' => $core_update->current, 'current' => $wp_version, 'error_code' => $error_code, 'error_data' => $result->get_error_data(), 'timestamp' => time(), 'retry' => in_array( $error_code, $transient_failures, true ), ) ); if ( $send ) { $this->send_email( 'fail', $core_update, $result ); } } /** * Sends an email upon the completion or failure of a background core update. * * @since 3.7.0 * * @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'. * @param object $core_update The update offer that was attempted. * @param mixed $result Optional. The result for the core update. Can be WP_Error. */ protected function send_email( $type, $core_update, $result = null ) { update_site_option( 'auto_core_update_notified', array( 'type' => $type, 'email' => get_site_option( 'admin_email' ), 'version' => $core_update->current, 'timestamp' => time(), ) ); $next_user_core_update = get_preferred_from_update_core(); // If the update transient is empty, use the update we just performed. if ( ! $next_user_core_update ) { $next_user_core_update = $core_update; } if ( 'upgrade' === $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update->version, '>' ) ) { $newer_version_available = true; } else { $newer_version_available = false; } /** * Filters whether to send an email following an automatic background core update. * * @since 3.7.0 * * @param bool $send Whether to send the email. Default true. * @param string $type The type of email to send. Can be one of * 'success', 'fail', 'critical'. * @param object $core_update The update offer that was attempted. * @param mixed $result The result for the core update. Can be WP_Error. */ if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) ) { return; } $admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) ); if ( $admin_user ) { $switched_locale = switch_to_user_locale( $admin_user->ID ); } else { $switched_locale = switch_to_locale( get_locale() ); } switch ( $type ) { case 'success': // We updated. /* translators: Site updated notification email subject. 1: Site title, 2: WordPress version. */ $subject = __( '[%1$s] Your site has updated to WordPress %2$s' ); break; case 'fail': // We tried to update but couldn't. case 'manual': // We can't update (and made no attempt). /* translators: Update available notification email subject. 1: Site title, 2: WordPress version. */ $subject = __( '[%1$s] WordPress %2$s is available. Please update!' ); break; case 'critical': // We tried to update, started to copy files, then things went wrong. /* translators: Site down notification email subject. 1: Site title. */ $subject = __( '[%1$s] URGENT: Your site may be down due to a failed update' ); break; default: return; } // If the auto-update is not to the latest version, say that the current version of WP is available instead. $version = 'success' === $type ? $core_update->current : $next_user_core_update->current; $subject = sprintf( $subject, wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $version ); $body = ''; switch ( $type ) { case 'success': $body .= sprintf( /* translators: 1: Home URL, 2: WordPress version. */ __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current ); $body .= "\n\n"; if ( ! $newer_version_available ) { $body .= __( 'No further action is needed on your part.' ) . ' '; } // Can only reference the About screen if their update was successful. list( $about_version ) = explode( '-', $core_update->current, 2 ); /* translators: %s: WordPress version. */ $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version ); $body .= "\n" . admin_url( 'about.php' ); if ( $newer_version_available ) { /* translators: %s: WordPress latest version. */ $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' '; $body .= __( 'Updating is easy and only takes a few moments:' ); $body .= "\n" . network_admin_url( 'update-core.php' ); } break; case 'fail': case 'manual': $body .= sprintf( /* translators: 1: Home URL, 2: WordPress version. */ __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current ); $body .= "\n\n"; /* * Don't show this message if there is a newer version available. * Potential for confusion, and also not useful for them to know at this point. */ if ( 'fail' === $type && ! $newer_version_available ) { $body .= __( 'An attempt was made, but your site could not be updated automatically.' ) . ' '; } $body .= __( 'Updating is easy and only takes a few moments:' ); $body .= "\n" . network_admin_url( 'update-core.php' ); break; case 'critical': if ( $newer_version_available ) { $body .= sprintf( /* translators: 1: Home URL, 2: WordPress version. */ __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), home_url(), $core_update->current ); } else { $body .= sprintf( /* translators: 1: Home URL, 2: WordPress latest version. */ __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), home_url(), $core_update->current ); } $body .= "\n\n" . __( "This means your site may be offline or broken. Don't panic; this can be fixed." ); $body .= "\n\n" . __( "Please check out your site now. It's possible that everything is working. If it says you need to update, you should do so:" ); $body .= "\n" . network_admin_url( 'update-core.php' ); break; } $critical_support = 'critical' === $type && ! empty( $core_update->support_email ); if ( $critical_support ) { // Support offer if available. $body .= "\n\n" . sprintf( /* translators: %s: Support email address. */ __( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ), $core_update->support_email ); } else { // Add a note about the support forums. $body .= "\n\n" . __( 'If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.' ); $body .= "\n" . __( 'https://wordpress.org/support/forums/' ); } // Updates are important! if ( 'success' !== $type || $newer_version_available ) { $body .= "\n\n" . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' ); } if ( $critical_support ) { $body .= ' ' . __( "Reach out to WordPress Core developers to ensure you'll never have this problem again." ); } // If things are successful and we're now on the latest, mention plugins and themes if any are out of date. if ( 'success' === $type && ! $newer_version_available && ( get_plugin_updates() || get_theme_updates() ) ) { $body .= "\n\n" . __( 'You also have some plugins or themes with updates available. Update them now:' ); $body .= "\n" . network_admin_url(); } $body .= "\n\n" . __( 'The WordPress Team' ) . "\n"; if ( 'critical' === $type && is_wp_error( $result ) ) { $body .= "\n***\n\n"; /* translators: %s: WordPress version. */ $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); $body .= ' ' . __( 'Some data that describes the error your site encountered has been put together.' ); $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); /* * If we had a rollback and we're still critical, then the rollback failed too. * Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc. */ if ( 'rollback_was_required' === $result->get_error_code() ) { $errors = array( $result, $result->get_error_data()->update, $result->get_error_data()->rollback ); } else { $errors = array( $result ); } foreach ( $errors as $error ) { if ( ! is_wp_error( $error ) ) { continue; } $error_code = $error->get_error_code(); /* translators: %s: Error code. */ $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code ); if ( 'rollback_was_required' === $error_code ) { continue; } if ( $error->get_error_message() ) { $body .= "\n" . $error->get_error_message(); } $error_data = $error->get_error_data(); if ( $error_data ) { $body .= "\n" . implode( ', ', (array) $error_data ); } } $body .= "\n"; } $to = get_site_option( 'admin_email' ); $headers = ''; $email = compact( 'to', 'subject', 'body', 'headers' ); /** * Filters the email sent following an automatic background core update. * * @since 3.7.0 * * @param array $email { * Array of email arguments that will be passed to wp_mail(). * * @type string $to The email recipient. An array of emails * can be returned, as handled by wp_mail(). * @type string $subject The email's subject. * @type string $body The email message body. * @type string $headers Any email headers, defaults to no headers. * } * @param string $type The type of email being sent. Can be one of * 'success', 'fail', 'manual', 'critical'. * @param object $core_update The update offer that was attempted. * @param mixed $result The result for the core update. Can be WP_Error. */ $email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result ); wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); if ( $switched_locale ) { restore_previous_locale(); } } /** * Checks whether an email should be sent after attempting plugin or theme updates. * * @since 5.5.0 * * @param array $update_results The results of update tasks. */ protected function after_plugin_theme_update( $update_results ) { $successful_updates = array(); $failed_updates = array(); if ( ! empty( $update_results['plugin'] ) ) { /** * Filters whether to send an email following an automatic background plugin update. * * @since 5.5.0 * @since 5.5.1 Added the `$update_results` parameter. * * @param bool $enabled True if plugin update notifications are enabled, false otherwise. * @param array $update_results The results of plugins update tasks. */ $notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] ); if ( $notifications_enabled ) { foreach ( $update_results['plugin'] as $update_result ) { if ( true === $update_result->result ) { $successful_updates['plugin'][] = $update_result; } else { $failed_updates['plugin'][] = $update_result; } } } } if ( ! empty( $update_results['theme'] ) ) { /** * Filters whether to send an email following an automatic background theme update. * * @since 5.5.0 * @since 5.5.1 Added the `$update_results` parameter. * * @param bool $enabled True if theme update notifications are enabled, false otherwise. * @param array $update_results The results of theme update tasks. */ $notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] ); if ( $notifications_enabled ) { foreach ( $update_results['theme'] as $update_result ) { if ( true === $update_result->result ) { $successful_updates['theme'][] = $update_result; } else { $failed_updates['theme'][] = $update_result; } } } } if ( empty( $successful_updates ) && empty( $failed_updates ) ) { return; } if ( empty( $failed_updates ) ) { $this->send_plugin_theme_email( 'success', $successful_updates, $failed_updates ); } elseif ( empty( $successful_updates ) ) { $this->send_plugin_theme_email( 'fail', $successful_updates, $failed_updates ); } else { $this->send_plugin_theme_email( 'mixed', $successful_updates, $failed_updates ); } } /** * Sends an email upon the completion or failure of a plugin or theme background update. * * @since 5.5.0 * * @param string $type The type of email to send. Can be one of 'success', 'fail', 'mixed'. * @param array $successful_updates A list of updates that succeeded. * @param array $failed_updates A list of updates that failed. */ protected function send_plugin_theme_email( $type, $successful_updates, $failed_updates ) { // No updates were attempted. if ( empty( $successful_updates ) && empty( $failed_updates ) ) { return; } $unique_failures = false; $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); /* * When only failures have occurred, an email should only be sent if there are unique failures. * A failure is considered unique if an email has not been sent for an update attempt failure * to a plugin or theme with the same new_version. */ if ( 'fail' === $type ) { foreach ( $failed_updates as $update_type => $failures ) { foreach ( $failures as $failed_update ) { if ( ! isset( $past_failure_emails[ $failed_update->item->{$update_type} ] ) ) { $unique_failures = true; continue; } // Check that the failure represents a new failure based on the new_version. if ( version_compare( $past_failure_emails[ $failed_update->item->{$update_type} ], $failed_update->item->new_version, '<' ) ) { $unique_failures = true; } } } if ( ! $unique_failures ) { return; } } $admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) ); if ( $admin_user ) { $switched_locale = switch_to_user_locale( $admin_user->ID ); } else { $switched_locale = switch_to_locale( get_locale() ); } $body = array(); $successful_plugins = ( ! empty( $successful_updates['plugin'] ) ); $successful_themes = ( ! empty( $successful_updates['theme'] ) ); $failed_plugins = ( ! empty( $failed_updates['plugin'] ) ); $failed_themes = ( ! empty( $failed_updates['theme'] ) ); switch ( $type ) { case 'success': if ( $successful_plugins && $successful_themes ) { /* translators: %s: Site title. */ $subject = __( '[%s] Some plugins and themes have automatically updated' ); $body[] = sprintf( /* translators: %s: Home URL. */ __( 'Howdy! Some plugins and themes have automatically updated to their latest versions on your site at %s. No further action is needed on your part.' ), home_url() ); } elseif ( $successful_plugins ) { /* translators: %s: Site title. */ $subject = __( '[%s] Some plugins were automatically updated' ); $body[] = sprintf( /* translators: %s: Home URL. */ __( 'Howdy! Some plugins have automatically updated to their latest versions on your site at %s. No further action is needed on your part.' ), home_url() ); } else { /* translators: %s: Site title. */ $subject = __( '[%s] Some themes were automatically updated' ); $body[] = sprintf( /* translators: %s: Home URL. */ __( 'Howdy! Some themes have automatically updated to their latest versions on your site at %s. No further action is needed on your part.' ), home_url() ); } break; case 'fail': case 'mixed': if ( $failed_plugins && $failed_themes ) { /* translators: %s: Site title. */ $subject = __( '[%s] Some plugins and themes have failed to update' ); $body[] = sprintf( /* translators: %s: Home URL. */ __( 'Howdy! Plugins and themes failed to update on your site at %s.' ), home_url() ); } elseif ( $failed_plugins ) { /* translators: %s: Site title. */ $subject = __( '[%s] Some plugins have failed to update' ); $body[] = sprintf( /* translators: %s: Home URL. */ __( 'Howdy! Plugins failed to update on your site at %s.' ), home_url() ); } else { /* translators: %s: Site title. */ $subject = __( '[%s] Some themes have failed to update' ); $body[] = sprintf( /* translators: %s: Home URL. */ __( 'Howdy! Themes failed to update on your site at %s.' ), home_url() ); } break; } if ( in_array( $type, array( 'fail', 'mixed' ), true ) ) { $body[] = "\n"; $body[] = __( 'Please check your site now. It’s possible that everything is working. If there are updates available, you should update.' ); $body[] = "\n"; // List failed plugin updates. if ( ! empty( $failed_updates['plugin'] ) ) { $body[] = __( 'The following plugins failed to update. If there was a fatal error in the update, the previously installed version has been restored.' ); foreach ( $failed_updates['plugin'] as $item ) { $body_message = ''; $item_url = ''; if ( ! empty( $item->item->url ) ) { $item_url = ' : ' . esc_url( $item->item->url ); } if ( $item->item->current_version ) { $body_message .= sprintf( /* translators: 1: Plugin name, 2: Current version number, 3: New version number, 4: Plugin URL. */ __( '- %1$s (from version %2$s to %3$s)%4$s' ), html_entity_decode( $item->name ), $item->item->current_version, $item->item->new_version, $item_url ); } else { $body_message .= sprintf( /* translators: 1: Plugin name, 2: Version number, 3: Plugin URL. */ __( '- %1$s version %2$s%3$s' ), html_entity_decode( $item->name ), $item->item->new_version, $item_url ); } $body[] = $body_message; $past_failure_emails[ $item->item->plugin ] = $item->item->new_version; } $body[] = "\n"; } // List failed theme updates. if ( ! empty( $failed_updates['theme'] ) ) { $body[] = __( 'These themes failed to update:' ); foreach ( $failed_updates['theme'] as $item ) { if ( $item->item->current_version ) { $body[] = sprintf( /* translators: 1: Theme name, 2: Current version number, 3: New version number. */ __( '- %1$s (from version %2$s to %3$s)' ), html_entity_decode( $item->name ), $item->item->current_version, $item->item->new_version ); } else { $body[] = sprintf( /* translators: 1: Theme name, 2: Version number. */ __( '- %1$s version %2$s' ), html_entity_decode( $item->name ), $item->item->new_version ); } $past_failure_emails[ $item->item->theme ] = $item->item->new_version; } $body[] = "\n"; } } // List successful updates. if ( in_array( $type, array( 'success', 'mixed' ), true ) ) { $body[] = "\n"; // List successful plugin updates. if ( ! empty( $successful_updates['plugin'] ) ) { $body[] = __( 'These plugins are now up to date:' ); foreach ( $successful_updates['plugin'] as $item ) { $body_message = ''; $item_url = ''; if ( ! empty( $item->item->url ) ) { $item_url = ' : ' . esc_url( $item->item->url ); } if ( $item->item->current_version ) { $body_message .= sprintf( /* translators: 1: Plugin name, 2: Current version number, 3: New version number, 4: Plugin URL. */ __( '- %1$s (from version %2$s to %3$s)%4$s' ), html_entity_decode( $item->name ), $item->item->current_version, $item->item->new_version, $item_url ); } else { $body_message .= sprintf( /* translators: 1: Plugin name, 2: Version number, 3: Plugin URL. */ __( '- %1$s version %2$s%3$s' ), html_entity_decode( $item->name ), $item->item->new_version, $item_url ); } $body[] = $body_message; unset( $past_failure_emails[ $item->item->plugin ] ); } $body[] = "\n"; } // List successful theme updates. if ( ! empty( $successful_updates['theme'] ) ) { $body[] = __( 'These themes are now up to date:' ); foreach ( $successful_updates['theme'] as $item ) { if ( $item->item->current_version ) { $body[] = sprintf( /* translators: 1: Theme name, 2: Current version number, 3: New version number. */ __( '- %1$s (from version %2$s to %3$s)' ), html_entity_decode( $item->name ), $item->item->current_version, $item->item->new_version ); } else { $body[] = sprintf( /* translators: 1: Theme name, 2: Version number. */ __( '- %1$s version %2$s' ), html_entity_decode( $item->name ), $item->item->new_version ); } unset( $past_failure_emails[ $item->item->theme ] ); } $body[] = "\n"; } } if ( $failed_plugins ) { $body[] = sprintf( /* translators: %s: Plugins screen URL. */ __( 'To manage plugins on your site, visit the Plugins page: %s' ), admin_url( 'plugins.php' ) ); $body[] = "\n"; } if ( $failed_themes ) { $body[] = sprintf( /* translators: %s: Themes screen URL. */ __( 'To manage themes on your site, visit the Themes page: %s' ), admin_url( 'themes.php' ) ); $body[] = "\n"; } // Add a note about the support forums. $body[] = __( 'If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.' ); $body[] = __( 'https://wordpress.org/support/forums/' ); $body[] = "\n" . __( 'The WordPress Team' ); if ( '' !== get_option( 'blogname' ) ) { $site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); } else { $site_title = parse_url( home_url(), PHP_URL_HOST ); } $body = implode( "\n", $body ); $to = get_site_option( 'admin_email' ); $subject = sprintf( $subject, $site_title ); $headers = ''; $email = compact( 'to', 'subject', 'body', 'headers' ); /** * Filters the email sent following an automatic background update for plugins and themes. * * @since 5.5.0 * * @param array $email { * Array of email arguments that will be passed to wp_mail(). * * @type string $to The email recipient. An array of emails * can be returned, as handled by wp_mail(). * @type string $subject The email's subject. * @type string $body The email message body. * @type string $headers Any email headers, defaults to no headers. * } * @param string $type The type of email being sent. Can be one of 'success', 'fail', 'mixed'. * @param array $successful_updates A list of updates that succeeded. * @param array $failed_updates A list of updates that failed. */ $email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates ); $result = wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); if ( $result ) { update_option( 'auto_plugin_theme_update_emails', $past_failure_emails ); } if ( $switched_locale ) { restore_previous_locale(); } } /** * Prepares and sends an email of a full log of background update results, useful for debugging and geekery. * * @since 3.7.0 */ protected function send_debug_email() { $admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) ); if ( $admin_user ) { $switched_locale = switch_to_user_locale( $admin_user->ID ); } else { $switched_locale = switch_to_locale( get_locale() ); } $body = array(); $failures = 0; /* translators: %s: Network home URL. */ $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) ); // Core. if ( isset( $this->update_results['core'] ) ) { $result = $this->update_results['core'][0]; if ( $result->result && ! is_wp_error( $result->result ) ) { /* translators: %s: WordPress version. */ $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); } else { /* translators: %s: WordPress version. */ $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); ++$failures; } $body[] = ''; } // Plugins, Themes, Translations. foreach ( array( 'plugin', 'theme', 'translation' ) as $type ) { if ( ! isset( $this->update_results[ $type ] ) ) { continue; } $success_items = wp_list_filter( $this->update_results[ $type ], array( 'result' => true ) ); if ( $success_items ) { $messages = array( 'plugin' => __( 'The following plugins were successfully updated:' ), 'theme' => __( 'The following themes were successfully updated:' ), 'translation' => __( 'The following translations were successfully updated:' ), ); $body[] = $messages[ $type ]; foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) { /* translators: %s: Name of plugin / theme / translation. */ $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name ); } } if ( $success_items !== $this->update_results[ $type ] ) { // Failed updates. $messages = array( 'plugin' => __( 'The following plugins failed to update:' ), 'theme' => __( 'The following themes failed to update:' ), 'translation' => __( 'The following translations failed to update:' ), ); $body[] = $messages[ $type ]; foreach ( $this->update_results[ $type ] as $item ) { if ( ! $item->result || is_wp_error( $item->result ) ) { /* translators: %s: Name of plugin / theme / translation. */ $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name ); ++$failures; } } } $body[] = ''; } if ( '' !== get_bloginfo( 'name' ) ) { $site_title = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ); } else { $site_title = parse_url( home_url(), PHP_URL_HOST ); } if ( $failures ) { $body[] = trim( __( "BETA TESTING? ============= This debugging email is sent when you are using a development version of WordPress. If you think these failures might be due to a bug in WordPress, could you report it? * Open a thread in the support forums: https://wordpress.org/support/forum/alphabeta * Or, if you're comfortable writing a bug report: https://core.trac.wordpress.org/ Thanks! -- The WordPress Team" ) ); $body[] = ''; /* translators: Background update failed notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Background Update Failed' ), $site_title ); } else { /* translators: Background update finished notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Background Update Finished' ), $site_title ); } $body[] = trim( __( 'UPDATE LOG ==========' ) ); $body[] = ''; foreach ( array( 'core', 'plugin', 'theme', 'translation' ) as $type ) { if ( ! isset( $this->update_results[ $type ] ) ) { continue; } foreach ( $this->update_results[ $type ] as $update ) { $body[] = $update->name; $body[] = str_repeat( '-', strlen( $update->name ) ); foreach ( $update->messages as $message ) { $body[] = ' ' . html_entity_decode( str_replace( '…', '...', $message ) ); } if ( is_wp_error( $update->result ) ) { $results = array( 'update' => $update->result ); // If we rolled back, we want to know an error that occurred then too. if ( 'rollback_was_required' === $update->result->get_error_code() ) { $results = (array) $update->result->get_error_data(); } foreach ( $results as $result_type => $result ) { if ( ! is_wp_error( $result ) ) { continue; } if ( 'rollback' === $result_type ) { /* translators: 1: Error code, 2: Error message. */ $body[] = ' ' . sprintf( __( 'Rollback Error: [%1$s] %2$s' ), $result->get_error_code(), $result->get_error_message() ); } else { /* translators: 1: Error code, 2: Error message. */ $body[] = ' ' . sprintf( __( 'Error: [%1$s] %2$s' ), $result->get_error_code(), $result->get_error_message() ); } if ( $result->get_error_data() ) { $body[] = ' ' . implode( ', ', (array) $result->get_error_data() ); } } } $body[] = ''; } } $email = array( 'to' => get_site_option( 'admin_email' ), 'subject' => $subject, 'body' => implode( "\n", $body ), 'headers' => '', ); /** * Filters the debug email that can be sent following an automatic * background core update. * * @since 3.8.0 * * @param array $email { * Array of email arguments that will be passed to wp_mail(). * * @type string $to The email recipient. An array of emails * can be returned, as handled by wp_mail(). * @type string $subject Email subject. * @type string $body Email message body. * @type string $headers Any email headers. Default empty. * } * @param int $failures The number of failures encountered while upgrading. * @param mixed $results The results of all attempted updates. */ $email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results ); wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] ); if ( $switched_locale ) { restore_previous_locale(); } } /** * Performs a loopback request to check for potential fatal errors. * * Fatal errors cannot be detected unless maintenance mode is enabled. * * @since 6.6.0 * * @global int $upgrading The Unix timestamp marking when upgrading WordPress began. * * @return bool Whether a fatal error was detected. */ protected function has_fatal_error() { global $upgrading; $maintenance_file = ABSPATH . '.maintenance'; if ( ! file_exists( $maintenance_file ) ) { return false; } require $maintenance_file; if ( ! is_int( $upgrading ) ) { return false; } $scrape_key = md5( $upgrading ); $scrape_nonce = (string) $upgrading; $transient = 'scrape_key_' . $scrape_key; set_transient( $transient, $scrape_nonce, 30 ); $cookies = wp_unslash( $_COOKIE ); $scrape_params = array( 'wp_scrape_key' => $scrape_key, 'wp_scrape_nonce' => $scrape_nonce, ); $headers = array( 'Cache-Control' => 'no-cache', ); /** This filter is documented in wp-includes/class-wp-http-streams.php */ $sslverify = apply_filters( 'https_local_ssl_verify', false ); // Include Basic auth in the loopback request. if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) ); } // Time to wait for loopback request to finish. $timeout = 50; // 50 seconds. $is_debug = WP_DEBUG && WP_DEBUG_LOG; if ( $is_debug ) { error_log( ' Scraping home page...' ); } $needle_start = "###### wp_scraping_result_start:$scrape_key ######"; $needle_end = "###### wp_scraping_result_end:$scrape_key ######"; $url = add_query_arg( $scrape_params, home_url( '/' ) ); $response = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) ); if ( is_wp_error( $response ) ) { if ( $is_debug ) { error_log( 'Loopback request failed: ' . $response->get_error_message() ); } return true; } // If this outputs `true` in the log, it means there were no fatal errors detected. if ( $is_debug ) { error_log( var_export( substr( $response['body'], strpos( $response['body'], '###### wp_scraping_result_start:' ) ), true ) ); } $body = wp_remote_retrieve_body( $response ); $scrape_result_position = strpos( $body, $needle_start ); $result = null; if ( false !== $scrape_result_position ) { $error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) ); $error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) ); $result = json_decode( trim( $error_output ), true ); } delete_transient( $transient ); // Only fatal errors will result in a 'type' key. return isset( $result['type'] ); } } includes/list-table.php000064400000007332152213653150011133 0ustar00 'posts', 'WP_Media_List_Table' => 'media', 'WP_Terms_List_Table' => 'terms', 'WP_Users_List_Table' => 'users', 'WP_Comments_List_Table' => 'comments', 'WP_Post_Comments_List_Table' => array( 'comments', 'post-comments' ), 'WP_Links_List_Table' => 'links', 'WP_Plugin_Install_List_Table' => 'plugin-install', 'WP_Themes_List_Table' => 'themes', 'WP_Theme_Install_List_Table' => array( 'themes', 'theme-install' ), 'WP_Plugins_List_Table' => 'plugins', 'WP_Application_Passwords_List_Table' => 'application-passwords', // Network Admin. 'WP_MS_Sites_List_Table' => 'ms-sites', 'WP_MS_Users_List_Table' => 'ms-users', 'WP_MS_Themes_List_Table' => 'ms-themes', // Privacy requests tables. 'WP_Privacy_Data_Export_Requests_List_Table' => 'privacy-data-export-requests', 'WP_Privacy_Data_Removal_Requests_List_Table' => 'privacy-data-removal-requests', ); if ( isset( $core_classes[ $class_name ] ) ) { foreach ( (array) $core_classes[ $class_name ] as $required ) { require_once ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php'; } if ( isset( $args['screen'] ) ) { $args['screen'] = convert_to_screen( $args['screen'] ); } elseif ( isset( $GLOBALS['hook_suffix'] ) ) { $args['screen'] = get_current_screen(); } else { $args['screen'] = null; } /** * Filters the list table class to instantiate. * * @since 6.1.0 * * @param string $class_name The list table class to use. * @param array $args An array containing _get_list_table() arguments. */ $custom_class_name = apply_filters( 'wp_list_table_class_name', $class_name, $args ); if ( is_string( $custom_class_name ) && class_exists( $custom_class_name ) ) { $class_name = $custom_class_name; } return new $class_name( $args ); } return false; } /** * Register column headers for a particular screen. * * @see get_column_headers(), print_column_headers(), get_hidden_columns() * * @since 2.7.0 * * @param string $screen The handle for the screen to register column headers for. This is * usually the hook name returned by the `add_*_page()` functions. * @param string[] $columns An array of columns with column IDs as the keys and translated * column names as the values. */ function register_column_headers( $screen, $columns ) { new _WP_List_Table_Compat( $screen, $columns ); } /** * Prints column headers for a particular screen. * * @since 2.7.0 * * @param string|WP_Screen $screen The screen hook name or screen object. * @param bool $with_id Whether to set the ID attribute or not. */ function print_column_headers( $screen, $with_id = true ) { $wp_list_table = new _WP_List_Table_Compat( $screen ); $wp_list_table->print_column_headers( $with_id ); } includes/class-wp-filesystem-ssh2.php000064400000055536152213653150013674 0ustar00method = 'ssh2'; $this->errors = new WP_Error(); // Check if possible to use ssh2 functions. if ( ! extension_loaded( 'ssh2' ) ) { $this->errors->add( 'no_ssh2_ext', __( 'The ssh2 PHP extension is not available' ) ); return; } // Set defaults: if ( empty( $opt['port'] ) ) { $this->options['port'] = 22; } else { $this->options['port'] = $opt['port']; } if ( empty( $opt['hostname'] ) ) { $this->errors->add( 'empty_hostname', __( 'SSH2 hostname is required' ) ); } else { $this->options['hostname'] = $opt['hostname']; } // Check if the options provided are OK. if ( ! empty( $opt['public_key'] ) && ! empty( $opt['private_key'] ) ) { $this->options['public_key'] = $opt['public_key']; $this->options['private_key'] = $opt['private_key']; $this->options['hostkey'] = array( 'hostkey' => 'ssh-rsa,ssh-ed25519' ); $this->keys = true; } elseif ( empty( $opt['username'] ) ) { $this->errors->add( 'empty_username', __( 'SSH2 username is required' ) ); } if ( ! empty( $opt['username'] ) ) { $this->options['username'] = $opt['username']; } if ( empty( $opt['password'] ) ) { // Password can be blank if we are using keys. if ( ! $this->keys ) { $this->errors->add( 'empty_password', __( 'SSH2 password is required' ) ); } else { $this->options['password'] = null; } } else { $this->options['password'] = $opt['password']; } } /** * Connects filesystem. * * @since 2.7.0 * * @return bool True on success, false on failure. */ public function connect() { if ( ! $this->keys ) { $this->link = @ssh2_connect( $this->options['hostname'], $this->options['port'] ); } else { $this->link = @ssh2_connect( $this->options['hostname'], $this->options['port'], $this->options['hostkey'] ); } if ( ! $this->link ) { $this->errors->add( 'connect', sprintf( /* translators: %s: hostname:port */ __( 'Failed to connect to SSH2 Server %s' ), $this->options['hostname'] . ':' . $this->options['port'] ) ); return false; } if ( ! $this->keys ) { if ( ! @ssh2_auth_password( $this->link, $this->options['username'], $this->options['password'] ) ) { $this->errors->add( 'auth', sprintf( /* translators: %s: Username. */ __( 'Username/Password incorrect for %s' ), $this->options['username'] ) ); return false; } } else { if ( ! @ssh2_auth_pubkey_file( $this->link, $this->options['username'], $this->options['public_key'], $this->options['private_key'], $this->options['password'] ) ) { $this->errors->add( 'auth', sprintf( /* translators: %s: Username. */ __( 'Public and Private keys incorrect for %s' ), $this->options['username'] ) ); return false; } } $this->sftp_link = ssh2_sftp( $this->link ); if ( ! $this->sftp_link ) { $this->errors->add( 'connect', sprintf( /* translators: %s: hostname:port */ __( 'Failed to initialize a SFTP subsystem session with the SSH2 Server %s' ), $this->options['hostname'] . ':' . $this->options['port'] ) ); return false; } return true; } /** * Gets the ssh2.sftp PHP stream wrapper path to open for the given file. * * This method also works around a PHP bug where the root directory (/) cannot * be opened by PHP functions, causing a false failure. In order to work around * this, the path is converted to /./ which is semantically the same as / * See https://bugs.php.net/bug.php?id=64169 for more details. * * @since 4.4.0 * * @param string $path The File/Directory path on the remote server to return * @return string The ssh2.sftp:// wrapped path to use. */ public function sftp_path( $path ) { if ( '/' === $path ) { $path = '/./'; } return 'ssh2.sftp://' . $this->sftp_link . '/' . ltrim( $path, '/' ); } /** * @since 2.7.0 * * @param string $command * @param bool $returnbool * @return bool|string True on success, false on failure. String if the command was executed, `$returnbool` * is false (default), and data from the resulting stream was retrieved. */ public function run_command( $command, $returnbool = false ) { if ( ! $this->link ) { return false; } $stream = ssh2_exec( $this->link, $command ); if ( ! $stream ) { $this->errors->add( 'command', sprintf( /* translators: %s: Command. */ __( 'Unable to perform command: %s' ), $command ) ); } else { stream_set_blocking( $stream, true ); stream_set_timeout( $stream, FS_TIMEOUT ); $data = stream_get_contents( $stream ); fclose( $stream ); if ( $returnbool ) { return ( false === $data ) ? false : '' !== trim( $data ); } else { return $data; } } return false; } /** * Reads entire file into a string. * * @since 2.7.0 * * @param string $file Name of the file to read. * @return string|false Read data on success, false if no temporary file could be opened, * or if the file couldn't be retrieved. */ public function get_contents( $file ) { return file_get_contents( $this->sftp_path( $file ) ); } /** * Reads entire file into an array. * * @since 2.7.0 * * @param string $file Path to the file. * @return array|false File contents in an array on success, false on failure. */ public function get_contents_array( $file ) { return file( $this->sftp_path( $file ) ); } /** * Writes a string to a file. * * @since 2.7.0 * * @param string $file Remote path to the file where to write the data. * @param string $contents The data to write. * @param int|false $mode Optional. The file permissions as octal number, usually 0644. * Default false. * @return bool True on success, false on failure. */ public function put_contents( $file, $contents, $mode = false ) { $ret = file_put_contents( $this->sftp_path( $file ), $contents ); if ( strlen( $contents ) !== $ret ) { return false; } $this->chmod( $file, $mode ); return true; } /** * Gets the current working directory. * * @since 2.7.0 * * @return string|false The current working directory on success, false on failure. */ public function cwd() { $cwd = ssh2_sftp_realpath( $this->sftp_link, '.' ); if ( $cwd ) { $cwd = trailingslashit( trim( $cwd ) ); } return $cwd; } /** * Changes current directory. * * @since 2.7.0 * * @param string $dir The new current directory. * @return bool True on success, false on failure. */ public function chdir( $dir ) { return $this->run_command( 'cd ' . $dir, true ); } /** * Changes the file group. * * @since 2.7.0 * * @param string $file Path to the file. * @param string|int $group A group name or number. * @param bool $recursive Optional. If set to true, changes file group recursively. * Default false. * @return bool True on success, false on failure. */ public function chgrp( $file, $group, $recursive = false ) { if ( ! $this->exists( $file ) ) { return false; } if ( ! $recursive || ! $this->is_dir( $file ) ) { return $this->run_command( sprintf( 'chgrp %s %s', escapeshellarg( $group ), escapeshellarg( $file ) ), true ); } return $this->run_command( sprintf( 'chgrp -R %s %s', escapeshellarg( $group ), escapeshellarg( $file ) ), true ); } /** * Changes filesystem permissions. * * @since 2.7.0 * * @param string $file Path to the file. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for directories. Default false. * @param bool $recursive Optional. If set to true, changes file permissions recursively. * Default false. * @return bool True on success, false on failure. */ public function chmod( $file, $mode = false, $recursive = false ) { if ( ! $this->exists( $file ) ) { return false; } if ( ! $mode ) { if ( $this->is_file( $file ) ) { $mode = FS_CHMOD_FILE; } elseif ( $this->is_dir( $file ) ) { $mode = FS_CHMOD_DIR; } else { return false; } } if ( ! $recursive || ! $this->is_dir( $file ) ) { return $this->run_command( sprintf( 'chmod %o %s', $mode, escapeshellarg( $file ) ), true ); } return $this->run_command( sprintf( 'chmod -R %o %s', $mode, escapeshellarg( $file ) ), true ); } /** * Changes the owner of a file or directory. * * @since 2.7.0 * * @param string $file Path to the file or directory. * @param string|int $owner A user name or number. * @param bool $recursive Optional. If set to true, changes file owner recursively. * Default false. * @return bool True on success, false on failure. */ public function chown( $file, $owner, $recursive = false ) { if ( ! $this->exists( $file ) ) { return false; } if ( ! $recursive || ! $this->is_dir( $file ) ) { return $this->run_command( sprintf( 'chown %s %s', escapeshellarg( $owner ), escapeshellarg( $file ) ), true ); } return $this->run_command( sprintf( 'chown -R %s %s', escapeshellarg( $owner ), escapeshellarg( $file ) ), true ); } /** * Gets the file owner. * * @since 2.7.0 * * @param string $file Path to the file. * @return string|false Username of the owner on success, false on failure. */ public function owner( $file ) { $owneruid = @fileowner( $this->sftp_path( $file ) ); if ( ! $owneruid ) { return false; } if ( ! function_exists( 'posix_getpwuid' ) ) { return $owneruid; } $ownerarray = posix_getpwuid( $owneruid ); if ( ! $ownerarray ) { return false; } return $ownerarray['name']; } /** * Gets the permissions of the specified file or filepath in their octal format. * * @since 2.7.0 * * @param string $file Path to the file. * @return string Mode of the file (the last 3 digits). */ public function getchmod( $file ) { return substr( decoct( @fileperms( $this->sftp_path( $file ) ) ), -3 ); } /** * Gets the file's group. * * @since 2.7.0 * * @param string $file Path to the file. * @return string|false The group on success, false on failure. */ public function group( $file ) { $gid = @filegroup( $this->sftp_path( $file ) ); if ( ! $gid ) { return false; } if ( ! function_exists( 'posix_getgrgid' ) ) { return $gid; } $grouparray = posix_getgrgid( $gid ); if ( ! $grouparray ) { return false; } return $grouparray['name']; } /** * Copies a file. * * @since 2.7.0 * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for dirs. Default false. * @return bool True on success, false on failure. */ public function copy( $source, $destination, $overwrite = false, $mode = false ) { if ( ! $overwrite && $this->exists( $destination ) ) { return false; } $content = $this->get_contents( $source ); if ( false === $content ) { return false; } return $this->put_contents( $destination, $content, $mode ); } /** * Moves a file or directory. * * After moving files or directories, OPcache will need to be invalidated. * * If moving a directory fails, `copy_dir()` can be used for a recursive copy. * * Use `move_dir()` for moving directories with OPcache invalidation and a * fallback to `copy_dir()`. * * @since 2.7.0 * * @param string $source Path to the source file or directory. * @param string $destination Path to the destination file or directory. * @param bool $overwrite Optional. Whether to overwrite the destination if it exists. * Default false. * @return bool True on success, false on failure. */ public function move( $source, $destination, $overwrite = false ) { if ( $this->exists( $destination ) ) { if ( $overwrite ) { // We need to remove the destination before we can rename the source. $this->delete( $destination, false, 'f' ); } else { // If we're not overwriting, the rename will fail, so return early. return false; } } return ssh2_sftp_rename( $this->sftp_link, $source, $destination ); } /** * Deletes a file or directory. * * @since 2.7.0 * * @param string $file Path to the file or directory. * @param bool $recursive Optional. If set to true, deletes files and folders recursively. * Default false. * @param string|false $type Type of resource. 'f' for file, 'd' for directory. * Default false. * @return bool True on success, false on failure. */ public function delete( $file, $recursive = false, $type = false ) { if ( 'f' === $type || $this->is_file( $file ) ) { return ssh2_sftp_unlink( $this->sftp_link, $file ); } if ( ! $recursive ) { return ssh2_sftp_rmdir( $this->sftp_link, $file ); } $filelist = $this->dirlist( $file ); if ( is_array( $filelist ) ) { foreach ( $filelist as $filename => $fileinfo ) { $this->delete( $file . '/' . $filename, $recursive, $fileinfo['type'] ); } } return ssh2_sftp_rmdir( $this->sftp_link, $file ); } /** * Checks if a file or directory exists. * * @since 2.7.0 * * @param string $path Path to file or directory. * @return bool Whether $path exists or not. */ public function exists( $path ) { return file_exists( $this->sftp_path( $path ) ); } /** * Checks if resource is a file. * * @since 2.7.0 * * @param string $file File path. * @return bool Whether $file is a file. */ public function is_file( $file ) { return is_file( $this->sftp_path( $file ) ); } /** * Checks if resource is a directory. * * @since 2.7.0 * * @param string $path Directory path. * @return bool Whether $path is a directory. */ public function is_dir( $path ) { return is_dir( $this->sftp_path( $path ) ); } /** * Checks if a file is readable. * * @since 2.7.0 * * @param string $file Path to file. * @return bool Whether $file is readable. */ public function is_readable( $file ) { return is_readable( $this->sftp_path( $file ) ); } /** * Checks if a file or directory is writable. * * @since 2.7.0 * * @param string $path Path to file or directory. * @return bool Whether $path is writable. */ public function is_writable( $path ) { // PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner. return true; } /** * Gets the file's last access time. * * @since 2.7.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing last access time, false on failure. */ public function atime( $file ) { return fileatime( $this->sftp_path( $file ) ); } /** * Gets the file modification time. * * @since 2.7.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing modification time, false on failure. */ public function mtime( $file ) { return filemtime( $this->sftp_path( $file ) ); } /** * Gets the file size (in bytes). * * @since 2.7.0 * * @param string $file Path to file. * @return int|false Size of the file in bytes on success, false on failure. */ public function size( $file ) { return filesize( $this->sftp_path( $file ) ); } /** * Sets the access and modification times of a file. * * Note: Not implemented. * * @since 2.7.0 * * @param string $file Path to file. * @param int $time Optional. Modified time to set for file. * Default 0. * @param int $atime Optional. Access time to set for file. * Default 0. * @return false Always returns false because not implemented. */ public function touch( $file, $time = 0, $atime = 0 ) { // Not implemented. return false; } /** * Creates a directory. * * @since 2.7.0 * * @param string $path Path for new directory. * @param int|false $chmod Optional. The permissions as octal number (or false to skip chmod). * Default false. * @param string|int|false $chown Optional. A user name or number (or false to skip chown). * Default false. * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp). * Default false. * @return bool True on success, false on failure. */ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { $path = untrailingslashit( $path ); if ( empty( $path ) ) { return false; } if ( ! $chmod ) { $chmod = FS_CHMOD_DIR; } if ( ! ssh2_sftp_mkdir( $this->sftp_link, $path, $chmod, true ) ) { return false; } // Set directory permissions. ssh2_sftp_chmod( $this->sftp_link, $path, $chmod ); if ( $chown ) { $this->chown( $path, $chown ); } if ( $chgrp ) { $this->chgrp( $path, $chgrp ); } return true; } /** * Deletes a directory. * * @since 2.7.0 * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool True on success, false on failure. */ public function rmdir( $path, $recursive = false ) { return $this->delete( $path, $recursive ); } /** * Gets details for files in a directory or a specific file. * * @since 2.7.0 * * @param string $path Path to directory or file. * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. * Default true. * @param bool $recursive Optional. Whether to recursively include file details in nested directories. * Default false. * @return array|false { * Array of arrays containing file information. False if unable to list directory contents. * * @type array ...$0 { * Array of file information. Note that some elements may not be available on all filesystems. * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. * @type string $permsn Octal representation of permissions. * @type false $number File number. Always false in this context. * @type string|false $owner Owner name or ID, or false if not available. * @type string|false $group File permissions group, or false if not available. * @type int|string|false $size Size of file in bytes. May be a numeric string. * False if not available. * @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string. * False if not available. * @type string|false $lastmod Last modified month (3 letters) and day (without leading 0), or * false if not available. * @type string|false $time Last modified time, or false if not available. * @type string $type Type of resource. 'f' for file, 'd' for directory, 'l' for link. * @type array|false $files If a directory and `$recursive` is true, contains another array of * files. False if unable to list directory contents. * } * } */ public function dirlist( $path, $include_hidden = true, $recursive = false ) { if ( $this->is_file( $path ) ) { $limit_file = basename( $path ); $path = dirname( $path ); } else { $limit_file = false; } if ( ! $this->is_dir( $path ) || ! $this->is_readable( $path ) ) { return false; } $ret = array(); $dir = dir( $this->sftp_path( $path ) ); if ( ! $dir ) { return false; } $path = trailingslashit( $path ); while ( false !== ( $entry = $dir->read() ) ) { $struc = array(); $struc['name'] = $entry; if ( '.' === $struc['name'] || '..' === $struc['name'] ) { continue; // Do not care about these folders. } if ( ! $include_hidden && '.' === $struc['name'][0] ) { continue; } if ( $limit_file && $struc['name'] !== $limit_file ) { continue; } $struc['perms'] = $this->gethchmod( $path . $entry ); $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); $struc['number'] = false; $struc['owner'] = $this->owner( $path . $entry ); $struc['group'] = $this->group( $path . $entry ); $struc['size'] = $this->size( $path . $entry ); $struc['lastmodunix'] = $this->mtime( $path . $entry ); $struc['lastmod'] = gmdate( 'M j', $struc['lastmodunix'] ); $struc['time'] = gmdate( 'h:i:s', $struc['lastmodunix'] ); $struc['type'] = $this->is_dir( $path . $entry ) ? 'd' : 'f'; if ( 'd' === $struc['type'] ) { if ( $recursive ) { $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); } else { $struc['files'] = array(); } } $ret[ $struc['name'] ] = $struc; } $dir->close(); unset( $dir ); return $ret; } } includes/class-automatic-upgrader-skin.php000064400000007117152213653150014736 0ustar00options['context'] = $context; } /* * TODO: Fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version. * This will output a credentials form in event of failure. We don't want that, so just hide with a buffer. */ ob_start(); $result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership ); ob_end_clean(); return $result; } /** * Retrieves the upgrade messages. * * @since 3.7.0 * * @return string[] Messages during an upgrade. */ public function get_upgrade_messages() { return $this->messages; } /** * Stores a message about the upgrade. * * @since 3.7.0 * @since 5.9.0 Renamed `$data` to `$feedback` for PHP 8 named parameter support. * * @param string|array|WP_Error $feedback Message data. * @param mixed ...$args Optional text replacements. */ public function feedback( $feedback, ...$args ) { if ( is_wp_error( $feedback ) ) { $string = $feedback->get_error_message(); } elseif ( is_array( $feedback ) ) { return; } else { $string = $feedback; } if ( ! empty( $this->upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; } if ( str_contains( $string, '%' ) ) { if ( ! empty( $args ) ) { $string = vsprintf( $string, $args ); } } $string = trim( $string ); // Only allow basic HTML in the messages, as it'll be used in emails/logs rather than direct browser output. $string = wp_kses( $string, array( 'a' => array( 'href' => true, ), 'br' => true, 'em' => true, 'strong' => true, ) ); if ( empty( $string ) ) { return; } $this->messages[] = $string; } /** * Creates a new output buffer. * * @since 3.7.0 */ public function header() { ob_start(); } /** * Retrieves the buffered content, deletes the buffer, and processes the output. * * @since 3.7.0 */ public function footer() { $output = ob_get_clean(); if ( ! empty( $output ) ) { $this->feedback( $output ); } } } includes/screen.php000064400000014366152213653150010357 0ustar00id ] ) ) { /** * Filters the column headers for a list table on a specific screen. * * The dynamic portion of the hook name, `$screen->id`, refers to the * ID of a specific screen. For example, the screen ID for the Posts * list table is edit-post, so the filter for that screen would be * manage_edit-post_columns. * * @since 3.0.0 * * @param string[] $columns The column header labels keyed by column ID. */ $column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() ); } return $column_headers[ $screen->id ]; } /** * Get a list of hidden columns. * * @since 2.7.0 * * @param string|WP_Screen $screen The screen you want the hidden columns for * @return string[] Array of IDs of hidden columns. */ function get_hidden_columns( $screen ) { if ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } $hidden = get_user_option( 'manage' . $screen->id . 'columnshidden' ); $use_defaults = ! is_array( $hidden ); if ( $use_defaults ) { $hidden = array(); /** * Filters the default list of hidden columns. * * @since 4.4.0 * * @param string[] $hidden Array of IDs of columns hidden by default. * @param WP_Screen $screen WP_Screen object of the current screen. */ $hidden = apply_filters( 'default_hidden_columns', $hidden, $screen ); } /** * Filters the list of hidden columns. * * @since 4.4.0 * @since 4.4.1 Added the `use_defaults` parameter. * * @param string[] $hidden Array of IDs of hidden columns. * @param WP_Screen $screen WP_Screen object of the current screen. * @param bool $use_defaults Whether to show the default columns. */ return apply_filters( 'hidden_columns', $hidden, $screen, $use_defaults ); } /** * Prints the meta box preferences for screen meta. * * @since 2.7.0 * * @global array $wp_meta_boxes Global meta box state. * * @param WP_Screen $screen */ function meta_box_prefs( $screen ) { global $wp_meta_boxes; if ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } if ( empty( $wp_meta_boxes[ $screen->id ] ) ) { return; } $hidden = get_hidden_meta_boxes( $screen ); foreach ( array_keys( $wp_meta_boxes[ $screen->id ] ) as $context ) { foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) { if ( ! isset( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] ) ) { continue; } foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) { if ( false === $box || ! $box['title'] ) { continue; } // Submit box cannot be hidden. if ( 'submitdiv' === $box['id'] || 'linksubmitdiv' === $box['id'] ) { continue; } $widget_title = $box['title']; if ( is_array( $box['args'] ) && isset( $box['args']['__widget_basename'] ) ) { $widget_title = $box['args']['__widget_basename']; } $is_hidden = in_array( $box['id'], $hidden, true ); printf( '', esc_attr( $box['id'] ), checked( $is_hidden, false, false ), $widget_title ); } } } } /** * Gets an array of IDs of hidden meta boxes. * * @since 2.7.0 * * @param string|WP_Screen $screen Screen identifier * @return string[] IDs of hidden meta boxes. */ function get_hidden_meta_boxes( $screen ) { if ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } $hidden = get_user_option( "metaboxhidden_{$screen->id}" ); $use_defaults = ! is_array( $hidden ); // Hide slug boxes by default. if ( $use_defaults ) { $hidden = array(); if ( 'post' === $screen->base ) { if ( in_array( $screen->post_type, array( 'post', 'page', 'attachment' ), true ) ) { $hidden = array( 'slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv' ); } else { $hidden = array( 'slugdiv' ); } } /** * Filters the default list of hidden meta boxes. * * @since 3.1.0 * * @param string[] $hidden An array of IDs of meta boxes hidden by default. * @param WP_Screen $screen WP_Screen object of the current screen. */ $hidden = apply_filters( 'default_hidden_meta_boxes', $hidden, $screen ); } /** * Filters the list of hidden meta boxes. * * @since 3.3.0 * * @param string[] $hidden An array of IDs of hidden meta boxes. * @param WP_Screen $screen WP_Screen object of the current screen. * @param bool $use_defaults Whether to show the default meta boxes. * Default true. */ return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults ); } /** * Register and configure an admin screen option * * @since 3.1.0 * * @param string $option An option name. * @param mixed $args Option-dependent arguments. */ function add_screen_option( $option, $args = array() ) { $current_screen = get_current_screen(); if ( ! $current_screen ) { return; } $current_screen->add_option( $option, $args ); } /** * Get the current screen object * * @since 3.1.0 * * @global WP_Screen $current_screen WordPress current screen object. * * @return WP_Screen|null Current screen object or null when screen not defined. */ function get_current_screen() { global $current_screen; if ( ! $current_screen instanceof WP_Screen ) { return null; } return $current_screen; } /** * Set the current screen object * * @since 3.0.0 * * @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen, * or an existing screen object. */ function set_current_screen( $hook_name = '' ) { WP_Screen::get( $hook_name )->set_current_screen(); } includes/class-wp-privacy-data-export-requests-list-table.php000064400000012673152213653150020440 0ustar00status; $request_id = $item->ID; $nonce = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id ); $download_data_markup = ''; $download_data_markup .= '' . '' . '' . ''; $download_data_markup .= ''; $row_actions['download-data'] = $download_data_markup; if ( 'request-completed' !== $status ) { $complete_request_markup = ''; $complete_request_markup .= sprintf( '%s', esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'complete', 'request_id' => array( $request_id ), ), admin_url( 'export-personal-data.php' ) ), 'bulk-privacy_requests' ) ), esc_attr( sprintf( /* translators: %s: Request email. */ __( 'Mark export request for “%s” as completed.' ), $item->email ) ), __( 'Complete request' ) ); $complete_request_markup .= ''; } if ( ! empty( $complete_request_markup ) ) { $row_actions['complete-request'] = $complete_request_markup; } return sprintf( '%2$s %3$s', esc_url( 'mailto:' . $item->email ), $item->email, $this->row_actions( $row_actions ) ); } /** * Displays the next steps column. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. */ public function column_next_steps( $item ) { $status = $item->status; switch ( $status ) { case 'request-pending': esc_html_e( 'Waiting for confirmation' ); break; case 'request-confirmed': /** This filter is documented in wp-admin/includes/ajax-actions.php */ $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() ); $exporters_count = count( $exporters ); $request_id = $item->ID; $nonce = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id ); echo '
        '; ?> '; break; case 'request-failed': echo ''; break; case 'request-completed': echo '' . esc_html__( 'Remove request' ) . ''; break; } } } includes/translation-install.php000064400000025503152213653150013075 0ustar00 3, 'body' => array( 'wp_version' => wp_get_wp_version(), 'locale' => get_locale(), 'version' => $args['version'], // Version of plugin, theme or core. ), ); if ( 'core' !== $type ) { $options['body']['slug'] = $args['slug']; // Plugin or theme slug. } $request = wp_remote_post( $url, $options ); if ( $ssl && is_wp_error( $request ) ) { wp_trigger_error( __FUNCTION__, sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); $request = wp_remote_post( $http_url, $options ); } if ( is_wp_error( $request ) ) { $res = new WP_Error( 'translations_api_failed', sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ), $request->get_error_message() ); } else { $res = json_decode( wp_remote_retrieve_body( $request ), true ); if ( ! is_object( $res ) && ! is_array( $res ) ) { $res = new WP_Error( 'translations_api_failed', sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ), wp_remote_retrieve_body( $request ) ); } } } /** * Filters the Translation Installation API response results. * * @since 4.0.0 * * @param array|WP_Error $res { * On success an associative array of translations, WP_Error on failure. * * @type array $translations { * List of translations, each an array of data. * * @type array ...$0 { * @type string $language Language code. * @type string $version WordPress version. * @type string $updated Date the translation was last updated, in MySQL datetime format. * @type string $english_name English name of the language. * @type string $native_name Native name of the language. * @type string $package URL to download the translation package. * @type string[] $iso Array of ISO language codes. * @type array $strings Array of translated strings used in the installation process. * } * } * } * @param string $type The type of translations being requested. * @param object $args Translation API arguments. */ return apply_filters( 'translations_api_result', $res, $type, $args ); } /** * Get available translations from the WordPress.org API. * * @since 4.0.0 * * @see translations_api() * * @return array { * Array of translations keyed by the language code, each an associative array of data. * If the API response results in an error, an empty array will be returned. * * @type array ...$0 { * @type string $language Language code. * @type string $version WordPress version. * @type string $updated Date the translation was last updated, in MySQL datetime format. * @type string $english_name English name of the language. * @type string $native_name Native name of the language. * @type string $package URL to download the translation package. * @type string[] $iso Array of ISO language codes. * @type array $strings Array of translated strings used in the installation process. * } * } */ function wp_get_available_translations() { if ( ! wp_installing() ) { $translations = get_site_transient( 'available_translations' ); if ( false !== $translations ) { return $translations; } } $api = translations_api( 'core', array( 'version' => wp_get_wp_version() ) ); if ( is_wp_error( $api ) || empty( $api['translations'] ) ) { return array(); } $translations = array(); // Key the array with the language code. foreach ( $api['translations'] as $translation ) { $translations[ $translation['language'] ] = $translation; } if ( ! defined( 'WP_INSTALLING' ) ) { set_site_transient( 'available_translations', $translations, 3 * HOUR_IN_SECONDS ); } return $translations; } /** * Output the select form for the language selection on the installation screen. * * @since 4.0.0 * * @global string $wp_local_package Locale code of the package. * * @param array[] $languages Array of available languages (populated via the Translation API). */ function wp_install_language_form( $languages ) { global $wp_local_package; $installed_languages = get_available_languages(); echo "\n"; echo "\n"; echo '

        '; } /** * Download a language pack. * * @since 4.0.0 * * @see wp_get_available_translations() * * @param string $download Language code to download. * @return string|false Returns the language code if successfully downloaded * (or already installed), or false on failure. */ function wp_download_language_pack( $download ) { // Check if the translation is already installed. if ( in_array( $download, get_available_languages(), true ) ) { return $download; } if ( ! wp_is_file_mod_allowed( 'download_language_pack' ) ) { return false; } // Confirm the translation is one we can download. $translations = wp_get_available_translations(); if ( ! $translations ) { return false; } foreach ( $translations as $translation ) { if ( $translation['language'] === $download ) { $translation_to_load = true; break; } } if ( empty( $translation_to_load ) ) { return false; } $translation = (object) $translation; require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $skin = new Automatic_Upgrader_Skin(); $upgrader = new Language_Pack_Upgrader( $skin ); $translation->type = 'core'; $result = $upgrader->upgrade( $translation, array( 'clear_update_cache' => false ) ); if ( ! $result || is_wp_error( $result ) ) { return false; } return $translation->language; } /** * Check if WordPress has access to the filesystem without asking for * credentials. * * @since 4.0.0 * * @return bool Returns true on success, false on failure. */ function wp_can_install_language_pack() { if ( ! wp_is_file_mod_allowed( 'can_install_language_pack' ) ) { return false; } require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $skin = new Automatic_Upgrader_Skin(); $upgrader = new Language_Pack_Upgrader( $skin ); $upgrader->init(); $check = $upgrader->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); if ( ! $check || is_wp_error( $check ) ) { return false; } return true; } includes/admin.php000064400000007054152213653150010164 0ustar00 $plugin_name, 'policy_text' => $policy_text, ); if ( ! in_array( $data, self::$policy_content, true ) ) { self::$policy_content[] = $data; } } /** * Performs a quick check to determine whether any privacy info has changed. * * @since 4.9.6 */ public static function text_change_check() { $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' ); // The site doesn't have a privacy policy. if ( empty( $policy_page_id ) ) { return false; } if ( ! current_user_can( 'edit_post', $policy_page_id ) ) { return false; } $old = (array) get_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' ); // Updates are not relevant if the user has not reviewed any suggestions yet. if ( empty( $old ) ) { return false; } $cached = get_option( '_wp_suggested_policy_text_has_changed' ); /* * When this function is called before `admin_init`, `self::$policy_content` * has not been populated yet, so use the cached result from the last * execution instead. */ if ( ! did_action( 'admin_init' ) ) { return 'changed' === $cached; } $new = self::$policy_content; // Remove the extra values added to the meta. foreach ( $old as $key => $data ) { if ( ! is_array( $data ) || ! empty( $data['removed'] ) ) { unset( $old[ $key ] ); continue; } $old[ $key ] = array( 'plugin_name' => $data['plugin_name'], 'policy_text' => $data['policy_text'], ); } // Normalize the order of texts, to facilitate comparison. sort( $old ); sort( $new ); /* * The == operator (equal, not identical) was used intentionally. * See https://www.php.net/manual/en/language.operators.array.php */ if ( $new != $old ) { /* * A plugin was activated or deactivated, or some policy text has changed. * Show a notice on the relevant screens to inform the admin. */ add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'policy_text_changed_notice' ) ); $state = 'changed'; } else { $state = 'not-changed'; } // Cache the result for use before `admin_init` (see above). if ( $cached !== $state ) { update_option( '_wp_suggested_policy_text_has_changed', $state, false ); } return 'changed' === $state; } /** * Outputs a warning when some privacy info has changed. * * @since 4.9.6 */ public static function policy_text_changed_notice() { $screen = get_current_screen()->id; if ( 'privacy' !== $screen ) { return; } $privacy_message = sprintf( /* translators: %s: Privacy Policy Guide URL. */ __( 'The suggested privacy policy text has changed. Please review the guide and update your privacy policy.' ), esc_url( admin_url( 'privacy-policy-guide.php?tab=policyguide' ) ) ); wp_admin_notice( $privacy_message, array( 'type' => 'warning', 'additional_classes' => array( 'policy-text-updated' ), 'dismissible' => true, ) ); } /** * Updates the cached policy info when the policy page is updated. * * @since 4.9.6 * @access private * * @param int $post_id The ID of the updated post. */ public static function _policy_page_updated( $post_id ) { $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' ); if ( ! $policy_page_id || $policy_page_id !== (int) $post_id ) { return; } // Remove updated|removed status. $old = (array) get_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' ); $done = array(); $update_cache = false; foreach ( $old as $old_key => $old_data ) { if ( ! empty( $old_data['removed'] ) ) { // Remove the old policy text. $update_cache = true; continue; } if ( ! empty( $old_data['updated'] ) ) { // 'updated' is now 'added'. $done[] = array( 'plugin_name' => $old_data['plugin_name'], 'policy_text' => $old_data['policy_text'], 'added' => $old_data['updated'], ); $update_cache = true; } else { $done[] = $old_data; } } if ( $update_cache ) { delete_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' ); // Update the cache. foreach ( $done as $data ) { add_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content', $data ); } } } /** * Checks for updated, added or removed privacy policy information from plugins. * * Caches the current info in post_meta of the policy page. * * @since 4.9.6 * * @return array The privacy policy text/information added by core and plugins. */ public static function get_suggested_policy_text() { $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' ); $checked = array(); $time = time(); $update_cache = false; $new = self::$policy_content; $old = array(); if ( $policy_page_id ) { $old = (array) get_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' ); } // Check for no-changes and updates. foreach ( $new as $new_key => $new_data ) { foreach ( $old as $old_key => $old_data ) { $found = false; if ( $new_data['policy_text'] === $old_data['policy_text'] ) { // Use the new plugin name in case it was changed, translated, etc. if ( $old_data['plugin_name'] !== $new_data['plugin_name'] ) { $old_data['plugin_name'] = $new_data['plugin_name']; $update_cache = true; } // A plugin was re-activated. if ( ! empty( $old_data['removed'] ) ) { unset( $old_data['removed'] ); $old_data['added'] = $time; $update_cache = true; } $checked[] = $old_data; $found = true; } elseif ( $new_data['plugin_name'] === $old_data['plugin_name'] ) { // The info for the policy was updated. $checked[] = array( 'plugin_name' => $new_data['plugin_name'], 'policy_text' => $new_data['policy_text'], 'updated' => $time, ); $found = true; $update_cache = true; } if ( $found ) { unset( $new[ $new_key ], $old[ $old_key ] ); continue 2; } } } if ( ! empty( $new ) ) { // A plugin was activated. foreach ( $new as $new_data ) { if ( ! empty( $new_data['plugin_name'] ) && ! empty( $new_data['policy_text'] ) ) { $new_data['added'] = $time; $checked[] = $new_data; } } $update_cache = true; } if ( ! empty( $old ) ) { // A plugin was deactivated. foreach ( $old as $old_data ) { if ( ! empty( $old_data['plugin_name'] ) && ! empty( $old_data['policy_text'] ) ) { $data = array( 'plugin_name' => $old_data['plugin_name'], 'policy_text' => $old_data['policy_text'], 'removed' => $time, ); $checked[] = $data; } } $update_cache = true; } if ( $update_cache && $policy_page_id ) { delete_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content' ); // Update the cache. foreach ( $checked as $data ) { add_post_meta( $policy_page_id, '_wp_suggested_privacy_policy_content', $data ); } } return $checked; } /** * Adds a notice with a link to the guide when editing the privacy policy page. * * @since 4.9.6 * @since 5.0.0 The `$post` parameter was made optional. * * @global WP_Post $post Global post object. * * @param WP_Post|null $post The currently edited post. Default null. */ public static function notice( $post = null ) { if ( is_null( $post ) ) { global $post; } else { $post = get_post( $post ); } if ( ! ( $post instanceof WP_Post ) ) { return; } if ( ! current_user_can( 'manage_privacy_options' ) ) { return; } $current_screen = get_current_screen(); $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' ); if ( 'post' !== $current_screen->base || $policy_page_id !== $post->ID ) { return; } $message = __( 'Need help putting together your new Privacy Policy page? Check out the guide for recommendations on what content to include, along with policies suggested by your plugins and theme.' ); $url = esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ); $label = __( 'View Privacy Policy Guide.' ); if ( get_current_screen()->is_block_editor() ) { wp_enqueue_script( 'wp-notices' ); $action = array( 'url' => $url, 'label' => $label, ); wp_add_inline_script( 'wp-notices', sprintf( 'wp.data.dispatch( "core/notices" ).createWarningNotice( "%s", { actions: [ %s ], isDismissible: false } )', $message, wp_json_encode( $action, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ), 'after' ); } else { $message .= sprintf( ' %s %s', $url, $label, /* translators: Hidden accessibility text. */ __( '(opens in a new tab)' ) ); wp_admin_notice( $message, array( 'type' => 'warning', 'additional_classes' => array( 'inline', 'wp-pp-notice' ), ) ); } } /** * Outputs the privacy policy guide together with content from the theme and plugins. * * @since 4.9.6 */ public static function privacy_policy_guide() { $content_array = self::get_suggested_policy_text(); $date_format = __( 'F j, Y' ); $i = 0; foreach ( $content_array as $section ) { ++$i; $removed = ''; if ( ! empty( $section['removed'] ) ) { $badge_class = ' red'; $date = date_i18n( $date_format, $section['removed'] ); /* translators: %s: Date of plugin deactivation. */ $badge_title = sprintf( __( 'Removed %s.' ), $date ); /* translators: %s: Date of plugin deactivation. */ $removed = sprintf( __( 'You deactivated this plugin on %s and may no longer need this policy.' ), $date ); $removed = wp_get_admin_notice( $removed, array( 'type' => 'info', 'additional_classes' => array( 'inline' ), ) ); } elseif ( ! empty( $section['updated'] ) ) { $badge_class = ' blue'; $date = date_i18n( $date_format, $section['updated'] ); /* translators: %s: Date of privacy policy text update. */ $badge_title = sprintf( __( 'Updated %s.' ), $date ); } $plugin_name = esc_html( $section['plugin_name'] ); ?>

        ' . __( 'Suggested text:' ) . ' '; $content = ''; $strings = array(); // Start of the suggested privacy policy text. if ( $description ) { $strings[] = '
        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Who we are' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '

        '; } else { /* translators: Default privacy policy text. %s: Site URL. */ $strings[] = '

        ' . $suggested_text . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'What personal data we collect and why we collect it' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include personal data, such as name, email address, personal account preferences; transactional data, such as purchase information; and technical data, such as information about cookies.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'You should also note any collection and retention of sensitive personal data, such as data concerning health.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In addition to listing what personal data you collect, you need to note why you collect it. These explanations must note either the legal basis for your data collection and retention or the active consent the user has given.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'Personal data is not just created by a user’s interactions with your site. Personal data is also generated from technical processes such as contact forms, comments, cookies, analytics, and third party embeds.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Comments' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . __( 'An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Media' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Contact forms' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Cookies' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this subsection you should list the cookies your website uses, including those set by your plugins, social media, and analytics. We have provided the cookies which WordPress installs by default.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . __( 'If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . __( 'When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed.' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . __( 'If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.' ) . '

        '; } if ( ! $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Embedded content from other websites' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . __( 'These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Analytics' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to your analytics provider’s privacy policy, if any.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'By default WordPress does not collect any analytics data. However, many web hosting accounts collect some anonymous analytics data. You may also have installed a WordPress plugin that provides analytics services. In that case, add information from that plugin here.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Who we share your data with' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, cloud-based services, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy policies if possible.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'By default WordPress does not share any personal data with anyone.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'If you request a password reset, your IP address will be included in the reset email.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'How long we retain your data' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should explain how long you retain personal data collected or processed by the website. While it is your responsibility to come up with the schedule of how long you keep each dataset for and why you keep it, that information does need to be listed here. For example, you may want to say that you keep contact form entries for six months, analytics records for a year, and customer purchase records for ten years.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . '

        '; /* translators: Default privacy policy text. */ $strings[] = '

        ' . __( 'For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'What rights you have over your data' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.' ) . '

        '; } /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Where your data is sent' ) . '

        '; if ( $description ) { /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should list all transfers of your site data outside the European Union and describe the means by which that data is safeguarded to European data protection standards. This could include your web hosting, cloud storage, or other third party services.' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'European data protection law requires data about European residents which is transferred outside the European Union to be safeguarded to the same standards as if the data was in Europe. So in addition to listing where data goes, you should describe how you ensure that these standards are met either by yourself or by your third party providers, whether that is through an agreement such as Privacy Shield, model clauses in your contracts, or binding corporate rules.' ) . '

        '; } else { /* translators: Default privacy policy text. */ $strings[] = '

        ' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Contact information' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should provide a contact method for privacy-specific concerns. If you are required to have a Data Protection Officer, list their name and full contact details here as well.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Additional information' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'How we protect your data' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should explain what measures you have taken to protect your users’ data. This could include technical measures such as encryption; security measures such as two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'What data breach procedures we have in place' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'In this section you should explain what procedures you have in place to deal with data breaches, either potential or real, such as internal reporting systems, contact mechanisms, or bug bounties.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'What third parties we receive data from' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'If your website receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'What automated decision making and/or profiling we do with user data' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'If your website provides a service which includes automated decision making - for example, allowing customers to apply for credit, or aggregating their data into an advertising profile - you must note that this is taking place, and include information about how that information is used, what decisions are made with that aggregated data, and what rights users have over decisions made without human intervention.' ) . '

        '; } if ( $description ) { /* translators: Default privacy policy heading. */ $strings[] = '

        ' . __( 'Industry regulatory disclosure requirements' ) . '

        '; /* translators: Privacy policy tutorial. */ $strings[] = '

        ' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '

        '; $strings[] = '
        '; } if ( $blocks ) { foreach ( $strings as $key => $string ) { if ( str_starts_with( $string, '

        ' ) ) { $strings[ $key ] = "\n" . $string . "\n\n"; } if ( str_starts_with( $string, '

        \n"; } } } $content = implode( '', $strings ); // End of the suggested privacy policy text. /** * Filters the default content suggested for inclusion in a privacy policy. * * @since 4.9.6 * @since 5.0.0 Added the `$strings`, `$description`, and `$blocks` parameters. * @deprecated 5.7.0 Use wp_add_privacy_policy_content() instead. * * @param string $content The default policy content. * @param string[] $strings An array of privacy policy content strings. * @param bool $description Whether policy descriptions should be included. * @param bool $blocks Whether the content should be formatted for the block editor. */ return apply_filters_deprecated( 'wp_get_default_privacy_policy_content', array( $content, $strings, $description, $blocks ), '5.7.0', 'wp_add_privacy_policy_content()' ); } /** * Adds the suggested privacy policy text to the policy postbox. * * @since 4.9.6 */ public static function add_suggested_content() { $content = self::get_default_content( false, false ); wp_add_privacy_policy_content( __( 'WordPress' ), $content ); } } includes/file.php000064400000277171152213653150010024 0ustar00 __( 'Theme Functions' ), 'header.php' => __( 'Theme Header' ), 'footer.php' => __( 'Theme Footer' ), 'sidebar.php' => __( 'Sidebar' ), 'comments.php' => __( 'Comments' ), 'searchform.php' => __( 'Search Form' ), '404.php' => __( '404 Template' ), 'link.php' => __( 'Links Template' ), 'theme.json' => __( 'Theme Styles & Block Settings' ), // Archives. 'index.php' => __( 'Main Index Template' ), 'archive.php' => __( 'Archives' ), 'author.php' => __( 'Author Template' ), 'taxonomy.php' => __( 'Taxonomy Template' ), 'category.php' => __( 'Category Template' ), 'tag.php' => __( 'Tag Template' ), 'home.php' => __( 'Posts Page' ), 'search.php' => __( 'Search Results' ), 'date.php' => __( 'Date Template' ), // Content. 'singular.php' => __( 'Singular Template' ), 'single.php' => __( 'Single Post' ), 'page.php' => __( 'Single Page' ), 'front-page.php' => __( 'Homepage' ), 'privacy-policy.php' => __( 'Privacy Policy Page' ), // Attachments. 'attachment.php' => __( 'Attachment Template' ), 'image.php' => __( 'Image Attachment Template' ), 'video.php' => __( 'Video Attachment Template' ), 'audio.php' => __( 'Audio Attachment Template' ), 'application.php' => __( 'Application Attachment Template' ), // Embeds. 'embed.php' => __( 'Embed Template' ), 'embed-404.php' => __( 'Embed 404 Template' ), 'embed-content.php' => __( 'Embed Content Template' ), 'header-embed.php' => __( 'Embed Header Template' ), 'footer-embed.php' => __( 'Embed Footer Template' ), // Stylesheets. 'style.css' => __( 'Stylesheet' ), 'editor-style.css' => __( 'Visual Editor Stylesheet' ), 'editor-style-rtl.css' => __( 'Visual Editor RTL Stylesheet' ), 'rtl.css' => __( 'RTL Stylesheet' ), // Other. 'my-hacks.php' => __( 'my-hacks.php (legacy hacks support)' ), '.htaccess' => __( '.htaccess (for rewrite rules )' ), // Deprecated files. 'wp-layout.css' => __( 'Stylesheet' ), 'wp-comments.php' => __( 'Comments Template' ), 'wp-comments-popup.php' => __( 'Popup Comments Template' ), 'comments-popup.php' => __( 'Popup Comments' ), ); /** * Gets the description for standard WordPress theme files. * * @since 1.5.0 * * @global array $wp_file_descriptions Theme file descriptions. * @global array $allowed_files List of allowed files. * * @param string $file Filesystem path or filename. * @return string Description of file from $wp_file_descriptions or basename of $file if description doesn't exist. * Appends 'Page Template' to basename of $file if the file is a page template. */ function get_file_description( $file ) { global $wp_file_descriptions, $allowed_files; $dirname = pathinfo( $file, PATHINFO_DIRNAME ); $file_path = $allowed_files[ $file ]; if ( isset( $wp_file_descriptions[ basename( $file ) ] ) && '.' === $dirname ) { return $wp_file_descriptions[ basename( $file ) ]; } elseif ( file_exists( $file_path ) && is_file( $file_path ) ) { $template_data = implode( '', file( $file_path ) ); if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) ) { /* translators: %s: Template name. */ return sprintf( __( '%s Page Template' ), _cleanup_header_comment( $name[1] ) ); } } return trim( basename( $file ) ); } /** * Gets the absolute filesystem path to the root of the WordPress installation. * * @since 1.5.0 * * @return string Full filesystem path to the root of the WordPress installation. */ function get_home_path() { $home = set_url_scheme( get_option( 'home' ), 'http' ); $siteurl = set_url_scheme( get_option( 'siteurl' ), 'http' ); if ( ! empty( $home ) && 0 !== strcasecmp( $home, $siteurl ) ) { $wp_path_rel_to_home = str_ireplace( $home, '', $siteurl ); /* $siteurl - $home */ $pos = strripos( str_replace( '\\', '/', $_SERVER['SCRIPT_FILENAME'] ), trailingslashit( $wp_path_rel_to_home ) ); $home_path = substr( $_SERVER['SCRIPT_FILENAME'], 0, $pos ); $home_path = trailingslashit( $home_path ); } else { $home_path = ABSPATH; } return str_replace( '\\', '/', $home_path ); } /** * Returns a listing of all files in the specified folder and all subdirectories up to 100 levels deep. * * The depth of the recursiveness can be controlled by the $levels param. * * @since 2.6.0 * @since 4.9.0 Added the `$exclusions` parameter. * @since 6.3.0 Added the `$include_hidden` parameter. * * @param string $folder Optional. Full path to folder. Default empty. * @param int $levels Optional. Levels of folders to follow, Default 100 (PHP Loop limit). * @param string[] $exclusions Optional. List of folders and files to skip. * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. * Default false. * @return string[]|false Array of files on success, false on failure. */ function list_files( $folder = '', $levels = 100, $exclusions = array(), $include_hidden = false ) { if ( empty( $folder ) ) { return false; } $folder = trailingslashit( $folder ); if ( ! $levels ) { return false; } $files = array(); $dir = @opendir( $folder ); if ( $dir ) { while ( ( $file = readdir( $dir ) ) !== false ) { // Skip current and parent folder links. if ( in_array( $file, array( '.', '..' ), true ) ) { continue; } // Skip hidden and excluded files. if ( ( ! $include_hidden && '.' === $file[0] ) || in_array( $file, $exclusions, true ) ) { continue; } if ( is_dir( $folder . $file ) ) { $files2 = list_files( $folder . $file, $levels - 1, array(), $include_hidden ); if ( $files2 ) { $files = array_merge( $files, $files2 ); } else { $files[] = $folder . $file . '/'; } } else { $files[] = $folder . $file; } } closedir( $dir ); } return $files; } /** * Gets the list of file extensions that are editable in plugins. * * @since 4.9.0 * * @param string $plugin Path to the plugin file relative to the plugins directory. * @return string[] Array of editable file extensions. */ function wp_get_plugin_file_editable_extensions( $plugin ) { $default_types = array( 'bash', 'conf', 'css', 'diff', 'htm', 'html', 'http', 'inc', 'include', 'js', 'mjs', 'json', 'jsx', 'less', 'md', 'patch', 'php', 'php3', 'php4', 'php5', 'php7', 'phps', 'phtml', 'sass', 'scss', 'sh', 'sql', 'svg', 'text', 'txt', 'xml', 'yaml', 'yml', ); /** * Filters the list of file types allowed for editing in the plugin file editor. * * @since 2.8.0 * @since 4.9.0 Added the `$plugin` parameter. * * @param string[] $default_types An array of editable plugin file extensions. * @param string $plugin Path to the plugin file relative to the plugins directory. */ $file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin ); return $file_types; } /** * Gets the list of file extensions that are editable for a given theme. * * @since 4.9.0 * * @param WP_Theme $theme Theme object. * @return string[] Array of editable file extensions. */ function wp_get_theme_file_editable_extensions( $theme ) { $default_types = array( 'bash', 'conf', 'css', 'diff', 'htm', 'html', 'http', 'inc', 'include', 'js', 'mjs', 'json', 'jsx', 'less', 'md', 'patch', 'php', 'php3', 'php4', 'php5', 'php7', 'phps', 'phtml', 'sass', 'scss', 'sh', 'sql', 'svg', 'text', 'txt', 'xml', 'yaml', 'yml', ); /** * Filters the list of file types allowed for editing in the theme file editor. * * @since 4.4.0 * * @param string[] $default_types An array of editable theme file extensions. * @param WP_Theme $theme The active theme object. */ $file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme ); // Ensure that default types are still there. return array_unique( array_merge( $file_types, $default_types ) ); } /** * Prints file editor templates (for plugins and themes). * * @since 4.9.0 */ function wp_print_file_editor_templates() { ?> exists() ) { return new WP_Error( 'non_existent_theme', __( 'The requested theme does not exist.' ) ); } if ( ! wp_verify_nonce( $args['nonce'], 'edit-theme_' . $stylesheet . '_' . $file ) ) { return new WP_Error( 'nonce_failure' ); } if ( $theme->errors() && 'theme_no_stylesheet' === $theme->errors()->get_error_code() ) { return new WP_Error( 'theme_no_stylesheet', __( 'The requested theme does not exist.' ) . ' ' . $theme->errors()->get_error_message() ); } $editable_extensions = wp_get_theme_file_editable_extensions( $theme ); $allowed_files = array(); foreach ( $editable_extensions as $type ) { switch ( $type ) { case 'php': $allowed_files = array_merge( $allowed_files, $theme->get_files( 'php', -1 ) ); break; case 'css': $style_files = $theme->get_files( 'css', -1 ); $allowed_files['style.css'] = $style_files['style.css']; $allowed_files = array_merge( $allowed_files, $style_files ); break; default: $allowed_files = array_merge( $allowed_files, $theme->get_files( $type, -1 ) ); break; } } // Compare based on relative paths. if ( 0 !== validate_file( $file, array_keys( $allowed_files ) ) ) { return new WP_Error( 'disallowed_theme_file', __( 'Sorry, that file cannot be edited.' ) ); } $real_file = $theme->get_stylesheet_directory() . '/' . $file; $is_active = ( get_stylesheet() === $stylesheet || get_template() === $stylesheet ); } else { return new WP_Error( 'missing_theme_or_plugin' ); } // Ensure file is real. if ( ! is_file( $real_file ) ) { return new WP_Error( 'file_does_not_exist', __( 'File does not exist! Please double check the name and try again.' ) ); } // Ensure file extension is allowed. $extension = null; if ( preg_match( '/\.([^.]+)$/', $real_file, $matches ) ) { $extension = strtolower( $matches[1] ); if ( ! in_array( $extension, $editable_extensions, true ) ) { return new WP_Error( 'illegal_file_type', __( 'Files of this type are not editable.' ) ); } } $previous_content = file_get_contents( $real_file ); if ( ! is_writable( $real_file ) ) { return new WP_Error( 'file_not_writable' ); } $f = fopen( $real_file, 'w+' ); if ( false === $f ) { return new WP_Error( 'file_not_writable' ); } $written = fwrite( $f, $content ); fclose( $f ); if ( false === $written ) { return new WP_Error( 'unable_to_write', __( 'Unable to write to file.' ) ); } wp_opcache_invalidate( $real_file, true ); if ( $is_active && 'php' === $extension ) { $scrape_key = md5( rand() ); $transient = 'scrape_key_' . $scrape_key; $scrape_nonce = (string) rand(); // It shouldn't take more than 60 seconds to make the two loopback requests. set_transient( $transient, $scrape_nonce, 60 ); $cookies = wp_unslash( $_COOKIE ); $scrape_params = array( 'wp_scrape_key' => $scrape_key, 'wp_scrape_nonce' => $scrape_nonce, ); $headers = array( 'Cache-Control' => 'no-cache', ); /** This filter is documented in wp-includes/class-wp-http-streams.php */ $sslverify = apply_filters( 'https_local_ssl_verify', false ); // Include Basic auth in loopback requests. if ( isset( $_SERVER['PHP_AUTH_USER'] ) && isset( $_SERVER['PHP_AUTH_PW'] ) ) { $headers['Authorization'] = 'Basic ' . base64_encode( wp_unslash( $_SERVER['PHP_AUTH_USER'] ) . ':' . wp_unslash( $_SERVER['PHP_AUTH_PW'] ) ); } // Make sure PHP process doesn't die before loopback requests complete. if ( function_exists( 'set_time_limit' ) ) { set_time_limit( 5 * MINUTE_IN_SECONDS ); } // Time to wait for loopback requests to finish. $timeout = 100; // 100 seconds. $needle_start = "###### wp_scraping_result_start:$scrape_key ######"; $needle_end = "###### wp_scraping_result_end:$scrape_key ######"; // Attempt loopback request to editor to see if user just whitescreened themselves. if ( $plugin ) { $url = add_query_arg( compact( 'plugin', 'file' ), admin_url( 'plugin-editor.php' ) ); } elseif ( isset( $stylesheet ) ) { $url = add_query_arg( array( 'theme' => $stylesheet, 'file' => $file, ), admin_url( 'theme-editor.php' ) ); } else { $url = admin_url(); } if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) { /* * Close any active session to prevent HTTP requests from timing out * when attempting to connect back to the site. */ session_write_close(); } $url = add_query_arg( $scrape_params, $url ); $r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) ); $body = wp_remote_retrieve_body( $r ); $scrape_result_position = strpos( $body, $needle_start ); $loopback_request_failure = array( 'code' => 'loopback_request_failed', 'message' => __( 'Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.' ), ); $json_parse_failure = array( 'code' => 'json_parse_error', ); $result = null; if ( false === $scrape_result_position ) { $result = $loopback_request_failure; } else { $error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) ); $error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) ); $result = json_decode( trim( $error_output ), true ); if ( empty( $result ) ) { $result = $json_parse_failure; } } // Try making request to homepage as well to see if visitors have been whitescreened. if ( true === $result ) { $url = home_url( '/' ); $url = add_query_arg( $scrape_params, $url ); $r = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout', 'sslverify' ) ); $body = wp_remote_retrieve_body( $r ); $scrape_result_position = strpos( $body, $needle_start ); if ( false === $scrape_result_position ) { $result = $loopback_request_failure; } else { $error_output = substr( $body, $scrape_result_position + strlen( $needle_start ) ); $error_output = substr( $error_output, 0, strpos( $error_output, $needle_end ) ); $result = json_decode( trim( $error_output ), true ); if ( empty( $result ) ) { $result = $json_parse_failure; } } } delete_transient( $transient ); if ( true !== $result ) { // Roll-back file change. file_put_contents( $real_file, $previous_content ); wp_opcache_invalidate( $real_file, true ); if ( ! isset( $result['message'] ) ) { $message = __( 'An error occurred. Please try again later.' ); } else { $message = $result['message']; unset( $result['message'] ); } return new WP_Error( 'php_error', $message, $result ); } } if ( $theme instanceof WP_Theme ) { $theme->cache_delete(); } return true; } /** * Returns a filename of a temporary unique file. * * Please note that the calling function must delete or move the file. * * The filename is based off the passed parameter or defaults to the current unix timestamp, * while the directory can either be passed as well, or by leaving it blank, default to a writable * temporary directory. * * @since 2.6.0 * * @param string $filename Optional. Filename to base the Unique file off. Default empty. * @param string $dir Optional. Directory to store the file in. Default empty. * @return string A writable filename. */ function wp_tempnam( $filename = '', $dir = '' ) { if ( empty( $dir ) ) { $dir = get_temp_dir(); } if ( empty( $filename ) || in_array( $filename, array( '.', '/', '\\' ), true ) ) { $filename = uniqid(); } // Use the basename of the given file without the extension as the name for the temporary directory. $temp_filename = basename( $filename ); $temp_filename = preg_replace( '|\.[^.]*$|', '', $temp_filename ); // If the folder is falsey, use its parent directory name instead. if ( ! $temp_filename ) { return wp_tempnam( dirname( $filename ), $dir ); } // Suffix some random data to avoid filename conflicts. $temp_filename .= '-' . wp_generate_password( 6, false ); $temp_filename .= '.tmp'; $temp_filename = wp_unique_filename( $dir, $temp_filename ); /* * Filesystems typically have a limit of 255 characters for a filename. * * If the generated unique filename exceeds this, truncate the initial * filename and try again. * * As it's possible that the truncated filename may exist, producing a * suffix of "-1" or "-10" which could exceed the limit again, truncate * it to 252 instead. */ $characters_over_limit = strlen( $temp_filename ) - 252; if ( $characters_over_limit > 0 ) { $filename = substr( $filename, 0, -$characters_over_limit ); return wp_tempnam( $filename, $dir ); } $temp_filename = $dir . $temp_filename; $fp = @fopen( $temp_filename, 'x' ); if ( ! $fp && is_writable( $dir ) && file_exists( $temp_filename ) ) { return wp_tempnam( $filename, $dir ); } if ( $fp ) { fclose( $fp ); } return $temp_filename; } /** * Makes sure that the file that was requested to be edited is allowed to be edited. * * Function will die if you are not allowed to edit the file. * * @since 1.5.0 * * @param string $file File the user is attempting to edit. * @param string[] $allowed_files Optional. Array of allowed files to edit. * `$file` must match an entry exactly. * @return string|void Returns the file name on success, dies on failure. */ function validate_file_to_edit( $file, $allowed_files = array() ) { $code = validate_file( $file, $allowed_files ); if ( ! $code ) { return $file; } switch ( $code ) { case 1: wp_die( __( 'Sorry, that file cannot be edited.' ) ); // case 2 : // wp_die( __('Sorry, cannot call files with their real path.' )); case 3: wp_die( __( 'Sorry, that file cannot be edited.' ) ); } } /** * Handles PHP uploads in WordPress. * * Sanitizes file names, checks extensions for mime type, and moves the file * to the appropriate directory within the uploads directory. * * @access private * @since 4.0.0 * * @see wp_handle_upload_error * * @param array $file { * Reference to a single element from `$_FILES`. Call the function once for each uploaded file. * * @type string $name The original name of the file on the client machine. * @type string $type The mime type of the file, if the browser provided this information. * @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server. * @type int $size The size, in bytes, of the uploaded file. * @type int $error The error code associated with this file upload. * } * @param array|false $overrides { * An array of override parameters for this file, or boolean false if none are provided. * * @type callable $upload_error_handler Function to call when there is an error during the upload process. * See {@see wp_handle_upload_error()}. * @type callable $unique_filename_callback Function to call when determining a unique file name for the file. * See {@see wp_unique_filename()}. * @type string[] $upload_error_strings The strings that describe the error indicated in * `$_FILES[{form field}]['error']`. * @type bool $test_form Whether to test that the `$_POST['action']` parameter is as expected. * @type bool $test_size Whether to test that the file size is greater than zero bytes. * @type bool $test_type Whether to test that the mime type of the file is as expected. * @type string[] $mimes Array of allowed mime types keyed by their file extension regex. * } * @param string $time Time formatted in 'yyyy/mm'. * @param string $action Expected value for `$_POST['action']`. * @return array { * On success, returns an associative array of file attributes. * On failure, returns `$overrides['upload_error_handler']( &$file, $message )` * or `array( 'error' => $message )`. * * @type string $file Filename of the newly-uploaded file. * @type string $url URL of the newly-uploaded file. * @type string $type Mime type of the newly-uploaded file. * } */ function _wp_handle_upload( &$file, $overrides, $time, $action ) { // The default error handler. if ( ! function_exists( 'wp_handle_upload_error' ) ) { function wp_handle_upload_error( &$file, $message ) { return array( 'error' => $message ); } } /** * Filters the data for a file before it is uploaded to WordPress. * * The dynamic portion of the hook name, `$action`, refers to the post action. * * Possible hook names include: * * - `wp_handle_sideload_prefilter` * - `wp_handle_upload_prefilter` * * @since 2.9.0 as 'wp_handle_upload_prefilter'. * @since 4.0.0 Converted to a dynamic hook with `$action`. * * @param array $file { * Reference to a single element from `$_FILES`. * * @type string $name The original name of the file on the client machine. * @type string $type The mime type of the file, if the browser provided this information. * @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server. * @type int $size The size, in bytes, of the uploaded file. * @type int $error The error code associated with this file upload. * } */ $file = apply_filters( "{$action}_prefilter", $file ); /** * Filters the override parameters for a file before it is uploaded to WordPress. * * The dynamic portion of the hook name, `$action`, refers to the post action. * * Possible hook names include: * * - `wp_handle_sideload_overrides` * - `wp_handle_upload_overrides` * * @since 5.7.0 * * @param array|false $overrides An array of override parameters for this file. Boolean false if none are * provided. See {@see _wp_handle_upload()}. * @param array $file { * Reference to a single element from `$_FILES`. * * @type string $name The original name of the file on the client machine. * @type string $type The mime type of the file, if the browser provided this information. * @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server. * @type int $size The size, in bytes, of the uploaded file. * @type int $error The error code associated with this file upload. * } */ $overrides = apply_filters( "{$action}_overrides", $overrides, $file ); // You may define your own function and pass the name in $overrides['upload_error_handler']. $upload_error_handler = 'wp_handle_upload_error'; if ( isset( $overrides['upload_error_handler'] ) ) { $upload_error_handler = $overrides['upload_error_handler']; } // You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully. if ( isset( $file['error'] ) && ! is_numeric( $file['error'] ) && $file['error'] ) { return call_user_func_array( $upload_error_handler, array( &$file, $file['error'] ) ); } // Install user overrides. Did we mention that this voids your warranty? // You may define your own function and pass the name in $overrides['unique_filename_callback']. $unique_filename_callback = null; if ( isset( $overrides['unique_filename_callback'] ) ) { $unique_filename_callback = $overrides['unique_filename_callback']; } /* * This may not have originally been intended to be overridable, * but historically has been. */ if ( isset( $overrides['upload_error_strings'] ) ) { $upload_error_strings = $overrides['upload_error_strings']; } else { // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. $upload_error_strings = array( false, sprintf( /* translators: 1: upload_max_filesize, 2: php.ini */ __( 'The uploaded file exceeds the %1$s directive in %2$s.' ), 'upload_max_filesize', 'php.ini' ), sprintf( /* translators: %s: MAX_FILE_SIZE */ __( 'The uploaded file exceeds the %s directive that was specified in the HTML form.' ), 'MAX_FILE_SIZE' ), __( 'The uploaded file was only partially uploaded.' ), __( 'No file was uploaded.' ), '', __( 'Missing a temporary folder.' ), __( 'Failed to write file to disk.' ), __( 'File upload stopped by extension.' ), ); } // All tests are on by default. Most can be turned off by $overrides[{test_name}] = false; $test_form = $overrides['test_form'] ?? true; $test_size = $overrides['test_size'] ?? true; // If you override this, you must provide $ext and $type!! $test_type = $overrides['test_type'] ?? true; $mimes = $overrides['mimes'] ?? null; // A correct form post will pass this test. if ( $test_form && ( ! isset( $_POST['action'] ) || $_POST['action'] !== $action ) ) { return call_user_func_array( $upload_error_handler, array( &$file, __( 'Invalid form submission.' ) ) ); } // A successful upload will pass this test. It makes no sense to override this one. if ( isset( $file['error'] ) && $file['error'] > 0 ) { return call_user_func_array( $upload_error_handler, array( &$file, $upload_error_strings[ $file['error'] ] ) ); } // A properly uploaded file will pass this test. There should be no reason to override this one. $test_uploaded_file = 'wp_handle_upload' === $action ? is_uploaded_file( $file['tmp_name'] ) : @is_readable( $file['tmp_name'] ); if ( ! $test_uploaded_file ) { return call_user_func_array( $upload_error_handler, array( &$file, __( 'Specified file failed upload test.' ) ) ); } $test_file_size = 'wp_handle_upload' === $action ? $file['size'] : filesize( $file['tmp_name'] ); // A non-empty file will pass this test. if ( $test_size && ! ( $test_file_size > 0 ) ) { if ( is_multisite() ) { $error_msg = __( 'File is empty. Please upload something more substantial.' ); } else { $error_msg = sprintf( /* translators: 1: php.ini, 2: post_max_size, 3: upload_max_filesize */ __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your %1$s file or by %2$s being defined as smaller than %3$s in %1$s.' ), 'php.ini', 'post_max_size', 'upload_max_filesize' ); } return call_user_func_array( $upload_error_handler, array( &$file, $error_msg ) ); } // A correct MIME type will pass this test. Override $mimes or use the upload_mimes filter. if ( $test_type ) { $wp_filetype = wp_check_filetype_and_ext( $file['tmp_name'], $file['name'], $mimes ); $ext = empty( $wp_filetype['ext'] ) ? '' : $wp_filetype['ext']; $type = empty( $wp_filetype['type'] ) ? '' : $wp_filetype['type']; $proper_filename = empty( $wp_filetype['proper_filename'] ) ? '' : $wp_filetype['proper_filename']; // Check to see if wp_check_filetype_and_ext() determined the filename was incorrect. if ( $proper_filename ) { $file['name'] = $proper_filename; } if ( ( ! $type || ! $ext ) && ! current_user_can( 'unfiltered_upload' ) ) { return call_user_func_array( $upload_error_handler, array( &$file, __( 'Sorry, you are not allowed to upload this file type.' ) ) ); } if ( ! $type ) { $type = $file['type']; } } else { $type = ''; } /* * A writable uploads dir will pass this test. Again, there's no point * overriding this one. */ $uploads = wp_upload_dir( $time ); if ( ! ( $uploads && false === $uploads['error'] ) ) { return call_user_func_array( $upload_error_handler, array( &$file, $uploads['error'] ) ); } $filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback ); // Move the file to the uploads dir. $new_file = $uploads['path'] . "/$filename"; /** * Filters whether to short-circuit moving the uploaded file after passing all checks. * * If a non-null value is returned from the filter, moving the file and any related * error reporting will be completely skipped. * * @since 4.9.0 * * @param mixed $move_new_file If null (default) move the file after the upload. * @param array $file { * Reference to a single element from `$_FILES`. * * @type string $name The original name of the file on the client machine. * @type string $type The mime type of the file, if the browser provided this information. * @type string $tmp_name The temporary filename of the file in which the uploaded file was stored on the server. * @type int $size The size, in bytes, of the uploaded file. * @type int $error The error code associated with this file upload. * } * @param string $new_file Filename of the newly-uploaded file. * @param string $type Mime type of the newly-uploaded file. */ $move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type ); if ( null === $move_new_file ) { if ( 'wp_handle_upload' === $action ) { $move_new_file = @move_uploaded_file( $file['tmp_name'], $new_file ); } else { // Use copy and unlink because rename breaks streams. // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged $move_new_file = @copy( $file['tmp_name'], $new_file ); unlink( $file['tmp_name'] ); } if ( false === $move_new_file ) { if ( str_starts_with( $uploads['basedir'], ABSPATH ) ) { $error_path = str_replace( ABSPATH, '', $uploads['basedir'] ) . $uploads['subdir']; } else { $error_path = basename( $uploads['basedir'] ) . $uploads['subdir']; } return $upload_error_handler( $file, sprintf( /* translators: %s: Destination file path. */ __( 'The uploaded file could not be moved to %s.' ), $error_path ) ); } } // Set correct file permissions. $stat = stat( dirname( $new_file ) ); $perms = $stat['mode'] & 0000666; chmod( $new_file, $perms ); // Compute the URL. $url = $uploads['url'] . "/$filename"; if ( is_multisite() ) { clean_dirsize_cache( $new_file ); } /** * Filters the data array for the uploaded file. * * @since 2.1.0 * * @param array $upload { * Array of upload data. * * @type string $file Filename of the newly-uploaded file. * @type string $url URL of the newly-uploaded file. * @type string $type Mime type of the newly-uploaded file. * } * @param string $context The type of upload action. Values include 'upload' or 'sideload'. */ return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type, ), 'wp_handle_sideload' === $action ? 'sideload' : 'upload' ); } /** * Wrapper for _wp_handle_upload(). * * Passes the {@see 'wp_handle_upload'} action. * * @since 2.0.0 * * @see _wp_handle_upload() * * @param array $file Reference to a single element of `$_FILES`. * Call the function once for each uploaded file. * See _wp_handle_upload() for accepted values. * @param array|false $overrides Optional. An associative array of names => values * to override default variables. Default false. * See _wp_handle_upload() for accepted values. * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null. * @return array See _wp_handle_upload() for return value. */ function wp_handle_upload( &$file, $overrides = false, $time = null ) { /* * $_POST['action'] must be set and its value must equal $overrides['action'] * or this: */ $action = $overrides['action'] ?? 'wp_handle_upload'; return _wp_handle_upload( $file, $overrides, $time, $action ); } /** * Wrapper for _wp_handle_upload(). * * Passes the {@see 'wp_handle_sideload'} action. * * @since 2.6.0 * * @see _wp_handle_upload() * * @param array $file Reference to a single element of `$_FILES`. * Call the function once for each uploaded file. * See _wp_handle_upload() for accepted values. * @param array|false $overrides Optional. An associative array of names => values * to override default variables. Default false. * See _wp_handle_upload() for accepted values. * @param string|null $time Optional. Time formatted in 'yyyy/mm'. Default null. * @return array See _wp_handle_upload() for return value. */ function wp_handle_sideload( &$file, $overrides = false, $time = null ) { /* * $_POST['action'] must be set and its value must equal $overrides['action'] * or this: */ $action = $overrides['action'] ?? 'wp_handle_sideload'; return _wp_handle_upload( $file, $overrides, $time, $action ); } /** * Downloads a URL to a local temporary file using the WordPress HTTP API. * * Please note that the calling function must delete or move the file. * * @since 2.5.0 * @since 5.2.0 Signature Verification with SoftFail was added. * @since 5.9.0 Support for Content-Disposition filename was added. * * @param string $url The URL of the file to download. * @param int $timeout The timeout for the request to download the file. * Default 300 seconds. * @param bool $signature_verification Whether to perform Signature Verification. * Default false. * @return string|WP_Error Filename on success, WP_Error on failure. */ function download_url( $url, $timeout = 300, $signature_verification = false ) { // WARNING: The file is not automatically deleted, the script must delete or move the file. if ( ! $url ) { return new WP_Error( 'http_no_url', __( 'No URL Provided.' ) ); } $url_path = parse_url( $url, PHP_URL_PATH ); $url_filename = ''; if ( is_string( $url_path ) && '' !== $url_path ) { $url_filename = basename( $url_path ); } $tmpfname = wp_tempnam( $url_filename ); if ( ! $tmpfname ) { return new WP_Error( 'http_no_file', __( 'Could not create temporary file.' ) ); } $response = wp_safe_remote_get( $url, array( 'timeout' => $timeout, 'stream' => true, 'filename' => $tmpfname, ) ); if ( is_wp_error( $response ) ) { unlink( $tmpfname ); return $response; } $response_code = wp_remote_retrieve_response_code( $response ); if ( 200 !== $response_code ) { $data = array( 'code' => $response_code, ); // Retrieve a sample of the response body for debugging purposes. $tmpf = fopen( $tmpfname, 'rb' ); if ( $tmpf ) { /** * Filters the maximum error response body size in `download_url()`. * * @since 5.1.0 * * @see download_url() * * @param int $size The maximum error response body size. Default 1 KB. */ $response_size = apply_filters( 'download_url_error_max_body_size', KB_IN_BYTES ); $data['body'] = fread( $tmpf, $response_size ); fclose( $tmpf ); } unlink( $tmpfname ); return new WP_Error( 'http_404', trim( wp_remote_retrieve_response_message( $response ) ), $data ); } $content_disposition = wp_remote_retrieve_header( $response, 'Content-Disposition' ); if ( $content_disposition ) { $content_disposition = strtolower( $content_disposition ); if ( str_starts_with( $content_disposition, 'attachment; filename=' ) ) { $tmpfname_disposition = sanitize_file_name( substr( $content_disposition, 21 ) ); } else { $tmpfname_disposition = ''; } // Potential file name must be valid string. if ( $tmpfname_disposition && is_string( $tmpfname_disposition ) && ( 0 === validate_file( $tmpfname_disposition ) ) ) { $tmpfname_disposition = dirname( $tmpfname ) . '/' . $tmpfname_disposition; if ( rename( $tmpfname, $tmpfname_disposition ) ) { $tmpfname = $tmpfname_disposition; } if ( ( $tmpfname !== $tmpfname_disposition ) && file_exists( $tmpfname_disposition ) ) { unlink( $tmpfname_disposition ); } } } $mime_type = wp_remote_retrieve_header( $response, 'content-type' ); if ( $mime_type && 'tmp' === pathinfo( $tmpfname, PATHINFO_EXTENSION ) ) { $valid_mime_types = array_flip( get_allowed_mime_types() ); if ( ! empty( $valid_mime_types[ $mime_type ] ) ) { $extensions = explode( '|', $valid_mime_types[ $mime_type ] ); $new_image_name = substr( $tmpfname, 0, -4 ) . ".{$extensions[0]}"; if ( 0 === validate_file( $new_image_name ) ) { if ( rename( $tmpfname, $new_image_name ) ) { $tmpfname = $new_image_name; } if ( ( $tmpfname !== $new_image_name ) && file_exists( $new_image_name ) ) { unlink( $new_image_name ); } } } } $content_md5 = wp_remote_retrieve_header( $response, 'Content-MD5' ); if ( $content_md5 ) { $md5_check = verify_file_md5( $tmpfname, $content_md5 ); if ( is_wp_error( $md5_check ) ) { unlink( $tmpfname ); return $md5_check; } } // If the caller expects signature verification to occur, check to see if this URL supports it. if ( $signature_verification ) { /** * Filters the list of hosts which should have Signature Verification attempted on. * * @since 5.2.0 * * @param string[] $hostnames List of hostnames. */ $signed_hostnames = apply_filters( 'wp_signature_hosts', array( 'wordpress.org', 'downloads.wordpress.org', 's.w.org' ) ); $signature_verification = in_array( parse_url( $url, PHP_URL_HOST ), $signed_hostnames, true ); } // Perform signature validation if supported. if ( $signature_verification ) { $signature = wp_remote_retrieve_header( $response, 'X-Content-Signature' ); if ( ! $signature ) { /* * Retrieve signatures from a file if the header wasn't included. * WordPress.org stores signatures at $package_url.sig. */ $signature_url = false; if ( is_string( $url_path ) && ( str_ends_with( $url_path, '.zip' ) || str_ends_with( $url_path, '.tar.gz' ) ) ) { $signature_url = str_replace( $url_path, $url_path . '.sig', $url ); } /** * Filters the URL where the signature for a file is located. * * @since 5.2.0 * * @param false|string $signature_url The URL where signatures can be found for a file, or false if none are known. * @param string $url The URL being verified. */ $signature_url = apply_filters( 'wp_signature_url', $signature_url, $url ); if ( $signature_url ) { $signature_request = wp_safe_remote_get( $signature_url, array( 'limit_response_size' => 10 * KB_IN_BYTES, // 10KB should be large enough for quite a few signatures. ) ); if ( ! is_wp_error( $signature_request ) && 200 === wp_remote_retrieve_response_code( $signature_request ) ) { $signature = explode( "\n", wp_remote_retrieve_body( $signature_request ) ); } } } // Perform the checks. $signature_verification = verify_file_signature( $tmpfname, $signature, $url_filename ); } if ( is_wp_error( $signature_verification ) ) { if ( /** * Filters whether Signature Verification failures should be allowed to soft fail. * * WARNING: This may be removed from a future release. * * @since 5.2.0 * * @param bool $signature_softfail If a softfail is allowed. * @param string $url The url being accessed. */ apply_filters( 'wp_signature_softfail', true, $url ) ) { $signature_verification->add_data( $tmpfname, 'softfail-filename' ); } else { // Hard-fail. unlink( $tmpfname ); } return $signature_verification; } return $tmpfname; } /** * Calculates and compares the MD5 of a file to its expected value. * * @since 3.7.0 * * @param string $filename The filename to check the MD5 of. * @param string $expected_md5 The expected MD5 of the file, either a base64-encoded raw md5, * or a hex-encoded md5. * @return bool|WP_Error True on success, false when the MD5 format is unknown/unexpected, * WP_Error on failure. */ function verify_file_md5( $filename, $expected_md5 ) { if ( 32 === strlen( $expected_md5 ) ) { $expected_raw_md5 = pack( 'H*', $expected_md5 ); } elseif ( 24 === strlen( $expected_md5 ) ) { $expected_raw_md5 = base64_decode( $expected_md5 ); } else { return false; // Unknown format. } $file_md5 = md5_file( $filename, true ); if ( $file_md5 === $expected_raw_md5 ) { return true; } return new WP_Error( 'md5_mismatch', sprintf( /* translators: 1: File checksum, 2: Expected checksum value. */ __( 'The checksum of the file (%1$s) does not match the expected checksum value (%2$s).' ), bin2hex( $file_md5 ), bin2hex( $expected_raw_md5 ) ) ); } /** * Verifies the contents of a file against its ED25519 signature. * * @since 5.2.0 * * @param string $filename The file to validate. * @param string|array $signatures A Signature provided for the file. * @param string|false $filename_for_errors Optional. A friendly filename for errors. * @return bool|WP_Error True on success, false if verification not attempted, * or WP_Error describing an error condition. */ function verify_file_signature( $filename, $signatures, $filename_for_errors = false ) { if ( ! $filename_for_errors ) { $filename_for_errors = wp_basename( $filename ); } // Check we can process signatures. if ( ! function_exists( 'sodium_crypto_sign_verify_detached' ) || ! in_array( 'sha384', array_map( 'strtolower', hash_algos() ), true ) ) { return new WP_Error( 'signature_verification_unsupported', sprintf( /* translators: %s: The filename of the package. */ __( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ), '' . esc_html( $filename_for_errors ) . '' ), ( ! function_exists( 'sodium_crypto_sign_verify_detached' ) ? 'sodium_crypto_sign_verify_detached' : 'sha384' ) ); } // Verify runtime speed of Sodium_Compat is acceptable. if ( ! extension_loaded( 'sodium' ) && ! ParagonIE_Sodium_Compat::polyfill_is_fast() ) { $sodium_compat_is_fast = false; // Allow for an old version of Sodium_Compat being loaded before the bundled WordPress one. if ( method_exists( 'ParagonIE_Sodium_Compat', 'runtime_speed_test' ) ) { /* * Run `ParagonIE_Sodium_Compat::runtime_speed_test()` in optimized integer mode, * as that's what WordPress utilizes during signing verifications. */ // phpcs:disable WordPress.NamingConventions.ValidVariableName $old_fastMult = ParagonIE_Sodium_Compat::$fastMult; ParagonIE_Sodium_Compat::$fastMult = true; $sodium_compat_is_fast = ParagonIE_Sodium_Compat::runtime_speed_test( 100, 10 ); ParagonIE_Sodium_Compat::$fastMult = $old_fastMult; // phpcs:enable } /* * This cannot be performed in a reasonable amount of time. * https://github.com/paragonie/sodium_compat#help-sodium_compat-is-slow-how-can-i-make-it-fast */ if ( ! $sodium_compat_is_fast ) { return new WP_Error( 'signature_verification_unsupported', sprintf( /* translators: %s: The filename of the package. */ __( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ), '' . esc_html( $filename_for_errors ) . '' ), array( 'php' => PHP_VERSION, 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 'polyfill_is_fast' => false, 'max_execution_time' => ini_get( 'max_execution_time' ), ) ); } } if ( ! $signatures ) { return new WP_Error( 'signature_verification_no_signature', sprintf( /* translators: %s: The filename of the package. */ __( 'The authenticity of %s could not be verified as no signature was found.' ), '' . esc_html( $filename_for_errors ) . '' ), array( 'filename' => $filename_for_errors, ) ); } $trusted_keys = wp_trusted_keys(); $file_hash = hash_file( 'sha384', $filename, true ); mbstring_binary_safe_encoding(); $skipped_key = 0; $skipped_signature = 0; foreach ( (array) $signatures as $signature ) { $signature_raw = base64_decode( $signature ); // Ensure only valid-length signatures are considered. if ( SODIUM_CRYPTO_SIGN_BYTES !== strlen( $signature_raw ) ) { ++$skipped_signature; continue; } foreach ( (array) $trusted_keys as $key ) { $key_raw = base64_decode( $key ); // Only pass valid public keys through. if ( SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES !== strlen( $key_raw ) ) { ++$skipped_key; continue; } if ( sodium_crypto_sign_verify_detached( $signature_raw, $file_hash, $key_raw ) ) { reset_mbstring_encoding(); return true; } } } reset_mbstring_encoding(); return new WP_Error( 'signature_verification_failed', sprintf( /* translators: %s: The filename of the package. */ __( 'The authenticity of %s could not be verified.' ), '' . esc_html( $filename_for_errors ) . '' ), // Error data helpful for debugging: array( 'filename' => $filename_for_errors, 'keys' => $trusted_keys, 'signatures' => $signatures, 'hash' => bin2hex( $file_hash ), 'skipped_key' => $skipped_key, 'skipped_sig' => $skipped_signature, 'php' => PHP_VERSION, 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), ) ); } /** * Retrieves the list of signing keys trusted by WordPress. * * @since 5.2.0 * * @return string[] Array of base64-encoded signing keys. */ function wp_trusted_keys() { $trusted_keys = array(); if ( time() < 1617235200 ) { // WordPress.org Key #1 - This key is only valid before April 1st, 2021. $trusted_keys[] = 'fRPyrxb/MvVLbdsYi+OOEv4xc+Eqpsj+kkAS6gNOkI0='; } // TODO: Add key #2 with longer expiration. /** * Filters the valid signing keys used to verify the contents of files. * * @since 5.2.0 * * @param string[] $trusted_keys The trusted keys that may sign packages. */ return apply_filters( 'wp_trusted_keys', $trusted_keys ); } /** * Determines whether the given file is a valid ZIP file. * * This function does not test to ensure that a file exists. Non-existent files * are not valid ZIPs, so those will also return false. * * @since 6.4.4 * * @param string $file Full path to the ZIP file. * @return bool Whether the file is a valid ZIP file. */ function wp_zip_file_is_valid( $file ) { /** This filter is documented in wp-admin/includes/file.php */ if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) { $archive = new ZipArchive(); $archive_is_valid = $archive->open( $file, ZipArchive::CHECKCONS ); if ( true === $archive_is_valid ) { $archive->close(); return true; } } // Fall through to PclZip if ZipArchive is not available, or encountered an error opening the file. require_once ABSPATH . 'wp-admin/includes/class-pclzip.php'; $archive = new PclZip( $file ); $archive_is_valid = is_array( $archive->properties() ); return $archive_is_valid; } /** * Unzips a specified ZIP file to a location on the filesystem via the WordPress * Filesystem Abstraction. * * Assumes that WP_Filesystem() has already been called and set up. Does not extract * a root-level __MACOSX directory, if present. * * Attempts to increase the PHP memory limit to 256M before uncompressing. However, * the most memory required shouldn't be much larger than the archive itself. * * @since 2.5.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $file Full path and filename of ZIP archive. * @param string $to Full path on the filesystem to extract archive to. * @return true|WP_Error True on success, WP_Error on failure. */ function unzip_file( $file, $to ) { global $wp_filesystem; if ( ! $wp_filesystem || ! is_object( $wp_filesystem ) ) { return new WP_Error( 'fs_unavailable', __( 'Could not access filesystem.' ) ); } // Unzip can use a lot of memory, but not this much hopefully. wp_raise_memory_limit( 'admin' ); $needed_dirs = array(); $to = trailingslashit( $to ); // Determine any parent directories needed (of the upgrade directory). if ( ! $wp_filesystem->is_dir( $to ) ) { // Only do parents if no children exist. $path = preg_split( '![/\\\]!', untrailingslashit( $to ) ); for ( $i = count( $path ); $i >= 0; $i-- ) { if ( empty( $path[ $i ] ) ) { continue; } $dir = implode( '/', array_slice( $path, 0, $i + 1 ) ); if ( preg_match( '!^[a-z]:$!i', $dir ) ) { // Skip it if it looks like a Windows Drive letter. continue; } if ( ! $wp_filesystem->is_dir( $dir ) ) { $needed_dirs[] = $dir; } else { break; // A folder exists, therefore we don't need to check the levels below this. } } } /** * Filters whether to use ZipArchive to unzip archives. * * @since 3.0.0 * * @param bool $ziparchive Whether to use ZipArchive. Default true. */ if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) { $result = _unzip_file_ziparchive( $file, $to, $needed_dirs ); if ( true === $result ) { return $result; } elseif ( is_wp_error( $result ) ) { if ( 'incompatible_archive' !== $result->get_error_code() ) { return $result; } } } // Fall through to PclZip if ZipArchive is not available, or encountered an error opening the file. return _unzip_file_pclzip( $file, $to, $needed_dirs ); } /** * Attempts to unzip an archive using the ZipArchive class. * * This function should not be called directly, use `unzip_file()` instead. * * Assumes that WP_Filesystem() has already been called and set up. * * @since 3.0.0 * @access private * * @see unzip_file() * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $file Full path and filename of ZIP archive. * @param string $to Full path on the filesystem to extract archive to. * @param string[] $needed_dirs A partial list of required folders needed to be created. * @return true|WP_Error True on success, WP_Error on failure. */ function _unzip_file_ziparchive( $file, $to, $needed_dirs = array() ) { global $wp_filesystem; $z = new ZipArchive(); $zopen = $z->open( $file, ZIPARCHIVE::CHECKCONS ); if ( true !== $zopen ) { return new WP_Error( 'incompatible_archive', __( 'Incompatible Archive.' ), array( 'ziparchive_error' => $zopen ) ); } $uncompressed_size = 0; for ( $i = 0; $i < $z->numFiles; $i++ ) { $info = $z->statIndex( $i ); if ( ! $info ) { $z->close(); return new WP_Error( 'stat_failed_ziparchive', __( 'Could not retrieve file from archive.' ) ); } if ( str_starts_with( $info['name'], '__MACOSX/' ) ) { // Skip the OS X-created __MACOSX directory. continue; } // Don't extract invalid files: if ( 0 !== validate_file( $info['name'] ) ) { continue; } $uncompressed_size += $info['size']; $dirname = dirname( $info['name'] ); if ( str_ends_with( $info['name'], '/' ) ) { // Directory. $needed_dirs[] = $to . untrailingslashit( $info['name'] ); } elseif ( '.' !== $dirname ) { // Path to a file. $needed_dirs[] = $to . untrailingslashit( $dirname ); } } // Enough space to unzip the file and copy its contents, with a 10% buffer. $required_space = $uncompressed_size * 2.1; /* * disk_free_space() could return false. Assume that any falsey value is an error. * A disk that has zero free bytes has bigger problems. * Require we have enough space to unzip the file and copy its contents, with a 10% buffer. */ if ( wp_doing_cron() ) { $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false; if ( $available_space && ( $required_space > $available_space ) ) { $z->close(); return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) ); } } $needed_dirs = array_unique( $needed_dirs ); foreach ( $needed_dirs as $dir ) { // Check the parent folders of the folders all exist within the creation array. if ( untrailingslashit( $to ) === $dir ) { // Skip over the working directory, we know this exists (or will exist). continue; } if ( ! str_contains( $dir, $to ) ) { // If the directory is not within the working directory, skip it. continue; } $parent_folder = dirname( $dir ); while ( ! empty( $parent_folder ) && untrailingslashit( $to ) !== $parent_folder && ! in_array( $parent_folder, $needed_dirs, true ) ) { $needed_dirs[] = $parent_folder; $parent_folder = dirname( $parent_folder ); } } asort( $needed_dirs ); // Create those directories if need be: foreach ( $needed_dirs as $_dir ) { // Only check to see if the Dir exists upon creation failure. Less I/O this way. if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) { $z->close(); return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), $_dir ); } } /** * Filters archive unzipping to override with a custom process. * * @since 6.4.0 * * @param null|true|WP_Error $result The result of the override. True on success, otherwise WP Error. Default null. * @param string $file Full path and filename of ZIP archive. * @param string $to Full path on the filesystem to extract archive to. * @param string[] $needed_dirs A full list of required folders that need to be created. * @param float $required_space The space required to unzip the file and copy its contents, with a 10% buffer. */ $pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space ); if ( null !== $pre ) { // Ensure the ZIP file archive has been closed. $z->close(); return $pre; } for ( $i = 0; $i < $z->numFiles; $i++ ) { $info = $z->statIndex( $i ); if ( ! $info ) { $z->close(); return new WP_Error( 'stat_failed_ziparchive', __( 'Could not retrieve file from archive.' ) ); } if ( str_ends_with( $info['name'], '/' ) ) { // Directory. continue; } if ( str_starts_with( $info['name'], '__MACOSX/' ) ) { // Don't extract the OS X-created __MACOSX directory files. continue; } // Don't extract invalid files: if ( 0 !== validate_file( $info['name'] ) ) { continue; } $contents = $z->getFromIndex( $i ); if ( false === $contents ) { $z->close(); return new WP_Error( 'extract_failed_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] ); } if ( ! $wp_filesystem->put_contents( $to . $info['name'], $contents, FS_CHMOD_FILE ) ) { $z->close(); return new WP_Error( 'copy_failed_ziparchive', __( 'Could not copy file.' ), $info['name'] ); } } $z->close(); /** * Filters the result of unzipping an archive. * * @since 6.4.0 * * @param true|WP_Error $result The result of unzipping the archive. True on success, otherwise WP_Error. Default true. * @param string $file Full path and filename of ZIP archive. * @param string $to Full path on the filesystem the archive was extracted to. * @param string[] $needed_dirs A full list of required folders that were created. * @param float $required_space The space required to unzip the file and copy its contents, with a 10% buffer. */ $result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space ); unset( $needed_dirs ); return $result; } /** * Attempts to unzip an archive using the PclZip library. * * This function should not be called directly, use `unzip_file()` instead. * * Assumes that WP_Filesystem() has already been called and set up. * * @since 3.0.0 * @access private * * @see unzip_file() * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $file Full path and filename of ZIP archive. * @param string $to Full path on the filesystem to extract archive to. * @param string[] $needed_dirs A partial list of required folders needed to be created. * @return true|WP_Error True on success, WP_Error on failure. */ function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) { global $wp_filesystem; mbstring_binary_safe_encoding(); require_once ABSPATH . 'wp-admin/includes/class-pclzip.php'; $archive = new PclZip( $file ); $archive_files = $archive->extract( PCLZIP_OPT_EXTRACT_AS_STRING ); reset_mbstring_encoding(); // Is the archive valid? if ( ! is_array( $archive_files ) ) { return new WP_Error( 'incompatible_archive', __( 'Incompatible Archive.' ), $archive->errorInfo( true ) ); } if ( 0 === count( $archive_files ) ) { return new WP_Error( 'empty_archive_pclzip', __( 'Empty archive.' ) ); } $uncompressed_size = 0; // Determine any children directories needed (From within the archive). foreach ( $archive_files as $archive_file ) { if ( str_starts_with( $archive_file['filename'], '__MACOSX/' ) ) { // Skip the OS X-created __MACOSX directory. continue; } // Don't extract invalid files: if ( 0 !== validate_file( $archive_file['filename'] ) ) { continue; } $uncompressed_size += $archive_file['size']; $needed_dirs[] = $to . untrailingslashit( $archive_file['folder'] ? $archive_file['filename'] : dirname( $archive_file['filename'] ) ); } // Enough space to unzip the file and copy its contents, with a 10% buffer. $required_space = $uncompressed_size * 2.1; /* * disk_free_space() could return false. Assume that any falsey value is an error. * A disk that has zero free bytes has bigger problems. * Require we have enough space to unzip the file and copy its contents, with a 10% buffer. */ if ( wp_doing_cron() ) { $available_space = function_exists( 'disk_free_space' ) ? @disk_free_space( WP_CONTENT_DIR ) : false; if ( $available_space && ( $required_space > $available_space ) ) { return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) ); } } $needed_dirs = array_unique( $needed_dirs ); foreach ( $needed_dirs as $dir ) { // Check the parent folders of the folders all exist within the creation array. if ( untrailingslashit( $to ) === $dir ) { // Skip over the working directory, we know this exists (or will exist). continue; } if ( ! str_contains( $dir, $to ) ) { // If the directory is not within the working directory, skip it. continue; } $parent_folder = dirname( $dir ); while ( ! empty( $parent_folder ) && untrailingslashit( $to ) !== $parent_folder && ! in_array( $parent_folder, $needed_dirs, true ) ) { $needed_dirs[] = $parent_folder; $parent_folder = dirname( $parent_folder ); } } asort( $needed_dirs ); // Create those directories if need be: foreach ( $needed_dirs as $_dir ) { // Only check to see if the dir exists upon creation failure. Less I/O this way. if ( ! $wp_filesystem->mkdir( $_dir, FS_CHMOD_DIR ) && ! $wp_filesystem->is_dir( $_dir ) ) { return new WP_Error( 'mkdir_failed_pclzip', __( 'Could not create directory.' ), $_dir ); } } /** This filter is documented in wp-admin/includes/file.php */ $pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space ); if ( null !== $pre ) { return $pre; } // Extract the files from the zip. foreach ( $archive_files as $archive_file ) { if ( $archive_file['folder'] ) { continue; } if ( str_starts_with( $archive_file['filename'], '__MACOSX/' ) ) { // Don't extract the OS X-created __MACOSX directory files. continue; } // Don't extract invalid files: if ( 0 !== validate_file( $archive_file['filename'] ) ) { continue; } if ( ! $wp_filesystem->put_contents( $to . $archive_file['filename'], $archive_file['content'], FS_CHMOD_FILE ) ) { return new WP_Error( 'copy_failed_pclzip', __( 'Could not copy file.' ), $archive_file['filename'] ); } } /** This filter is documented in wp-admin/includes/file.php */ $result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space ); unset( $needed_dirs ); return $result; } /** * Copies a directory from one location to another via the WordPress Filesystem * Abstraction. * * Assumes that WP_Filesystem() has already been called and setup. * * @since 2.5.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $from Source directory. * @param string $to Destination directory. * @param string[] $skip_list An array of files/folders to skip copying. * @return true|WP_Error True on success, WP_Error on failure. */ function copy_dir( $from, $to, $skip_list = array() ) { global $wp_filesystem; $dirlist = $wp_filesystem->dirlist( $from ); if ( false === $dirlist ) { return new WP_Error( 'dirlist_failed_copy_dir', __( 'Directory listing failed.' ), basename( $from ) ); } $from = trailingslashit( $from ); $to = trailingslashit( $to ); if ( ! $wp_filesystem->exists( $to ) && ! $wp_filesystem->mkdir( $to ) ) { return new WP_Error( 'mkdir_destination_failed_copy_dir', __( 'Could not create the destination directory.' ), basename( $to ) ); } foreach ( (array) $dirlist as $filename => $fileinfo ) { if ( in_array( $filename, $skip_list, true ) ) { continue; } if ( 'f' === $fileinfo['type'] ) { if ( ! $wp_filesystem->copy( $from . $filename, $to . $filename, true, FS_CHMOD_FILE ) ) { // If copy failed, chmod file to 0644 and try again. $wp_filesystem->chmod( $to . $filename, FS_CHMOD_FILE ); if ( ! $wp_filesystem->copy( $from . $filename, $to . $filename, true, FS_CHMOD_FILE ) ) { return new WP_Error( 'copy_failed_copy_dir', __( 'Could not copy file.' ), $to . $filename ); } } wp_opcache_invalidate( $to . $filename ); } elseif ( 'd' === $fileinfo['type'] ) { if ( ! $wp_filesystem->is_dir( $to . $filename ) ) { if ( ! $wp_filesystem->mkdir( $to . $filename, FS_CHMOD_DIR ) ) { return new WP_Error( 'mkdir_failed_copy_dir', __( 'Could not create directory.' ), $to . $filename ); } } // Generate the $sub_skip_list for the subdirectory as a sub-set of the existing $skip_list. $sub_skip_list = array(); foreach ( $skip_list as $skip_item ) { if ( str_starts_with( $skip_item, $filename . '/' ) ) { $sub_skip_list[] = preg_replace( '!^' . preg_quote( $filename, '!' ) . '/!i', '', $skip_item ); } } $result = copy_dir( $from . $filename, $to . $filename, $sub_skip_list ); if ( is_wp_error( $result ) ) { return $result; } } } return true; } /** * Moves a directory from one location to another. * * Recursively invalidates OPcache on success. * * If the renaming failed, falls back to copy_dir(). * * Assumes that WP_Filesystem() has already been called and setup. * * This function is not designed to merge directories, copy_dir() should be used instead. * * @since 6.2.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $from Source directory. * @param string $to Destination directory. * @param bool $overwrite Optional. Whether to overwrite the destination directory if it exists. * Default false. * @return true|WP_Error True on success, WP_Error on failure. */ function move_dir( $from, $to, $overwrite = false ) { global $wp_filesystem; if ( trailingslashit( strtolower( $from ) ) === trailingslashit( strtolower( $to ) ) ) { return new WP_Error( 'source_destination_same_move_dir', __( 'The source and destination are the same.' ) ); } if ( $wp_filesystem->exists( $to ) ) { if ( ! $overwrite ) { return new WP_Error( 'destination_already_exists_move_dir', __( 'The destination folder already exists.' ), $to ); } elseif ( ! $wp_filesystem->delete( $to, true ) ) { // Can't overwrite if the destination couldn't be deleted. return new WP_Error( 'destination_not_deleted_move_dir', __( 'The destination directory already exists and could not be removed.' ) ); } } if ( $wp_filesystem->move( $from, $to ) ) { /* * When using an environment with shared folders, * there is a delay in updating the filesystem's cache. * * This is a known issue in environments with a VirtualBox provider. * * A 200ms delay gives time for the filesystem to update its cache, * prevents "Operation not permitted", and "No such file or directory" warnings. * * This delay is used in other projects, including Composer. * @link https://github.com/composer/composer/blob/2.5.1/src/Composer/Util/Platform.php#L228-L233 */ usleep( 200000 ); wp_opcache_invalidate_directory( $to ); return true; } // Fall back to a recursive copy. if ( ! $wp_filesystem->is_dir( $to ) ) { if ( ! $wp_filesystem->mkdir( $to, FS_CHMOD_DIR ) ) { return new WP_Error( 'mkdir_failed_move_dir', __( 'Could not create directory.' ), $to ); } } $result = copy_dir( $from, $to, array( basename( $to ) ) ); // Clear the source directory. if ( true === $result ) { $wp_filesystem->delete( $from, true ); } return $result; } /** * Initializes and connects the WordPress Filesystem Abstraction classes. * * This function will include the chosen transport and attempt connecting. * * Plugins may add extra transports, And force WordPress to use them by returning * the filename via the {@see 'filesystem_method_file'} filter. * * @since 2.5.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param array|false $args Optional. Connection args, These are passed * directly to the `WP_Filesystem_*()` classes. * Default false. * @param string|false $context Optional. Context for get_filesystem_method(). * Default false. * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. * Default false. * @return bool|null True on success, false on failure, * null if the filesystem method class file does not exist. */ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_ownership = false ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid global $wp_filesystem; require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php'; $method = get_filesystem_method( $args, $context, $allow_relaxed_file_ownership ); if ( ! $method ) { return false; } if ( ! class_exists( "WP_Filesystem_$method" ) ) { /** * Filters the path for a specific filesystem method class file. * * @since 2.6.0 * * @see get_filesystem_method() * * @param string $path Path to the specific filesystem method class file. * @param string $method The filesystem method to use. */ $abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method ); if ( ! file_exists( $abstraction_file ) ) { return null; } require_once $abstraction_file; } $method = "WP_Filesystem_$method"; $wp_filesystem = new $method( $args ); /* * Define the timeouts for the connections. Only available after the constructor is called * to allow for per-transport overriding of the default. */ if ( ! defined( 'FS_CONNECT_TIMEOUT' ) ) { define( 'FS_CONNECT_TIMEOUT', 30 ); // 30 seconds. } if ( ! defined( 'FS_TIMEOUT' ) ) { define( 'FS_TIMEOUT', 30 ); // 30 seconds. } if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { return false; } if ( ! $wp_filesystem->connect() ) { return false; // There was an error connecting to the server. } // Set the permission constants if not already set. if ( ! defined( 'FS_CHMOD_DIR' ) ) { define( 'FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) ); } if ( ! defined( 'FS_CHMOD_FILE' ) ) { define( 'FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) ); } return true; } /** * Determines which method to use for reading, writing, modifying, or deleting * files on the filesystem. * * The priority of the transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets * (Via Sockets class, or `fsockopen()`). Valid values for these are: 'direct', 'ssh2', * 'ftpext' or 'ftpsockets'. * * The return value can be overridden by defining the `FS_METHOD` constant in `wp-config.php`, * or filtering via {@see 'filesystem_method'}. * * @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#wordpress-upgrade-constants * * Plugins may define a custom transport handler, See WP_Filesystem(). * * @since 2.5.0 * * @global callable $_wp_filesystem_direct_method * * @param array $args Optional. Connection details. Default empty array. * @param string $context Optional. Full path to the directory that is tested * for being writable. Default empty. * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. * Default false. * @return string The transport to use, see description for valid return values. */ function get_filesystem_method( $args = array(), $context = '', $allow_relaxed_file_ownership = false ) { // Please ensure that this is either 'direct', 'ssh2', 'ftpext', or 'ftpsockets'. $method = defined( 'FS_METHOD' ) ? FS_METHOD : false; if ( ! $context ) { $context = WP_CONTENT_DIR; } // If the directory doesn't exist (wp-content/languages) then use the parent directory as we'll create it. if ( WP_LANG_DIR === $context && ! is_dir( $context ) ) { $context = dirname( $context ); } $context = trailingslashit( $context ); if ( ! $method ) { $temp_file_name = $context . 'temp-write-test-' . str_replace( '.', '-', uniqid( '', true ) ); $temp_handle = @fopen( $temp_file_name, 'w' ); if ( $temp_handle ) { // Attempt to determine the file owner of the WordPress files, and that of newly created files. $wp_file_owner = false; $temp_file_owner = false; if ( function_exists( 'fileowner' ) ) { $wp_file_owner = @fileowner( __FILE__ ); $temp_file_owner = @fileowner( $temp_file_name ); } if ( false !== $wp_file_owner && $wp_file_owner === $temp_file_owner ) { /* * WordPress is creating files as the same owner as the WordPress files, * this means it's safe to modify & create new files via PHP. */ $method = 'direct'; $GLOBALS['_wp_filesystem_direct_method'] = 'file_owner'; } elseif ( $allow_relaxed_file_ownership ) { /* * The $context directory is writable, and $allow_relaxed_file_ownership is set, * this means we can modify files safely in this directory. * This mode doesn't create new files, only alter existing ones. */ $method = 'direct'; $GLOBALS['_wp_filesystem_direct_method'] = 'relaxed_ownership'; } fclose( $temp_handle ); @unlink( $temp_file_name ); } } if ( ! $method && isset( $args['connection_type'] ) && 'ssh' === $args['connection_type'] && extension_loaded( 'ssh2' ) ) { $method = 'ssh2'; } if ( ! $method && extension_loaded( 'ftp' ) ) { $method = 'ftpext'; } if ( ! $method && ( extension_loaded( 'sockets' ) || function_exists( 'fsockopen' ) ) ) { $method = 'ftpsockets'; // Sockets: Socket extension; PHP Mode: FSockopen / fwrite / fread. } /** * Filters the filesystem method to use. * * @since 2.6.0 * * @param string $method Filesystem method to return. * @param array $args An array of connection details for the method. * @param string $context Full path to the directory that is tested for being writable. * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. */ return apply_filters( 'filesystem_method', $method, $args, $context, $allow_relaxed_file_ownership ); } /** * Displays a form to the user to request for their FTP/SSH details in order * to connect to the filesystem. * * All chosen/entered details are saved, excluding the password. * * Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467) * to specify an alternate FTP/SSH port. * * Plugins may override this form by returning true|false via the {@see 'request_filesystem_credentials'} filter. * * @since 2.5.0 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string. * * @global string $pagenow The filename of the current screen. * * @param string $form_post The URL to post the form to. * @param string $type Optional. Chosen type of filesystem. Default empty. * @param bool|WP_Error $error Optional. Whether the current request has failed * to connect, or an error object. Default false. * @param string $context Optional. Full path to the directory that is tested * for being writable. Default empty. * @param array $extra_fields Optional. Extra `POST` fields to be checked * for inclusion in the post. Default null. * @param bool $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. * Default false. * @return bool|array True if no filesystem credentials are required, * false if they are required but have not been provided, * array of credentials if they are required and have been provided. */ function request_filesystem_credentials( $form_post, $type = '', $error = false, $context = '', $extra_fields = null, $allow_relaxed_file_ownership = false ) { global $pagenow; /** * Filters the filesystem credentials. * * Returning anything other than an empty string will effectively short-circuit * output of the filesystem credentials form, returning that value instead. * * A filter should return true if no filesystem credentials are required, false if they are required but have not been * provided, or an array of credentials if they are required and have been provided. * * @since 2.5.0 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string. * * @param mixed $credentials Credentials to return instead. Default empty string. * @param string $form_post The URL to post the form to. * @param string $type Chosen type of filesystem. * @param bool|WP_Error $error Whether the current request has failed to connect, * or an error object. * @param string $context Full path to the directory that is tested for * being writable. * @param array $extra_fields Extra POST fields. * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. */ $req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership ); if ( '' !== $req_cred ) { return $req_cred; } if ( empty( $type ) ) { $type = get_filesystem_method( array(), $context, $allow_relaxed_file_ownership ); } if ( 'direct' === $type ) { return true; } if ( is_null( $extra_fields ) ) { $extra_fields = array( 'version', 'locale' ); } $credentials = get_option( 'ftp_credentials', array( 'hostname' => '', 'username' => '', ) ); $submitted_form = wp_unslash( $_POST ); // Verify nonce, or unset submitted form field values on failure. if ( ! isset( $_POST['_fs_nonce'] ) || ! wp_verify_nonce( $_POST['_fs_nonce'], 'filesystem-credentials' ) ) { unset( $submitted_form['hostname'], $submitted_form['username'], $submitted_form['password'], $submitted_form['public_key'], $submitted_form['private_key'], $submitted_form['connection_type'] ); } $ftp_constants = array( 'hostname' => 'FTP_HOST', 'username' => 'FTP_USER', 'password' => 'FTP_PASS', 'public_key' => 'FTP_PUBKEY', 'private_key' => 'FTP_PRIKEY', ); /* * If defined, set it to that. Else, if POST'd, set it to that. If not, set it to an empty string. * Otherwise, keep it as it previously was (saved details in option). */ foreach ( $ftp_constants as $key => $constant ) { if ( defined( $constant ) ) { $credentials[ $key ] = constant( $constant ); } elseif ( ! empty( $submitted_form[ $key ] ) ) { $credentials[ $key ] = $submitted_form[ $key ]; } elseif ( ! isset( $credentials[ $key ] ) ) { $credentials[ $key ] = ''; } } // Sanitize the hostname, some people might pass in odd data. $credentials['hostname'] = preg_replace( '|\w+://|', '', $credentials['hostname'] ); // Strip any schemes off. if ( strpos( $credentials['hostname'], ':' ) ) { list( $credentials['hostname'], $credentials['port'] ) = explode( ':', $credentials['hostname'], 2 ); if ( ! is_numeric( $credentials['port'] ) ) { unset( $credentials['port'] ); } } else { unset( $credentials['port'] ); } if ( ( defined( 'FTP_SSH' ) && FTP_SSH ) || ( defined( 'FS_METHOD' ) && 'ssh2' === FS_METHOD ) ) { $credentials['connection_type'] = 'ssh'; } elseif ( ( defined( 'FTP_SSL' ) && FTP_SSL ) && 'ftpext' === $type ) { // Only the FTP Extension understands SSL. $credentials['connection_type'] = 'ftps'; } elseif ( ! empty( $submitted_form['connection_type'] ) ) { $credentials['connection_type'] = $submitted_form['connection_type']; } elseif ( ! isset( $credentials['connection_type'] ) ) { // All else fails (and it's not defaulted to something else saved), default to FTP. $credentials['connection_type'] = 'ftp'; } if ( ! $error && ( ! empty( $credentials['hostname'] ) && ! empty( $credentials['username'] ) && ! empty( $credentials['password'] ) || 'ssh' === $credentials['connection_type'] && ! empty( $credentials['public_key'] ) && ! empty( $credentials['private_key'] ) ) ) { $stored_credentials = $credentials; if ( ! empty( $stored_credentials['port'] ) ) { // Save port as part of hostname to simplify above code. $stored_credentials['hostname'] .= ':' . $stored_credentials['port']; } unset( $stored_credentials['password'], $stored_credentials['port'], $stored_credentials['private_key'], $stored_credentials['public_key'] ); if ( ! wp_installing() ) { update_option( 'ftp_credentials', $stored_credentials, false ); } return $credentials; } $hostname = $credentials['hostname'] ?? ''; $username = $credentials['username'] ?? ''; $public_key = $credentials['public_key'] ?? ''; $private_key = $credentials['private_key'] ?? ''; $port = $credentials['port'] ?? ''; $connection_type = $credentials['connection_type'] ?? ''; if ( $error ) { $error_string = __( 'Error: Could not connect to the server. Please verify the settings are correct.' ); if ( is_wp_error( $error ) ) { $error_string = esc_html( $error->get_error_message() ); } wp_admin_notice( $error_string, array( 'id' => 'message', 'additional_classes' => array( 'error' ), ) ); } $types = array(); if ( extension_loaded( 'ftp' ) || extension_loaded( 'sockets' ) || function_exists( 'fsockopen' ) ) { $types['ftp'] = __( 'FTP' ); } if ( extension_loaded( 'ftp' ) ) { // Only this supports FTPS. $types['ftps'] = __( 'FTPS (SSL)' ); } if ( extension_loaded( 'ssh2' ) ) { $types['ssh'] = __( 'SSH2' ); } /** * Filters the connection types to output to the filesystem credentials form. * * @since 2.9.0 * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string. * * @param string[] $types Types of connections. * @param array $credentials Credentials to connect with. * @param string $type Chosen filesystem method. * @param bool|WP_Error $error Whether the current request has failed to connect, * or an error object. * @param string $context Full path to the directory that is tested for being writable. */ $types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context ); ?>
        " . __( 'Connection Information' ) . ""; ?>

        $text ) : ?>
        >

        '; } } /* * Make sure the `submit_button()` function is available during the REST API call * from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method(). */ if ( ! function_exists( 'submit_button' ) ) { require_once ABSPATH . 'wp-admin/includes/template.php'; } ?>

        wp_opcache_invalidate_directory()' ); wp_trigger_error( '', $error_message ); } return; } $dirlist = $wp_filesystem->dirlist( $dir, false, true ); if ( empty( $dirlist ) ) { return; } /* * Recursively invalidate opcache of files in a directory. * * WP_Filesystem_*::dirlist() returns an array of file and directory information. * * This does not include a path to the file or directory. * To invalidate files within sub-directories, recursion is needed * to prepend an absolute path containing the sub-directory's name. * * @param array $dirlist Array of file/directory information from WP_Filesystem_Base::dirlist(), * with sub-directories represented as nested arrays. * @param string $path Absolute path to the directory. */ $invalidate_directory = static function ( $dirlist, $path ) use ( &$invalidate_directory ) { $path = trailingslashit( $path ); foreach ( $dirlist as $name => $details ) { if ( 'f' === $details['type'] ) { wp_opcache_invalidate( $path . $name, true ); } elseif ( is_array( $details['files'] ) && ! empty( $details['files'] ) ) { $invalidate_directory( $details['files'], $path . $name ); } } }; $invalidate_directory( $dirlist, $dir ); } includes/bookmark.php000064400000026636152213653150010710 0ustar00' . __( 'You need a higher level of permission.' ) . '

        ' . '

        ' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '

        ', 403 ); } $_POST['link_url'] = esc_url( $_POST['link_url'] ); $_POST['link_name'] = esc_html( $_POST['link_name'] ); $_POST['link_image'] = esc_html( $_POST['link_image'] ); $_POST['link_rss'] = esc_url( $_POST['link_rss'] ); if ( ! isset( $_POST['link_visible'] ) || 'N' !== $_POST['link_visible'] ) { $_POST['link_visible'] = 'Y'; } if ( ! empty( $link_id ) ) { $_POST['link_id'] = $link_id; return wp_update_link( $_POST ); } else { return wp_insert_link( $_POST ); } } /** * Retrieves the default link for editing. * * @since 2.0.0 * * @return stdClass Default link object. */ function get_default_link_to_edit() { $link = new stdClass(); if ( isset( $_GET['linkurl'] ) ) { $link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) ); } else { $link->link_url = ''; } if ( isset( $_GET['name'] ) ) { $link->link_name = esc_attr( wp_unslash( $_GET['name'] ) ); } else { $link->link_name = ''; } $link->link_visible = 'Y'; return $link; } /** * Deletes a specified link from the database. * * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $link_id ID of the link to delete. * @return true Always true. */ function wp_delete_link( $link_id ) { global $wpdb; /** * Fires before a link is deleted. * * @since 2.0.0 * * @param int $link_id ID of the link to delete. */ do_action( 'delete_link', $link_id ); wp_delete_object_term_relationships( $link_id, 'link_category' ); $wpdb->delete( $wpdb->links, array( 'link_id' => $link_id ) ); /** * Fires after a link has been deleted. * * @since 2.2.0 * * @param int $link_id ID of the deleted link. */ do_action( 'deleted_link', $link_id ); clean_bookmark_cache( $link_id ); return true; } /** * Retrieves the link category IDs associated with the link specified. * * @since 2.1.0 * * @param int $link_id Link ID to look up. * @return int[] The IDs of the requested link's categories. */ function wp_get_link_cats( $link_id = 0 ) { $cats = wp_get_object_terms( $link_id, 'link_category', array( 'fields' => 'ids' ) ); return array_unique( $cats ); } /** * Retrieves link data based on its ID. * * @since 2.0.0 * * @param int|stdClass $link Link ID or object to retrieve. * @return object Link object for editing. */ function get_link_to_edit( $link ) { return get_bookmark( $link, OBJECT, 'edit' ); } /** * Inserts a link into the database, or updates an existing link. * * Runs all the necessary sanitizing, provides default values if arguments are missing, * and finally saves the link. * * @since 2.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param array $linkdata { * Elements that make up the link to insert. * * @type int $link_id Optional. The ID of the existing link if updating. * @type string $link_url The URL the link points to. * @type string $link_name The title of the link. * @type string $link_image Optional. A URL of an image. * @type string $link_target Optional. The target element for the anchor tag. * @type string $link_description Optional. A short description of the link. * @type string $link_visible Optional. 'Y' means visible, anything else means not. * @type int $link_owner Optional. A user ID. * @type int $link_rating Optional. A rating for the link. * @type string $link_rel Optional. A relationship of the link to you. * @type string $link_notes Optional. An extended description of or notes on the link. * @type string $link_rss Optional. A URL of an associated RSS feed. * @type int $link_category Optional. The term ID of the link category. * If empty, uses default link category. * } * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false. * @return int|WP_Error The link ID on success. The value 0 or WP_Error on failure. */ function wp_insert_link( $linkdata, $wp_error = false ) { global $wpdb; $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0, ); $parsed_args = wp_parse_args( $linkdata, $defaults ); $parsed_args = wp_unslash( sanitize_bookmark( $parsed_args, 'db' ) ); $link_id = $parsed_args['link_id']; $link_name = $parsed_args['link_name']; $link_url = $parsed_args['link_url']; $update = false; if ( ! empty( $link_id ) ) { $update = true; } if ( '' === trim( $link_name ) ) { if ( '' !== trim( $link_url ) ) { $link_name = $link_url; } else { return 0; } } if ( '' === trim( $link_url ) ) { return 0; } $link_rating = ( ! empty( $parsed_args['link_rating'] ) ) ? $parsed_args['link_rating'] : 0; $link_image = ( ! empty( $parsed_args['link_image'] ) ) ? $parsed_args['link_image'] : ''; $link_target = ( ! empty( $parsed_args['link_target'] ) ) ? $parsed_args['link_target'] : ''; $link_visible = ( ! empty( $parsed_args['link_visible'] ) ) ? $parsed_args['link_visible'] : 'Y'; $link_owner = ( ! empty( $parsed_args['link_owner'] ) ) ? $parsed_args['link_owner'] : get_current_user_id(); $link_notes = ( ! empty( $parsed_args['link_notes'] ) ) ? $parsed_args['link_notes'] : ''; $link_description = ( ! empty( $parsed_args['link_description'] ) ) ? $parsed_args['link_description'] : ''; $link_rss = ( ! empty( $parsed_args['link_rss'] ) ) ? $parsed_args['link_rss'] : ''; $link_rel = ( ! empty( $parsed_args['link_rel'] ) ) ? $parsed_args['link_rel'] : ''; $link_category = ( ! empty( $parsed_args['link_category'] ) ) ? $parsed_args['link_category'] : array(); $link_updated = gmdate( 'Y-m-d H:i:s', current_time( 'timestamp', 0 ) ); // Make sure we set a valid category. if ( ! is_array( $link_category ) || 0 === count( $link_category ) ) { $link_category = array( get_option( 'default_link_category' ) ); } if ( $update ) { if ( false === $wpdb->update( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss', 'link_updated' ), compact( 'link_id' ) ) ) { if ( $wp_error ) { return new WP_Error( 'db_update_error', __( 'Could not update link in the database.' ), $wpdb->last_error ); } else { return 0; } } } else { if ( false === $wpdb->insert( $wpdb->links, compact( 'link_url', 'link_name', 'link_image', 'link_target', 'link_description', 'link_visible', 'link_owner', 'link_rating', 'link_rel', 'link_notes', 'link_rss', 'link_updated' ) ) ) { if ( $wp_error ) { return new WP_Error( 'db_insert_error', __( 'Could not insert link into the database.' ), $wpdb->last_error ); } else { return 0; } } $link_id = (int) $wpdb->insert_id; } wp_set_link_cats( $link_id, $link_category ); if ( $update ) { /** * Fires after a link was updated in the database. * * @since 2.0.0 * * @param int $link_id ID of the link that was updated. */ do_action( 'edit_link', $link_id ); } else { /** * Fires after a link was added to the database. * * @since 2.0.0 * * @param int $link_id ID of the link that was added. */ do_action( 'add_link', $link_id ); } clean_bookmark_cache( $link_id ); return $link_id; } /** * Updates link with the specified link categories. * * @since 2.1.0 * * @param int $link_id ID of the link to update. * @param int[] $link_categories Array of link category IDs to add the link to. */ function wp_set_link_cats( $link_id = 0, $link_categories = array() ) { // If $link_categories isn't already an array, make it one: if ( ! is_array( $link_categories ) || 0 === count( $link_categories ) ) { $link_categories = array( get_option( 'default_link_category' ) ); } $link_categories = array_map( 'intval', $link_categories ); $link_categories = array_unique( $link_categories ); wp_set_object_terms( $link_id, $link_categories, 'link_category' ); clean_bookmark_cache( $link_id ); } /** * Updates a link in the database. * * @since 2.0.0 * * @param array $linkdata Link data to update. See wp_insert_link() for accepted arguments. * @return int The updated link ID on success. The value 0 on failure. */ function wp_update_link( $linkdata ) { $link_id = (int) $linkdata['link_id']; $link = get_bookmark( $link_id, ARRAY_A ); // Escape data pulled from DB. $link = wp_slash( $link ); // Passed link category list overwrites existing category list if not empty. if ( isset( $linkdata['link_category'] ) && is_array( $linkdata['link_category'] ) && count( $linkdata['link_category'] ) > 0 ) { $link_cats = $linkdata['link_category']; } else { $link_cats = $link['link_category']; } // Merge old and new fields with new fields overwriting old ones. $linkdata = array_merge( $link, $linkdata ); $linkdata['link_category'] = $link_cats; return wp_insert_link( $linkdata ); } /** * Outputs the 'disabled' message for the WordPress Link Manager. * * @since 3.5.0 * @access private * * @global string $pagenow The filename of the current screen. */ function wp_link_manager_disabled_message() { global $pagenow; if ( ! in_array( $pagenow, array( 'link-manager.php', 'link-add.php', 'link.php' ), true ) ) { return; } add_filter( 'pre_option_link_manager_enabled', '__return_true', 100 ); $really_can_manage_links = current_user_can( 'manage_links' ); remove_filter( 'pre_option_link_manager_enabled', '__return_true', 100 ); if ( $really_can_manage_links ) { $plugins = get_plugins(); if ( empty( $plugins['link-manager/link-manager.php'] ) ) { if ( current_user_can( 'install_plugins' ) ) { $install_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=link-manager' ), 'install-plugin_link-manager' ); wp_die( sprintf( /* translators: %s: A link to install the Link Manager plugin. */ __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), esc_url( $install_url ) ) ); } } elseif ( is_plugin_inactive( 'link-manager/link-manager.php' ) ) { if ( current_user_can( 'activate_plugins' ) ) { $activate_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=link-manager/link-manager.php' ), 'activate-plugin_link-manager/link-manager.php' ); wp_die( sprintf( /* translators: %s: A link to activate the Link Manager plugin. */ __( 'Please activate the Link Manager plugin to use the link manager.' ), esc_url( $activate_url ) ) ); } } } wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); } includes/class-wp-upgrader.php000064400000136356152213653150012444 0ustar00skin = new WP_Upgrader_Skin(); } else { $this->skin = $skin; } } /** * Initializes the upgrader. * * This will set the relationship between the skin being used and this upgrader, * and also add the generic strings to `WP_Upgrader::$strings`. * * Additionally, it will schedule a weekly task to clean up the temporary backup directory. * * @since 2.8.0 * @since 6.3.0 Added the `schedule_temp_backup_cleanup()` task. */ public function init() { $this->skin->set_upgrader( $this ); $this->generic_strings(); if ( ! wp_installing() ) { $this->schedule_temp_backup_cleanup(); } } /** * Schedules the cleanup of the temporary backup directory. * * @since 6.3.0 */ protected function schedule_temp_backup_cleanup() { if ( false === wp_next_scheduled( 'wp_delete_temp_updater_backups' ) ) { wp_schedule_event( time(), 'weekly', 'wp_delete_temp_updater_backups' ); } } /** * Adds the generic strings to WP_Upgrader::$strings. * * @since 2.8.0 */ public function generic_strings() { $this->strings['bad_request'] = __( 'Invalid data provided.' ); $this->strings['fs_unavailable'] = __( 'Could not access filesystem.' ); $this->strings['fs_error'] = __( 'Filesystem error.' ); $this->strings['fs_no_root_dir'] = __( 'Unable to locate WordPress root directory.' ); /* translators: %s: Directory name. */ $this->strings['fs_no_content_dir'] = sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' ); $this->strings['fs_no_plugins_dir'] = __( 'Unable to locate WordPress plugin directory.' ); $this->strings['fs_no_themes_dir'] = __( 'Unable to locate WordPress theme directory.' ); /* translators: %s: Directory name. */ $this->strings['fs_no_folder'] = __( 'Unable to locate needed folder (%s).' ); $this->strings['no_package'] = __( 'Package not available.' ); $this->strings['download_failed'] = __( 'Download failed.' ); $this->strings['installing_package'] = __( 'Installing the latest version…' ); $this->strings['no_files'] = __( 'The package contains no files.' ); $this->strings['folder_exists'] = __( 'Destination folder already exists.' ); $this->strings['mkdir_failed'] = __( 'Could not create directory.' ); $this->strings['incompatible_archive'] = __( 'The package could not be installed.' ); $this->strings['files_not_writable'] = __( 'The update cannot be installed because some files could not be copied. This is usually due to inconsistent file permissions.' ); $this->strings['dir_not_readable'] = __( 'A directory could not be read.' ); $this->strings['maintenance_start'] = __( 'Enabling Maintenance mode…' ); $this->strings['maintenance_end'] = __( 'Disabling Maintenance mode…' ); /* translators: %s: upgrade-temp-backup */ $this->strings['temp_backup_mkdir_failed'] = sprintf( __( 'Could not create the %s directory.' ), 'upgrade-temp-backup' ); /* translators: %s: upgrade-temp-backup */ $this->strings['temp_backup_move_failed'] = sprintf( __( 'Could not move the old version to the %s directory.' ), 'upgrade-temp-backup' ); /* translators: %s: The plugin or theme slug. */ $this->strings['temp_backup_restore_failed'] = __( 'Could not restore the original version of %s.' ); /* translators: %s: The plugin or theme slug. */ $this->strings['temp_backup_delete_failed'] = __( 'Could not delete the temporary backup directory for %s.' ); } /** * Connects to the filesystem. * * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string[] $directories Optional. Array of directories. If any of these do * not exist, a WP_Error object will be returned. * Default empty array. * @param bool $allow_relaxed_file_ownership Whether to allow relaxed file ownership. * Default false. * @return bool|WP_Error True if able to connect, false or a WP_Error otherwise. */ public function fs_connect( $directories = array(), $allow_relaxed_file_ownership = false ) { global $wp_filesystem; $credentials = $this->skin->request_filesystem_credentials( false, $directories[0], $allow_relaxed_file_ownership ); if ( false === $credentials ) { return false; } if ( ! WP_Filesystem( $credentials, $directories[0], $allow_relaxed_file_ownership ) ) { $error = true; if ( is_object( $wp_filesystem ) && $wp_filesystem->errors->has_errors() ) { $error = $wp_filesystem->errors; } // Failed to connect. Error and request again. $this->skin->request_filesystem_credentials( $error, $directories[0], $allow_relaxed_file_ownership ); return false; } if ( ! is_object( $wp_filesystem ) ) { return new WP_Error( 'fs_unavailable', $this->strings['fs_unavailable'] ); } if ( is_wp_error( $wp_filesystem->errors ) && $wp_filesystem->errors->has_errors() ) { return new WP_Error( 'fs_error', $this->strings['fs_error'], $wp_filesystem->errors ); } foreach ( (array) $directories as $dir ) { switch ( $dir ) { case ABSPATH: if ( ! $wp_filesystem->abspath() ) { return new WP_Error( 'fs_no_root_dir', $this->strings['fs_no_root_dir'] ); } break; case WP_CONTENT_DIR: if ( ! $wp_filesystem->wp_content_dir() ) { return new WP_Error( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] ); } break; case WP_PLUGIN_DIR: if ( ! $wp_filesystem->wp_plugins_dir() ) { return new WP_Error( 'fs_no_plugins_dir', $this->strings['fs_no_plugins_dir'] ); } break; case get_theme_root(): if ( ! $wp_filesystem->wp_themes_dir() ) { return new WP_Error( 'fs_no_themes_dir', $this->strings['fs_no_themes_dir'] ); } break; default: if ( ! $wp_filesystem->find_folder( $dir ) ) { return new WP_Error( 'fs_no_folder', sprintf( $this->strings['fs_no_folder'], esc_html( basename( $dir ) ) ) ); } break; } } return true; } /** * Downloads a package for a WordPress core, plugin, theme, or translation upgrade. * * @since 2.8.0 * @since 5.2.0 Added the `$check_signatures` parameter. * @since 5.5.0 Added the `$hook_extra` parameter. * * @param string $package The URI of the package. May be a remote URL or local file path. If this is the full * path to an existing local file, it will be returned untouched. * @param bool $check_signatures Whether to validate file signatures. Default false. * @param array $hook_extra Extra arguments to pass to the filter hooks. Default empty array. * @return string|WP_Error The full path to the downloaded package file, or a WP_Error object. */ public function download_package( $package, $check_signatures = false, $hook_extra = array() ) { /** * Filters whether to download a package for a WordPress core, plugin, theme, or translation upgrade. * * Return a non-false value to short-circuit the download and return that value instead. * * @since 3.7.0 * @since 5.5.0 Added the `$hook_extra` parameter. * * @param false|string|WP_Error $reply Whether to short-circuit the download, the path to the downloaded package, * or a WP_Error object. Default false. * @param string $package The package URI. May be a remote URL or local file path. * @param WP_Upgrader $upgrader The WP_Upgrader instance. * @param array $hook_extra Extra arguments passed to hooked filters. */ $reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra ); if ( false !== $reply ) { return $reply; } if ( ! preg_match( '!^(http|https|ftp)://!i', $package ) && file_exists( $package ) ) { // Local file or remote? return $package; // Must be a local file. } if ( empty( $package ) ) { return new WP_Error( 'no_package', $this->strings['no_package'] ); } $this->skin->feedback( 'downloading_package', $package ); $download_file = download_url( $package, 300, $check_signatures ); if ( is_wp_error( $download_file ) && ! $download_file->get_error_data( 'softfail-filename' ) ) { return new WP_Error( 'download_failed', $this->strings['download_failed'], $download_file->get_error_message() ); } return $download_file; } /** * Unpacks a compressed package file. * * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $package Full path to the package file. * @param bool $delete_package Optional. Whether to delete the package file after attempting * to unpack it. Default true. * @return string|WP_Error The path to the unpacked contents, or a WP_Error on failure. */ public function unpack_package( $package, $delete_package = true ) { global $wp_filesystem; $this->skin->feedback( 'unpack_package' ); if ( ! $wp_filesystem->wp_content_dir() ) { return new WP_Error( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] ); } $upgrade_folder = $wp_filesystem->wp_content_dir() . 'upgrade/'; // Clean up contents of upgrade directory beforehand. $upgrade_files = $wp_filesystem->dirlist( $upgrade_folder ); if ( ! empty( $upgrade_files ) ) { foreach ( $upgrade_files as $file ) { $wp_filesystem->delete( $upgrade_folder . $file['name'], true ); } } // We need a working directory - strip off any .tmp or .zip suffixes. $working_dir = $upgrade_folder . basename( basename( $package, '.tmp' ), '.zip' ); // Clean up working directory. if ( $wp_filesystem->is_dir( $working_dir ) ) { $wp_filesystem->delete( $working_dir, true ); } // Unzip package to working directory. $result = unzip_file( $package, $working_dir ); // Once extracted, delete the package if required. if ( $delete_package ) { unlink( $package ); } if ( is_wp_error( $result ) ) { $wp_filesystem->delete( $working_dir, true ); if ( 'incompatible_archive' === $result->get_error_code() ) { return new WP_Error( 'incompatible_archive', $this->strings['incompatible_archive'], $result->get_error_data() ); } return $result; } return $working_dir; } /** * Flattens the results of WP_Filesystem_Base::dirlist() for iterating over. * * @since 4.9.0 * * @param array $nested_files Array of files as returned by WP_Filesystem_Base::dirlist(). * @param string $path Relative path to prepend to child nodes. Optional. * @return array A flattened array of the $nested_files specified. */ protected function flatten_dirlist( $nested_files, $path = '' ) { $files = array(); foreach ( $nested_files as $name => $details ) { $files[ $path . $name ] = $details; // Append children recursively. if ( ! empty( $details['files'] ) ) { $children = $this->flatten_dirlist( $details['files'], $path . $name . '/' ); // Merge keeping possible numeric keys, which array_merge() will reindex from 0..n. $files = $files + $children; } } return $files; } /** * Clears the directory where this item is going to be installed into. * * @since 4.3.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $remote_destination The location on the remote filesystem to be cleared. * @return true|WP_Error True upon success, WP_Error on failure. */ public function clear_destination( $remote_destination ) { global $wp_filesystem; $files = $wp_filesystem->dirlist( $remote_destination, true, true ); // False indicates that the $remote_destination doesn't exist. if ( false === $files ) { return true; } // Flatten the file list to iterate over. $files = $this->flatten_dirlist( $files ); // Check all files are writable before attempting to clear the destination. $unwritable_files = array(); // Check writability. foreach ( $files as $filename => $file_details ) { if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) { // Attempt to alter permissions to allow writes and try again. $wp_filesystem->chmod( $remote_destination . $filename, ( 'd' === $file_details['type'] ? FS_CHMOD_DIR : FS_CHMOD_FILE ) ); if ( ! $wp_filesystem->is_writable( $remote_destination . $filename ) ) { $unwritable_files[] = $filename; } } } if ( ! empty( $unwritable_files ) ) { return new WP_Error( 'files_not_writable', $this->strings['files_not_writable'], implode( ', ', $unwritable_files ) ); } if ( ! $wp_filesystem->delete( $remote_destination, true ) ) { return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] ); } return true; } /** * Install a package. * * Copies the contents of a package from a source directory, and installs them in * a destination directory. Optionally removes the source. It can also optionally * clear out the destination folder if it already exists. * * @since 2.8.0 * @since 6.2.0 Use move_dir() instead of copy_dir() when possible. * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * @global string[] $wp_theme_directories * * @param array|string $args { * Optional. Array or string of arguments for installing a package. Default empty array. * * @type string $source Required path to the package source. Default empty. * @type string $destination Required path to a folder to install the package in. * Default empty. * @type bool $clear_destination Whether to delete any files already in the destination * folder. Default false. * @type bool $clear_working Whether to delete the files from the working directory * after copying them to the destination. Default false. * @type bool $abort_if_destination_exists Whether to abort the installation if * the destination folder already exists. Default true. * @type array $hook_extra Extra arguments to pass to the filter hooks called by * WP_Upgrader::install_package(). Default empty array. * } * * @return array|WP_Error The result (also stored in `WP_Upgrader::$result`), or a WP_Error on failure. */ public function install_package( $args = array() ) { global $wp_filesystem, $wp_theme_directories; $defaults = array( 'source' => '', // Please always pass this. 'destination' => '', // ...and this. 'clear_destination' => false, 'clear_working' => false, 'abort_if_destination_exists' => true, 'hook_extra' => array(), ); $args = wp_parse_args( $args, $defaults ); $source = $args['source']; $destination = $args['destination']; $clear_destination = $args['clear_destination']; /* * Give the upgrade an additional 300 seconds (5 minutes) to ensure the install * doesn't prematurely timeout having used up the maximum script execution time * upacking and downloading in WP_Upgrader->run(). */ if ( function_exists( 'set_time_limit' ) ) { set_time_limit( 300 ); } if ( ( ! is_string( $source ) || '' === $source || trim( $source ) !== $source ) || ( ! is_string( $destination ) || '' === $destination || trim( $destination ) !== $destination ) ) { return new WP_Error( 'bad_request', $this->strings['bad_request'] ); } $this->skin->feedback( 'installing_package' ); /** * Filters the installation response before the installation has started. * * Returning a value that could be evaluated as a `WP_Error` will effectively * short-circuit the installation, returning that value instead. * * @since 2.8.0 * * @param bool|WP_Error $response Installation response. * @param array $hook_extra Extra arguments passed to hooked filters. */ $res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] ); if ( is_wp_error( $res ) ) { return $res; } // Retain the original source and destinations. $remote_source = $args['source']; $local_destination = $destination; $dirlist = $wp_filesystem->dirlist( $remote_source ); if ( false === $dirlist ) { return new WP_Error( 'source_read_failed', $this->strings['fs_error'], $this->strings['dir_not_readable'] ); } $source_files = array_keys( $dirlist ); $remote_destination = $wp_filesystem->find_folder( $local_destination ); // Locate which directory to copy to the new folder. This is based on the actual folder holding the files. if ( 1 === count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) { // Only one folder? Then we want its contents. $source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] ); } elseif ( 0 === count( $source_files ) ) { // There are no files? return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); } else { /* * It's only a single file, the upgrader will use the folder name of this file as the destination folder. * Folder name is based on zip filename. */ $source = trailingslashit( $args['source'] ); } /** * Filters the source file location for the upgrade package. * * @since 2.8.0 * @since 4.4.0 The `$hook_extra` parameter became available. * * @param string|WP_Error $source File source location or a WP_Error object. * @param string $remote_source Remote file source location. * @param WP_Upgrader $upgrader WP_Upgrader instance. * @param array $hook_extra Extra arguments passed to hooked filters. */ $source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] ); if ( is_wp_error( $source ) ) { return $source; } if ( ! empty( $args['hook_extra']['temp_backup'] ) ) { $temp_backup = $this->move_to_temp_backup_dir( $args['hook_extra']['temp_backup'] ); if ( is_wp_error( $temp_backup ) ) { return $temp_backup; } $this->temp_backups[] = $args['hook_extra']['temp_backup']; } // Has the source location changed? If so, we need a new source_files list. if ( $source !== $remote_source ) { $dirlist = $wp_filesystem->dirlist( $source ); if ( false === $dirlist ) { return new WP_Error( 'new_source_read_failed', $this->strings['fs_error'], $this->strings['dir_not_readable'] ); } $source_files = array_keys( $dirlist ); } /* * Protection against deleting files in any important base directories. * Theme_Upgrader & Plugin_Upgrader also trigger this, as they pass the * destination directory (WP_PLUGIN_DIR / wp-content/themes) intending * to copy the directory into the directory, whilst they pass the source * as the actual files to copy. */ $protected_directories = array( ABSPATH, WP_CONTENT_DIR, WP_PLUGIN_DIR, WP_CONTENT_DIR . '/themes' ); if ( is_array( $wp_theme_directories ) ) { $protected_directories = array_merge( $protected_directories, $wp_theme_directories ); } if ( in_array( $destination, $protected_directories, true ) ) { $remote_destination = trailingslashit( $remote_destination ) . trailingslashit( basename( $source ) ); $destination = trailingslashit( $destination ) . trailingslashit( basename( $source ) ); } if ( $clear_destination ) { // We're going to clear the destination if there's something there. $this->skin->feedback( 'remove_old' ); $removed = $this->clear_destination( $remote_destination ); /** * Filters whether the upgrader cleared the destination. * * @since 2.8.0 * * @param true|WP_Error $removed Whether the destination was cleared. * True upon success, WP_Error on failure. * @param string $local_destination The local package destination. * @param string $remote_destination The remote package destination. * @param array $hook_extra Extra arguments passed to hooked filters. */ $removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] ); if ( is_wp_error( $removed ) ) { return $removed; } } elseif ( $args['abort_if_destination_exists'] && $wp_filesystem->exists( $remote_destination ) ) { /* * If we're not clearing the destination folder and something exists there already, bail. * But first check to see if there are actually any files in the folder. */ $_files = $wp_filesystem->dirlist( $remote_destination ); if ( ! empty( $_files ) ) { $wp_filesystem->delete( $remote_source, true ); // Clear out the source files. return new WP_Error( 'folder_exists', $this->strings['folder_exists'], $remote_destination ); } } /* * If 'clear_working' is false, the source should not be removed, so use copy_dir() instead. * * Partial updates, like language packs, may want to retain the destination. * If the destination exists or has contents, this may be a partial update, * and the destination should not be removed, so use copy_dir() instead. */ if ( $args['clear_working'] && ( // Destination does not exist or has no contents. ! $wp_filesystem->exists( $remote_destination ) || empty( $wp_filesystem->dirlist( $remote_destination ) ) ) ) { $result = move_dir( $source, $remote_destination, true ); } else { // Create destination if needed. if ( ! $wp_filesystem->exists( $remote_destination ) ) { if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) { return new WP_Error( 'mkdir_failed_destination', $this->strings['mkdir_failed'], $remote_destination ); } } $result = copy_dir( $source, $remote_destination ); } // Clear the working directory? if ( $args['clear_working'] ) { $wp_filesystem->delete( $remote_source, true ); } if ( is_wp_error( $result ) ) { return $result; } $destination_name = basename( str_replace( $local_destination, '', $destination ) ); if ( '.' === $destination_name ) { $destination_name = ''; } $this->result = compact( 'source', 'source_files', 'destination', 'destination_name', 'local_destination', 'remote_destination', 'clear_destination' ); /** * Filters the installation response after the installation has finished. * * @since 2.8.0 * * @param bool $response Installation response. * @param array $hook_extra Extra arguments passed to hooked filters. * @param array $result Installation result data. */ $res = apply_filters( 'upgrader_post_install', true, $args['hook_extra'], $this->result ); if ( is_wp_error( $res ) ) { $this->result = $res; return $res; } // Bombard the calling function will all the info which we've just used. return $this->result; } /** * Runs an upgrade/installation. * * Attempts to download the package (if it is not a local file), unpack it, and * install it in the destination folder. * * @since 2.8.0 * * @param array $options { * Array or string of arguments for upgrading/installing a package. * * @type string $package The full path or URI of the package to install. * Default empty. * @type string $destination The full path to the destination folder. * Default empty. * @type bool $clear_destination Whether to delete any files already in the * destination folder. Default false. * @type bool $clear_working Whether to delete the files from the working * directory after copying them to the destination. * Default true. * @type bool $abort_if_destination_exists Whether to abort the installation if the destination * folder already exists. When true, `$clear_destination` * should be false. Default true. * @type bool $is_multi Whether this run is one of multiple upgrade/installation * actions being performed in bulk. When true, the skin * WP_Upgrader::header() and WP_Upgrader::footer() * aren't called. Default false. * @type array $hook_extra Extra arguments to pass to the filter hooks called by * WP_Upgrader::run(). * } * @return array|false|WP_Error The result from self::install_package() on success, otherwise a WP_Error, * or false if unable to connect to the filesystem. */ public function run( $options ) { $defaults = array( 'package' => '', // Please always pass this. 'destination' => '', // ...and this. 'clear_destination' => false, 'clear_working' => true, 'abort_if_destination_exists' => true, // Abort if the destination directory exists. Pass clear_destination as false please. 'is_multi' => false, 'hook_extra' => array(), // Pass any extra $hook_extra args here, this will be passed to any hooked filters. ); $options = wp_parse_args( $options, $defaults ); /** * Filters the package options before running an update. * * See also {@see 'upgrader_process_complete'}. * * @since 4.3.0 * * @param array $options { * Options used by the upgrader. * * @type string $package Package for update. * @type string $destination Update location. * @type bool $clear_destination Clear the destination resource. * @type bool $clear_working Clear the working resource. * @type bool $abort_if_destination_exists Abort if the Destination directory exists. * @type bool $is_multi Whether the upgrader is running multiple times. * @type array $hook_extra { * Extra hook arguments. * * @type string $action Type of action. Default 'update'. * @type string $type Type of update process. Accepts 'plugin', 'theme', or 'core'. * @type bool $bulk Whether the update process is a bulk update. Default true. * @type string $plugin Path to the plugin file relative to the plugins directory. * @type string $theme The stylesheet or template name of the theme. * @type string $language_update_type The language pack update type. Accepts 'plugin', 'theme', * or 'core'. * @type object $language_update The language pack update offer. * } * } */ $options = apply_filters( 'upgrader_package_options', $options ); if ( ! $options['is_multi'] ) { // Call $this->header separately if running multiple times. $this->skin->header(); } // Connect to the filesystem first. $res = $this->fs_connect( array( WP_CONTENT_DIR, $options['destination'] ) ); // Mainly for non-connected filesystem. if ( ! $res ) { if ( ! $options['is_multi'] ) { $this->skin->footer(); } return false; } $this->skin->before(); if ( is_wp_error( $res ) ) { $this->skin->error( $res ); $this->skin->after(); if ( ! $options['is_multi'] ) { $this->skin->footer(); } return $res; } /* * Download the package. Note: If the package is the full path * to an existing local file, it will be returned untouched. */ $download = $this->download_package( $options['package'], false, $options['hook_extra'] ); /* * Allow for signature soft-fail. * WARNING: This may be removed in the future. */ if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) { // Don't output the 'no signature could be found' failure message for now. if ( 'signature_verification_no_signature' !== $download->get_error_code() || WP_DEBUG ) { // Output the failure error as a normal feedback, and not as an error. $this->skin->feedback( $download->get_error_message() ); // Report this failure back to WordPress.org for debugging purposes. wp_version_check( array( 'signature_failure_code' => $download->get_error_code(), 'signature_failure_data' => $download->get_error_data(), ) ); } // Pretend this error didn't happen. $download = $download->get_error_data( 'softfail-filename' ); } if ( is_wp_error( $download ) ) { $this->skin->error( $download ); $this->skin->after(); if ( ! $options['is_multi'] ) { $this->skin->footer(); } return $download; } $delete_package = ( $download !== $options['package'] ); // Do not delete a "local" file. // Unzips the file into a temporary directory. $working_dir = $this->unpack_package( $download, $delete_package ); if ( is_wp_error( $working_dir ) ) { $this->skin->error( $working_dir ); $this->skin->after(); if ( ! $options['is_multi'] ) { $this->skin->footer(); } return $working_dir; } // With the given options, this installs it to the destination directory. $result = $this->install_package( array( 'source' => $working_dir, 'destination' => $options['destination'], 'clear_destination' => $options['clear_destination'], 'abort_if_destination_exists' => $options['abort_if_destination_exists'], 'clear_working' => $options['clear_working'], 'hook_extra' => $options['hook_extra'], ) ); /** * Filters the result of WP_Upgrader::install_package(). * * @since 5.7.0 * * @param array|WP_Error $result Result from WP_Upgrader::install_package(). * @param array $hook_extra Extra arguments passed to hooked filters. */ $result = apply_filters( 'upgrader_install_package_result', $result, $options['hook_extra'] ); $this->skin->set_result( $result ); if ( is_wp_error( $result ) ) { // An automatic plugin update will have already performed its rollback. if ( ! empty( $options['hook_extra']['temp_backup'] ) ) { $this->temp_restores[] = $options['hook_extra']['temp_backup']; /* * Restore the backup on shutdown. * Actions running on `shutdown` are immune to PHP timeouts, * so in case the failure was due to a PHP timeout, * it will still be able to properly restore the previous version. * * Zero arguments are accepted as a string can sometimes be passed * internally during actions, causing an error because * `WP_Upgrader::restore_temp_backup()` expects an array. */ add_action( 'shutdown', array( $this, 'restore_temp_backup' ), 10, 0 ); } $this->skin->error( $result ); if ( ! method_exists( $this->skin, 'hide_process_failed' ) || ! $this->skin->hide_process_failed( $result ) ) { $this->skin->feedback( 'process_failed' ); } } else { // Installation succeeded. $this->skin->feedback( 'process_success' ); } $this->skin->after(); // Clean up the backup kept in the temporary backup directory. if ( ! empty( $options['hook_extra']['temp_backup'] ) ) { // Delete the backup on `shutdown` to avoid a PHP timeout. add_action( 'shutdown', array( $this, 'delete_temp_backup' ), 100, 0 ); } if ( ! $options['is_multi'] ) { /** * Fires when the upgrader process is complete. * * See also {@see 'upgrader_package_options'}. * * @since 3.6.0 * @since 3.7.0 Added to WP_Upgrader::run(). * @since 4.6.0 `$translations` was added as a possible argument to `$hook_extra`. * * @param WP_Upgrader $upgrader WP_Upgrader instance. In other contexts this might be a * Theme_Upgrader, Plugin_Upgrader, Core_Upgrade, or Language_Pack_Upgrader instance. * @param array $hook_extra { * Array of bulk item update data. * * @type string $action Type of action. Default 'update'. * @type string $type Type of update process. Accepts 'plugin', 'theme', 'translation', or 'core'. * @type bool $bulk Whether the update process is a bulk update. Default true. * @type array $plugins Array of the basename paths of the plugins' main files. * @type array $themes The theme slugs. * @type array $translations { * Array of translations update data. * * @type string $language The locale the translation is for. * @type string $type Type of translation. Accepts 'plugin', 'theme', or 'core'. * @type string $slug Text domain the translation is for. The slug of a theme/plugin or * 'default' for core translations. * @type string $version The version of a theme, plugin, or core. * } * } */ do_action( 'upgrader_process_complete', $this, $options['hook_extra'] ); $this->skin->footer(); } return $result; } /** * Toggles maintenance mode for the site. * * Creates/deletes the maintenance file to enable/disable maintenance mode. * * @since 2.8.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param bool $enable True to enable maintenance mode, false to disable. */ public function maintenance_mode( $enable = false ) { global $wp_filesystem; if ( ! $wp_filesystem ) { if ( ! function_exists( 'WP_Filesystem' ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; } ob_start(); $credentials = request_filesystem_credentials( '' ); ob_end_clean(); if ( false === $credentials || ! WP_Filesystem( $credentials ) ) { wp_trigger_error( __FUNCTION__, __( 'Could not access filesystem.' ) ); return; } } $file = $wp_filesystem->abspath() . '.maintenance'; if ( $enable ) { if ( ! wp_doing_cron() ) { $this->skin->feedback( 'maintenance_start' ); } // Create maintenance file to signal that we are upgrading. $maintenance_string = ''; $wp_filesystem->delete( $file ); $wp_filesystem->put_contents( $file, $maintenance_string, FS_CHMOD_FILE ); } elseif ( $wp_filesystem->exists( $file ) ) { if ( ! wp_doing_cron() ) { $this->skin->feedback( 'maintenance_end' ); } $wp_filesystem->delete( $file ); } } /** * Creates a lock using WordPress options. * * @since 4.5.0 * * @global wpdb $wpdb The WordPress database abstraction object. * * @param string $lock_name The name of this unique lock. * @param int $release_timeout Optional. The duration in seconds to respect an existing lock. * Default: 1 hour. * @return bool False if a lock couldn't be created or if the lock is still valid. True otherwise. */ public static function create_lock( $lock_name, $release_timeout = null ) { global $wpdb; if ( ! $release_timeout ) { $release_timeout = HOUR_IN_SECONDS; } $lock_option = $lock_name . '.lock'; // Try to lock. $lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'off') /* LOCK */", $lock_option, time() ) ); if ( ! $lock_result ) { $lock_result = get_option( $lock_option ); // If a lock couldn't be created, and there isn't a lock, bail. if ( ! $lock_result ) { return false; } // Check to see if the lock is still valid. If it is, bail. if ( $lock_result > ( time() - $release_timeout ) ) { return false; } // There must exist an expired lock, clear it and re-gain it. WP_Upgrader::release_lock( $lock_name ); return WP_Upgrader::create_lock( $lock_name, $release_timeout ); } // Update the lock, as by this point we've definitely got a lock, just need to fire the actions. update_option( $lock_option, time(), false ); return true; } /** * Releases an upgrader lock. * * @since 4.5.0 * * @see WP_Upgrader::create_lock() * * @param string $lock_name The name of this unique lock. * @return bool True if the lock was successfully released. False on failure. */ public static function release_lock( $lock_name ) { return delete_option( $lock_name . '.lock' ); } /** * Moves the plugin or theme being updated into a temporary backup directory. * * @since 6.3.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string[] $args { * Array of data for the temporary backup. * * @type string $slug Plugin or theme slug. * @type string $src Path to the root directory for plugins or themes. * @type string $dir Destination subdirectory name. Accepts 'plugins' or 'themes'. * } * * @return bool|WP_Error True on success, false on early exit, otherwise WP_Error. */ public function move_to_temp_backup_dir( $args ) { global $wp_filesystem; if ( empty( $args['slug'] ) || empty( $args['src'] ) || empty( $args['dir'] ) ) { return false; } /* * Skip any plugin that has "." as its slug. * A slug of "." will result in a `$src` value ending in a period. * * On Windows, this will cause the 'plugins' folder to be moved, * and will cause a failure when attempting to call `mkdir()`. */ if ( '.' === $args['slug'] ) { return false; } if ( ! $wp_filesystem->wp_content_dir() ) { return new WP_Error( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] ); } $dest_dir = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/'; $sub_dir = $dest_dir . $args['dir'] . '/'; // Create the temporary backup directory if it does not exist. if ( ! $wp_filesystem->is_dir( $sub_dir ) ) { if ( ! $wp_filesystem->is_dir( $dest_dir ) ) { $wp_filesystem->mkdir( $dest_dir, FS_CHMOD_DIR ); } if ( ! $wp_filesystem->mkdir( $sub_dir, FS_CHMOD_DIR ) ) { // Could not create the backup directory. return new WP_Error( 'fs_temp_backup_mkdir', $this->strings['temp_backup_mkdir_failed'] ); } } $src_dir = $wp_filesystem->find_folder( $args['src'] ); $src = trailingslashit( $src_dir ) . $args['slug']; $dest = $dest_dir . trailingslashit( $args['dir'] ) . $args['slug']; // Delete the temporary backup directory if it already exists. if ( $wp_filesystem->is_dir( $dest ) ) { $wp_filesystem->delete( $dest, true ); } // Move to the temporary backup directory. $result = move_dir( $src, $dest, true ); if ( is_wp_error( $result ) ) { return new WP_Error( 'fs_temp_backup_move', $this->strings['temp_backup_move_failed'] ); } return true; } /** * Restores the plugin or theme from temporary backup. * * @since 6.3.0 * @since 6.6.0 Added the `$temp_backups` parameter. * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param array[] $temp_backups { * Optional. An array of temporary backups. * * @type array ...$0 { * Information about the backup. * * @type string $dir The temporary backup location in the upgrade-temp-backup directory. * @type string $slug The item's slug. * @type string $src The directory where the original is stored. For example, `WP_PLUGIN_DIR`. * } * } * @return bool|WP_Error True on success, false on early exit, otherwise WP_Error. */ public function restore_temp_backup( array $temp_backups = array() ) { global $wp_filesystem; $errors = new WP_Error(); if ( empty( $temp_backups ) ) { $temp_backups = $this->temp_restores; } foreach ( $temp_backups as $args ) { if ( empty( $args['slug'] ) || empty( $args['src'] ) || empty( $args['dir'] ) ) { return false; } if ( ! $wp_filesystem->wp_content_dir() ) { $errors->add( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] ); return $errors; } $src = $wp_filesystem->wp_content_dir() . 'upgrade-temp-backup/' . $args['dir'] . '/' . $args['slug']; $dest_dir = $wp_filesystem->find_folder( $args['src'] ); $dest = trailingslashit( $dest_dir ) . $args['slug']; if ( $wp_filesystem->is_dir( $src ) ) { // Cleanup. if ( $wp_filesystem->is_dir( $dest ) && ! $wp_filesystem->delete( $dest, true ) ) { $errors->add( 'fs_temp_backup_delete', sprintf( $this->strings['temp_backup_restore_failed'], $args['slug'] ) ); continue; } // Move it. $result = move_dir( $src, $dest, true ); if ( is_wp_error( $result ) ) { $errors->add( 'fs_temp_backup_delete', sprintf( $this->strings['temp_backup_restore_failed'], $args['slug'] ) ); continue; } } } return $errors->has_errors() ? $errors : true; } /** * Deletes a temporary backup. * * @since 6.3.0 * @since 6.6.0 Added the `$temp_backups` parameter. * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param array[] $temp_backups { * Optional. An array of temporary backups. * * @type array ...$0 { * Information about the backup. * * @type string $dir The temporary backup location in the upgrade-temp-backup directory. * @type string $slug The item's slug. * @type string $src The directory where the original is stored. For example, `WP_PLUGIN_DIR`. * } * } * @return bool|WP_Error True on success, false on early exit, otherwise WP_Error. */ public function delete_temp_backup( array $temp_backups = array() ) { global $wp_filesystem; $errors = new WP_Error(); if ( empty( $temp_backups ) ) { $temp_backups = $this->temp_backups; } foreach ( $temp_backups as $args ) { if ( empty( $args['slug'] ) || empty( $args['dir'] ) ) { return false; } if ( ! $wp_filesystem->wp_content_dir() ) { $errors->add( 'fs_no_content_dir', $this->strings['fs_no_content_dir'] ); return $errors; } $temp_backup_dir = $wp_filesystem->wp_content_dir() . "upgrade-temp-backup/{$args['dir']}/{$args['slug']}"; if ( ! $wp_filesystem->delete( $temp_backup_dir, true ) ) { $errors->add( 'temp_backup_delete_failed', sprintf( $this->strings['temp_backup_delete_failed'], $args['slug'] ) ); continue; } } return $errors->has_errors() ? $errors : true; } } /** Plugin_Upgrader class */ require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php'; /** Theme_Upgrader class */ require_once ABSPATH . 'wp-admin/includes/class-theme-upgrader.php'; /** Language_Pack_Upgrader class */ require_once ABSPATH . 'wp-admin/includes/class-language-pack-upgrader.php'; /** Core_Upgrader class */ require_once ABSPATH . 'wp-admin/includes/class-core-upgrader.php'; /** File_Upload_Upgrader class */ require_once ABSPATH . 'wp-admin/includes/class-file-upload-upgrader.php'; /** WP_Automatic_Updater class */ require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php'; includes/class-plugin-upgrader-skin.php000064400000006316152213653150014246 0ustar00 '', 'plugin' => '', 'nonce' => '', 'title' => __( 'Update Plugin' ), ); $args = wp_parse_args( $args, $defaults ); $this->plugin = $args['plugin']; $this->plugin_active = is_plugin_active( $this->plugin ); $this->plugin_network_active = is_plugin_active_for_network( $this->plugin ); parent::__construct( $args ); } /** * Performs an action following a single plugin update. * * @since 2.8.0 */ public function after() { $this->plugin = $this->upgrader->plugin_info(); if ( ! empty( $this->plugin ) && ! is_wp_error( $this->result ) && $this->plugin_active ) { // Currently used only when JS is off for a single plugin update? printf( '', esc_attr__( 'Update progress' ), wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ) ); } $this->decrement_update_count( 'plugin' ); $update_actions = array( 'activate_plugin' => sprintf( '%s', wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ), __( 'Activate Plugin' ) ), 'plugins_page' => sprintf( '%s', self_admin_url( 'plugins.php' ), __( 'Go to Plugins page' ) ), ); if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugin', $this->plugin ) ) { unset( $update_actions['activate_plugin'] ); } /** * Filters the list of action links available following a single plugin update. * * @since 2.7.0 * * @param string[] $update_actions Array of plugin action links. * @param string $plugin Path to the plugin file relative to the plugins directory. */ $update_actions = apply_filters( 'update_plugin_complete_actions', $update_actions, $this->plugin ); if ( ! empty( $update_actions ) ) { $this->feedback( implode( ' | ', (array) $update_actions ) ); } } } includes/ms.php000064400000102714152213653150007512 0ustar00 0 ) { // There's already an error. return $file; } if ( defined( 'WP_IMPORTING' ) ) { return $file; } $space_left = get_upload_space_available(); $file_size = filesize( $file['tmp_name'] ); if ( $space_left < $file_size ) { /* translators: %s: Required disk space in kilobytes. */ $file['error'] = sprintf( __( 'Not enough space to upload. %s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) ); } if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) { /* translators: %s: Maximum allowed file size in kilobytes. */ $file['error'] = sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) ); } if ( upload_is_user_over_quota( false ) ) { $file['error'] = __( 'You have used your space quota. Please delete files before uploading.' ); } if ( $file['error'] > 0 && ! isset( $_POST['html-upload'] ) && ! wp_doing_ajax() ) { wp_die( $file['error'] . ' ' . __( 'Back' ) . '' ); } return $file; } /** * Deletes a site. * * @since 3.0.0 * @since 5.1.0 Use wp_delete_site() internally to delete the site row from the database. * * @param int $blog_id Site ID. * @param bool $drop True if site's database tables should be dropped. Default false. */ function wpmu_delete_blog( $blog_id, $drop = false ) { $blog_id = (int) $blog_id; $switch = false; if ( get_current_blog_id() !== $blog_id ) { $switch = true; switch_to_blog( $blog_id ); } $blog = get_site( $blog_id ); $current_network = get_network(); // If a full blog object is not available, do not destroy anything. if ( $drop && ! $blog ) { $drop = false; } // Don't destroy the initial, main, or root blog. if ( $drop && ( 1 === $blog_id || is_main_site( $blog_id ) || ( $blog->path === $current_network->path && $blog->domain === $current_network->domain ) ) ) { $drop = false; } $upload_path = trim( get_option( 'upload_path' ) ); // If ms_files_rewriting is enabled and upload_path is empty, wp_upload_dir is not reliable. if ( $drop && get_site_option( 'ms_files_rewriting' ) && empty( $upload_path ) ) { $drop = false; } if ( $drop ) { wp_delete_site( $blog_id ); } else { /** This action is documented in wp-includes/ms-site.php */ do_action_deprecated( 'delete_blog', array( $blog_id, false ), '5.1.0' ); $users = get_users( array( 'blog_id' => $blog_id, 'fields' => 'ids', ) ); // Remove users from this blog. if ( ! empty( $users ) ) { foreach ( $users as $user_id ) { remove_user_from_blog( $user_id, $blog_id ); } } update_blog_status( $blog_id, 'deleted', 1 ); /** This action is documented in wp-includes/ms-site.php */ do_action_deprecated( 'deleted_blog', array( $blog_id, false ), '5.1.0' ); } if ( $switch ) { restore_current_blog(); } } /** * Deletes a user and all of their posts from the network. * * This function: * * - Deletes all posts (of all post types) authored by the user on all sites on the network * - Deletes all links owned by the user on all sites on the network * - Removes the user from all sites on the network * - Deletes the user from the database * * @since 3.0.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $id The user ID. * @return bool True if the user was deleted, false otherwise. */ function wpmu_delete_user( $id ) { global $wpdb; if ( ! is_numeric( $id ) ) { return false; } $id = (int) $id; $user = new WP_User( $id ); if ( ! $user->exists() ) { return false; } // Global super-administrators are protected, and cannot be deleted. $_super_admins = get_super_admins(); if ( in_array( $user->user_login, $_super_admins, true ) ) { return false; } /** * Fires before a user is deleted from the network. * * @since MU (3.0.0) * @since 5.5.0 Added the `$user` parameter. * * @param int $id ID of the user about to be deleted from the network. * @param WP_User $user WP_User object of the user about to be deleted from the network. */ do_action( 'wpmu_delete_user', $id, $user ); $blogs = get_blogs_of_user( $id ); if ( ! empty( $blogs ) ) { foreach ( $blogs as $blog ) { switch_to_blog( $blog->userblog_id ); remove_user_from_blog( $id, $blog->userblog_id ); $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_author = %d", $id ) ); foreach ( (array) $post_ids as $post_id ) { wp_delete_post( $post_id ); } // Clean links. $link_ids = $wpdb->get_col( $wpdb->prepare( "SELECT link_id FROM $wpdb->links WHERE link_owner = %d", $id ) ); if ( $link_ids ) { foreach ( $link_ids as $link_id ) { wp_delete_link( $link_id ); } } restore_current_blog(); } } $meta = $wpdb->get_col( $wpdb->prepare( "SELECT umeta_id FROM $wpdb->usermeta WHERE user_id = %d", $id ) ); foreach ( $meta as $mid ) { delete_metadata_by_mid( 'user', $mid ); } $wpdb->delete( $wpdb->users, array( 'ID' => $id ) ); clean_user_cache( $user ); /** This action is documented in wp-admin/includes/user.php */ do_action( 'deleted_user', $id, null, $user ); return true; } /** * Checks whether a site has used its allotted upload space. * * @since MU (3.0.0) * * @param bool $display_message Optional. If set to true and the quota is exceeded, * a warning message is displayed. Default true. * @return bool True if user is over upload space quota, otherwise false. */ function upload_is_user_over_quota( $display_message = true ) { if ( get_site_option( 'upload_space_check_disabled' ) ) { return false; } $space_allowed = get_space_allowed(); if ( ! is_numeric( $space_allowed ) ) { $space_allowed = 10; // Default space allowed is 10 MB. } $space_used = get_space_used(); if ( ( $space_allowed - $space_used ) < 0 ) { if ( $display_message ) { printf( /* translators: %s: Allowed space allocation. */ __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), size_format( $space_allowed * MB_IN_BYTES ) ); } return true; } else { return false; } } /** * Displays the amount of disk space used by the current site. Not used in core. * * @since MU (3.0.0) */ function display_space_usage() { $space_allowed = get_space_allowed(); $space_used = get_space_used(); $percent_used = ( $space_used / $space_allowed ) * 100; $space = size_format( $space_allowed * MB_IN_BYTES ); ?> 'Afar', 'ab' => 'Abkhazian', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'ba' => 'Bashkir', 'bm' => 'Bambara', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan; Valencian', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'zh' => 'Chinese', 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi; Dhivehi; Maldivian', 'nl' => 'Dutch; Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijjian', 'fi' => 'Finnish', 'fr' => 'French', 'fy' => 'Western Frisian', 'ff' => 'Fulah', 'ka' => 'Georgian', 'de' => 'German', 'gd' => 'Gaelic; Scottish Gaelic', 'ga' => 'Irish', 'gl' => 'Galician', 'gv' => 'Manx', 'el' => 'Greek, Modern', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian; Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'ig' => 'Igbo', 'is' => 'Icelandic', 'io' => 'Ido', 'ii' => 'Sichuan Yi', 'iu' => 'Inuktitut', 'ie' => 'Interlingue', 'ia' => 'Interlingua (International Auxiliary Language Association)', 'id' => 'Indonesian', 'ik' => 'Inupiaq', 'it' => 'Italian', 'jv' => 'Javanese', 'ja' => 'Japanese', 'kl' => 'Kalaallisut; Greenlandic', 'kn' => 'Kannada', 'ks' => 'Kashmiri', 'kr' => 'Kanuri', 'kk' => 'Kazakh', 'km' => 'Central Khmer', 'ki' => 'Kikuyu; Gikuyu', 'rw' => 'Kinyarwanda', 'ky' => 'Kirghiz; Kyrgyz', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kuanyama; Kwanyama', 'ku' => 'Kurdish', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'li' => 'Limburgan; Limburger; Limburgish', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lb' => 'Luxembourgish; Letzeburgesch', 'lu' => 'Luba-Katanga', 'lg' => 'Ganda', 'mk' => 'Macedonian', 'mh' => 'Marshallese', 'ml' => 'Malayalam', 'mi' => 'Maori', 'mr' => 'Marathi', 'ms' => 'Malay', 'mg' => 'Malagasy', 'mt' => 'Maltese', 'mo' => 'Moldavian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo; Navaho', 'nr' => 'Ndebele, South; South Ndebele', 'nd' => 'Ndebele, North; North Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian', 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål', 'no' => 'Norwegian', 'ny' => 'Chichewa; Chewa; Nyanja', 'oc' => 'Occitan, Provençal', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian; Ossetic', 'pa' => 'Panjabi; Punjabi', 'fa' => 'Persian', 'pi' => 'Pali', 'pl' => 'Polish', 'pt' => 'Portuguese', 'ps' => 'Pushto', 'qu' => 'Quechua', 'rm' => 'Romansh', 'ro' => 'Romanian', 'rn' => 'Rundi', 'ru' => 'Russian', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sr' => 'Serbian', 'hr' => 'Croatian', 'si' => 'Sinhala; Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'se' => 'Northern Sami', 'sm' => 'Samoan', 'sn' => 'Shona', 'sd' => 'Sindhi', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'es' => 'Spanish; Castilian', 'sc' => 'Sardinian', 'ss' => 'Swati', 'su' => 'Sundanese', 'sw' => 'Swahili', 'sv' => 'Swedish', 'ty' => 'Tahitian', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'tg' => 'Tajik', 'tl' => 'Tagalog', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'tn' => 'Tswana', 'ts' => 'Tsonga', 'tk' => 'Turkmen', 'tr' => 'Turkish', 'tw' => 'Twi', 'ug' => 'Uighur; Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh', 'wa' => 'Walloon', 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu', ); /** * Filters the language codes. * * @since MU (3.0.0) * * @param string[] $lang_codes Array of key/value pairs of language codes where key is the short version. * @param string $code A two-letter designation of the language. */ $lang_codes = apply_filters( 'lang_codes', $lang_codes, $code ); return strtr( $code, $lang_codes ); } /** * Displays an access denied message when a user tries to view a site's dashboard they * do not have access to. * * @since 3.2.0 * @access private */ function _access_denied_splash() { if ( ! is_user_logged_in() || is_network_admin() ) { return; } $blogs = get_blogs_of_user( get_current_user_id() ); if ( wp_list_filter( $blogs, array( 'userblog_id' => get_current_blog_id() ) ) ) { return; } $blog_name = get_bloginfo( 'name' ); if ( empty( $blogs ) ) { wp_die( sprintf( /* translators: 1: Site title. */ __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ), 403 ); } $output = '

        ' . sprintf( /* translators: 1: Site title. */ __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '

        '; $output .= '

        ' . __( 'If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.' ) . '

        '; $output .= '

        ' . __( 'Your Sites' ) . '

        '; $output .= ''; foreach ( $blogs as $blog ) { $output .= ''; $output .= ""; $output .= ''; $output .= ''; } $output .= '
        {$blog->blogname}' . __( 'Visit Dashboard' ) . ' | ' . '' . __( 'View Site' ) . '
        '; wp_die( $output, 403 ); } /** * Checks if the current user has permissions to import new users. * * @since 3.0.0 * * @param string $permission A permission to be checked. Currently not used. * @return bool True if the user has proper permissions, false if they do not. */ function check_import_new_users( $permission ) { return current_user_can( 'manage_network_users' ); } // See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too. /** * Generates and displays a drop-down of available languages. * * @since 3.0.0 * * @param string[] $lang_files Optional. An array of the language files. Default empty array. * @param string $current Optional. The current language code. Default empty. */ function mu_dropdown_languages( $lang_files = array(), $current = '' ) { $flag = false; $output = array(); foreach ( (array) $lang_files as $val ) { $code_lang = basename( $val, '.mo' ); if ( 'en_US' === $code_lang ) { // American English. $flag = true; $ae = __( 'American English' ); $output[ $ae ] = ''; } elseif ( 'en_GB' === $code_lang ) { // British English. $flag = true; $be = __( 'British English' ); $output[ $be ] = ''; } else { $translated = format_code_lang( $code_lang ); $output[ $translated ] = ''; } } if ( false === $flag ) { // WordPress English. $output[] = ''; } // Order by name. uksort( $output, 'strnatcasecmp' ); /** * Filters the languages available in the dropdown. * * @since MU (3.0.0) * * @param string[] $output Array of HTML output for the dropdown. * @param string[] $lang_files Array of available language files. * @param string $current The current language code. */ $output = apply_filters( 'mu_dropdown_languages', $output, $lang_files, $current ); echo implode( "\n\t", $output ); } /** * Displays an admin notice to upgrade all sites after a core upgrade. * * @since 3.0.0 * * @global int $wp_db_version WordPress database version. * @global string $pagenow The filename of the current screen. * * @return void|false Void on success. False if the current user is not a super admin. */ function site_admin_notice() { global $wp_db_version, $pagenow; if ( ! current_user_can( 'upgrade_network' ) ) { return false; } if ( 'upgrade.php' === $pagenow ) { return; } if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) { $upgrade_network_message = sprintf( /* translators: %s: URL to Upgrade Network screen. */ __( 'Thank you for Updating! Please visit the Upgrade Network page to update all your sites.' ), esc_url( network_admin_url( 'upgrade.php' ) ) ); wp_admin_notice( $upgrade_network_message, array( 'type' => 'warning', 'additional_classes' => array( 'update-nag', 'inline' ), 'paragraph_wrap' => false, ) ); } } /** * Avoids a collision between a site slug and a permalink slug. * * In a subdirectory installation this will make sure that a site and a post do not use the * same subdirectory by checking for a site with the same name as a new post. * * @since 3.0.0 * * @param array $data An array of post data. * @param array $postarr An array of posts. Not currently used. * @return array The new array of post data after checking for collisions. */ function avoid_blog_page_permalink_collision( $data, $postarr ) { if ( is_subdomain_install() ) { return $data; } if ( 'page' !== $data['post_type'] ) { return $data; } if ( ! isset( $data['post_name'] ) || '' === $data['post_name'] ) { return $data; } if ( ! is_main_site() ) { return $data; } if ( isset( $data['post_parent'] ) && $data['post_parent'] ) { return $data; } $post_name = $data['post_name']; $c = 0; while ( $c < 10 && get_id_from_blogname( $post_name ) ) { $post_name .= mt_rand( 1, 10 ); ++$c; } if ( $post_name !== $data['post_name'] ) { $data['post_name'] = $post_name; } return $data; } /** * Handles the display of choosing a user's primary site. * * This displays the user's primary site and allows the user to choose * which site is primary. * * @since 3.0.0 */ function choose_primary_blog() { ?>

        ID ) . '">' . $current_user->user_login . ''; ?> ID ) ) { wp_die( sprintf( /* translators: %s: User login. */ __( 'Warning! User %s cannot be deleted.' ), $delete_user->user_login ) ); } if ( in_array( $delete_user->user_login, $site_admins, true ) ) { wp_die( sprintf( /* translators: %s: User login. */ __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ), '' . $delete_user->user_login . '' ) ); } ?> '; } else { ?>

        array( 'label' => __( 'Info' ), 'url' => 'site-info.php', 'cap' => 'manage_sites', ), 'site-users' => array( 'label' => __( 'Users' ), 'url' => 'site-users.php', 'cap' => 'manage_sites', ), 'site-themes' => array( 'label' => __( 'Themes' ), 'url' => 'site-themes.php', 'cap' => 'manage_sites', ), 'site-settings' => array( 'label' => __( 'Settings' ), 'url' => 'site-settings.php', 'cap' => 'manage_sites', ), ) ); // Parse arguments. $parsed_args = wp_parse_args( $args, array( 'blog_id' => isset( $_GET['blog_id'] ) ? (int) $_GET['blog_id'] : 0, 'links' => $links, 'selected' => 'site-info', ) ); // Setup the links array. $screen_links = array(); // Loop through tabs. foreach ( $parsed_args['links'] as $link_id => $link ) { // Skip link if user can't access. if ( ! current_user_can( $link['cap'], $parsed_args['blog_id'] ) ) { continue; } // Link classes. $classes = array( 'nav-tab' ); // Aria-current attribute. $aria_current = ''; // Selected is set by the parent OR assumed by the $pagenow global. if ( $parsed_args['selected'] === $link_id || $link['url'] === $GLOBALS['pagenow'] ) { $classes[] = 'nav-tab-active'; $aria_current = ' aria-current="page"'; } // Escape each class. $esc_classes = implode( ' ', $classes ); // Get the URL for this link. $url = add_query_arg( array( 'id' => $parsed_args['blog_id'] ), network_admin_url( $link['url'] ) ); // Add link to nav links. $screen_links[ $link_id ] = '' . esc_html( $link['label'] ) . ''; } // All done! echo ''; } /** * Returns the arguments for the help tab on the Edit Site screens. * * @since 4.9.0 * * @return array Help tab arguments. */ function get_site_screen_help_tab_args() { return array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '

        ' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '

        ' . '

        ' . __( 'Info — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '

        ' . '

        ' . __( 'Users — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '

        ' . '

        ' . sprintf( /* translators: %s: URL to Network Themes screen. */ __( 'Themes — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the Network Themes screen.' ), network_admin_url( 'themes.php' ) ) . '

        ' . '

        ' . __( 'Settings — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '

        ', ); } /** * Returns the content for the help sidebar on the Edit Site screens. * * @since 4.9.0 * * @return string Help sidebar content. */ function get_site_screen_help_sidebar_content() { return '

        ' . __( 'For more information:' ) . '

        ' . '

        ' . __( 'Documentation on Site Management' ) . '

        ' . '

        ' . __( 'Support forums' ) . '

        '; } /** * Stop execution if the role can not be assigned by the current user. * * @since 6.8.0 * * @param string $role Role the user is attempting to assign. */ function wp_ensure_editable_role( $role ) { $roles = get_editable_roles(); if ( ! isset( $roles[ $role ] ) ) { wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 ); } } includes/widgets.php000064400000024462152213653150010544 0ustar00 $widget['id'], 'widget_name' => $widget['name'], '_display' => 'template', ); if ( isset( $wp_registered_widget_controls[ $widget['id'] ]['id_base'] ) && isset( $widget['params'][0]['number'] ) ) { $id_base = $wp_registered_widget_controls[ $widget['id'] ]['id_base']; $args['_temp_id'] = "$id_base-__i__"; $args['_multi_num'] = next_widget_id_number( $id_base ); $args['_add'] = 'multi'; } else { $args['_add'] = 'single'; if ( $sidebar ) { $args['_hide'] = '1'; } } $control_args = array( 0 => $args, 1 => $widget['params'][0], ); $sidebar_args = wp_list_widget_controls_dynamic_sidebar( $control_args ); wp_widget_control( ...$sidebar_args ); } } /** * Callback to sort array by a 'name' key. * * @since 3.1.0 * @access private * * @param array $a First array. * @param array $b Second array. * @return int Comparison result. */ function _sort_name_callback( $a, $b ) { return strnatcasecmp( $a['name'], $b['name'] ); } /** * Show the widgets and their settings for a sidebar. * Used in the admin widget config screen. * * @since 2.5.0 * * @param string $sidebar Sidebar ID. * @param string $sidebar_name Optional. Sidebar name. Default empty. */ function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) { add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' ); $description = wp_sidebar_description( $sidebar ); echo '
        '; if ( $sidebar_name ) { $add_to = sprintf( /* translators: %s: Widgets sidebar name. */ __( 'Add to: %s' ), $sidebar_name ); ?> '; } /** * Retrieves the widget control arguments. * * @since 2.5.0 * * @global array $wp_registered_widgets * * @param array $params * @return array Widget control arguments. */ function wp_list_widget_controls_dynamic_sidebar( $params ) { global $wp_registered_widgets; static $i = 0; ++$i; $widget_id = $params[0]['widget_id']; $id = $params[0]['_temp_id'] ?? $widget_id; $hidden = isset( $params[0]['_hide'] ) ? ' style="display:none;"' : ''; $params[0]['before_widget'] = "
        "; $params[0]['after_widget'] = '
        '; $params[0]['before_title'] = '%BEG_OF_TITLE%'; // Deprecated. $params[0]['after_title'] = '%END_OF_TITLE%'; // Deprecated. if ( is_callable( $wp_registered_widgets[ $widget_id ]['callback'] ) ) { $wp_registered_widgets[ $widget_id ]['_callback'] = $wp_registered_widgets[ $widget_id ]['callback']; $wp_registered_widgets[ $widget_id ]['callback'] = 'wp_widget_control'; } return $params; } /** * @global array $wp_registered_widgets * * @param string $id_base * @return int Next available widget ID number. */ function next_widget_id_number( $id_base ) { global $wp_registered_widgets; $number = 1; foreach ( $wp_registered_widgets as $widget_id => $widget ) { if ( preg_match( '/' . preg_quote( $id_base, '/' ) . '-([0-9]+)$/', $widget_id, $matches ) ) { $number = max( $number, $matches[1] ); } } ++$number; return $number; } /** * Meta widget used to display the control form for a widget. * * Called from dynamic_sidebar(). * * @since 2.5.0 * * @global array $wp_registered_widgets * @global array $wp_registered_widget_controls * @global array $sidebars_widgets * * @param array $sidebar_args * @return array Passed through value of `$sidebar_args` param. */ function wp_widget_control( $sidebar_args ) { global $wp_registered_widgets, $wp_registered_widget_controls, $sidebars_widgets; $widget_id = $sidebar_args['widget_id']; $sidebar_id = $sidebar_args['id'] ?? false; $key = $sidebar_id ? array_search( $widget_id, $sidebars_widgets[ $sidebar_id ], true ) : '-1'; // Position of widget in sidebar. $control = $wp_registered_widget_controls[ $widget_id ] ?? array(); $widget = $wp_registered_widgets[ $widget_id ]; $id_format = $widget['id']; $widget_number = $control['params'][0]['number'] ?? ''; $id_base = $control['id_base'] ?? $widget_id; $width = $control['width'] ?? ''; $height = $control['height'] ?? ''; $multi_number = $sidebar_args['_multi_num'] ?? ''; $add_new = $sidebar_args['_add'] ?? ''; $before_form = $sidebar_args['before_form'] ?? '
        '; $after_form = $sidebar_args['after_form'] ?? '
        '; $before_widget_content = $sidebar_args['before_widget_content'] ?? '
        '; $after_widget_content = $sidebar_args['after_widget_content'] ?? '
        '; $query_arg = array( 'editwidget' => $widget['id'] ); if ( $add_new ) { $query_arg['addnew'] = 1; if ( $multi_number ) { $query_arg['num'] = $multi_number; $query_arg['base'] = $id_base; } } else { $query_arg['sidebar'] = $sidebar_id; $query_arg['key'] = $key; } /* * We aren't showing a widget control, we're outputting a template * for a multi-widget control. */ if ( isset( $sidebar_args['_display'] ) && 'template' === $sidebar_args['_display'] && $widget_number ) { // number == -1 implies a template where id numbers are replaced by a generic '__i__'. $control['params'][0]['number'] = -1; // With id_base widget ID's are constructed like {$id_base}-{$id_number}. if ( isset( $control['id_base'] ) ) { $id_format = $control['id_base'] . '-__i__'; } } $wp_registered_widgets[ $widget_id ]['callback'] = $wp_registered_widgets[ $widget_id ]['_callback']; unset( $wp_registered_widgets[ $widget_id ]['_callback'] ); $widget_title = esc_html( strip_tags( $sidebar_args['widget_name'] ) ); $has_form = 'noform'; echo $sidebar_args['before_widget']; ?>
        " . __( 'There are no options for this widget.' ) . "

        \n"; } $noform_class = ''; if ( 'noform' === $has_form ) { $noform_class = ' widget-control-noform'; } ?>
        |
        'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>
        'themes', 'screen' => $args['screen'] ?? null, ) ); $status = $_REQUEST['theme_status'] ?? 'all'; if ( ! in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search', 'broken', 'auto-update-enabled', 'auto-update-disabled' ), true ) ) { $status = 'all'; } $page = $this->get_pagenum(); $this->is_site_themes = ( 'site-themes-network' === $this->screen->id ) ? true : false; if ( $this->is_site_themes ) { $this->site_id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0; } $this->show_autoupdates = wp_is_auto_update_enabled_for_type( 'theme' ) && ! $this->is_site_themes && current_user_can( 'update_themes' ); } /** * Gets the list of CSS classes for the table tag. * * @return string[] The list of CSS classes. */ protected function get_table_classes() { // @todo Remove and add CSS for .themes. return array( 'widefat', 'plugins' ); } /** * Checks if the current user has permissions to perform AJAX actions. * * @return bool True if the current user has permissions, false otherwise. */ public function ajax_user_can() { if ( $this->is_site_themes ) { return current_user_can( 'manage_sites' ); } else { return current_user_can( 'manage_network_themes' ); } } /** * Prepares the themes list for display. * * @global string $status The current theme status. * @global array $totals An array of theme counts for each status. * @global int $page The current page number. * @global string $orderby The column to order the themes list by. * @global string $order The order of the themes list (ASC or DESC). * @global string $s The search string. */ public function prepare_items() { global $status, $totals, $page, $orderby, $order, $s; $orderby = ! empty( $_REQUEST['orderby'] ) ? sanitize_text_field( $_REQUEST['orderby'] ) : ''; $order = ! empty( $_REQUEST['order'] ) ? sanitize_text_field( $_REQUEST['order'] ) : ''; $s = ! empty( $_REQUEST['s'] ) ? sanitize_text_field( $_REQUEST['s'] ) : ''; $themes = array( /** * Filters the full array of WP_Theme objects to list in the Multisite * themes list table. * * @since 3.1.0 * * @param WP_Theme[] $all Array of WP_Theme objects to display in the list table. */ 'all' => apply_filters( 'all_themes', wp_get_themes() ), 'search' => array(), 'enabled' => array(), 'disabled' => array(), 'upgrade' => array(), 'broken' => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ), ); if ( $this->show_autoupdates ) { $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); $themes['auto-update-enabled'] = array(); $themes['auto-update-disabled'] = array(); } if ( $this->is_site_themes ) { $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' ); $allowed_where = 'site'; } else { $themes_per_page = $this->get_items_per_page( 'themes_network_per_page' ); $allowed_where = 'network'; } $current = get_site_transient( 'update_themes' ); $maybe_update = current_user_can( 'update_themes' ) && ! $this->is_site_themes && $current; foreach ( (array) $themes['all'] as $key => $theme ) { if ( $this->is_site_themes && $theme->is_allowed( 'network' ) ) { unset( $themes['all'][ $key ] ); continue; } if ( $maybe_update && isset( $current->response[ $key ] ) ) { $themes['all'][ $key ]->update = true; $themes['upgrade'][ $key ] = $themes['all'][ $key ]; } $filter = $theme->is_allowed( $allowed_where, $this->site_id ) ? 'enabled' : 'disabled'; $themes[ $filter ][ $key ] = $themes['all'][ $key ]; $theme_data = array( 'update_supported' => $theme->update_supported ?? true, ); // Extra info if known. array_merge() ensures $theme_data has precedence if keys collide. if ( isset( $current->response[ $key ] ) ) { $theme_data = array_merge( (array) $current->response[ $key ], $theme_data ); } elseif ( isset( $current->no_update[ $key ] ) ) { $theme_data = array_merge( (array) $current->no_update[ $key ], $theme_data ); } else { $theme_data['update_supported'] = false; } $theme->update_supported = $theme_data['update_supported']; /* * Create the expected payload for the auto_update_theme filter, this is the same data * as contained within $updates or $no_updates but used when the Theme is not known. */ $filter_payload = array( 'theme' => $key, 'new_version' => '', 'url' => '', 'package' => '', 'requires' => '', 'requires_php' => '', ); $filter_payload = (object) array_merge( $filter_payload, array_intersect_key( $theme_data, $filter_payload ) ); $auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, $filter_payload ); if ( ! is_null( $auto_update_forced ) ) { $theme->auto_update_forced = $auto_update_forced; } if ( $this->show_autoupdates ) { $enabled = in_array( $key, $auto_updates, true ) && $theme->update_supported; if ( isset( $theme->auto_update_forced ) ) { $enabled = (bool) $theme->auto_update_forced; } if ( $enabled ) { $themes['auto-update-enabled'][ $key ] = $theme; } else { $themes['auto-update-disabled'][ $key ] = $theme; } } } if ( $s ) { $status = 'search'; $themes['search'] = array_filter( array_merge( $themes['all'], $themes['broken'] ), array( $this, '_search_callback' ) ); } $totals = array(); $js_themes = array(); foreach ( $themes as $type => $list ) { $totals[ $type ] = count( $list ); $js_themes[ $type ] = array_keys( $list ); } if ( empty( $themes[ $status ] ) && ! in_array( $status, array( 'all', 'search' ), true ) ) { $status = 'all'; } $this->items = $themes[ $status ]; WP_Theme::sort_by_name( $this->items ); $this->has_items = ! empty( $themes['all'] ); $total_this_page = $totals[ $status ]; wp_localize_script( 'updates', '_wpUpdatesItemCounts', array( 'themes' => $js_themes, 'totals' => wp_get_update_data(), ) ); if ( $orderby ) { $orderby = ucfirst( $orderby ); $order = strtoupper( $order ); if ( 'Name' === $orderby ) { if ( 'ASC' === $order ) { $this->items = array_reverse( $this->items ); } } else { uasort( $this->items, array( $this, '_order_callback' ) ); } } $start = ( $page - 1 ) * $themes_per_page; if ( $total_this_page > $themes_per_page ) { $this->items = array_slice( $this->items, $start, $themes_per_page, true ); } $this->set_pagination_args( array( 'total_items' => $total_this_page, 'per_page' => $themes_per_page, ) ); } /** * Filters a theme by the search term. * * @param WP_Theme $theme The WP_Theme object to check. * @return bool True if the theme matches the search term, false otherwise. */ public function _search_callback( $theme ) { static $term = null; if ( is_null( $term ) ) { $term = wp_unslash( $_REQUEST['s'] ); } foreach ( array( 'Name', 'Description', 'Author', 'Author', 'AuthorURI' ) as $field ) { // Don't mark up; Do translate. if ( false !== stripos( $theme->display( $field, false, true ), $term ) ) { return true; } } if ( false !== stripos( $theme->get_stylesheet(), $term ) ) { return true; } if ( false !== stripos( $theme->get_template(), $term ) ) { return true; } return false; } // Not used by any core columns. /** * Compares the order of two themes by a specific field. * * @global string $orderby The column to order the themes list by. * @global string $order The order of the themes list (ASC or DESC). * * @param WP_Theme $theme_a The first theme to compare. * @param WP_Theme $theme_b The second theme to compare. * @return int 0 if equal, -1 if the first is less than the second, 1 if more. */ public function _order_callback( $theme_a, $theme_b ) { global $orderby, $order; $a = $theme_a[ $orderby ]; $b = $theme_b[ $orderby ]; return 'DESC' === $order ? $b <=> $a : $a <=> $b; } /** * Displays the message when there are no items to list. */ public function no_items() { if ( $this->has_items ) { _e( 'No themes found.' ); } else { _e( 'No themes are currently available.' ); } } /** * Gets the list of columns for the list table. * * @return array Array of column titles keyed by their column name. */ public function get_columns() { $columns = array( 'cb' => '', 'name' => __( 'Theme' ), 'description' => __( 'Description' ), ); if ( $this->show_autoupdates ) { $columns['auto-updates'] = __( 'Automatic Updates' ); } return $columns; } /** * Gets the list of sortable columns for the list table. * * @return array> An array of sortable columns. */ protected function get_sortable_columns() { return array( 'name' => array( 'name', false, __( 'Theme' ), __( 'Table ordered by Theme Name.' ), 'asc' ), ); } /** * Gets the name of the primary column. * * @since 4.3.0 * * @return string Unalterable name of the primary column name, in this case, 'name'. */ protected function get_primary_column_name() { return 'name'; } /** * Gets the list of views (statuses) for the list table. * * @global array $totals An array of theme counts for each status. * @global string $status The current theme status. * * @return array The list of views. */ protected function get_views() { global $totals, $status; $status_links = array(); foreach ( $totals as $type => $count ) { if ( ! $count ) { continue; } switch ( $type ) { case 'all': /* translators: %s: Number of themes. */ $text = _nx( 'All (%s)', 'All (%s)', $count, 'themes' ); break; case 'enabled': /* translators: %s: Number of themes. */ $text = _nx( 'Enabled (%s)', 'Enabled (%s)', $count, 'themes' ); break; case 'disabled': /* translators: %s: Number of themes. */ $text = _nx( 'Disabled (%s)', 'Disabled (%s)', $count, 'themes' ); break; case 'upgrade': /* translators: %s: Number of themes. */ $text = _nx( 'Update Available (%s)', 'Update Available (%s)', $count, 'themes' ); break; case 'broken': /* translators: %s: Number of themes. */ $text = _nx( 'Broken (%s)', 'Broken (%s)', $count, 'themes' ); break; case 'auto-update-enabled': /* translators: %s: Number of themes. */ $text = _n( 'Auto-updates Enabled (%s)', 'Auto-updates Enabled (%s)', $count ); break; case 'auto-update-disabled': /* translators: %s: Number of themes. */ $text = _n( 'Auto-updates Disabled (%s)', 'Auto-updates Disabled (%s)', $count ); break; } if ( $this->is_site_themes ) { $url = 'site-themes.php?id=' . $this->site_id; } else { $url = 'themes.php'; } if ( 'search' !== $type ) { $status_links[ $type ] = array( 'url' => esc_url( add_query_arg( 'theme_status', $type, $url ) ), 'label' => sprintf( $text, number_format_i18n( $count ) ), 'current' => $type === $status, ); } } return $this->get_views_links( $status_links ); } /** * Gets the list of bulk actions for the list table. * * @global string $status The current theme status. * * @return array The list of bulk actions. */ protected function get_bulk_actions() { global $status; $actions = array(); if ( 'enabled' !== $status ) { $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ); } if ( 'disabled' !== $status ) { $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ); } if ( ! $this->is_site_themes ) { if ( current_user_can( 'update_themes' ) ) { $actions['update-selected'] = __( 'Update' ); } if ( current_user_can( 'delete_themes' ) ) { $actions['delete-selected'] = __( 'Delete' ); } } if ( $this->show_autoupdates ) { if ( 'auto-update-enabled' !== $status ) { $actions['enable-auto-update-selected'] = __( 'Enable Auto-updates' ); } if ( 'auto-update-disabled' !== $status ) { $actions['disable-auto-update-selected'] = __( 'Disable Auto-updates' ); } } return $actions; } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { foreach ( $this->items as $theme ) { $this->single_row( $theme ); } } /** * Handles the checkbox column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Theme $item The current WP_Theme object. */ public function column_cb( $item ) { // Restores the more descriptive, specific name for use within this method. $theme = $item; $checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) ); ?> is_site_themes ) { $url = "site-themes.php?id={$this->site_id}&"; $allowed = $theme->is_allowed( 'site', $this->site_id ); } else { $url = 'themes.php?'; $allowed = $theme->is_allowed( 'network' ); } // Pre-order. $actions = array( 'enable' => '', 'disable' => '', 'delete' => '', ); $stylesheet = $theme->get_stylesheet(); $theme_key = urlencode( $stylesheet ); if ( ! $allowed ) { if ( ! $theme->errors() ) { $url = add_query_arg( array( 'action' => 'enable', 'theme' => $theme_key, 'paged' => $page, 's' => $s, ), $url ); if ( $this->is_site_themes ) { /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Enable %s' ), $theme->display( 'Name' ) ); } else { /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Network Enable %s' ), $theme->display( 'Name' ) ); } $actions['enable'] = sprintf( '%s', esc_url( wp_nonce_url( $url, 'enable-theme_' . $stylesheet ) ), esc_attr( $aria_label ), ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) ); } } else { $url = add_query_arg( array( 'action' => 'disable', 'theme' => $theme_key, 'paged' => $page, 's' => $s, ), $url ); if ( $this->is_site_themes ) { /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Disable %s' ), $theme->display( 'Name' ) ); } else { /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Network Disable %s' ), $theme->display( 'Name' ) ); } $actions['disable'] = sprintf( '%s', esc_url( wp_nonce_url( $url, 'disable-theme_' . $stylesheet ) ), esc_attr( $aria_label ), ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) ); } if ( ! $allowed && ! $this->is_site_themes && current_user_can( 'delete_themes' ) && get_option( 'stylesheet' ) !== $stylesheet && get_option( 'template' ) !== $stylesheet ) { $url = add_query_arg( array( 'action' => 'delete-selected', 'checked[]' => $theme_key, 'theme_status' => $context, 'paged' => $page, 's' => $s, ), 'themes.php' ); /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) ); $actions['delete'] = sprintf( '%s', esc_url( wp_nonce_url( $url, 'bulk-themes' ) ), esc_attr( $aria_label ), __( 'Delete' ) ); } /** * Filters the action links displayed for each theme in the Multisite * themes list table. * * The action links displayed are determined by the theme's status, and * which Multisite themes list table is being displayed - the Network * themes list table (themes.php), which displays all installed themes, * or the Site themes list table (site-themes.php), which displays the * non-network enabled themes when editing a site in the Network admin. * * The default action links for the Network themes list table include * 'Network Enable', 'Network Disable', and 'Delete'. * * The default action links for the Site themes list table include * 'Enable', and 'Disable'. * * @since 2.8.0 * * @param string[] $actions An array of action links. * @param WP_Theme $theme The current WP_Theme object. * @param string $context Status of the theme, one of 'all', 'enabled', or 'disabled'. */ $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context ); /** * Filters the action links of a specific theme in the Multisite themes * list table. * * The dynamic portion of the hook name, `$stylesheet`, refers to the * directory name of the theme, which in most cases is synonymous * with the template name. * * @since 3.1.0 * * @param string[] $actions An array of action links. * @param WP_Theme $theme The current WP_Theme object. * @param string $context Status of the theme, one of 'all', 'enabled', or 'disabled'. */ $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context ); echo $this->row_actions( $actions, true ); } /** * Handles the description column output. * * @since 4.3.0 * * @global string $status The current theme status. * @global array $totals An array of theme counts for each status. * * @param WP_Theme $theme The current WP_Theme object. */ public function column_description( $theme ) { global $status, $totals; if ( $theme->errors() ) { $pre = 'broken' === $status ? '' . __( 'Broken Theme:' ) . ' ' : ''; wp_admin_notice( $pre . $theme->errors()->get_error_message(), array( 'type' => 'error', 'additional_classes' => 'inline', ) ); } if ( $this->is_site_themes ) { $allowed = $theme->is_allowed( 'site', $this->site_id ); } else { $allowed = $theme->is_allowed( 'network' ); } $class = ! $allowed ? 'inactive' : 'active'; if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) { $class .= ' update'; } echo "

        " . $theme->display( 'Description' ) . "

        "; $stylesheet = $theme->get_stylesheet(); $theme_meta = array(); if ( $theme->get( 'Version' ) ) { /* translators: %s: Theme version. */ $theme_meta[] = sprintf( __( 'Version %s' ), $theme->display( 'Version' ) ); } /* translators: %s: Theme author. */ $theme_meta[] = sprintf( __( 'By %s' ), $theme->display( 'Author' ) ); if ( $theme->get( 'ThemeURI' ) ) { /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Visit theme site for %s' ), $theme->display( 'Name' ) ); $theme_meta[] = sprintf( '%s', $theme->display( 'ThemeURI' ), esc_attr( $aria_label ), __( 'Visit Theme Site' ) ); } if ( $theme->parent() ) { $theme_meta[] = sprintf( /* translators: %s: Theme name. */ __( 'Child theme of %s' ), '' . $theme->parent()->display( 'Name' ) . '' ); } /** * Filters the array of row meta for each theme in the Multisite themes * list table. * * @since 3.1.0 * * @param string[] $theme_meta An array of the theme's metadata, including * the version, author, and theme URI. * @param string $stylesheet Directory name of the theme. * @param WP_Theme $theme WP_Theme object. * @param string $status Status of the theme. */ $theme_meta = apply_filters( 'theme_row_meta', $theme_meta, $stylesheet, $theme, $status ); echo implode( ' | ', $theme_meta ); echo '
        '; } /** * Handles the auto-updates column output. * * @since 5.5.0 * * @global string $status The current theme status. * @global int $page The current page number. * * @param WP_Theme $theme The current WP_Theme object. */ public function column_autoupdates( $theme ) { global $status, $page; static $auto_updates, $available_updates; if ( ! $auto_updates ) { $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); } if ( ! $available_updates ) { $available_updates = get_site_transient( 'update_themes' ); } $stylesheet = $theme->get_stylesheet(); if ( isset( $theme->auto_update_forced ) ) { if ( $theme->auto_update_forced ) { // Forced on. $text = __( 'Auto-updates enabled' ); } else { $text = __( 'Auto-updates disabled' ); } $action = 'unavailable'; $time_class = ' hidden'; } elseif ( empty( $theme->update_supported ) ) { $text = ''; $action = 'unavailable'; $time_class = ' hidden'; } elseif ( in_array( $stylesheet, $auto_updates, true ) ) { $text = __( 'Disable auto-updates' ); $action = 'disable'; $time_class = ''; } else { $text = __( 'Enable auto-updates' ); $action = 'enable'; $time_class = ' hidden'; } $query_args = array( 'action' => "{$action}-auto-update", 'theme' => $stylesheet, 'paged' => $page, 'theme_status' => $status, ); $url = add_query_arg( $query_args, 'themes.php' ); if ( 'unavailable' === $action ) { $html[] = '' . $text . ''; } else { $html[] = sprintf( '', wp_nonce_url( $url, 'updates' ), $action ); $html[] = ''; $html[] = '' . $text . ''; $html[] = ''; } if ( isset( $available_updates->response[ $stylesheet ] ) ) { $html[] = sprintf( '
        %s
        ', $time_class, wp_get_auto_update_message() ); } $html = implode( '', $html ); /** * Filters the HTML of the auto-updates setting for each theme in the Themes list table. * * @since 5.5.0 * * @param string $html The HTML for theme's auto-update setting, including * toggle auto-update action link and time to next update. * @param string $stylesheet Directory name of the theme. * @param WP_Theme $theme WP_Theme object. */ echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme ); wp_admin_notice( '', array( 'type' => 'error', 'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ), ) ); } /** * Handles default column output. * * @since 4.3.0 * @since 5.9.0 Renamed `$theme` to `$item` to match parent class for PHP 8 named parameter support. * * @param WP_Theme $item The current WP_Theme object. * @param string $column_name The current column name. */ public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $theme = $item; $stylesheet = $theme->get_stylesheet(); /** * Fires inside each custom column of the Multisite themes list table. * * @since 3.1.0 * * @param string $column_name Name of the column. * @param string $stylesheet Directory name of the theme. * @param WP_Theme $theme Current WP_Theme object. */ do_action( 'manage_themes_custom_column', $column_name, $stylesheet, $theme ); } /** * Handles the output for a single table row. * * @since 4.3.0 * * @param WP_Theme $item The current WP_Theme object. */ public function single_row_columns( $item ) { list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info(); foreach ( $columns as $column_name => $column_display_name ) { $extra_classes = ''; if ( in_array( $column_name, $hidden, true ) ) { $extra_classes .= ' hidden'; } switch ( $column_name ) { case 'cb': echo ''; $this->column_cb( $item ); echo ''; break; case 'name': $active_theme_label = ''; /* The presence of the site_id property means that this is a subsite view and a label for the active theme needs to be added */ if ( ! empty( $this->site_id ) ) { $stylesheet = get_blog_option( $this->site_id, 'stylesheet' ); $template = get_blog_option( $this->site_id, 'template' ); /* Add a label for the active template */ if ( $item->get_template() === $template ) { $active_theme_label = ' — ' . __( 'Active Theme' ); } /* In case this is a child theme, label it properly */ if ( $stylesheet !== $template && $item->get_stylesheet() === $stylesheet ) { $active_theme_label = ' — ' . __( 'Active Child Theme' ); } } echo "" . $item->display( 'Name' ) . $active_theme_label . ''; $this->column_name( $item ); echo ''; break; case 'description': echo ""; $this->column_description( $item ); echo ''; break; case 'auto-updates': echo ""; $this->column_autoupdates( $item ); echo ''; break; default: echo ""; $this->column_default( $item, $column_name ); echo ''; break; } } } /** * Handles the output for a single table row. * * @global string $status The current theme status. * @global array $totals An array of theme counts for each status. * * @param WP_Theme $theme The current WP_Theme object. */ public function single_row( $theme ) { global $status, $totals; if ( $this->is_site_themes ) { $allowed = $theme->is_allowed( 'site', $this->site_id ); } else { $allowed = $theme->is_allowed( 'network' ); } $stylesheet = $theme->get_stylesheet(); $class = ! $allowed ? 'inactive' : 'active'; if ( ! empty( $totals['upgrade'] ) && ! empty( $theme->update ) ) { $class .= ' update'; } printf( '', esc_attr( $class ), esc_attr( $stylesheet ) ); $this->single_row_columns( $theme ); echo ''; if ( $this->is_site_themes ) { remove_action( "after_theme_row_$stylesheet", 'wp_theme_update_row' ); } /** * Fires after each row in the Multisite themes list table. * * @since 3.1.0 * * @param string $stylesheet Directory name of the theme. * @param WP_Theme $theme Current WP_Theme object. * @param string $status Status of the theme. */ do_action( 'after_theme_row', $stylesheet, $theme, $status ); /** * Fires after each specific row in the Multisite themes list table. * * The dynamic portion of the hook name, `$stylesheet`, refers to the * directory name of the theme, most often synonymous with the template * name of the theme. * * @since 3.5.0 * * @param string $stylesheet Directory name of the theme. * @param WP_Theme $theme Current WP_Theme object. * @param string $status Status of the theme. */ do_action( "after_theme_row_{$stylesheet}", $stylesheet, $theme, $status ); } } includes/class-wp-filesystem-ftpsockets.php000064400000044101152213653150015164 0ustar00method = 'ftpsockets'; $this->errors = new WP_Error(); // Check if possible to use ftp functions. if ( ! require_once ABSPATH . 'wp-admin/includes/class-ftp.php' ) { return; } $this->ftp = new ftp(); if ( empty( $opt['port'] ) ) { $this->options['port'] = 21; } else { $this->options['port'] = (int) $opt['port']; } if ( empty( $opt['hostname'] ) ) { $this->errors->add( 'empty_hostname', __( 'FTP hostname is required' ) ); } else { $this->options['hostname'] = $opt['hostname']; } // Check if the options provided are OK. if ( empty( $opt['username'] ) ) { $this->errors->add( 'empty_username', __( 'FTP username is required' ) ); } else { $this->options['username'] = $opt['username']; } if ( empty( $opt['password'] ) ) { $this->errors->add( 'empty_password', __( 'FTP password is required' ) ); } else { $this->options['password'] = $opt['password']; } } /** * Connects filesystem. * * @since 2.5.0 * * @return bool True on success, false on failure. */ public function connect() { if ( ! $this->ftp ) { return false; } $this->ftp->SetTimeout( FS_CONNECT_TIMEOUT ); if ( ! $this->ftp->SetServer( $this->options['hostname'], $this->options['port'] ) ) { $this->errors->add( 'connect', sprintf( /* translators: %s: hostname:port */ __( 'Failed to connect to FTP Server %s' ), $this->options['hostname'] . ':' . $this->options['port'] ) ); return false; } if ( ! $this->ftp->connect() ) { $this->errors->add( 'connect', sprintf( /* translators: %s: hostname:port */ __( 'Failed to connect to FTP Server %s' ), $this->options['hostname'] . ':' . $this->options['port'] ) ); return false; } if ( ! $this->ftp->login( $this->options['username'], $this->options['password'] ) ) { $this->errors->add( 'auth', sprintf( /* translators: %s: Username. */ __( 'Username/Password incorrect for %s' ), $this->options['username'] ) ); return false; } $this->ftp->SetType( FTP_BINARY ); $this->ftp->Passive( true ); $this->ftp->SetTimeout( FS_TIMEOUT ); return true; } /** * Reads entire file into a string. * * @since 2.5.0 * * @param string $file Name of the file to read. * @return string|false Read data on success, false if no temporary file could be opened, * or if the file couldn't be retrieved. */ public function get_contents( $file ) { if ( ! $this->exists( $file ) ) { return false; } $tempfile = wp_tempnam( $file ); $temphandle = fopen( $tempfile, 'w+' ); if ( ! $temphandle ) { unlink( $tempfile ); return false; } mbstring_binary_safe_encoding(); if ( ! $this->ftp->fget( $temphandle, $file ) ) { fclose( $temphandle ); unlink( $tempfile ); reset_mbstring_encoding(); return ''; // Blank document. File does exist, it's just blank. } reset_mbstring_encoding(); fseek( $temphandle, 0 ); // Skip back to the start of the file being written to. $contents = ''; while ( ! feof( $temphandle ) ) { $contents .= fread( $temphandle, 8 * KB_IN_BYTES ); } fclose( $temphandle ); unlink( $tempfile ); return $contents; } /** * Reads entire file into an array. * * @since 2.5.0 * * @param string $file Path to the file. * @return array|false File contents in an array on success, false on failure. */ public function get_contents_array( $file ) { return explode( "\n", $this->get_contents( $file ) ); } /** * Writes a string to a file. * * @since 2.5.0 * * @param string $file Remote path to the file where to write the data. * @param string $contents The data to write. * @param int|false $mode Optional. The file permissions as octal number, usually 0644. * Default false. * @return bool True on success, false on failure. */ public function put_contents( $file, $contents, $mode = false ) { $tempfile = wp_tempnam( $file ); $temphandle = @fopen( $tempfile, 'w+' ); if ( ! $temphandle ) { unlink( $tempfile ); return false; } // The FTP class uses string functions internally during file download/upload. mbstring_binary_safe_encoding(); $bytes_written = fwrite( $temphandle, $contents ); if ( false === $bytes_written || strlen( $contents ) !== $bytes_written ) { fclose( $temphandle ); unlink( $tempfile ); reset_mbstring_encoding(); return false; } fseek( $temphandle, 0 ); // Skip back to the start of the file being written to. $ret = $this->ftp->fput( $file, $temphandle ); reset_mbstring_encoding(); fclose( $temphandle ); unlink( $tempfile ); $this->chmod( $file, $mode ); return $ret; } /** * Gets the current working directory. * * @since 2.5.0 * * @return string|false The current working directory on success, false on failure. */ public function cwd() { $cwd = $this->ftp->pwd(); if ( $cwd ) { $cwd = trailingslashit( $cwd ); } return $cwd; } /** * Changes current directory. * * @since 2.5.0 * * @param string $dir The new current directory. * @return bool True on success, false on failure. */ public function chdir( $dir ) { return $this->ftp->chdir( $dir ); } /** * Changes filesystem permissions. * * @since 2.5.0 * * @param string $file Path to the file. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for directories. Default false. * @param bool $recursive Optional. If set to true, changes file permissions recursively. * Default false. * @return bool True on success, false on failure. */ public function chmod( $file, $mode = false, $recursive = false ) { if ( ! $mode ) { if ( $this->is_file( $file ) ) { $mode = FS_CHMOD_FILE; } elseif ( $this->is_dir( $file ) ) { $mode = FS_CHMOD_DIR; } else { return false; } } // chmod any sub-objects if recursive. if ( $recursive && $this->is_dir( $file ) ) { $filelist = $this->dirlist( $file ); foreach ( (array) $filelist as $filename => $filemeta ) { $this->chmod( $file . '/' . $filename, $mode, $recursive ); } } // chmod the file or directory. return $this->ftp->chmod( $file, $mode ); } /** * Gets the file owner. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false Username of the owner on success, false on failure. */ public function owner( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['owner'] ?? ''; } /** * Gets the permissions of the specified file or filepath in their octal format. * * @since 2.5.0 * * @param string $file Path to the file. * @return string Mode of the file (the last 3 digits). */ public function getchmod( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['permsn'] ?? ''; } /** * Gets the file's group. * * @since 2.5.0 * * @param string $file Path to the file. * @return string|false The group on success, false on failure. */ public function group( $file ) { $dir = $this->dirlist( $file ); return $dir[ $file ]['group'] ?? ''; } /** * Copies a file. * * @since 2.5.0 * * @param string $source Path to the source file. * @param string $destination Path to the destination file. * @param bool $overwrite Optional. Whether to overwrite the destination file if it exists. * Default false. * @param int|false $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for dirs. Default false. * @return bool True on success, false on failure. */ public function copy( $source, $destination, $overwrite = false, $mode = false ) { if ( ! $overwrite && $this->exists( $destination ) ) { return false; } $content = $this->get_contents( $source ); if ( false === $content ) { return false; } return $this->put_contents( $destination, $content, $mode ); } /** * Moves a file or directory. * * After moving files or directories, OPcache will need to be invalidated. * * If moving a directory fails, `copy_dir()` can be used for a recursive copy. * * Use `move_dir()` for moving directories with OPcache invalidation and a * fallback to `copy_dir()`. * * @since 2.5.0 * * @param string $source Path to the source file or directory. * @param string $destination Path to the destination file or directory. * @param bool $overwrite Optional. Whether to overwrite the destination if it exists. * Default false. * @return bool True on success, false on failure. */ public function move( $source, $destination, $overwrite = false ) { return $this->ftp->rename( $source, $destination ); } /** * Deletes a file or directory. * * @since 2.5.0 * * @param string $file Path to the file or directory. * @param bool $recursive Optional. If set to true, deletes files and folders recursively. * Default false. * @param string|false $type Type of resource. 'f' for file, 'd' for directory. * Default false. * @return bool True on success, false on failure. */ public function delete( $file, $recursive = false, $type = false ) { if ( empty( $file ) ) { return false; } if ( 'f' === $type || $this->is_file( $file ) ) { return $this->ftp->delete( $file ); } if ( ! $recursive ) { return $this->ftp->rmdir( $file ); } return $this->ftp->mdel( $file ); } /** * Checks if a file or directory exists. * * @since 2.5.0 * @since 6.3.0 Returns false for an empty path. * * @param string $path Path to file or directory. * @return bool Whether $path exists or not. */ public function exists( $path ) { /* * Check for empty path. If ftp::nlist() receives an empty path, * it checks the current working directory and may return true. * * See https://core.trac.wordpress.org/ticket/33058. */ if ( '' === $path ) { return false; } $list = $this->ftp->nlist( $path ); if ( empty( $list ) && $this->is_dir( $path ) ) { return true; // File is an empty directory. } return ! empty( $list ); // Empty list = no file, so invert. // Return $this->ftp->is_exists($file); has issues with ABOR+426 responses on the ncFTPd server. } /** * Checks if resource is a file. * * @since 2.5.0 * * @param string $file File path. * @return bool Whether $file is a file. */ public function is_file( $file ) { if ( $this->is_dir( $file ) ) { return false; } if ( $this->exists( $file ) ) { return true; } return false; } /** * Checks if resource is a directory. * * @since 2.5.0 * * @param string $path Directory path. * @return bool Whether $path is a directory. */ public function is_dir( $path ) { $cwd = $this->cwd(); if ( $this->chdir( $path ) ) { $this->chdir( $cwd ); return true; } return false; } /** * Checks if a file is readable. * * @since 2.5.0 * * @param string $file Path to file. * @return bool Whether $file is readable. */ public function is_readable( $file ) { return true; } /** * Checks if a file or directory is writable. * * @since 2.5.0 * * @param string $path Path to file or directory. * @return bool Whether $path is writable. */ public function is_writable( $path ) { return true; } /** * Gets the file's last access time. * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing last access time, false on failure. */ public function atime( $file ) { return false; } /** * Gets the file modification time. * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Unix timestamp representing modification time, false on failure. */ public function mtime( $file ) { return $this->ftp->mdtm( $file ); } /** * Gets the file size (in bytes). * * @since 2.5.0 * * @param string $file Path to file. * @return int|false Size of the file in bytes on success, false on failure. */ public function size( $file ) { return $this->ftp->filesize( $file ); } /** * Sets the access and modification times of a file. * * Note: If $file doesn't exist, it will be created. * * @since 2.5.0 * * @param string $file Path to file. * @param int $time Optional. Modified time to set for file. * Default 0. * @param int $atime Optional. Access time to set for file. * Default 0. * @return bool True on success, false on failure. */ public function touch( $file, $time = 0, $atime = 0 ) { return false; } /** * Creates a directory. * * @since 2.5.0 * * @param string $path Path for new directory. * @param int|false $chmod Optional. The permissions as octal number (or false to skip chmod). * Default false. * @param string|int|false $chown Optional. A user name or number (or false to skip chown). * Default false. * @param string|int|false $chgrp Optional. A group name or number (or false to skip chgrp). * Default false. * @return bool True on success, false on failure. */ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) { $path = untrailingslashit( $path ); if ( empty( $path ) ) { return false; } if ( ! $this->ftp->mkdir( $path ) ) { return false; } if ( ! $chmod ) { $chmod = FS_CHMOD_DIR; } $this->chmod( $path, $chmod ); return true; } /** * Deletes a directory. * * @since 2.5.0 * * @param string $path Path to directory. * @param bool $recursive Optional. Whether to recursively remove files/directories. * Default false. * @return bool True on success, false on failure. */ public function rmdir( $path, $recursive = false ) { return $this->delete( $path, $recursive ); } /** * Gets details for files in a directory or a specific file. * * @since 2.5.0 * * @param string $path Path to directory or file. * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files. * Default true. * @param bool $recursive Optional. Whether to recursively include file details in nested directories. * Default false. * @return array|false { * Array of arrays containing file information. False if unable to list directory contents. * * @type array ...$0 { * Array of file information. Note that some elements may not be available on all filesystems. * * @type string $name Name of the file or directory. * @type string $perms *nix representation of permissions. * @type string $permsn Octal representation of permissions. * @type int|string|false $number File number. May be a numeric string. False if not available. * @type string|false $owner Owner name or ID, or false if not available. * @type string|false $group File permissions group, or false if not available. * @type int|string|false $size Size of file in bytes. May be a numeric string. * False if not available. * @type int|string|false $lastmodunix Last modified unix timestamp. May be a numeric string. * False if not available. * @type string|false $lastmod Last modified month (3 letters) and day (without leading 0), or * false if not available. * @type string|false $time Last modified time, or false if not available. * @type string $type Type of resource. 'f' for file, 'd' for directory, 'l' for link. * @type array|false $files If a directory and `$recursive` is true, contains another array of * files. False if unable to list directory contents. * } * } */ public function dirlist( $path = '.', $include_hidden = true, $recursive = false ) { if ( $this->is_file( $path ) ) { $limit_file = basename( $path ); $path = dirname( $path ) . '/'; } else { $limit_file = false; } mbstring_binary_safe_encoding(); $list = $this->ftp->dirlist( $path ); if ( empty( $list ) && ! $this->exists( $path ) ) { reset_mbstring_encoding(); return false; } $path = trailingslashit( $path ); $ret = array(); foreach ( $list as $struc ) { if ( '.' === $struc['name'] || '..' === $struc['name'] ) { continue; } if ( ! $include_hidden && '.' === $struc['name'][0] ) { continue; } if ( $limit_file && $struc['name'] !== $limit_file ) { continue; } if ( 'd' === $struc['type'] ) { if ( $recursive ) { $struc['files'] = $this->dirlist( $path . $struc['name'], $include_hidden, $recursive ); } else { $struc['files'] = array(); } } // Replace symlinks formatted as "source -> target" with just the source name. if ( $struc['islink'] ) { $struc['name'] = preg_replace( '/(\s*->\s*.*)$/', '', $struc['name'] ); } // Add the octal representation of the file permissions. $struc['permsn'] = $this->getnumchmodfromh( $struc['perms'] ); $ret[ $struc['name'] ] = $struc; } reset_mbstring_encoding(); return $ret; } /** * Destructor. * * @since 2.5.0 */ public function __destruct() { $this->ftp->quit(); } } includes/class-wp-theme-install-list-table.php000064400000036527152213653150015436 0ustar00features = $_REQUEST['features']; } $paged = $this->get_pagenum(); $per_page = 36; // These are the tabs which are shown on the page, $tabs = array(); $tabs['dashboard'] = __( 'Search' ); if ( 'search' === $tab ) { $tabs['search'] = __( 'Search Results' ); } $tabs['upload'] = _x( 'Upload', 'noun' ); $tabs['featured'] = _x( 'Featured', 'themes' ); //$tabs['popular'] = _x( 'Popular', 'themes' ); $tabs['new'] = _x( 'Latest', 'themes' ); $tabs['updated'] = _x( 'Recently Updated', 'themes' ); $nonmenu_tabs = array( 'theme-information' ); // Valid actions to perform which do not have a Menu item. /** This filter is documented in wp-admin/theme-install.php */ $tabs = apply_filters( 'install_themes_tabs', $tabs ); /** * Filters tabs not associated with a menu item on the Install Themes screen. * * @since 2.8.0 * * @param string[] $nonmenu_tabs The tabs that don't have a menu item on * the Install Themes screen. */ $nonmenu_tabs = apply_filters( 'install_themes_nonmenu_tabs', $nonmenu_tabs ); // If a non-valid menu tab has been selected, And it's not a non-menu action. if ( empty( $tab ) || ( ! isset( $tabs[ $tab ] ) && ! in_array( $tab, (array) $nonmenu_tabs, true ) ) ) { $tab = key( $tabs ); } $args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults, ); switch ( $tab ) { case 'search': $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; switch ( $type ) { case 'tag': $args['tag'] = array_map( 'sanitize_key', $search_terms ); break; case 'term': $args['search'] = $search_string; break; case 'author': $args['author'] = $search_string; break; } if ( ! empty( $this->features ) ) { $args['tag'] = $this->features; $_REQUEST['s'] = implode( ',', $this->features ); $_REQUEST['type'] = 'tag'; } add_action( 'install_themes_table_header', 'install_theme_search_form', 10, 0 ); break; case 'featured': // case 'popular': case 'new': case 'updated': $args['browse'] = $tab; break; default: $args = false; break; } /** * Filters API request arguments for each Install Themes screen tab. * * The dynamic portion of the hook name, `$tab`, refers to the theme install * tab. * * Possible hook names include: * * - `install_themes_table_api_args_dashboard` * - `install_themes_table_api_args_featured` * - `install_themes_table_api_args_new` * - `install_themes_table_api_args_search` * - `install_themes_table_api_args_updated` * - `install_themes_table_api_args_upload` * * @since 3.7.0 * * @param array|false $args Theme install API arguments. */ $args = apply_filters( "install_themes_table_api_args_{$tab}", $args ); if ( ! $args ) { return; } $api = themes_api( 'query_themes', $args ); if ( is_wp_error( $api ) ) { wp_die( '

        ' . $api->get_error_message() . '

        ' . __( 'Try Again' ) . '

        ' ); } $this->items = $api->themes; $this->set_pagination_args( array( 'total_items' => $api->info['results'], 'per_page' => $args['per_page'], 'infinite_scroll' => true, ) ); } /** */ public function no_items() { _e( 'No themes match your request.' ); } /** * @global array $tabs * @global string $tab * @return array An array of links for the available views. */ protected function get_views() { global $tabs, $tab; $display_tabs = array(); foreach ( (array) $tabs as $action => $text ) { $display_tabs[ 'theme-install-' . $action ] = array( 'url' => self_admin_url( 'theme-install.php?tab=' . $action ), 'label' => $text, 'current' => $action === $tab, ); } return $this->get_views_links( $display_tabs ); } /** * Displays the theme install table. * * Overrides the parent display() method to provide a different container. * * @since 3.1.0 */ public function display() { wp_nonce_field( 'fetch-list-' . get_class( $this ), '_ajax_fetch_list_nonce' ); ?>
        pagination( 'top' ); ?>
        display_rows_or_placeholder(); ?>
        tablenav( 'bottom' ); } /** * Generates the list table rows. * * @since 3.1.0 */ public function display_rows() { $themes = $this->items; foreach ( $themes as $theme ) { ?>
        single_row( $theme ); ?>
        theme_installer(); } /** * Prints a theme from the WordPress.org API. * * @since 3.1.0 * * @global array $themes_allowedtags * * @param stdClass $theme { * An object that contains theme data returned by the WordPress.org API. * * @type string $name Theme name, e.g. 'Twenty Twenty-One'. * @type string $slug Theme slug, e.g. 'twentytwentyone'. * @type string $version Theme version, e.g. '1.1'. * @type string $author Theme author username, e.g. 'melchoyce'. * @type string $preview_url Preview URL, e.g. 'https://2021.wordpress.net/'. * @type string $screenshot_url Screenshot URL, e.g. 'https://wordpress.org/themes/twentytwentyone/'. * @type float $rating Rating score. * @type int $num_ratings The number of ratings. * @type string $homepage Theme homepage, e.g. 'https://wordpress.org/themes/twentytwentyone/'. * @type string $description Theme description. * @type string $download_link Theme ZIP download URL. * } */ public function single_row( $theme ) { global $themes_allowedtags; if ( empty( $theme ) ) { return; } $name = wp_kses( $theme->name, $themes_allowedtags ); $author = wp_kses( $theme->author, $themes_allowedtags ); /* translators: %s: Theme name. */ $preview_title = sprintf( __( 'Preview “%s”' ), $name ); $preview_url = add_query_arg( array( 'tab' => 'theme-information', 'theme' => $theme->slug, ), self_admin_url( 'theme-install.php' ) ); $actions = array(); $install_url = add_query_arg( array( 'action' => 'install-theme', 'theme' => $theme->slug, ), self_admin_url( 'update.php' ) ); $update_url = add_query_arg( array( 'action' => 'upgrade-theme', 'theme' => $theme->slug, ), self_admin_url( 'update.php' ) ); $status = $this->_get_theme_status( $theme ); switch ( $status ) { case 'update_available': $actions[] = sprintf( '%s', esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ), /* translators: %s: Theme version. */ esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ), __( 'Update' ) ); break; case 'newer_installed': case 'latest_installed': $actions[] = sprintf( '%s', _x( 'Installed', 'theme' ) ); break; case 'install': default: $actions[] = sprintf( '%s', esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ), /* translators: %s: Theme name. */ esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ), _x( 'Install Now', 'theme' ) ); break; } $actions[] = sprintf( '%s', esc_url( $preview_url ), esc_attr( $preview_title ), _x( 'Preview', 'verb' ) ); /** * Filters the install action links for a theme in the Install Themes list table. * * @since 3.4.0 * * @param string[] $actions An array of theme action links. Defaults are * links to Install Now, Preview, and Details. * @param stdClass $theme An object that contains theme data returned by the * WordPress.org API. */ $actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>

        install_theme_info( $theme ); } /** * Prints the wrapper for the theme installer. */ public function theme_installer() { ?>
        install_theme_info( $theme ); ?>
        name, $themes_allowedtags ); $author = wp_kses( $theme->author, $themes_allowedtags ); $install_url = add_query_arg( array( 'action' => 'install-theme', 'theme' => $theme->slug, ), self_admin_url( 'update.php' ) ); $update_url = add_query_arg( array( 'action' => 'upgrade-theme', 'theme' => $theme->slug, ), self_admin_url( 'update.php' ) ); $status = $this->_get_theme_status( $theme ); ?>
        %s', esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ), /* translators: %s: Theme version. */ esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ), __( 'Update' ) ); break; case 'newer_installed': case 'latest_installed': printf( '%s', _x( 'Installed', 'theme' ) ); break; case 'install': default: printf( '%s', esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ), __( 'Install' ) ); break; } ?>

        screenshot_url ) ) : ?>
        $theme->rating, 'type' => 'percent', 'number' => $theme->num_ratings, ) ); ?>
        version, $themes_allowedtags ); ?>
        description, $themes_allowedtags ); ?>
        Install screen * @global string $type Type of search. * * @param array $extra_args Unused. */ public function _js_vars( $extra_args = array() ) { global $tab, $type; parent::_js_vars( compact( 'tab', 'type' ) ); } /** * Checks to see if the theme is already installed. * * @since 3.4.0 * * @param stdClass $theme A WordPress.org Theme API object. * @return string Theme status. */ private function _get_theme_status( $theme ) { $status = 'install'; $installed_theme = wp_get_theme( $theme->slug ); if ( $installed_theme->exists() ) { if ( version_compare( $installed_theme->get( 'Version' ), $theme->version, '=' ) ) { $status = 'latest_installed'; } elseif ( version_compare( $installed_theme->get( 'Version' ), $theme->version, '>' ) ) { $status = 'newer_installed'; } else { $status = 'update_available'; } } return $status; } } includes/theme.php000064400000134655152213653150010206 0ustar00errors ) && $wp_filesystem->errors->has_errors() ) { return new WP_Error( 'fs_error', __( 'Filesystem error.' ), $wp_filesystem->errors ); } // Get the base theme folder. $themes_dir = $wp_filesystem->wp_themes_dir(); if ( empty( $themes_dir ) ) { return new WP_Error( 'fs_no_themes_dir', __( 'Unable to locate WordPress theme directory.' ) ); } /** * Fires immediately before a theme deletion attempt. * * @since 5.8.0 * * @param string $stylesheet Stylesheet of the theme to delete. */ do_action( 'delete_theme', $stylesheet ); $theme = wp_get_theme( $stylesheet ); $themes_dir = trailingslashit( $themes_dir ); $theme_dir = trailingslashit( $themes_dir . $stylesheet ); $deleted = $wp_filesystem->delete( $theme_dir, true ); /** * Fires immediately after a theme deletion attempt. * * @since 5.8.0 * * @param string $stylesheet Stylesheet of the theme to delete. * @param bool $deleted Whether the theme deletion was successful. */ do_action( 'deleted_theme', $stylesheet, $deleted ); if ( ! $deleted ) { return new WP_Error( 'could_not_remove_theme', /* translators: %s: Theme name. */ sprintf( __( 'Could not fully remove the theme %s.' ), $stylesheet ) ); } $theme_translations = wp_get_installed_translations( 'themes' ); // Remove language files, silently. if ( ! empty( $theme_translations[ $stylesheet ] ) ) { $translations = $theme_translations[ $stylesheet ]; foreach ( $translations as $translation => $data ) { $wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.po' ); $wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.mo' ); $wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.l10n.php' ); $json_translation_files = glob( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '-*.json' ); if ( $json_translation_files ) { array_map( array( $wp_filesystem, 'delete' ), $json_translation_files ); } } } // Remove the theme from allowed themes on the network. if ( is_multisite() ) { WP_Theme::network_disable_theme( $stylesheet ); } // Clear theme caches. $theme->cache_delete(); // Force refresh of theme update information. delete_site_transient( 'update_themes' ); return true; } /** * Gets the page templates available in this theme. * * @since 1.5.0 * @since 4.7.0 Added the `$post_type` parameter. * * @param WP_Post|null $post Optional. The post being edited, provided for context. * @param string $post_type Optional. Post type to get the templates for. Default 'page'. * @return string[] Array of template file names keyed by the template header name. */ function get_page_templates( $post = null, $post_type = 'page' ) { return array_flip( wp_get_theme()->get_page_templates( $post, $post_type ) ); } /** * Tidies a filename for url display by the theme file editor. * * @since 2.9.0 * @access private * * @param string $fullpath Full path to the theme file * @param string $containingfolder Path of the theme parent folder * @return string */ function _get_template_edit_filename( $fullpath, $containingfolder ) { return str_replace( dirname( $containingfolder, 2 ), '', $fullpath ); } /** * Check if there is an update for a theme available. * * Will display link, if there is an update available. * * @since 2.7.0 * * @see get_theme_update_available() * * @param WP_Theme $theme Theme data object. */ function theme_update_available( $theme ) { echo get_theme_update_available( $theme ); } /** * Retrieves the update link if there is a theme update available. * * Will return a link if there is an update available. * * @since 3.8.0 * * @param WP_Theme $theme WP_Theme object. * @return string|false HTML for the update link, or false if invalid info was passed. */ function get_theme_update_available( $theme ) { static $themes_update = null; if ( ! current_user_can( 'update_themes' ) ) { return false; } if ( ! isset( $themes_update ) ) { $themes_update = get_site_transient( 'update_themes' ); } if ( ! ( $theme instanceof WP_Theme ) ) { return false; } $stylesheet = $theme->get_stylesheet(); $html = ''; if ( isset( $themes_update->response[ $stylesheet ] ) ) { $update = $themes_update->response[ $stylesheet ]; $theme_name = $theme->display( 'Name' ); $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 1024, 'height' => 800, ), $update['url'] ); // Theme browser inside WP? Replace this. Also, theme preview JS will override this on the available list. $update_url = wp_nonce_url( admin_url( 'update.php?action=upgrade-theme&theme=' . urlencode( $stylesheet ) ), 'upgrade-theme_' . $stylesheet ); if ( ! is_multisite() ) { if ( ! current_user_can( 'update_themes' ) ) { $html = sprintf( /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */ '

        ' . __( 'There is a new version of %1$s available. View version %4$s details.' ) . '

        ', $theme_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Theme name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) ), $update['new_version'] ); } elseif ( empty( $update['package'] ) ) { $html = sprintf( /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number. */ '

        ' . __( 'There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this theme.' ) . '

        ', $theme_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Theme name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) ), $update['new_version'] ); } else { $html = sprintf( /* translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */ '

        ' . __( 'There is a new version of %1$s available. View version %4$s details or update now.' ) . '

        ', $theme_name, esc_url( $details_url ), sprintf( 'class="thickbox open-plugin-details-modal" aria-label="%s"', /* translators: 1: Theme name, 2: Version number. */ esc_attr( sprintf( __( 'View %1$s version %2$s details' ), $theme_name, $update['new_version'] ) ) ), $update['new_version'], $update_url, sprintf( 'aria-label="%s" id="update-theme" data-slug="%s"', /* translators: %s: Theme name. */ esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme_name ) ), $stylesheet ) ); } } } return $html; } /** * Retrieves list of WordPress theme features (aka theme tags). * * @since 3.1.0 * @since 3.2.0 Added 'Gray' color and 'Featured Image Header', 'Featured Images', * 'Full Width Template', and 'Post Formats' features. * @since 3.5.0 Added 'Flexible Header' feature. * @since 3.8.0 Renamed 'Width' filter to 'Layout'. * @since 3.8.0 Renamed 'Fixed Width' and 'Flexible Width' options * to 'Fixed Layout' and 'Fluid Layout'. * @since 3.8.0 Added 'Accessibility Ready' feature and 'Responsive Layout' option. * @since 3.9.0 Combined 'Layout' and 'Columns' filters. * @since 4.6.0 Removed 'Colors' filter. * @since 4.6.0 Added 'Grid Layout' option. * Removed 'Fixed Layout', 'Fluid Layout', and 'Responsive Layout' options. * @since 4.6.0 Added 'Custom Logo' and 'Footer Widgets' features. * Removed 'Blavatar' feature. * @since 4.6.0 Added 'Blog', 'E-Commerce', 'Education', 'Entertainment', 'Food & Drink', * 'Holiday', 'News', 'Photography', and 'Portfolio' subjects. * Removed 'Photoblogging' and 'Seasonal' subjects. * @since 4.9.0 Reordered the filters from 'Layout', 'Features', 'Subject' * to 'Subject', 'Features', 'Layout'. * @since 4.9.0 Removed 'BuddyPress', 'Custom Menu', 'Flexible Header', * 'Front Page Posting', 'Microformats', 'RTL Language Support', * 'Threaded Comments', and 'Translation Ready' features. * @since 5.5.0 Added 'Block Editor Patterns', 'Block Editor Styles', * and 'Full Site Editing' features. * @since 5.5.0 Added 'Wide Blocks' layout option. * @since 5.8.1 Added 'Template Editing' feature. * @since 6.1.1 Replaced 'Full Site Editing' feature name with 'Site Editor'. * @since 6.2.0 Added 'Style Variations' feature. * * @param bool $api Optional. Whether try to fetch tags from the WordPress.org API. Defaults to true. * @return array Array of features keyed by category with translations keyed by slug. */ function get_theme_feature_list( $api = true ) { // Hard-coded list is used if API is not accessible. $features = array( __( 'Subject' ) => array( 'blog' => __( 'Blog' ), 'e-commerce' => __( 'E-Commerce' ), 'education' => __( 'Education' ), 'entertainment' => __( 'Entertainment' ), 'food-and-drink' => __( 'Food & Drink' ), 'holiday' => __( 'Holiday' ), 'news' => __( 'News' ), 'photography' => __( 'Photography' ), 'portfolio' => __( 'Portfolio' ), ), __( 'Features' ) => array( 'accessibility-ready' => __( 'Accessibility Ready' ), 'block-patterns' => __( 'Block Editor Patterns' ), 'block-styles' => __( 'Block Editor Styles' ), 'custom-background' => __( 'Custom Background' ), 'custom-colors' => __( 'Custom Colors' ), 'custom-header' => __( 'Custom Header' ), 'custom-logo' => __( 'Custom Logo' ), 'editor-style' => __( 'Editor Style' ), 'featured-image-header' => __( 'Featured Image Header' ), 'featured-images' => __( 'Featured Images' ), 'footer-widgets' => __( 'Footer Widgets' ), 'full-site-editing' => __( 'Site Editor' ), 'full-width-template' => __( 'Full Width Template' ), 'post-formats' => __( 'Post Formats' ), 'sticky-post' => __( 'Sticky Post' ), 'style-variations' => __( 'Style Variations' ), 'template-editing' => __( 'Template Editing' ), 'theme-options' => __( 'Theme Options' ), ), __( 'Layout' ) => array( 'grid-layout' => __( 'Grid Layout' ), 'one-column' => __( 'One Column' ), 'two-columns' => __( 'Two Columns' ), 'three-columns' => __( 'Three Columns' ), 'four-columns' => __( 'Four Columns' ), 'left-sidebar' => __( 'Left Sidebar' ), 'right-sidebar' => __( 'Right Sidebar' ), 'wide-blocks' => __( 'Wide Blocks' ), ), ); if ( ! $api || ! current_user_can( 'install_themes' ) ) { return $features; } $feature_list = get_site_transient( 'wporg_theme_feature_list' ); if ( ! $feature_list ) { set_site_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); } if ( ! $feature_list ) { $feature_list = themes_api( 'feature_list', array() ); if ( is_wp_error( $feature_list ) ) { return $features; } } if ( ! $feature_list ) { return $features; } set_site_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS ); $category_translations = array( 'Layout' => __( 'Layout' ), 'Features' => __( 'Features' ), 'Subject' => __( 'Subject' ), ); $wporg_features = array(); // Loop over the wp.org canonical list and apply translations. foreach ( (array) $feature_list as $feature_category => $feature_items ) { if ( isset( $category_translations[ $feature_category ] ) ) { $feature_category = $category_translations[ $feature_category ]; } $wporg_features[ $feature_category ] = array(); foreach ( $feature_items as $feature ) { $wporg_features[ $feature_category ][ $feature ] = $features[ $feature_category ][ $feature ] ?? $feature; } } return $wporg_features; } /** * Retrieves theme installer pages from the WordPress.org Themes API. * * It is possible for a theme to override the Themes API result with three * filters. Assume this is for themes, which can extend on the Theme Info to * offer more choices. This is very powerful and must be used with care, when * overriding the filters. * * The first filter, {@see 'themes_api_args'}, is for the args and gives the action * as the second parameter. The hook for {@see 'themes_api_args'} must ensure that * an object is returned. * * The second filter, {@see 'themes_api'}, allows a plugin to override the WordPress.org * Theme API entirely. If `$action` is 'query_themes', 'theme_information', or 'feature_list', * an object MUST be passed. If `$action` is 'hot_tags', an array should be passed. * * Finally, the third filter, {@see 'themes_api_result'}, makes it possible to filter the * response object or array, depending on the `$action` type. * * Supported arguments per action: * * | Argument Name | 'query_themes' | 'theme_information' | 'hot_tags' | 'feature_list' | * | -------------------| :------------: | :-----------------: | :--------: | :--------------: | * | `$slug` | No | Yes | No | No | * | `$per_page` | Yes | No | No | No | * | `$page` | Yes | No | No | No | * | `$number` | No | No | Yes | No | * | `$search` | Yes | No | No | No | * | `$tag` | Yes | No | No | No | * | `$author` | Yes | No | No | No | * | `$user` | Yes | No | No | No | * | `$browse` | Yes | No | No | No | * | `$locale` | Yes | Yes | No | No | * | `$fields` | Yes | Yes | No | No | * * @since 2.8.0 * * @param string $action API action to perform: Accepts 'query_themes', 'theme_information', * 'hot_tags' or 'feature_list'. * @param array|object $args { * Optional. Array or object of arguments to serialize for the Themes API. Default empty array. * * @type string $slug The theme slug. Default empty. * @type int $per_page Number of themes per page. Default 24. * @type int $page Number of current page. Default 1. * @type int $number Number of tags to be queried. * @type string $search A search term. Default empty. * @type string $tag Tag to filter themes. Default empty. * @type string $author Username of an author to filter themes. Default empty. * @type string $user Username to query for their favorites. Default empty. * @type string $browse Browse view: 'featured', 'popular', 'updated', 'favorites'. * @type string $locale Locale to provide context-sensitive results. Default is the value of get_locale(). * @type array $fields { * Array of fields which should or should not be returned. * * @type bool $description Whether to return the theme full description. Default false. * @type bool $sections Whether to return the theme readme sections: description, installation, * FAQ, screenshots, other notes, and changelog. Default false. * @type bool $rating Whether to return the rating in percent and total number of ratings. * Default false. * @type bool $ratings Whether to return the number of rating for each star (1-5). Default false. * @type bool $downloaded Whether to return the download count. Default false. * @type bool $downloadlink Whether to return the download link for the package. Default false. * @type bool $last_updated Whether to return the date of the last update. Default false. * @type bool $tags Whether to return the assigned tags. Default false. * @type bool $homepage Whether to return the theme homepage link. Default false. * @type bool $screenshots Whether to return the screenshots. Default false. * @type int $screenshot_count Number of screenshots to return. Default 1. * @type bool $screenshot_url Whether to return the URL of the first screenshot. Default false. * @type bool $photon_screenshots Whether to return the screenshots via Photon. Default false. * @type bool $template Whether to return the slug of the parent theme. Default false. * @type bool $parent Whether to return the slug, name and homepage of the parent theme. Default false. * @type bool $versions Whether to return the list of all available versions. Default false. * @type bool $theme_url Whether to return theme's URL. Default false. * @type bool $extended_author Whether to return nicename or nicename and display name. Default false. * } * } * @return object|array|WP_Error Response object or array on success, WP_Error on failure. See the * {@link https://developer.wordpress.org/reference/functions/themes_api/ function reference article} * for more information on the make-up of possible return objects depending on the value of `$action`. */ function themes_api( $action, $args = array() ) { if ( is_array( $args ) ) { $args = (object) $args; } if ( 'query_themes' === $action ) { if ( ! isset( $args->per_page ) ) { $args->per_page = 24; } } if ( ! isset( $args->locale ) ) { $args->locale = get_user_locale(); } if ( ! isset( $args->wp_version ) ) { $args->wp_version = substr( wp_get_wp_version(), 0, 3 ); // x.y } /** * Filters arguments used to query for installer pages from the WordPress.org Themes API. * * Important: An object MUST be returned to this filter. * * @since 2.8.0 * * @param object $args Arguments used to query for installer pages from the WordPress.org Themes API. * @param string $action Requested action. Likely values are 'theme_information', * 'feature_list', or 'query_themes'. */ $args = apply_filters( 'themes_api_args', $args, $action ); /** * Filters whether to override the WordPress.org Themes API. * * Returning a non-false value will effectively short-circuit the WordPress.org API request. * * If `$action` is 'query_themes', 'theme_information', or 'feature_list', an object MUST * be passed. If `$action` is 'hot_tags', an array should be passed. * * @since 2.8.0 * * @param false|object|array $override Whether to override the WordPress.org Themes API. Default false. * @param string $action Requested action. Likely values are 'theme_information', * 'feature_list', or 'query_themes'. * @param object $args Arguments used to query for installer pages from the Themes API. */ $res = apply_filters( 'themes_api', false, $action, $args ); if ( ! $res ) { $url = 'http://api.wordpress.org/themes/info/1.2/'; $url = add_query_arg( array( 'action' => $action, 'request' => $args, ), $url ); $http_url = $url; $ssl = wp_http_supports( array( 'ssl' ) ); if ( $ssl ) { $url = set_url_scheme( $url, 'https' ); } $http_args = array( 'timeout' => 15, 'user-agent' => 'WordPress/' . wp_get_wp_version() . '; ' . home_url( '/' ), ); $request = wp_remote_get( $url, $http_args ); if ( $ssl && is_wp_error( $request ) ) { if ( ! wp_doing_ajax() ) { wp_trigger_error( __FUNCTION__, sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ), headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE ); } $request = wp_remote_get( $http_url, $http_args ); } if ( is_wp_error( $request ) ) { $res = new WP_Error( 'themes_api_failed', sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ), $request->get_error_message() ); } else { $res = json_decode( wp_remote_retrieve_body( $request ), true ); if ( is_array( $res ) ) { // Object casting is required in order to match the info/1.0 format. $res = (object) $res; } elseif ( null === $res ) { $res = new WP_Error( 'themes_api_failed', sprintf( /* translators: %s: Support forums URL. */ __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.' ), __( 'https://wordpress.org/support/forums/' ) ), wp_remote_retrieve_body( $request ) ); } if ( isset( $res->error ) ) { $res = new WP_Error( 'themes_api_failed', $res->error ); } } if ( ! is_wp_error( $res ) ) { // Back-compat for info/1.2 API, upgrade the theme objects in query_themes to objects. if ( 'query_themes' === $action ) { foreach ( $res->themes as $i => $theme ) { $res->themes[ $i ] = (object) $theme; } } // Back-compat for info/1.2 API, downgrade the feature_list result back to an array. if ( 'feature_list' === $action ) { $res = (array) $res; } } } /** * Filters the returned WordPress.org Themes API response. * * @since 2.8.0 * * @param array|stdClass|WP_Error $res WordPress.org Themes API response. * @param string $action Requested action. Likely values are 'theme_information', * 'feature_list', or 'query_themes'. * @param stdClass $args Arguments used to query for installer pages from the WordPress.org Themes API. */ return apply_filters( 'themes_api_result', $res, $action, $args ); } /** * Prepares themes for JavaScript. * * @since 3.8.0 * * @param WP_Theme[] $themes Optional. Array of theme objects to prepare. * Defaults to all allowed themes. * * @return array An associative array of theme data, sorted by name. */ function wp_prepare_themes_for_js( $themes = null ) { $current_theme = get_stylesheet(); /** * Filters theme data before it is prepared for JavaScript. * * Passing a non-empty array will result in wp_prepare_themes_for_js() returning * early with that value instead. * * @since 4.2.0 * * @param array $prepared_themes An associative array of theme data. Default empty array. * @param WP_Theme[]|null $themes An array of theme objects to prepare, if any. * @param string $current_theme The active theme slug. */ $prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme ); if ( ! empty( $prepared_themes ) ) { return $prepared_themes; } // Make sure the active theme is listed first. $prepared_themes[ $current_theme ] = array(); if ( null === $themes ) { $themes = wp_get_themes( array( 'allowed' => true ) ); if ( ! isset( $themes[ $current_theme ] ) ) { $themes[ $current_theme ] = wp_get_theme(); } } $updates = array(); $no_updates = array(); if ( ! is_multisite() && current_user_can( 'update_themes' ) ) { $updates_transient = get_site_transient( 'update_themes' ); if ( isset( $updates_transient->response ) ) { $updates = $updates_transient->response; } if ( isset( $updates_transient->no_update ) ) { $no_updates = $updates_transient->no_update; } } WP_Theme::sort_by_name( $themes ); $parents = array(); $auto_updates = (array) get_site_option( 'auto_update_themes', array() ); foreach ( $themes as $theme ) { $slug = $theme->get_stylesheet(); $encoded_slug = urlencode( $slug ); $parent = false; if ( $theme->parent() ) { $parent = $theme->parent(); $parents[ $slug ] = $parent->get_stylesheet(); $parent = $parent->display( 'Name' ); } $customize_action = null; $can_edit_theme_options = current_user_can( 'edit_theme_options' ); $can_customize = current_user_can( 'customize' ); $is_block_theme = $theme->is_block_theme(); if ( $is_block_theme && $can_edit_theme_options ) { $customize_action = admin_url( 'site-editor.php' ); if ( $current_theme !== $slug ) { $customize_action = add_query_arg( 'wp_theme_preview', $slug, $customize_action ); } } elseif ( ! $is_block_theme && $can_customize && $can_edit_theme_options ) { $customize_action = wp_customize_url( $slug ); } if ( null !== $customize_action ) { $customize_action = add_query_arg( array( 'return' => urlencode( sanitize_url( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ), ), $customize_action ); $customize_action = esc_url( $customize_action ); } $update_requires_wp = $updates[ $slug ]['requires'] ?? null; $update_requires_php = $updates[ $slug ]['requires_php'] ?? null; $auto_update = in_array( $slug, $auto_updates, true ); $auto_update_action = $auto_update ? 'disable-auto-update' : 'enable-auto-update'; if ( isset( $updates[ $slug ] ) ) { $auto_update_supported = true; $auto_update_filter_payload = (object) $updates[ $slug ]; } elseif ( isset( $no_updates[ $slug ] ) ) { $auto_update_supported = true; $auto_update_filter_payload = (object) $no_updates[ $slug ]; } else { $auto_update_supported = false; /* * Create the expected payload for the auto_update_theme filter, this is the same data * as contained within $updates or $no_updates but used when the Theme is not known. */ $auto_update_filter_payload = (object) array( 'theme' => $slug, 'new_version' => $theme->get( 'Version' ), 'url' => '', 'package' => '', 'requires' => $theme->get( 'RequiresWP' ), 'requires_php' => $theme->get( 'RequiresPHP' ), ); } $auto_update_forced = wp_is_auto_update_forced_for_item( 'theme', null, $auto_update_filter_payload ); $prepared_themes[ $slug ] = array( 'id' => $slug, 'name' => $theme->display( 'Name' ), 'screenshot' => array( $theme->get_screenshot() ), // @todo Multiple screenshots. 'description' => $theme->display( 'Description' ), 'author' => $theme->display( 'Author', false, true ), 'authorAndUri' => $theme->display( 'Author' ), 'tags' => $theme->display( 'Tags' ), 'version' => $theme->get( 'Version' ), 'compatibleWP' => is_wp_version_compatible( $theme->get( 'RequiresWP' ) ), 'compatiblePHP' => is_php_version_compatible( $theme->get( 'RequiresPHP' ) ), 'updateResponse' => array( 'compatibleWP' => is_wp_version_compatible( $update_requires_wp ), 'compatiblePHP' => is_php_version_compatible( $update_requires_php ), ), 'parent' => $parent, 'active' => $slug === $current_theme, 'hasUpdate' => isset( $updates[ $slug ] ), 'hasPackage' => isset( $updates[ $slug ] ) && ! empty( $updates[ $slug ]['package'] ), 'update' => get_theme_update_available( $theme ), 'autoupdate' => array( 'enabled' => $auto_update || $auto_update_forced, 'supported' => $auto_update_supported, 'forced' => $auto_update_forced, ), 'actions' => array( 'activate' => current_user_can( 'switch_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=activate&stylesheet=' . $encoded_slug ), 'switch-theme_' . $slug ) : null, 'customize' => $customize_action, 'delete' => ( ! is_multisite() && current_user_can( 'delete_themes' ) ) ? wp_nonce_url( admin_url( 'themes.php?action=delete&stylesheet=' . $encoded_slug ), 'delete-theme_' . $slug ) : null, 'autoupdate' => wp_is_auto_update_enabled_for_type( 'theme' ) && ! is_multisite() && current_user_can( 'update_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=' . $auto_update_action . '&stylesheet=' . $encoded_slug ), 'updates' ) : null, ), 'blockTheme' => $theme->is_block_theme(), ); } // Remove 'delete' action if theme has an active child. if ( ! empty( $parents ) && array_key_exists( $current_theme, $parents ) ) { unset( $prepared_themes[ $parents[ $current_theme ] ]['actions']['delete'] ); } /** * Filters the themes prepared for JavaScript, for themes.php. * * Could be useful for changing the order, which is by name by default. * * @since 3.8.0 * * @param array $prepared_themes Array of theme data. */ $prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes ); $prepared_themes = array_values( $prepared_themes ); return array_filter( $prepared_themes ); } /** * Prints JS templates for the theme-browsing UI in the Customizer. * * @since 4.2.0 */ function customize_themes_print_templates() { ?> delete( $extension ); if ( ! $result ) { return new WP_Error( 'could_not_resume_theme', __( 'Could not resume the theme.' ) ); } return true; } /** * Renders an admin notice in case some themes have been paused due to errors. * * @since 5.2.0 * * @global string $pagenow The filename of the current screen. * @global WP_Paused_Extensions_Storage $_paused_themes */ function paused_themes_notice() { if ( 'themes.php' === $GLOBALS['pagenow'] ) { return; } if ( ! current_user_can( 'resume_themes' ) ) { return; } if ( ! isset( $GLOBALS['_paused_themes'] ) || empty( $GLOBALS['_paused_themes'] ) ) { return; } $message = sprintf( '

        %s
        %s

        %s

        ', __( 'One or more themes failed to load properly.' ), __( 'You can find more details and make changes on the Themes screen.' ), esc_url( admin_url( 'themes.php' ) ), __( 'Go to the Themes screen' ) ); wp_admin_notice( $message, array( 'type' => 'error', 'paragraph_wrap' => false, ) ); } includes/template.php000064400000302544152213653150010711 0ustar00 'category', 'descendants_and_self' => $descendants_and_self, 'selected_cats' => $selected_cats, 'popular_cats' => $popular_cats, 'walker' => $walker, 'checked_ontop' => $checked_ontop, ) ); } /** * Outputs an unordered list of checkbox input elements labelled with term names. * * Taxonomy-independent version of wp_category_checklist(). * * @since 3.0.0 * @since 4.4.0 Introduced the `$echo` argument. * * @param int $post_id Optional. Post ID. Default 0. * @param array|string $args { * Optional. Array or string of arguments for generating a terms checklist. Default empty array. * * @type int $descendants_and_self ID of the category to output along with its descendants. * Default 0. * @type int[] $selected_cats Array of category IDs to mark as checked. Default false. * @type int[] $popular_cats Array of category IDs to receive the "popular-category" class. * Default false. * @type Walker $walker Walker object to use to build the output. Default empty which * results in a Walker_Category_Checklist instance being used. * @type string $taxonomy Taxonomy to generate the checklist for. Default 'category'. * @type bool $checked_ontop Whether to move checked items out of the hierarchy and to * the top of the list. Default true. * @type bool $echo Whether to echo the generated markup. False to return the markup instead * of echoing it. Default true. * } * @return string HTML list of input elements. */ function wp_terms_checklist( $post_id = 0, $args = array() ) { $defaults = array( 'descendants_and_self' => 0, 'selected_cats' => false, 'popular_cats' => false, 'walker' => null, 'taxonomy' => 'category', 'checked_ontop' => true, 'echo' => true, ); /** * Filters the taxonomy terms checklist arguments. * * @since 3.4.0 * * @see wp_terms_checklist() * * @param array|string $args An array or string of arguments. * @param int $post_id The post ID. */ $params = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); $parsed_args = wp_parse_args( $params, $defaults ); if ( empty( $parsed_args['walker'] ) || ! ( $parsed_args['walker'] instanceof Walker ) ) { $walker = new Walker_Category_Checklist(); } else { $walker = $parsed_args['walker']; } $taxonomy = $parsed_args['taxonomy']; $descendants_and_self = (int) $parsed_args['descendants_and_self']; $args = array( 'taxonomy' => $taxonomy ); $tax = get_taxonomy( $taxonomy ); $args['disabled'] = ! current_user_can( $tax->cap->assign_terms ); $args['list_only'] = ! empty( $parsed_args['list_only'] ); if ( is_array( $parsed_args['selected_cats'] ) ) { $args['selected_cats'] = array_map( 'intval', $parsed_args['selected_cats'] ); } elseif ( $post_id ) { $args['selected_cats'] = wp_get_object_terms( $post_id, $taxonomy, array_merge( $args, array( 'fields' => 'ids' ) ) ); } else { $args['selected_cats'] = array(); } if ( is_array( $parsed_args['popular_cats'] ) ) { $args['popular_cats'] = array_map( 'intval', $parsed_args['popular_cats'] ); } else { $args['popular_cats'] = get_terms( array( 'taxonomy' => $taxonomy, 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false, ) ); } if ( $descendants_and_self ) { $categories = (array) get_terms( array( 'taxonomy' => $taxonomy, 'child_of' => $descendants_and_self, 'hierarchical' => 0, 'hide_empty' => 0, ) ); $self = get_term( $descendants_and_self, $taxonomy ); array_unshift( $categories, $self ); } else { $categories = (array) get_terms( array( 'taxonomy' => $taxonomy, 'get' => 'all', ) ); } $output = ''; if ( $parsed_args['checked_ontop'] ) { /* * Post-process $categories rather than adding an exclude to the get_terms() query * to keep the query the same across all posts (for any query cache). */ $checked_categories = array(); $keys = array_keys( $categories ); foreach ( $keys as $k ) { if ( in_array( $categories[ $k ]->term_id, $args['selected_cats'], true ) ) { $checked_categories[] = $categories[ $k ]; unset( $categories[ $k ] ); } } // Put checked categories on top. $output .= $walker->walk( $checked_categories, 0, $args ); } // Then the rest of them. $output .= $walker->walk( $categories, 0, $args ); if ( $parsed_args['echo'] ) { echo $output; } return $output; } /** * Retrieves a list of the most popular terms from the specified taxonomy. * * If the `$display` argument is true then the elements for a list of checkbox * `` elements labelled with the names of the selected terms is output. * If the `$post_ID` global is not empty then the terms associated with that * post will be marked as checked. * * @since 2.5.0 * * @param string $taxonomy Taxonomy to retrieve terms from. * @param int $default_term Optional. Not used. * @param int $number Optional. Number of terms to retrieve. Default 10. * @param bool $display Optional. Whether to display the list as well. Default true. * @return int[] Array of popular term IDs. */ function wp_popular_terms_checklist( $taxonomy, $default_term = 0, $number = 10, $display = true ) { $post = get_post(); if ( $post && $post->ID ) { $checked_terms = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) ); } else { $checked_terms = array(); } $terms = get_terms( array( 'taxonomy' => $taxonomy, 'orderby' => 'count', 'order' => 'DESC', 'number' => $number, 'hierarchical' => false, ) ); $tax = get_taxonomy( $taxonomy ); $popular_ids = array(); foreach ( (array) $terms as $term ) { $popular_ids[] = $term->term_id; if ( ! $display ) { // Hack for Ajax use. continue; } $id = "popular-$taxonomy-$term->term_id"; $checked = in_array( $term->term_id, $checked_terms, true ) ? 'checked="checked"' : ''; ?> 'link_category', 'orderby' => 'name', 'hide_empty' => 0, ) ); if ( empty( $categories ) ) { return; } foreach ( $categories as $category ) { $cat_id = $category->term_id; /** This filter is documented in wp-includes/category-template.php */ $name = esc_html( apply_filters( 'the_category', $category->name, '', '' ) ); $checked = in_array( $cat_id, $checked_categories, true ) ? ' checked="checked"' : ''; echo ''; } } /** * Adds hidden fields with the data for use in the inline editor for posts and pages. * * @since 2.7.0 * * @param WP_Post $post Post object. */ function get_inline_data( $post ) { $post_type_object = get_post_type_object( $post->post_type ); if ( ! current_user_can( 'edit_post', $post->ID ) ) { return; } $title = esc_textarea( trim( $post->post_title ) ); echo ' '; } /** * Outputs the in-line comment reply-to form in the Comments list table. * * @since 2.7.0 * * @global WP_List_Table $wp_list_table * * @param int $position Optional. The value of the 'position' input field. Default 1. * @param bool $checkbox Optional. The value of the 'checkbox' input field. Default false. * @param string $mode Optional. If set to 'single', will use WP_Post_Comments_List_Table, * otherwise WP_Comments_List_Table. Default 'single'. * @param bool $table_row Optional. Whether to use a table instead of a div element. Default true. */ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $table_row = true ) { global $wp_list_table; /** * Filters the in-line comment reply-to form output in the Comments * list table. * * Returning a non-empty value here will short-circuit display * of the in-line comment-reply form in the Comments list table, * echoing the returned value instead. * * @since 2.7.0 * * @see wp_comment_reply() * * @param string $content The reply-to form content. * @param array $args An array of default args. */ $content = apply_filters( 'wp_comment_reply', '', array( 'position' => $position, 'checkbox' => $checkbox, 'mode' => $mode, ) ); if ( ! empty( $content ) ) { echo $content; return; } if ( ! $wp_list_table ) { if ( 'single' === $mode ) { $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table' ); } else { $wp_list_table = _get_list_table( 'WP_Comments_List_Table' ); } } ?>
        ' . _x( 'Name', 'meta name' ) . ' ' . __( 'Value' ) . ' '; // TBODY needed for list-manipulation JS. return; } $count = 0; ?>
        . $entry['meta_id'] = (int) $entry['meta_id']; $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] ); $r .= "\n\t"; $r .= "\n\t\t"; $r .= "\n\t\t
        "; $r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) ); $r .= "\n\t\t"; $r .= get_submit_button( __( 'Update' ), 'updatemeta small', "meta-{$entry['meta_id']}-submit", false, array( 'data-wp-lists' => "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce" ) ); $r .= '
        '; $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); $r .= ''; $r .= "\n\t\t\n\t"; return $r; } /** * Prints the form in the Custom Fields meta box. * * @since 1.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param WP_Post $post Optional. The post being edited. */ function meta_form( $post = null ) { global $wpdb; $post = get_post( $post ); /** * Filters values for the meta key dropdown in the Custom Fields meta box. * * Returning a non-null value will effectively short-circuit and avoid a * potentially expensive query against postmeta. * * @since 4.4.0 * * @param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null. * @param WP_Post $post The current post object. */ $keys = apply_filters( 'postmeta_form_keys', null, $post ); if ( null === $keys ) { /** * Filters the number of custom fields to retrieve for the drop-down * in the Custom Fields meta box. * * @since 2.1.0 * * @param int $limit Number of custom fields to retrieve. Default 30. */ $limit = apply_filters( 'postmeta_form_limit', 30 ); $keys = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT meta_key FROM $wpdb->postmeta WHERE meta_key NOT BETWEEN '_' AND '_z' HAVING meta_key NOT LIKE %s ORDER BY meta_key LIMIT %d", $wpdb->esc_like( '_' ) . '%', $limit ) ); } if ( $keys ) { natcasesort( $keys ); } ?>

        'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta', ) ); ?>
        post_status, array( 'draft', 'pending' ), true ) && ( ! $post->post_date_gmt || '0000-00-00 00:00:00' === $post->post_date_gmt ) ); } $tab_index_attribute = ''; if ( (int) $tab_index > 0 ) { $tab_index_attribute = " tabindex=\"$tab_index\""; } $post_date = ( $for_post ) ? $post->post_date : get_comment()->comment_date; $jj = ( $edit ) ? mysql2date( 'd', $post_date, false ) : current_time( 'd' ); $mm = ( $edit ) ? mysql2date( 'm', $post_date, false ) : current_time( 'm' ); $aa = ( $edit ) ? mysql2date( 'Y', $post_date, false ) : current_time( 'Y' ); $hh = ( $edit ) ? mysql2date( 'H', $post_date, false ) : current_time( 'H' ); $mn = ( $edit ) ? mysql2date( 'i', $post_date, false ) : current_time( 'i' ); $ss = ( $edit ) ? mysql2date( 's', $post_date, false ) : current_time( 's' ); $cur_jj = current_time( 'd' ); $cur_mm = current_time( 'm' ); $cur_aa = current_time( 'Y' ); $cur_hh = current_time( 'H' ); $cur_mn = current_time( 'i' ); $month = ''; $day = ''; $year = ''; $hour = ''; $minute = ''; echo '
        '; /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */ printf( __( '%1$s %2$s, %3$s at %4$s:%5$s' ), $month, $day, $year, $hour, $minute ); echo '
        '; if ( $multi ) { return; } echo "\n\n"; $map = array( 'mm' => array( $mm, $cur_mm ), 'jj' => array( $jj, $cur_jj ), 'aa' => array( $aa, $cur_aa ), 'hh' => array( $hh, $cur_hh ), 'mn' => array( $mn, $cur_mn ), ); foreach ( $map as $timeunit => $value ) { list( $unit, $curr ) = $value; echo '' . "\n"; $cur_timeunit = 'cur_' . $timeunit; echo '' . "\n"; } ?>

        " . esc_html( $template ) . ''; } } /** * Prints out option HTML elements for the page parents drop-down. * * @since 1.5.0 * @since 4.4.0 `$post` argument was added. * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $default_page Optional. The default page ID to be pre-selected. Default 0. * @param int $parent_page Optional. The parent page ID. Default 0. * @param int $level Optional. Page depth level. Default 0. * @param int|WP_Post $post Post ID or WP_Post object. * @return void|false Void on success, false if the page has no children. */ function parent_dropdown( $default_page = 0, $parent_page = 0, $level = 0, $post = null ) { global $wpdb; $post = get_post( $post ); $items = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_parent, post_title FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' ORDER BY menu_order", $parent_page ) ); if ( $items ) { foreach ( $items as $item ) { // A page cannot be its own parent. if ( $post && $post->ID && (int) $item->ID === $post->ID ) { continue; } $pad = str_repeat( ' ', $level * 3 ); $selected = selected( $default_page, $item->ID, false ); echo "\n\t'; parent_dropdown( $default_page, $item->ID, $level + 1 ); } } else { return false; } } /** * Prints out option HTML elements for role selectors. * * @since 2.1.0 * @since 7.0.0 Added $editable_roles parameter. * * @param string $selected Slug for the role that should be already selected. * @param array $editable_roles Array of roles to include in the dropdown. Defaults to all * roles the current user is allowed to edit. */ function wp_dropdown_roles( $selected = '', $editable_roles = null ) { $r = ''; if ( null === $editable_roles ) { $editable_roles = array_reverse( get_editable_roles() ); } foreach ( $editable_roles as $role => $details ) { $name = translate_user_role( $details['name'] ); // Preselect specified role. if ( $selected === $role ) { $r .= "\n\t"; } else { $r .= "\n\t"; } } echo $r; } /** * Outputs the form used by the importers to accept the data to be imported. * * @since 2.0.0 * * @param string $action The action attribute for the form. */ function wp_import_upload_form( $action ) { /** * Filters the maximum allowed upload size for import files. * * @since 2.3.0 * * @see wp_max_upload_size() * * @param int $max_upload_size Allowed upload size. Default 1 MB. */ $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); $size = size_format( $bytes ); $upload_dir = wp_upload_dir(); if ( ! empty( $upload_dir['error'] ) ) : $upload_directory_error = '

        ' . __( 'Before you can upload your import file, you will need to fix the following error:' ) . '

        '; $upload_directory_error .= '

        ' . $upload_dir['error'] . '

        '; wp_admin_notice( $upload_directory_error, array( 'additional_classes' => array( 'error' ), 'paragraph_wrap' => false, ) ); else : ?>

        %s (%s)', __( 'Choose a file from your computer:' ), /* translators: %s: Maximum allowed file size. */ sprintf( __( 'Maximum size: %s' ), $size ) ); ?>

        id ) ) { return; } $page = $screen->id; if ( ! isset( $wp_meta_boxes ) ) { $wp_meta_boxes = array(); } if ( ! isset( $wp_meta_boxes[ $page ] ) ) { $wp_meta_boxes[ $page ] = array(); } if ( ! isset( $wp_meta_boxes[ $page ][ $context ] ) ) { $wp_meta_boxes[ $page ][ $context ] = array(); } foreach ( array_keys( $wp_meta_boxes[ $page ] ) as $a_context ) { foreach ( array( 'high', 'core', 'default', 'low' ) as $a_priority ) { if ( ! isset( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] ) ) { continue; } // If a core box was previously removed, don't add. if ( ( 'core' === $priority || 'sorted' === $priority ) && false === $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] ) { return; } // If a core box was previously added by a plugin, don't add. if ( 'core' === $priority ) { /* * If the box was added with default priority, give it core priority * to maintain sort order. */ if ( 'default' === $a_priority ) { $wp_meta_boxes[ $page ][ $a_context ]['core'][ $id ] = $wp_meta_boxes[ $page ][ $a_context ]['default'][ $id ]; unset( $wp_meta_boxes[ $page ][ $a_context ]['default'][ $id ] ); } return; } // If no priority given and ID already present, use existing priority. if ( empty( $priority ) ) { $priority = $a_priority; /* * Else, if we're adding to the sorted priority, we don't know the title * or callback. Grab them from the previously added context/priority. */ } elseif ( 'sorted' === $priority ) { $title = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]['title']; $callback = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]['callback']; $callback_args = $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ]['args']; } // An ID can be in only one priority and one context. if ( $priority !== $a_priority || $context !== $a_context ) { unset( $wp_meta_boxes[ $page ][ $a_context ][ $a_priority ][ $id ] ); } } } if ( empty( $priority ) ) { $priority = 'low'; } if ( ! isset( $wp_meta_boxes[ $page ][ $context ][ $priority ] ) ) { $wp_meta_boxes[ $page ][ $context ][ $priority ] = array(); } $wp_meta_boxes[ $page ][ $context ][ $priority ][ $id ] = array( 'id' => $id, 'title' => $title, 'callback' => $callback, 'args' => $callback_args, ); } /** * Renders a "fake" meta box with an information message, * shown on the block editor, when an incompatible meta box is found. * * @since 5.0.0 * * @param mixed $data_object The data object being rendered on this screen. * @param array $box { * Custom formats meta box arguments. * * @type string $id Meta box 'id' attribute. * @type string $title Meta box title. * @type callable $old_callback The original callback for this meta box. * @type array $args Extra meta box arguments. * } */ function do_block_editor_incompatible_meta_box( $data_object, $box ) { $plugin = _get_plugin_from_callback( $box['old_callback'] ); $plugins = get_plugins(); echo '

        '; if ( $plugin ) { /* translators: %s: The name of the plugin that generated this meta box. */ printf( __( 'This meta box, from the %s plugin, is not compatible with the block editor.' ), "{$plugin['Name']}" ); } else { _e( 'This meta box is not compatible with the block editor.' ); } echo '

        '; if ( empty( $plugins['classic-editor/classic-editor.php'] ) ) { if ( current_user_can( 'install_plugins' ) ) { $install_url = wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ); echo '

        '; /* translators: %s: A link to install the Classic Editor plugin. */ printf( __( 'Please install the Classic Editor plugin to use this meta box.' ), esc_url( $install_url ) ); echo '

        '; } } elseif ( is_plugin_inactive( 'classic-editor/classic-editor.php' ) ) { if ( current_user_can( 'activate_plugins' ) ) { $activate_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=classic-editor/classic-editor.php' ), 'activate-plugin_classic-editor/classic-editor.php' ); echo '

        '; /* translators: %s: A link to activate the Classic Editor plugin. */ printf( __( 'Please activate the Classic Editor plugin to use this meta box.' ), esc_url( $activate_url ) ); echo '

        '; } } elseif ( $data_object instanceof WP_Post ) { $edit_url = add_query_arg( array( 'classic-editor' => '', 'classic-editor__forget' => '', ), get_edit_post_link( $data_object ) ); echo '

        '; /* translators: %s: A link to use the Classic Editor plugin. */ printf( __( 'Please open the classic editor to use this meta box.' ), esc_url( $edit_url ) ); echo '

        '; } } /** * Internal helper function to find the plugin from a meta box callback. * * @since 5.0.0 * * @access private * * @param callable $callback The callback function to check. * @return array|null The plugin that the callback belongs to, or null if it doesn't belong to a plugin. */ function _get_plugin_from_callback( $callback ) { try { if ( is_array( $callback ) ) { $reflection = new ReflectionMethod( $callback[0], $callback[1] ); } elseif ( is_string( $callback ) && str_contains( $callback, '::' ) ) { $reflection = new ReflectionMethod( $callback ); } else { $reflection = new ReflectionFunction( $callback ); } } catch ( ReflectionException $exception ) { // We could not properly reflect on the callable, so we abort here. return null; } // Don't show an error if it's an internal PHP function. if ( ! $reflection->isInternal() ) { // Only show errors if the meta box was registered by a plugin. $filename = wp_normalize_path( $reflection->getFileName() ); $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR ); if ( str_starts_with( $filename, $plugin_dir ) ) { $filename = str_replace( $plugin_dir, '', $filename ); $filename = preg_replace( '|^/([^/]*/).*$|', '\\1', $filename ); $plugins = get_plugins(); foreach ( $plugins as $name => $plugin ) { if ( str_starts_with( $name, $filename ) ) { return $plugin; } } } } return null; } /** * Meta-Box template function. * * @since 2.5.0 * * @global array $wp_meta_boxes Global meta box state. * * @param string|WP_Screen $screen The screen identifier. If you have used add_menu_page() or * add_submenu_page() to create a new screen (and hence screen_id) * make sure your menu slug conforms to the limits of sanitize_key() * otherwise the 'screen' menu may not correctly render on your page. * @param string $context The screen context for which to display meta boxes. * @param mixed $data_object Gets passed to the meta box callback function as the first parameter. * Often this is the object that's the focus of the current screen, * for example a `WP_Post` or `WP_Comment` object. * @return int Number of meta_boxes. */ function do_meta_boxes( $screen, $context, $data_object ) { global $wp_meta_boxes; static $already_sorted = false; if ( empty( $screen ) ) { $screen = get_current_screen(); } elseif ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } $page = $screen->id; $hidden = get_hidden_meta_boxes( $screen ); printf( '
        ', esc_attr( $context ) ); /* * Grab the ones the user has manually sorted. * Pull them out of their previous context/priority and into the one the user chose. */ $sorted = get_user_option( "meta-box-order_$page" ); if ( ! $already_sorted && $sorted ) { foreach ( $sorted as $box_context => $ids ) { foreach ( explode( ',', $ids ) as $id ) { if ( $id && 'dashboard_browser_nag' !== $id ) { add_meta_box( $id, null, null, $screen, $box_context, 'sorted' ); } } } } $already_sorted = true; $i = 0; if ( isset( $wp_meta_boxes[ $page ][ $context ] ) ) { foreach ( array( 'high', 'sorted', 'core', 'default', 'low' ) as $priority ) { if ( isset( $wp_meta_boxes[ $page ][ $context ][ $priority ] ) ) { foreach ( (array) $wp_meta_boxes[ $page ][ $context ][ $priority ] as $box ) { if ( false === $box || ! $box['title'] ) { continue; } $block_compatible = true; if ( is_array( $box['args'] ) ) { // If a meta box is just here for back compat, don't show it in the block editor. if ( $screen->is_block_editor() && isset( $box['args']['__back_compat_meta_box'] ) && $box['args']['__back_compat_meta_box'] ) { continue; } if ( isset( $box['args']['__block_editor_compatible_meta_box'] ) ) { $block_compatible = (bool) $box['args']['__block_editor_compatible_meta_box']; unset( $box['args']['__block_editor_compatible_meta_box'] ); } // If the meta box is declared as incompatible with the block editor, override the callback function. if ( ! $block_compatible && $screen->is_block_editor() ) { $box['old_callback'] = $box['callback']; $box['callback'] = 'do_block_editor_incompatible_meta_box'; } if ( isset( $box['args']['__back_compat_meta_box'] ) ) { $block_compatible = $block_compatible || (bool) $box['args']['__back_compat_meta_box']; unset( $box['args']['__back_compat_meta_box'] ); } } ++$i; // get_hidden_meta_boxes() doesn't apply in the block editor. $hidden_class = ( ! $screen->is_block_editor() && in_array( $box['id'], $hidden, true ) ) ? ' hide-if-js' : ''; echo '
        ' . "\n"; echo '
        '; echo '

        '; if ( 'dashboard_php_nag' === $box['id'] ) { echo ''; echo '' . /* translators: Hidden accessibility text. */ __( 'Warning:' ) . ' '; } echo $box['title']; echo "

        \n"; if ( 'dashboard_browser_nag' !== $box['id'] ) { $widget_title = $box['title']; if ( is_array( $box['args'] ) && isset( $box['args']['__widget_basename'] ) ) { $widget_title = $box['args']['__widget_basename']; // Do not pass this parameter to the user callback function. unset( $box['args']['__widget_basename'] ); } echo '
        '; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
        '; } echo '
        '; echo '
        ' . "\n"; if ( WP_DEBUG && ! $block_compatible && 'edit' === $screen->parent_base && ! $screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) { $plugin = _get_plugin_from_callback( $box['callback'] ); if ( $plugin ) { $meta_box_not_compatible_message = sprintf( /* translators: %s: The name of the plugin that generated this meta box. */ __( 'This meta box, from the %s plugin, is not compatible with the block editor.' ), "{$plugin['Name']}" ); wp_admin_notice( $meta_box_not_compatible_message, array( 'additional_classes' => array( 'error', 'inline' ), ) ); } } call_user_func( $box['callback'], $data_object, $box ); echo "
        \n"; echo "
        \n"; } } } } echo '
        '; return $i; } /** * Removes a meta box from one or more screens. * * @since 2.6.0 * @since 4.4.0 The `$screen` parameter now accepts an array of screen IDs. * * @global array $wp_meta_boxes Global meta box state. * * @param string $id Meta box ID (used in the 'id' attribute for the meta box). * @param string|array|WP_Screen $screen The screen or screens on which the meta box is shown (such as a * post type, 'link', or 'comment'). Accepts a single screen ID, * WP_Screen object, or array of screen IDs. * @param string $context The context within the screen where the box is set to display. * Contexts vary from screen to screen. Post edit screen contexts * include 'normal', 'side', and 'advanced'. Comments screen contexts * include 'normal' and 'side'. Menus meta boxes (accordion sections) * all use the 'side' context. */ function remove_meta_box( $id, $screen, $context ) { global $wp_meta_boxes; if ( empty( $screen ) ) { $screen = get_current_screen(); } elseif ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } elseif ( is_array( $screen ) ) { foreach ( $screen as $single_screen ) { remove_meta_box( $id, $single_screen, $context ); } } if ( ! isset( $screen->id ) ) { return; } $page = $screen->id; if ( ! isset( $wp_meta_boxes ) ) { $wp_meta_boxes = array(); } if ( ! isset( $wp_meta_boxes[ $page ] ) ) { $wp_meta_boxes[ $page ] = array(); } if ( ! isset( $wp_meta_boxes[ $page ][ $context ] ) ) { $wp_meta_boxes[ $page ][ $context ] = array(); } foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) { $wp_meta_boxes[ $page ][ $context ][ $priority ][ $id ] = false; } } /** * Meta Box Accordion Template Function. * * Largely made up of abstracted code from do_meta_boxes(), this * function serves to build meta boxes as list items for display as * a collapsible accordion. * * @since 3.6.0 * * @uses global $wp_meta_boxes Used to retrieve registered meta boxes. * * @param string|object $screen The screen identifier. * @param string $context The screen context for which to display accordion sections. * @param mixed $data_object Gets passed to the section callback function as the first parameter. * @return int Number of meta boxes as accordion sections. */ function do_accordion_sections( $screen, $context, $data_object ) { global $wp_meta_boxes; wp_enqueue_script( 'accordion' ); if ( empty( $screen ) ) { $screen = get_current_screen(); } elseif ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } $page = $screen->id; $hidden = get_hidden_meta_boxes( $screen ); ?>
        $id, 'title' => $title, 'callback' => $callback, 'before_section' => '', 'after_section' => '', 'section_class' => '', ); $section = wp_parse_args( $args, $defaults ); if ( 'misc' === $page ) { _deprecated_argument( __FUNCTION__, '3.0.0', sprintf( /* translators: %s: misc */ __( 'The "%s" options group has been removed. Use another settings group.' ), 'misc' ) ); $page = 'general'; } if ( 'privacy' === $page ) { _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( /* translators: %s: privacy */ __( 'The "%s" options group has been removed. Use another settings group.' ), 'privacy' ) ); $page = 'reading'; } $wp_settings_sections[ $page ][ $id ] = $section; } /** * Adds a new field to a section of a settings page. * * Part of the Settings API. Use this to define a settings field that will show * as part of a settings section inside a settings page. The fields are shown using * do_settings_fields() in do_settings_sections(). * * The $callback argument should be the name of a function that echoes out the * HTML input tags for this setting field. Use get_option() to retrieve existing * values to show. * * @since 2.7.0 * @since 4.2.0 The `$class` argument was added. * * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections. * * @param string $id Slug-name to identify the field. Used in the 'id' attribute of tags. * @param string $title Formatted title of the field. Shown as the label for the field * during output. * @param callable $callback Function that fills the field with the desired form inputs. The * function should echo its output. * @param string $page The slug-name of the settings page on which to show the section * (general, reading, writing, ...). * @param string $section Optional. The slug-name of the section of the settings page * in which to show the box. Default 'default'. * @param array $args { * Optional. Extra arguments that get passed to the callback function. * * @type string $label_for When supplied, the setting title will be wrapped * in a `","")+' ',o=t("
        ").attr("role","alert").attr("tabindex",-1).addClass("notice notice-success notice-alt").append(t("

        ").addClass("application-password-display").html(a)).append("

        "+wp.i18n.__("Be sure to save this in a safe location. You will not be able to retrieve it.")+"

        "),t("strong",o).text(e.name),t("input",o).val(e.password),n.replaceWith(o),o.trigger("focus"))}).fail(function(e,a,o){var s=o,p=null,s=(e.responseJSON&&(p=e.responseJSON).message&&(s=p.message),t("
        ").attr("role","alert").addClass("notice notice-error").append(t("

        ").text(s)));t("h1").after(s),r.removeProp("aria-disabled",!1).removeClass("disabled"),wp.hooks.doAction("wp_application_passwords_approve_app_request_error",p,a,o,e)})))}),e.on("click",function(e){e.preventDefault(),wp.hooks.doAction("wp_application_passwords_reject_app",i),window.location=s.reject}),n.on("submit",function(e){e.preventDefault()})}(jQuery,authApp);js/revisions.min.js000064400000043741152213653150010335 0ustar00/*! This file is auto-generated */ window.wp=window.wp||{},function(a){var s=wp.revisions={model:{},view:{},controller:{}};s.settings=window._wpRevisionsSettings||{},s.debug=!1,s.log=function(){window.console&&s.debug&&window.console.log.apply(window.console,arguments)},a.fn.allOffsets=function(){var e=this.offset()||{top:0,left:0},i=a(window);return _.extend(e,{right:i.width()-e.left-this.outerWidth(),bottom:i.height()-e.top-this.outerHeight()})},a.fn.allPositions=function(){var e=this.position()||{top:0,left:0},i=this.parent();return _.extend(e,{right:i.outerWidth()-e.left-this.outerWidth(),bottom:i.outerHeight()-e.top-this.outerHeight()})},s.model.Slider=Backbone.Model.extend({defaults:{value:null,values:null,min:0,max:1,step:1,range:!1,compareTwoMode:!1},initialize:function(e){this.frame=e.frame,this.revisions=e.revisions,this.listenTo(this.frame,"update:revisions",this.receiveRevisions),this.listenTo(this.frame,"change:compareTwoMode",this.updateMode),this.on("change:from",this.handleLocalChanges),this.on("change:to",this.handleLocalChanges),this.on("change:compareTwoMode",this.updateSliderSettings),this.on("update:revisions",this.updateSliderSettings),this.on("change:hoveredRevision",this.hoverRevision),this.set({max:this.revisions.length-1,compareTwoMode:this.frame.get("compareTwoMode"),from:this.frame.get("from"),to:this.frame.get("to")}),this.updateSliderSettings()},getSliderValue:function(e,i){return isRtl?this.revisions.length-this.revisions.indexOf(this.get(e))-1:this.revisions.indexOf(this.get(i))},updateSliderSettings:function(){this.get("compareTwoMode")?this.set({values:[this.getSliderValue("to","from"),this.getSliderValue("from","to")],value:null,range:!0}):this.set({value:this.getSliderValue("to","to"),values:null,range:!1}),this.trigger("update:slider")},hoverRevision:function(e,i){this.trigger("hovered:revision",i)},updateMode:function(e,i){this.set({compareTwoMode:i})},handleLocalChanges:function(){this.frame.set({from:this.get("from"),to:this.get("to")})},receiveRevisions:function(e,i){this.get("from")===e&&this.get("to")===i||(this.set({from:e,to:i},{silent:!0}),this.trigger("update:revisions",e,i))}}),s.model.Tooltip=Backbone.Model.extend({defaults:{revision:null,offset:{},hovering:!1,scrubbing:!1},initialize:function(e){this.frame=e.frame,this.revisions=e.revisions,this.slider=e.slider,this.listenTo(this.slider,"hovered:revision",this.updateRevision),this.listenTo(this.slider,"change:hovering",this.setHovering),this.listenTo(this.slider,"change:scrubbing",this.setScrubbing)},updateRevision:function(e){this.set({revision:e})},setHovering:function(e,i){this.set({hovering:i})},setScrubbing:function(e,i){this.set({scrubbing:i})}}),s.model.Revision=Backbone.Model.extend({}),s.model.Revisions=Backbone.Collection.extend({model:s.model.Revision,initialize:function(){_.bindAll(this,"next","prev")},next:function(e){e=this.indexOf(e);if(-1!==e&&e!==this.length-1)return this.at(e+1)},prev:function(e){e=this.indexOf(e);if(-1!==e&&0!==e)return this.at(e-1)}}),s.model.Field=Backbone.Model.extend({}),s.model.Fields=Backbone.Collection.extend({model:s.model.Field}),s.model.Diff=Backbone.Model.extend({initialize:function(){var e=this.get("fields");this.unset("fields"),this.fields=new s.model.Fields(e)}}),s.model.Diffs=Backbone.Collection.extend({initialize:function(e,i){_.bindAll(this,"getClosestUnloaded"),this.loadAll=_.once(this._loadAll),this.revisions=i.revisions,this.postId=i.postId,this.requests={}},model:s.model.Diff,ensure:function(e,i){var t=this.get(e),s=this.requests[e],o=a.Deferred(),n={},r=e.split(":")[0],l=e.split(":")[1];return n[e]=!0,wp.revisions.log("ensure",e),this.trigger("ensure",n,r,l,o.promise()),t?o.resolveWith(i,[t]):(this.trigger("ensure:load",n,r,l,o.promise()),_.each(n,_.bind(function(e){this.requests[e]&&delete n[e],this.get(e)&&delete n[e]},this)),s||(n[e]=!0,s=this.load(_.keys(n))),s.done(_.bind(function(){o.resolveWith(i,[this.get(e)])},this)).fail(_.bind(function(){o.reject()}))),o.promise()},getClosestUnloaded:function(e,i){var t=this;return _.chain([0].concat(e)).initial().zip(e).sortBy(function(e){return Math.abs(i-e[1])}).map(function(e){return e.join(":")}).filter(function(e){return _.isUndefined(t.get(e))&&!t.requests[e]}).value()},_loadAll:function(e,i,t){var s=this,o=a.Deferred(),n=_.first(this.getClosestUnloaded(e,i),t);return 0<_.size(n)?this.load(n).done(function(){s._loadAll(e,i,t).done(function(){o.resolve()})}).fail(function(){1===t?o.reject():s._loadAll(e,i,Math.ceil(t/2)).done(function(){o.resolve()})}):o.resolve(),o},load:function(e){return wp.revisions.log("load",e),this.fetch({data:{compare:e},remove:!1}).done(function(){wp.revisions.log("load:complete",e)})},sync:function(e,i,t){var s,o;return"read"===e?((t=t||{}).context=this,t.data=_.extend(t.data||{},{action:"get-revision-diffs",post_id:this.postId}),s=wp.ajax.send(t),o=this.requests,t.data.compare&&_.each(t.data.compare,function(e){o[e]=s}),s.always(function(){t.data.compare&&_.each(t.data.compare,function(e){delete o[e]})}),s):Backbone.Model.prototype.sync.apply(this,arguments)}}),s.model.FrameState=Backbone.Model.extend({defaults:{loading:!1,error:!1,compareTwoMode:!1},initialize:function(e,i){var t=this.get("initialDiffState");_.bindAll(this,"receiveDiff"),this._debouncedEnsureDiff=_.debounce(this._ensureDiff,200),this.revisions=i.revisions,this.diffs=new s.model.Diffs([],{revisions:this.revisions,postId:this.get("postId")}),this.diffs.set(this.get("diffData")),this.listenTo(this,"change:from",this.changeRevisionHandler),this.listenTo(this,"change:to",this.changeRevisionHandler),this.listenTo(this,"change:compareTwoMode",this.changeMode),this.listenTo(this,"update:revisions",this.updatedRevisions),this.listenTo(this.diffs,"ensure:load",this.updateLoadingStatus),this.listenTo(this,"update:diff",this.updateLoadingStatus),this.set({to:this.revisions.get(t.to),from:this.revisions.get(t.from),compareTwoMode:t.compareTwoMode}),window.history&&window.history.pushState&&(this.router=new s.Router({model:this}),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({pushState:!0}))},updateLoadingStatus:function(){this.set("error",!1),this.set("loading",!this.diff())},changeMode:function(e,i){var t=this.revisions.indexOf(this.get("to"));i&&0===t&&this.set({from:this.revisions.at(t),to:this.revisions.at(t+1)}),i||0===t||this.set({from:this.revisions.at(t-1),to:this.revisions.at(t)})},updatedRevisions:function(e,i){this.get("compareTwoMode")||this.diffs.loadAll(this.revisions.pluck("id"),i.id,40)},diff:function(){return this.diffs.get(this._diffId)},updateDiff:function(e){var i,t,s;return e=e||{},s=this.get("from"),i=this.get("to"),t=(s?s.id:0)+":"+i.id,this._diffId===t?a.Deferred().reject().promise():(this._diffId=t,this.trigger("update:revisions",s,i),(s=this.diffs.get(t))?(this.receiveDiff(s),a.Deferred().resolve().promise()):e.immediate?this._ensureDiff():(this._debouncedEnsureDiff(),a.Deferred().reject().promise()))},changeRevisionHandler:function(){this.updateDiff()},receiveDiff:function(e){_.isUndefined(e)||_.isUndefined(e.id)?this.set({loading:!1,error:!0}):this._diffId===e.id&&this.trigger("update:diff",e)},_ensureDiff:function(){return this.diffs.ensure(this._diffId,this).always(this.receiveDiff)}}),s.view.Frame=wp.Backbone.View.extend({className:"revisions",template:wp.template("revisions-frame"),initialize:function(){this.listenTo(this.model,"update:diff",this.renderDiff),this.listenTo(this.model,"change:compareTwoMode",this.updateCompareTwoMode),this.listenTo(this.model,"change:loading",this.updateLoadingStatus),this.listenTo(this.model,"change:error",this.updateErrorStatus),this.views.set(".revisions-control-frame",new s.view.Controls({model:this.model}))},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),a("html").css("overflow-y","scroll"),a("#wpbody-content .wrap").append(this.el),this.updateCompareTwoMode(),this.renderDiff(this.model.diff()),this.views.ready(),this},renderDiff:function(e){this.views.set(".revisions-diff-frame",new s.view.Diff({model:e}))},updateLoadingStatus:function(){this.$el.toggleClass("loading",this.model.get("loading"))},updateErrorStatus:function(){this.$el.toggleClass("diff-error",this.model.get("error"))},updateCompareTwoMode:function(){this.$el.toggleClass("comparing-two-revisions",this.model.get("compareTwoMode"))}}),s.view.Controls=wp.Backbone.View.extend({className:"revisions-controls",initialize:function(){_.bindAll(this,"setWidth"),this.views.add(new s.view.Checkbox({model:this.model})),this.views.add(new s.view.Buttons({model:this.model}));var e=new s.model.Slider({frame:this.model,revisions:this.model.revisions}),i=new s.model.Tooltip({frame:this.model,revisions:this.model.revisions,slider:e});this.views.add(new s.view.Tooltip({model:i})),this.views.add(new s.view.Tickmarks({model:i})),this.views.add(new s.view.SliderHelp),this.views.add(new s.view.Slider({model:e})),this.views.add(new s.view.Metabox({model:this.model}))},ready:function(){this.top=this.$el.offset().top,this.window=a(window),this.window.on("scroll.wp.revisions",{controls:this},function(e){var e=e.data.controls,i=e.$el.parent(),t=e.window.scrollTop(),s=e.views.parent;t>=e.top?(s.$el.hasClass("pinned")||(e.setWidth(),i.css("height",i.height()+"px"),e.window.on("resize.wp.revisions.pinning click.wp.revisions.pinning",{controls:e},function(e){e.data.controls.setWidth()})),s.$el.addClass("pinned")):(s.$el.hasClass("pinned")&&(e.window.off(".wp.revisions.pinning"),e.$el.css("width","auto"),s.$el.removeClass("pinned"),i.css("height","auto")),e.top=e.$el.offset().top)})},setWidth:function(){this.$el.css("width",this.$el.parent().width()+"px")}}),s.view.Tickmarks=wp.Backbone.View.extend({className:"revisions-tickmarks",direction:isRtl?"right":"left",initialize:function(){this.listenTo(this.model,"change:revision",this.reportTickPosition)},reportTickPosition:function(e,i){var t,i=this.model.revisions.indexOf(i),s=this.$el.allOffsets(),o=this.$el.parent().allOffsets();i===this.model.revisions.length-1?t={rightPlusWidth:s.left-o.left+1,leftPlusWidth:s.right-o.right+1}:(t=(i=this.$("div:nth-of-type("+(i+1)+")")).allPositions(),_.extend(t,{left:t.left+s.left-o.left,right:t.right+s.right-o.right}),_.extend(t,{leftPlusWidth:t.left+i.outerWidth(),rightPlusWidth:t.right+i.outerWidth()})),this.model.set({offset:t})},ready:function(){var e=this.model.revisions.length-1,i=1/e;this.$el.css("width",50*this.model.revisions.length+"px"),_(e).times(function(e){this.$el.append('
        ')},this)}}),s.view.Metabox=wp.Backbone.View.extend({className:"revisions-meta",initialize:function(){this.views.add(new s.view.MetaFrom({model:this.model,className:"diff-meta diff-meta-from"})),this.views.add(new s.view.MetaTo({model:this.model}))}}),s.view.Meta=wp.Backbone.View.extend({template:wp.template("revisions-meta"),events:{"click .restore-revision":"restoreRevision"},initialize:function(){this.listenTo(this.model,"update:revisions",this.render)},prepare:function(){return _.extend(this.model.toJSON()[this.type]||{},{type:this.type})},restoreRevision:function(){document.location=this.model.get("to").attributes.restoreUrl}}),s.view.MetaFrom=s.view.Meta.extend({className:"diff-meta diff-meta-from",type:"from"}),s.view.MetaTo=s.view.Meta.extend({className:"diff-meta diff-meta-to",type:"to"}),s.view.Checkbox=wp.Backbone.View.extend({className:"revisions-checkbox",template:wp.template("revisions-checkbox"),events:{"click .compare-two-revisions":"compareTwoToggle"},initialize:function(){this.listenTo(this.model,"change:compareTwoMode",this.updateCompareTwoMode)},ready:function(){this.model.revisions.length<3&&a(".revision-toggle-compare-mode").hide()},updateCompareTwoMode:function(){this.$(".compare-two-revisions").prop("checked",this.model.get("compareTwoMode"))},compareTwoToggle:function(){this.model.set({compareTwoMode:a(".compare-two-revisions").prop("checked")})}}),s.view.SliderHelp=wp.Backbone.View.extend({className:"revisions-slider-hidden-help",template:wp.template("revisions-slider-hidden-help")}),s.view.Tooltip=wp.Backbone.View.extend({className:"revisions-tooltip",template:wp.template("revisions-meta"),initialize:function(){this.listenTo(this.model,"change:offset",this.render),this.listenTo(this.model,"change:hovering",this.toggleVisibility),this.listenTo(this.model,"change:scrubbing",this.toggleVisibility)},prepare:function(){if(!_.isNull(this.model.get("revision")))return _.extend({type:"tooltip"},{attributes:this.model.get("revision").toJSON()})},render:function(){var e,i={},t=.5<(this.model.revisions.indexOf(this.model.get("revision"))+1)/this.model.revisions.length,s=isRtl?(e=t?"left":"right",t?"leftPlusWidth":e):(e=t?"right":"left",t?"rightPlusWidth":e),o="right"===e?"left":"right";wp.Backbone.View.prototype.render.apply(this,arguments),i[e]=this.model.get("offset")[s]+"px",i[o]="",this.$el.toggleClass("flipped",t).css(i)},visible:function(){return this.model.get("scrubbing")||this.model.get("hovering")},toggleVisibility:function(){this.visible()?this.$el.stop().show().fadeTo(100-100*this.el.style.opacity,1):this.$el.stop().fadeTo(300*this.el.style.opacity,0,function(){a(this).hide()})}}),s.view.Buttons=wp.Backbone.View.extend({className:"revisions-buttons",template:wp.template("revisions-buttons"),events:{"click .revisions-next .button":"nextRevision","click .revisions-previous .button":"previousRevision"},initialize:function(){this.listenTo(this.model,"update:revisions",this.disabledButtonCheck)},ready:function(){this.disabledButtonCheck()},gotoModel:function(e){var i={to:this.model.revisions.at(e)};e?i.from=this.model.revisions.at(e-1):this.model.unset("from",{silent:!0}),this.model.set(i)},nextRevision:function(){var e=this.model.revisions.indexOf(this.model.get("to"))+1;this.gotoModel(e)},previousRevision:function(){var e=this.model.revisions.indexOf(this.model.get("to"))-1;this.gotoModel(e)},disabledButtonCheck:function(){var e=this.model.revisions.length-1,i=a(".revisions-next .button"),t=a(".revisions-previous .button"),s=this.model.revisions.indexOf(this.model.get("to"));i.prop("disabled",e===s),t.prop("disabled",0===s)}}),s.view.Slider=wp.Backbone.View.extend({className:"wp-slider",direction:isRtl?"right":"left",events:{mousemove:"mouseMove"},initialize:function(){_.bindAll(this,"start","slide","stop","mouseMove","mouseEnter","mouseLeave"),this.listenTo(this.model,"update:slider",this.applySliderSettings)},ready:function(){this.$el.css("width",50*this.model.revisions.length+"px"),this.$el.slider(_.extend(this.model.toJSON(),{start:this.start,slide:this.slide,stop:this.stop})),this.$el.hoverIntent({over:this.mouseEnter,out:this.mouseLeave,timeout:800}),this.applySliderSettings()},accessibilityHelper:function(){var e=a(".ui-slider-handle");e.first().attr({role:"button","aria-labelledby":"diff-title-from diff-title-author","aria-describedby":"revisions-slider-hidden-help"}),e.last().attr({role:"button","aria-labelledby":"diff-title-to diff-title-author","aria-describedby":"revisions-slider-hidden-help"})},mouseMove:function(e){var i=this.model.revisions.length-1,t=this.$el.allOffsets()[this.direction],i=this.$el.width()/i,e=(isRtl?a(window).width()-e.pageX:e.pageX)-t,t=Math.floor((e+i/2)/i);t<0?t=0:t>=this.model.revisions.length&&(t=this.model.revisions.length-1),this.model.set({hoveredRevision:this.model.revisions.at(t)})},mouseLeave:function(){this.model.set({hovering:!1})},mouseEnter:function(){this.model.set({hovering:!0})},applySliderSettings:function(){this.$el.slider(_.pick(this.model.toJSON(),"value","values","range"));var e=this.$("a.ui-slider-handle");this.model.get("compareTwoMode")?(e.first().toggleClass("to-handle",!!isRtl).toggleClass("from-handle",!isRtl),e.last().toggleClass("from-handle",!!isRtl).toggleClass("to-handle",!isRtl)):e.removeClass("from-handle to-handle"),this.accessibilityHelper()},start:function(e,d){this.model.set({scrubbing:!0}),a(window).on("mousemove.wp.revisions",{view:this},function(e){var i=e.data.view,t=i.$el.offset().left,s=t,o=t+i.$el.width(),n="0",r="100%",l=a(d.handle);i.model.get("compareTwoMode")&&(i=l.parent().find(".ui-slider-handle"),l.is(i.first())?r=(o=i.last().offset().left)-s:n=(t=i.first().offset().left+i.first().width())-s),e.pageXo?l.css("left",r):l.css("left",e.pageX-s)})},getPosition:function(e){return isRtl?this.model.revisions.length-e-1:e},slide:function(e,i){var t;if(this.model.get("compareTwoMode")){if(i.values[1]===i.values[0])return!1;isRtl&&i.values.reverse(),t={from:this.model.revisions.at(this.getPosition(i.values[0])),to:this.model.revisions.at(this.getPosition(i.values[1]))}}else t={to:this.model.revisions.at(this.getPosition(i.value))},0 *', targetTolerance: 0 }, menuList : undefined, // Set in init. targetList : undefined, // Set in init. menusChanged : false, isRTL: !! ( 'undefined' != typeof isRtl && isRtl ), negateIfRTL: ( 'undefined' != typeof isRtl && isRtl ) ? -1 : 1, lastSearch: '', // Functions that run on init. init : function() { api.menuList = $('#menu-to-edit'); api.targetList = api.menuList; this.jQueryExtensions(); this.attachMenuEditListeners(); this.attachBulkSelectButtonListeners(); this.attachMenuCheckBoxListeners(); this.attachMenuItemDeleteButton(); this.attachPendingMenuItemsListForDeletion(); this.attachQuickSearchListeners(); this.attachThemeLocationsListeners(); this.attachMenuSaveSubmitListeners(); this.attachTabsPanelListeners(); this.attachUnsavedChangesListener(); if ( api.menuList.length ) this.initSortables(); if ( menus.oneThemeLocationNoMenus ) $( '#posttype-page' ).addSelectedToMenu( api.addMenuItemToBottom ); this.initManageLocations(); this.initAccessibility(); this.initToggles(); this.initPreviewing(); }, jQueryExtensions : function() { // jQuery extensions. $.fn.extend({ menuItemDepth : function() { var margin = api.isRTL ? this.eq(0).css('margin-right') : this.eq(0).css('margin-left'); return api.pxToDepth( margin && -1 != margin.indexOf('px') ? margin.slice(0, -2) : 0 ); }, updateDepthClass : function(current, prev) { return this.each(function(){ var t = $(this); prev = prev || t.menuItemDepth(); $(this).removeClass('menu-item-depth-'+ prev ) .addClass('menu-item-depth-'+ current ); }); }, shiftDepthClass : function(change) { return this.each(function(){ var t = $(this), depth = t.menuItemDepth(), newDepth = depth + change; t.removeClass( 'menu-item-depth-'+ depth ) .addClass( 'menu-item-depth-'+ ( newDepth ) ); if ( 0 === newDepth ) { t.find( '.is-submenu' ).hide(); } }); }, childMenuItems : function() { var result = $(); this.each(function(){ var t = $(this), depth = t.menuItemDepth(), next = t.next( '.menu-item' ); while( next.length && next.menuItemDepth() > depth ) { result = result.add( next ); next = next.next( '.menu-item' ); } }); return result; }, shiftHorizontally : function( dir ) { return this.each(function(){ var t = $(this), depth = t.menuItemDepth(), newDepth = depth + dir; // Change .menu-item-depth-n class. t.moveHorizontally( newDepth, depth ); }); }, moveHorizontally : function( newDepth, depth ) { return this.each(function(){ var t = $(this), children = t.childMenuItems(), diff = newDepth - depth, subItemText = t.find('.is-submenu'); // Change .menu-item-depth-n class. t.updateDepthClass( newDepth, depth ).updateParentMenuItemDBId(); // If it has children, move those too. if ( children ) { children.each(function() { var t = $(this), thisDepth = t.menuItemDepth(), newDepth = thisDepth + diff; t.updateDepthClass(newDepth, thisDepth).updateParentMenuItemDBId(); }); } // Show "Sub item" helper text. if (0 === newDepth) subItemText.hide(); else subItemText.show(); }); }, updateParentMenuItemDBId : function() { return this.each(function(){ var item = $(this), input = item.find( '.menu-item-data-parent-id' ), depth = parseInt( item.menuItemDepth(), 10 ), parentDepth = depth - 1, parent = item.prevAll( '.menu-item-depth-' + parentDepth ).first(); if ( 0 === depth ) { // Item is on the top level, has no parent. input.val(0); } else { // Find the parent item, and retrieve its object id. input.val( parent.find( '.menu-item-data-db-id' ).val() ); } }); }, hideAdvancedMenuItemFields : function() { return this.each(function(){ var that = $(this); $('.hide-column-tog').not(':checked').each(function(){ that.find('.field-' + $(this).val() ).addClass('hidden-field'); }); }); }, /** * Adds selected menu items to the menu. * * @ignore * * @param jQuery metabox The metabox jQuery object. */ addSelectedToMenu : function(processMethod) { if ( 0 === $('#menu-to-edit').length ) { return false; } return this.each(function() { var t = $(this), menuItems = {}, checkboxes = ( menus.oneThemeLocationNoMenus && 0 === t.find( '.tabs-panel-active .categorychecklist li input:checked' ).length ) ? t.find( '#page-all li input[type="checkbox"]' ) : t.find( '.tabs-panel-active .categorychecklist li input:checked' ), re = /menu-item\[([^\]]*)/; processMethod = processMethod || api.addMenuItemToBottom; // If no items are checked, bail. if ( !checkboxes.length ) return false; // Show the Ajax spinner. t.find( '.button-controls .spinner' ).addClass( 'is-active' ); // Retrieve menu item data. $(checkboxes).each(function(){ var t = $(this), listItemDBIDMatch = re.exec( t.attr('name') ), listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10); if ( this.className && -1 != this.className.indexOf('add-to-top') ) processMethod = api.addMenuItemToTop; menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID ); }); // Add the items. api.addItemToMenu(menuItems, processMethod, function(){ // Deselect the items and hide the Ajax spinner. checkboxes.prop( 'checked', false ); t.find( '.button-controls .select-all' ).prop( 'checked', false ); t.find( '.button-controls .spinner' ).removeClass( 'is-active' ); t.updateParentDropdown(); t.updateOrderDropdown(); }); }); }, getItemData : function( itemType, id ) { itemType = itemType || 'menu-item'; var itemData = {}, i, fields = [ 'menu-item-db-id', 'menu-item-object-id', 'menu-item-object', 'menu-item-parent-id', 'menu-item-position', 'menu-item-type', 'menu-item-title', 'menu-item-url', 'menu-item-description', 'menu-item-attr-title', 'menu-item-target', 'menu-item-classes', 'menu-item-xfn' ]; if( !id && itemType == 'menu-item' ) { id = this.find('.menu-item-data-db-id').val(); } if( !id ) return itemData; this.find('input').each(function() { var field; i = fields.length; while ( i-- ) { if( itemType == 'menu-item' ) field = fields[i] + '[' + id + ']'; else if( itemType == 'add-menu-item' ) field = 'menu-item[' + id + '][' + fields[i] + ']'; if ( this.name && field == this.name ) { itemData[fields[i]] = this.value; } } }); return itemData; }, setItemData : function( itemData, itemType, id ) { // Can take a type, such as 'menu-item', or an id. itemType = itemType || 'menu-item'; if( !id && itemType == 'menu-item' ) { id = $('.menu-item-data-db-id', this).val(); } if( !id ) return this; this.find('input').each(function() { var t = $(this), field; $.each( itemData, function( attr, val ) { if( itemType == 'menu-item' ) field = attr + '[' + id + ']'; else if( itemType == 'add-menu-item' ) field = 'menu-item[' + id + '][' + attr + ']'; if ( field == t.attr('name') ) { t.val( val ); } }); }); return this; }, updateParentDropdown : function() { return this.each(function(){ var menuItems = $( '#menu-to-edit li' ), parentDropdowns = $( '.edit-menu-item-parent' ); $.each( parentDropdowns, function() { var parentDropdown = $( this ), currentItemID = parseInt( parentDropdown.closest( 'li.menu-item' ).find( '.menu-item-data-db-id' ).val() ), currentParentID = parseInt( parentDropdown.closest( 'li.menu-item' ).find( '.menu-item-data-parent-id' ).val() ), currentItem = parentDropdown.closest( 'li.menu-item' ), currentMenuItemChild = currentItem.childMenuItems(), excludeMenuItem = /** @type {number[]} */ [ currentItemID ]; parentDropdown.empty(); if ( currentMenuItemChild.length > 0 ) { $.each( currentMenuItemChild, function(){ var childItem = $(this), childID = parseInt( childItem.find( '.menu-item-data-db-id' ).val() ); excludeMenuItem.push( childID ); }); } parentDropdown.append( $( '
      • "+t+"
      • "}),s="
          "+s+"
        "),e.addClass("has-request-results"),e.hasClass("status-request-confirmed")&&(n+=" status-request-confirmed"),e.hasClass("status-request-failed")&&(n+=" status-request-failed"),e.after(function(){return'"})}v(".export-personal-data-handle").on("click",function(e){var t=v(this),n=t.parents(".export-personal-data"),r=t.parents("tr"),a=r.find(".export-progress"),i=t.parents(".row-actions"),c=n.data("request-id"),d=n.data("nonce"),l=n.data("exporters-count"),u=!!n.data("send-as-email");function p(e){var t=h("An error occurred while attempting to export personal data.");w(n,"export-personal-data-failed"),e&&T(r,"notice-error",t,[e]),setTimeout(function(){i.removeClass("processing")},500)}function m(e){e=Math.round(100*(0' + value + ''; }); itemList = '
          ' + itemList + '
        '; } $requestRow.addClass( 'has-request-results' ); if ( $requestRow.hasClass( 'status-request-confirmed' ) ) { resultRowClasses = resultRowClasses + ' status-request-confirmed'; } if ( $requestRow.hasClass( 'status-request-failed' ) ) { resultRowClasses = resultRowClasses + ' status-request-failed'; } $requestRow.after( function() { return '' + '' + '' + ''; }); } $( '.export-personal-data-handle' ).on( 'click', function( event ) { var $this = $( this ), $action = $this.parents( '.export-personal-data' ), $requestRow = $this.parents( 'tr' ), $progress = $requestRow.find( '.export-progress' ), $rowActions = $this.parents( '.row-actions' ), requestID = $action.data( 'request-id' ), nonce = $action.data( 'nonce' ), exportersCount = $action.data( 'exporters-count' ), sendAsEmail = $action.data( 'send-as-email' ) ? true : false; event.preventDefault(); event.stopPropagation(); $rowActions.addClass( 'processing' ); $action.trigger( 'blur' ); clearResultsAfterRow( $requestRow ); setExportProgress( 0 ); function onExportDoneSuccess( zipUrl ) { var summaryMessage = __( 'This user’s personal data export link was sent.' ); if ( 'undefined' !== typeof zipUrl ) { summaryMessage = __( 'This user’s personal data export file was downloaded.' ); } setActionState( $action, 'export-personal-data-success' ); appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] ); if ( 'undefined' !== typeof zipUrl ) { window.location = zipUrl; } else if ( ! sendAsEmail ) { onExportFailure( __( 'No personal data export file was generated.' ) ); } setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 ); } function onExportFailure( errorMessage ) { var summaryMessage = __( 'An error occurred while attempting to export personal data.' ); setActionState( $action, 'export-personal-data-failed' ); if ( errorMessage ) { appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [ errorMessage ] ); } setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 ); } function setExportProgress( exporterIndex ) { var progress = ( exportersCount > 0 ? exporterIndex / exportersCount : 0 ), progressString = Math.round( progress * 100 ).toString() + '%'; $progress.html( progressString ); } function doNextExport( exporterIndex, pageIndex ) { $.ajax( { url: window.ajaxurl, data: { action: 'wp-privacy-export-personal-data', exporter: exporterIndex, id: requestID, page: pageIndex, security: nonce, sendAsEmail: sendAsEmail }, method: 'post' } ).done( function( response ) { var responseData = response.data; if ( ! response.success ) { // e.g. invalid request ID. setTimeout( function() { onExportFailure( response.data ); }, 500 ); return; } if ( ! responseData.done ) { setTimeout( doNextExport( exporterIndex, pageIndex + 1 ) ); } else { setExportProgress( exporterIndex ); if ( exporterIndex < exportersCount ) { setTimeout( doNextExport( exporterIndex + 1, 1 ) ); } else { setTimeout( function() { onExportDoneSuccess( responseData.url ); }, 500 ); } } }).fail( function( jqxhr, textStatus, error ) { // e.g. Nonce failure. setTimeout( function() { onExportFailure( error ); }, 500 ); }); } // And now, let's begin. setActionState( $action, 'export-personal-data-processing' ); doNextExport( 1, 1 ); }); $( '.remove-personal-data-handle' ).on( 'click', function( event ) { var $this = $( this ), $action = $this.parents( '.remove-personal-data' ), $requestRow = $this.parents( 'tr' ), $progress = $requestRow.find( '.erasure-progress' ), $rowActions = $this.parents( '.row-actions' ), requestID = $action.data( 'request-id' ), nonce = $action.data( 'nonce' ), erasersCount = $action.data( 'erasers-count' ), hasRemoved = false, hasRetained = false, messages = []; event.preventDefault(); event.stopPropagation(); $rowActions.addClass( 'processing' ); $action.trigger( 'blur' ); clearResultsAfterRow( $requestRow ); setErasureProgress( 0 ); function onErasureDoneSuccess() { var summaryMessage = __( 'No personal data was found for this user.' ), classes = 'notice-success'; setActionState( $action, 'remove-personal-data-success' ); if ( false === hasRemoved ) { if ( false === hasRetained ) { summaryMessage = __( 'No personal data was found for this user.' ); } else { summaryMessage = __( 'Personal data was found for this user but was not erased.' ); classes = 'notice-warning'; } } else { if ( false === hasRetained ) { summaryMessage = __( 'All of the personal data found for this user was erased.' ); } else { summaryMessage = __( 'Personal data was found for this user but some of the personal data found was not erased.' ); classes = 'notice-warning'; } } appendResultsAfterRow( $requestRow, classes, summaryMessage, messages ); setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 ); } function onErasureFailure() { var summaryMessage = __( 'An error occurred while attempting to find and erase personal data.' ); setActionState( $action, 'remove-personal-data-failed' ); appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [] ); setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 ); } function setErasureProgress( eraserIndex ) { var progress = ( erasersCount > 0 ? eraserIndex / erasersCount : 0 ), progressString = Math.round( progress * 100 ).toString() + '%'; $progress.html( progressString ); } function doNextErasure( eraserIndex, pageIndex ) { $.ajax({ url: window.ajaxurl, data: { action: 'wp-privacy-erase-personal-data', eraser: eraserIndex, id: requestID, page: pageIndex, security: nonce }, method: 'post' }).done( function( response ) { var responseData = response.data; if ( ! response.success ) { setTimeout( function() { onErasureFailure(); }, 500 ); return; } if ( responseData.items_removed ) { hasRemoved = hasRemoved || responseData.items_removed; } if ( responseData.items_retained ) { hasRetained = hasRetained || responseData.items_retained; } if ( responseData.messages ) { messages = messages.concat( responseData.messages ); } if ( ! responseData.done ) { setTimeout( doNextErasure( eraserIndex, pageIndex + 1 ) ); } else { setErasureProgress( eraserIndex ); if ( eraserIndex < erasersCount ) { setTimeout( doNextErasure( eraserIndex + 1, 1 ) ); } else { setTimeout( function() { onErasureDoneSuccess(); }, 500 ); } } }).fail( function() { setTimeout( function() { onErasureFailure(); }, 500 ); }); } // And now, let's begin. setActionState( $action, 'remove-personal-data-processing' ); doNextErasure( 1, 1 ); }); // Privacy Policy page, copy action. $( document ).on( 'click', function( event ) { var $parent, range, $target = $( event.target ), copiedNotice = $target.siblings( '.success' ); clearTimeout( copiedNoticeTimeout ); if ( $target.is( 'button.privacy-text-copy' ) ) { $parent = $target.closest( '.privacy-settings-accordion-panel' ); if ( $parent.length ) { try { var documentPosition = document.documentElement.scrollTop, bodyPosition = document.body.scrollTop; // Setup copy. window.getSelection().removeAllRanges(); // Hide tutorial content to remove from copied content. range = document.createRange(); $parent.addClass( 'hide-privacy-policy-tutorial' ); // Copy action. range.selectNodeContents( $parent[0] ); window.getSelection().addRange( range ); document.execCommand( 'copy' ); // Reset section. $parent.removeClass( 'hide-privacy-policy-tutorial' ); window.getSelection().removeAllRanges(); // Return scroll position - see #49540. if ( documentPosition > 0 && documentPosition !== document.documentElement.scrollTop ) { document.documentElement.scrollTop = documentPosition; } else if ( bodyPosition > 0 && bodyPosition !== document.body.scrollTop ) { document.body.scrollTop = bodyPosition; } // Display and speak notice to indicate action complete. copiedNotice.addClass( 'visible' ); wp.a11y.speak( __( 'The suggested policy text has been copied to your clipboard.' ) ); // Delay notice dismissal. copiedNoticeTimeout = setTimeout( function() { copiedNotice.removeClass( 'visible' ); }, 3000 ); } catch ( er ) {} } } }); // Label handling to focus the create page button on Privacy settings page. $( 'body.options-privacy-php label[for=create-page]' ).on( 'click', function( e ) { e.preventDefault(); $( 'input#create-page' ).trigger( 'focus' ); } ); // Accordion handling in various new Privacy settings pages. $( '.privacy-settings-accordion' ).on( 'click', '.privacy-settings-accordion-trigger', function() { var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) ); if ( isExpanded ) { $( this ).attr( 'aria-expanded', 'false' ); $( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true ); } else { $( this ).attr( 'aria-expanded', 'true' ); $( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false ); } } ); }); js/site-health.min.js000064400000014512152213653150010515 0ustar00/*! This file is auto-generated */ jQuery(function(o){var a,r=wp.i18n.__,n=wp.i18n._n,c=wp.i18n.sprintf,e=new ClipboardJS(".site-health-copy-buttons .copy-button"),l=o(".health-check-body.health-check-status-tab").length,t=o(".health-check-body.health-check-debug-tab").length,i=o("#health-check-accordion-block-wp-paths-sizes"),h=o("#adminmenu .site-health-counter"),d=o("#adminmenu .site-health-counter .count");function u(e){var t,s,a=wp.template("health-check-issue"),i=o("#health-check-issues-"+e.status);!function(e){var t,s,a,i,n={test:"string",label:"string",description:"string"},o=!0;if("object"==typeof e){for(t in n)if("object"==typeof(s=n[t]))for(a in s)i=s[a],void 0!==e[t]&&void 0!==e[t][a]&&i===typeof e[t][a]||(o=!1);else void 0!==e[t]&&s===typeof e[t]||(o=!1);return o}}(e)||(SiteHealth.site_status.issues[e.status]++,s=SiteHealth.site_status.issues[e.status],void 0===e.test&&(e.test=e.status+s),"critical"===e.status?t=c(n("%s critical issue","%s critical issues",s),''+s+""):"recommended"===e.status?t=c(n("%s recommended improvement","%s recommended improvements",s),''+s+""):"good"===e.status&&(t=c(n("%s item with no issues detected","%s items with no issues detected",s),''+s+"")),t&&o(".site-health-issue-count-title",i).html(t),d.text(SiteHealth.site_status.issues.critical),0"+e+"

        "+t+"

        ",actions:""};u(wp.hooks.applyFilters("site_status_test_result",e))}function s(){var t=(new Date).getTime(),s=window.setTimeout(function(){m("waiting-for-directory-sizes")},3e3);wp.apiRequest({path:"/wp-site-health/v1/directory-sizes"}).done(function(e){var a,s;a=e||{},e=o("button.button.copy-button"),s=e.attr("data-clipboard-text"),o.each(a,function(e,t){t=t.debug||t.size;void 0!==t&&(s=s.replace(e+": loading...",e+": "+t))}),e.attr("data-clipboard-text",s),i.find("td[class]").each(function(e,t){var t=o(t),s=t.attr("class");a.hasOwnProperty(s)&&a[s].size&&t.text(a[s].size)})}).always(function(){var e=(new Date).getTime()-t;o(".health-check-wp-paths-sizes.spinner").css("visibility","hidden"),3e3'),findPosts.overlay()),i.show(),n&&e&&t("#affected").attr("name",n).val(e),t("#find-posts").show(),t("#find-posts-input").trigger("focus").on("keyup",function(n){27==n.which&&findPosts.close()}),findPosts.send(),!1},close:function(){t("#find-posts-response").empty(),t("#find-posts").hide(),t(".ui-find-overlay").hide()},overlay:function(){t(".ui-find-overlay").on("click",function(){findPosts.close()})},send:function(){var n={ps:t("#find-posts-input").val(),action:"find_posts",_ajax_nonce:t("#_ajax_nonce").val()},e=t(".find-box-search .spinner");e.addClass("is-active"),t.ajax(ajaxurl,{type:"POST",data:n,dataType:"json"}).always(function(){e.removeClass("is-active")}).done(function(n){n.success||t("#find-posts-response").text(wp.i18n.__("An error has occurred. Please reload the page and try again.")),t("#find-posts-response").html(n.data)}).fail(function(){t("#find-posts-response").text(wp.i18n.__("An error has occurred. Please reload the page and try again."))})}},t(function(){var o,n,e=t("#wp-media-grid"),i=new ClipboardJS(".copy-attachment-url.media-library"),s=null;e.length&&window.wp&&window.wp.media&&(n=_wpMediaGridSettings,n=window.wp.media({frame:"manage",container:e,library:n.queryVars}).open(),e.trigger("wp-media-grid-ready",n)),t("#find-posts-submit").on("click",function(n){t('#find-posts-response input[type="radio"]:checked').length||n.preventDefault()}),t("#find-posts .find-box-search :input").on("keypress",function(n){if(13==n.which)return findPosts.send(),!1}),t("#find-posts-search").on("click",findPosts.send),t("#find-posts-close").on("click",findPosts.close),t("#doaction").on("click",function(e){t('select[name="action"]').each(function(){var n=t(this).val();"attach"===n?(e.preventDefault(),findPosts.open()):"delete"!==n||showNotice.warn()||e.preventDefault()})}),t(".find-box-inside").on("click","tr",function(){t(this).find(".found-radio input").prop("checked",!0)}),i.on("success",function(n){var e=t(n.trigger),i=t(".success",e.closest(".copy-to-clipboard-container"));n.clearSelection(),s&&s.addClass("hidden"),clearTimeout(o),i.removeClass("hidden"),o=setTimeout(function(){i.addClass("hidden"),s=null},3e3),s=i,wp.a11y.speak(wp.i18n.__("The file URL has been copied to your clipboard"))})})}(jQuery);js/theme.js000064400000155707152213653150006642 0ustar00/** * @output wp-admin/js/theme.js */ /* global _wpThemeSettings, confirm, tb_position */ window.wp = window.wp || {}; ( function($) { // Set up our namespace... var themes, l10n; themes = wp.themes = wp.themes || {}; // Store the theme data and settings for organized and quick access. // themes.data.settings, themes.data.themes, themes.data.l10n. themes.data = _wpThemeSettings; l10n = themes.data.l10n; // Shortcut for isInstall check. themes.isInstall = !! themes.data.settings.isInstall; // Setup app structure. _.extend( themes, { model: {}, view: {}, routes: {}, router: {}, template: wp.template }); themes.Model = Backbone.Model.extend({ // Adds attributes to the default data coming through the .org themes api. // Map `id` to `slug` for shared code. initialize: function() { var description; if ( this.get( 'slug' ) ) { // If the theme is already installed, set an attribute. if ( _.indexOf( themes.data.installedThemes, this.get( 'slug' ) ) !== -1 ) { this.set({ installed: true }); } // If the theme is active, set an attribute. if ( themes.data.activeTheme === this.get( 'slug' ) ) { this.set({ active: true }); } } // Set the attributes. this.set({ // `slug` is for installation, `id` is for existing. id: this.get( 'slug' ) || this.get( 'id' ) }); // Map `section.description` to `description` // as the API sometimes returns it differently. if ( this.has( 'sections' ) ) { description = this.get( 'sections' ).description; this.set({ description: description }); } } }); // Main view controller for themes.php. // Unifies and renders all available views. themes.view.Appearance = wp.Backbone.View.extend({ el: '#wpbody-content .wrap .theme-browser', window: $( window ), // Pagination instance. page: 0, // Sets up a throttler for binding to 'scroll'. initialize: function( options ) { // Scroller checks how far the scroll position is. _.bindAll( this, 'scroller' ); this.SearchView = options.SearchView ? options.SearchView : themes.view.Search; // Bind to the scroll event and throttle // the results from this.scroller. this.window.on( 'scroll', _.throttle( this.scroller, 300 ) ); }, // Main render control. render: function() { // Setup the main theme view // with the current theme collection. this.view = new themes.view.Themes({ collection: this.collection, parent: this }); // Render search form. this.search(); this.$el.removeClass( 'search-loading' ); // Render and append. this.view.render(); this.$el.empty().append( this.view.el ).addClass( 'rendered' ); }, // Defines search element container. searchContainer: $( '.search-form' ), // Search input and view // for current theme collection. search: function() { var view, self = this; // Don't render the search if there is only one theme. if ( themes.data.themes.length === 1 ) { return; } view = new this.SearchView({ collection: self.collection, parent: this }); self.SearchView = view; // Render and append after screen title. view.render(); this.searchContainer .find( '.search-box' ) .append( $.parseHTML( '' ) ) .append( view.el ); this.searchContainer.on( 'submit', function( event ) { event.preventDefault(); }); }, // Checks when the user gets close to the bottom // of the mage and triggers a theme:scroll event. scroller: function() { var self = this, bottom, threshold; bottom = this.window.scrollTop() + self.window.height(); threshold = self.$el.offset().top + self.$el.outerHeight( false ) - self.window.height(); threshold = Math.round( threshold * 0.9 ); if ( bottom > threshold ) { this.trigger( 'theme:scroll' ); } } }); // Set up the Collection for our theme data. // @has 'id' 'name' 'screenshot' 'author' 'authorURI' 'version' 'active' ... themes.Collection = Backbone.Collection.extend({ model: themes.Model, // Search terms. terms: '', // Controls searching on the current theme collection // and triggers an update event. doSearch: function( value ) { // Don't do anything if we've already done this search. // Useful because the Search handler fires multiple times per keystroke. if ( this.terms === value ) { return; } // Updates terms with the value passed. this.terms = value; // If we have terms, run a search... if ( this.terms.length > 0 ) { this.search( this.terms ); } // If search is blank, show all themes. // Useful for resetting the views when you clean the input. if ( this.terms === '' ) { this.reset( themes.data.themes ); $( 'body' ).removeClass( 'no-results' ); } // Trigger a 'themes:update' event. this.trigger( 'themes:update' ); }, /** * Performs a search within the collection. * * @uses RegExp */ search: function( term ) { var match, results, haystack, name, description, author; // Start with a full collection. this.reset( themes.data.themes, { silent: true } ); // Trim the term. term = term.trim(); // Escape the term string for RegExp meta characters. term = term.replace( /[-\/\\^$*+?.()|[\]{}]/g, '\\$&' ); // Consider spaces as word delimiters and match the whole string // so matching terms can be combined. term = term.replace( / /g, ')(?=.*' ); match = new RegExp( '^(?=.*' + term + ').+', 'i' ); // Find results. // _.filter() and .test(). results = this.filter( function( data ) { name = data.get( 'name' ).replace( /(<([^>]+)>)/ig, '' ); description = data.get( 'description' ).replace( /(<([^>]+)>)/ig, '' ); author = data.get( 'author' ).replace( /(<([^>]+)>)/ig, '' ); haystack = _.union( [ name, data.get( 'id' ), description, author, data.get( 'tags' ) ] ); if ( match.test( data.get( 'author' ) ) && term.length > 2 ) { data.set( 'displayAuthor', true ); } return match.test( haystack ); }); if ( results.length === 0 ) { this.trigger( 'query:empty' ); } else { $( 'body' ).removeClass( 'no-results' ); } this.reset( results ); }, // Paginates the collection with a helper method // that slices the collection. paginate: function( instance ) { var collection = this; instance = instance || 0; // Themes per instance are set at 20. collection = _( collection.rest( 20 * instance ) ); collection = _( collection.first( 20 ) ); return collection; }, count: false, /* * Handles requests for more themes and caches results. * * * When we are missing a cache object we fire an apiCall() * which triggers events of `query:success` or `query:fail`. */ query: function( request ) { /** * @static * @type Array */ var queries = this.queries, self = this, query, isPaginated, count; // Store current query request args // for later use with the event `theme:end`. this.currentQuery.request = request; // Search the query cache for matches. query = _.find( queries, function( query ) { return _.isEqual( query.request, request ); }); // If the request matches the stored currentQuery.request // it means we have a paginated request. isPaginated = _.has( request, 'page' ); // Reset the internal api page counter for non-paginated queries. if ( ! isPaginated ) { this.currentQuery.page = 1; } // Otherwise, send a new API call and add it to the cache. if ( ! query && ! isPaginated ) { query = this.apiCall( request ).done( function( data ) { // Update the collection with the queried data. if ( data.themes ) { self.reset( data.themes ); count = data.info.results; // Store the results and the query request. queries.push( { themes: data.themes, request: request, total: count } ); } // Trigger a collection refresh event // and a `query:success` event with a `count` argument. self.trigger( 'themes:update' ); self.trigger( 'query:success', count ); if ( data.themes && data.themes.length === 0 ) { self.trigger( 'query:empty' ); } }).fail( function() { self.trigger( 'query:fail' ); }); } else { // If it's a paginated request we need to fetch more themes... if ( isPaginated ) { return this.apiCall( request, isPaginated ).done( function( data ) { // Add the new themes to the current collection. // @todo Update counter. self.add( data.themes ); self.trigger( 'query:success' ); // We are done loading themes for now. self.loadingThemes = false; }).fail( function() { self.trigger( 'query:fail' ); }); } if ( query.themes.length === 0 ) { self.trigger( 'query:empty' ); } else { $( 'body' ).removeClass( 'no-results' ); } // Only trigger an update event since we already have the themes // on our cached object. if ( _.isNumber( query.total ) ) { this.count = query.total; } this.reset( query.themes ); if ( ! query.total ) { this.count = this.length; } this.trigger( 'themes:update' ); this.trigger( 'query:success', this.count ); } }, // Local cache array for API queries. queries: [], // Keep track of current query so we can handle pagination. currentQuery: { page: 1, request: {} }, // Send request to api.wordpress.org/themes. apiCall: function( request, paginated ) { return wp.ajax.send( 'query-themes', { data: { // Request data. request: _.extend({ per_page: 100 }, request) }, beforeSend: function() { if ( ! paginated ) { // Spin it. $( 'body' ).addClass( 'loading-content' ).removeClass( 'no-results' ); } } }); }, // Static status controller for when we are loading themes. loadingThemes: false }); // This is the view that controls each theme item // that will be displayed on the screen. themes.view.Theme = wp.Backbone.View.extend({ // Wrap theme data on a div.theme element. className: 'theme', // Reflects which theme view we have. // 'grid' (default) or 'detail'. state: 'grid', // The HTML template for each element to be rendered. html: themes.template( 'theme' ), events: { 'click': themes.isInstall ? 'preview': 'expand', 'keydown': themes.isInstall ? 'preview': 'expand', 'touchend': themes.isInstall ? 'preview': 'expand', 'keyup': 'addFocus', 'touchmove': 'preventExpand', 'click .theme-install': 'installTheme', 'click .update-message': 'updateTheme' }, touchDrag: false, initialize: function() { this.model.on( 'change', this.render, this ); }, render: function() { var data = this.model.toJSON(); // Render themes using the html template. this.$el.html( this.html( data ) ).attr( 'data-slug', data.id ); // Renders active theme styles. this.activeTheme(); if ( this.model.get( 'displayAuthor' ) ) { this.$el.addClass( 'display-author' ); } }, // Adds a class to the currently active theme // and to the overlay in detailed view mode. activeTheme: function() { if ( this.model.get( 'active' ) ) { this.$el.addClass( 'active' ); } }, // Add class of focus to the theme we are focused on. addFocus: function() { var $themeToFocus = ( $( ':focus' ).hasClass( 'theme' ) ) ? $( ':focus' ) : $(':focus').parents('.theme'); $('.theme.focus').removeClass('focus'); $themeToFocus.addClass('focus'); }, // Single theme overlay screen. // It's shown when clicking a theme. expand: function( event ) { var self = this; event = event || window.event; // 'Enter' and 'Space' keys expand the details view when a theme is :focused. if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) { return; } // Bail if the user scrolled on a touch device. if ( this.touchDrag === true ) { return this.touchDrag = false; } // Prevent the modal from showing when the user clicks // one of the direct action buttons. if ( $( event.target ).is( '.theme-actions a' ) ) { return; } // Prevent the modal from showing when the user clicks one of the direct action buttons. if ( $( event.target ).is( '.theme-actions a, .update-message, .button-link, .notice-dismiss' ) ) { return; } // Set focused theme to current element. themes.focusedTheme = this.$el; this.trigger( 'theme:expand', self.model.cid ); }, preventExpand: function() { this.touchDrag = true; }, preview: function( event ) { var self = this, current, preview; event = event || window.event; // Bail if the user scrolled on a touch device. if ( this.touchDrag === true ) { return this.touchDrag = false; } // Allow direct link path to installing a theme. if ( $( event.target ).not( '.install-theme-preview' ).parents( '.theme-actions' ).length ) { return; } // 'Enter' and 'Space' keys expand the details view when a theme is :focused. if ( event.type === 'keydown' && ( event.which !== 13 && event.which !== 32 ) ) { return; } // Pressing Enter while focused on the buttons shouldn't open the preview. if ( event.type === 'keydown' && event.which !== 13 && $( ':focus' ).hasClass( 'button' ) ) { return; } event.preventDefault(); event = event || window.event; // Set focus to current theme. themes.focusedTheme = this.$el; // Construct a new Preview view. themes.preview = preview = new themes.view.Preview({ model: this.model }); // Render the view and append it. preview.render(); this.setNavButtonsState(); // Hide previous/next navigation if there is only one theme. if ( this.model.collection.length === 1 ) { preview.$el.addClass( 'no-navigation' ); } else { preview.$el.removeClass( 'no-navigation' ); } // Append preview. $( 'div.wrap' ).append( preview.el ); // Listen to our preview object // for `theme:next` and `theme:previous` events. this.listenTo( preview, 'theme:next', function() { // Keep local track of current theme model. current = self.model; // If we have ventured away from current model update the current model position. if ( ! _.isUndefined( self.current ) ) { current = self.current; } // Get next theme model. self.current = self.model.collection.at( self.model.collection.indexOf( current ) + 1 ); // If we have no more themes, bail. if ( _.isUndefined( self.current ) ) { self.options.parent.parent.trigger( 'theme:end' ); return self.current = current; } preview.model = self.current; // Render and append. preview.render(); this.setNavButtonsState(); $( '.next-theme' ).trigger( 'focus' ); }) .listenTo( preview, 'theme:previous', function() { // Keep track of current theme model. current = self.model; // Bail early if we are at the beginning of the collection. if ( self.model.collection.indexOf( self.current ) === 0 ) { return; } // If we have ventured away from current model update the current model position. if ( ! _.isUndefined( self.current ) ) { current = self.current; } // Get previous theme model. self.current = self.model.collection.at( self.model.collection.indexOf( current ) - 1 ); // If we have no more themes, bail. if ( _.isUndefined( self.current ) ) { return; } preview.model = self.current; // Render and append. preview.render(); this.setNavButtonsState(); $( '.previous-theme' ).trigger( 'focus' ); }); this.listenTo( preview, 'preview:close', function() { self.current = self.model; }); }, // Handles .disabled classes for previous/next buttons in theme installer preview. setNavButtonsState: function() { var $themeInstaller = $( '.theme-install-overlay' ), current = _.isUndefined( this.current ) ? this.model : this.current, previousThemeButton = $themeInstaller.find( '.previous-theme' ), nextThemeButton = $themeInstaller.find( '.next-theme' ); // Disable previous at the zero position. if ( 0 === this.model.collection.indexOf( current ) ) { previousThemeButton .addClass( 'disabled' ) .prop( 'disabled', true ); nextThemeButton.trigger( 'focus' ); } // Disable next if the next model is undefined. if ( _.isUndefined( this.model.collection.at( this.model.collection.indexOf( current ) + 1 ) ) ) { nextThemeButton .addClass( 'disabled' ) .prop( 'disabled', true ); previousThemeButton.trigger( 'focus' ); } }, installTheme: function( event ) { var _this = this; event.preventDefault(); wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).on( 'wp-theme-install-success', function( event, response ) { if ( _this.model.get( 'id' ) === response.slug ) { _this.model.set( { 'installed': true } ); } if ( response.blockTheme ) { _this.model.set( { 'block_theme': true } ); } } ); wp.updates.installTheme( { slug: $( event.target ).data( 'slug' ) } ); }, updateTheme: function( event ) { var _this = this; if ( ! this.model.get( 'hasPackage' ) ) { return; } event.preventDefault(); wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).on( 'wp-theme-update-success', function( event, response ) { _this.model.off( 'change', _this.render, _this ); if ( _this.model.get( 'id' ) === response.slug ) { _this.model.set( { hasUpdate: false, version: response.newVersion } ); } _this.model.on( 'change', _this.render, _this ); } ); wp.updates.updateTheme( { slug: $( event.target ).parents( 'div.theme' ).first().data( 'slug' ) } ); } }); // Theme Details view. // Sets up a modal overlay with the expanded theme data. themes.view.Details = wp.Backbone.View.extend({ // Wrap theme data on a div.theme element. className: 'theme-overlay', events: { 'click': 'collapse', 'click .delete-theme': 'deleteTheme', 'click .left': 'previousTheme', 'click .right': 'nextTheme', 'click #update-theme': 'updateTheme', 'click .toggle-auto-update': 'autoupdateState' }, // The HTML template for the theme overlay. html: themes.template( 'theme-single' ), render: function() { var data = this.model.toJSON(); this.$el.html( this.html( data ) ); // Renders active theme styles. this.activeTheme(); // Set up navigation events. this.navigation(); // Checks screenshot size. this.screenshotCheck( this.$el ); // Contain "tabbing" inside the overlay. this.containFocus( this.$el ); }, // Adds a class to the currently active theme // and to the overlay in detailed view mode. activeTheme: function() { // Check the model has the active property. this.$el.toggleClass( 'active', this.model.get( 'active' ) ); }, // Set initial focus and constrain tabbing within the theme browser modal. containFocus: function( $el ) { // Set initial focus on the primary action control. _.delay( function() { $( '.theme-overlay' ).trigger( 'focus' ); }, 100 ); // Constrain tabbing within the modal. $el.on( 'keydown.wp-themes', function( event ) { var $firstFocusable = $el.find( '.theme-header button:not(.disabled)' ).first(), $lastFocusable = $el.find( '.theme-actions a:visible' ).last(); // Check for the Tab key. if ( 9 === event.which ) { if ( $firstFocusable[0] === event.target && event.shiftKey ) { $lastFocusable.trigger( 'focus' ); event.preventDefault(); } else if ( $lastFocusable[0] === event.target && ! event.shiftKey ) { $firstFocusable.trigger( 'focus' ); event.preventDefault(); } } }); }, // Single theme overlay screen. // It's shown when clicking a theme. collapse: function( event ) { var self = this, scroll; event = event || window.event; // Prevent collapsing detailed view when there is only one theme available. if ( themes.data.themes.length === 1 ) { return; } // Detect if the click is inside the overlay and don't close it // unless the target was the div.back button. if ( $( event.target ).is( '.theme-backdrop' ) || $( event.target ).is( '.close' ) || event.keyCode === 27 ) { // Add a temporary closing class while overlay fades out. $( 'body' ).addClass( 'closing-overlay' ); // With a quick fade out animation. this.$el.fadeOut( 130, function() { // Clicking outside the modal box closes the overlay. $( 'body' ).removeClass( 'closing-overlay' ); // Handle event cleanup. self.closeOverlay(); // Get scroll position to avoid jumping to the top. scroll = document.body.scrollTop; // Clean the URL structure. themes.router.navigate( themes.router.baseUrl( '' ) ); // Restore scroll position. document.body.scrollTop = scroll; // Return focus to the theme div. if ( themes.focusedTheme ) { themes.focusedTheme.find('.more-details').trigger( 'focus' ); } }); } }, // Handles .disabled classes for next/previous buttons. navigation: function() { // Disable Left/Right when at the start or end of the collection. if ( this.model.cid === this.model.collection.at(0).cid ) { this.$el.find( '.left' ) .addClass( 'disabled' ) .prop( 'disabled', true ); } if ( this.model.cid === this.model.collection.at( this.model.collection.length - 1 ).cid ) { this.$el.find( '.right' ) .addClass( 'disabled' ) .prop( 'disabled', true ); } }, // Performs the actions to effectively close // the theme details overlay. closeOverlay: function() { $( 'body' ).removeClass( 'modal-open' ); this.remove(); this.unbind(); this.trigger( 'theme:collapse' ); }, // Set state of the auto-update settings link after it has been changed and saved. autoupdateState: function() { var callback, _this = this; // Support concurrent clicks in different Theme Details overlays. callback = function( event, data ) { var autoupdate; if ( _this.model.get( 'id' ) === data.asset ) { autoupdate = _this.model.get( 'autoupdate' ); autoupdate.enabled = 'enable' === data.state; _this.model.set( { autoupdate: autoupdate } ); $( document ).off( 'wp-auto-update-setting-changed', callback ); } }; // Triggered in updates.js $( document ).on( 'wp-auto-update-setting-changed', callback ); }, updateTheme: function( event ) { var _this = this; event.preventDefault(); wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).on( 'wp-theme-update-success', function( event, response ) { if ( _this.model.get( 'id' ) === response.slug ) { _this.model.set( { hasUpdate: false, version: response.newVersion } ); } _this.render(); } ); wp.updates.updateTheme( { slug: $( event.target ).data( 'slug' ) } ); }, deleteTheme: function( event ) { var _this = this, _collection = _this.model.collection, _themes = themes; event.preventDefault(); // Confirmation dialog for deleting a theme. if ( ! window.confirm( wp.themes.data.settings.confirmDelete ) ) { return; } wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).one( 'wp-theme-delete-success', function( event, response ) { _this.$el.find( '.close' ).trigger( 'click' ); $( '[data-slug="' + response.slug + '"]' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() { $( this ).remove(); _themes.data.themes = _.without( _themes.data.themes, _.findWhere( _themes.data.themes, { id: response.slug } ) ); $( '.wp-filter-search' ).val( '' ); _collection.doSearch( '' ); _collection.remove( _this.model ); _collection.trigger( 'themes:update' ); } ); } ); wp.updates.deleteTheme( { slug: this.model.get( 'id' ) } ); }, nextTheme: function() { var self = this; self.trigger( 'theme:next', self.model.cid ); return false; }, previousTheme: function() { var self = this; self.trigger( 'theme:previous', self.model.cid ); return false; }, // Checks if the theme screenshot is the old 300px width version // and adds a corresponding class if it's true. screenshotCheck: function( el ) { var screenshot, image; screenshot = el.find( '.screenshot img' ); image = new Image(); image.src = screenshot.attr( 'src' ); // Width check. if ( image.width && image.width <= 300 ) { el.addClass( 'small-screenshot' ); } } }); // Theme Preview view. // Sets up a modal overlay with the expanded theme data. themes.view.Preview = themes.view.Details.extend({ className: 'wp-full-overlay expanded', el: '.theme-install-overlay', events: { 'click .close-full-overlay': 'close', 'click .collapse-sidebar': 'collapse', 'click .devices button': 'previewDevice', 'click .previous-theme': 'previousTheme', 'click .next-theme': 'nextTheme', 'keyup': 'keyEvent', 'click .theme-install': 'installTheme' }, // The HTML template for the theme preview. html: themes.template( 'theme-preview' ), render: function() { var self = this, currentPreviewDevice, data = this.model.toJSON(), $body = $( document.body ); $body.attr( 'aria-busy', 'true' ); this.$el.removeClass( 'iframe-ready' ).html( this.html( data ) ); currentPreviewDevice = this.$el.data( 'current-preview-device' ); if ( currentPreviewDevice ) { self.togglePreviewDeviceButtons( currentPreviewDevice ); } themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: false } ); this.$el.fadeIn( 200, function() { $body.addClass( 'theme-installer-active full-overlay-active' ); }); this.$el.find( 'iframe' ).one( 'load', function() { self.iframeLoaded(); }); }, iframeLoaded: function() { this.$el.addClass( 'iframe-ready' ); $( document.body ).attr( 'aria-busy', 'false' ); }, close: function() { this.$el.fadeOut( 200, function() { $( 'body' ).removeClass( 'theme-installer-active full-overlay-active' ); // Return focus to the theme div. if ( themes.focusedTheme ) { themes.focusedTheme.find('.more-details').trigger( 'focus' ); } }).removeClass( 'iframe-ready' ); // Restore the previous browse tab if available. if ( themes.router.selectedTab ) { themes.router.navigate( themes.router.baseUrl( '?browse=' + themes.router.selectedTab ) ); themes.router.selectedTab = false; } else { themes.router.navigate( themes.router.baseUrl( '' ) ); } this.trigger( 'preview:close' ); this.undelegateEvents(); this.unbind(); return false; }, collapse: function( event ) { var $button = $( event.currentTarget ); if ( 'true' === $button.attr( 'aria-expanded' ) ) { $button.attr({ 'aria-expanded': 'false', 'aria-label': l10n.expandSidebar }); } else { $button.attr({ 'aria-expanded': 'true', 'aria-label': l10n.collapseSidebar }); } this.$el.toggleClass( 'collapsed' ).toggleClass( 'expanded' ); return false; }, previewDevice: function( event ) { var device = $( event.currentTarget ).data( 'device' ); this.$el .removeClass( 'preview-desktop preview-tablet preview-mobile' ) .addClass( 'preview-' + device ) .data( 'current-preview-device', device ); this.togglePreviewDeviceButtons( device ); }, togglePreviewDeviceButtons: function( newDevice ) { var $devices = $( '.wp-full-overlay-footer .devices' ); $devices.find( 'button' ) .removeClass( 'active' ) .attr( 'aria-pressed', false ); $devices.find( 'button.preview-' + newDevice ) .addClass( 'active' ) .attr( 'aria-pressed', true ); }, keyEvent: function( event ) { // The escape key closes the preview. if ( event.keyCode === 27 ) { this.undelegateEvents(); this.close(); } // Return if Ctrl + Shift or Shift key pressed if ( event.shiftKey || ( event.ctrlKey && event.shiftKey ) ) { return; } // The right arrow key, next theme. if ( event.keyCode === 39 ) { _.once( this.nextTheme() ); } // The left arrow key, previous theme. if ( event.keyCode === 37 ) { this.previousTheme(); } }, installTheme: function( event ) { var _this = this, $target = $( event.target ); event.preventDefault(); if ( $target.hasClass( 'disabled' ) ) { return; } wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).on( 'wp-theme-install-success', function() { _this.model.set( { 'installed': true } ); } ); wp.updates.installTheme( { slug: $target.data( 'slug' ) } ); } }); // Controls the rendering of div.themes, // a wrapper that will hold all the theme elements. themes.view.Themes = wp.Backbone.View.extend({ className: 'themes wp-clearfix', $overlay: $( 'div.theme-overlay' ), // Number to keep track of scroll position // while in theme-overlay mode. index: 0, // The theme count element. count: $( '.wrap .theme-count' ), // The live themes count. liveThemeCount: 0, initialize: function( options ) { var self = this; // Set up parent. this.parent = options.parent; // Set current view to [grid]. this.setView( 'grid' ); // Move the active theme to the beginning of the collection. self.currentTheme(); // When the collection is updated by user input... this.listenTo( self.collection, 'themes:update', function() { self.parent.page = 0; self.currentTheme(); self.render( this ); } ); // Update theme count to full result set when available. this.listenTo( self.collection, 'query:success', function( count ) { if ( _.isNumber( count ) ) { self.count.text( count ); self.announceSearchResults( count ); } else { self.count.text( self.collection.length ); self.announceSearchResults( self.collection.length ); } }); this.listenTo( self.collection, 'query:empty', function() { $( 'body' ).addClass( 'no-results' ); }); this.listenTo( this.parent, 'theme:scroll', function() { self.renderThemes( self.parent.page ); }); this.listenTo( this.parent, 'theme:close', function() { if ( self.overlay ) { self.overlay.closeOverlay(); } } ); // Bind keyboard events. $( 'body' ).on( 'keyup', function( event ) { if ( ! self.overlay ) { return; } // Bail if the filesystem credentials dialog is shown. if ( $( '#request-filesystem-credentials-dialog' ).is( ':visible' ) ) { return; } // Return if Ctrl + Shift or Shift key pressed if ( event.shiftKey || ( event.ctrlKey && event.shiftKey ) ) { return; } // Pressing the right arrow key fires a theme:next event. if ( event.keyCode === 39 ) { self.overlay.nextTheme(); } // Pressing the left arrow key fires a theme:previous event. if ( event.keyCode === 37 ) { self.overlay.previousTheme(); } // Pressing the escape key fires a theme:collapse event. if ( event.keyCode === 27 ) { self.overlay.collapse( event ); } }); }, // Manages rendering of theme pages // and keeping theme count in sync. render: function() { // Clear the DOM, please. this.$el.empty(); // If the user doesn't have switch capabilities or there is only one theme // in the collection, render the detailed view of the active theme. if ( themes.data.themes.length === 1 ) { // Constructs the view. this.singleTheme = new themes.view.Details({ model: this.collection.models[0] }); // Render and apply a 'single-theme' class to our container. this.singleTheme.render(); this.$el.addClass( 'single-theme' ); this.$el.append( this.singleTheme.el ); } // Generate the themes using page instance // while checking the collection has items. if ( this.options.collection.size() > 0 ) { this.renderThemes( this.parent.page ); } // Display a live theme count for the collection. this.liveThemeCount = this.collection.count ? this.collection.count : this.collection.length; this.count.text( this.liveThemeCount ); /* * In the theme installer the themes count is already announced * because `announceSearchResults` is called on `query:success`. */ if ( ! themes.isInstall ) { this.announceSearchResults( this.liveThemeCount ); } }, // Iterates through each instance of the collection // and renders each theme module. renderThemes: function( page ) { var self = this; self.instance = self.collection.paginate( page ); // If we have no more themes, bail. if ( self.instance.size() === 0 ) { // Fire a no-more-themes event. this.parent.trigger( 'theme:end' ); return; } // Make sure the add-new stays at the end. if ( ! themes.isInstall && page >= 1 ) { $( '.add-new-theme' ).remove(); } // Loop through the themes and setup each theme view. self.instance.each( function( theme ) { self.theme = new themes.view.Theme({ model: theme, parent: self }); // Render the views... self.theme.render(); // ...and append them to div.themes. self.$el.append( self.theme.el ); // Binds to theme:expand to show the modal box // with the theme details. self.listenTo( self.theme, 'theme:expand', self.expand, self ); }); // 'Add new theme' element shown at the end of the grid. if ( ! themes.isInstall && themes.data.settings.canInstall ) { this.$el.append( '
        ' ); } this.parent.page++; }, // Grabs current theme and puts it at the beginning of the collection. currentTheme: function() { var self = this, current; current = self.collection.findWhere({ active: true }); // Move the active theme to the beginning of the collection. if ( current ) { self.collection.remove( current ); self.collection.add( current, { at:0 } ); } }, // Sets current view. setView: function( view ) { return view; }, // Renders the overlay with the ThemeDetails view. // Uses the current model data. expand: function( id ) { var self = this, $card, $modal; // Set the current theme model. this.model = self.collection.get( id ); // Trigger a route update for the current model. themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.id ) ); // Sets this.view to 'detail'. this.setView( 'detail' ); $( 'body' ).addClass( 'modal-open' ); // Set up the theme details view. this.overlay = new themes.view.Details({ model: self.model }); this.overlay.render(); if ( this.model.get( 'hasUpdate' ) ) { $card = $( '[data-slug="' + this.model.id + '"]' ); $modal = $( this.overlay.el ); if ( $card.find( '.updating-message' ).length ) { $modal.find( '.notice-warning h3' ).remove(); $modal.find( '.notice-warning' ) .removeClass( 'notice-large' ) .addClass( 'updating-message' ) .find( 'p' ).text( wp.updates.l10n.updating ); } else if ( $card.find( '.notice-error' ).length ) { $modal.find( '.notice-warning' ).remove(); } } this.$overlay.html( this.overlay.el ); // Bind to theme:next and theme:previous triggered by the arrow keys. // Keep track of the current model so we can infer an index position. this.listenTo( this.overlay, 'theme:next', function() { // Renders the next theme on the overlay. self.next( [ self.model.cid ] ); }) .listenTo( this.overlay, 'theme:previous', function() { // Renders the previous theme on the overlay. self.previous( [ self.model.cid ] ); }); }, /* * This method renders the next theme on the overlay modal * based on the current position in the collection. * * @params [model cid] */ next: function( args ) { var self = this, model, nextModel; // Get the current theme. model = self.collection.get( args[0] ); // Find the next model within the collection. nextModel = self.collection.at( self.collection.indexOf( model ) + 1 ); // Confidence check which also serves as a boundary test. if ( nextModel !== undefined ) { // We have a new theme... // Close the overlay. this.overlay.closeOverlay(); // Trigger a route update for the current model. self.theme.trigger( 'theme:expand', nextModel.cid ); } }, /* * This method renders the previous theme on the overlay modal * based on the current position in the collection. * * @params [model cid] */ previous: function( args ) { var self = this, model, previousModel; // Get the current theme. model = self.collection.get( args[0] ); // Find the previous model within the collection. previousModel = self.collection.at( self.collection.indexOf( model ) - 1 ); if ( previousModel !== undefined ) { // We have a new theme... // Close the overlay. this.overlay.closeOverlay(); // Trigger a route update for the current model. self.theme.trigger( 'theme:expand', previousModel.cid ); } }, // Dispatch audible search results feedback message. announceSearchResults: function( count ) { if ( 0 === count ) { wp.a11y.speak( l10n.noThemesFound ); } else { wp.a11y.speak( l10n.themesFound.replace( '%d', count ) ); } } }); // Search input view controller. themes.view.Search = wp.Backbone.View.extend({ tagName: 'input', className: 'wp-filter-search', id: 'wp-filter-search-input', searching: false, attributes: { type: 'search', 'aria-describedby': 'live-search-desc' }, events: { 'input': 'search', 'keyup': 'search', 'blur': 'pushState' }, initialize: function( options ) { this.parent = options.parent; this.listenTo( this.parent, 'theme:close', function() { this.searching = false; } ); }, search: function( event ) { // Clear on escape. if ( event.type === 'keyup' && event.which === 27 ) { event.target.value = ''; } // Since doSearch is debounced, it will only run when user input comes to a rest. this.doSearch( event ); }, // Runs a search on the theme collection. doSearch: function( event ) { var options = {}; this.collection.doSearch( event.target.value.replace( /\+/g, ' ' ) ); // if search is initiated and key is not return. if ( this.searching && event.which !== 13 ) { options.replace = true; } else { this.searching = true; } // Update the URL hash. if ( event.target.value ) { themes.router.navigate( themes.router.baseUrl( themes.router.searchPath + event.target.value ), options ); } else { themes.router.navigate( themes.router.baseUrl( '' ) ); } }, pushState: function( event ) { var url = themes.router.baseUrl( '' ); if ( event.target.value ) { url = themes.router.baseUrl( themes.router.searchPath + encodeURIComponent( event.target.value ) ); } this.searching = false; themes.router.navigate( url ); } }); /** * Navigate router. * * @since 4.9.0 * * @param {string} url - URL to navigate to. * @param {Object} state - State. * @return {void} */ function navigateRouter( url, state ) { var router = this; if ( Backbone.history._hasPushState ) { Backbone.Router.prototype.navigate.call( router, url, state ); } } // Sets up the routes events for relevant url queries. // Listens to [theme] and [search] params. themes.Router = Backbone.Router.extend({ routes: { 'themes.php?theme=:slug': 'theme', 'themes.php?search=:query': 'search', 'themes.php?s=:query': 'search', 'themes.php': 'themes', '': 'themes' }, baseUrl: function( url ) { return 'themes.php' + url; }, themePath: '?theme=', searchPath: '?search=', search: function( query ) { $( '.wp-filter-search' ).val( query.replace( /\+/g, ' ' ) ); }, themes: function() { $( '.wp-filter-search' ).val( '' ); }, navigate: navigateRouter }); // Execute and setup the application. themes.Run = { init: function() { // Initializes the blog's theme library view. // Create a new collection with data. this.themes = new themes.Collection( themes.data.themes ); // Set up the view. this.view = new themes.view.Appearance({ collection: this.themes }); this.render(); // Start debouncing user searches after Backbone.history.start(). this.view.SearchView.doSearch = _.debounce( this.view.SearchView.doSearch, 500 ); }, render: function() { // Render results. this.view.render(); this.routes(); if ( Backbone.History.started ) { Backbone.history.stop(); } Backbone.history.start({ root: themes.data.settings.adminUrl, pushState: true, hashChange: false }); }, routes: function() { var self = this; // Bind to our global thx object // so that the object is available to sub-views. themes.router = new themes.Router(); // Handles theme details route event. themes.router.on( 'route:theme', function( slug ) { self.view.view.expand( slug ); }); themes.router.on( 'route:themes', function() { self.themes.doSearch( '' ); self.view.trigger( 'theme:close' ); }); // Handles search route event. themes.router.on( 'route:search', function() { $( '.wp-filter-search' ).trigger( 'keyup' ); }); this.extraRoutes(); }, extraRoutes: function() { return false; } }; // Extend the main Search view. themes.view.InstallerSearch = themes.view.Search.extend({ events: { 'input': 'search', 'keyup': 'search' }, terms: '', // Handles Ajax request for searching through themes in public repo. search: function( event ) { // Tabbing or reverse tabbing into the search input shouldn't trigger a search. if ( event.type === 'keyup' && ( event.which === 9 || event.which === 16 ) ) { return; } this.collection = this.options.parent.view.collection; // Clear on escape. if ( event.type === 'keyup' && event.which === 27 ) { event.target.value = ''; } this.doSearch( event.target.value ); }, doSearch: function( value ) { var request = {}; // Don't do anything if the search terms haven't changed. if ( this.terms === value ) { return; } // Updates terms with the value passed. this.terms = value; request.search = value; /* * Intercept an [author] search. * * If input value starts with `author:` send a request * for `author` instead of a regular `search`. */ if ( value.substring( 0, 7 ) === 'author:' ) { request.search = ''; request.author = value.slice( 7 ); } /* * Intercept a [tag] search. * * If input value starts with `tag:` send a request * for `tag` instead of a regular `search`. */ if ( value.substring( 0, 4 ) === 'tag:' ) { request.search = ''; request.tag = [ value.slice( 4 ) ]; } $( '.filter-links li > a.current' ) .removeClass( 'current' ) .removeAttr( 'aria-current' ); $( 'body' ).removeClass( 'show-filters filters-applied show-favorites-form' ); $( '.drawer-toggle' ).attr( 'aria-expanded', 'false' ); // Get the themes by sending Ajax POST request to api.wordpress.org/themes // or searching the local cache. this.collection.query( request ); // Set route. themes.router.navigate( themes.router.baseUrl( themes.router.searchPath + encodeURIComponent( value ) ), { replace: true } ); } }); themes.view.Installer = themes.view.Appearance.extend({ el: '#wpbody-content .wrap', // Register events for sorting and filters in theme-navigation. events: { 'click .filter-links li > a': 'onSort', 'click .theme-filter': 'onFilter', 'click .drawer-toggle': 'moreFilters', 'click .filter-drawer .apply-filters': 'applyFilters', 'click .filter-group [type="checkbox"]': 'addFilter', 'click .filter-drawer .clear-filters': 'clearFilters', 'click .edit-filters': 'backToFilters', 'click .favorites-form-submit' : 'saveUsername', 'keyup #wporg-username-input': 'saveUsername' }, // Initial render method. render: function() { var self = this; this.search(); this.uploader(); this.collection = new themes.Collection(); // Bump `collection.currentQuery.page` and request more themes if we hit the end of the page. this.listenTo( this, 'theme:end', function() { // Make sure we are not already loading. if ( self.collection.loadingThemes ) { return; } // Set loadingThemes to true and bump page instance of currentQuery. self.collection.loadingThemes = true; self.collection.currentQuery.page++; // Use currentQuery.page to build the themes request. _.extend( self.collection.currentQuery.request, { page: self.collection.currentQuery.page } ); self.collection.query( self.collection.currentQuery.request ); }); this.listenTo( this.collection, 'query:success', function() { $( 'body' ).removeClass( 'loading-content' ); $( '.theme-browser' ).find( 'div.error' ).remove(); }); this.listenTo( this.collection, 'query:fail', function() { $( 'body' ).removeClass( 'loading-content' ); $( '.theme-browser' ).find( 'div.error' ).remove(); $( '.theme-browser' ).find( 'div.themes' ).before( '

        ' + l10n.error + '

        ' ); $( '.theme-browser .error .try-again' ).on( 'click', function( e ) { e.preventDefault(); $( 'input.wp-filter-search' ).trigger( 'input' ); } ); }); if ( this.view ) { this.view.remove(); } // Sets up the view and passes the section argument. this.view = new themes.view.Themes({ collection: this.collection, parent: this }); // Reset pagination every time the install view handler is run. this.page = 0; // Render and append. this.$el.find( '.themes' ).remove(); this.view.render(); this.$el.find( '.theme-browser' ).append( this.view.el ).addClass( 'rendered' ); }, // Handles all the rendering of the public theme directory. browse: function( section ) { // Create a new collection with the proper theme data // for each section. if ( 'block-themes' === section ) { // Get the themes by sending Ajax POST request to api.wordpress.org/themes // or searching the local cache. this.collection.query( { tag: 'full-site-editing' } ); } else { this.collection.query( { browse: section } ); } }, // Sorting navigation. onSort: function( event ) { var $el = $( event.target ), sort = $el.data( 'sort' ); event.preventDefault(); $( 'body' ).removeClass( 'filters-applied show-filters' ); $( '.drawer-toggle' ).attr( 'aria-expanded', 'false' ); // Bail if this is already active. if ( $el.hasClass( this.activeClass ) ) { return; } this.sort( sort ); // Trigger a router.navigate update. themes.router.navigate( themes.router.baseUrl( themes.router.browsePath + sort ) ); }, sort: function( sort ) { this.clearSearch(); // Track sorting so we can restore the correct tab when closing preview. themes.router.selectedTab = sort; $( '.filter-links li > a, .theme-filter' ) .removeClass( this.activeClass ) .removeAttr( 'aria-current' ); $( '[data-sort="' + sort + '"]' ) .addClass( this.activeClass ) .attr( 'aria-current', 'page' ); if ( 'favorites' === sort ) { $( 'body' ).addClass( 'show-favorites-form' ); } else { $( 'body' ).removeClass( 'show-favorites-form' ); } this.browse( sort ); }, // Filters and Tags. onFilter: function( event ) { var request, $el = $( event.target ), filter = $el.data( 'filter' ); // Bail if this is already active. if ( $el.hasClass( this.activeClass ) ) { return; } $( '.filter-links li > a, .theme-section' ) .removeClass( this.activeClass ) .removeAttr( 'aria-current' ); $el .addClass( this.activeClass ) .attr( 'aria-current', 'page' ); if ( ! filter ) { return; } // Construct the filter request // using the default values. filter = _.union( [ filter, this.filtersChecked() ] ); request = { tag: [ filter ] }; // Get the themes by sending Ajax POST request to api.wordpress.org/themes // or searching the local cache. this.collection.query( request ); }, // Clicking on a checkbox to add another filter to the request. addFilter: function() { this.filtersChecked(); }, // Applying filters triggers a tag request. applyFilters: function( event ) { var name, tags = this.filtersChecked(), request = { tag: tags }, filteringBy = $( '.filtered-by .tags' ); if ( event ) { event.preventDefault(); } if ( ! tags ) { wp.a11y.speak( l10n.selectFeatureFilter ); return; } $( 'body' ).addClass( 'filters-applied' ); $( '.filter-links li > a.current' ) .removeClass( 'current' ) .removeAttr( 'aria-current' ); filteringBy.empty(); _.each( tags, function( tag ) { name = $( 'label[for="filter-id-' + tag + '"]' ).text(); filteringBy.append( '' + name + '' ); }); // Get the themes by sending Ajax POST request to api.wordpress.org/themes // or searching the local cache. this.collection.query( request ); }, // Save the user's WordPress.org username and get his favorite themes. saveUsername: function ( event ) { var username = $( '#wporg-username-input' ).val(), nonce = $( '#wporg-username-nonce' ).val(), request = { browse: 'favorites', user: username }, that = this; if ( event ) { event.preventDefault(); } // Save username on enter. if ( event.type === 'keyup' && event.which !== 13 ) { return; } return wp.ajax.send( 'save-wporg-username', { data: { _wpnonce: nonce, username: username }, success: function () { // Get the themes by sending Ajax POST request to api.wordpress.org/themes // or searching the local cache. that.collection.query( request ); } } ); }, /** * Get the checked filters. * * @return {Array} of tags or false */ filtersChecked: function() { var items = $( '.filter-group' ).find( ':checkbox' ), tags = []; _.each( items.filter( ':checked' ), function( item ) { tags.push( $( item ).prop( 'value' ) ); }); // When no filters are checked, restore initial state and return. if ( tags.length === 0 ) { $( '.filter-drawer .apply-filters' ).find( 'span' ).text( '' ); $( '.filter-drawer .clear-filters' ).hide(); $( 'body' ).removeClass( 'filters-applied' ); return false; } $( '.filter-drawer .apply-filters' ).find( 'span' ).text( tags.length ); $( '.filter-drawer .clear-filters' ).css( 'display', 'inline-block' ); return tags; }, activeClass: 'current', /** * When users press the "Upload Theme" button, show the upload form in place. */ uploader: function() { var uploadViewToggle = $( '.upload-view-toggle' ), $body = $( document.body ); uploadViewToggle.on( 'click', function() { // Toggle the upload view. $body.toggleClass( 'show-upload-view' ); // Toggle the `aria-expanded` button attribute. uploadViewToggle.attr( 'aria-expanded', $body.hasClass( 'show-upload-view' ) ); }); }, // Toggle the full filters navigation. moreFilters: function( event ) { var $body = $( 'body' ), $toggleButton = $( '.drawer-toggle' ); event.preventDefault(); if ( $body.hasClass( 'filters-applied' ) ) { return this.backToFilters(); } this.clearSearch(); themes.router.navigate( themes.router.baseUrl( '' ) ); // Toggle the feature filters view. $body.toggleClass( 'show-filters' ); // Toggle the `aria-expanded` button attribute. $toggleButton.attr( 'aria-expanded', $body.hasClass( 'show-filters' ) ); }, /** * Clears all the checked filters. * * @uses filtersChecked() */ clearFilters: function( event ) { var items = $( '.filter-group' ).find( ':checkbox' ), self = this; event.preventDefault(); _.each( items.filter( ':checked' ), function( item ) { $( item ).prop( 'checked', false ); return self.filtersChecked(); }); }, backToFilters: function( event ) { if ( event ) { event.preventDefault(); } $( 'body' ).removeClass( 'filters-applied' ); }, clearSearch: function() { $( '#wp-filter-search-input').val( '' ); } }); themes.InstallerRouter = Backbone.Router.extend({ routes: { 'theme-install.php?theme=:slug': 'preview', 'theme-install.php?browse=:sort': 'sort', 'theme-install.php?search=:query': 'search', 'theme-install.php': 'sort' }, baseUrl: function( url ) { return 'theme-install.php' + url; }, themePath: '?theme=', browsePath: '?browse=', searchPath: '?search=', search: function( query ) { $( '.wp-filter-search' ).val( query.replace( /\+/g, ' ' ) ); }, navigate: navigateRouter }); themes.RunInstaller = { init: function() { // Set up the view. // Passes the default 'section' as an option. this.view = new themes.view.Installer({ section: 'popular', SearchView: themes.view.InstallerSearch }); // Render results. this.render(); // Start debouncing user searches after Backbone.history.start(). this.view.SearchView.doSearch = _.debounce( this.view.SearchView.doSearch, 500 ); }, render: function() { // Render results. this.view.render(); this.routes(); if ( Backbone.History.started ) { Backbone.history.stop(); } Backbone.history.start({ root: themes.data.settings.adminUrl, pushState: true, hashChange: false }); }, routes: function() { var self = this, request = {}; // Bind to our global `wp.themes` object // so that the router is available to sub-views. themes.router = new themes.InstallerRouter(); // Handles `theme` route event. // Queries the API for the passed theme slug. themes.router.on( 'route:preview', function( slug ) { // Remove existing handlers. if ( themes.preview ) { themes.preview.undelegateEvents(); themes.preview.unbind(); } // If the theme preview is active, set the current theme. if ( self.view.view.theme && self.view.view.theme.preview ) { self.view.view.theme.model = self.view.collection.findWhere( { 'slug': slug } ); self.view.view.theme.preview(); } else { // Select the theme by slug. request.theme = slug; self.view.collection.query( request ); self.view.collection.trigger( 'update' ); // Open the theme preview. self.view.collection.once( 'query:success', function() { $( 'div[data-slug="' + slug + '"]' ).trigger( 'click' ); }); } }); /* * Handles sorting / browsing routes. * Also handles the root URL triggering a sort request * for `popular`, the default view. */ themes.router.on( 'route:sort', function( sort ) { if ( ! sort ) { sort = 'popular'; themes.router.navigate( themes.router.baseUrl( '?browse=popular' ), { replace: true } ); } self.view.sort( sort ); // Close the preview if open. if ( themes.preview ) { themes.preview.close(); } }); // The `search` route event. The router populates the input field. themes.router.on( 'route:search', function() { $( '.wp-filter-search' ).trigger( 'focus' ).trigger( 'keyup' ); }); this.extraRoutes(); }, extraRoutes: function() { return false; } }; // Ready... $( function() { if ( themes.isInstall ) { themes.RunInstaller.init(); } else { themes.Run.init(); } // Update the return param just in time. $( document.body ).on( 'click', '.load-customize', function() { var link = $( this ), urlParser = document.createElement( 'a' ); urlParser.href = link.prop( 'href' ); urlParser.search = $.param( _.extend( wp.customize.utils.parseQueryString( urlParser.search.substr( 1 ) ), { 'return': window.location.href } ) ); link.prop( 'href', urlParser.href ); }); $( '.broken-themes .delete-theme' ).on( 'click', function() { return confirm( _wpThemeSettings.settings.confirmDelete ); }); }); })( jQuery ); // Align theme browser thickbox. jQuery( function($) { window.tb_position = function() { var tbWindow = $('#TB_window'), width = $(window).width(), H = $(window).height(), W = ( 1040 < width ) ? 1040 : width, adminbar_height = 0; if ( $('#wpadminbar').length ) { adminbar_height = parseInt( $('#wpadminbar').css('height'), 10 ); } if ( tbWindow.length >= 1 ) { tbWindow.width( W - 50 ).height( H - 45 - adminbar_height ); $('#TB_iframeContent').width( W - 50 ).height( H - 75 - adminbar_height ); tbWindow.css({'margin-left': '-' + parseInt( ( ( W - 50 ) / 2 ), 10 ) + 'px'}); if ( typeof document.body.style.maxWidth !== 'undefined' ) { tbWindow.css({'top': 20 + adminbar_height + 'px', 'margin-top': '0'}); } } }; $(window).on( 'resize', function(){ tb_position(); }); }); js/customize-controls.js000064400001100647152213653150011415 0ustar00/** * @output wp-admin/js/customize-controls.js */ /* global _wpCustomizeHeader, _wpCustomizeBackground, _wpMediaViewsL10n, MediaElementPlayer, console, confirm */ (function( exports, $ ){ var Container, focus, normalizedTransitionendEventName, api = wp.customize; var reducedMotionMediaQuery = window.matchMedia( '(prefers-reduced-motion: reduce)' ); var isReducedMotion = reducedMotionMediaQuery.matches; reducedMotionMediaQuery.addEventListener( 'change' , function handleReducedMotionChange( event ) { isReducedMotion = event.matches; }); api.OverlayNotification = api.Notification.extend(/** @lends wp.customize.OverlayNotification.prototype */{ /** * Whether the notification should show a loading spinner. * * @since 4.9.0 * @var {boolean} */ loading: false, /** * A notification that is displayed in a full-screen overlay. * * @constructs wp.customize.OverlayNotification * @augments wp.customize.Notification * * @since 4.9.0 * * @param {string} code - Code. * @param {Object} params - Params. */ initialize: function( code, params ) { var notification = this; api.Notification.prototype.initialize.call( notification, code, params ); notification.containerClasses += ' notification-overlay'; if ( notification.loading ) { notification.containerClasses += ' notification-loading'; } }, /** * Render notification. * * @since 4.9.0 * * @return {jQuery} Notification container. */ render: function() { var li = api.Notification.prototype.render.call( this ); li.on( 'keydown', _.bind( this.handleEscape, this ) ); return li; }, /** * Stop propagation on escape key presses, but also dismiss notification if it is dismissible. * * @since 4.9.0 * * @param {jQuery.Event} event - Event. * @return {void} */ handleEscape: function( event ) { var notification = this; if ( 27 === event.which ) { event.stopPropagation(); if ( notification.dismissible && notification.parent ) { notification.parent.remove( notification.code ); } } } }); api.Notifications = api.Values.extend(/** @lends wp.customize.Notifications.prototype */{ /** * Whether the alternative style should be used. * * @since 4.9.0 * @type {boolean} */ alt: false, /** * The default constructor for items of the collection. * * @since 4.9.0 * @type {object} */ defaultConstructor: api.Notification, /** * A collection of observable notifications. * * @since 4.9.0 * * @constructs wp.customize.Notifications * @augments wp.customize.Values * * @param {Object} options - Options. * @param {jQuery} [options.container] - Container element for notifications. This can be injected later. * @param {boolean} [options.alt] - Whether alternative style should be used when rendering notifications. * * @return {void} */ initialize: function( options ) { var collection = this; api.Values.prototype.initialize.call( collection, options ); _.bindAll( collection, 'constrainFocus' ); // Keep track of the order in which the notifications were added for sorting purposes. collection._addedIncrement = 0; collection._addedOrder = {}; // Trigger change event when notification is added or removed. collection.bind( 'add', function( notification ) { collection.trigger( 'change', notification ); }); collection.bind( 'removed', function( notification ) { collection.trigger( 'change', notification ); }); }, /** * Get the number of notifications added. * * @since 4.9.0 * @return {number} Count of notifications. */ count: function() { return _.size( this._value ); }, /** * Add notification to the collection. * * @since 4.9.0 * * @param {string|wp.customize.Notification} notification - Notification object to add. Alternatively code may be supplied, and in that case the second notificationObject argument must be supplied. * @param {wp.customize.Notification} [notificationObject] - Notification to add when first argument is the code string. * @return {wp.customize.Notification} Added notification (or existing instance if it was already added). */ add: function( notification, notificationObject ) { var collection = this, code, instance; if ( 'string' === typeof notification ) { code = notification; instance = notificationObject; } else { code = notification.code; instance = notification; } if ( ! collection.has( code ) ) { collection._addedIncrement += 1; collection._addedOrder[ code ] = collection._addedIncrement; } return api.Values.prototype.add.call( collection, code, instance ); }, /** * Add notification to the collection. * * @since 4.9.0 * @param {string} code - Notification code to remove. * @return {api.Notification} Added instance (or existing instance if it was already added). */ remove: function( code ) { var collection = this; delete collection._addedOrder[ code ]; return api.Values.prototype.remove.call( this, code ); }, /** * Get list of notifications. * * Notifications may be sorted by type followed by added time. * * @since 4.9.0 * @param {Object} args - Args. * @param {boolean} [args.sort=false] - Whether to return the notifications sorted. * @return {Array.} Notifications. */ get: function( args ) { var collection = this, notifications, errorTypePriorities, params; notifications = _.values( collection._value ); params = _.extend( { sort: false }, args ); if ( params.sort ) { errorTypePriorities = { error: 4, warning: 3, success: 2, info: 1 }; notifications.sort( function( a, b ) { var aPriority = 0, bPriority = 0; if ( ! _.isUndefined( errorTypePriorities[ a.type ] ) ) { aPriority = errorTypePriorities[ a.type ]; } if ( ! _.isUndefined( errorTypePriorities[ b.type ] ) ) { bPriority = errorTypePriorities[ b.type ]; } if ( aPriority !== bPriority ) { return bPriority - aPriority; // Show errors first. } return collection._addedOrder[ b.code ] - collection._addedOrder[ a.code ]; // Show newer notifications higher. }); } return notifications; }, /** * Render notifications area. * * @since 4.9.0 * @return {void} */ render: function() { var collection = this, notifications, hadOverlayNotification = false, hasOverlayNotification, overlayNotifications = [], previousNotificationsByCode = {}, listElement, focusableElements; // Short-circuit if there are no container to render into. if ( ! collection.container || ! collection.container.length ) { return; } notifications = collection.get( { sort: true } ); collection.container.toggle( 0 !== notifications.length ); // Short-circuit if there are no changes to the notifications. if ( collection.container.is( collection.previousContainer ) && _.isEqual( notifications, collection.previousNotifications ) ) { return; } // Make sure list is part of the container. listElement = collection.container.children( 'ul' ).first(); if ( ! listElement.length ) { listElement = $( '
          ' ); collection.container.append( listElement ); } // Remove all notifications prior to re-rendering. listElement.find( '> [data-code]' ).remove(); _.each( collection.previousNotifications, function( notification ) { previousNotificationsByCode[ notification.code ] = notification; }); // Add all notifications in the sorted order. _.each( notifications, function( notification ) { var notificationContainer; if ( wp.a11y && ( ! previousNotificationsByCode[ notification.code ] || ! _.isEqual( notification.message, previousNotificationsByCode[ notification.code ].message ) ) ) { wp.a11y.speak( notification.message, 'assertive' ); } notificationContainer = $( notification.render() ); notification.container = notificationContainer; listElement.append( notificationContainer ); // @todo Consider slideDown() as enhancement. if ( notification.extended( api.OverlayNotification ) ) { overlayNotifications.push( notification ); } }); hasOverlayNotification = Boolean( overlayNotifications.length ); if ( collection.previousNotifications ) { hadOverlayNotification = Boolean( _.find( collection.previousNotifications, function( notification ) { return notification.extended( api.OverlayNotification ); } ) ); } if ( hasOverlayNotification !== hadOverlayNotification ) { $( document.body ).toggleClass( 'customize-loading', hasOverlayNotification ); collection.container.toggleClass( 'has-overlay-notifications', hasOverlayNotification ); if ( hasOverlayNotification ) { collection.previousActiveElement = document.activeElement; $( document ).on( 'keydown', collection.constrainFocus ); } else { $( document ).off( 'keydown', collection.constrainFocus ); } } if ( hasOverlayNotification ) { collection.focusContainer = overlayNotifications[ overlayNotifications.length - 1 ].container; collection.focusContainer.prop( 'tabIndex', -1 ); focusableElements = collection.focusContainer.find( ':focusable' ); if ( focusableElements.length ) { focusableElements.first().focus(); } else { collection.focusContainer.focus(); } } else if ( collection.previousActiveElement ) { $( collection.previousActiveElement ).trigger( 'focus' ); collection.previousActiveElement = null; } collection.previousNotifications = notifications; collection.previousContainer = collection.container; collection.trigger( 'rendered' ); }, /** * Constrain focus on focus container. * * @since 4.9.0 * * @param {jQuery.Event} event - Event. * @return {void} */ constrainFocus: function constrainFocus( event ) { var collection = this, focusableElements; // Prevent keys from escaping. event.stopPropagation(); if ( 9 !== event.which ) { // Tab key. return; } focusableElements = collection.focusContainer.find( ':focusable' ); if ( 0 === focusableElements.length ) { focusableElements = collection.focusContainer; } if ( ! $.contains( collection.focusContainer[0], event.target ) || ! $.contains( collection.focusContainer[0], document.activeElement ) ) { event.preventDefault(); focusableElements.first().focus(); } else if ( focusableElements.last().is( event.target ) && ! event.shiftKey ) { event.preventDefault(); focusableElements.first().focus(); } else if ( focusableElements.first().is( event.target ) && event.shiftKey ) { event.preventDefault(); focusableElements.last().focus(); } } }); api.Setting = api.Value.extend(/** @lends wp.customize.Setting.prototype */{ /** * Default params. * * @since 4.9.0 * @var {object} */ defaults: { transport: 'refresh', dirty: false }, /** * A Customizer Setting. * * A setting is WordPress data (theme mod, option, menu, etc.) that the user can * draft changes to in the Customizer. * * @see PHP class WP_Customize_Setting. * * @constructs wp.customize.Setting * @augments wp.customize.Value * * @since 3.4.0 * * @param {string} id - The setting ID. * @param {*} value - The initial value of the setting. * @param {Object} [options={}] - Options. * @param {string} [options.transport=refresh] - The transport to use for previewing. Supports 'refresh' and 'postMessage'. * @param {boolean} [options.dirty=false] - Whether the setting should be considered initially dirty. * @param {Object} [options.previewer] - The Previewer instance to sync with. Defaults to wp.customize.previewer. */ initialize: function( id, value, options ) { var setting = this, params; params = _.extend( { previewer: api.previewer }, setting.defaults, options || {} ); api.Value.prototype.initialize.call( setting, value, params ); setting.id = id; setting._dirty = params.dirty; // The _dirty property is what the Customizer reads from. setting.notifications = new api.Notifications(); // Whenever the setting's value changes, refresh the preview. setting.bind( setting.preview ); }, /** * Refresh the preview, respective of the setting's refresh policy. * * If the preview hasn't sent a keep-alive message and is likely * disconnected by having navigated to a non-allowed URL, then the * refresh transport will be forced when postMessage is the transport. * Note that postMessage does not throw an error when the recipient window * fails to match the origin window, so using try/catch around the * previewer.send() call to then fallback to refresh will not work. * * @since 3.4.0 * @access public * * @return {void} */ preview: function() { var setting = this, transport; transport = setting.transport; if ( 'postMessage' === transport && ! api.state( 'previewerAlive' ).get() ) { transport = 'refresh'; } if ( 'postMessage' === transport ) { setting.previewer.send( 'setting', [ setting.id, setting() ] ); } else if ( 'refresh' === transport ) { setting.previewer.refresh(); } }, /** * Find controls associated with this setting. * * @since 4.6.0 * @return {wp.customize.Control[]} Controls associated with setting. */ findControls: function() { var setting = this, controls = []; api.control.each( function( control ) { _.each( control.settings, function( controlSetting ) { if ( controlSetting.id === setting.id ) { controls.push( control ); } } ); } ); return controls; } }); /** * Current change count. * * @alias wp.customize._latestRevision * * @since 4.7.0 * @type {number} * @protected */ api._latestRevision = 0; /** * Last revision that was saved. * * @alias wp.customize._lastSavedRevision * * @since 4.7.0 * @type {number} * @protected */ api._lastSavedRevision = 0; /** * Latest revisions associated with the updated setting. * * @alias wp.customize._latestSettingRevisions * * @since 4.7.0 * @type {object} * @protected */ api._latestSettingRevisions = {}; /* * Keep track of the revision associated with each updated setting so that * requestChangesetUpdate knows which dirty settings to include. Also, once * ready is triggered and all initial settings have been added, increment * revision for each newly-created initially-dirty setting so that it will * also be included in changeset update requests. */ api.bind( 'change', function incrementChangedSettingRevision( setting ) { api._latestRevision += 1; api._latestSettingRevisions[ setting.id ] = api._latestRevision; } ); api.bind( 'ready', function() { api.bind( 'add', function incrementCreatedSettingRevision( setting ) { if ( setting._dirty ) { api._latestRevision += 1; api._latestSettingRevisions[ setting.id ] = api._latestRevision; } } ); } ); /** * Get the dirty setting values. * * @alias wp.customize.dirtyValues * * @since 4.7.0 * @access public * * @param {Object} [options] Options. * @param {boolean} [options.unsaved=false] Whether only values not saved yet into a changeset will be returned (differential changes). * @return {Object} Dirty setting values. */ api.dirtyValues = function dirtyValues( options ) { var values = {}; api.each( function( setting ) { var settingRevision; if ( ! setting._dirty ) { return; } settingRevision = api._latestSettingRevisions[ setting.id ]; // Skip including settings that have already been included in the changeset, if only requesting unsaved. if ( api.state( 'changesetStatus' ).get() && ( options && options.unsaved ) && ( _.isUndefined( settingRevision ) || settingRevision <= api._lastSavedRevision ) ) { return; } values[ setting.id ] = setting.get(); } ); return values; }; /** * Request updates to the changeset. * * @alias wp.customize.requestChangesetUpdate * * @since 4.7.0 * @access public * * @param {Object} [changes] - Mapping of setting IDs to setting params each normally including a value property, or mapping to null. * If not provided, then the changes will still be obtained from unsaved dirty settings. * @param {Object} [args] - Additional options for the save request. * @param {boolean} [args.autosave=false] - Whether changes will be stored in autosave revision if the changeset has been promoted from an auto-draft. * @param {boolean} [args.force=false] - Send request to update even when there are no changes to submit. This can be used to request the latest status of the changeset on the server. * @param {string} [args.title] - Title to update in the changeset. Optional. * @param {string} [args.date] - Date to update in the changeset. Optional. * @return {jQuery.Promise} Promise resolving with the response data. */ api.requestChangesetUpdate = function requestChangesetUpdate( changes, args ) { var deferred, request, submittedChanges = {}, data, submittedArgs; deferred = new $.Deferred(); // Prevent attempting changeset update while request is being made. if ( 0 !== api.state( 'processing' ).get() ) { deferred.reject( 'already_processing' ); return deferred.promise(); } submittedArgs = _.extend( { title: null, date: null, autosave: false, force: false }, args ); if ( changes ) { _.extend( submittedChanges, changes ); } // Ensure all revised settings (changes pending save) are also included, but not if marked for deletion in changes. _.each( api.dirtyValues( { unsaved: true } ), function( dirtyValue, settingId ) { if ( ! changes || null !== changes[ settingId ] ) { submittedChanges[ settingId ] = _.extend( {}, submittedChanges[ settingId ] || {}, { value: dirtyValue } ); } } ); // Allow plugins to attach additional params to the settings. api.trigger( 'changeset-save', submittedChanges, submittedArgs ); // Short-circuit when there are no pending changes. if ( ! submittedArgs.force && _.isEmpty( submittedChanges ) && null === submittedArgs.title && null === submittedArgs.date ) { deferred.resolve( {} ); return deferred.promise(); } // A status would cause a revision to be made, and for this wp.customize.previewer.save() should be used. // Status is also disallowed for revisions regardless. if ( submittedArgs.status ) { return deferred.reject( { code: 'illegal_status_in_changeset_update' } ).promise(); } // Dates not beung allowed for revisions are is a technical limitation of post revisions. if ( submittedArgs.date && submittedArgs.autosave ) { return deferred.reject( { code: 'illegal_autosave_with_date_gmt' } ).promise(); } // Make sure that publishing a changeset waits for all changeset update requests to complete. api.state( 'processing' ).set( api.state( 'processing' ).get() + 1 ); deferred.always( function() { api.state( 'processing' ).set( api.state( 'processing' ).get() - 1 ); } ); // Ensure that if any plugins add data to save requests by extending query() that they get included here. data = api.previewer.query( { excludeCustomizedSaved: true } ); delete data.customized; // Being sent in customize_changeset_data instead. _.extend( data, { nonce: api.settings.nonce.save, customize_theme: api.settings.theme.stylesheet, customize_changeset_data: JSON.stringify( submittedChanges ) } ); if ( null !== submittedArgs.title ) { data.customize_changeset_title = submittedArgs.title; } if ( null !== submittedArgs.date ) { data.customize_changeset_date = submittedArgs.date; } if ( false !== submittedArgs.autosave ) { data.customize_changeset_autosave = 'true'; } // Allow plugins to modify the params included with the save request. api.trigger( 'save-request-params', data ); request = wp.ajax.post( 'customize_save', data ); request.done( function requestChangesetUpdateDone( data ) { var savedChangesetValues = {}; // Ensure that all settings updated subsequently will be included in the next changeset update request. api._lastSavedRevision = Math.max( api._latestRevision, api._lastSavedRevision ); api.state( 'changesetStatus' ).set( data.changeset_status ); if ( data.changeset_date ) { api.state( 'changesetDate' ).set( data.changeset_date ); } deferred.resolve( data ); api.trigger( 'changeset-saved', data ); if ( data.setting_validities ) { _.each( data.setting_validities, function( validity, settingId ) { if ( true === validity && _.isObject( submittedChanges[ settingId ] ) && ! _.isUndefined( submittedChanges[ settingId ].value ) ) { savedChangesetValues[ settingId ] = submittedChanges[ settingId ].value; } } ); } api.previewer.send( 'changeset-saved', _.extend( {}, data, { saved_changeset_values: savedChangesetValues } ) ); } ); request.fail( function requestChangesetUpdateFail( data ) { deferred.reject( data ); api.trigger( 'changeset-error', data ); } ); request.always( function( data ) { if ( data.setting_validities ) { api._handleSettingValidities( { settingValidities: data.setting_validities } ); } } ); return deferred.promise(); }; /** * Watch all changes to Value properties, and bubble changes to parent Values instance * * @alias wp.customize.utils.bubbleChildValueChanges * * @since 4.1.0 * * @param {wp.customize.Class} instance * @param {Array} properties The names of the Value instances to watch. */ api.utils.bubbleChildValueChanges = function ( instance, properties ) { $.each( properties, function ( i, key ) { instance[ key ].bind( function ( to, from ) { if ( instance.parent && to !== from ) { instance.parent.trigger( 'change', instance ); } } ); } ); }; /** * Expand a panel, section, or control and focus on the first focusable element. * * @alias wp.customize~focus * * @since 4.1.0 * * @param {Object} [params] * @param {Function} [params.completeCallback] */ focus = function ( params ) { var construct, completeCallback, focus, focusElement, sections; construct = this; params = params || {}; focus = function () { // If a child section is currently expanded, collapse it. if ( construct.extended( api.Panel ) ) { sections = construct.sections(); if ( 1 < sections.length ) { sections.forEach( function ( section ) { if ( section.expanded() ) { section.collapse(); } } ); } } var focusContainer; if ( ( construct.extended( api.Panel ) || construct.extended( api.Section ) ) && construct.expanded && construct.expanded() ) { focusContainer = construct.contentContainer; } else { focusContainer = construct.container; } focusElement = focusContainer.find( '.control-focus:first' ); if ( 0 === focusElement.length ) { // Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583 focusElement = focusContainer.find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' ).first(); } focusElement.focus(); }; if ( params.completeCallback ) { completeCallback = params.completeCallback; params.completeCallback = function () { focus(); completeCallback(); }; } else { params.completeCallback = focus; } api.state( 'paneVisible' ).set( true ); if ( construct.expand ) { construct.expand( params ); } else { params.completeCallback(); } }; /** * Stable sort for Panels, Sections, and Controls. * * If a.priority() === b.priority(), then sort by their respective params.instanceNumber. * * @alias wp.customize.utils.prioritySort * * @since 4.1.0 * * @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} a * @param {(wp.customize.Panel|wp.customize.Section|wp.customize.Control)} b * @return {number} */ api.utils.prioritySort = function ( a, b ) { if ( a.priority() === b.priority() && typeof a.params.instanceNumber === 'number' && typeof b.params.instanceNumber === 'number' ) { return a.params.instanceNumber - b.params.instanceNumber; } else { return a.priority() - b.priority(); } }; /** * Return whether the supplied Event object is for a keydown event but not the Enter key. * * @alias wp.customize.utils.isKeydownButNotEnterEvent * * @since 4.1.0 * * @param {jQuery.Event} event * @return {boolean} */ api.utils.isKeydownButNotEnterEvent = function ( event ) { return ( 'keydown' === event.type && 13 !== event.which ); }; /** * Return whether the two lists of elements are the same and are in the same order. * * @alias wp.customize.utils.areElementListsEqual * * @since 4.1.0 * * @param {Array|jQuery} listA * @param {Array|jQuery} listB * @return {boolean} */ api.utils.areElementListsEqual = function ( listA, listB ) { var equal = ( listA.length === listB.length && // If lists are different lengths, then naturally they are not equal. -1 === _.indexOf( _.map( // Are there any false values in the list returned by map? _.zip( listA, listB ), // Pair up each element between the two lists. function ( pair ) { return $( pair[0] ).is( pair[1] ); // Compare to see if each pair is equal. } ), false ) // Check for presence of false in map's return value. ); return equal; }; /** * Highlight the existence of a button. * * This function reminds the user of a button represented by the specified * UI element, after an optional delay. If the user focuses the element * before the delay passes, the reminder is canceled. * * @alias wp.customize.utils.highlightButton * * @since 4.9.0 * * @param {jQuery} button - The element to highlight. * @param {Object} [options] - Options. * @param {number} [options.delay=0] - Delay in milliseconds. * @param {jQuery} [options.focusTarget] - A target for user focus that defaults to the highlighted element. * If the user focuses the target before the delay passes, the reminder * is canceled. This option exists to accommodate compound buttons * containing auxiliary UI, such as the Publish button augmented with a * Settings button. * @return {Function} An idempotent function that cancels the reminder. */ api.utils.highlightButton = function highlightButton( button, options ) { var animationClass = 'button-see-me', canceled = false, params; params = _.extend( { delay: 0, focusTarget: button }, options ); function cancelReminder() { canceled = true; } params.focusTarget.on( 'focusin', cancelReminder ); setTimeout( function() { params.focusTarget.off( 'focusin', cancelReminder ); if ( ! canceled ) { button.addClass( animationClass ); button.one( 'animationend', function() { /* * Remove animation class to avoid situations in Customizer where * DOM nodes are moved (re-inserted) and the animation repeats. */ button.removeClass( animationClass ); } ); } }, params.delay ); return cancelReminder; }; /** * Get current timestamp adjusted for server clock time. * * Same functionality as the `current_time( 'mysql', false )` function in PHP. * * @alias wp.customize.utils.getCurrentTimestamp * * @since 4.9.0 * * @return {number} Current timestamp. */ api.utils.getCurrentTimestamp = function getCurrentTimestamp() { var currentDate, currentClientTimestamp, timestampDifferential; currentClientTimestamp = _.now(); currentDate = new Date( api.settings.initialServerDate.replace( /-/g, '/' ) ); timestampDifferential = currentClientTimestamp - api.settings.initialClientTimestamp; timestampDifferential += api.settings.initialClientTimestamp - api.settings.initialServerTimestamp; currentDate.setTime( currentDate.getTime() + timestampDifferential ); return currentDate.getTime(); }; /** * Get remaining time of when the date is set. * * @alias wp.customize.utils.getRemainingTime * * @since 4.9.0 * * @param {string|number|Date} datetime - Date time or timestamp of the future date. * @return {number} remainingTime - Remaining time in milliseconds. */ api.utils.getRemainingTime = function getRemainingTime( datetime ) { var millisecondsDivider = 1000, remainingTime, timestamp; if ( datetime instanceof Date ) { timestamp = datetime.getTime(); } else if ( 'string' === typeof datetime ) { timestamp = ( new Date( datetime.replace( /-/g, '/' ) ) ).getTime(); } else { timestamp = datetime; } remainingTime = timestamp - api.utils.getCurrentTimestamp(); remainingTime = Math.ceil( remainingTime / millisecondsDivider ); return remainingTime; }; /** * Return browser supported `transitionend` event name. * * @since 4.7.0 * * @ignore * * @return {string|null} Normalized `transitionend` event name or null if CSS transitions are not supported. */ normalizedTransitionendEventName = (function () { var el, transitions, prop; el = document.createElement( 'div' ); transitions = { 'transition' : 'transitionend', 'OTransition' : 'oTransitionEnd', 'MozTransition' : 'transitionend', 'WebkitTransition': 'webkitTransitionEnd' }; prop = _.find( _.keys( transitions ), function( prop ) { return ! _.isUndefined( el.style[ prop ] ); } ); if ( prop ) { return transitions[ prop ]; } else { return null; } })(); Container = api.Class.extend(/** @lends wp.customize~Container.prototype */{ defaultActiveArguments: { duration: 'fast', completeCallback: $.noop }, defaultExpandedArguments: { duration: 'fast', completeCallback: $.noop }, containerType: 'container', defaults: { title: '', description: '', priority: 100, type: 'default', content: null, active: true, instanceNumber: null }, /** * Base class for Panel and Section. * * @constructs wp.customize~Container * @augments wp.customize.Class * * @since 4.1.0 * * @borrows wp.customize~focus as focus * * @param {string} id - The ID for the container. * @param {Object} options - Object containing one property: params. * @param {string} options.title - Title shown when panel is collapsed and expanded. * @param {string} [options.description] - Description shown at the top of the panel. * @param {number} [options.priority=100] - The sort priority for the panel. * @param {string} [options.templateId] - Template selector for container. * @param {string} [options.type=default] - The type of the panel. See wp.customize.panelConstructor. * @param {string} [options.content] - The markup to be used for the panel container. If empty, a JS template is used. * @param {boolean} [options.active=true] - Whether the panel is active or not. * @param {Object} [options.params] - Deprecated wrapper for the above properties. */ initialize: function ( id, options ) { var container = this; container.id = id; if ( ! Container.instanceCounter ) { Container.instanceCounter = 0; } Container.instanceCounter++; $.extend( container, { params: _.defaults( options.params || options, // Passing the params is deprecated. container.defaults ) } ); if ( ! container.params.instanceNumber ) { container.params.instanceNumber = Container.instanceCounter; } container.notifications = new api.Notifications(); container.templateSelector = container.params.templateId || 'customize-' + container.containerType + '-' + container.params.type; container.container = $( container.params.content ); if ( 0 === container.container.length ) { container.container = $( container.getContainer() ); } container.headContainer = container.container; container.contentContainer = container.getContent(); container.container = container.container.add( container.contentContainer ); container.deferred = { embedded: new $.Deferred() }; container.priority = new api.Value(); container.active = new api.Value(); container.activeArgumentsQueue = []; container.expanded = new api.Value(); container.expandedArgumentsQueue = []; container.active.bind( function ( active ) { var args = container.activeArgumentsQueue.shift(); args = $.extend( {}, container.defaultActiveArguments, args ); active = ( active && container.isContextuallyActive() ); container.onChangeActive( active, args ); }); container.expanded.bind( function ( expanded ) { var args = container.expandedArgumentsQueue.shift(); args = $.extend( {}, container.defaultExpandedArguments, args ); container.onChangeExpanded( expanded, args ); }); container.deferred.embedded.done( function () { container.setupNotifications(); container.attachEvents(); }); api.utils.bubbleChildValueChanges( container, [ 'priority', 'active' ] ); container.priority.set( container.params.priority ); container.active.set( container.params.active ); container.expanded.set( false ); }, /** * Get the element that will contain the notifications. * * @since 4.9.0 * @return {jQuery} Notification container element. */ getNotificationsContainerElement: function() { var container = this; return container.contentContainer.find( '.customize-control-notifications-container:first' ); }, /** * Set up notifications. * * @since 4.9.0 * @return {void} */ setupNotifications: function() { var container = this, renderNotifications; container.notifications.container = container.getNotificationsContainerElement(); // Render notifications when they change and when the construct is expanded. renderNotifications = function() { if ( container.expanded.get() ) { container.notifications.render(); } }; container.expanded.bind( renderNotifications ); renderNotifications(); container.notifications.bind( 'change', _.debounce( renderNotifications ) ); }, /** * @since 4.1.0 * * @abstract */ ready: function() {}, /** * Get the child models associated with this parent, sorting them by their priority Value. * * @since 4.1.0 * * @param {string} parentType * @param {string} childType * @return {Array} */ _children: function ( parentType, childType ) { var parent = this, children = []; api[ childType ].each( function ( child ) { if ( child[ parentType ].get() === parent.id ) { children.push( child ); } } ); children.sort( api.utils.prioritySort ); return children; }, /** * To override by subclass, to return whether the container has active children. * * @since 4.1.0 * * @abstract */ isContextuallyActive: function () { throw new Error( 'Container.isContextuallyActive() must be overridden in a subclass.' ); }, /** * Active state change handler. * * Shows the container if it is active, hides it if not. * * To override by subclass, update the container's UI to reflect the provided active state. * * @since 4.1.0 * * @param {boolean} active - The active state to transiution to. * @param {Object} [args] - Args. * @param {Object} [args.duration] - The duration for the slideUp/slideDown animation. * @param {boolean} [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early. * @param {Function} [args.completeCallback] - Function to call when the slideUp/slideDown has completed. */ onChangeActive: function( active, args ) { var construct = this, headContainer = construct.headContainer, duration, expandedOtherPanel; if ( args.unchanged ) { if ( args.completeCallback ) { args.completeCallback(); } return; } duration = ( 'resolved' === api.previewer.deferred.active.state() ? args.duration : 0 ); if ( construct.extended( api.Panel ) ) { // If this is a panel is not currently expanded but another panel is expanded, do not animate. api.panel.each(function ( panel ) { if ( panel !== construct && panel.expanded() ) { expandedOtherPanel = panel; duration = 0; } }); // Collapse any expanded sections inside of this panel first before deactivating. if ( ! active ) { _.each( construct.sections(), function( section ) { section.collapse( { duration: 0 } ); } ); } } if ( ! $.contains( document, headContainer.get( 0 ) ) ) { // If the element is not in the DOM, then jQuery.fn.slideUp() does nothing. // In this case, a hard toggle is required instead. headContainer.toggle( active ); if ( args.completeCallback ) { args.completeCallback(); } } else if ( active ) { headContainer.slideDown( duration, args.completeCallback ); } else { if ( construct.expanded() ) { construct.collapse({ duration: duration, completeCallback: function() { headContainer.slideUp( duration, args.completeCallback ); } }); } else { headContainer.slideUp( duration, args.completeCallback ); } } }, /** * @since 4.1.0 * * @param {boolean} active * @param {Object} [params] * @return {boolean} False if state already applied. */ _toggleActive: function ( active, params ) { var self = this; params = params || {}; if ( ( active && this.active.get() ) || ( ! active && ! this.active.get() ) ) { params.unchanged = true; self.onChangeActive( self.active.get(), params ); return false; } else { params.unchanged = false; this.activeArgumentsQueue.push( params ); this.active.set( active ); return true; } }, /** * @param {Object} [params] * @return {boolean} False if already active. */ activate: function ( params ) { return this._toggleActive( true, params ); }, /** * @param {Object} [params] * @return {boolean} False if already inactive. */ deactivate: function ( params ) { return this._toggleActive( false, params ); }, /** * To override by subclass, update the container's UI to reflect the provided active state. * @abstract */ onChangeExpanded: function () { throw new Error( 'Must override with subclass.' ); }, /** * Handle the toggle logic for expand/collapse. * * @param {boolean} expanded - The new state to apply. * @param {Object} [params] - Object containing options for expand/collapse. * @param {Function} [params.completeCallback] - Function to call when expansion/collapse is complete. * @return {boolean} False if state already applied or active state is false. */ _toggleExpanded: function( expanded, params ) { var instance = this, previousCompleteCallback; params = params || {}; previousCompleteCallback = params.completeCallback; // Short-circuit expand() if the instance is not active. if ( expanded && ! instance.active() ) { return false; } api.state( 'paneVisible' ).set( true ); params.completeCallback = function() { if ( previousCompleteCallback ) { previousCompleteCallback.apply( instance, arguments ); } if ( expanded ) { instance.container.trigger( 'expanded' ); } else { instance.container.trigger( 'collapsed' ); } }; if ( ( expanded && instance.expanded.get() ) || ( ! expanded && ! instance.expanded.get() ) ) { params.unchanged = true; instance.onChangeExpanded( instance.expanded.get(), params ); return false; } else { params.unchanged = false; instance.expandedArgumentsQueue.push( params ); instance.expanded.set( expanded ); return true; } }, /** * @param {Object} [params] * @return {boolean} False if already expanded or if inactive. */ expand: function ( params ) { return this._toggleExpanded( true, params ); }, /** * @param {Object} [params] * @return {boolean} False if already collapsed. */ collapse: function ( params ) { return this._toggleExpanded( false, params ); }, /** * Animate container state change if transitions are supported by the browser. * * @since 4.7.0 * @private * * @param {function} completeCallback Function to be called after transition is completed. * @return {void} */ _animateChangeExpanded: function( completeCallback ) { // Return if CSS transitions are not supported or if reduced motion is enabled. if ( ! normalizedTransitionendEventName || isReducedMotion ) { // Schedule the callback until the next tick to prevent focus loss. _.defer( function () { if ( completeCallback ) { completeCallback(); } } ); return; } var construct = this, content = construct.contentContainer, overlay = content.closest( '.wp-full-overlay' ), elements, transitionEndCallback, transitionParentPane; // Determine set of elements that are affected by the animation. elements = overlay.add( content ); if ( ! construct.panel || '' === construct.panel() ) { transitionParentPane = true; } else if ( api.panel( construct.panel() ).contentContainer.hasClass( 'skip-transition' ) ) { transitionParentPane = true; } else { transitionParentPane = false; } if ( transitionParentPane ) { elements = elements.add( '#customize-info, .customize-pane-parent' ); } // Handle `transitionEnd` event. transitionEndCallback = function( e ) { if ( 2 !== e.eventPhase || ! $( e.target ).is( content ) ) { return; } content.off( normalizedTransitionendEventName, transitionEndCallback ); elements.removeClass( 'busy' ); if ( completeCallback ) { completeCallback(); } }; content.on( normalizedTransitionendEventName, transitionEndCallback ); elements.addClass( 'busy' ); // Prevent screen flicker when pane has been scrolled before expanding. _.defer( function() { var container = content.closest( '.wp-full-overlay-sidebar-content' ), currentScrollTop = container.scrollTop(), previousScrollTop = content.data( 'previous-scrollTop' ) || 0, expanded = construct.expanded(); if ( expanded && 0 < currentScrollTop ) { content.css( 'top', currentScrollTop + 'px' ); content.data( 'previous-scrollTop', currentScrollTop ); } else if ( ! expanded && 0 < currentScrollTop + previousScrollTop ) { content.css( 'top', previousScrollTop - currentScrollTop + 'px' ); container.scrollTop( previousScrollTop ); } } ); }, /* * is documented using @borrows in the constructor. */ focus: focus, /** * Return the container html, generated from its JS template, if it exists. * * @since 4.3.0 */ getContainer: function () { var template, container = this; if ( 0 !== $( '#tmpl-' + container.templateSelector ).length ) { template = wp.template( container.templateSelector ); } else { template = wp.template( 'customize-' + container.containerType + '-default' ); } if ( template && container.container ) { return template( _.extend( { id: container.id }, container.params ) ).toString().trim(); } return '
        • '; }, /** * Find content element which is displayed when the section is expanded. * * After a construct is initialized, the return value will be available via the `contentContainer` property. * By default the element will be related it to the parent container with `aria-owns` and detached. * Custom panels and sections (such as the `NewMenuSection`) that do not have a sliding pane should * just return the content element without needing to add the `aria-owns` element or detach it from * the container. Such non-sliding pane custom sections also need to override the `onChangeExpanded` * method to handle animating the panel/section into and out of view. * * @since 4.7.0 * @access public * * @return {jQuery} Detached content element. */ getContent: function() { var construct = this, container = construct.container, content = container.find( '.accordion-section-content, .control-panel-content' ).first(), contentId = 'sub-' + container.attr( 'id' ), ownedElements = contentId, alreadyOwnedElements = container.attr( 'aria-owns' ); if ( alreadyOwnedElements ) { ownedElements = ownedElements + ' ' + alreadyOwnedElements; } container.attr( 'aria-owns', ownedElements ); return content.detach().attr( { 'id': contentId, 'class': 'customize-pane-child ' + content.attr( 'class' ) + ' ' + container.attr( 'class' ) } ); } }); api.Section = Container.extend(/** @lends wp.customize.Section.prototype */{ containerType: 'section', containerParent: '#customize-theme-controls', containerPaneParent: '.customize-pane-parent', defaults: { title: '', description: '', priority: 100, type: 'default', content: null, active: true, instanceNumber: null, panel: null, customizeAction: '' }, /** * @constructs wp.customize.Section * @augments wp.customize~Container * * @since 4.1.0 * * @param {string} id - The ID for the section. * @param {Object} options - Options. * @param {string} options.title - Title shown when section is collapsed and expanded. * @param {string} [options.description] - Description shown at the top of the section. * @param {number} [options.priority=100] - The sort priority for the section. * @param {string} [options.type=default] - The type of the section. See wp.customize.sectionConstructor. * @param {string} [options.content] - The markup to be used for the section container. If empty, a JS template is used. * @param {boolean} [options.active=true] - Whether the section is active or not. * @param {string} options.panel - The ID for the panel this section is associated with. * @param {string} [options.customizeAction] - Additional context information shown before the section title when expanded. * @param {Object} [options.params] - Deprecated wrapper for the above properties. */ initialize: function ( id, options ) { var section = this, params; params = options.params || options; // Look up the type if one was not supplied. if ( ! params.type ) { _.find( api.sectionConstructor, function( Constructor, type ) { if ( Constructor === section.constructor ) { params.type = type; return true; } return false; } ); } Container.prototype.initialize.call( section, id, params ); section.id = id; section.panel = new api.Value(); section.panel.bind( function ( id ) { $( section.headContainer ).toggleClass( 'control-subsection', !! id ); }); section.panel.set( section.params.panel || '' ); api.utils.bubbleChildValueChanges( section, [ 'panel' ] ); section.embed(); section.deferred.embedded.done( function () { section.ready(); }); }, /** * Embed the container in the DOM when any parent panel is ready. * * @since 4.1.0 */ embed: function () { var inject, section = this; section.containerParent = api.ensure( section.containerParent ); // Watch for changes to the panel state. inject = function ( panelId ) { var parentContainer; if ( panelId ) { // The panel has been supplied, so wait until the panel object is registered. api.panel( panelId, function ( panel ) { // The panel has been registered, wait for it to become ready/initialized. panel.deferred.embedded.done( function () { parentContainer = panel.contentContainer; if ( ! section.headContainer.parent().is( parentContainer ) ) { parentContainer.append( section.headContainer ); } if ( ! section.contentContainer.parent().is( section.headContainer ) ) { section.containerParent.append( section.contentContainer ); } section.deferred.embedded.resolve(); }); } ); } else { // There is no panel, so embed the section in the root of the customizer. parentContainer = api.ensure( section.containerPaneParent ); if ( ! section.headContainer.parent().is( parentContainer ) ) { parentContainer.append( section.headContainer ); } if ( ! section.contentContainer.parent().is( section.headContainer ) ) { section.containerParent.append( section.contentContainer ); } section.deferred.embedded.resolve(); } }; section.panel.bind( inject ); inject( section.panel.get() ); // Since a section may never get a panel, assume that it won't ever get one. }, /** * Add behaviors for the accordion section. * * @since 4.1.0 */ attachEvents: function () { var meta, content, section = this; if ( section.container.hasClass( 'cannot-expand' ) ) { return; } // Expand/Collapse accordion sections on click. section.container.find( '.accordion-section-title button, .customize-section-back, .accordion-section-title[tabindex]' ).on( 'click keydown', function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); // Keep this AFTER the key filter above. if ( section.expanded() ) { section.collapse(); } else { section.expand(); } }); // This is very similar to what is found for api.Panel.attachEvents(). section.container.find( '.customize-section-title .customize-help-toggle' ).on( 'click', function() { meta = section.container.find( '.section-meta' ); if ( meta.hasClass( 'cannot-expand' ) ) { return; } content = meta.find( '.customize-section-description:first' ); content.toggleClass( 'open' ); content.slideToggle( section.defaultExpandedArguments.duration, function() { content.trigger( 'toggled' ); } ); $( this ).attr( 'aria-expanded', function( i, attr ) { return 'true' === attr ? 'false' : 'true'; }); }); }, /** * Return whether this section has any active controls. * * @since 4.1.0 * * @return {boolean} */ isContextuallyActive: function () { var section = this, controls = section.controls(), activeCount = 0; _( controls ).each( function ( control ) { if ( control.active() ) { activeCount += 1; } } ); return ( activeCount !== 0 ); }, /** * Get the controls that are associated with this section, sorted by their priority Value. * * @since 4.1.0 * * @return {Array} */ controls: function () { return this._children( 'section', 'control' ); }, /** * Update UI to reflect expanded state. * * @since 4.1.0 * * @param {boolean} expanded * @param {Object} args */ onChangeExpanded: function ( expanded, args ) { var section = this, container = section.headContainer.closest( '.wp-full-overlay-sidebar-content' ), content = section.contentContainer, overlay = section.headContainer.closest( '.wp-full-overlay' ), backBtn = content.find( '.customize-section-back' ), sectionTitle = section.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ).first(), expand, panel; if ( expanded && ! content.hasClass( 'open' ) ) { if ( args.unchanged ) { expand = args.completeCallback; } else { expand = function() { section._animateChangeExpanded( function() { backBtn.attr( 'tabindex', '0' ); backBtn.trigger( 'focus' ); content.css( 'top', '' ); container.scrollTop( 0 ); if ( args.completeCallback ) { args.completeCallback(); } } ); content.addClass( 'open' ); overlay.addClass( 'section-open' ); api.state( 'expandedSection' ).set( section ); }.bind( this ); } if ( ! args.allowMultiple ) { api.section.each( function ( otherSection ) { if ( otherSection !== section ) { otherSection.collapse( { duration: args.duration } ); } }); } if ( section.panel() ) { api.panel( section.panel() ).expand({ duration: args.duration, completeCallback: expand }); } else { if ( ! args.allowMultiple ) { api.panel.each( function( panel ) { panel.collapse(); }); } expand(); } } else if ( ! expanded && content.hasClass( 'open' ) ) { if ( section.panel() ) { panel = api.panel( section.panel() ); if ( panel.contentContainer.hasClass( 'skip-transition' ) ) { panel.collapse(); } } section._animateChangeExpanded( function() { backBtn.attr( 'tabindex', '-1' ); sectionTitle.trigger( 'focus' ); content.css( 'top', '' ); if ( args.completeCallback ) { args.completeCallback(); } } ); content.removeClass( 'open' ); overlay.removeClass( 'section-open' ); if ( section === api.state( 'expandedSection' ).get() ) { api.state( 'expandedSection' ).set( false ); } } else { if ( args.completeCallback ) { args.completeCallback(); } } } }); api.ThemesSection = api.Section.extend(/** @lends wp.customize.ThemesSection.prototype */{ currentTheme: '', overlay: '', template: '', screenshotQueue: null, $window: null, $body: null, loaded: 0, loading: false, fullyLoaded: false, term: '', tags: '', nextTerm: '', nextTags: '', filtersHeight: 0, headerContainer: null, updateCountDebounced: null, /** * wp.customize.ThemesSection * * Custom section for themes that loads themes by category, and also * handles the theme-details view rendering and navigation. * * @constructs wp.customize.ThemesSection * @augments wp.customize.Section * * @since 4.9.0 * * @param {string} id - ID. * @param {Object} options - Options. * @return {void} */ initialize: function( id, options ) { var section = this; section.headerContainer = $(); section.$window = $( window ); section.$body = $( document.body ); api.Section.prototype.initialize.call( section, id, options ); section.updateCountDebounced = _.debounce( section.updateCount, 500 ); }, /** * Embed the section in the DOM when the themes panel is ready. * * Insert the section before the themes container. Assume that a themes section is within a panel, but not necessarily the themes panel. * * @since 4.9.0 */ embed: function() { var inject, section = this; // Watch for changes to the panel state. inject = function( panelId ) { var parentContainer; api.panel( panelId, function( panel ) { // The panel has been registered, wait for it to become ready/initialized. panel.deferred.embedded.done( function() { parentContainer = panel.contentContainer; if ( ! section.headContainer.parent().is( parentContainer ) ) { parentContainer.find( '.customize-themes-full-container-container' ).before( section.headContainer ); } if ( ! section.contentContainer.parent().is( section.headContainer ) ) { section.containerParent.append( section.contentContainer ); } section.deferred.embedded.resolve(); }); } ); }; section.panel.bind( inject ); inject( section.panel.get() ); // Since a section may never get a panel, assume that it won't ever get one. }, /** * Set up. * * @since 4.2.0 * * @return {void} */ ready: function() { var section = this; section.overlay = section.container.find( '.theme-overlay' ); section.template = wp.template( 'customize-themes-details-view' ); // Bind global keyboard events. section.container.on( 'keydown', function( event ) { if ( ! section.overlay.find( '.theme-wrap' ).is( ':visible' ) ) { return; } // Pressing the right arrow key fires a theme:next event. if ( 39 === event.keyCode ) { section.nextTheme(); } // Pressing the left arrow key fires a theme:previous event. if ( 37 === event.keyCode ) { section.previousTheme(); } // Pressing the escape key fires a theme:collapse event. if ( 27 === event.keyCode ) { if ( section.$body.hasClass( 'modal-open' ) ) { // Escape from the details modal. section.closeDetails(); } else { // Escape from the infinite scroll list. section.headerContainer.find( '.customize-themes-section-title' ).focus(); } event.stopPropagation(); // Prevent section from being collapsed. } }); section.renderScreenshots = _.throttle( section.renderScreenshots, 100 ); _.bindAll( section, 'renderScreenshots', 'loadMore', 'checkTerm', 'filtersChecked' ); }, /** * Override Section.isContextuallyActive method. * * Ignore the active states' of the contained theme controls, and just * use the section's own active state instead. This prevents empty search * results for theme sections from causing the section to become inactive. * * @since 4.2.0 * * @return {boolean} */ isContextuallyActive: function () { return this.active(); }, /** * Attach events. * * @since 4.2.0 * * @return {void} */ attachEvents: function () { var section = this, debounced; // Expand/Collapse accordion sections on click. section.container.find( '.customize-section-back' ).on( 'click keydown', function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); // Keep this AFTER the key filter above. section.collapse(); }); section.headerContainer = $( '#accordion-section-' + section.id ); // Expand section/panel. Only collapse when opening another section. section.headerContainer.on( 'click', '.customize-themes-section-title', function() { // Toggle accordion filters under section headers. if ( section.headerContainer.find( '.filter-details' ).length ) { section.headerContainer.find( '.customize-themes-section-title' ) .toggleClass( 'details-open' ) .attr( 'aria-expanded', function( i, attr ) { return 'true' === attr ? 'false' : 'true'; }); section.headerContainer.find( '.filter-details' ).slideToggle( 180 ); } // Open the section. if ( ! section.expanded() ) { section.expand(); } }); // Preview installed themes. section.container.on( 'click', '.theme-actions .preview-theme', function() { api.panel( 'themes' ).loadThemePreview( $( this ).data( 'slug' ) ); }); // Theme navigation in details view. section.container.on( 'click', '.left', function() { section.previousTheme(); }); section.container.on( 'click', '.right', function() { section.nextTheme(); }); section.container.on( 'click', '.theme-backdrop, .close', function() { section.closeDetails(); }); if ( 'local' === section.params.filter_type ) { // Filter-search all theme objects loaded in the section. section.container.on( 'input', '.wp-filter-search-themes', function( event ) { section.filterSearch( event.currentTarget.value ); }); } else if ( 'remote' === section.params.filter_type ) { // Event listeners for remote queries with user-entered terms. // Search terms. debounced = _.debounce( section.checkTerm, 500 ); // Wait until there is no input for 500 milliseconds to initiate a search. section.contentContainer.on( 'input', '.wp-filter-search', function() { if ( ! api.panel( 'themes' ).expanded() ) { return; } debounced( section ); if ( ! section.expanded() ) { section.expand(); } }); // Feature filters. section.contentContainer.on( 'click', '.filter-group input', function() { section.filtersChecked(); section.checkTerm( section ); }); } // Toggle feature filters. section.contentContainer.on( 'click', '.feature-filter-toggle', function( e ) { var $themeContainer = $( '.customize-themes-full-container' ), $filterToggle = $( e.currentTarget ); section.filtersHeight = $filterToggle.parents( '.themes-filter-bar' ).next( '.filter-drawer' ).height(); if ( 0 < $themeContainer.scrollTop() ) { $themeContainer.animate( { scrollTop: 0 }, 400 ); if ( $filterToggle.hasClass( 'open' ) ) { return; } } $filterToggle .toggleClass( 'open' ) .attr( 'aria-expanded', function( i, attr ) { return 'true' === attr ? 'false' : 'true'; }) .parents( '.themes-filter-bar' ).next( '.filter-drawer' ).slideToggle( 180, 'linear' ); if ( $filterToggle.hasClass( 'open' ) ) { var marginOffset = 1018 < window.innerWidth ? 50 : 76; section.contentContainer.find( '.themes' ).css( 'margin-top', section.filtersHeight + marginOffset ); } else { section.contentContainer.find( '.themes' ).css( 'margin-top', 0 ); } }); // Setup section cross-linking. section.contentContainer.on( 'click', '.no-themes-local .search-dotorg-themes', function() { api.section( 'wporg_themes' ).focus(); }); function updateSelectedState() { var el = section.headerContainer.find( '.customize-themes-section-title' ); el.toggleClass( 'selected', section.expanded() ); el.attr( 'aria-expanded', section.expanded() ? 'true' : 'false' ); if ( ! section.expanded() ) { el.removeClass( 'details-open' ); } } section.expanded.bind( updateSelectedState ); updateSelectedState(); // Move section controls to the themes area. api.bind( 'ready', function () { section.contentContainer = section.container.find( '.customize-themes-section' ); section.contentContainer.appendTo( $( '.customize-themes-full-container' ) ); section.container.add( section.headerContainer ); }); }, /** * Update UI to reflect expanded state * * @since 4.2.0 * * @param {boolean} expanded * @param {Object} args * @param {boolean} args.unchanged * @param {Function} args.completeCallback * @return {void} */ onChangeExpanded: function ( expanded, args ) { // Note: there is a second argument 'args' passed. var section = this, container = section.contentContainer.closest( '.customize-themes-full-container' ); // Immediately call the complete callback if there were no changes. if ( args.unchanged ) { if ( args.completeCallback ) { args.completeCallback(); } return; } function expand() { // Try to load controls if none are loaded yet. if ( 0 === section.loaded ) { section.loadThemes(); } // Collapse any sibling sections/panels. api.section.each( function ( otherSection ) { var searchTerm; if ( otherSection !== section ) { // Try to sync the current search term to the new section. if ( 'themes' === otherSection.params.type ) { searchTerm = otherSection.contentContainer.find( '.wp-filter-search' ).val(); section.contentContainer.find( '.wp-filter-search' ).val( searchTerm ); // Directly initialize an empty remote search to avoid a race condition. if ( '' === searchTerm && '' !== section.term && 'local' !== section.params.filter_type ) { section.term = ''; section.initializeNewQuery( section.term, section.tags ); } else { if ( 'remote' === section.params.filter_type ) { section.checkTerm( section ); } else if ( 'local' === section.params.filter_type ) { section.filterSearch( searchTerm ); } } otherSection.collapse( { duration: args.duration } ); } } }); section.contentContainer.addClass( 'current-section' ); container.scrollTop(); container.on( 'scroll', _.throttle( section.renderScreenshots, 300 ) ); container.on( 'scroll', _.throttle( section.loadMore, 300 ) ); if ( args.completeCallback ) { args.completeCallback(); } section.updateCount(); // Show this section's count. } if ( expanded ) { if ( section.panel() && api.panel.has( section.panel() ) ) { api.panel( section.panel() ).expand({ duration: args.duration, completeCallback: expand }); } else { expand(); } } else { section.contentContainer.removeClass( 'current-section' ); // Always hide, even if they don't exist or are already hidden. section.headerContainer.find( '.filter-details' ).slideUp( 180 ); container.off( 'scroll' ); if ( args.completeCallback ) { args.completeCallback(); } } }, /** * Return the section's content element without detaching from the parent. * * @since 4.9.0 * * @return {jQuery} */ getContent: function() { return this.container.find( '.control-section-content' ); }, /** * Load theme data via Ajax and add themes to the section as controls. * * @since 4.9.0 * * @return {void} */ loadThemes: function() { var section = this, params, page, request; if ( section.loading ) { return; // We're already loading a batch of themes. } // Parameters for every API query. Additional params are set in PHP. page = Math.ceil( section.loaded / 100 ) + 1; params = { 'nonce': api.settings.nonce.switch_themes, 'wp_customize': 'on', 'theme_action': section.params.action, 'customized_theme': api.settings.theme.stylesheet, 'page': page }; // Add fields for remote filtering. if ( 'remote' === section.params.filter_type ) { params.search = section.term; params.tags = section.tags; } // Load themes. section.headContainer.closest( '.wp-full-overlay' ).addClass( 'loading' ); section.loading = true; section.container.find( '.no-themes' ).hide(); request = wp.ajax.post( 'customize_load_themes', params ); request.done(function( data ) { var themes = data.themes; // Stop and try again if the term changed while loading. if ( '' !== section.nextTerm || '' !== section.nextTags ) { if ( section.nextTerm ) { section.term = section.nextTerm; } if ( section.nextTags ) { section.tags = section.nextTags; } section.nextTerm = ''; section.nextTags = ''; section.loading = false; section.loadThemes(); return; } if ( 0 !== themes.length ) { section.loadControls( themes, page ); if ( 1 === page ) { // Pre-load the first 3 theme screenshots. _.each( section.controls().slice( 0, 3 ), function( control ) { var img, src = control.params.theme.screenshot[0]; if ( src ) { img = new Image(); img.src = src; } }); if ( 'local' !== section.params.filter_type ) { wp.a11y.speak( api.settings.l10n.themeSearchResults.replace( '%d', data.info.results ) ); } } _.delay( section.renderScreenshots, 100 ); // Wait for the controls to become visible. if ( 'local' === section.params.filter_type || 100 > themes.length ) { // If we have less than the requested 100 themes, it's the end of the list. section.fullyLoaded = true; } } else { if ( 0 === section.loaded ) { section.container.find( '.no-themes' ).show(); wp.a11y.speak( section.container.find( '.no-themes' ).text() ); } else { section.fullyLoaded = true; } } if ( 'local' === section.params.filter_type ) { section.updateCount(); // Count of visible theme controls. } else { section.updateCount( data.info.results ); // Total number of results including pages not yet loaded. } section.container.find( '.unexpected-error' ).hide(); // Hide error notice in case it was previously shown. // This cannot run on request.always, as section.loading may turn false before the new controls load in the success case. section.headContainer.closest( '.wp-full-overlay' ).removeClass( 'loading' ); section.loading = false; }); request.fail(function( data ) { if ( 'undefined' === typeof data ) { section.container.find( '.unexpected-error' ).show(); wp.a11y.speak( section.container.find( '.unexpected-error' ).text() ); } else if ( 'undefined' !== typeof console && console.error ) { console.error( data ); } // This cannot run on request.always, as section.loading may turn false before the new controls load in the success case. section.headContainer.closest( '.wp-full-overlay' ).removeClass( 'loading' ); section.loading = false; }); }, /** * Loads controls into the section from data received from loadThemes(). * * @since 4.9.0 * @param {Array} themes - Array of theme data to create controls with. * @param {number} page - Page of results being loaded. * @return {void} */ loadControls: function( themes, page ) { var newThemeControls = [], section = this; // Add controls for each theme. _.each( themes, function( theme ) { var themeControl = new api.controlConstructor.theme( section.params.action + '_theme_' + theme.id, { type: 'theme', section: section.params.id, theme: theme, priority: section.loaded + 1 } ); api.control.add( themeControl ); newThemeControls.push( themeControl ); section.loaded = section.loaded + 1; }); if ( 1 !== page ) { Array.prototype.push.apply( section.screenshotQueue, newThemeControls ); // Add new themes to the screenshot queue. } }, /** * Determines whether more themes should be loaded, and loads them. * * @since 4.9.0 * @return {void} */ loadMore: function() { var section = this, container, bottom, threshold; if ( ! section.fullyLoaded && ! section.loading ) { container = section.container.closest( '.customize-themes-full-container' ); bottom = container.scrollTop() + container.height(); // Use a fixed distance to the bottom of loaded results to avoid unnecessarily // loading results sooner when using a percentage of scroll distance. threshold = container.prop( 'scrollHeight' ) - 3000; if ( bottom > threshold ) { section.loadThemes(); } } }, /** * Event handler for search input that filters visible controls. * * @since 4.9.0 * * @param {string} term - The raw search input value. * @return {void} */ filterSearch: function( term ) { var count = 0, visible = false, section = this, noFilter = ( api.section.has( 'wporg_themes' ) && 'remote' !== section.params.filter_type ) ? '.no-themes-local' : '.no-themes', controls = section.controls(), terms; if ( section.loading ) { return; } // Standardize search term format and split into an array of individual words. terms = term.toLowerCase().trim().replace( /-/g, ' ' ).split( ' ' ); _.each( controls, function( control ) { visible = control.filter( terms ); // Shows/hides and sorts control based on the applicability of the search term. if ( visible ) { count = count + 1; } }); if ( 0 === count ) { section.container.find( noFilter ).show(); wp.a11y.speak( section.container.find( noFilter ).text() ); } else { section.container.find( noFilter ).hide(); } section.renderScreenshots(); api.reflowPaneContents(); // Update theme count. section.updateCountDebounced( count ); }, /** * Event handler for search input that determines if the terms have changed and loads new controls as needed. * * @since 4.9.0 * * @param {wp.customize.ThemesSection} section - The current theme section, passed through the debouncer. * @return {void} */ checkTerm: function( section ) { var newTerm; if ( 'remote' === section.params.filter_type ) { newTerm = section.contentContainer.find( '.wp-filter-search' ).val(); if ( section.term !== newTerm.trim() ) { section.initializeNewQuery( newTerm, section.tags ); } } }, /** * Check for filters checked in the feature filter list and initialize a new query. * * @since 4.9.0 * * @return {void} */ filtersChecked: function() { var section = this, items = section.container.find( '.filter-group' ).find( ':checkbox' ), tags = []; _.each( items.filter( ':checked' ), function( item ) { tags.push( $( item ).prop( 'value' ) ); }); // When no filters are checked, restore initial state. Update filter count. if ( 0 === tags.length ) { tags = ''; section.contentContainer.find( '.feature-filter-toggle .filter-count-0' ).show(); section.contentContainer.find( '.feature-filter-toggle .filter-count-filters' ).hide(); } else { section.contentContainer.find( '.feature-filter-toggle .theme-filter-count' ).text( tags.length ); section.contentContainer.find( '.feature-filter-toggle .filter-count-0' ).hide(); section.contentContainer.find( '.feature-filter-toggle .filter-count-filters' ).show(); } // Check whether tags have changed, and either load or queue them. if ( ! _.isEqual( section.tags, tags ) ) { if ( section.loading ) { section.nextTags = tags; } else { if ( 'remote' === section.params.filter_type ) { section.initializeNewQuery( section.term, tags ); } else if ( 'local' === section.params.filter_type ) { section.filterSearch( tags.join( ' ' ) ); } } } }, /** * Reset the current query and load new results. * * @since 4.9.0 * * @param {string} newTerm - New term. * @param {Array} newTags - New tags. * @return {void} */ initializeNewQuery: function( newTerm, newTags ) { var section = this; // Clear the controls in the section. _.each( section.controls(), function( control ) { control.container.remove(); api.control.remove( control.id ); }); section.loaded = 0; section.fullyLoaded = false; section.screenshotQueue = null; // Run a new query, with loadThemes handling paging, etc. if ( ! section.loading ) { section.term = newTerm; section.tags = newTags; section.loadThemes(); } else { section.nextTerm = newTerm; // This will reload from loadThemes() with the newest term once the current batch is loaded. section.nextTags = newTags; // This will reload from loadThemes() with the newest tags once the current batch is loaded. } if ( ! section.expanded() ) { section.expand(); // Expand the section if it isn't expanded. } }, /** * Render control's screenshot if the control comes into view. * * @since 4.2.0 * * @return {void} */ renderScreenshots: function() { var section = this; // Fill queue initially, or check for more if empty. if ( null === section.screenshotQueue || 0 === section.screenshotQueue.length ) { // Add controls that haven't had their screenshots rendered. section.screenshotQueue = _.filter( section.controls(), function( control ) { return ! control.screenshotRendered; }); } // Are all screenshots rendered (for now)? if ( ! section.screenshotQueue.length ) { return; } section.screenshotQueue = _.filter( section.screenshotQueue, function( control ) { var $imageWrapper = control.container.find( '.theme-screenshot' ), $image = $imageWrapper.find( 'img' ); if ( ! $image.length ) { return false; } if ( $image.is( ':hidden' ) ) { return true; } // Based on unveil.js. var wt = section.$window.scrollTop(), wb = wt + section.$window.height(), et = $image.offset().top, ih = $imageWrapper.height(), eb = et + ih, threshold = ih * 3, inView = eb >= wt - threshold && et <= wb + threshold; if ( inView ) { control.container.trigger( 'render-screenshot' ); } // If the image is in view return false so it's cleared from the queue. return ! inView; } ); }, /** * Get visible count. * * @since 4.9.0 * * @return {number} Visible count. */ getVisibleCount: function() { return this.contentContainer.find( 'li.customize-control:visible' ).length; }, /** * Update the number of themes in the section. * * @since 4.9.0 * * @return {void} */ updateCount: function( count ) { var section = this, countEl, displayed; if ( ! count && 0 !== count ) { count = section.getVisibleCount(); } displayed = section.contentContainer.find( '.themes-displayed' ); countEl = section.contentContainer.find( '.theme-count' ); if ( 0 === count ) { countEl.text( '0' ); } else { // Animate the count change for emphasis. displayed.fadeOut( 180, function() { countEl.text( count ); displayed.fadeIn( 180 ); } ); wp.a11y.speak( api.settings.l10n.announceThemeCount.replace( '%d', count ) ); } }, /** * Advance the modal to the next theme. * * @since 4.2.0 * * @return {void} */ nextTheme: function () { var section = this; if ( section.getNextTheme() ) { section.showDetails( section.getNextTheme(), function() { section.overlay.find( '.right' ).focus(); } ); } }, /** * Get the next theme model. * * @since 4.2.0 * * @return {wp.customize.ThemeControl|boolean} Next theme. */ getNextTheme: function () { var section = this, control, nextControl, sectionControls, i; control = api.control( section.params.action + '_theme_' + section.currentTheme ); sectionControls = section.controls(); i = _.indexOf( sectionControls, control ); if ( -1 === i ) { return false; } nextControl = sectionControls[ i + 1 ]; if ( ! nextControl ) { return false; } return nextControl.params.theme; }, /** * Advance the modal to the previous theme. * * @since 4.2.0 * @return {void} */ previousTheme: function () { var section = this; if ( section.getPreviousTheme() ) { section.showDetails( section.getPreviousTheme(), function() { section.overlay.find( '.left' ).focus(); } ); } }, /** * Get the previous theme model. * * @since 4.2.0 * @return {wp.customize.ThemeControl|boolean} Previous theme. */ getPreviousTheme: function () { var section = this, control, nextControl, sectionControls, i; control = api.control( section.params.action + '_theme_' + section.currentTheme ); sectionControls = section.controls(); i = _.indexOf( sectionControls, control ); if ( -1 === i ) { return false; } nextControl = sectionControls[ i - 1 ]; if ( ! nextControl ) { return false; } return nextControl.params.theme; }, /** * Disable buttons when we're viewing the first or last theme. * * @since 4.2.0 * * @return {void} */ updateLimits: function () { if ( ! this.getNextTheme() ) { this.overlay.find( '.right' ).addClass( 'disabled' ); } if ( ! this.getPreviousTheme() ) { this.overlay.find( '.left' ).addClass( 'disabled' ); } }, /** * Load theme preview. * * @since 4.7.0 * @access public * * @deprecated * @param {string} themeId Theme ID. * @return {jQuery.promise} Promise. */ loadThemePreview: function( themeId ) { return api.ThemesPanel.prototype.loadThemePreview.call( this, themeId ); }, /** * Render & show the theme details for a given theme model. * * @since 4.2.0 * * @param {Object} theme - Theme. * @param {Function} [callback] - Callback once the details have been shown. * @return {void} */ showDetails: function ( theme, callback ) { var section = this, panel = api.panel( 'themes' ); section.currentTheme = theme.id; section.overlay.html( section.template( theme ) ) .fadeIn( 'fast' ) .focus(); function disableSwitchButtons() { return ! panel.canSwitchTheme( theme.id ); } // Temporary special function since supplying SFTP credentials does not work yet. See #42184. function disableInstallButtons() { return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded; } section.overlay.find( 'button.preview, button.preview-theme' ).toggleClass( 'disabled', disableSwitchButtons() ); section.overlay.find( 'button.theme-install' ).toggleClass( 'disabled', disableInstallButtons() ); section.$body.addClass( 'modal-open' ); section.containFocus( section.overlay ); section.updateLimits(); wp.a11y.speak( api.settings.l10n.announceThemeDetails.replace( '%s', theme.name ) ); if ( callback ) { callback(); } }, /** * Close the theme details modal. * * @since 4.2.0 * * @return {void} */ closeDetails: function () { var section = this; section.$body.removeClass( 'modal-open' ); section.overlay.fadeOut( 'fast' ); api.control( section.params.action + '_theme_' + section.currentTheme ).container.find( '.theme' ).focus(); }, /** * Keep tab focus within the theme details modal. * * @since 4.2.0 * * @param {jQuery} el - Element to contain focus. * @return {void} */ containFocus: function( el ) { var tabbables; el.on( 'keydown', function( event ) { // Return if it's not the tab key // When navigating with prev/next focus is already handled. if ( 9 !== event.keyCode ) { return; } // Uses jQuery UI to get the tabbable elements. tabbables = $( ':tabbable', el ); // Keep focus within the overlay. if ( tabbables.last()[0] === event.target && ! event.shiftKey ) { tabbables.first().focus(); return false; } else if ( tabbables.first()[0] === event.target && event.shiftKey ) { tabbables.last().focus(); return false; } }); } }); api.OuterSection = api.Section.extend(/** @lends wp.customize.OuterSection.prototype */{ /** * Class wp.customize.OuterSection. * * Creates section outside of the sidebar, there is no ui to trigger collapse/expand so * it would require custom handling. * * @constructs wp.customize.OuterSection * @augments wp.customize.Section * * @since 4.9.0 * * @return {void} */ initialize: function() { var section = this; section.containerParent = '#customize-outer-theme-controls'; section.containerPaneParent = '.customize-outer-pane-parent'; api.Section.prototype.initialize.apply( section, arguments ); }, /** * Overrides api.Section.prototype.onChangeExpanded to prevent collapse/expand effect * on other sections and panels. * * @since 4.9.0 * * @param {boolean} expanded - The expanded state to transition to. * @param {Object} [args] - Args. * @param {boolean} [args.unchanged] - Whether the state is already known to not be changed, and so short-circuit with calling completeCallback early. * @param {Function} [args.completeCallback] - Function to call when the slideUp/slideDown has completed. * @param {Object} [args.duration] - The duration for the animation. */ onChangeExpanded: function( expanded, args ) { var section = this, container = section.headContainer.closest( '.wp-full-overlay-sidebar-content' ), content = section.contentContainer, backBtn = content.find( '.customize-section-back' ), sectionTitle = section.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ).first(), body = $( document.body ), expand, panel; body.toggleClass( 'outer-section-open', expanded ); section.container.toggleClass( 'open', expanded ); section.container.removeClass( 'busy' ); api.section.each( function( _section ) { if ( 'outer' === _section.params.type && _section.id !== section.id ) { _section.container.removeClass( 'open' ); } } ); if ( expanded && ! content.hasClass( 'open' ) ) { if ( args.unchanged ) { expand = args.completeCallback; } else { expand = function() { section._animateChangeExpanded( function() { backBtn.attr( 'tabindex', '0' ); backBtn.trigger( 'focus' ); content.css( 'top', '' ); container.scrollTop( 0 ); if ( args.completeCallback ) { args.completeCallback(); } } ); content.addClass( 'open' ); }.bind( this ); } if ( section.panel() ) { api.panel( section.panel() ).expand({ duration: args.duration, completeCallback: expand }); } else { expand(); } } else if ( ! expanded && content.hasClass( 'open' ) ) { if ( section.panel() ) { panel = api.panel( section.panel() ); if ( panel.contentContainer.hasClass( 'skip-transition' ) ) { panel.collapse(); } } section._animateChangeExpanded( function() { backBtn.attr( 'tabindex', '-1' ); sectionTitle.trigger( 'focus' ); content.css( 'top', '' ); if ( args.completeCallback ) { args.completeCallback(); } } ); content.removeClass( 'open' ); } else { if ( args.completeCallback ) { args.completeCallback(); } } } }); api.Panel = Container.extend(/** @lends wp.customize.Panel.prototype */{ containerType: 'panel', /** * @constructs wp.customize.Panel * @augments wp.customize~Container * * @since 4.1.0 * * @param {string} id - The ID for the panel. * @param {Object} options - Object containing one property: params. * @param {string} options.title - Title shown when panel is collapsed and expanded. * @param {string} [options.description] - Description shown at the top of the panel. * @param {number} [options.priority=100] - The sort priority for the panel. * @param {string} [options.type=default] - The type of the panel. See wp.customize.panelConstructor. * @param {string} [options.content] - The markup to be used for the panel container. If empty, a JS template is used. * @param {boolean} [options.active=true] - Whether the panel is active or not. * @param {Object} [options.params] - Deprecated wrapper for the above properties. */ initialize: function ( id, options ) { var panel = this, params; params = options.params || options; // Look up the type if one was not supplied. if ( ! params.type ) { _.find( api.panelConstructor, function( Constructor, type ) { if ( Constructor === panel.constructor ) { params.type = type; return true; } return false; } ); } Container.prototype.initialize.call( panel, id, params ); panel.embed(); panel.deferred.embedded.done( function () { panel.ready(); }); }, /** * Embed the container in the DOM when any parent panel is ready. * * @since 4.1.0 */ embed: function () { var panel = this, container = $( '#customize-theme-controls' ), parentContainer = $( '.customize-pane-parent' ); // @todo This should be defined elsewhere, and to be configurable. if ( ! panel.headContainer.parent().is( parentContainer ) ) { parentContainer.append( panel.headContainer ); } if ( ! panel.contentContainer.parent().is( panel.headContainer ) ) { container.append( panel.contentContainer ); } panel.renderContent(); panel.deferred.embedded.resolve(); }, /** * @since 4.1.0 */ attachEvents: function () { var meta, panel = this; // Expand/Collapse accordion sections on click. panel.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ).on( 'click keydown', function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); // Keep this AFTER the key filter above. if ( ! panel.expanded() ) { panel.expand(); } }); // Close panel. panel.container.find( '.customize-panel-back' ).on( 'click keydown', function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); // Keep this AFTER the key filter above. if ( panel.expanded() ) { panel.collapse(); } }); meta = panel.container.find( '.panel-meta:first' ); meta.find( '> .accordion-section-title .customize-help-toggle' ).on( 'click', function() { if ( meta.hasClass( 'cannot-expand' ) ) { return; } var content = meta.find( '.customize-panel-description:first' ); if ( meta.hasClass( 'open' ) ) { meta.toggleClass( 'open' ); content.slideUp( panel.defaultExpandedArguments.duration, function() { content.trigger( 'toggled' ); } ); $( this ).attr( 'aria-expanded', false ); } else { content.slideDown( panel.defaultExpandedArguments.duration, function() { content.trigger( 'toggled' ); } ); meta.toggleClass( 'open' ); $( this ).attr( 'aria-expanded', true ); } }); }, /** * Get the sections that are associated with this panel, sorted by their priority Value. * * @since 4.1.0 * * @return {Array} */ sections: function () { return this._children( 'panel', 'section' ); }, /** * Return whether this panel has any active sections. * * @since 4.1.0 * * @return {boolean} Whether contextually active. */ isContextuallyActive: function () { var panel = this, sections = panel.sections(), activeCount = 0; _( sections ).each( function ( section ) { if ( section.active() && section.isContextuallyActive() ) { activeCount += 1; } } ); return ( activeCount !== 0 ); }, /** * Update UI to reflect expanded state. * * @since 4.1.0 * * @param {boolean} expanded * @param {Object} args * @param {boolean} args.unchanged * @param {Function} args.completeCallback * @return {void} */ onChangeExpanded: function ( expanded, args ) { // Immediately call the complete callback if there were no changes. if ( args.unchanged ) { if ( args.completeCallback ) { args.completeCallback(); } return; } // Note: there is a second argument 'args' passed. var panel = this, accordionSection = panel.contentContainer, overlay = accordionSection.closest( '.wp-full-overlay' ), container = accordionSection.closest( '.wp-full-overlay-sidebar-content' ), topPanel = panel.headContainer.find( '.accordion-section-title button, .accordion-section-title[tabindex]' ), backBtn = accordionSection.find( '.customize-panel-back' ), childSections = panel.sections(), skipTransition; if ( expanded && ! accordionSection.hasClass( 'current-panel' ) ) { // Collapse any sibling sections/panels. api.section.each( function ( section ) { if ( panel.id !== section.panel() ) { section.collapse( { duration: 0 } ); } }); api.panel.each( function ( otherPanel ) { if ( panel !== otherPanel ) { otherPanel.collapse( { duration: 0 } ); } }); if ( panel.params.autoExpandSoleSection && 1 === childSections.length && childSections[0].active.get() ) { accordionSection.addClass( 'current-panel skip-transition' ); overlay.addClass( 'in-sub-panel' ); childSections[0].expand( { completeCallback: args.completeCallback } ); } else { panel._animateChangeExpanded( function() { backBtn.attr( 'tabindex', '0' ); backBtn.trigger( 'focus' ); accordionSection.css( 'top', '' ); container.scrollTop( 0 ); if ( args.completeCallback ) { args.completeCallback(); } } ); accordionSection.addClass( 'current-panel' ); overlay.addClass( 'in-sub-panel' ); } api.state( 'expandedPanel' ).set( panel ); } else if ( ! expanded && accordionSection.hasClass( 'current-panel' ) ) { skipTransition = accordionSection.hasClass( 'skip-transition' ); if ( ! skipTransition ) { panel._animateChangeExpanded( function() { topPanel.focus(); accordionSection.css( 'top', '' ); if ( args.completeCallback ) { args.completeCallback(); } } ); } else { accordionSection.removeClass( 'skip-transition' ); } overlay.removeClass( 'in-sub-panel' ); accordionSection.removeClass( 'current-panel' ); if ( panel === api.state( 'expandedPanel' ).get() ) { api.state( 'expandedPanel' ).set( false ); } } }, /** * Render the panel from its JS template, if it exists. * * The panel's container must already exist in the DOM. * * @since 4.3.0 */ renderContent: function () { var template, panel = this; // Add the content to the container. if ( 0 !== $( '#tmpl-' + panel.templateSelector + '-content' ).length ) { template = wp.template( panel.templateSelector + '-content' ); } else { template = wp.template( 'customize-panel-default-content' ); } if ( template && panel.headContainer ) { panel.contentContainer.html( template( _.extend( { id: panel.id }, panel.params ) ) ); } } }); api.ThemesPanel = api.Panel.extend(/** @lends wp.customize.ThemsPanel.prototype */{ /** * Class wp.customize.ThemesPanel. * * Custom section for themes that displays without the customize preview. * * @constructs wp.customize.ThemesPanel * @augments wp.customize.Panel * * @since 4.9.0 * * @param {string} id - The ID for the panel. * @param {Object} options - Options. * @return {void} */ initialize: function( id, options ) { var panel = this; panel.installingThemes = []; api.Panel.prototype.initialize.call( panel, id, options ); }, /** * Determine whether a given theme can be switched to, or in general. * * @since 4.9.0 * * @param {string} [slug] - Theme slug. * @return {boolean} Whether the theme can be switched to. */ canSwitchTheme: function canSwitchTheme( slug ) { if ( slug && slug === api.settings.theme.stylesheet ) { return true; } return 'publish' === api.state( 'selectedChangesetStatus' ).get() && ( '' === api.state( 'changesetStatus' ).get() || 'auto-draft' === api.state( 'changesetStatus' ).get() ); }, /** * Attach events. * * @since 4.9.0 * @return {void} */ attachEvents: function() { var panel = this; // Attach regular panel events. api.Panel.prototype.attachEvents.apply( panel ); // Temporary since supplying SFTP credentials does not work yet. See #42184. if ( api.settings.theme._canInstall && api.settings.theme._filesystemCredentialsNeeded ) { panel.notifications.add( new api.Notification( 'theme_install_unavailable', { message: api.l10n.themeInstallUnavailable, type: 'info', dismissible: true } ) ); } function toggleDisabledNotifications() { if ( panel.canSwitchTheme() ) { panel.notifications.remove( 'theme_switch_unavailable' ); } else { panel.notifications.add( new api.Notification( 'theme_switch_unavailable', { message: api.l10n.themePreviewUnavailable, type: 'warning' } ) ); } } toggleDisabledNotifications(); api.state( 'selectedChangesetStatus' ).bind( toggleDisabledNotifications ); api.state( 'changesetStatus' ).bind( toggleDisabledNotifications ); // Collapse panel to customize the current theme. panel.contentContainer.on( 'click', '.customize-theme', function() { panel.collapse(); }); // Toggle between filtering and browsing themes on mobile. panel.contentContainer.on( 'click', '.customize-themes-section-title, .customize-themes-mobile-back', function() { $( '.wp-full-overlay' ).toggleClass( 'showing-themes' ); }); // Install (and maybe preview) a theme. panel.contentContainer.on( 'click', '.theme-install', function( event ) { panel.installTheme( event ); }); // Update a theme. Theme cards have the class, the details modal has the id. panel.contentContainer.on( 'click', '.update-theme, #update-theme', function( event ) { // #update-theme is a link. event.preventDefault(); event.stopPropagation(); panel.updateTheme( event ); }); // Delete a theme. panel.contentContainer.on( 'click', '.delete-theme', function( event ) { panel.deleteTheme( event ); }); _.bindAll( panel, 'installTheme', 'updateTheme' ); }, /** * Update UI to reflect expanded state * * @since 4.9.0 * * @param {boolean} expanded - Expanded state. * @param {Object} args - Args. * @param {boolean} args.unchanged - Whether or not the state changed. * @param {Function} args.completeCallback - Callback to execute when the animation completes. * @return {void} */ onChangeExpanded: function( expanded, args ) { var panel = this, overlay, sections, hasExpandedSection = false; // Expand/collapse the panel normally. api.Panel.prototype.onChangeExpanded.apply( this, [ expanded, args ] ); // Immediately call the complete callback if there were no changes. if ( args.unchanged ) { if ( args.completeCallback ) { args.completeCallback(); } return; } overlay = panel.headContainer.closest( '.wp-full-overlay' ); if ( expanded ) { overlay .addClass( 'in-themes-panel' ) .delay( 200 ).find( '.customize-themes-full-container' ).addClass( 'animate' ); _.delay( function() { overlay.addClass( 'themes-panel-expanded' ); }, 200 ); // Automatically open the first section (except on small screens), if one isn't already expanded. if ( 600 < window.innerWidth ) { sections = panel.sections(); _.each( sections, function( section ) { if ( section.expanded() ) { hasExpandedSection = true; } } ); if ( ! hasExpandedSection && sections.length > 0 ) { sections[0].expand(); } } } else { overlay .removeClass( 'in-themes-panel themes-panel-expanded' ) .find( '.customize-themes-full-container' ).removeClass( 'animate' ); } }, /** * Install a theme via wp.updates. * * @since 4.9.0 * * @param {jQuery.Event} event - Event. * @return {jQuery.promise} Promise. */ installTheme: function( event ) { var panel = this, preview, onInstallSuccess, slug = $( event.target ).data( 'slug' ), deferred = $.Deferred(), request; preview = $( event.target ).hasClass( 'preview' ); // Temporary since supplying SFTP credentials does not work yet. See #42184. if ( api.settings.theme._filesystemCredentialsNeeded ) { deferred.reject({ errorCode: 'theme_install_unavailable' }); return deferred.promise(); } // Prevent loading a non-active theme preview when there is a drafted/scheduled changeset. if ( ! panel.canSwitchTheme( slug ) ) { deferred.reject({ errorCode: 'theme_switch_unavailable' }); return deferred.promise(); } // Theme is already being installed. if ( _.contains( panel.installingThemes, slug ) ) { deferred.reject({ errorCode: 'theme_already_installing' }); return deferred.promise(); } wp.updates.maybeRequestFilesystemCredentials( event ); onInstallSuccess = function( response ) { var theme = false, themeControl; if ( preview ) { api.notifications.remove( 'theme_installing' ); panel.loadThemePreview( slug ); } else { api.control.each( function( control ) { if ( 'theme' === control.params.type && control.params.theme.id === response.slug ) { theme = control.params.theme; // Used below to add theme control. control.rerenderAsInstalled( true ); } }); // Don't add the same theme more than once. if ( ! theme || api.control.has( 'installed_theme_' + theme.id ) ) { deferred.resolve( response ); return; } // Add theme control to installed section. theme.type = 'installed'; themeControl = new api.controlConstructor.theme( 'installed_theme_' + theme.id, { type: 'theme', section: 'installed_themes', theme: theme, priority: 0 // Add all newly-installed themes to the top. } ); api.control.add( themeControl ); api.control( themeControl.id ).container.trigger( 'render-screenshot' ); // Close the details modal if it's open to the installed theme. api.section.each( function( section ) { if ( 'themes' === section.params.type ) { if ( theme.id === section.currentTheme ) { // Don't close the modal if the user has navigated elsewhere. section.closeDetails(); } } }); } deferred.resolve( response ); }; panel.installingThemes.push( slug ); // Note: we don't remove elements from installingThemes, since they shouldn't be installed again. request = wp.updates.installTheme( { slug: slug } ); // Also preview the theme as the event is triggered on Install & Preview. if ( preview ) { api.notifications.add( new api.OverlayNotification( 'theme_installing', { message: api.l10n.themeDownloading, type: 'info', loading: true } ) ); } request.done( onInstallSuccess ); request.fail( function() { api.notifications.remove( 'theme_installing' ); } ); return deferred.promise(); }, /** * Load theme preview. * * @since 4.9.0 * * @param {string} themeId Theme ID. * @return {jQuery.promise} Promise. */ loadThemePreview: function( themeId ) { var panel = this, deferred = $.Deferred(), onceProcessingComplete, urlParser, queryParams; // Prevent loading a non-active theme preview when there is a drafted/scheduled changeset. if ( ! panel.canSwitchTheme( themeId ) ) { deferred.reject({ errorCode: 'theme_switch_unavailable' }); return deferred.promise(); } urlParser = document.createElement( 'a' ); urlParser.href = location.href; queryParams = _.extend( api.utils.parseQueryString( urlParser.search.substr( 1 ) ), { theme: themeId, changeset_uuid: api.settings.changeset.uuid, 'return': api.settings.url['return'] } ); // Include autosaved param to load autosave revision without prompting user to restore it. if ( ! api.state( 'saved' ).get() ) { queryParams.customize_autosaved = 'on'; } urlParser.search = $.param( queryParams ); // Update loading message. Everything else is handled by reloading the page. api.notifications.add( new api.OverlayNotification( 'theme_previewing', { message: api.l10n.themePreviewWait, type: 'info', loading: true } ) ); onceProcessingComplete = function() { var request; if ( api.state( 'processing' ).get() > 0 ) { return; } api.state( 'processing' ).unbind( onceProcessingComplete ); request = api.requestChangesetUpdate( {}, { autosave: true } ); request.done( function() { deferred.resolve(); $( window ).off( 'beforeunload.customize-confirm' ); location.replace( urlParser.href ); } ); request.fail( function() { // @todo Show notification regarding failure. api.notifications.remove( 'theme_previewing' ); deferred.reject(); } ); }; if ( 0 === api.state( 'processing' ).get() ) { onceProcessingComplete(); } else { api.state( 'processing' ).bind( onceProcessingComplete ); } return deferred.promise(); }, /** * Update a theme via wp.updates. * * @since 4.9.0 * * @param {jQuery.Event} event - Event. * @return {void} */ updateTheme: function( event ) { wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).one( 'wp-theme-update-success', function( e, response ) { // Rerender the control to reflect the update. api.control.each( function( control ) { if ( 'theme' === control.params.type && control.params.theme.id === response.slug ) { control.params.theme.hasUpdate = false; control.params.theme.version = response.newVersion; setTimeout( function() { control.rerenderAsInstalled( true ); }, 2000 ); } }); } ); wp.updates.updateTheme( { slug: $( event.target ).closest( '.notice' ).data( 'slug' ) } ); }, /** * Delete a theme via wp.updates. * * @since 4.9.0 * * @param {jQuery.Event} event - Event. * @return {void} */ deleteTheme: function( event ) { var theme, section; theme = $( event.target ).data( 'slug' ); section = api.section( 'installed_themes' ); event.preventDefault(); // Temporary since supplying SFTP credentials does not work yet. See #42184. if ( api.settings.theme._filesystemCredentialsNeeded ) { return; } // Confirmation dialog for deleting a theme. if ( ! window.confirm( api.settings.l10n.confirmDeleteTheme ) ) { return; } wp.updates.maybeRequestFilesystemCredentials( event ); $( document ).one( 'wp-theme-delete-success', function() { var control = api.control( 'installed_theme_' + theme ); // Remove theme control. control.container.remove(); api.control.remove( control.id ); // Update installed count. section.loaded = section.loaded - 1; section.updateCount(); // Rerender any other theme controls as uninstalled. api.control.each( function( control ) { if ( 'theme' === control.params.type && control.params.theme.id === theme ) { control.rerenderAsInstalled( false ); } }); } ); wp.updates.deleteTheme( { slug: theme } ); // Close modal and focus the section. section.closeDetails(); section.focus(); } }); api.Control = api.Class.extend(/** @lends wp.customize.Control.prototype */{ defaultActiveArguments: { duration: 'fast', completeCallback: $.noop }, /** * Default params. * * @since 4.9.0 * @var {object} */ defaults: { label: '', description: '', active: true, priority: 10 }, /** * A Customizer Control. * * A control provides a UI element that allows a user to modify a Customizer Setting. * * @see PHP class WP_Customize_Control. * * @constructs wp.customize.Control * @augments wp.customize.Class * * @borrows wp.customize~focus as this#focus * @borrows wp.customize~Container#activate as this#activate * @borrows wp.customize~Container#deactivate as this#deactivate * @borrows wp.customize~Container#_toggleActive as this#_toggleActive * * @param {string} id - Unique identifier for the control instance. * @param {Object} options - Options hash for the control instance. * @param {Object} options.type - Type of control (e.g. text, radio, dropdown-pages, etc.) * @param {string} [options.content] - The HTML content for the control or at least its container. This should normally be left blank and instead supplying a templateId. * @param {string} [options.templateId] - Template ID for control's content. * @param {string} [options.priority=10] - Order of priority to show the control within the section. * @param {string} [options.active=true] - Whether the control is active. * @param {string} options.section - The ID of the section the control belongs to. * @param {mixed} [options.setting] - The ID of the main setting or an instance of this setting. * @param {mixed} options.settings - An object with keys (e.g. default) that maps to setting IDs or Setting/Value objects, or an array of setting IDs or Setting/Value objects. * @param {mixed} options.settings.default - The ID of the setting the control relates to. * @param {string} options.settings.data - @todo Is this used? * @param {string} options.label - Label. * @param {string} options.description - Description. * @param {number} [options.instanceNumber] - Order in which this instance was created in relation to other instances. * @param {Object} [options.params] - Deprecated wrapper for the above properties. * @return {void} */ initialize: function( id, options ) { var control = this, deferredSettingIds = [], settings, gatherSettings; control.params = _.extend( {}, control.defaults, control.params || {}, // In case subclass already defines. options.params || options || {} // The options.params property is deprecated, but it is checked first for back-compat. ); if ( ! api.Control.instanceCounter ) { api.Control.instanceCounter = 0; } api.Control.instanceCounter++; if ( ! control.params.instanceNumber ) { control.params.instanceNumber = api.Control.instanceCounter; } // Look up the type if one was not supplied. if ( ! control.params.type ) { _.find( api.controlConstructor, function( Constructor, type ) { if ( Constructor === control.constructor ) { control.params.type = type; return true; } return false; } ); } if ( ! control.params.content ) { control.params.content = $( '
        • ', { id: 'customize-control-' + id.replace( /]/g, '' ).replace( /\[/g, '-' ), 'class': 'customize-control customize-control-' + control.params.type } ); } control.id = id; control.selector = '#customize-control-' + id.replace( /\]/g, '' ).replace( /\[/g, '-' ); // Deprecated, likely dead code from time before #28709. if ( control.params.content ) { control.container = $( control.params.content ); } else { control.container = $( control.selector ); // Likely dead, per above. See #28709. } if ( control.params.templateId ) { control.templateSelector = control.params.templateId; } else { control.templateSelector = 'customize-control-' + control.params.type + '-content'; } control.deferred = _.extend( control.deferred || {}, { embedded: new $.Deferred() } ); control.section = new api.Value(); control.priority = new api.Value(); control.active = new api.Value(); control.activeArgumentsQueue = []; control.notifications = new api.Notifications({ alt: control.altNotice }); control.elements = []; control.active.bind( function ( active ) { var args = control.activeArgumentsQueue.shift(); args = $.extend( {}, control.defaultActiveArguments, args ); control.onChangeActive( active, args ); } ); control.section.set( control.params.section ); control.priority.set( isNaN( control.params.priority ) ? 10 : control.params.priority ); control.active.set( control.params.active ); api.utils.bubbleChildValueChanges( control, [ 'section', 'priority', 'active' ] ); control.settings = {}; settings = {}; if ( control.params.setting ) { settings['default'] = control.params.setting; } _.extend( settings, control.params.settings ); // Note: Settings can be an array or an object, with values being either setting IDs or Setting (or Value) objects. _.each( settings, function( value, key ) { var setting; if ( _.isObject( value ) && _.isFunction( value.extended ) && value.extended( api.Value ) ) { control.settings[ key ] = value; } else if ( _.isString( value ) ) { setting = api( value ); if ( setting ) { control.settings[ key ] = setting; } else { deferredSettingIds.push( value ); } } } ); gatherSettings = function() { // Fill-in all resolved settings. _.each( settings, function ( settingId, key ) { if ( ! control.settings[ key ] && _.isString( settingId ) ) { control.settings[ key ] = api( settingId ); } } ); // Make sure settings passed as array gets associated with default. if ( control.settings[0] && ! control.settings['default'] ) { control.settings['default'] = control.settings[0]; } // Identify the main setting. control.setting = control.settings['default'] || null; control.linkElements(); // Link initial elements present in server-rendered content. control.embed(); }; if ( 0 === deferredSettingIds.length ) { gatherSettings(); } else { api.apply( api, deferredSettingIds.concat( gatherSettings ) ); } // After the control is embedded on the page, invoke the "ready" method. control.deferred.embedded.done( function () { control.linkElements(); // Link any additional elements after template is rendered by renderContent(). control.setupNotifications(); control.ready(); }); }, /** * Link elements between settings and inputs. * * @since 4.7.0 * @access public * * @return {void} */ linkElements: function () { var control = this, nodes, radios, element; nodes = control.container.find( '[data-customize-setting-link], [data-customize-setting-key-link]' ); radios = {}; nodes.each( function () { var node = $( this ), name, setting; if ( node.data( 'customizeSettingLinked' ) ) { return; } node.data( 'customizeSettingLinked', true ); // Prevent re-linking element. if ( node.is( ':radio' ) ) { name = node.prop( 'name' ); if ( radios[name] ) { return; } radios[name] = true; node = nodes.filter( '[name="' + name + '"]' ); } // Let link by default refer to setting ID. If it doesn't exist, fallback to looking up by setting key. if ( node.data( 'customizeSettingLink' ) ) { setting = api( node.data( 'customizeSettingLink' ) ); } else if ( node.data( 'customizeSettingKeyLink' ) ) { setting = control.settings[ node.data( 'customizeSettingKeyLink' ) ]; } if ( setting ) { element = new api.Element( node ); control.elements.push( element ); element.sync( setting ); element.set( setting() ); } } ); }, /** * Embed the control into the page. */ embed: function () { var control = this, inject; // Watch for changes to the section state. inject = function ( sectionId ) { var parentContainer; if ( ! sectionId ) { // @todo Allow a control to be embedded without a section, for instance a control embedded in the front end. return; } // Wait for the section to be registered. api.section( sectionId, function ( section ) { // Wait for the section to be ready/initialized. section.deferred.embedded.done( function () { parentContainer = ( section.contentContainer.is( 'ul' ) ) ? section.contentContainer : section.contentContainer.find( 'ul:first' ); if ( ! control.container.parent().is( parentContainer ) ) { parentContainer.append( control.container ); } control.renderContent(); control.deferred.embedded.resolve(); }); }); }; control.section.bind( inject ); inject( control.section.get() ); }, /** * Triggered when the control's markup has been injected into the DOM. * * @return {void} */ ready: function() { var control = this, newItem; if ( 'dropdown-pages' === control.params.type && control.params.allow_addition ) { newItem = control.container.find( '.new-content-item-wrapper' ); newItem.hide(); // Hide in JS to preserve flex display when showing. control.container.on( 'click', '.add-new-toggle', function( e ) { $( e.currentTarget ).slideUp( 180 ); newItem.slideDown( 180 ); newItem.find( '.create-item-input' ).focus(); }); control.container.on( 'click', '.add-content', function() { control.addNewPage(); }); control.container.on( 'keydown', '.create-item-input', function( e ) { if ( 13 === e.which ) { // Enter. control.addNewPage(); } }); } }, /** * Get the element inside of a control's container that contains the validation error message. * * Control subclasses may override this to return the proper container to render notifications into. * Injects the notification container for existing controls that lack the necessary container, * including special handling for nav menu items and widgets. * * @since 4.6.0 * @return {jQuery} Setting validation message element. */ getNotificationsContainerElement: function() { var control = this, controlTitle, notificationsContainer; notificationsContainer = control.container.find( '.customize-control-notifications-container:first' ); if ( notificationsContainer.length ) { return notificationsContainer; } notificationsContainer = $( '
          ' ); if ( control.container.hasClass( 'customize-control-nav_menu_item' ) ) { control.container.find( '.menu-item-settings:first' ).prepend( notificationsContainer ); } else if ( control.container.hasClass( 'customize-control-widget_form' ) ) { control.container.find( '.widget-inside:first' ).prepend( notificationsContainer ); } else { controlTitle = control.container.find( '.customize-control-title' ); if ( controlTitle.length ) { controlTitle.after( notificationsContainer ); } else { control.container.prepend( notificationsContainer ); } } return notificationsContainer; }, /** * Set up notifications. * * @since 4.9.0 * @return {void} */ setupNotifications: function() { var control = this, renderNotificationsIfVisible, onSectionAssigned; // Add setting notifications to the control notification. _.each( control.settings, function( setting ) { if ( ! setting.notifications ) { return; } setting.notifications.bind( 'add', function( settingNotification ) { var params = _.extend( {}, settingNotification, { setting: setting.id } ); control.notifications.add( new api.Notification( setting.id + ':' + settingNotification.code, params ) ); } ); setting.notifications.bind( 'remove', function( settingNotification ) { control.notifications.remove( setting.id + ':' + settingNotification.code ); } ); } ); renderNotificationsIfVisible = function() { var sectionId = control.section(); if ( ! sectionId || ( api.section.has( sectionId ) && api.section( sectionId ).expanded() ) ) { control.notifications.render(); } }; control.notifications.bind( 'rendered', function() { var notifications = control.notifications.get(); control.container.toggleClass( 'has-notifications', 0 !== notifications.length ); control.container.toggleClass( 'has-error', 0 !== _.where( notifications, { type: 'error' } ).length ); } ); onSectionAssigned = function( newSectionId, oldSectionId ) { if ( oldSectionId && api.section.has( oldSectionId ) ) { api.section( oldSectionId ).expanded.unbind( renderNotificationsIfVisible ); } if ( newSectionId ) { api.section( newSectionId, function( section ) { section.expanded.bind( renderNotificationsIfVisible ); renderNotificationsIfVisible(); }); } }; control.section.bind( onSectionAssigned ); onSectionAssigned( control.section.get() ); control.notifications.bind( 'change', _.debounce( renderNotificationsIfVisible ) ); }, /** * Render notifications. * * Renders the `control.notifications` into the control's container. * Control subclasses may override this method to do their own handling * of rendering notifications. * * @deprecated in favor of `control.notifications.render()` * @since 4.6.0 * @this {wp.customize.Control} */ renderNotifications: function() { var control = this, container, notifications, hasError = false; if ( 'undefined' !== typeof console && console.warn ) { console.warn( '[DEPRECATED] wp.customize.Control.prototype.renderNotifications() is deprecated in favor of instantiating a wp.customize.Notifications and calling its render() method.' ); } container = control.getNotificationsContainerElement(); if ( ! container || ! container.length ) { return; } notifications = []; control.notifications.each( function( notification ) { notifications.push( notification ); if ( 'error' === notification.type ) { hasError = true; } } ); if ( 0 === notifications.length ) { container.stop().slideUp( 'fast' ); } else { container.stop().slideDown( 'fast', null, function() { $( this ).css( 'height', 'auto' ); } ); } if ( ! control.notificationsTemplate ) { control.notificationsTemplate = wp.template( 'customize-control-notifications' ); } control.container.toggleClass( 'has-notifications', 0 !== notifications.length ); control.container.toggleClass( 'has-error', hasError ); container.empty().append( control.notificationsTemplate( { notifications: notifications, altNotice: Boolean( control.altNotice ) } ).trim() ); }, /** * Normal controls do not expand, so just expand its parent * * @param {Object} [params] */ expand: function ( params ) { api.section( this.section() ).expand( params ); }, /* * Documented using @borrows in the constructor. */ focus: focus, /** * Update UI in response to a change in the control's active state. * This does not change the active state, it merely handles the behavior * for when it does change. * * @since 4.1.0 * * @param {boolean} active * @param {Object} args * @param {number} args.duration * @param {Function} args.completeCallback */ onChangeActive: function ( active, args ) { if ( args.unchanged ) { if ( args.completeCallback ) { args.completeCallback(); } return; } if ( ! $.contains( document, this.container[0] ) ) { // jQuery.fn.slideUp is not hiding an element if it is not in the DOM. this.container.toggle( active ); if ( args.completeCallback ) { args.completeCallback(); } } else if ( active ) { this.container.slideDown( args.duration, args.completeCallback ); } else { this.container.slideUp( args.duration, args.completeCallback ); } }, /** * @deprecated 4.1.0 Use this.onChangeActive() instead. */ toggle: function ( active ) { return this.onChangeActive( active, this.defaultActiveArguments ); }, /* * Documented using @borrows in the constructor */ activate: Container.prototype.activate, /* * Documented using @borrows in the constructor */ deactivate: Container.prototype.deactivate, /* * Documented using @borrows in the constructor */ _toggleActive: Container.prototype._toggleActive, // @todo This function appears to be dead code and can be removed. dropdownInit: function() { var control = this, statuses = this.container.find('.dropdown-status'), params = this.params, toggleFreeze = false, update = function( to ) { if ( 'string' === typeof to && params.statuses && params.statuses[ to ] ) { statuses.html( params.statuses[ to ] ).show(); } else { statuses.hide(); } }; // Support the .dropdown class to open/close complex elements. this.container.on( 'click keydown', '.dropdown', function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); if ( ! toggleFreeze ) { control.container.toggleClass( 'open' ); } if ( control.container.hasClass( 'open' ) ) { control.container.parent().parent().find( 'li.library-selected' ).focus(); } // Don't want to fire focus and click at same time. toggleFreeze = true; setTimeout(function () { toggleFreeze = false; }, 400); }); this.setting.bind( update ); update( this.setting() ); }, /** * Render the control from its JS template, if it exists. * * The control's container must already exist in the DOM. * * @since 4.1.0 */ renderContent: function () { var control = this, template, standardTypes, templateId, sectionId; standardTypes = [ 'button', 'checkbox', 'date', 'datetime-local', 'email', 'month', 'number', 'password', 'radio', 'range', 'search', 'select', 'tel', 'time', 'text', 'textarea', 'week', 'url' ]; templateId = control.templateSelector; // Use default content template when a standard HTML type is used, // there isn't a more specific template existing, and the control container is empty. if ( templateId === 'customize-control-' + control.params.type + '-content' && _.contains( standardTypes, control.params.type ) && ! document.getElementById( 'tmpl-' + templateId ) && 0 === control.container.children().length ) { templateId = 'customize-control-default-content'; } // Replace the container element's content with the control. if ( document.getElementById( 'tmpl-' + templateId ) ) { template = wp.template( templateId ); if ( template && control.container ) { control.container.html( template( control.params ) ); } } // Re-render notifications after content has been re-rendered. control.notifications.container = control.getNotificationsContainerElement(); sectionId = control.section(); if ( ! sectionId || ( api.section.has( sectionId ) && api.section( sectionId ).expanded() ) ) { control.notifications.render(); } }, /** * Add a new page to a dropdown-pages control reusing menus code for this. * * @since 4.7.0 * @access private * * @return {void} */ addNewPage: function () { var control = this, promise, toggle, container, input, inputError, title, select; if ( 'dropdown-pages' !== control.params.type || ! control.params.allow_addition || ! api.Menus ) { return; } toggle = control.container.find( '.add-new-toggle' ); container = control.container.find( '.new-content-item-wrapper' ); input = control.container.find( '.create-item-input' ); inputError = control.container.find('.create-item-error'); title = input.val(); select = control.container.find( 'select' ); if ( ! title ) { container.addClass( 'form-invalid' ); input.attr('aria-invalid', 'true'); input.attr('aria-describedby', inputError.attr('id')); inputError.slideDown( 'fast' ); wp.a11y.speak( inputError.text() ); return; } container.removeClass( 'form-invalid' ); input.attr('aria-invalid', 'false'); input.removeAttr('aria-describedby'); inputError.hide(); input.attr( 'disabled', 'disabled' ); // The menus functions add the page, publish when appropriate, // and also add the new page to the dropdown-pages controls. promise = api.Menus.insertAutoDraftPost( { post_title: title, post_type: 'page' } ); promise.done( function( data ) { var availableItem, $content, itemTemplate; // Prepare the new page as an available menu item. // See api.Menus.submitNew(). availableItem = new api.Menus.AvailableItemModel( { 'id': 'post-' + data.post_id, // Used for available menu item Backbone models. 'title': title, 'type': 'post_type', 'type_label': api.Menus.data.l10n.page_label, 'object': 'page', 'object_id': data.post_id, 'url': data.url } ); // Add the new item to the list of available menu items. api.Menus.availableMenuItemsPanel.collection.add( availableItem ); $content = $( '#available-menu-items-post_type-page' ).find( '.available-menu-items-list' ); itemTemplate = wp.template( 'available-menu-item' ); $content.prepend( itemTemplate( availableItem.attributes ) ); // Focus the select control. select.focus(); control.setting.set( String( data.post_id ) ); // Triggers a preview refresh and updates the setting. // Reset the create page form. container.slideUp( 180 ); toggle.slideDown( 180 ); } ); promise.always( function() { input.val( '' ).removeAttr( 'disabled' ); } ); } }); /** * A colorpicker control. * * @class wp.customize.ColorControl * @augments wp.customize.Control */ api.ColorControl = api.Control.extend(/** @lends wp.customize.ColorControl.prototype */{ ready: function() { var control = this, isHueSlider = this.params.mode === 'hue', updating = false, picker; if ( isHueSlider ) { picker = this.container.find( '.color-picker-hue' ); picker.val( control.setting() ).wpColorPicker({ change: function( event, ui ) { updating = true; control.setting( ui.color.h() ); updating = false; } }); } else { picker = this.container.find( '.color-picker-hex' ); picker.val( control.setting() ).wpColorPicker({ change: function() { updating = true; control.setting.set( picker.wpColorPicker( 'color' ) ); updating = false; }, clear: function() { updating = true; control.setting.set( '' ); updating = false; } }); } control.setting.bind( function ( value ) { // Bail if the update came from the control itself. if ( updating ) { return; } picker.val( value ); picker.wpColorPicker( 'color', value ); } ); // Collapse color picker when hitting Esc instead of collapsing the current section. control.container.on( 'keydown', function( event ) { var pickerContainer; if ( 27 !== event.which ) { // Esc. return; } pickerContainer = control.container.find( '.wp-picker-container' ); if ( pickerContainer.hasClass( 'wp-picker-active' ) ) { picker.wpColorPicker( 'close' ); control.container.find( '.wp-color-result' ).focus(); event.stopPropagation(); // Prevent section from being collapsed. } } ); } }); /** * A control that implements the media modal. * * @class wp.customize.MediaControl * @augments wp.customize.Control */ api.MediaControl = api.Control.extend(/** @lends wp.customize.MediaControl.prototype */{ /** * When the control's DOM structure is ready, * set up internal event bindings. */ ready: function() { var control = this; // Shortcut so that we don't have to use _.bind every time we add a callback. _.bindAll( control, 'restoreDefault', 'removeFile', 'openFrame', 'select', 'pausePlayer' ); // Bind events, with delegation to facilitate re-rendering. control.container.on( 'click keydown', '.upload-button', control.openFrame ); control.container.on( 'click keydown', '.upload-button', control.pausePlayer ); control.container.on( 'click keydown', '.thumbnail-image img', control.openFrame ); control.container.on( 'click keydown', '.default-button', control.restoreDefault ); control.container.on( 'click keydown', '.remove-button', control.pausePlayer ); control.container.on( 'click keydown', '.remove-button', control.removeFile ); control.container.on( 'click keydown', '.remove-button', control.cleanupPlayer ); // Resize the player controls when it becomes visible (ie when section is expanded). api.section( control.section() ).container .on( 'expanded', function() { if ( control.player ) { control.player.setControlsSize(); } }) .on( 'collapsed', function() { control.pausePlayer(); }); /** * Set attachment data and render content. * * Note that BackgroundImage.prototype.ready applies this ready method * to itself. Since BackgroundImage is an UploadControl, the value * is the attachment URL instead of the attachment ID. In this case * we skip fetching the attachment data because we have no ID available, * and it is the responsibility of the UploadControl to set the control's * attachmentData before calling the renderContent method. * * @param {number|string} value Attachment */ function setAttachmentDataAndRenderContent( value ) { var hasAttachmentData = $.Deferred(); if ( control.extended( api.UploadControl ) ) { hasAttachmentData.resolve(); } else { value = parseInt( value, 10 ); if ( _.isNaN( value ) || value <= 0 ) { delete control.params.attachment; hasAttachmentData.resolve(); } else if ( control.params.attachment && control.params.attachment.id === value ) { hasAttachmentData.resolve(); } } // Fetch the attachment data. if ( 'pending' === hasAttachmentData.state() ) { wp.media.attachment( value ).fetch().done( function() { control.params.attachment = this.attributes; hasAttachmentData.resolve(); // Send attachment information to the preview for possible use in `postMessage` transport. wp.customize.previewer.send( control.setting.id + '-attachment-data', this.attributes ); } ); } hasAttachmentData.done( function() { control.renderContent(); } ); } // Ensure attachment data is initially set (for dynamically-instantiated controls). setAttachmentDataAndRenderContent( control.setting() ); // Update the attachment data and re-render the control when the setting changes. control.setting.bind( setAttachmentDataAndRenderContent ); }, pausePlayer: function () { this.player && this.player.pause(); }, cleanupPlayer: function () { this.player && wp.media.mixin.removePlayer( this.player ); }, /** * Open the media modal. */ openFrame: function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); if ( ! this.frame ) { this.initFrame(); } this.frame.open(); }, /** * Create a media modal select frame, and store it so the instance can be reused when needed. */ initFrame: function() { this.frame = wp.media({ button: { text: this.params.button_labels.frame_button }, states: [ new wp.media.controller.Library({ title: this.params.button_labels.frame_title, library: wp.media.query({ type: this.params.mime_type }), multiple: false, date: false }) ] }); // When a file is selected, run a callback. this.frame.on( 'select', this.select ); }, /** * Callback handler for when an attachment is selected in the media modal. * Gets the selected image information, and sets it within the control. */ select: function() { // Get the attachment from the modal frame. var node, attachment = this.frame.state().get( 'selection' ).first().toJSON(), mejsSettings = window._wpmejsSettings || {}; this.params.attachment = attachment; // Set the Customizer setting; the callback takes care of rendering. this.setting( attachment.id ); node = this.container.find( 'audio, video' ).get(0); // Initialize audio/video previews. if ( node ) { this.player = new MediaElementPlayer( node, mejsSettings ); } else { this.cleanupPlayer(); } }, /** * Reset the setting to the default value. */ restoreDefault: function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); this.params.attachment = this.params.defaultAttachment; this.setting( this.params.defaultAttachment.url ); }, /** * Called when the "Remove" link is clicked. Empties the setting. * * @param {Object} event jQuery Event object */ removeFile: function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); this.params.attachment = {}; this.setting( '' ); this.renderContent(); // Not bound to setting change when emptying. } }); /** * An upload control, which utilizes the media modal. * * @class wp.customize.UploadControl * @augments wp.customize.MediaControl */ api.UploadControl = api.MediaControl.extend(/** @lends wp.customize.UploadControl.prototype */{ /** * Callback handler for when an attachment is selected in the media modal. * Gets the selected image information, and sets it within the control. */ select: function() { // Get the attachment from the modal frame. var node, attachment = this.frame.state().get( 'selection' ).first().toJSON(), mejsSettings = window._wpmejsSettings || {}; this.params.attachment = attachment; // Set the Customizer setting; the callback takes care of rendering. this.setting( attachment.url ); node = this.container.find( 'audio, video' ).get(0); // Initialize audio/video previews. if ( node ) { this.player = new MediaElementPlayer( node, mejsSettings ); } else { this.cleanupPlayer(); } }, // @deprecated success: function() {}, // @deprecated removerVisibility: function() {} }); /** * A control for uploading images. * * This control no longer needs to do anything more * than what the upload control does in JS. * * @class wp.customize.ImageControl * @augments wp.customize.UploadControl */ api.ImageControl = api.UploadControl.extend(/** @lends wp.customize.ImageControl.prototype */{ // @deprecated thumbnailSrc: function() {} }); /** * A control for uploading background images. * * @class wp.customize.BackgroundControl * @augments wp.customize.UploadControl */ api.BackgroundControl = api.UploadControl.extend(/** @lends wp.customize.BackgroundControl.prototype */{ /** * When the control's DOM structure is ready, * set up internal event bindings. */ ready: function() { api.UploadControl.prototype.ready.apply( this, arguments ); }, /** * Callback handler for when an attachment is selected in the media modal. * Does an additional Ajax request for setting the background context. */ select: function() { api.UploadControl.prototype.select.apply( this, arguments ); wp.ajax.post( 'custom-background-add', { nonce: _wpCustomizeBackground.nonces.add, wp_customize: 'on', customize_theme: api.settings.theme.stylesheet, attachment_id: this.params.attachment.id } ); } }); /** * A control for positioning a background image. * * @since 4.7.0 * * @class wp.customize.BackgroundPositionControl * @augments wp.customize.Control */ api.BackgroundPositionControl = api.Control.extend(/** @lends wp.customize.BackgroundPositionControl.prototype */{ /** * Set up control UI once embedded in DOM and settings are created. * * @since 4.7.0 * @access public */ ready: function() { var control = this, updateRadios; control.container.on( 'change', 'input[name="background-position"]', function() { var position = $( this ).val().split( ' ' ); control.settings.x( position[0] ); control.settings.y( position[1] ); } ); updateRadios = _.debounce( function() { var x, y, radioInput, inputValue; x = control.settings.x.get(); y = control.settings.y.get(); inputValue = String( x ) + ' ' + String( y ); radioInput = control.container.find( 'input[name="background-position"][value="' + inputValue + '"]' ); radioInput.trigger( 'click' ); } ); control.settings.x.bind( updateRadios ); control.settings.y.bind( updateRadios ); updateRadios(); // Set initial UI. } } ); /** * A control for selecting and cropping an image. * * @class wp.customize.CroppedImageControl * @augments wp.customize.MediaControl */ api.CroppedImageControl = api.MediaControl.extend(/** @lends wp.customize.CroppedImageControl.prototype */{ /** * Open the media modal to the library state. */ openFrame: function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } this.initFrame(); this.frame.setState( 'library' ).open(); }, /** * Create a media modal select frame, and store it so the instance can be reused when needed. */ initFrame: function() { var l10n = _wpMediaViewsL10n; this.frame = wp.media({ button: { text: l10n.select, close: false }, states: [ new wp.media.controller.Library({ title: this.params.button_labels.frame_title, library: wp.media.query({ type: 'image' }), multiple: false, date: false, priority: 20, suggestedWidth: this.params.width, suggestedHeight: this.params.height }), new wp.media.controller.CustomizeImageCropper({ imgSelectOptions: this.calculateImageSelectOptions, control: this }) ] }); this.frame.on( 'select', this.onSelect, this ); this.frame.on( 'cropped', this.onCropped, this ); this.frame.on( 'skippedcrop', this.onSkippedCrop, this ); }, /** * After an image is selected in the media modal, switch to the cropper * state if the image isn't the right size. */ onSelect: function() { var attachment = this.frame.state().get( 'selection' ).first().toJSON(); if ( this.params.width === attachment.width && this.params.height === attachment.height && ! this.params.flex_width && ! this.params.flex_height ) { this.setImageFromAttachment( attachment ); this.frame.close(); } else { this.frame.setState( 'cropper' ); } }, /** * After the image has been cropped, apply the cropped image data to the setting. * * @param {Object} croppedImage Cropped attachment data. */ onCropped: function( croppedImage ) { this.setImageFromAttachment( croppedImage ); }, /** * Returns a set of options, computed from the attached image data and * control-specific data, to be fed to the imgAreaSelect plugin in * wp.media.view.Cropper. * * @param {wp.media.model.Attachment} attachment * @param {wp.media.controller.Cropper} controller * @return {Object} Options */ calculateImageSelectOptions: function( attachment, controller ) { var control = controller.get( 'control' ), flexWidth = !! parseInt( control.params.flex_width, 10 ), flexHeight = !! parseInt( control.params.flex_height, 10 ), realWidth = attachment.get( 'width' ), realHeight = attachment.get( 'height' ), xInit = parseInt( control.params.width, 10 ), yInit = parseInt( control.params.height, 10 ), requiredRatio = xInit / yInit, realRatio = realWidth / realHeight, xImg = xInit, yImg = yInit, x1, y1, imgSelectOptions; controller.set( 'hasRequiredAspectRatio', control.hasRequiredAspectRatio( requiredRatio, realRatio ) ); controller.set( 'suggestedCropSize', { width: realWidth, height: realHeight, x1: 0, y1: 0, x2: xInit, y2: yInit } ); controller.set( 'canSkipCrop', ! control.mustBeCropped( flexWidth, flexHeight, xInit, yInit, realWidth, realHeight ) ); if ( realRatio > requiredRatio ) { yInit = realHeight; xInit = yInit * requiredRatio; } else { xInit = realWidth; yInit = xInit / requiredRatio; } x1 = ( realWidth - xInit ) / 2; y1 = ( realHeight - yInit ) / 2; imgSelectOptions = { handles: true, keys: true, instance: true, persistent: true, imageWidth: realWidth, imageHeight: realHeight, minWidth: xImg > xInit ? xInit : xImg, minHeight: yImg > yInit ? yInit : yImg, x1: x1, y1: y1, x2: xInit + x1, y2: yInit + y1 }; if ( flexHeight === false && flexWidth === false ) { imgSelectOptions.aspectRatio = xInit + ':' + yInit; } if ( true === flexHeight ) { delete imgSelectOptions.minHeight; imgSelectOptions.maxWidth = realWidth; } if ( true === flexWidth ) { delete imgSelectOptions.minWidth; imgSelectOptions.maxHeight = realHeight; } return imgSelectOptions; }, /** * Return whether the image must be cropped, based on required dimensions. * * @param {boolean} flexW Width is flexible. * @param {boolean} flexH Height is flexible. * @param {number} dstW Required width. * @param {number} dstH Required height. * @param {number} imgW Provided image's width. * @param {number} imgH Provided image's height. * @return {boolean} Whether cropping is required. */ mustBeCropped: function( flexW, flexH, dstW, dstH, imgW, imgH ) { if ( true === flexW && true === flexH ) { return false; } if ( true === flexW && dstH === imgH ) { return false; } if ( true === flexH && dstW === imgW ) { return false; } if ( dstW === imgW && dstH === imgH ) { return false; } if ( imgW <= dstW ) { return false; } return true; }, /** * Check if the image's aspect ratio essentially matches the required aspect ratio. * * Floating point precision is low, so this allows a small tolerance. This * tolerance allows for images over 100,000 px on either side to still trigger * the cropping flow. * * @param {number} requiredRatio Required image ratio. * @param {number} realRatio Provided image ratio. * @return {boolean} Whether the image has the required aspect ratio. */ hasRequiredAspectRatio: function ( requiredRatio, realRatio ) { if ( Math.abs( requiredRatio - realRatio ) < 0.000001 ) { return true; } return false; }, /** * If cropping was skipped, apply the image data directly to the setting. */ onSkippedCrop: function() { var attachment = this.frame.state().get( 'selection' ).first().toJSON(); this.setImageFromAttachment( attachment ); }, /** * Updates the setting and re-renders the control UI. * * @param {Object} attachment */ setImageFromAttachment: function( attachment ) { var control = this; this.params.attachment = attachment; // Set the Customizer setting; the callback takes care of rendering. this.setting( attachment.id ); // Set focus to the first relevant button after the icon. _.defer( function() { var firstButton = control.container.find( '.actions .button' ).first(); if ( firstButton.length ) { firstButton.focus(); } } ); } }); /** * A control for selecting and cropping Site Icons. * * @class wp.customize.SiteIconControl * @augments wp.customize.CroppedImageControl */ api.SiteIconControl = api.CroppedImageControl.extend(/** @lends wp.customize.SiteIconControl.prototype */{ /** * Create a media modal select frame, and store it so the instance can be reused when needed. */ initFrame: function() { var l10n = _wpMediaViewsL10n; this.frame = wp.media({ button: { text: l10n.select, close: false }, states: [ new wp.media.controller.Library({ title: this.params.button_labels.frame_title, library: wp.media.query({ type: 'image' }), multiple: false, date: false, priority: 20, suggestedWidth: this.params.width, suggestedHeight: this.params.height }), new wp.media.controller.SiteIconCropper({ imgSelectOptions: this.calculateImageSelectOptions, control: this }) ] }); this.frame.on( 'select', this.onSelect, this ); this.frame.on( 'cropped', this.onCropped, this ); this.frame.on( 'skippedcrop', this.onSkippedCrop, this ); }, /** * After an image is selected in the media modal, switch to the cropper * state if the image isn't the right size. */ onSelect: function() { var attachment = this.frame.state().get( 'selection' ).first().toJSON(), controller = this; if ( this.params.width === attachment.width && this.params.height === attachment.height && ! this.params.flex_width && ! this.params.flex_height ) { wp.ajax.post( 'crop-image', { nonce: attachment.nonces.edit, id: attachment.id, context: 'site-icon', cropDetails: { x1: 0, y1: 0, width: this.params.width, height: this.params.height, dst_width: this.params.width, dst_height: this.params.height } } ).done( function( croppedImage ) { controller.setImageFromAttachment( croppedImage ); controller.frame.close(); } ).fail( function() { controller.frame.trigger('content:error:crop'); } ); } else { this.frame.setState( 'cropper' ); } }, /** * Updates the setting and re-renders the control UI. * * @param {Object} attachment */ setImageFromAttachment: function( attachment ) { var control = this, sizes = [ 'site_icon-32', 'thumbnail', 'full' ], link, icon; _.each( sizes, function( size ) { if ( ! icon && ! _.isUndefined ( attachment.sizes[ size ] ) ) { icon = attachment.sizes[ size ]; } } ); this.params.attachment = attachment; // Set the Customizer setting; the callback takes care of rendering. this.setting( attachment.id ); if ( ! icon ) { return; } // Update the icon in-browser. link = $( 'link[rel="icon"][sizes="32x32"]' ); link.attr( 'href', icon.url ); // Set focus to the first relevant button after the icon. _.defer( function() { var firstButton = control.container.find( '.actions .button' ).first(); if ( firstButton.length ) { firstButton.focus(); } } ); }, /** * Called when the "Remove" link is clicked. Empties the setting. * * @param {Object} event jQuery Event object */ removeFile: function( event ) { if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } event.preventDefault(); this.params.attachment = {}; this.setting( '' ); this.renderContent(); // Not bound to setting change when emptying. $( 'link[rel="icon"][sizes="32x32"]' ).attr( 'href', '/favicon.ico' ); // Set to default. } }); /** * @class wp.customize.HeaderControl * @augments wp.customize.Control */ api.HeaderControl = api.Control.extend(/** @lends wp.customize.HeaderControl.prototype */{ ready: function() { this.btnRemove = $('#customize-control-header_image .actions .remove'); this.btnNew = $('#customize-control-header_image .actions .new'); _.bindAll(this, 'openMedia', 'removeImage'); this.btnNew.on( 'click', this.openMedia ); this.btnRemove.on( 'click', this.removeImage ); api.HeaderTool.currentHeader = this.getInitialHeaderImage(); new api.HeaderTool.CurrentView({ model: api.HeaderTool.currentHeader, el: '#customize-control-header_image .current .container' }); new api.HeaderTool.ChoiceListView({ collection: api.HeaderTool.UploadsList = new api.HeaderTool.ChoiceList(), el: '#customize-control-header_image .choices .uploaded .list' }); new api.HeaderTool.ChoiceListView({ collection: api.HeaderTool.DefaultsList = new api.HeaderTool.DefaultsList(), el: '#customize-control-header_image .choices .default .list' }); api.HeaderTool.combinedList = api.HeaderTool.CombinedList = new api.HeaderTool.CombinedList([ api.HeaderTool.UploadsList, api.HeaderTool.DefaultsList ]); // Ensure custom-header-crop Ajax requests bootstrap the Customizer to activate the previewed theme. wp.media.controller.Cropper.prototype.defaults.doCropArgs.wp_customize = 'on'; wp.media.controller.Cropper.prototype.defaults.doCropArgs.customize_theme = api.settings.theme.stylesheet; }, /** * Returns a new instance of api.HeaderTool.ImageModel based on the currently * saved header image (if any). * * @since 4.2.0 * * @return {Object} Options */ getInitialHeaderImage: function() { if ( ! api.get().header_image || ! api.get().header_image_data || _.contains( [ 'remove-header', 'random-default-image', 'random-uploaded-image' ], api.get().header_image ) ) { return new api.HeaderTool.ImageModel(); } // Get the matching uploaded image object. var currentHeaderObject = _.find( _wpCustomizeHeader.uploads, function( imageObj ) { return ( imageObj.attachment_id === api.get().header_image_data.attachment_id ); } ); // Fall back to raw current header image. if ( ! currentHeaderObject ) { currentHeaderObject = { url: api.get().header_image, thumbnail_url: api.get().header_image, attachment_id: api.get().header_image_data.attachment_id }; } return new api.HeaderTool.ImageModel({ header: currentHeaderObject, choice: currentHeaderObject.url.split( '/' ).pop() }); }, /** * Returns a set of options, computed from the attached image data and * theme-specific data, to be fed to the imgAreaSelect plugin in * wp.media.view.Cropper. * * @param {wp.media.model.Attachment} attachment * @param {wp.media.controller.Cropper} controller * @return {Object} Options */ calculateImageSelectOptions: function(attachment, controller) { var xInit = parseInt(_wpCustomizeHeader.data.width, 10), yInit = parseInt(_wpCustomizeHeader.data.height, 10), flexWidth = !! parseInt(_wpCustomizeHeader.data['flex-width'], 10), flexHeight = !! parseInt(_wpCustomizeHeader.data['flex-height'], 10), ratio, xImg, yImg, realHeight, realWidth, imgSelectOptions; realWidth = attachment.get('width'); realHeight = attachment.get('height'); this.headerImage = new api.HeaderTool.ImageModel(); this.headerImage.set({ themeWidth: xInit, themeHeight: yInit, themeFlexWidth: flexWidth, themeFlexHeight: flexHeight, imageWidth: realWidth, imageHeight: realHeight }); controller.set( 'canSkipCrop', ! this.headerImage.shouldBeCropped() ); ratio = xInit / yInit; xImg = realWidth; yImg = realHeight; if ( xImg / yImg > ratio ) { yInit = yImg; xInit = yInit * ratio; } else { xInit = xImg; yInit = xInit / ratio; } imgSelectOptions = { handles: true, keys: true, instance: true, persistent: true, imageWidth: realWidth, imageHeight: realHeight, x1: 0, y1: 0, x2: xInit, y2: yInit }; if (flexHeight === false && flexWidth === false) { imgSelectOptions.aspectRatio = xInit + ':' + yInit; } if (flexHeight === false ) { imgSelectOptions.maxHeight = yInit; } if (flexWidth === false ) { imgSelectOptions.maxWidth = xInit; } return imgSelectOptions; }, /** * Sets up and opens the Media Manager in order to select an image. * Depending on both the size of the image and the properties of the * current theme, a cropping step after selection may be required or * skippable. * * @param {event} event */ openMedia: function(event) { var l10n = _wpMediaViewsL10n; event.preventDefault(); this.frame = wp.media({ button: { text: l10n.selectAndCrop, close: false }, states: [ new wp.media.controller.Library({ title: l10n.chooseImage, library: wp.media.query({ type: 'image' }), multiple: false, date: false, priority: 20, suggestedWidth: _wpCustomizeHeader.data.width, suggestedHeight: _wpCustomizeHeader.data.height }), new wp.media.controller.Cropper({ imgSelectOptions: this.calculateImageSelectOptions }) ] }); this.frame.on('select', this.onSelect, this); this.frame.on('cropped', this.onCropped, this); this.frame.on('skippedcrop', this.onSkippedCrop, this); this.frame.open(); }, /** * After an image is selected in the media modal, * switch to the cropper state. */ onSelect: function() { this.frame.setState('cropper'); }, /** * After the image has been cropped, apply the cropped image data to the setting. * * @param {Object} croppedImage Cropped attachment data. */ onCropped: function(croppedImage) { var url = croppedImage.url, attachmentId = croppedImage.attachment_id, w = croppedImage.width, h = croppedImage.height; this.setImageFromURL(url, attachmentId, w, h); }, /** * If cropping was skipped, apply the image data directly to the setting. * * @param {Object} selection */ onSkippedCrop: function(selection) { var url = selection.get('url'), w = selection.get('width'), h = selection.get('height'); this.setImageFromURL(url, selection.id, w, h); }, /** * Creates a new wp.customize.HeaderTool.ImageModel from provided * header image data and inserts it into the user-uploaded headers * collection. * * @param {string} url * @param {number} attachmentId * @param {number} width * @param {number} height */ setImageFromURL: function(url, attachmentId, width, height) { var choice, data = {}; data.url = url; data.thumbnail_url = url; data.timestamp = _.now(); if (attachmentId) { data.attachment_id = attachmentId; } if (width) { data.width = width; } if (height) { data.height = height; } choice = new api.HeaderTool.ImageModel({ header: data, choice: url.split('/').pop() }); api.HeaderTool.UploadsList.add(choice); api.HeaderTool.currentHeader.set(choice.toJSON()); choice.save(); choice.importImage(); }, /** * Triggers the necessary events to deselect an image which was set as * the currently selected one. */ removeImage: function() { api.HeaderTool.currentHeader.trigger('hide'); api.HeaderTool.CombinedList.trigger('control:removeImage'); } }); /** * wp.customize.ThemeControl * * @class wp.customize.ThemeControl * @augments wp.customize.Control */ api.ThemeControl = api.Control.extend(/** @lends wp.customize.ThemeControl.prototype */{ touchDrag: false, screenshotRendered: false, /** * @since 4.2.0 */ ready: function() { var control = this, panel = api.panel( 'themes' ); function disableSwitchButtons() { return ! panel.canSwitchTheme( control.params.theme.id ); } // Temporary special function since supplying SFTP credentials does not work yet. See #42184. function disableInstallButtons() { return disableSwitchButtons() || false === api.settings.theme._canInstall || true === api.settings.theme._filesystemCredentialsNeeded; } function updateButtons() { control.container.find( 'button.preview, button.preview-theme' ).toggleClass( 'disabled', disableSwitchButtons() ); control.container.find( 'button.theme-install' ).toggleClass( 'disabled', disableInstallButtons() ); } api.state( 'selectedChangesetStatus' ).bind( updateButtons ); api.state( 'changesetStatus' ).bind( updateButtons ); updateButtons(); control.container.on( 'touchmove', '.theme', function() { control.touchDrag = true; }); // Bind details view trigger. control.container.on( 'click keydown touchend', '.theme', function( event ) { var section; if ( api.utils.isKeydownButNotEnterEvent( event ) ) { return; } // Bail if the user scrolled on a touch device. if ( control.touchDrag === true ) { return control.touchDrag = false; } // Prevent the modal from showing when the user clicks the action button. if ( $( event.target ).is( '.theme-actions .button, .update-theme' ) ) { return; } event.preventDefault(); // Keep this AFTER the key filter above. section = api.section( control.section() ); section.showDetails( control.params.theme, function() { // Temporary special function since supplying SFTP credentials does not work yet. See #42184. if ( api.settings.theme._filesystemCredentialsNeeded ) { section.overlay.find( '.theme-actions .delete-theme' ).remove(); } } ); }); control.container.on( 'render-screenshot', function() { var $screenshot = $( this ).find( 'img' ), source = $screenshot.data( 'src' ); if ( source ) { $screenshot.attr( 'src', source ); } control.screenshotRendered = true; }); }, /** * Show or hide the theme based on the presence of the term in the title, description, tags, and author. * * @since 4.2.0 * @param {Array} terms - An array of terms to search for. * @return {boolean} Whether a theme control was activated or not. */ filter: function( terms ) { var control = this, matchCount = 0, haystack = control.params.theme.name + ' ' + control.params.theme.description + ' ' + control.params.theme.tags + ' ' + control.params.theme.author + ' '; haystack = haystack.toLowerCase().replace( '-', ' ' ); // Back-compat for behavior in WordPress 4.2.0 to 4.8.X. if ( ! _.isArray( terms ) ) { terms = [ terms ]; } // Always give exact name matches highest ranking. if ( control.params.theme.name.toLowerCase() === terms.join( ' ' ) ) { matchCount = 100; } else { // Search for and weight (by 10) complete term matches. matchCount = matchCount + 10 * ( haystack.split( terms.join( ' ' ) ).length - 1 ); // Search for each term individually (as whole-word and partial match) and sum weighted match counts. _.each( terms, function( term ) { matchCount = matchCount + 2 * ( haystack.split( term + ' ' ).length - 1 ); // Whole-word, double-weighted. matchCount = matchCount + haystack.split( term ).length - 1; // Partial word, to minimize empty intermediate searches while typing. }); // Upper limit on match ranking. if ( matchCount > 99 ) { matchCount = 99; } } if ( 0 !== matchCount ) { control.activate(); control.params.priority = 101 - matchCount; // Sort results by match count. return true; } else { control.deactivate(); // Hide control. control.params.priority = 101; return false; } }, /** * Rerender the theme from its JS template with the installed type. * * @since 4.9.0 * * @return {void} */ rerenderAsInstalled: function( installed ) { var control = this, section; if ( installed ) { control.params.theme.type = 'installed'; } else { section = api.section( control.params.section ); control.params.theme.type = section.params.action; } control.renderContent(); // Replaces existing content. control.container.trigger( 'render-screenshot' ); } }); /** * Class wp.customize.CodeEditorControl * * @since 4.9.0 * * @class wp.customize.CodeEditorControl * @augments wp.customize.Control */ api.CodeEditorControl = api.Control.extend(/** @lends wp.customize.CodeEditorControl.prototype */{ /** * Initialize. * * @since 4.9.0 * @param {string} id - Unique identifier for the control instance. * @param {Object} options - Options hash for the control instance. * @return {void} */ initialize: function( id, options ) { var control = this; control.deferred = _.extend( control.deferred || {}, { codemirror: $.Deferred() } ); api.Control.prototype.initialize.call( control, id, options ); // Note that rendering is debounced so the props will be used when rendering happens after add event. control.notifications.bind( 'add', function( notification ) { // Skip if control notification is not from setting csslint_error notification. if ( notification.code !== control.setting.id + ':csslint_error' ) { return; } // Customize the template and behavior of csslint_error notifications. notification.templateId = 'customize-code-editor-lint-error-notification'; notification.render = (function( render ) { return function() { var li = render.call( this ); li.find( 'input[type=checkbox]' ).on( 'click', function() { control.setting.notifications.remove( 'csslint_error' ); } ); return li; }; })( notification.render ); } ); }, /** * Initialize the editor when the containing section is ready and expanded. * * @since 4.9.0 * @return {void} */ ready: function() { var control = this; if ( ! control.section() ) { control.initEditor(); return; } // Wait to initialize editor until section is embedded and expanded. api.section( control.section(), function( section ) { section.deferred.embedded.done( function() { var onceExpanded; if ( section.expanded() ) { control.initEditor(); } else { onceExpanded = function( isExpanded ) { if ( isExpanded ) { control.initEditor(); section.expanded.unbind( onceExpanded ); } }; section.expanded.bind( onceExpanded ); } } ); } ); }, /** * Initialize editor. * * @since 4.9.0 * @return {void} */ initEditor: function() { var control = this, element, editorSettings = false; // Obtain editorSettings for instantiation. if ( wp.codeEditor && ( _.isUndefined( control.params.editor_settings ) || false !== control.params.editor_settings ) ) { // Obtain default editor settings. editorSettings = wp.codeEditor.defaultSettings ? _.clone( wp.codeEditor.defaultSettings ) : {}; editorSettings.codemirror = _.extend( {}, editorSettings.codemirror, { indentUnit: 2, tabSize: 2 } ); // Merge editor_settings param on top of defaults. if ( _.isObject( control.params.editor_settings ) ) { _.each( control.params.editor_settings, function( value, key ) { if ( _.isObject( value ) ) { editorSettings[ key ] = _.extend( {}, editorSettings[ key ], value ); } } ); } } element = new api.Element( control.container.find( 'textarea' ) ); control.elements.push( element ); element.sync( control.setting ); element.set( control.setting() ); if ( editorSettings ) { control.initSyntaxHighlightingEditor( editorSettings ); } else { control.initPlainTextareaEditor(); } }, /** * Make sure editor gets focused when control is focused. * * @since 4.9.0 * @param {Object} [params] - Focus params. * @param {Function} [params.completeCallback] - Function to call when expansion is complete. * @return {void} */ focus: function( params ) { var control = this, extendedParams = _.extend( {}, params ), originalCompleteCallback; originalCompleteCallback = extendedParams.completeCallback; extendedParams.completeCallback = function() { if ( originalCompleteCallback ) { originalCompleteCallback(); } if ( control.editor ) { control.editor.codemirror.focus(); } }; api.Control.prototype.focus.call( control, extendedParams ); }, /** * Initialize syntax-highlighting editor. * * @since 4.9.0 * @param {Object} codeEditorSettings - Code editor settings. * @return {void} */ initSyntaxHighlightingEditor: function( codeEditorSettings ) { var control = this, $textarea = control.container.find( 'textarea' ), settings, suspendEditorUpdate = false; settings = _.extend( {}, codeEditorSettings, { onTabNext: _.bind( control.onTabNext, control ), onTabPrevious: _.bind( control.onTabPrevious, control ), onUpdateErrorNotice: _.bind( control.onUpdateErrorNotice, control ) }); control.editor = wp.codeEditor.initialize( $textarea, settings ); // Improve the editor accessibility. $( control.editor.codemirror.display.lineDiv ) .attr({ role: 'textbox', 'aria-multiline': 'true', 'aria-label': control.params.label, 'aria-describedby': 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4' }); // Focus the editor when clicking on its label. control.container.find( 'label' ).on( 'click', function() { control.editor.codemirror.focus(); }); /* * When the CodeMirror instance changes, mirror to the textarea, * where we have our "true" change event handler bound. */ control.editor.codemirror.on( 'change', function( codemirror ) { suspendEditorUpdate = true; $textarea.val( codemirror.getValue() ).trigger( 'change' ); suspendEditorUpdate = false; }); // Update CodeMirror when the setting is changed by another plugin. control.setting.bind( function( value ) { if ( ! suspendEditorUpdate ) { control.editor.codemirror.setValue( value ); } }); // Prevent collapsing section when hitting Esc to tab out of editor. control.editor.codemirror.on( 'keydown', function onKeydown( codemirror, event ) { var escKeyCode = 27; if ( escKeyCode === event.keyCode ) { event.stopPropagation(); } }); control.deferred.codemirror.resolveWith( control, [ control.editor.codemirror ] ); }, /** * Handle tabbing to the field after the editor. * * @since 4.9.0 * @return {void} */ onTabNext: function onTabNext() { var control = this, controls, controlIndex, section; section = api.section( control.section() ); controls = section.controls(); controlIndex = controls.indexOf( control ); if ( controls.length === controlIndex + 1 ) { $( '#customize-footer-actions .collapse-sidebar' ).trigger( 'focus' ); } else { controls[ controlIndex + 1 ].container.find( ':focusable:first' ).focus(); } }, /** * Handle tabbing to the field before the editor. * * @since 4.9.0 * @return {void} */ onTabPrevious: function onTabPrevious() { var control = this, controls, controlIndex, section; section = api.section( control.section() ); controls = section.controls(); controlIndex = controls.indexOf( control ); if ( 0 === controlIndex ) { section.contentContainer.find( '.customize-section-title .customize-help-toggle, .customize-section-title .customize-section-description.open .section-description-close' ).last().focus(); } else { controls[ controlIndex - 1 ].contentContainer.find( ':focusable:first' ).focus(); } }, /** * Update error notice. * * @since 4.9.0 * @param {Array} errorAnnotations - Error annotations. * @return {void} */ onUpdateErrorNotice: function onUpdateErrorNotice( errorAnnotations ) { var control = this, message; control.setting.notifications.remove( 'csslint_error' ); if ( 0 !== errorAnnotations.length ) { if ( 1 === errorAnnotations.length ) { message = api.l10n.customCssError.singular.replace( '%d', '1' ); } else { message = api.l10n.customCssError.plural.replace( '%d', String( errorAnnotations.length ) ); } control.setting.notifications.add( new api.Notification( 'csslint_error', { message: message, type: 'error' } ) ); } }, /** * Initialize plain-textarea editor when syntax highlighting is disabled. * * @since 4.9.0 * @return {void} */ initPlainTextareaEditor: function() { var control = this, $textarea = control.container.find( 'textarea' ), textarea = $textarea[0]; $textarea.on( 'blur', function onBlur() { $textarea.data( 'next-tab-blurs', false ); } ); $textarea.on( 'keydown', function onKeydown( event ) { var selectionStart, selectionEnd, value, tabKeyCode = 9, escKeyCode = 27; if ( escKeyCode === event.keyCode ) { if ( ! $textarea.data( 'next-tab-blurs' ) ) { $textarea.data( 'next-tab-blurs', true ); event.stopPropagation(); // Prevent collapsing the section. } return; } // Short-circuit if tab key is not being pressed or if a modifier key *is* being pressed. if ( tabKeyCode !== event.keyCode || event.ctrlKey || event.altKey || event.shiftKey ) { return; } // Prevent capturing Tab characters if Esc was pressed. if ( $textarea.data( 'next-tab-blurs' ) ) { return; } selectionStart = textarea.selectionStart; selectionEnd = textarea.selectionEnd; value = textarea.value; if ( selectionStart >= 0 ) { textarea.value = value.substring( 0, selectionStart ).concat( '\t', value.substring( selectionEnd ) ); $textarea.selectionStart = textarea.selectionEnd = selectionStart + 1; } event.stopPropagation(); event.preventDefault(); }); control.deferred.codemirror.rejectWith( control ); } }); /** * Class wp.customize.DateTimeControl. * * @since 4.9.0 * @class wp.customize.DateTimeControl * @augments wp.customize.Control */ api.DateTimeControl = api.Control.extend(/** @lends wp.customize.DateTimeControl.prototype */{ /** * Initialize behaviors. * * @since 4.9.0 * @return {void} */ ready: function ready() { var control = this; control.inputElements = {}; control.invalidDate = false; _.bindAll( control, 'populateSetting', 'updateDaysForMonth', 'populateDateInputs' ); if ( ! control.setting ) { throw new Error( 'Missing setting' ); } control.container.find( '.date-input' ).each( function() { var input = $( this ), component, element; component = input.data( 'component' ); element = new api.Element( input ); control.inputElements[ component ] = element; control.elements.push( element ); // Add invalid date error once user changes (and has blurred the input). input.on( 'change', function() { if ( control.invalidDate ) { control.notifications.add( new api.Notification( 'invalid_date', { message: api.l10n.invalidDate } ) ); } } ); // Remove the error immediately after validity change. input.on( 'input', _.debounce( function() { if ( ! control.invalidDate ) { control.notifications.remove( 'invalid_date' ); } } ) ); // Add zero-padding when blurring field. input.on( 'blur', _.debounce( function() { if ( ! control.invalidDate ) { control.populateDateInputs(); } } ) ); } ); control.inputElements.month.bind( control.updateDaysForMonth ); control.inputElements.year.bind( control.updateDaysForMonth ); control.populateDateInputs(); control.setting.bind( control.populateDateInputs ); // Start populating setting after inputs have been populated. _.each( control.inputElements, function( element ) { element.bind( control.populateSetting ); } ); }, /** * Parse datetime string. * * @since 4.9.0 * * @param {string} datetime - Date/Time string. Accepts Y-m-d[ H:i[:s]] format. * @return {Object|null} Returns object containing date components or null if parse error. */ parseDateTime: function parseDateTime( datetime ) { var control = this, matches, date, midDayHour = 12; if ( datetime ) { matches = datetime.match( /^(\d\d\d\d)-(\d\d)-(\d\d)(?: (\d\d):(\d\d)(?::(\d\d))?)?$/ ); } if ( ! matches ) { return null; } matches.shift(); date = { year: matches.shift(), month: matches.shift(), day: matches.shift(), hour: matches.shift() || '00', minute: matches.shift() || '00', second: matches.shift() || '00' }; if ( control.params.includeTime && control.params.twelveHourFormat ) { date.hour = parseInt( date.hour, 10 ); date.meridian = date.hour >= midDayHour ? 'pm' : 'am'; date.hour = date.hour % midDayHour ? String( date.hour % midDayHour ) : String( midDayHour ); delete date.second; // @todo Why only if twelveHourFormat? } return date; }, /** * Validates if input components have valid date and time. * * @since 4.9.0 * @return {boolean} If date input fields has error. */ validateInputs: function validateInputs() { var control = this, components, validityInput; control.invalidDate = false; components = [ 'year', 'day' ]; if ( control.params.includeTime ) { components.push( 'hour', 'minute' ); } _.find( components, function( component ) { var element, max, min, value; element = control.inputElements[ component ]; validityInput = element.element.get( 0 ); max = parseInt( element.element.attr( 'max' ), 10 ); min = parseInt( element.element.attr( 'min' ), 10 ); value = parseInt( element(), 10 ); control.invalidDate = isNaN( value ) || value > max || value < min; if ( ! control.invalidDate ) { validityInput.setCustomValidity( '' ); } return control.invalidDate; } ); if ( control.inputElements.meridian && ! control.invalidDate ) { validityInput = control.inputElements.meridian.element.get( 0 ); if ( 'am' !== control.inputElements.meridian.get() && 'pm' !== control.inputElements.meridian.get() ) { control.invalidDate = true; } else { validityInput.setCustomValidity( '' ); } } if ( control.invalidDate ) { validityInput.setCustomValidity( api.l10n.invalidValue ); } else { validityInput.setCustomValidity( '' ); } if ( ! control.section() || api.section.has( control.section() ) && api.section( control.section() ).expanded() ) { _.result( validityInput, 'reportValidity' ); } return control.invalidDate; }, /** * Updates number of days according to the month and year selected. * * @since 4.9.0 * @return {void} */ updateDaysForMonth: function updateDaysForMonth() { var control = this, daysInMonth, year, month, day; month = parseInt( control.inputElements.month(), 10 ); year = parseInt( control.inputElements.year(), 10 ); day = parseInt( control.inputElements.day(), 10 ); if ( month && year ) { daysInMonth = new Date( year, month, 0 ).getDate(); control.inputElements.day.element.attr( 'max', daysInMonth ); if ( day > daysInMonth ) { control.inputElements.day( String( daysInMonth ) ); } } }, /** * Populate setting value from the inputs. * * @since 4.9.0 * @return {boolean} If setting updated. */ populateSetting: function populateSetting() { var control = this, date; if ( control.validateInputs() || ! control.params.allowPastDate && ! control.isFutureDate() ) { return false; } date = control.convertInputDateToString(); control.setting.set( date ); return true; }, /** * Converts input values to string in Y-m-d H:i:s format. * * @since 4.9.0 * @return {string} Date string. */ convertInputDateToString: function convertInputDateToString() { var control = this, date = '', dateFormat, hourInTwentyFourHourFormat, getElementValue, pad; pad = function( number, padding ) { var zeros; if ( String( number ).length < padding ) { zeros = padding - String( number ).length; number = Math.pow( 10, zeros ).toString().substr( 1 ) + String( number ); } return number; }; getElementValue = function( component ) { var value = parseInt( control.inputElements[ component ].get(), 10 ); if ( _.contains( [ 'month', 'day', 'hour', 'minute' ], component ) ) { value = pad( value, 2 ); } else if ( 'year' === component ) { value = pad( value, 4 ); } return value; }; dateFormat = [ 'year', '-', 'month', '-', 'day' ]; if ( control.params.includeTime ) { hourInTwentyFourHourFormat = control.inputElements.meridian ? control.convertHourToTwentyFourHourFormat( control.inputElements.hour(), control.inputElements.meridian() ) : control.inputElements.hour(); dateFormat = dateFormat.concat( [ ' ', pad( hourInTwentyFourHourFormat, 2 ), ':', 'minute', ':', '00' ] ); } _.each( dateFormat, function( component ) { date += control.inputElements[ component ] ? getElementValue( component ) : component; } ); return date; }, /** * Check if the date is in the future. * * @since 4.9.0 * @return {boolean} True if future date. */ isFutureDate: function isFutureDate() { var control = this; return 0 < api.utils.getRemainingTime( control.convertInputDateToString() ); }, /** * Convert hour in twelve hour format to twenty four hour format. * * @since 4.9.0 * @param {string} hourInTwelveHourFormat - Hour in twelve hour format. * @param {string} meridian - Either 'am' or 'pm'. * @return {string} Hour in twenty four hour format. */ convertHourToTwentyFourHourFormat: function convertHour( hourInTwelveHourFormat, meridian ) { var hourInTwentyFourHourFormat, hour, midDayHour = 12; hour = parseInt( hourInTwelveHourFormat, 10 ); if ( isNaN( hour ) ) { return ''; } if ( 'pm' === meridian && hour < midDayHour ) { hourInTwentyFourHourFormat = hour + midDayHour; } else if ( 'am' === meridian && midDayHour === hour ) { hourInTwentyFourHourFormat = hour - midDayHour; } else { hourInTwentyFourHourFormat = hour; } return String( hourInTwentyFourHourFormat ); }, /** * Populates date inputs in date fields. * * @since 4.9.0 * @return {boolean} Whether the inputs were populated. */ populateDateInputs: function populateDateInputs() { var control = this, parsed; parsed = control.parseDateTime( control.setting.get() ); if ( ! parsed ) { return false; } _.each( control.inputElements, function( element, component ) { var value = parsed[ component ]; // This will be zero-padded string. // Set month and meridian regardless of focused state since they are dropdowns. if ( 'month' === component || 'meridian' === component ) { // Options in dropdowns are not zero-padded. value = value.replace( /^0/, '' ); element.set( value ); } else { value = parseInt( value, 10 ); if ( ! element.element.is( document.activeElement ) ) { // Populate element with zero-padded value if not focused. element.set( parsed[ component ] ); } else if ( value !== parseInt( element(), 10 ) ) { // Forcibly update the value if its underlying value changed, regardless of zero-padding. element.set( String( value ) ); } } } ); return true; }, /** * Toggle future date notification for date control. * * @since 4.9.0 * @param {boolean} notify Add or remove the notification. * @return {wp.customize.DateTimeControl} */ toggleFutureDateNotification: function toggleFutureDateNotification( notify ) { var control = this, notificationCode, notification; notificationCode = 'not_future_date'; if ( notify ) { notification = new api.Notification( notificationCode, { type: 'error', message: api.l10n.futureDateError } ); control.notifications.add( notification ); } else { control.notifications.remove( notificationCode ); } return control; } }); /** * Class PreviewLinkControl. * * @since 4.9.0 * @class wp.customize.PreviewLinkControl * @augments wp.customize.Control */ api.PreviewLinkControl = api.Control.extend(/** @lends wp.customize.PreviewLinkControl.prototype */{ defaults: _.extend( {}, api.Control.prototype.defaults, { templateId: 'customize-preview-link-control' } ), /** * Initialize behaviors. * * @since 4.9.0 * @return {void} */ ready: function ready() { var control = this, element, component, node, url, input, button; _.bindAll( control, 'updatePreviewLink' ); if ( ! control.setting ) { control.setting = new api.Value(); } control.previewElements = {}; control.container.find( '.preview-control-element' ).each( function() { node = $( this ); component = node.data( 'component' ); element = new api.Element( node ); control.previewElements[ component ] = element; control.elements.push( element ); } ); url = control.previewElements.url; input = control.previewElements.input; button = control.previewElements.button; input.link( control.setting ); url.link( control.setting ); url.bind( function( value ) { url.element.parent().attr( { href: value, target: api.settings.changeset.uuid } ); } ); api.bind( 'ready', control.updatePreviewLink ); api.state( 'saved' ).bind( control.updatePreviewLink ); api.state( 'changesetStatus' ).bind( control.updatePreviewLink ); api.state( 'activated' ).bind( control.updatePreviewLink ); api.previewer.previewUrl.bind( control.updatePreviewLink ); button.element.on( 'click', function( event ) { event.preventDefault(); if ( control.setting() ) { input.element.select(); document.execCommand( 'copy' ); button( button.element.data( 'copied-text' ) ); } } ); url.element.parent().on( 'click', function( event ) { if ( $( this ).hasClass( 'disabled' ) ) { event.preventDefault(); } } ); button.element.on( 'mouseenter', function() { if ( control.setting() ) { button( button.element.data( 'copy-text' ) ); } } ); }, /** * Updates Preview Link * * @since 4.9.0 * @return {void} */ updatePreviewLink: function updatePreviewLink() { var control = this, unsavedDirtyValues; unsavedDirtyValues = ! api.state( 'saved' ).get() || '' === api.state( 'changesetStatus' ).get() || 'auto-draft' === api.state( 'changesetStatus' ).get(); control.toggleSaveNotification( unsavedDirtyValues ); control.previewElements.url.element.parent().toggleClass( 'disabled', unsavedDirtyValues ); control.previewElements.button.element.prop( 'disabled', unsavedDirtyValues ); control.setting.set( api.previewer.getFrontendPreviewUrl() ); }, /** * Toggles save notification. * * @since 4.9.0 * @param {boolean} notify Add or remove notification. * @return {void} */ toggleSaveNotification: function toggleSaveNotification( notify ) { var control = this, notificationCode, notification; notificationCode = 'changes_not_saved'; if ( notify ) { notification = new api.Notification( notificationCode, { type: 'info', message: api.l10n.saveBeforeShare } ); control.notifications.add( notification ); } else { control.notifications.remove( notificationCode ); } } }); /** * Change objects contained within the main customize object to Settings. * * @alias wp.customize.defaultConstructor */ api.defaultConstructor = api.Setting; /** * Callback for resolved controls. * * @callback wp.customize.deferredControlsCallback * @param {wp.customize.Control[]} controls Resolved controls. */ /** * Collection of all registered controls. * * @alias wp.customize.control * * @since 3.4.0 * * @type {Function} * @param {...string} ids - One or more ids for controls to obtain. * @param {deferredControlsCallback} [callback] - Function called when all supplied controls exist. * @return {wp.customize.Control|undefined|jQuery.promise} Control instance or undefined (if function called with one id param), * or promise resolving to requested controls. * * @example Loop over all registered controls. * wp.customize.control.each( function( control ) { ... } ); * * @example Getting `background_color` control instance. * control = wp.customize.control( 'background_color' ); * * @example Check if control exists. * hasControl = wp.customize.control.has( 'background_color' ); * * @example Deferred getting of `background_color` control until it exists, using callback. * wp.customize.control( 'background_color', function( control ) { ... } ); * * @example Get title and tagline controls when they both exist, using promise (only available when multiple IDs are present). * promise = wp.customize.control( 'blogname', 'blogdescription' ); * promise.done( function( titleControl, taglineControl ) { ... } ); * * @example Get title and tagline controls when they both exist, using callback. * wp.customize.control( 'blogname', 'blogdescription', function( titleControl, taglineControl ) { ... } ); * * @example Getting setting value for `background_color` control. * value = wp.customize.control( 'background_color ').setting.get(); * value = wp.customize( 'background_color' ).get(); // Same as above, since setting ID and control ID are the same. * * @example Add new control for site title. * wp.customize.control.add( new wp.customize.Control( 'other_blogname', { * setting: 'blogname', * type: 'text', * label: 'Site title', * section: 'other_site_identify' * } ) ); * * @example Remove control. * wp.customize.control.remove( 'other_blogname' ); * * @example Listen for control being added. * wp.customize.control.bind( 'add', function( addedControl ) { ... } ) * * @example Listen for control being removed. * wp.customize.control.bind( 'removed', function( removedControl ) { ... } ) */ api.control = new api.Values({ defaultConstructor: api.Control }); /** * Callback for resolved sections. * * @callback wp.customize.deferredSectionsCallback * @param {wp.customize.Section[]} sections Resolved sections. */ /** * Collection of all registered sections. * * @alias wp.customize.section * * @since 3.4.0 * * @type {Function} * @param {...string} ids - One or more ids for sections to obtain. * @param {deferredSectionsCallback} [callback] - Function called when all supplied sections exist. * @return {wp.customize.Section|undefined|jQuery.promise} Section instance or undefined (if function called with one id param), * or promise resolving to requested sections. * * @example Loop over all registered sections. * wp.customize.section.each( function( section ) { ... } ) * * @example Getting `title_tagline` section instance. * section = wp.customize.section( 'title_tagline' ) * * @example Expand dynamically-created section when it exists. * wp.customize.section( 'dynamically_created', function( section ) { * section.expand(); * } ); * * @see {@link wp.customize.control} for further examples of how to interact with {@link wp.customize.Values} instances. */ api.section = new api.Values({ defaultConstructor: api.Section }); /** * Callback for resolved panels. * * @callback wp.customize.deferredPanelsCallback * @param {wp.customize.Panel[]} panels Resolved panels. */ /** * Collection of all registered panels. * * @alias wp.customize.panel * * @since 4.0.0 * * @type {Function} * @param {...string} ids - One or more ids for panels to obtain. * @param {deferredPanelsCallback} [callback] - Function called when all supplied panels exist. * @return {wp.customize.Panel|undefined|jQuery.promise} Panel instance or undefined (if function called with one id param), * or promise resolving to requested panels. * * @example Loop over all registered panels. * wp.customize.panel.each( function( panel ) { ... } ) * * @example Getting nav_menus panel instance. * panel = wp.customize.panel( 'nav_menus' ); * * @example Expand dynamically-created panel when it exists. * wp.customize.panel( 'dynamically_created', function( panel ) { * panel.expand(); * } ); * * @see {@link wp.customize.control} for further examples of how to interact with {@link wp.customize.Values} instances. */ api.panel = new api.Values({ defaultConstructor: api.Panel }); /** * Callback for resolved notifications. * * @callback wp.customize.deferredNotificationsCallback * @param {wp.customize.Notification[]} notifications Resolved notifications. */ /** * Collection of all global notifications. * * @alias wp.customize.notifications * * @since 4.9.0 * * @type {Function} * @param {...string} codes - One or more codes for notifications to obtain. * @param {deferredNotificationsCallback} [callback] - Function called when all supplied notifications exist. * @return {wp.customize.Notification|undefined|jQuery.promise} Notification instance or undefined (if function called with one code param), * or promise resolving to requested notifications. * * @example Check if existing notification * exists = wp.customize.notifications.has( 'a_new_day_arrived' ); * * @example Obtain existing notification * notification = wp.customize.notifications( 'a_new_day_arrived' ); * * @example Obtain notification that may not exist yet. * wp.customize.notifications( 'a_new_day_arrived', function( notification ) { ... } ); * * @example Add a warning notification. * wp.customize.notifications.add( new wp.customize.Notification( 'midnight_almost_here', { * type: 'warning', * message: 'Midnight has almost arrived!', * dismissible: true * } ) ); * * @example Remove a notification. * wp.customize.notifications.remove( 'a_new_day_arrived' ); * * @see {@link wp.customize.control} for further examples of how to interact with {@link wp.customize.Values} instances. */ api.notifications = new api.Notifications(); api.PreviewFrame = api.Messenger.extend(/** @lends wp.customize.PreviewFrame.prototype */{ sensitivity: null, // Will get set to api.settings.timeouts.previewFrameSensitivity. /** * An object that fetches a preview in the background of the document, which * allows for seamless replacement of an existing preview. * * @constructs wp.customize.PreviewFrame * @augments wp.customize.Messenger * * @param {Object} params.container * @param {Object} params.previewUrl * @param {Object} params.query * @param {Object} options */ initialize: function( params, options ) { var deferred = $.Deferred(); /* * Make the instance of the PreviewFrame the promise object * so other objects can easily interact with it. */ deferred.promise( this ); this.container = params.container; $.extend( params, { channel: api.PreviewFrame.uuid() }); api.Messenger.prototype.initialize.call( this, params, options ); this.add( 'previewUrl', params.previewUrl ); this.query = $.extend( params.query || {}, { customize_messenger_channel: this.channel() }); this.run( deferred ); }, /** * Run the preview request. * * @param {Object} deferred jQuery Deferred object to be resolved with * the request. */ run: function( deferred ) { var previewFrame = this, loaded = false, ready = false, readyData = null, hasPendingChangesetUpdate = '{}' !== previewFrame.query.customized, urlParser, params, form; if ( previewFrame._ready ) { previewFrame.unbind( 'ready', previewFrame._ready ); } previewFrame._ready = function( data ) { ready = true; readyData = data; previewFrame.container.addClass( 'iframe-ready' ); if ( ! data ) { return; } if ( loaded ) { deferred.resolveWith( previewFrame, [ data ] ); } }; previewFrame.bind( 'ready', previewFrame._ready ); urlParser = document.createElement( 'a' ); urlParser.href = previewFrame.previewUrl(); params = _.extend( api.utils.parseQueryString( urlParser.search.substr( 1 ) ), { customize_changeset_uuid: previewFrame.query.customize_changeset_uuid, customize_theme: previewFrame.query.customize_theme, customize_messenger_channel: previewFrame.query.customize_messenger_channel } ); if ( api.settings.changeset.autosaved || ! api.state( 'saved' ).get() ) { params.customize_autosaved = 'on'; } urlParser.search = $.param( params ); previewFrame.iframe = $( '