Changeset 1293612
- Timestamp:
- 11/24/2015 04:54:37 PM (10 years ago)
- Location:
- imforza-news/trunk
- Files:
-
- 5 edited
-
admin/users.php (modified) (5 diffs)
-
imforza.php (modified) (3 diffs)
-
modules/wp101.php (modified) (1 diff)
-
modules/wpengine.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imforza-news/trunk/admin/users.php
r1293128 r1293612 23 23 update_user_meta($imforza_user_id, 'facebook', 'https://www.facebook.com/imforza'); 24 24 wp_update_user( array( 'ID' => $imforza_user_id, 'user_url' => '//www.imforza.com', 'display_name' => 'imFORZA Team' )); 25 26 // imFORZA 25 27 update_user_meta($imforza_user_id, 'imforza_tracking', '1'); 28 26 29 // Yoast SEO 27 30 update_user_meta($imforza_user_id, 'wpseo_excludeauthorsitemap', 'on'); … … 152 155 153 156 154 155 156 157 158 157 /* Prompt imforza-dev if assigned to any posts */ 159 158 function imforza_user_has_posts() { … … 165 164 $result = new WP_Query(array( 166 165 'author'=>$imforza_user_id, 167 'post_type'=> 'any',166 'post_type'=> array('post', 'page', 'listing', 'testimonial'), 168 167 'post_status'=>'publish', 169 168 'posts_per_page'=>1, … … 178 177 ?> 179 178 <div class="error"> 180 <p><?php _e( 'Currently some posts, pages, or CPTs are assigned to the <strong>imforza-dev</strong> user. Please assign them to the appropriate author. This message will remain until all of them have been re-assigned.', 'imforza-news' ); ?></p>179 <p><?php _e( 'Currently some posts, pages, or CPTs are assigned to the <strong>imforza-dev</strong> user. Please assign them to the appropriate author.', 'imforza-news' ); ?></p> 181 180 </div> 182 181 <?php … … 189 188 190 189 add_action('admin_notices', 'imforza_user_has_posts'); 190 191 192 -
imforza-news/trunk/imforza.php
r1293128 r1293612 2 2 /* 3 3 Plugin Name: imFORZA 4 Version: 1.3. 24 Version: 1.3.3 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.2' ); 17 define( 'IMFORZA_PLUGIN_VERSION', '1.3.3' ); 18 19 18 20 19 21 … … 48 50 */ 49 51 function imforza_activation() { 52 53 update_option( 'imforza', array('version' => '1.3.3')); 54 50 55 flush_rewrite_rules(); 51 56 } -
imforza-news/trunk/modules/wp101.php
r1290277 r1293612 57 57 58 58 59 /* Locks down wp101 settings to imforza-dev user */ 60 if ( username_exists( 'imforza-dev' ) ) { 59 61 62 $imforza_user_id = username_exists( 'imforza-dev' ); 60 63 61 // TODO 62 // Lock down the seetings page to only the imforza-dev user, wp101 plugin has an option to set this already. "wp101_admin_restriction" 64 update_option('wp101_admin_restriction', $imforza_user_id); 65 66 } 67 63 68 64 69 } -
imforza-news/trunk/modules/wpengine.php
r1293111 r1293612 74 74 75 75 76 77 78 79 76 /** 80 77 * Remove the WP Engine menu page … … 127 124 128 125 126 /* Prompt imforza if wpengine user is assigned to any posts */ 127 function imforza_wpengine_user_has_posts() { 128 129 if ( username_exists( 'wpengine' ) ) { 130 131 $wpengine_user_id = username_exists( 'wpengine' ); 132 133 $result = new WP_Query(array( 134 'author'=>$wpengine_user_id, 135 'post_type'=> array('post', 'page', 'listing', 'testimonial'), 136 'post_status'=>'publish', 137 'posts_per_page'=>1, 138 )); 139 140 if( count($result->posts) !=0 ) { 141 142 $current_user = wp_get_current_user(); 143 144 if ( $current_user->user_login == 'imforza-dev') { 145 146 ?> 147 <div class="error"> 148 <p><?php _e( 'Currently some posts, pages, or CPTs are assigned to the <strong>wpengine</strong> user. Please assign them to the appropriate author.', 'imforza-news' ); ?></p> 149 </div> 150 <?php 151 } 152 } 153 154 } 155 156 } 157 158 add_action('admin_notices', 'imforza_wpengine_user_has_posts'); 159 160 161 162 /* WP ENGINE SETTINGS */ 129 163 function imforza_wpengine_settings() { 130 164 … … 165 199 } 166 200 167 168 169 170 201 } 171 202 add_action('init', 'imforza_wpengine_settings' ); -
imforza-news/trunk/readme.txt
r1293128 r1293612 5 5 Requires at least: 4.0 6 6 Tested up to: 4.4 7 Stable tag: 1.3. 27 Stable tag: 1.3.3 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 21 21 22 22 == Changelog == 23 24 = 1.3.3 = 25 * Check for posts by `wpengine` user 26 * Improved support for wp101 23 27 24 28 = 1.3.2 =
Note: See TracChangeset
for help on using the changeset viewer.