Plugin Directory

Changeset 3336632


Ignore:
Timestamp:
07/30/2025 12:33:18 PM (6 months ago)
Author:
ojopaul
Message:

Releasing v4.8.1

Location:
publishpress-authors
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • publishpress-authors/tags/4.8.1/defines.php

    r3332788 r3336632  
    1313
    1414if (!defined('PP_AUTHORS_LOADED')) {
    15     define('PP_AUTHORS_VERSION', '4.8.0');
     15    define('PP_AUTHORS_VERSION', '4.8.1');
    1616    define('PP_AUTHORS_FILE', 'publishpress-authors/publishpress-authors.php');
    1717    define('PP_AUTHORS_BASE_PATH', plugin_dir_path(__DIR__ . '/publishpress-authors.php'));
  • publishpress-authors/tags/4.8.1/publishpress-authors.php

    r3332788 r3336632  
    66 * Author:      PublishPress
    77 * Author URI:  https://publishpress.com
    8  * Version: 4.8.0
     8 * Version: 4.8.1
    99 * Text Domain: publishpress-authors
    1010 * Domain Path: /languages
  • publishpress-authors/tags/4.8.1/readme.txt

    r3332788 r3336632  
    247247
    248248== Changelog ==
     249
     250= [4.8.1] - 30 July 2025 =
     251
     252* Fixed: PHP Fatal error: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given, #2081
     253* Update: Add Maintenance button to create Author Categories table, #2046
     254* Update: Add a loco.xml file for Authors Pro, #2055
    249255
    250256= [4.8.0] - 23 July 2025 =
  • publishpress-authors/tags/4.8.1/src/core/Classes/Utils.php

    r3208709 r3336632  
    633633        $postTypes = $taxonomy->object_type;
    634634
     635        if (!$postTypes || !is_array($postTypes)) {
     636            return [];
     637        }
     638
    635639        if (($keyToUnset = array_search('customize_changeset', $postTypes)) !== false) {
    636640            unset($postTypes[$keyToUnset]);
  • publishpress-authors/tags/4.8.1/src/core/Plugin.php

    r3332788 r3336632  
    11381138        global $wpdb;
    11391139
    1140         $post_types = array_values(Utils::getAuthorTaxonomyPostTypes());
     1140        $post_types = array_values(Utils::get_enabled_post_types());
     1141
     1142        if (empty($post_types)) {
     1143            $post_types = ['post'];
     1144        }
    11411145
    11421146        $post_types = array_map('esc_sql', $post_types);
  • publishpress-authors/trunk/defines.php

    r3332788 r3336632  
    1313
    1414if (!defined('PP_AUTHORS_LOADED')) {
    15     define('PP_AUTHORS_VERSION', '4.8.0');
     15    define('PP_AUTHORS_VERSION', '4.8.1');
    1616    define('PP_AUTHORS_FILE', 'publishpress-authors/publishpress-authors.php');
    1717    define('PP_AUTHORS_BASE_PATH', plugin_dir_path(__DIR__ . '/publishpress-authors.php'));
  • publishpress-authors/trunk/publishpress-authors.php

    r3332788 r3336632  
    66 * Author:      PublishPress
    77 * Author URI:  https://publishpress.com
    8  * Version: 4.8.0
     8 * Version: 4.8.1
    99 * Text Domain: publishpress-authors
    1010 * Domain Path: /languages
  • publishpress-authors/trunk/readme.txt

    r3332788 r3336632  
    247247
    248248== Changelog ==
     249
     250= [4.8.1] - 30 July 2025 =
     251
     252* Fixed: PHP Fatal error: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given, #2081
     253* Update: Add Maintenance button to create Author Categories table, #2046
     254* Update: Add a loco.xml file for Authors Pro, #2055
    249255
    250256= [4.8.0] - 23 July 2025 =
  • publishpress-authors/trunk/src/core/Classes/Utils.php

    r3208709 r3336632  
    633633        $postTypes = $taxonomy->object_type;
    634634
     635        if (!$postTypes || !is_array($postTypes)) {
     636            return [];
     637        }
     638
    635639        if (($keyToUnset = array_search('customize_changeset', $postTypes)) !== false) {
    636640            unset($postTypes[$keyToUnset]);
  • publishpress-authors/trunk/src/core/Plugin.php

    r3332788 r3336632  
    11381138        global $wpdb;
    11391139
    1140         $post_types = array_values(Utils::getAuthorTaxonomyPostTypes());
     1140        $post_types = array_values(Utils::get_enabled_post_types());
     1141
     1142        if (empty($post_types)) {
     1143            $post_types = ['post'];
     1144        }
    11411145
    11421146        $post_types = array_map('esc_sql', $post_types);
Note: See TracChangeset for help on using the changeset viewer.