Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15497

Wordpress integration code creates plug-in conflicts

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.5.1
    • Fix Version/s: None
    • Component/s: WordPress Integration
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      The current WordPress integration code might break other plug-ins or themes that load code on the 'admin_footer' hook. The used code block is to general as it tries to load the CiviCRM buttons into every content type derived of the base 'post'. I provide a patch to adjust this to actual blog posts (post type 'post') and pages (post type 'page).

      ----8<---- snip ---------

      — civicrm.php.orig 2014-10-20 11:23:36.502679739 +0200
      +++ civicrm.php 2014-10-20 11:21:31.959180088 +0200
      @@ -1330,7 +1330,8 @@

      // only add on edit page for default WP post types
      if (

      • $screen->base == 'post'
        + $screen->post_type == 'post' ||
        + $screen->post_type == 'page'
        ) {

      $title = __( 'Please select a CiviCRM front-end page type.', 'civicrm-wordpress' );

      ----8<---- snip ---------

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mjung Marko Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified