Plugin Directory

Changeset 1293111


Ignore:
Timestamp:
11/24/2015 12:40:28 AM (10 years ago)
Author:
imforza
Message:

Update to 1.3.1

  • WP Engine User Improvements
Location:
imforza-news/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • imforza-news/trunk/admin/users.php

    r1290277 r1293111  
    4242 * @return void
    4343 */
    44 function imforza_noindex_author() {
     44function imforza_noindex_imforza_author() {
    4545    if (is_author( 'imforza-dev' )) {
    4646
     
    4949}
    5050
    51 add_action('wp_head', 'imforza_noindex_author');
     51add_action('wp_head', 'imforza_noindex_imforza_author');
    5252
    5353
  • imforza-news/trunk/imforza.php

    r1291209 r1293111  
    22/*
    33Plugin Name: imFORZA
    4 Version: 1.3.0
     4Version: 1.3.1
    55Plugin URI: //www.imforza.com#utm_source=wpadmin&utm_medium=plugin&utm_campaign=imforzanewsplugin
    66Description: 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.
     
    1515
    1616// Define Plugin Version
    17 define( 'IMFORZA_PLUGIN_VERSION', '1.3.0' );
     17define( 'IMFORZA_PLUGIN_VERSION', '1.3.1' );
    1818
    1919
  • imforza-news/trunk/modules/wpengine.php

    r1266773 r1293111  
    1313    add_action( 'admin_bar_menu', 'imforza_remove_admin_bar_links', 999 );
    1414    add_action( 'admin_head', 'imforza_hide_update_notice_to_all_but_admin_users', 1 );
     15
    1516}
     17
     18/*
     19* Create WP Engine user if it doesn't exist
     20*/
     21function 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}
     57add_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 */
     66function imforza_noindex_wpengine_author() {
     67    if (is_author( 'wpengine' )) {
     68
     69        echo '<meta name="robots" content="noindex">';
     70    }
     71}
     72
     73add_action('wp_head', 'imforza_noindex_wpengine_author');
     74
     75
     76
     77
    1678
    1779/**
     
    104166
    105167
    106 /*
    107 Not Yet Ready to Implement auto updates for everything
    108168
    109 // Auto Update Plugins
    110 add_filter( 'auto_update_plugin', '__return_true' );
    111 
    112 // Auto Update Themes
    113 add_filter( 'auto_update_theme', '__return_true' );
    114 
    115 // Disable update emails
    116 add_filter( 'auto_core_update_send_email', '__return_false' );
    117 
    118 */
    119169
    120170}
  • imforza-news/trunk/readme.txt

    r1290277 r1293111  
    2121
    2222== 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
    2327
    2428= 1.3.0 =
Note: See TracChangeset for help on using the changeset viewer.