Plugin Directory

Changeset 3078973


Ignore:
Timestamp:
04/29/2024 07:39:10 PM (2 years ago)
Author:
suiteplugins
Message:

Fixing error from latest WP Job Manager plugin update

Location:
ultimate-member-job-manager
Files:
23 added
4 edited

Legend:

Unmodified
Added
Removed
  • ultimate-member-job-manager/trunk/readme.txt

    r2172651 r3078973  
    11=== Ultimate Member & Job Manager ===
    2 Contributors: suiteplugins,kishores
     2Contributors: suiteplugins
    33Donate link:  https://www.suiteplugins.com
    44Tags: ultimate-member,ultimate-member-job-manager, wp-job-manager, wp-job-manager-applications, wp-job-manager-bookmarks, wp-job-manager-job-alerts, wp-job-manager-resume-manager, ultimatemember
    5 Requires at least: WP 3.8
    6 Tested up to: 5.2.3
    7 Stable tag: 1.0.1.1
    8 Requires PHP: 5.6
     5Requires at least: WP 6.5
     6Tested up to: 6.5.2
     7Stable tag: 1.0.1.2
     8Requires PHP: 6.7
    99License: v3.0
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    6161* Tested on WordPress 5.2.3 and WP Job Manager 1.34.0
    6262
     63= 1.0.1.2 =
     64
     65* Fixed: Quick fix to breaking changes from latest WP Job Manager update
    6366
    6467== Upgrade Notice ==
  • ultimate-member-job-manager/trunk/ultimate-member-components/wp-job-manager/shortcode-action-handler/class-um-wp-job-manager-shortcode-action-handler.php

    r2047410 r3078973  
    11<?php
     2/**
     3 * WP Job Manager Shortcode Action Handler
     4 *
     5 * @package Ultimate Member Job Manager
     6 */
    27
    3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     8if ( ! defined( 'ABSPATH' ) ) {
     9    exit; // Exit if accessed directly
     10}
    411
    512if ( class_exists( 'WP_Job_Manager_Shortcodes' ) ) {
     
    815     */
    916    class UM_WP_Job_Manager_Shortcode_Action_Handler extends WP_Job_Manager_Shortcodes {
    10    
     17
    1118        /**
    1219         * __construct function.
     
    1825            add_action( 'wp', array( $this, 'shortcode_action_handler' ) );
    1926        }
    20    
     27
    2128        /**
    2229         * Handle actions which need to be run before the shortcode e.g. post actions
     
    2431        public function shortcode_action_handler() {
    2532            global $post;
    26             $this->job_dashboard_handler();
     33            // gracefull stop if method exists.
     34            if ( method_exists( $this, 'output_job_dashboard' ) ) {
     35                $this->output_job_dashboard();
     36            }
    2737        }
    2838    }
    29    
     39
    3040    new UM_WP_Job_Manager_Shortcode_Action_Handler();
    3141}
     
    3646     */
    3747    class UM_WP_Job_Manager_Alerts_Shortcodes_Action_Handler extends WP_Job_Manager_Alerts_Shortcodes {
    38    
     48
    3949        /**
    4050         * __construct function.
     
    4656            parent::__construct();
    4757            add_action( 'wp', array( $this, 'shortcode_action_handler' ) );
    48    
     58
    4959            $this->action = isset( $_REQUEST['action'] ) ? sanitize_title( $_REQUEST['action'] ) : '';
    5060        }
    51    
     61
    5262        /**
    5363         * Handle actions which need to be run before the shortcode e.g. post actions
     
    5565        public function shortcode_action_handler() {
    5666            global $post;
    57    
    58             $this->job_alerts_handler();
     67
     68            // gracefull stop if method exists.
     69            if ( method_exists( $this, 'job_alerts_handler' ) ) {
     70                $this->job_alerts_handler();
     71            }
    5972        }
    6073    }
    61    
     74
    6275    new UM_WP_Job_Manager_Alerts_Shortcodes_Action_Handler();
    6376}
    6477
    6578if ( class_exists( 'WP_Job_Manager_Applications_Dashboard' ) ) {
    66    
     79
    6780    /**
    6881     * UM_WP_Job_Manager_Applications_Dashboard_Shortcodes_CSV_Handler class.
    6982     */
    70     class UM_WP_Job_Manager_Applications_Dashboard_Shortcodes_CSV_Handler extends  WP_Job_Manager_Applications_Dashboard {
    71    
     83    class UM_WP_Job_Manager_Applications_Dashboard_Shortcodes_CSV_Handler extends WP_Job_Manager_Applications_Dashboard {
     84
    7285        /**
    7386         * __construct function.
     
    7891        }
    7992    }
    80    
     93
    8194    new UM_WP_Job_Manager_Applications_Dashboard_Shortcodes_CSV_Handler();
    8295}
  • ultimate-member-job-manager/trunk/ultimate-member-job-manager.php

    r2172651 r3078973  
    11<?php
    2 /*
    3 Plugin Name: Ultimate Member Job Manager
    4 Plugin URI: http://suiteplugins.com/
    5 Description: This plugin integrates WP Job Manager and its extensions into your Ultimate Member user profiles. This plugin needs Ultimate Member and WP Job Manager to be installed. Ultimate Member Job Manager is compatible with the following WP Job Manager extensions: Applications, Bookmarks and Job Alerts.
    6 Author: SuitePlugins
    7 Author URI: http://suiteplugins.com
    8 Version: 1.0.1.1
    9 Requires at least: 3.8
    10 Tested up to: 5.2.3
    11 Network: true
    12 Text Domain: ultimate-member-job-manager
    13 Domain Path: /languages/
    14 
    15 License: GNU General Public License v3.0
    16 License URI: http://www.gnu.org/licenses/gpl-3.0.html
     2/**
     3 * Plugin Name: Ultimate Member Job Manager
     4 * Plugin URI: http://suiteplugins.com/
     5 * Description: This plugin integrates WP Job Manager and Ultimate Member user profiles.
     6 * Author: SuitePlugins
     7 * Author URI: http://suiteplugins.com
     8 * Version: 1.0.1.2
     9 * Requires at least: 7.0.0
     10 * Tested up to: 6.5.2
     11 * Network: true
     12 * Text Domain: ultimate-member-job-manager
     13 * Domain Path: /languages/
     14 * License: GNU General Public License v3.0
     15 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
     16 *
     17 * @package Ultimate Member Job Manager
    1718*/
    1819
    1920// Exit if accessed directly
    20 if ( ! defined( 'ABSPATH' ) ) exit;
    21 
     21if ( ! defined( 'ABSPATH' ) ) {
     22    exit;
     23}
    2224
    2325if ( ! defined( 'ULTIMATE_MEMBER_WP_JOB_MANAGER_PLUGIN_DIR ' ) ) {
     
    4143
    4244    // wp-content/plugins/um-events/languages/plugin-name-de_DE.mo
    43     load_plugin_textdomain( $domain, false, basename( dirname( __FILE__ ) ) . '/languages/' );
     45    load_plugin_textdomain( $domain, false, basename( __DIR__ ) . '/languages/' );
    4446}
    4547
    4648function init_um_wp_job_manager_component() {
    47     include( ULTIMATE_MEMBER_WP_JOB_MANAGER . 'class-um-wp-job-manager.php' );
     49    include ULTIMATE_MEMBER_WP_JOB_MANAGER . 'class-um-wp-job-manager.php';
    4850}
    4951
    5052add_action( 'init', 'init_um_wp_job_manager_component', 40 );
    51 
    52 
Note: See TracChangeset for help on using the changeset viewer.