Changeset 1455063
- Timestamp:
- 07/15/2016 05:51:41 AM (10 years ago)
- Location:
- advanced-settings
- Files:
-
- 3 deleted
- 8 edited
- 1 copied
-
tags/2.2.2 (copied) (copied from advanced-settings/trunk)
-
tags/2.2.2/admin-code.php (modified) (1 diff)
-
tags/2.2.2/admin-system.php (modified) (1 diff)
-
tags/2.2.2/index.php (modified) (2 diffs)
-
tags/2.2.2/readme.txt (modified) (3 diffs)
-
tags/2.2.2/screenshot-1.png (deleted)
-
tags/2.2.2/screenshot-2.png (deleted)
-
tags/2.2.2/screenshot-3.png (deleted)
-
trunk/admin-code.php (modified) (1 diff)
-
trunk/admin-system.php (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-settings/tags/2.2.2/admin-code.php
r975355 r1455063 114 114 115 115 <tr valign="top"> 116 <th scope="row"><?php _e('Comments'); ?></th> 117 <td> 118 <label for="remove_pingbacks_trackbacks_count"> 119 <input name="remove_pingbacks_trackbacks_count" type="checkbox" id="remove_pingbacks_trackbacks_count" value="1" <?php advset_check_if('remove_pingbacks_trackbacks_count') ?> /> 120 <?php _e('Remove Trackbacks and Pingbacks from Comment Count') ?> 121 </label> 122 123 </td> 124 </tr> 125 126 <tr valign="top"> 116 127 <th scope="row"><?php _e('Author Bio'); ?></th> 117 128 <td> -
advanced-settings/tags/2.2.2/admin-system.php
r975355 r1455063 31 31 <th scope="row"><?php _e('Dashboard'); ?></th> 32 32 <td> 33 <label for="hide_update_message"> 34 <input name="hide_update_message" type="checkbox" id="hide_update_message" value="1" <?php advset_check_if('hide_update_message') ?> /> 35 <?php _e('Hide the WordPress update message in the Dashboard') ?> 36 </label> 33 <p> 34 <label for="hide_update_message"> 35 <input name="hide_update_message" type="checkbox" id="hide_update_message" value="1" <?php advset_check_if('hide_update_message') ?> /> 36 <?php _e('Hide the WordPress update message in the Dashboard') ?> 37 </label> 38 </p> 39 40 <p> 41 <label for="dashboard_logo"> 42 <input name="dashboard_logo" type="text" size="50" placeholder="<?php _e('http://araujo.cc/dashboard-logo-example.png') ?>" id="dashboard_logo" value="<?php echo advset_option('dashboard_logo') ?>" /> 43 <i style="color:#999">(<?php _e('paste your custom dashboard logo here') ?>)</i> 44 </label> 45 </p> 46 37 47 38 48 </td> -
advanced-settings/tags/2.2.2/index.php
r1234818 r1455063 6 6 Author: Arthur Araújo 7 7 Author URI: http://araujo.cc 8 Version: 2.2. 18 Version: 2.2.2 9 9 */ 10 10 … … 128 128 if ( advset_option('hide_update_message') ) { 129 129 add_action( 'admin_menu', create_function( null, "remove_action( 'admin_notices', 'update_nag', 3 );" ), 2 ); 130 } 131 132 # Add a Custom Dashboard Logo 133 # from https://www.codementor.io/wordpress/tutorial/wordpress-functions-php-cheatsheet 134 if ( advset_option('dashboard_logo') ) { 135 add_action('wp_before_admin_bar_render', '__advsettings_dashboard_logo'); 136 function __advsettings_dashboard_logo() { 137 if(is_admin()) 138 echo ' 139 <style> 140 #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { 141 background-image: url('.advset_option('dashboard_logo').') !important; 142 background-position: 0 0; 143 color:rgba(0, 0, 0, 0); 144 } 145 #wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon { 146 background-position: 0 0; 147 } 148 </style> 149 '; 150 } 151 } 152 153 # Remove Trackbacks and Pingbacks from Comment Count 154 # from https://www.codementor.io/wordpress/tutorial/wordpress-functions-php-cheatsheet 155 if ( advset_option('remove_pingbacks_trackbacks_count') ) { 156 add_filter('get_comment_number', '__advsettings_comment_count', 0); 157 function __advsettings_comment_count( $count ) { 158 if ( ! is_admin() ) { 159 global $id; 160 $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id)); 161 return count($comments_by_type['comment']); 162 } 163 else { 164 return $count; 165 } 166 } 130 167 } 131 168 -
advanced-settings/tags/2.2.2/readme.txt
r1234813 r1455063 6 6 Requires at least: 3.0 7 7 Tested up to: 4.3 8 Stable tag: 2.2. 18 Stable tag: 2.2.2 9 9 License: GPLv2 or later 10 10 Get advanced settings and change all you imagine that are not provided by WordPress. … … 48 48 * Display total number of executed SQL queries 49 49 * Remove any filter you want 50 * Remove Trackbacks and Pingbacks from Comment Count 51 * Add a Custom Dashboard Logo 50 52 * and more to come ... 53 54 Visit: http://araujo.cc/ 51 55 52 56 Contribute on github: [github.com/webarthur/advanced-settings](https://github.com/webarthur/advanced-settings) … … 67 71 68 72 == Changelog == 73 74 = 2.2.2 = 75 * Remove Trackbacks and Pingbacks from Comment Count 76 * Add a Custom Dashboard Logo 69 77 70 78 = 2.2.1 = -
advanced-settings/trunk/admin-code.php
r975355 r1455063 114 114 115 115 <tr valign="top"> 116 <th scope="row"><?php _e('Comments'); ?></th> 117 <td> 118 <label for="remove_pingbacks_trackbacks_count"> 119 <input name="remove_pingbacks_trackbacks_count" type="checkbox" id="remove_pingbacks_trackbacks_count" value="1" <?php advset_check_if('remove_pingbacks_trackbacks_count') ?> /> 120 <?php _e('Remove Trackbacks and Pingbacks from Comment Count') ?> 121 </label> 122 123 </td> 124 </tr> 125 126 <tr valign="top"> 116 127 <th scope="row"><?php _e('Author Bio'); ?></th> 117 128 <td> -
advanced-settings/trunk/admin-system.php
r975355 r1455063 31 31 <th scope="row"><?php _e('Dashboard'); ?></th> 32 32 <td> 33 <label for="hide_update_message"> 34 <input name="hide_update_message" type="checkbox" id="hide_update_message" value="1" <?php advset_check_if('hide_update_message') ?> /> 35 <?php _e('Hide the WordPress update message in the Dashboard') ?> 36 </label> 33 <p> 34 <label for="hide_update_message"> 35 <input name="hide_update_message" type="checkbox" id="hide_update_message" value="1" <?php advset_check_if('hide_update_message') ?> /> 36 <?php _e('Hide the WordPress update message in the Dashboard') ?> 37 </label> 38 </p> 39 40 <p> 41 <label for="dashboard_logo"> 42 <input name="dashboard_logo" type="text" size="50" placeholder="<?php _e('http://araujo.cc/dashboard-logo-example.png') ?>" id="dashboard_logo" value="<?php echo advset_option('dashboard_logo') ?>" /> 43 <i style="color:#999">(<?php _e('paste your custom dashboard logo here') ?>)</i> 44 </label> 45 </p> 46 37 47 38 48 </td> -
advanced-settings/trunk/index.php
r1234818 r1455063 6 6 Author: Arthur Araújo 7 7 Author URI: http://araujo.cc 8 Version: 2.2. 18 Version: 2.2.2 9 9 */ 10 10 … … 128 128 if ( advset_option('hide_update_message') ) { 129 129 add_action( 'admin_menu', create_function( null, "remove_action( 'admin_notices', 'update_nag', 3 );" ), 2 ); 130 } 131 132 # Add a Custom Dashboard Logo 133 # from https://www.codementor.io/wordpress/tutorial/wordpress-functions-php-cheatsheet 134 if ( advset_option('dashboard_logo') ) { 135 add_action('wp_before_admin_bar_render', '__advsettings_dashboard_logo'); 136 function __advsettings_dashboard_logo() { 137 if(is_admin()) 138 echo ' 139 <style> 140 #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before { 141 background-image: url('.advset_option('dashboard_logo').') !important; 142 background-position: 0 0; 143 color:rgba(0, 0, 0, 0); 144 } 145 #wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon { 146 background-position: 0 0; 147 } 148 </style> 149 '; 150 } 151 } 152 153 # Remove Trackbacks and Pingbacks from Comment Count 154 # from https://www.codementor.io/wordpress/tutorial/wordpress-functions-php-cheatsheet 155 if ( advset_option('remove_pingbacks_trackbacks_count') ) { 156 add_filter('get_comment_number', '__advsettings_comment_count', 0); 157 function __advsettings_comment_count( $count ) { 158 if ( ! is_admin() ) { 159 global $id; 160 $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id)); 161 return count($comments_by_type['comment']); 162 } 163 else { 164 return $count; 165 } 166 } 130 167 } 131 168 -
advanced-settings/trunk/readme.txt
r1234813 r1455063 6 6 Requires at least: 3.0 7 7 Tested up to: 4.3 8 Stable tag: 2.2. 18 Stable tag: 2.2.2 9 9 License: GPLv2 or later 10 10 Get advanced settings and change all you imagine that are not provided by WordPress. … … 48 48 * Display total number of executed SQL queries 49 49 * Remove any filter you want 50 * Remove Trackbacks and Pingbacks from Comment Count 51 * Add a Custom Dashboard Logo 50 52 * and more to come ... 53 54 Visit: http://araujo.cc/ 51 55 52 56 Contribute on github: [github.com/webarthur/advanced-settings](https://github.com/webarthur/advanced-settings)
Note: See TracChangeset
for help on using the changeset viewer.