Plugin Directory

Changeset 3001445


Ignore:
Timestamp:
11/25/2023 03:59:52 AM (2 years ago)
Author:
gqevu6bsiz
Message:

1.22.1 2023-11-25

  • Updated: Compatibility for PHP 8.1 and WP 6.4.
  • Fixed: Hide search box on uploads.
  • Fixed: Print template file name when empty template.
  • Fixed: Change label on post edit.
  • Fixed: Print translation content when empty translation object.
Location:
my-wp/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • my-wp/trunk/classes/class.admin-toolbar.php

    r2547822 r3001445  
    157157
    158158    $found_current_default = false;
    159     $found_parent_default = false;
    160     $found_childs_default = false;
     159    $found_parent_default = array();
     160    $found_childs_default = array();
    161161
    162162    foreach( $default_toolbar as $menu_location => $menus ) {
  • my-wp/trunk/classes/class.frontend-toolbar.php

    r2547822 r3001445  
    5757
    5858    $found_current_default = false;
    59     $found_parent_default = false;
    60     $found_childs_default = false;
     59    $found_parent_default = array();
     60    $found_childs_default = array();
    6161
    6262    foreach( $default_toolbar as $menu_location => $menus ) {
  • my-wp/trunk/controller/modules/mywp.controller.module.admin.uploads.php

    r2890935 r3001445  
    148148
    149149    <style>
     150    body.wp-admin .wp-filter .media-toolbar-secondary { margin: 10px 0; }
     151    body.wp-admin .wp-filter .media-grid-view-switch { display: none; }
    150152    body.wp-admin .wp-filter .filter-items { margin: 10px 0; }
    151153    body.wp-admin .wp-filter .filter-items .view-switch { display: none; }
     
    206208
    207209    <style>
     210    body.wp-admin .search-form,
     211    body.wp-admin .media-toolbar-primary.search-form { display: none; }
    208212    body.wp-admin #media-search-input { display: none; }
    209213    </style>
  • my-wp/trunk/developer/modules/mywp.developer.module.dev.frontend.php

    r2547822 r3001445  
    234234    }
    235235
    236     $debug_lists['current_template'] = sprintf( '<strong>%s</strong> (%s)' , basename( $template ) , $current_template );
     236    $file_name = false;
     237
     238    if( ! empty( $template ) ) {
     239
     240      $file_name = basename( $template );
     241
     242    }
     243
     244    $debug_lists['current_template'] = sprintf( '<strong>%s</strong> (%s)' , $file_name , $current_template );
    237245
    238246    $debug_lists['find_locate_templates'] = array();
  • my-wp/trunk/mywp.php

    r2953020 r3001445  
    44Plugin URI: https://mywpcustomize.com/
    55Description: My WP is powerful admin and frontend customize and debug and extendable plugin.
    6 Version: 1.22.0
     6Version: 1.22.1
    77Author: gqevu6bsiz
    88Author URI: http://gqevu6bsiz.chicappa.jp/
    99Requires at least: 4.7
    10 Tested up to: 6.3
     10Tested up to: 6.4
    1111Text Domain: my-wp
    1212Domain Path: /languages/
     
    4343
    4444    define( 'MYWP_NAME' , 'My WP' );
    45     define( 'MYWP_VERSION' , '1.22.0' );
     45    define( 'MYWP_VERSION' , '1.22.1' );
    4646    define( 'MYWP_PLUGIN_FILE' , __FILE__ );
    4747    define( 'MYWP_PLUGIN_BASENAME' , plugin_basename( MYWP_PLUGIN_FILE ) );
  • my-wp/trunk/readme.txt

    r2953020 r3001445  
    33Tags: mywp, admin, backend, frontend, customize, dashboard, debug, white label, sidebar, admin sidebar, toolbar, admin toolbar, frontend toolbar, metabox, posts, edit-post, uploads, users, user-edit, profile, comments
    44Requires at least: 4.7
    5 Tested up to: 6.3
    6 Stable tag: 1.22.0
     5Tested up to: 6.4
     6Stable tag: 1.22.1
    77License: GPLv3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4646
    4747== Changelog ==
     48
     49= 1.22.1 2023-11-25 =
     50* Updated: Compatibility for PHP 8.1 and WP 6.4.
     51* Fixed: Hide search box on uploads.
     52* Fixed: Print template file name when empty template.
     53* Fixed: Change label on post edit.
     54* Fixed: Print translation content when empty translation object.
    4855
    4956= 1.22.0 2023-08-14 =
  • my-wp/trunk/setting/modules/mywp.setting.admin.post-edit.php

    r2890935 r3001445  
    252252
    253253          <tr>
    254             <th><?php echo _x( 'Add New' , 'post' ); ?></th>
     254            <th>
     255              <?php if( ! empty( $current_setting_post_type->labels->add_new ) ) : ?>
     256
     257                <?php echo esc_html( $current_setting_post_type->labels->add_new ); ?>
     258
     259              <?php else : ?>
     260
     261                <?php echo _x( 'Add New' , 'post' ); ?>
     262
     263              <?php endif; ?>
     264            </th>
    255265            <td>
    256266              <label>
  • my-wp/trunk/setting/modules/mywp.setting.admin.uploads.php

    r2890935 r3001445  
    295295        </tr>
    296296        <tr>
    297           <th><?php echo _x( 'Add New', 'user' ); ?></th>
     297          <th><?php echo esc_html__( 'Add New Media File' ); ?></th>
    298298          <td>
    299299            <label>
  • my-wp/trunk/setting/modules/mywp.setting.admin.users.php

    r2890935 r3001445  
    287287        </tr>
    288288        <tr>
    289           <th><?php echo _x( 'Add New', 'user' ); ?></th>
     289          <th><?php echo esc_html( __( 'Add New User' ) ); ?></th>
    290290          <td>
    291291            <label>
  • my-wp/trunk/setting/modules/mywp.setting.debug.translations.php

    r2733956 r3001445  
    7979            </th>
    8080            <td>
    81               <p><code><?php echo $translation_object->get_filename(); ?></code></p>
     81              <?php if( $translation_object instanceof MO ) : ?>
     82
     83                <p><code><?php echo esc_html( $translation_object->get_filename() ); ?></code></p>
     84
     85              <?php else : ?>
     86
     87                <p><?php echo esc_html( __( 'Unknown translation file.' , 'my-wp' ) ); ?></p>
     88
     89              <?php endif; ?>
     90
    8291              <textarea readonly="readonly" class="large-text" style="height: 400px;"><?php print_r( $translation_object->entries ); ?></textarea>
     92
    8393            </td>
    8494          </tr>
Note: See TracChangeset for help on using the changeset viewer.