PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.13.5
Independent Analytics – WordPress Analytics Plugin v2.13.5
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / IAWP / Admin_Page / Updates_Page.php
Updates_Page.php
23 lines 662 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWP\Admin_Page;
4
5 use IAWP\Capability_Manager;
6 /** @internal */
7 class Updates_Page extends \IAWP\Admin_Page\Admin_Page
8 {
9 protected function render_page()
10 {
11 if (Capability_Manager::show_branded_ui()) {
12 echo \IAWPSCOPED\iawp_blade()->run('updates');
13 $this->update_latest_update_viewed();
14 } else {
15 echo '<p class="permission-blocked">' . \esc_html__('You do not have permission to view this page.', 'independent-analytics') . '</p>';
16 }
17 }
18 private function update_latest_update_viewed()
19 {
20 \update_option('iawp_last_update_viewed', \IAWP_VERSION, \true);
21 }
22 }
23