Changeset 2688491
- Timestamp:
- 03/03/2022 08:14:34 PM (4 years ago)
- Location:
- pxl-tools
- Files:
-
- 14 edited
- 1 copied
-
tags/1.1.17 (copied) (copied from pxl-tools/trunk)
-
tags/1.1.17/README.md (modified) (1 diff)
-
tags/1.1.17/custom/emoji/disable-emoji.php (modified) (1 diff)
-
tags/1.1.17/custom/users/hide-personal-options-from-no-admin.php (modified) (1 diff)
-
tags/1.1.17/pxl-tools.php (modified) (1 diff)
-
tags/1.1.17/readme.txt (modified) (1 diff)
-
tags/1.1.17/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
tags/1.1.17/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/custom/emoji/disable-emoji.php (modified) (1 diff)
-
trunk/custom/users/hide-personal-options-from-no-admin.php (modified) (1 diff)
-
trunk/pxl-tools.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pxl-tools/tags/1.1.17/README.md
r2688481 r2688491 2 2 3 3 A Toolbelt for Wordpress development 4 5 ## changelog6 7 - 03/03/2022 - disable emojis8 9 - 03/03/2022 - hide personal info from no admin users profile form10 11 - 03/03/2022 - hide dropdown language in login12 4 13 5 ## Namespace -
pxl-tools/tags/1.1.17/custom/emoji/disable-emoji.php
r2688481 r2688491 2 2 3 3 //Disable emojis in WordPress 4 add_action( 'init', 'smartwp_disable_emojis' );5 4 6 function smartwp_disable_emojis() { 7 remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 8 remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); 9 remove_action( 'wp_print_styles', 'print_emoji_styles' ); 10 remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); 11 remove_action( 'admin_print_styles', 'print_emoji_styles' ); 12 remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); 13 remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 14 add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); 5 function pxl_disable_emojis() 6 { 7 remove_action('wp_head', 'print_emoji_detection_script', 7); 8 remove_action('admin_print_scripts', 'print_emoji_detection_script'); 9 remove_action('wp_print_styles', 'print_emoji_styles'); 10 remove_filter('the_content_feed', 'wp_staticize_emoji'); 11 remove_action('admin_print_styles', 'print_emoji_styles'); 12 remove_filter('comment_text_rss', 'wp_staticize_emoji'); 13 remove_filter('wp_mail', 'wp_staticize_emoji_for_email'); 14 add_filter('tiny_mce_plugins', 'pxl_disable_emojis_tinymce'); 15 15 } 16 16 17 function disable_emojis_tinymce( $plugins ) { 18 if ( is_array( $plugins ) ) { 19 return array_diff( $plugins, array( 'wpemoji' ) ); 17 function pxl_disable_emojis_tinymce($plugins) 18 { 19 if (is_array($plugins)) { 20 return array_diff($plugins, array('wpemoji')); 20 21 } else { 21 22 return array(); 22 23 } 23 24 } 25 26 add_action('init', 'pxl_disable_emojis'); -
pxl-tools/tags/1.1.17/custom/users/hide-personal-options-from-no-admin.php
r2688481 r2688491 3 3 // Check if is non-administrator user 4 4 // Case true, remove some profile fields by your css class name 5 if ( !current_user_can('administrator') ){6 add_action( 'personal_options', 'prefix_hide_personal_options');7 remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker');5 if (!current_user_can('administrator')) { 6 add_action('personal_options', 'pxl_hide_user_personal_options'); 7 remove_action('admin_color_scheme_picker', 'admin_color_scheme_picker'); 8 8 } 9 9 10 function prefix_hide_personal_options() { 11 ?> 12 <script type="text/javascript"> 13 jQuery( document ).ready(function( $ ){ 14 $( '#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap' ).remove(); 15 } ); 16 </script> 17 <?php 10 function pxl_hide_user_personal_options() 11 { 12 ?> 13 <script type="text/javascript"> 14 jQuery(document).ready(function($) { 15 $('#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap').remove(); 16 }); 17 </script> 18 <?php 18 19 } -
pxl-tools/tags/1.1.17/pxl-tools.php
r2688481 r2688491 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.1 612 * Version: 1.1.17 13 13 * 14 14 * -
pxl-tools/tags/1.1.17/readme.txt
r2688481 r2688491 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.1 69 Stable tag: 1.1.17 10 10 A Toolbelt for Wordpress development 11 11 12 12 == Description == 13 13 Helpers, Functions and Shortcuts to Wordpress development 14 15 16 = 1.1.17 = 17 * Disable emojis. 18 * Hide personal info from no admin users profile form 19 * Hide dropdown language in login. -
pxl-tools/tags/1.1.17/vendor/composer/InstalledVersions.php
r2688481 r2688491 31 31 array ( 32 32 ), 33 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',33 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 34 34 'name' => 'communicatti/pxl', 35 35 ), … … 43 43 array ( 44 44 ), 45 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',45 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 46 46 ), 47 47 'doctrine/inflector' => -
pxl-tools/tags/1.1.17/vendor/composer/installed.php
r2688481 r2688491 7 7 array ( 8 8 ), 9 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',9 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 10 10 'name' => 'communicatti/pxl', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',21 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 22 22 ), 23 23 'doctrine/inflector' => -
pxl-tools/trunk/README.md
r2688481 r2688491 2 2 3 3 A Toolbelt for Wordpress development 4 5 ## changelog6 7 - 03/03/2022 - disable emojis8 9 - 03/03/2022 - hide personal info from no admin users profile form10 11 - 03/03/2022 - hide dropdown language in login12 4 13 5 ## Namespace -
pxl-tools/trunk/custom/emoji/disable-emoji.php
r2688481 r2688491 2 2 3 3 //Disable emojis in WordPress 4 add_action( 'init', 'smartwp_disable_emojis' );5 4 6 function smartwp_disable_emojis() { 7 remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); 8 remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); 9 remove_action( 'wp_print_styles', 'print_emoji_styles' ); 10 remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); 11 remove_action( 'admin_print_styles', 'print_emoji_styles' ); 12 remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); 13 remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 14 add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); 5 function pxl_disable_emojis() 6 { 7 remove_action('wp_head', 'print_emoji_detection_script', 7); 8 remove_action('admin_print_scripts', 'print_emoji_detection_script'); 9 remove_action('wp_print_styles', 'print_emoji_styles'); 10 remove_filter('the_content_feed', 'wp_staticize_emoji'); 11 remove_action('admin_print_styles', 'print_emoji_styles'); 12 remove_filter('comment_text_rss', 'wp_staticize_emoji'); 13 remove_filter('wp_mail', 'wp_staticize_emoji_for_email'); 14 add_filter('tiny_mce_plugins', 'pxl_disable_emojis_tinymce'); 15 15 } 16 16 17 function disable_emojis_tinymce( $plugins ) { 18 if ( is_array( $plugins ) ) { 19 return array_diff( $plugins, array( 'wpemoji' ) ); 17 function pxl_disable_emojis_tinymce($plugins) 18 { 19 if (is_array($plugins)) { 20 return array_diff($plugins, array('wpemoji')); 20 21 } else { 21 22 return array(); 22 23 } 23 24 } 25 26 add_action('init', 'pxl_disable_emojis'); -
pxl-tools/trunk/custom/users/hide-personal-options-from-no-admin.php
r2688481 r2688491 3 3 // Check if is non-administrator user 4 4 // Case true, remove some profile fields by your css class name 5 if ( !current_user_can('administrator') ){6 add_action( 'personal_options', 'prefix_hide_personal_options');7 remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker');5 if (!current_user_can('administrator')) { 6 add_action('personal_options', 'pxl_hide_user_personal_options'); 7 remove_action('admin_color_scheme_picker', 'admin_color_scheme_picker'); 8 8 } 9 9 10 function prefix_hide_personal_options() { 11 ?> 12 <script type="text/javascript"> 13 jQuery( document ).ready(function( $ ){ 14 $( '#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap' ).remove(); 15 } ); 16 </script> 17 <?php 10 function pxl_hide_user_personal_options() 11 { 12 ?> 13 <script type="text/javascript"> 14 jQuery(document).ready(function($) { 15 $('#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap').remove(); 16 }); 17 </script> 18 <?php 18 19 } -
pxl-tools/trunk/pxl-tools.php
r2688481 r2688491 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.1 612 * Version: 1.1.17 13 13 * 14 14 * -
pxl-tools/trunk/readme.txt
r2688481 r2688491 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.1 69 Stable tag: 1.1.17 10 10 A Toolbelt for Wordpress development 11 11 12 12 == Description == 13 13 Helpers, Functions and Shortcuts to Wordpress development 14 15 16 = 1.1.17 = 17 * Disable emojis. 18 * Hide personal info from no admin users profile form 19 * Hide dropdown language in login. -
pxl-tools/trunk/vendor/composer/InstalledVersions.php
r2688481 r2688491 31 31 array ( 32 32 ), 33 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',33 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 34 34 'name' => 'communicatti/pxl', 35 35 ), … … 43 43 array ( 44 44 ), 45 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',45 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 46 46 ), 47 47 'doctrine/inflector' => -
pxl-tools/trunk/vendor/composer/installed.php
r2688481 r2688491 7 7 array ( 8 8 ), 9 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',9 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 10 10 'name' => 'communicatti/pxl', 11 11 ), … … 19 19 array ( 20 20 ), 21 'reference' => ' cc8ee5530c403440e4f19a9f32750f0a317160dc',21 'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7', 22 22 ), 23 23 'doctrine/inflector' =>
Note: See TracChangeset
for help on using the changeset viewer.