Plugin Directory

Changeset 2378784


Ignore:
Timestamp:
09/10/2020 02:11:28 PM (6 years ago)
Author:
arena
Message:

GDPress 2.0.1

Location:
gdpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • gdpress/trunk/GDPress.php

    r2306670 r2378784  
    55Description: More than a privacy plugin
    66
    7 Version: 2.0
     7Version: 2.0.1
    88
    99Author: Andre Renaut
     
    197197        }
    198198
    199         if ( current_user_can( GDP_WP_Role_COP::cop ) ) add_action( 'admin_menu', array( 'GDP_WP_Role_COP', 'admin_menu' ), 999 );
     199        if ( GDP_WP_Role_COP::is_only() ) add_action( 'admin_menu', array( 'GDP_WP_Role_COP', 'admin_menu' ), 999 );
    200200
    201201        do_action( 'GDPress_roles_and_capabilities' );
  • gdpress/trunk/gp-includes/class/GDP_WP_Role_COP.class.php

    r2306670 r2378784  
    5353
    5454// admin
     55    public static function is_only()
     56    {
     57        $current_user = wp_get_current_user();
     58        return ( array_intersect( array( self::cop ) , $current_user->roles ) );
     59    }
     60
    5561    public static function admin_menu() // wp roles and capabilities are not RACF (sigh !)
    5662    {
  • gdpress/trunk/gp-includes/class/GDP_WP_oEmbed_providers.class.php

    r2306670 r2378784  
    3737                    'facebook'  => array(),
    3838                    'flickr'    => array(),
    39                     'hulu'      => array( 'name' => 'Hulu',         'icon' => '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M24 10.513h-1.912V13.7a.54.54 0 0 1-.146.367c-.1.09-.212.133-.35.144h-1.115c-.155-.01-.277-.055-.366-.144a.54.54 0 0 1-.146-.367v-3.188h-1.912v3.355c.016.445.1.833.285 1.142.187.317.43.545.748.7a2.7 2.7 0 0 0 1.147.244h1.855v-.016c.4 0 .748-.09 1.033-.26.277-.18.504-.423.643-.732.155-.31.236-.678.236-1.077zm-19.122.2c-.334-.145-.7-.212-1.1-.2H2.545l-.478.055-.167.056V8.046H0v7.908h1.9v-3.196c.01-.133.056-.267.156-.356s.21-.145.366-.145h1.11c.133 0 .255.056.356.145s.144.222.155.356v3.196h1.9v-3.44c0-.478-.1-.866-.3-1.167-.2-.29-.455-.5-.777-.633zM11.34 13.7c-.008.145-.05.267-.138.367a.62.62 0 0 1-.366.144H9.722c-.146-.01-.268-.055-.358-.144-.098-.1-.138-.222-.155-.367v-3.188H7.314v3.355c0 .445.1.833.26 1.142a1.7 1.7 0 0 0 .757.7c.334.155.7.244 1.147.244h1.863v-.016c.407 0 .748-.09 1.025-.26.277-.18.504-.423.66-.732a2.79 2.79 0 0 0 .228-1.077v-3.355H11.34zm3.36 2.253h1.896V8.046H14.7z"/></svg>', ),
     39//                  'hulu'      => array( 'name' => 'Hulu',         'icon' => '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M24 10.513h-1.912V13.7a.54.54 0 0 1-.146.367c-.1.09-.212.133-.35.144h-1.115c-.155-.01-.277-.055-.366-.144a.54.54 0 0 1-.146-.367v-3.188h-1.912v3.355c.016.445.1.833.285 1.142.187.317.43.545.748.7a2.7 2.7 0 0 0 1.147.244h1.855v-.016c.4 0 .748-.09 1.033-.26.277-.18.504-.423.643-.732.155-.31.236-.678.236-1.077zm-19.122.2c-.334-.145-.7-.212-1.1-.2H2.545l-.478.055-.167.056V8.046H0v7.908h1.9v-3.196c.01-.133.056-.267.156-.356s.21-.145.366-.145h1.11c.133 0 .255.056.356.145s.144.222.155.356v3.196h1.9v-3.44c0-.478-.1-.866-.3-1.167-.2-.29-.455-.5-.777-.633zM11.34 13.7c-.008.145-.05.267-.138.367a.62.62 0 0 1-.366.144H9.722c-.146-.01-.268-.055-.358-.144-.098-.1-.138-.222-.155-.367v-3.188H7.314v3.355c0 .445.1.833.26 1.142a1.7 1.7 0 0 0 .757.7c.334.155.7.244 1.147.244h1.863v-.016c.407 0 .748-.09 1.025-.26.277-.18.504-.423.66-.732a2.79 2.79 0 0 0 .228-1.077v-3.355H11.34zm3.36 2.253h1.896V8.046H14.7z"/></svg>', ),
    4040                    'imgur'     => array( 'name' => 'Imgur',        'icon' => '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><path d="M.713.01C.318.01 0 .328 0 .724v4.913a.71.71 0 0 0 .714.714h4.922a.71.71 0 0 0 .714-.714V.724C6.35.328 6.03.01 5.636.01zM3.17 1.28c.07 0 .142.004.214.012.767.08 1.414.648 1.613 1.4.278 1.1-.463 2.207-1.586 2.353h.013C2.325 5.2 1.334 4.37 1.28 3.26a1.9 1.9 0 0 1 1.888-1.982z" fill-opacity=".88"/><path d="M3.41 5.045C4.533 4.9 5.273 3.803 4.996 2.692c-.198-.753-.846-1.322-1.613-1.4-1.15-.132-2.155.806-2.102 1.97.053 1.1 1.044 1.93 2.142 1.785z" fill-opacity=".38"/></svg>', ),
    4141                    'instagram'     => array(),
  • gdpress/trunk/gp-includes/class/options/dashboard/metaboxes/EU_strategy.php

    r2306670 r2378784  
    1313        $links[] = array( 'https://www.coe.int/%3$s/web/data-protection/home',  __( 'Council of Europe | Data Protection website', 'GDPress' ) );
    1414        $links[] = '';
     15        $links[] = array( 'https://edps.europa.eu/edps-strategy-2020-2024/',    __( 'Shaping a safer digital future | The EDPS Strategy 2020-2024', 'GDPress' ) );
    1516        $links[] = array( 'https://ec.europa.eu/digital-single-market/%1$s',    __( 'Shaping Europe\'s digital future | Digital Economy & Society', 'GDPress' ) );
    1617        $links[] = array( 'https://ec.europa.eu/info/strategy_%1$s',        __( 'Strategy | European Commission', 'GDPress' ) );
  • gdpress/trunk/readme.txt

    r2311243 r2378784  
    44Tags: privacy, gdpr, rgpd, tools, form, request, compliancy, compliance, compliant, accountability
    55Requires at least: 5.4
    6 Tested up to: 5.4
    7 Stable tag: 2.0
     6Tested up to: 5.5
     7Stable tag: 2.0.1
    88Requires PHP: 7.0
    99License: WTFPL license
     
    103103== Changelog ==
    104104
     105= 2.0.1 = 2020/09/10
     106
     107css compatibility with wp 5.5
     108hulu not a oembed provider anymore
     109bug fix on GDPress role
     110
    105111= 2.0 = 2020/05/25
    106112
Note: See TracChangeset for help on using the changeset viewer.