Plugin Directory

Changeset 2688491


Ignore:
Timestamp:
03/03/2022 08:14:34 PM (4 years ago)
Author:
communicatti
Message:

version 1.1.17

Location:
pxl-tools
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pxl-tools/tags/1.1.17/README.md

    r2688481 r2688491  
    22
    33A Toolbelt for Wordpress development
    4 
    5 ## changelog
    6 
    7 - 03/03/2022 - disable emojis
    8 
    9 - 03/03/2022 - hide personal info from no admin users profile form
    10 
    11 - 03/03/2022 - hide dropdown language in login
    124
    135## Namespace
  • pxl-tools/tags/1.1.17/custom/emoji/disable-emoji.php

    r2688481 r2688491  
    22
    33//Disable emojis in WordPress
    4 add_action( 'init', 'smartwp_disable_emojis' );
    54
    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' );
     5function 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');
    1515}
    1616
    17 function disable_emojis_tinymce( $plugins ) {
    18     if ( is_array( $plugins ) ) {
    19         return array_diff( $plugins, array( 'wpemoji' ) );
     17function pxl_disable_emojis_tinymce($plugins)
     18{
     19    if (is_array($plugins)) {
     20        return array_diff($plugins, array('wpemoji'));
    2021    } else {
    2122        return array();
    2223    }
    2324}
     25
     26add_action('init', 'pxl_disable_emojis');
  • pxl-tools/tags/1.1.17/custom/users/hide-personal-options-from-no-admin.php

    r2688481 r2688491  
    33// Check if is non-administrator user
    44// 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' );
     5if (!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');
    88}
    99
    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
     10function 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
    1819}
  • pxl-tools/tags/1.1.17/pxl-tools.php

    r2688481 r2688491  
    1010 * License:     GPL-2.0
    1111 * License URI: https://opensource.org/licenses/GPL-2.0
    12  * Version:     1.1.16
     12 * Version:     1.1.17
    1313 *
    1414 *
  • pxl-tools/tags/1.1.17/readme.txt

    r2688481 r2688491  
    77License: https://opensource.org/licenses/GPL-2.0
    88License URI: https://opensource.org/licenses/GPL-2.0
    9 Stable tag: 1.1.16
     9Stable tag: 1.1.17
    1010A Toolbelt for Wordpress development
    1111
    1212== Description ==
    1313Helpers, 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  
    3131    array (
    3232    ),
    33     'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     33    'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    3434    'name' => 'communicatti/pxl',
    3535  ),
     
    4343      array (
    4444      ),
    45       'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     45      'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    4646    ),
    4747    'doctrine/inflector' =>
  • pxl-tools/tags/1.1.17/vendor/composer/installed.php

    r2688481 r2688491  
    77    array (
    88    ),
    9     'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     9    'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    1010    'name' => 'communicatti/pxl',
    1111  ),
     
    1919      array (
    2020      ),
    21       'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     21      'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    2222    ),
    2323    'doctrine/inflector' =>
  • pxl-tools/trunk/README.md

    r2688481 r2688491  
    22
    33A Toolbelt for Wordpress development
    4 
    5 ## changelog
    6 
    7 - 03/03/2022 - disable emojis
    8 
    9 - 03/03/2022 - hide personal info from no admin users profile form
    10 
    11 - 03/03/2022 - hide dropdown language in login
    124
    135## Namespace
  • pxl-tools/trunk/custom/emoji/disable-emoji.php

    r2688481 r2688491  
    22
    33//Disable emojis in WordPress
    4 add_action( 'init', 'smartwp_disable_emojis' );
    54
    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' );
     5function 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');
    1515}
    1616
    17 function disable_emojis_tinymce( $plugins ) {
    18     if ( is_array( $plugins ) ) {
    19         return array_diff( $plugins, array( 'wpemoji' ) );
     17function pxl_disable_emojis_tinymce($plugins)
     18{
     19    if (is_array($plugins)) {
     20        return array_diff($plugins, array('wpemoji'));
    2021    } else {
    2122        return array();
    2223    }
    2324}
     25
     26add_action('init', 'pxl_disable_emojis');
  • pxl-tools/trunk/custom/users/hide-personal-options-from-no-admin.php

    r2688481 r2688491  
    33// Check if is non-administrator user
    44// 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' );
     5if (!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');
    88}
    99
    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
     10function 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
    1819}
  • pxl-tools/trunk/pxl-tools.php

    r2688481 r2688491  
    1010 * License:     GPL-2.0
    1111 * License URI: https://opensource.org/licenses/GPL-2.0
    12  * Version:     1.1.16
     12 * Version:     1.1.17
    1313 *
    1414 *
  • pxl-tools/trunk/readme.txt

    r2688481 r2688491  
    77License: https://opensource.org/licenses/GPL-2.0
    88License URI: https://opensource.org/licenses/GPL-2.0
    9 Stable tag: 1.1.16
     9Stable tag: 1.1.17
    1010A Toolbelt for Wordpress development
    1111
    1212== Description ==
    1313Helpers, 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  
    3131    array (
    3232    ),
    33     'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     33    'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    3434    'name' => 'communicatti/pxl',
    3535  ),
     
    4343      array (
    4444      ),
    45       'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     45      'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    4646    ),
    4747    'doctrine/inflector' =>
  • pxl-tools/trunk/vendor/composer/installed.php

    r2688481 r2688491  
    77    array (
    88    ),
    9     'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     9    'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    1010    'name' => 'communicatti/pxl',
    1111  ),
     
    1919      array (
    2020      ),
    21       'reference' => 'cc8ee5530c403440e4f19a9f32750f0a317160dc',
     21      'reference' => 'f41e7791f41453780cad2d2b4f05ada328a8f0d7',
    2222    ),
    2323    'doctrine/inflector' =>
Note: See TracChangeset for help on using the changeset viewer.