Changeset 914060
- Timestamp:
- 05/14/2014 06:17:15 PM (12 years ago)
- Location:
- launch-check
- Files:
-
- 5 added
- 2 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/LICENSE (added)
-
tags/1.1.0/README.md (added)
-
tags/1.1.0/mdg-launch-check.php (added)
-
tags/1.1.0/readme.txt (added)
-
trunk/mdg-launch-check.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
launch-check/trunk/mdg-launch-check.php
r856901 r914060 2 2 /* 3 3 Plugin Name: Launch Check 4 Version: 1. 0.04 Version: 1.1.0 5 5 Plugin URI: http://matchboxdesigngroup.com/plugins/ 6 Description: Ensure that you have made your site visible to search engines, changed the default description and added Google Analytics before launch.6 Description: Ensure that you have made your site visible to search engines, changed the default description and added Google's Universal Analytics before launch. 7 7 Author: Matchbox Design Group 8 8 Author URI: http://matchboxdesigngroup.com/ … … 60 60 function mdg_check_analytics_plugin() { 61 61 $default_desc = get_option( 'blogdescription'); 62 63 if ( is_plugin_active( 'google-analytics-for-wordpress/googleanalytics.php' ) ) { 62 if ( is_plugin_active( 'universal-analytics/universalanalytics.php' ) ) { 64 63 return; 65 64 } 66 65 67 66 echo "<div id='message' class='error'>"; 68 echo "<p><strong>" . __( "Easy killer: You're not tracking your site yet.", 'mdg-launch-check' ) . "</strong> " . sprintf( __( "How are you going to track those awesome visitors? Go %s go install the Google Analytics plugin%s now.", 'mdg-launch-check' ), "<a href='" . admin_url( 'update.php?action=install-plugin&plugin=google-analytics-for-wordpress&_wpnonce=336c473101' ) . "'>", "</a>" ) . "</p></div>";67 echo "<p><strong>" . __( "Easy killer: You're not tracking your site yet.", 'mdg-launch-check' ) . "</strong> " . sprintf( __( "How are you going to track those awesome visitors? Go %sinstall the Universal Analytics plugin%s now.", 'mdg-launch-check' ), "<a href='" . admin_url( 'plugin-install.php?tab=plugin-information&plugin=universal-analytics&TB_iframe=true' ) . "'class='thickbox'>", "</a>" ) . "</p></div>"; 69 68 } 70 71 69 72 70 … … 74 72 75 73 function mdg_admin_check() { 76 mdg_check_blog_description(); 77 mdg_is_blog_public(); 78 mdg_check_analytics_plugin(); 79 74 // To disable screens from displaying the alerts add the current screens base to the disabled screens 75 $current_screen = get_current_screen(); 76 $disabled_screens = array( 77 'plugin-install', // Hide the message on the Universal Analytics popup 78 'update', // Hide the message when updating plugins 79 ); 80 if ( in_array( $current_screen->base, $disabled_screens ) ) { 81 return; 82 } // if() 83 84 mdg_check_blog_description(); 85 mdg_is_blog_public(); 86 mdg_check_analytics_plugin(); 87 80 88 } 81 89 add_action( 'admin_head', 'mdg_admin_check' ); -
launch-check/trunk/readme.txt
r856939 r914060 3 3 Tags: pre-launch checklist, pre-launch, checklist, Yoast Analytics, SEO, Google Analytics 4 4 Requires at least: 3.5 5 Tested up to: 3. 8.16 Stable tag: 1. 0.05 Tested up to: 3.9.1 6 Stable tag: 1.1.0 7 7 License: GPLv3 or later 8 8 License URI: http://www.gnu.org/licenses/ … … 29 29 30 30 == Changelog == 31 = 1.2 = 32 * Updated plugin to use new [Universal Analytics](http://wordpress.org/plugins/universal-analytics/) plugin. A simple way to add Google Analytics to your site 33 * Updated alerts so that they don't show on plugin details and update pages 31 34 32 35 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.