Statify - Version 1.8.3

Version Description

Download this release

Release Info

Developer pluginkollektiv
Plugin Icon 128x128 Statify
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2 to 1.8.3

CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
  # Changelog
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
 
 
 
 
 
 
 
 
4
  ## 1.8.2
5
  * Minor adjustments for the dashboard widget (#197) (#199)
6
  * Tested up to WordPress 5.7
1
  # Changelog
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
 
4
+ ## 1.8.3
5
+ * Update documentation links (#204)
6
+ * Minor markup fix on settings page (#206)
7
+ * Dashboard widget is closeable again (#208) (#209)
8
+ * Fix static initialization on multisite with PHP 8 (#210, props @walterebert)
9
+ * Tested up to WordPress 5.8
10
+
11
  ## 1.8.2
12
  * Minor adjustments for the dashboard widget (#197) (#199)
13
  * Tested up to WordPress 5.7
css/dashboard.css CHANGED
@@ -69,6 +69,10 @@
69
  position: relative;
70
  }
71
 
 
 
 
 
72
  #statify_dashboard .table {
73
  padding-bottom: 12px;
74
  }
69
  position: relative;
70
  }
71
 
72
+ #statify_dashboard.closed .inside {
73
+ display: none;
74
+ }
75
+
76
  #statify_dashboard .table {
77
  padding-bottom: 12px;
78
  }
css/dashboard.min.css CHANGED
@@ -1 +1 @@
1
- #statify_chart{color:#a7aaad;flex:0 0 100%;direction:rtl;height:140px;margin:0 -4px;overflow-x:auto;overflow-y:hidden;text-align:center}#statify_chart_data{display:none}#statify_chart .ct-label.ct-vertical.ct-start{-webkit-justify-content:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}#statify_chart .ct-line{stroke:#3582c4;stroke-width:2px}#statify_chart .ct-point{fill:#fff;stroke:#3582c4;stroke-width:1.5px}#statify_chart .ct-area{fill:#3582c4}.statify-chartist-tooltip{border:1px solid #000;background-color:#fff;border-radius:.2em;padding:.1em .5em}.statify-chartist-tooltip::before{border-top-color:#0009}.statify-chartist-tooltip .chartist-tooltip-meta{color:#3582c4}#statify_dashboard .postbox-title-action a,#statify_dashboard .settings-link a{display:block;line-height:20px;text-decoration:none}#statify_dashboard .inside{display:flex;flex-wrap:wrap;height:1%;margin:0;padding-bottom:0;overflow:hidden;position:relative}#statify_dashboard .table{padding-bottom:12px}#statify_dashboard .table p.sub{color:#646970;margin:0 0 -4px}#statify_dashboard .table div{overflow:hidden}#statify_dashboard .table.referrer,#statify_dashboard .table.target{flex:1 0 50%}#statify_dashboard .table.total{flex:0 0 100%}#statify_dashboard td{padding:8px 0 0;line-height:1.4}#statify_dashboard td.b{text-align:right;padding-right:4px;color:#646970}#statify_dashboard label{display:block;margin-bottom:1.1em!important}#statify_dashboard form{flex:0 0 100%;padding:18px 0}#statify_dashboard input[type="number"]{width:100px}#statify_dashboard .meta-links{float:right;margin:0;line-height:28px}
1
+ #statify_chart{color:#a7aaad;flex:0 0 100%;direction:rtl;height:140px;margin:0 -4px;overflow-x:auto;overflow-y:hidden;text-align:center}#statify_chart_data{display:none}#statify_chart .ct-label.ct-vertical.ct-start{-webkit-justify-content:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}#statify_chart .ct-line{stroke:#3582c4;stroke-width:2px}#statify_chart .ct-point{fill:#fff;stroke:#3582c4;stroke-width:1.5px}#statify_chart .ct-area{fill:#3582c4}.statify-chartist-tooltip{border:1px solid #000;background-color:#fff;border-radius:.2em;padding:.1em .5em}.statify-chartist-tooltip::before{border-top-color:#0009}.statify-chartist-tooltip .chartist-tooltip-meta{color:#3582c4}#statify_dashboard .postbox-title-action a,#statify_dashboard .settings-link a{display:block;line-height:20px;text-decoration:none}#statify_dashboard .inside{display:flex;flex-wrap:wrap;height:1%;margin:0;padding-bottom:0;overflow:hidden;position:relative}#statify_dashboard.closed .inside{display:none}#statify_dashboard .table{padding-bottom:12px}#statify_dashboard .table p.sub{color:#646970;margin:0 0 -4px}#statify_dashboard .table div{overflow:hidden}#statify_dashboard .table.referrer,#statify_dashboard .table.target{flex:1 0 50%}#statify_dashboard .table.total{flex:0 0 100%}#statify_dashboard td{padding:8px 0 0;line-height:1.4}#statify_dashboard td.b{text-align:right;padding-right:4px;color:#646970}#statify_dashboard label{display:block;margin-bottom:1.1em!important}#statify_dashboard form{flex:0 0 100%;padding:18px 0}#statify_dashboard input[type="number"]{width:100px}#statify_dashboard .meta-links{float:right;margin:0;line-height:28px}
inc/class-statify-install.php CHANGED
@@ -53,7 +53,7 @@ class Statify_Install {
53
  *
54
  * @param int $site_id Site ID.
55
  */
56
- public function init_site( $site_id ) {
57
 
58
  switch_to_blog( (int) $site_id );
59
 
53
  *
54
  * @param int $site_id Site ID.
55
  */
56
+ public static function init_site( $site_id ) {
57
 
58
  switch_to_blog( (int) $site_id );
59
 
inc/class-statify-settings.php CHANGED
@@ -158,7 +158,7 @@ class Statify_Settings {
158
  private static function show_snippet_option( $value, $label ) {
159
  ?>
160
  <label>
161
- <input name="statify[snippet]" type="radio" value="<?php echo esc_html( $value ); ?>>" <?php checked( Statify::$_options['snippet'], $value ); ?>>
162
  <?php echo esc_html( $label ); ?>
163
  </label>
164
  <?php
158
  private static function show_snippet_option( $value, $label ) {
159
  ?>
160
  <label>
161
+ <input name="statify[snippet]" type="radio" value="<?php echo esc_html( $value ); ?>" <?php checked( Statify::$_options['snippet'], $value ); ?>>
162
  <?php echo esc_html( $label ); ?>
163
  </label>
164
  <?php
inc/class-statify-uninstall.php CHANGED
@@ -50,7 +50,7 @@ class Statify_Uninstall {
50
  *
51
  * @param int $site_id Site ID.
52
  */
53
- public function init_site( $site_id ) {
54
 
55
  switch_to_blog( $site_id );
56
 
50
  *
51
  * @param int $site_id Site ID.
52
  */
53
+ public static function init_site( $site_id ) {
54
 
55
  switch_to_blog( $site_id );
56
 
js/chartist-plugin-tooltip.min.js CHANGED
@@ -1,8 +1,8 @@
1
- /* chartist-plugin-tooltip 0.1.3
2
  * Copyright © 2020 Markus Padourek
3
  * Free to use under the WTFPL license.
4
  * http://www.wtfpl.net/
5
  */
6
 
7
- !function(e,o){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["chartist"],function(t){return e["Chartist.plugins.tooltip"]=o(t)}):"object"==typeof module&&module.exports?module.exports=o(require("chartist")):e["Chartist.plugins.tooltip"]=o(e.Chartist)}(this,function(t){return function(c,b,T){"use strict";var t={currency:void 0,currencyFormatCallback:void 0,tooltipOffset:{x:0,y:-20},anchorToPoint:!1,appendToBody:!0,class:void 0,pointClass:"ct-point"};function C(t,e){return-1<(" "+t.getAttribute("class")+" ").indexOf(" "+e+" ")}function O(t){var e;return O in t?e=(e=t.offsetParent)||b.body.parentElement:(e=t.parentNode)?"static"!==c.getComputedStyle(e).position?e:"BODY"===e.tagName?e.parentElement:O(e):b.body.parentElement}T.plugins=T.plugins||{},T.plugins.tooltip=function(x){return x=T.extend({},t,x),function(f){var t=x.pointClass;f instanceof T.Bar?t="ct-bar":f instanceof T.Pie&&(t=f.options.donut?f.options.donutSolid?"ct-slice-donut-solid":"ct-slice-donut":"ct-slice-pie");var u,d=f.container,g=!1,y=O(d);(u=x.appendToBody?b.querySelector(".chartist-tooltip"):d.querySelector(".chartist-tooltip"))||((u=b.createElement("div")).className=x.class?"chartist-tooltip "+x.class:"chartist-tooltip",x.appendToBody?b.body.appendChild(u):d.appendChild(u));var m=u.offsetHeight,h=u.offsetWidth;function e(t,e,o){d.addEventListener(t,function(t){e&&!C(t.target,e)||o(t)})}function v(t){m=m||u.offsetHeight;var e=-(h=h||u.offsetWidth)/2+x.tooltipOffset.x,o=-m+x.tooltipOffset.y,n=!0===x.anchorToPoint&&t.target.x2&&t.target.y2;if(!0===x.appendToBody)if(n){var i=d.getBoundingClientRect(),a=t.target.x2.baseVal.value+i.left+c.pageXOffset,s=t.target.y2.baseVal.value+i.top+c.pageYOffset;u.style.left=a+e+"px",u.style.top=s+o+"px"}else u.style.left=t.pageX+e+"px",u.style.top=t.pageY+o+"px";else{var l=y.getBoundingClientRect(),r=-l.left-c.pageXOffset+e,p=-l.top-c.pageYOffset+o;if(n){i=d.getBoundingClientRect(),a=t.target.x2.baseVal.value+i.left+c.pageXOffset,s=t.target.y2.baseVal.value+i.top+c.pageYOffset;u.style.left=a+r+"px",u.style.top=s+p+"px"}else u.style.left=t.pageX+r+"px",u.style.top=t.pageY+p+"px"}}function o(t){g=!1;var e=new RegExp("tooltip-show\\s*","gi");t.className=t.className.replace(e,"").trim()}o(u),e("mouseover",t,function(t){var e,o,n=t.target,i="",a=(f instanceof T.Pie?n:n.parentNode)?n.parentNode.getAttribute("ct:meta")||n.parentNode.getAttribute("ct:series-name"):"",s=n.getAttribute("ct:meta")||a||"",l=!!s,r=n.getAttribute("ct:value");if(x.transformTooltipTextFnc&&"function"==typeof x.transformTooltipTextFnc&&(r=x.transformTooltipTextFnc(r)),x.tooltipFnc&&"function"==typeof x.tooltipFnc)i=x.tooltipFnc(s,r);else{if(x.metaIsHTML){var p=b.createElement("textarea");p.innerHTML=s,s=p.value}if(s='<span class="chartist-tooltip-meta">'+s+"</span>",l)i+=s+"<br>";else if(f instanceof T.Pie){var c=function(t,e){for(;t=t.nextSibling,t&&!C(t,e););return t}(n,"ct-label");c&&(i+=((e=c).innerText||e.textContent)+"<br>")}r&&(x.currency&&(r=null!=x.currencyFormatCallback?x.currencyFormatCallback(r,x):x.currency+r.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g,"$1,")),i+=r='<span class="chartist-tooltip-value">'+r+"</span>")}i&&(u.innerHTML=i,m=u.offsetHeight,h=u.offsetWidth,!0!==x.appendToBody&&(y=O(d)),"absolute"!==u.style.display&&(u.style.display="absolute"),v(t),g=!0,C(o=u,"tooltip-show")||(o.className=o.className+" tooltip-show"),m=u.offsetHeight,h=u.offsetWidth)}),e("mouseout",t,function(){o(u)}),e("mousemove",null,function(t){!1===x.anchorToPoint&&g&&v(t)})}}}(window,document,t),t.plugins.tooltip});
8
  //# sourceMappingURL=chartist-plugin-tooltip.min.js.map
1
+ /* chartist-plugin-tooltip 0.1.4
2
  * Copyright © 2020 Markus Padourek
3
  * Free to use under the WTFPL license.
4
  * http://www.wtfpl.net/
5
  */
6
 
7
+ !function(e,o){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["chartist"],function(t){return e["Chartist.plugins.tooltip"]=o(t)}):"object"==typeof module&&module.exports?module.exports=o(require("chartist")):e["Chartist.plugins.tooltip"]=o(e.Chartist)}(this,function(t){return function(m,h,x){"use strict";var t={currency:void 0,currencyFormatCallback:void 0,tooltipOffset:{x:0,y:-20},anchorToPoint:!1,appendToBody:!0,class:void 0,pointClass:"ct-point"};function v(t,e){return-1<(" "+t.getAttribute("class")+" ").indexOf(" "+e+" ")}function b(t){var e;return b in t?e=(e=t.offsetParent)||h.body.parentElement:(e=t.parentNode)?"static"!==m.getComputedStyle(e).position?e:"BODY"===e.tagName?e.parentElement:b(e):h.body.parentElement}x.plugins=x.plugins||{},x.plugins.tooltip=function(y){return y=x.extend({},t,y),function(l){var t=y.pointClass;l instanceof x.Bar?t="ct-bar":l instanceof x.Pie&&(t=l.options.donut?l.options.donutSolid?"ct-slice-donut-solid":"ct-slice-donut":"ct-slice-pie");var r=l.container,p=!1,c=b(r),f=(y.appendToBody?h:r).querySelector(".chartist-tooltip");f||((f=h.createElement("div")).className=y.class?"chartist-tooltip "+y.class:"chartist-tooltip",(y.appendToBody?h.body:r).appendChild(f));var u=f.offsetHeight,d=f.offsetWidth;function e(t,e,o){r.addEventListener(t,function(t){e&&!v(t.target,e)||o(t)})}function g(t){u=u||f.offsetHeight;var e,o,n,a,i=-(d=d||f.offsetWidth)/2+y.tooltipOffset.x,s=-u+y.tooltipOffset.y,l=!0===y.anchorToPoint&&t.target.x2&&t.target.y2;!0===y.appendToBody?l?(o=r.getBoundingClientRect(),n=t.target.x2.baseVal.value+o.left+m.pageXOffset,a=t.target.y2.baseVal.value+o.top+m.pageYOffset,f.style.left=n+i+"px",f.style.top=a+s+"px"):(f.style.left=t.pageX+i+"px",f.style.top=t.pageY+s+"px"):(i=-(e=c.getBoundingClientRect()).left-m.pageXOffset+i,s=-e.top-m.pageYOffset+s,l?(o=r.getBoundingClientRect(),n=t.target.x2.baseVal.value+o.left+m.pageXOffset,a=t.target.y2.baseVal.value+o.top+m.pageYOffset,f.style.left=n+i+"px",f.style.top=a+s+"px"):(f.style.left=t.pageX+i+"px",f.style.top=t.pageY+s+"px"))}function o(t){p=!1;var e=new RegExp("tooltip-show\\s*","gi");t.className=t.className.replace(e,"").trim()}o(f),e("mouseover",t,function(t){var e=t.target,o="",n=(l instanceof x.Pie?e:e.parentNode)?e.parentNode.getAttribute("ct:meta")||e.parentNode.getAttribute("ct:series-name"):"",a=e.getAttribute("ct:meta")||n||"",i=!!a,s=e.getAttribute("ct:value");y.transformTooltipTextFnc&&"function"==typeof y.transformTooltipTextFnc&&(s=y.transformTooltipTextFnc(s)),y.tooltipFnc&&"function"==typeof y.tooltipFnc?o=y.tooltipFnc(a,s):(y.metaIsHTML&&((n=h.createElement("textarea")).innerHTML=a,a=n.value),a='<span class="chartist-tooltip-meta">'+a+"</span>",i?o+=a+"<br>":l instanceof x.Pie&&((e=function(t,e){for(;t=t.nextSibling,t&&!v(t,e););return t}(e,"ct-label"))&&(o+=((e=e).innerText||e.textContent)+"<br>")),s&&(y.currency&&(s=null!=y.currencyFormatCallback?y.currencyFormatCallback(s,y):y.currency+s.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g,"$1,")),o+=s='<span class="chartist-tooltip-value">'+s+"</span>")),o&&(f.innerHTML=o,u=f.offsetHeight,d=f.offsetWidth,!0!==y.appendToBody&&(c=b(r)),"absolute"!==f.style.display&&(f.style.display="absolute"),g(t),p=!0,v(t=f,"tooltip-show")||(t.className=t.className+" tooltip-show"),u=f.offsetHeight,d=f.offsetWidth)}),e("mouseout",t,function(){o(f)}),e("mousemove",null,function(t){!1===y.anchorToPoint&&p&&g(t)})}}}(window,document,t),t.plugins.tooltip});
8
  //# sourceMappingURL=chartist-plugin-tooltip.min.js.map
js/chartist-plugin-tooltip.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["chartist-plugin-tooltip.js"],"names":["root","factory","undefined","window","define","amd","a0","module","exports","require","this","Chartist","document","defaultOptions","currency","currencyFormatCallback","tooltipOffset","x","y","anchorToPoint","appendToBody","class","pointClass","hasClass","element","className","getAttribute","indexOf","offsetParent","elem","parent","body","parentElement","parentNode","getComputedStyle","position","tagName","plugins","tooltip","options","extend","chart","tooltipSelector","Bar","Pie","donut","donutSolid","$toolTip","$chart","container","$toolTipIsShown","$tooltipOffsetParent","querySelector","createElement","appendChild","height","offsetHeight","width","offsetWidth","on","event","selector","callback","addEventListener","e","target","setPosition","offsetX","offsetY","anchor","x2","y2","box","getBoundingClientRect","left","baseVal","value","pageXOffset","top","pageYOffset","style","pageX","pageY","offsetBox","allOffsetLeft","allOffsetTop","hide","regex","RegExp","replace","trim","$point","tooltipText","seriesName","meta","hasMeta","transformTooltipTextFnc","tooltipFnc","metaIsHTML","txt","innerHTML","label","nextSibling","next","innerText","textContent","display"],"mappings":";;;;;;CAAC,SAAUA,EAAMC,QACFC,IAATF,QAAiCE,IAAXC,SAAsBH,EAAOG,QACjC,mBAAXC,QAAyBA,OAAOC,IAEzCD,OAAO,CAAC,YAAa,SAAUE,GAC7B,OAAQN,EAAK,4BAA8BC,EAAQK,KAE1B,iBAAXC,QAAuBA,OAAOC,QAI9CD,OAAOC,QAAUP,EAAQQ,QAAQ,aAEjCT,EAAK,4BAA8BC,EAAQD,EAAe,UAb9D,CAeEU,KAAM,SAAUC,GAuRlB,OAhRC,SAAUR,EAAQS,EAAUD,GAC3B,aAEA,IAAIE,EAAiB,CACnBC,cAAUZ,EACVa,4BAAwBb,EACxBc,cAAe,CACbC,EAAG,EACHC,GAAI,IAENC,eAAe,EACfC,cAAc,EACdC,WAAOnB,EACPoB,WAAY,YA+Md,SAASC,EAASC,EAASC,GACzB,OAAqF,GAA7E,IAAMD,EAAQE,aAAa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YAE3BxC,EAAYN,GA+DdV,GAAkB,EACb3B,EAFOC,EA7DLuB,EA+DgB,kBACrBvB,EAAQC,UAAYD,EAAQC,UAAY,iBA7DxC8B,EAASR,EAASS,aAClBC,EAAQV,EAASW,eAIrBC,EAAG,WAAYjB,EAAiB,WAC9B4C,EAAKvC,KAGPY,EAAG,YAAa,KAAM,SAAUC,IACA,IAA1BrB,EAAQpB,eAA2B+B,GACrCgB,EAAYN,OAnJtB,CA8QEzD,OAAQS,SAAUD,GAEbA,EAAS0B,QAAQC","file":"chartist-plugin-tooltip.min.js"}
1
+ {"version":3,"file":"chartist-plugin-tooltip.min.js","sources":["chartist-plugin-tooltip.js"],"names":["root","factory","undefined","window","define","amd","a0","module","exports","require","this","Chartist","document","defaultOptions","currency","currencyFormatCallback","tooltipOffset","x","y","anchorToPoint","appendToBody","class","pointClass","hasClass","element","className","getAttribute","indexOf","offsetParent","elem","parent","body","parentElement","parentNode","getComputedStyle","position","tagName","plugins","tooltip","options","extend","chart","tooltipSelector","Bar","Pie","donut","donutSolid","$chart","container","$toolTipIsShown","$tooltipOffsetParent","$toolTip","querySelector","createElement","appendChild","height","offsetHeight","width","offsetWidth","on","event","selector","callback","addEventListener","e","target","setPosition","offsetBox","box","left","top","offsetX","offsetY","anchor","x2","y2","getBoundingClientRect","baseVal","value","pageXOffset","pageYOffset","style","pageX","pageY","allOffsetLeft","allOffsetTop","hide","regex","RegExp","replace","trim","$point","tooltipText","seriesName","meta","hasMeta","transformTooltipTextFnc","tooltipFnc","metaIsHTML","txt","innerHTML","label","nextSibling","next","innerText","textContent","display"],"mappings":";;;;;;CAAC,SAAUA,EAAMC,QACFC,IAATF,QAAiCE,IAAXC,SAAsBH,EAAOG,QACjC,mBAAXC,QAAyBA,OAAOC,IAEzCD,OAAO,CAAC,YAAa,SAAUE,GAC7B,OAAQN,EAAK,4BAA8BC,EAAQK,KAE1B,iBAAXC,QAAuBA,OAAOC,QAI9CD,OAAOC,QAAUP,EAAQQ,QAAQ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C,EAASiD,UAAYR,EAGrBrC,EAASJ,EAASK,aAClBC,EAAQN,EAASO,aAEY,IAAzBnB,EAAQnB,eACV8B,EAAuBtB,EAAamB,IAEP,aAA3BI,EAAS8B,MAAMyB,UACjBvD,EAAS8B,MAAMyB,QAAU,YAE3BxC,EAAYN,GA+DdX,GAAkB,EACb1B,EAFOC,EA7DL2B,EA+DgB,kBACrB3B,EAAQC,UAAYD,EAAQC,UAAY,iBA7DxC8B,EAASJ,EAASK,aAClBC,EAAQN,EAASO,eAIrBC,EAAG,WAAYjB,EAAiB,WAC9B4C,EAAKnC,KAGPQ,EAAG,YAAa,KAAM,SAAUC,IACA,IAA1BrB,EAAQpB,eAA2B8B,GACrCiB,EAAYN,OAnJtB,CA8QEzD,OAAQS,SAAUD,GAEbA,EAAS0B,QAAQC"}
readme.txt CHANGED
@@ -3,9 +3,9 @@
3
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
4
  * Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
5
  * Requires at least: 4.7
6
- * Tested up to: 5.7
7
  * Requires PHP: 5.2
8
- * Stable tag: 1.8.2
9
  * License: GPLv3 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -117,6 +117,13 @@ has to be added to the theme's `functions.php`. The condition has modified such
117
  ## Changelog ##
118
  You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
119
 
 
 
 
 
 
 
 
120
  ### 1.8.2
121
  * Minor adjustments for the dashboard widget (#197) (#199)
122
  * Tested up to WordPress 5.7
@@ -167,6 +174,9 @@ For the complete changelog, check out our [GitHub repository](https://github.com
167
 
168
  ## Upgrade Notice ##
169
 
 
 
 
170
  ### 1.8.2 ###
171
  This is a maintenance release with minor changes in the dashboard widget. Compatible with WordPress 5.7.
172
 
3
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
4
  * Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
5
  * Requires at least: 4.7
6
+ * Tested up to: 6.0
7
  * Requires PHP: 5.2
8
+ * Stable tag: 1.8.3
9
  * License: GPLv3 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
117
  ## Changelog ##
118
  You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
119
 
120
+ ### 1.8.3
121
+ * Update documentation links (#204)
122
+ * Minor markup fix on settings page (#206)
123
+ * Dashboard widget is closeable again (#208) (#209)
124
+ * Fix static initialization on multisite with PHP 8 (#210, props @walterebert)
125
+ * Tested up to WordPress 5.8
126
+
127
  ### 1.8.2
128
  * Minor adjustments for the dashboard widget (#197) (#199)
129
  * Tested up to WordPress 5.7
174
 
175
  ## Upgrade Notice ##
176
 
177
+ ### 1.8.3 ###
178
+ This is a bugfix with corrections for the dashboard widget and PHP 8 issues on multisite. It is recommended for all users.
179
+
180
  ### 1.8.2 ###
181
  This is a maintenance release with minor changes in the dashboard widget. Compatible with WordPress 5.7.
182
 
statify.php CHANGED
@@ -4,10 +4,10 @@
4
  * Description: Compact, easy-to-use and privacy-compliant stats plugin for WordPress.
5
  * Text Domain: statify
6
  * Author: pluginkollektiv
7
- * Author URI: https://pluginkollektiv.org
8
- * Plugin URI: https://wordpress.org/plugins/statify/
9
  * License: GPLv3 or later
10
- * Version: 1.8.2
11
  *
12
  * @package WordPress
13
  */
@@ -20,7 +20,7 @@ defined( 'ABSPATH' ) || exit;
20
  define( 'STATIFY_FILE', __FILE__ );
21
  define( 'STATIFY_DIR', dirname( __FILE__ ) );
22
  define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
23
- define( 'STATIFY_VERSION', '1.8.2' );
24
 
25
 
26
  /* Hooks */
4
  * Description: Compact, easy-to-use and privacy-compliant stats plugin for WordPress.
5
  * Text Domain: statify
6
  * Author: pluginkollektiv
7
+ * Author URI: https://pluginkollektiv.org/
8
+ * Plugin URI: https://statify.pluginkollektiv.org/
9
  * License: GPLv3 or later
10
+ * Version: 1.8.3
11
  *
12
  * @package WordPress
13
  */
20
  define( 'STATIFY_FILE', __FILE__ );
21
  define( 'STATIFY_DIR', dirname( __FILE__ ) );
22
  define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
23
+ define( 'STATIFY_VERSION', '1.8.3' );
24
 
25
 
26
  /* Hooks */
views/widget-back.php CHANGED
@@ -46,7 +46,7 @@ class_exists( 'Statify' ) || exit; ?>
46
  <?php wp_nonce_field( 'statify-dashboard' ); ?>
47
 
48
  <p class="meta-links">
49
- <a href="<?php echo esc_url( __( 'https://wordpress.org/plugins/statify/', 'statify' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Documentation', 'statify' ); ?></a>
50
  &bull; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Donate', 'statify' ); ?></a>
51
  &bull; <a href="<?php echo esc_url( __( 'https://wordpress.org/support/plugin/statify', 'statify' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Support', 'statify' ); ?></a>
52
  </p>
46
  <?php wp_nonce_field( 'statify-dashboard' ); ?>
47
 
48
  <p class="meta-links">
49
+ <a href="<?php echo esc_url( __( 'https://statify.pluginkollektiv.org/', 'statify' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Documentation', 'statify' ); ?></a>
50
  &bull; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Donate', 'statify' ); ?></a>
51
  &bull; <a href="<?php echo esc_url( __( 'https://wordpress.org/support/plugin/statify', 'statify' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Support', 'statify' ); ?></a>
52
  </p>