🔞 ADULT: Changeset/ - Full Archive

Changeset 1051555


Ignore:
Timestamp:
12/22/2014 01:30:58 PM (11 years ago)
Author:
desaiuditd
Message:

Update to commit 63b889e from git@…:rtCamp/rtbiz.git

Location:
rtbiz
Files:
1090 added
4 edited

Legend:

Unmodified
Added
Removed
  • rtbiz/trunk/app/abstract/class-rt-entity.php

    r1051441 r1051555  
    593593                'supports' => array( 'title', 'editor', 'author', 'comments', 'thumbnail' ),
    594594                'capability_type' => $name,
     595                'map_meta_cap'       => true, //Required For ACL Without map_meta_cap Cap ACL isn't working.
     596                //Default WordPress check post capability on admin page so we need to map custom post type capability with post capability.
    595597            );
    596598            register_post_type( $name, $args );
  • rtbiz/trunk/index.php

    r1051441 r1051555  
    55  Plugin URI: http://rtcamp.com/rtbiz
    66  Description: WordPress for Business
    7   Version: 0.5.3
     7  Version: 0.5.5
    88  Author: rtCamp
    99  Author URI: http://rtcamp.com
     
    2020
    2121if ( ! defined( 'RT_BIZ_VERSION' ) ) {
    22     define( 'RT_BIZ_VERSION', '0.5.3' );
     22    define( 'RT_BIZ_VERSION', '0.5.5' );
    2323}
    2424if ( ! defined( 'RT_BIZ_PATH' ) ) {
     
    292292            );
    293293
    294             if ( ! empty( $rtbiz_offerings->product_sync ) ) {
    295                 $this->menu_order[] = 'edit-tags.php?taxonomy=' . $rtbiz_offerings->product_slug . '&post_type=' . rt_biz_get_contact_post_type();
     294            $settings = biz_get_redux_settings();
     295            if ( isset( $settings['product_plugin'] ) && 'none' != $settings['product_plugin'] ) {
     296                $this->menu_order[] = 'edit-tags.php?taxonomy=' . Rt_Offerings::$offering_slug . '&post_type=' . rt_biz_get_contact_post_type();
    296297            }
    297298
     
    427428         */
    428429        function load_styles_scripts() {
    429             global $rt_contact, $rt_company, $rtbiz_offerings;
     430            global $rt_contact, $rt_company;
    430431            wp_enqueue_script( 'rt-biz-admin', RT_BIZ_URL . 'app/assets/javascripts/admin.js', array( 'jquery' ), RT_BIZ_VERSION, true );
    431432
     
    457458            }
    458459
    459             if ( ! empty( $rtbiz_offerings->product_slug ) ) {
    460                 if ( isset( $_REQUEST['taxonomy'] ) && $_REQUEST['taxonomy'] == $rtbiz_offerings->product_slug ) {
     460            $settings = biz_get_redux_settings();
     461            if ( isset( $settings['product_plugin'] ) && 'none' != $settings['product_plugin'] ) {
     462                if ( isset( $_REQUEST['taxonomy'] ) && $_REQUEST['taxonomy'] == Rt_Offerings::$offering_slug ) {
    461463                    wp_localize_script( 'rt-biz-admin', 'rt_biz_dashboard_screen', $this->dashboard_screen );
    462                     wp_localize_script( 'rt-biz-admin', 'rt_biz_offering_url', admin_url( 'edit-tags.php?taxonomy=' . $rtbiz_offerings->product_slug . '&post_type=' . $rt_contact->post_type ) );
     464                    wp_localize_script( 'rt-biz-admin', 'rt_biz_offering_url', admin_url( 'edit-tags.php?taxonomy=' . Rt_Offerings::$offering_slug . '&post_type=' . $rt_contact->post_type ) );
    463465                }
    464466            }
     
    477479            $rt_biz_dashboard->add_screen_id( $this->dashboard_screen );
    478480            $rt_biz_dashboard->setup_dashboard();
    479             if ( ! empty( $rtbiz_offerings->product_slug ) ) {
    480                 add_submenu_page( self::$dashboard_slug, __( 'Offerings' ), __( '--- Offerings' ), rt_biz_get_access_role_cap( RT_BIZ_TEXT_DOMAIN, 'editor' ), 'edit-tags.php?taxonomy=' . $rtbiz_offerings->product_slug . '&post_type=' . $rt_contact->post_type );
     481            $settings = biz_get_redux_settings();
     482            if ( isset( $settings['product_plugin'] ) && 'none' != $settings['product_plugin'] ) {
     483                add_submenu_page( self::$dashboard_slug, __( 'Offerings' ), __( '--- Offerings' ), rt_biz_get_access_role_cap( RT_BIZ_TEXT_DOMAIN, 'editor' ), 'edit-tags.php?taxonomy=' . Rt_Offerings::$offering_slug . '&post_type=' . $rt_contact->post_type );
    481484            }
    482485            add_submenu_page( self::$dashboard_slug, __( 'Access Control' ), __( 'Access Control' ), rt_biz_get_access_role_cap( RT_BIZ_TEXT_DOMAIN, 'admin' ), self::$access_control_slug, array( $rt_access_control, 'acl_settings_ui' ) );
  • rtbiz/trunk/readme.md

    r1051508 r1051555  
    6363## Changelog ##
    6464
     65### 0.5.5 ###
     66* Offering Page Menu Fix
     67* ACL Fix for CPT capability
     68
    6569### 0.5.4 ###
    6670* assets bug fix
  • rtbiz/trunk/readme.txt

    r1051508 r1051555  
    7878Please visit [rtBiz's Roadmap page](http://rtcamp.com/rtbiz/roadmap/ "Visit rtBiz's Features page") to get some details about future releases.
    7979
     80= 0.5.5 =
     81* Offering Page Menu Fix
     82* ACL Fix for CPT capability
     83
    8084= 0.5.4 =
    8185* assets bug fix
Note: See TracChangeset for help on using the changeset viewer.