Plugin Directory

Changeset 3187923


Ignore:
Timestamp:
11/13/2024 05:24:10 PM (17 months ago)
Author:
olatechpro
Message:

Releasing v2.15.0

Location:
capability-manager-enhanced
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • capability-manager-enhanced/tags/2.15.0/capsman-enhanced.php

    r3173749 r3187923  
    44 * Plugin URI: https://publishpress.com/capability-manager/
    55 * Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
    6  * Version: 2.14.0
     6 * Version: 2.15.0
    77 * Author: PublishPress
    88 * Author URI: https://publishpress.com/
     
    7070
    7171    if (!defined('CAPSMAN_VERSION')) {
    72         define('CAPSMAN_VERSION', '2.14.0');
     72        define('CAPSMAN_VERSION', '2.15.0');
    7373        define('CAPSMAN_ENH_VERSION', CAPSMAN_VERSION);
    7474        define('PUBLISHPRESS_CAPS_VERSION', CAPSMAN_VERSION);
  • capability-manager-enhanced/tags/2.15.0/common/css/admin.css

    r3173749 r3187923  
    521521.pp-capability-menus-wrapper:not(.nav-menus) .pp-capability-menus .menu-item-link:focus {
    522522  cursor: pointer;
     523  border-color: transparent;
    523524}
    524525
     
    16371638
    16381639
     1640
     1641.ppc-admin-menu-rename-form .cancel-menu-title {
     1642  padding: 0;
     1643  width: 30px;
     1644  height: 30px;
     1645  min-height: 30px;
     1646  display: inline-flex;
     1647  align-items: center;
     1648  justify-content: center;
     1649}
     1650
     1651.ppc-admin-menu-rename-form .cancel-menu-title .dashicons {
     1652  font-size: 16px;
     1653  width: 16px;
     1654  height: 16px;
     1655  color: #a00;
     1656}
     1657
     1658.ppc-admin-menu-rename-form .cancel-menu-title:hover .dashicons {
     1659  color: #dc3232;
     1660}
     1661
     1662.ppc-admin-menu-rename-form {
     1663  display: inline-flex;
     1664  align-items: center;
     1665  gap: 5px;
     1666}
     1667
     1668.ppc-admin-menu-rename-form .menu-title-input {
     1669  width: 200px;
     1670  height: 30px;
     1671  padding: 0 8px;
     1672  margin: 0;
     1673  line-height: 28px;
     1674  border-radius: 4px;
     1675}
     1676
     1677.ppc-admin-menu-rename-form .save-menu-title,
     1678.ppc-admin-menu-rename-form .cancel-menu-title {
     1679  padding: 0;
     1680  width: 30px;
     1681  height: 30px;
     1682  min-height: 30px;
     1683  display: inline-flex;
     1684  align-items: center;
     1685  justify-content: center;
     1686  margin: 0;
     1687  border-radius: 4px;
     1688}
     1689
     1690.ppc-admin-menu-rename-form .save-menu-title .dashicons,
     1691.ppc-admin-menu-rename-form .cancel-menu-title .dashicons {
     1692  font-size: 16px;
     1693  width: 16px;
     1694  height: 16px;
     1695}
     1696
     1697.ppc-admin-menu-rename-form .save-menu-title .dashicons {
     1698  color: #2271b1;
     1699}
     1700
     1701.ppc-admin-menu-rename-form .cancel-menu-title .dashicons {
     1702  color: #a00;
     1703}
     1704
     1705.ppc-admin-menu-rename-form .save-menu-title:hover .dashicons {
     1706  color: #0a4b78;
     1707}
     1708
     1709.ppc-admin-menu-rename-form .cancel-menu-title:hover .dashicons {
     1710  color: #dc3232;
     1711}
     1712
     1713
     1714
    16391715.ppc-floating-status {
    16401716    position: fixed;
    16411717    bottom: 20px;
    1642     left: 184px;
    1643     background: #2c3338;
    1644     padding: 10px 15px;
    1645     border-radius: 4px;
     1718    right: 50px;
    16461719    margin-bottom: 10px;
    16471720    transition: all 0.5s ease-out;
    1648     box-shadow: 0 0 15px #999;
    1649     z-index: 999;
     1721    z-index: 9999999999999;
     1722    -webkit-backdrop-filter:blur(16px) saturate(180%);
     1723    backdrop-filter:blur(16px) saturate(180%);
     1724    background:#000000d9;
     1725    border-radius:2px;
     1726    box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;
     1727    box-sizing:border-box;
     1728    color:#fff;
     1729    font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
     1730    font-size:13px;
     1731    padding:12px 20px;
    16501732}
    16511733@media (max-width: 782px) {
     
    16531735        left: 60px;
    16541736    }
    1655 }
    1656 .ppc-floating-status.ppc-floating-status--success {
    1657     color: #00d084;
    1658 }
    1659 .ppc-floating-status.ppc-floating-status--error {
    1660     color: #d63638;
    16611737}
    16621738
  • capability-manager-enhanced/tags/2.15.0/includes/admin.php

    r3173749 r3187923  
    151151            }
    152152
    153             if ( MULTISITE ) {
     153            if ( defined( 'MULTISITE' ) && MULTISITE ) {
    154154                global $wp_roles;
    155155                global $wpdb;
  • capability-manager-enhanced/tags/2.15.0/includes/handler.php

    r3173749 r3187923  
    5454        // Save role changes. Already saved at start with self::saveRoleCapabilities()
    5555        } elseif ( ! empty($_POST['SaveRole']) && !empty($_POST['current'])) {
    56             if ( MULTISITE ) {
     56            if ( defined( 'MULTISITE' ) && MULTISITE ) {
    5757                ( method_exists( $wp_roles, 'for_site' ) ) ? $wp_roles->for_site() : $wp_roles->reinit();
    5858            }
     
    8282        // Create New Capability and adds it to current role.
    8383        } elseif (!empty($_POST['AddCap']) && !empty($_POST['current']) && !empty($_POST['capability-name'])) {
    84             if ( MULTISITE ) {
     84            if ( defined( 'MULTISITE' ) && MULTISITE ) {
    8585                ( method_exists( $wp_roles, 'for_site' ) ) ? $wp_roles->for_site() : $wp_roles->reinit();
    8686            }
  • capability-manager-enhanced/tags/2.15.0/includes/roles/class/class-pp-roles-list-table.php

    r3173749 r3187923  
    361361                    admin_url('admin.php')
    362362                ),
    363                 esc_html($item['name']),
     363                esc_html(translate_user_role($item['name'])),
    364364                $role_states
    365365            );
    366366        } else {
    367             $out = esc_html($item['name']);
     367            $out = esc_html(translate_user_role($item['name']));
    368368        }
    369369
     
    381381    {
    382382
    383         return !empty($item['name']) ? $item['name'] : '—';
     383        return !empty($item['name']) ? translate_user_role($item['name']) : '—';
    384384    }
    385385
     
    626626            $data_filtered = [];
    627627            foreach ($data as $item) {
    628                 if ($this->str_contains($item['role'], $search, false) || $this->str_contains($item['name'], $search, false)) {
     628                if ($this->str_contains($item['role'], $search, false) || $this->str_contains(translate_user_role($item['name']), $search, false)) {
    629629                    $data_filtered[] = $item;
    630630                }
  • capability-manager-enhanced/tags/2.15.0/languages/capability-manager-enhanced.pot

    r3173749 r3187923  
    1111"Content-Type: text/plain; charset=UTF-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "POT-Creation-Date: 2024-10-22 09:43+0000\n"
     13"POT-Creation-Date: 2024-11-12 14:42+0000\n"
    1414"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1515"X-Generator: Loco https://localise.biz/\n"
     
    10971097
    10981098#: includes/admin.php:1835
    1099 msgid "include in new sites"
     1099msgid "Include in new sites."
    11001100msgstr ""
    11011101
     
    18151815
    18161816#: includes/admin.php:1841
    1817 msgid "sync options to all sites now"
     1817msgid "Sync options to all sites."
    18181818msgstr ""
    18191819
    18201820#: includes/admin.php:1838
    1821 msgid "sync role to all sites now"
     1821msgid "Sync role to all sites."
    18221822msgstr ""
    18231823
  • capability-manager-enhanced/tags/2.15.0/readme.txt

    r3173749 r3187923  
    88Requires PHP: 7.2.5
    99Tested up to: 6.6
    10 Stable tag: 2.14.0
     10Stable tag: 2.15.0
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    417417
    418418== Changelog ==
     419
     420= 2.15.0 - 13 Nov 2024 =
     421  * Feature : Reorder and rename admin menus for roles [PRO], #254
     422  * Fixed : Fatal error: Uncaught Error: Undefined constant "MULTISITE", #1187
     423  * Update : German translation Update, #1192
     424  * Update : Brazil Translation for PRO, #1191
     425  * Update : Capabilities FREE Translation Updates v. 2.14.0, #1186
    419426
    420427= 2.14.0 - 22 Oct 2024 =
  • capability-manager-enhanced/tags/2.15.0/vendor/autoload.php

    r3173749 r3187923  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560::getLoader();
     25return ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e::getLoader();
  • capability-manager-enhanced/tags/2.15.0/vendor/composer/autoload_real.php

    r3173749 r3187923  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560
     5class ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit825e274d0cb7d2d5efd4dd4784f73560::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9b3a26e44d7331d19d7b50ac1d3fe94e::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • capability-manager-enhanced/tags/2.15.0/vendor/composer/autoload_static.php

    r3173749 r3187923  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit825e274d0cb7d2d5efd4dd4784f73560
     7class ComposerStaticInit9b3a26e44d7331d19d7b50ac1d3fe94e
    88{
    99    public static $classMap = array (
     
    1414    {
    1515        return \Closure::bind(function () use ($loader) {
    16             $loader->classMap = ComposerStaticInit825e274d0cb7d2d5efd4dd4784f73560::$classMap;
     16            $loader->classMap = ComposerStaticInit9b3a26e44d7331d19d7b50ac1d3fe94e::$classMap;
    1717
    1818        }, null, ClassLoader::class);
  • capability-manager-enhanced/trunk/capsman-enhanced.php

    r3173749 r3187923  
    44 * Plugin URI: https://publishpress.com/capability-manager/
    55 * Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
    6  * Version: 2.14.0
     6 * Version: 2.15.0
    77 * Author: PublishPress
    88 * Author URI: https://publishpress.com/
     
    7070
    7171    if (!defined('CAPSMAN_VERSION')) {
    72         define('CAPSMAN_VERSION', '2.14.0');
     72        define('CAPSMAN_VERSION', '2.15.0');
    7373        define('CAPSMAN_ENH_VERSION', CAPSMAN_VERSION);
    7474        define('PUBLISHPRESS_CAPS_VERSION', CAPSMAN_VERSION);
  • capability-manager-enhanced/trunk/common/css/admin.css

    r3173749 r3187923  
    521521.pp-capability-menus-wrapper:not(.nav-menus) .pp-capability-menus .menu-item-link:focus {
    522522  cursor: pointer;
     523  border-color: transparent;
    523524}
    524525
     
    16371638
    16381639
     1640
     1641.ppc-admin-menu-rename-form .cancel-menu-title {
     1642  padding: 0;
     1643  width: 30px;
     1644  height: 30px;
     1645  min-height: 30px;
     1646  display: inline-flex;
     1647  align-items: center;
     1648  justify-content: center;
     1649}
     1650
     1651.ppc-admin-menu-rename-form .cancel-menu-title .dashicons {
     1652  font-size: 16px;
     1653  width: 16px;
     1654  height: 16px;
     1655  color: #a00;
     1656}
     1657
     1658.ppc-admin-menu-rename-form .cancel-menu-title:hover .dashicons {
     1659  color: #dc3232;
     1660}
     1661
     1662.ppc-admin-menu-rename-form {
     1663  display: inline-flex;
     1664  align-items: center;
     1665  gap: 5px;
     1666}
     1667
     1668.ppc-admin-menu-rename-form .menu-title-input {
     1669  width: 200px;
     1670  height: 30px;
     1671  padding: 0 8px;
     1672  margin: 0;
     1673  line-height: 28px;
     1674  border-radius: 4px;
     1675}
     1676
     1677.ppc-admin-menu-rename-form .save-menu-title,
     1678.ppc-admin-menu-rename-form .cancel-menu-title {
     1679  padding: 0;
     1680  width: 30px;
     1681  height: 30px;
     1682  min-height: 30px;
     1683  display: inline-flex;
     1684  align-items: center;
     1685  justify-content: center;
     1686  margin: 0;
     1687  border-radius: 4px;
     1688}
     1689
     1690.ppc-admin-menu-rename-form .save-menu-title .dashicons,
     1691.ppc-admin-menu-rename-form .cancel-menu-title .dashicons {
     1692  font-size: 16px;
     1693  width: 16px;
     1694  height: 16px;
     1695}
     1696
     1697.ppc-admin-menu-rename-form .save-menu-title .dashicons {
     1698  color: #2271b1;
     1699}
     1700
     1701.ppc-admin-menu-rename-form .cancel-menu-title .dashicons {
     1702  color: #a00;
     1703}
     1704
     1705.ppc-admin-menu-rename-form .save-menu-title:hover .dashicons {
     1706  color: #0a4b78;
     1707}
     1708
     1709.ppc-admin-menu-rename-form .cancel-menu-title:hover .dashicons {
     1710  color: #dc3232;
     1711}
     1712
     1713
     1714
    16391715.ppc-floating-status {
    16401716    position: fixed;
    16411717    bottom: 20px;
    1642     left: 184px;
    1643     background: #2c3338;
    1644     padding: 10px 15px;
    1645     border-radius: 4px;
     1718    right: 50px;
    16461719    margin-bottom: 10px;
    16471720    transition: all 0.5s ease-out;
    1648     box-shadow: 0 0 15px #999;
    1649     z-index: 999;
     1721    z-index: 9999999999999;
     1722    -webkit-backdrop-filter:blur(16px) saturate(180%);
     1723    backdrop-filter:blur(16px) saturate(180%);
     1724    background:#000000d9;
     1725    border-radius:2px;
     1726    box-shadow:0 .7px 1px #0000001a,0 1.2px 1.7px -.2px #0000001a,0 2.3px 3.3px -.5px #0000001a;
     1727    box-sizing:border-box;
     1728    color:#fff;
     1729    font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
     1730    font-size:13px;
     1731    padding:12px 20px;
    16501732}
    16511733@media (max-width: 782px) {
     
    16531735        left: 60px;
    16541736    }
    1655 }
    1656 .ppc-floating-status.ppc-floating-status--success {
    1657     color: #00d084;
    1658 }
    1659 .ppc-floating-status.ppc-floating-status--error {
    1660     color: #d63638;
    16611737}
    16621738
  • capability-manager-enhanced/trunk/includes/admin.php

    r3173749 r3187923  
    151151            }
    152152
    153             if ( MULTISITE ) {
     153            if ( defined( 'MULTISITE' ) && MULTISITE ) {
    154154                global $wp_roles;
    155155                global $wpdb;
  • capability-manager-enhanced/trunk/includes/handler.php

    r3173749 r3187923  
    5454        // Save role changes. Already saved at start with self::saveRoleCapabilities()
    5555        } elseif ( ! empty($_POST['SaveRole']) && !empty($_POST['current'])) {
    56             if ( MULTISITE ) {
     56            if ( defined( 'MULTISITE' ) && MULTISITE ) {
    5757                ( method_exists( $wp_roles, 'for_site' ) ) ? $wp_roles->for_site() : $wp_roles->reinit();
    5858            }
     
    8282        // Create New Capability and adds it to current role.
    8383        } elseif (!empty($_POST['AddCap']) && !empty($_POST['current']) && !empty($_POST['capability-name'])) {
    84             if ( MULTISITE ) {
     84            if ( defined( 'MULTISITE' ) && MULTISITE ) {
    8585                ( method_exists( $wp_roles, 'for_site' ) ) ? $wp_roles->for_site() : $wp_roles->reinit();
    8686            }
  • capability-manager-enhanced/trunk/includes/roles/class/class-pp-roles-list-table.php

    r3173749 r3187923  
    361361                    admin_url('admin.php')
    362362                ),
    363                 esc_html($item['name']),
     363                esc_html(translate_user_role($item['name'])),
    364364                $role_states
    365365            );
    366366        } else {
    367             $out = esc_html($item['name']);
     367            $out = esc_html(translate_user_role($item['name']));
    368368        }
    369369
     
    381381    {
    382382
    383         return !empty($item['name']) ? $item['name'] : '—';
     383        return !empty($item['name']) ? translate_user_role($item['name']) : '—';
    384384    }
    385385
     
    626626            $data_filtered = [];
    627627            foreach ($data as $item) {
    628                 if ($this->str_contains($item['role'], $search, false) || $this->str_contains($item['name'], $search, false)) {
     628                if ($this->str_contains($item['role'], $search, false) || $this->str_contains(translate_user_role($item['name']), $search, false)) {
    629629                    $data_filtered[] = $item;
    630630                }
  • capability-manager-enhanced/trunk/languages/capability-manager-enhanced.pot

    r3173749 r3187923  
    1111"Content-Type: text/plain; charset=UTF-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "POT-Creation-Date: 2024-10-22 09:43+0000\n"
     13"POT-Creation-Date: 2024-11-12 14:42+0000\n"
    1414"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1515"X-Generator: Loco https://localise.biz/\n"
     
    10971097
    10981098#: includes/admin.php:1835
    1099 msgid "include in new sites"
     1099msgid "Include in new sites."
    11001100msgstr ""
    11011101
     
    18151815
    18161816#: includes/admin.php:1841
    1817 msgid "sync options to all sites now"
     1817msgid "Sync options to all sites."
    18181818msgstr ""
    18191819
    18201820#: includes/admin.php:1838
    1821 msgid "sync role to all sites now"
     1821msgid "Sync role to all sites."
    18221822msgstr ""
    18231823
  • capability-manager-enhanced/trunk/readme.txt

    r3173749 r3187923  
    88Requires PHP: 7.2.5
    99Tested up to: 6.6
    10 Stable tag: 2.14.0
     10Stable tag: 2.15.0
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    417417
    418418== Changelog ==
     419
     420= 2.15.0 - 13 Nov 2024 =
     421  * Feature : Reorder and rename admin menus for roles [PRO], #254
     422  * Fixed : Fatal error: Uncaught Error: Undefined constant "MULTISITE", #1187
     423  * Update : German translation Update, #1192
     424  * Update : Brazil Translation for PRO, #1191
     425  * Update : Capabilities FREE Translation Updates v. 2.14.0, #1186
    419426
    420427= 2.14.0 - 22 Oct 2024 =
  • capability-manager-enhanced/trunk/vendor/autoload.php

    r3173749 r3187923  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560::getLoader();
     25return ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e::getLoader();
  • capability-manager-enhanced/trunk/vendor/composer/autoload_real.php

    r3173749 r3187923  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560
     5class ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit825e274d0cb7d2d5efd4dd4784f73560', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit9b3a26e44d7331d19d7b50ac1d3fe94e', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit825e274d0cb7d2d5efd4dd4784f73560::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInit9b3a26e44d7331d19d7b50ac1d3fe94e::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • capability-manager-enhanced/trunk/vendor/composer/autoload_static.php

    r3173749 r3187923  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit825e274d0cb7d2d5efd4dd4784f73560
     7class ComposerStaticInit9b3a26e44d7331d19d7b50ac1d3fe94e
    88{
    99    public static $classMap = array (
     
    1414    {
    1515        return \Closure::bind(function () use ($loader) {
    16             $loader->classMap = ComposerStaticInit825e274d0cb7d2d5efd4dd4784f73560::$classMap;
     16            $loader->classMap = ComposerStaticInit9b3a26e44d7331d19d7b50ac1d3fe94e::$classMap;
    1717
    1818        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.