Changeset 2181080
- Timestamp:
- 10/27/2019 06:17:35 PM (6 years ago)
- Location:
- glance-that
- Files:
-
- 4 edited
- 1 copied
-
tags/4.7 (copied) (copied from glance-that/trunk)
-
tags/4.7/glance-that.php (modified) (6 diffs)
-
tags/4.7/readme.txt (modified) (3 diffs)
-
trunk/glance-that.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
glance-that/tags/4.7/glance-that.php
r2086452 r2181080 4 4 * Plugin URI: http://typewheel.xyz/ 5 5 * Description: Adds content control to At a Glance on the Dashboard 6 * Version: 4. 66 * Version: 4.7 7 7 * Author: Typewheel 8 8 * Author URI: http://typewheel.xyz … … 18 18 * 19 19 * @package Glance That 20 * @version 4. 620 * @version 4.7 21 21 * @author uamv 22 22 * @copyright Copyright (c) 2013-2019, uamv … … 29 29 */ 30 30 31 define( 'GT_VERSION', '4. 6' );31 define( 'GT_VERSION', '4.7' ); 32 32 define( 'GT_DIR_PATH', plugin_dir_path( __FILE__ ) ); 33 33 define( 'GT_DIR_URL', plugin_dir_url( __FILE__ ) ); … … 527 527 if ( $site_status_result && current_user_can( 'install_plugins' ) ) { 528 528 $tests_total = intval( $site_status_result['good'] ) + intval( $site_status_result['recommended'] ) + intval( $site_status_result['critical'] ) * 1.5; 529 $tests_failed = intval( $site_status_result['recommended'] ) + intval( $site_status_result['critical'] ) * 1.5;529 $tests_failed = intval( $site_status_result['recommended'] ) * .5 + intval( $site_status_result['critical'] ) * 1.5; 530 530 $tests_result = 100 - ceil( ( $tests_failed / $tests_total ) * 100 ); 531 531 532 $text = $tests_result . '% Site Health';532 $text = ( 80 <= $tests_result && intval( $site_status_result['critical'] ) == 0 ) ? 'Good' : 'Check Me'; 533 533 534 534 $site_info = '<a href="site-health.php?tab=debug" class="gt-view-info"><span class="dashicons dashicons-info" title="View Site Info"></span></a>'; … … 1229 1229 public function assemble_options( $options ) { 1230 1230 1231 $available = apply_filters( 'gt_glance_selection', array_keys( $options ) ); 1232 1231 1233 $html = ''; 1232 1234 1233 1235 foreach ( $options as $glance => $args ) { 1236 1237 if ( ! in_array( $glance, $available, true ) ) 1238 continue; 1234 1239 1235 1240 $glancing = $args['glancing'] ? 'data-glancing="shown"' : 'data-glancing="hidden"'; … … 1277 1282 unset( $post_types['acf-field'] ); 1278 1283 unset( $post_types['user_request'] ); 1284 unset( $post_types['gplp'] ); 1285 unset( $post_types['project-huddle'] ); 1286 unset( $post_types['scheduled-action'] ); 1287 unset( $post_types['ph_version'] ); 1288 1279 1289 1280 1290 return $post_types; -
glance-that/tags/4.7/readme.txt
r2086454 r2181080 6 6 Requires PHP: 5.6 7 7 Requires at least: 3.1 8 Tested up to: 5. 29 Stable tag: 4. 68 Tested up to: 5.3 9 Stable tag: 4.7 10 10 License: GPLv2 or later 11 11 … … 57 57 A slew of filters are available to fine tune integration with your site: 58 58 59 `gt_ post_type_selection` lets you limit available glances.59 `gt_glance_selection` lets you limit available glances. 60 60 61 61 `gt_labels` customizes glance labels. … … 99 99 == Changelog == 100 100 101 = 4.7 = 102 * Add `gt_glance_selection` filter 103 * Update site health to match WP 5.3 treatment 104 101 105 = 4.6 = 102 106 * Toggle & style other items added to subsection -
glance-that/trunk/glance-that.php
r2086452 r2181080 4 4 * Plugin URI: http://typewheel.xyz/ 5 5 * Description: Adds content control to At a Glance on the Dashboard 6 * Version: 4. 66 * Version: 4.7 7 7 * Author: Typewheel 8 8 * Author URI: http://typewheel.xyz … … 18 18 * 19 19 * @package Glance That 20 * @version 4. 620 * @version 4.7 21 21 * @author uamv 22 22 * @copyright Copyright (c) 2013-2019, uamv … … 29 29 */ 30 30 31 define( 'GT_VERSION', '4. 6' );31 define( 'GT_VERSION', '4.7' ); 32 32 define( 'GT_DIR_PATH', plugin_dir_path( __FILE__ ) ); 33 33 define( 'GT_DIR_URL', plugin_dir_url( __FILE__ ) ); … … 527 527 if ( $site_status_result && current_user_can( 'install_plugins' ) ) { 528 528 $tests_total = intval( $site_status_result['good'] ) + intval( $site_status_result['recommended'] ) + intval( $site_status_result['critical'] ) * 1.5; 529 $tests_failed = intval( $site_status_result['recommended'] ) + intval( $site_status_result['critical'] ) * 1.5;529 $tests_failed = intval( $site_status_result['recommended'] ) * .5 + intval( $site_status_result['critical'] ) * 1.5; 530 530 $tests_result = 100 - ceil( ( $tests_failed / $tests_total ) * 100 ); 531 531 532 $text = $tests_result . '% Site Health';532 $text = ( 80 <= $tests_result && intval( $site_status_result['critical'] ) == 0 ) ? 'Good' : 'Check Me'; 533 533 534 534 $site_info = '<a href="site-health.php?tab=debug" class="gt-view-info"><span class="dashicons dashicons-info" title="View Site Info"></span></a>'; … … 1229 1229 public function assemble_options( $options ) { 1230 1230 1231 $available = apply_filters( 'gt_glance_selection', array_keys( $options ) ); 1232 1231 1233 $html = ''; 1232 1234 1233 1235 foreach ( $options as $glance => $args ) { 1236 1237 if ( ! in_array( $glance, $available, true ) ) 1238 continue; 1234 1239 1235 1240 $glancing = $args['glancing'] ? 'data-glancing="shown"' : 'data-glancing="hidden"'; … … 1277 1282 unset( $post_types['acf-field'] ); 1278 1283 unset( $post_types['user_request'] ); 1284 unset( $post_types['gplp'] ); 1285 unset( $post_types['project-huddle'] ); 1286 unset( $post_types['scheduled-action'] ); 1287 unset( $post_types['ph_version'] ); 1288 1279 1289 1280 1290 return $post_types; -
glance-that/trunk/readme.txt
r2086454 r2181080 6 6 Requires PHP: 5.6 7 7 Requires at least: 3.1 8 Tested up to: 5. 29 Stable tag: 4. 68 Tested up to: 5.3 9 Stable tag: 4.7 10 10 License: GPLv2 or later 11 11 … … 57 57 A slew of filters are available to fine tune integration with your site: 58 58 59 `gt_ post_type_selection` lets you limit available glances.59 `gt_glance_selection` lets you limit available glances. 60 60 61 61 `gt_labels` customizes glance labels. … … 99 99 == Changelog == 100 100 101 = 4.7 = 102 * Add `gt_glance_selection` filter 103 * Update site health to match WP 5.3 treatment 104 101 105 = 4.6 = 102 106 * Toggle & style other items added to subsection
Note: See TracChangeset
for help on using the changeset viewer.