Plugin Directory

Changeset 3102188

Timestamp:
06/13/2024 09:18:14 AM (8 weeks ago)
Author:
rafiq91
Message:

Update to version 7.10.2 from GitHub

Location:
directorist
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • directorist/tags/7.10.2/config.php

    r3100243 r3102188  
    11<?php
    22// Plugin version.
    3 if ( ! defined( 'ATBDP_VERSION' ) ) {define( 'ATBDP_VERSION', '7.10.1' );}
     3if ( ! defined( 'ATBDP_VERSION' ) ) {define( 'ATBDP_VERSION', '7.10.' );}
    44// Plugin Folder Path.
    55if ( ! defined( 'ATBDP_DIR' ) ) { define( 'ATBDP_DIR', plugin_dir_path( __FILE__ ) ); }
  • directorist/tags/7.10.2/directorist-base.php

    r3100243 r3102188  
    44 * Plugin URI: https://wpwax.com
    55 * Description: A comprehensive solution to create professional looking directory site of any kind. Like Yelp, Foursquare, etc.
    6  * Version: 7.10.1
     6 * Version: 7.10.
    77 * Author: wpWax
    88 * Author URI: https://wpwax.com
  • directorist/tags/7.10.2/includes/classes/class-extension.php

    r3099988 r3102188  
    395395                $plugin_key  = self::filter_plugin_key_from_base_name( $plugin_key );
    396396                $plugin_item = self::extract_plugin_from_list( $plugin_key, $plugins_available_in_subscriptions );
    397                 $url         = self::get_file_download_link( $plugin_item, 'plugin' );
    398 
    399                 $download_status = $this->download_plugin( array( 'url' => $url ) );
     397                $url ;
     398               
     399                $download_status = $this->download_plugin( array( 'url' => $ ) );
    400400
    401401                if ( ! $download_status['success'] ) {
     
    649649
    650650                $theme_item = $themes_available_in_subscriptions[ $theme_stylesheet ];
    651                 $url        = self::get_file_download_link( $theme_item, 'theme' );
    652                 $url        = ( empty( $url ) && ! empty( $outdated_themes[ $theme_stylesheet ]['package'] ) ) ? $outdated_themes[ $theme_stylesheet ]['package'] : $url;
    653 
     651                $url = $theme_item['download_link'] ?? '';
    654652                $download_status = $this->download_theme( array( 'url' => $url ) );
    655653
  • directorist/tags/7.10.2/includes/model/Listings.php

    r3099988 r3102188  
    11971197
    11981198        if ( $this->directory_type ) {
    1199             $args['slug'] = $this->directory_type;
     1199            $args['slug']    = $this->directory_type;
     1200            $args['orderby'] = 'slug__in';
    12001201        }
    12011202
     
    12041205
    12051206    public function get_current_listing_type() {
     1207
     1208
    12061209        if ( is_singular( ATBDP_POST_TYPE ) ) {
    12071210            $directory = get_post_meta( get_the_ID(), '_directory_type', true );
    12081211        } else if ( ! empty( $_REQUEST['directory_type'] ) ) {
    12091212            $directory = sanitize_text_field( wp_unslash( $_REQUEST['directory_type'] ) );
    1210    
    1211             if ( ! is_numeric( $directory ) ) {
    1212                 $directory_term = get_term_by( 'slug', $directory, ATBDP_DIRECTORY_TYPE );
    1213                 $directory      = $directory_term ? $directory_term->term_id : 0;
    1214             }
    1215         }
    1216    
    1217         if ( ! empty( $directory ) && directorist_is_directory( $directory ) ) {
     1213        } else if ( ! empty( $this->default_directory_type ) ) {
     1214            $directory = $this->default_directory_type;
     1215        } else if ( ! empty( $this->directory_type ) ) {
     1216            $directory = array_key_first( $this->get_listing_types() );
     1217        }
     1218
     1219        if ( ! is_numeric( $directory ) ) {
     1220            $directory_term = get_term_by( 'slug', $directory, ATBDP_DIRECTORY_TYPE );
     1221            $directory      = $directory_term ? $directory_term->term_id : 0;
     1222        }
     1223
     1224        if ( directorist_is_directory( $directory ) ) {
    12181225            return (int) $directory;
    12191226        }
    1220        
     1227
    12211228        return directorist_get_default_directory();
    12221229    }
  • directorist/tags/7.10.2/readme.txt

    r3100243 r3102188  
    1 === Directorist - WordPress Business Directory Plugin with Classified Ads Listings ===
     1=== Directorist - WordPress Business Directory Plugin with Classified Ads Listings ===
    22Contributors: wpwax
    33Donate link: https://directorist.com/extensions/
     
    66Tested up to: 6.5
    77Requires PHP: 7.0
    8 Stable tag: 7.10.1
     8Stable tag: 7.10.
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    305305== Changelog ==
    306306
     307
     308
     309
     310
    3073117.10.0 - Jun 9, 2024
    308312
  • directorist/trunk/config.php

    r3100243 r3102188  
    11<?php
    22// Plugin version.
    3 if ( ! defined( 'ATBDP_VERSION' ) ) {define( 'ATBDP_VERSION', '7.10.1' );}
     3if ( ! defined( 'ATBDP_VERSION' ) ) {define( 'ATBDP_VERSION', '7.10.' );}
    44// Plugin Folder Path.
    55if ( ! defined( 'ATBDP_DIR' ) ) { define( 'ATBDP_DIR', plugin_dir_path( __FILE__ ) ); }
  • directorist/trunk/directorist-base.php

    r3100243 r3102188  
    44 * Plugin URI: https://wpwax.com
    55 * Description: A comprehensive solution to create professional looking directory site of any kind. Like Yelp, Foursquare, etc.
    6  * Version: 7.10.1
     6 * Version: 7.10.
    77 * Author: wpWax
    88 * Author URI: https://wpwax.com
  • directorist/trunk/includes/classes/class-extension.php

    r3099988 r3102188  
    395395                $plugin_key  = self::filter_plugin_key_from_base_name( $plugin_key );
    396396                $plugin_item = self::extract_plugin_from_list( $plugin_key, $plugins_available_in_subscriptions );
    397                 $url         = self::get_file_download_link( $plugin_item, 'plugin' );
    398 
    399                 $download_status = $this->download_plugin( array( 'url' => $url ) );
     397                $url ;
     398               
     399                $download_status = $this->download_plugin( array( 'url' => $ ) );
    400400
    401401                if ( ! $download_status['success'] ) {
     
    649649
    650650                $theme_item = $themes_available_in_subscriptions[ $theme_stylesheet ];
    651                 $url        = self::get_file_download_link( $theme_item, 'theme' );
    652                 $url        = ( empty( $url ) && ! empty( $outdated_themes[ $theme_stylesheet ]['package'] ) ) ? $outdated_themes[ $theme_stylesheet ]['package'] : $url;
    653 
     651                $url = $theme_item['download_link'] ?? '';
    654652                $download_status = $this->download_theme( array( 'url' => $url ) );
    655653
  • directorist/trunk/includes/model/Listings.php

    r3099988 r3102188  
    11971197
    11981198        if ( $this->directory_type ) {
    1199             $args['slug'] = $this->directory_type;
     1199            $args['slug']    = $this->directory_type;
     1200            $args['orderby'] = 'slug__in';
    12001201        }
    12011202
     
    12041205
    12051206    public function get_current_listing_type() {
     1207
     1208
    12061209        if ( is_singular( ATBDP_POST_TYPE ) ) {
    12071210            $directory = get_post_meta( get_the_ID(), '_directory_type', true );
    12081211        } else if ( ! empty( $_REQUEST['directory_type'] ) ) {
    12091212            $directory = sanitize_text_field( wp_unslash( $_REQUEST['directory_type'] ) );
    1210    
    1211             if ( ! is_numeric( $directory ) ) {
    1212                 $directory_term = get_term_by( 'slug', $directory, ATBDP_DIRECTORY_TYPE );
    1213                 $directory      = $directory_term ? $directory_term->term_id : 0;
    1214             }
    1215         }
    1216    
    1217         if ( ! empty( $directory ) && directorist_is_directory( $directory ) ) {
     1213        } else if ( ! empty( $this->default_directory_type ) ) {
     1214            $directory = $this->default_directory_type;
     1215        } else if ( ! empty( $this->directory_type ) ) {
     1216            $directory = array_key_first( $this->get_listing_types() );
     1217        }
     1218
     1219        if ( ! is_numeric( $directory ) ) {
     1220            $directory_term = get_term_by( 'slug', $directory, ATBDP_DIRECTORY_TYPE );
     1221            $directory      = $directory_term ? $directory_term->term_id : 0;
     1222        }
     1223
     1224        if ( directorist_is_directory( $directory ) ) {
    12181225            return (int) $directory;
    12191226        }
    1220        
     1227
    12211228        return directorist_get_default_directory();
    12221229    }
  • directorist/trunk/readme.txt

    r3100243 r3102188  
    1 === Directorist - WordPress Business Directory Plugin with Classified Ads Listings ===
     1=== Directorist - WordPress Business Directory Plugin with Classified Ads Listings ===
    22Contributors: wpwax
    33Donate link: https://directorist.com/extensions/
     
    66Tested up to: 6.5
    77Requires PHP: 7.0
    8 Stable tag: 7.10.1
     8Stable tag: 7.10.
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    305305== Changelog ==
    306306
     307
     308
     309
     310
    3073117.10.0 - Jun 9, 2024
    308312
Note: See TracChangeset for help on using the changeset viewer.