Plugin Directory

Changeset 3206477


Ignore:
Timestamp:
12/11/2024 04:01:04 PM (12 months ago)
Author:
totalpressorg
Message:

5.0.6

Location:
custom-post-types
Files:
75 added
5 edited

Legend:

Unmodified
Added
Removed
  • custom-post-types/trunk/custom-post-types.php

    r3063871 r3206477  
    88Text Domain: custom-post-types
    99Domain Path: /languages/
    10 Version: 5.0.5
     10Version: 5.0.6
    1111*/
    1212
  • custom-post-types/trunk/includes/class-cpt-plugin.php

    r2989869 r3206477  
    8282        $installed_version = get_option( cpt_utils()->get_option_name( 'version' ), null );
    8383
    84         if ( version_compare( $installed_version, CPT_VERSION, '=' ) ) {
     84        if ( $installed_version && version_compare( $installed_version, CPT_VERSION, '=' ) ) {
    8585            return;
    8686        }
  • custom-post-types/trunk/includes/class-cpt-ui.php

    r3055467 r3206477  
    7171        }
    7272        return array(
     73            'php_version'    => function_exists( 'phpversion' ) ? phpversion() : 'None',
    7374            'wp_version'     => get_bloginfo( 'version' ),
    7475            'active_theme'   => array( $active_theme->get( 'ThemeURI' ) => $active_theme->get( 'Version' ) ),
  • custom-post-types/trunk/includes/functions.php

    r2989869 r3206477  
    66function cpt_admin_notices() {
    77    global $cpt_admin_notices;
     8    if ( ! class_exists( 'CPT_Admin_Notices' ) ) {
     9        cpt_core()->includes();
     10    }
    811    if ( ! ( $cpt_admin_notices instanceof CPT_Admin_Notices ) ) {
    912        $cpt_admin_notices = new CPT_Admin_Notices();
     
    1720function cpt_admin_pages() {
    1821    global $cpt_admin_pages;
     22    if ( ! class_exists( 'CPT_Admin_Pages' ) ) {
     23        cpt_core()->includes();
     24    }
    1925    if ( ! ( $cpt_admin_pages instanceof CPT_Admin_Pages ) ) {
    2026        $cpt_admin_pages = new CPT_Admin_Pages();
     
    2834function cpt_ajax() {
    2935    global $cpt_ajax;
     36    if ( ! class_exists( 'CPT_Ajax' ) ) {
     37        cpt_core()->includes();
     38    }
    3039    if ( ! ( $cpt_ajax instanceof CPT_Ajax ) ) {
    3140        $cpt_ajax = new CPT_Ajax();
     
    5059function cpt_field_groups() {
    5160    global $cpt_field_groups;
     61    if ( ! class_exists( 'CPT_Field_Groups' ) ) {
     62        cpt_core()->includes();
     63    }
    5264    if ( ! ( $cpt_field_groups instanceof CPT_Field_Groups ) ) {
    5365        $cpt_field_groups = new CPT_Field_Groups();
     
    6173function cpt_fields() {
    6274    global $cpt_fields;
     75    if ( ! class_exists( 'CPT_Fields' ) ) {
     76        cpt_core()->includes();
     77    }
    6378    if ( ! ( $cpt_fields instanceof CPT_Fields ) ) {
    6479        $cpt_fields = new CPT_Fields();
     
    7287function cpt_plugin() {
    7388    global $cpt_plugin;
     89    if ( ! class_exists( 'CPT_Plugin' ) ) {
     90        cpt_core()->includes();
     91    }
    7492    if ( ! ( $cpt_plugin instanceof CPT_Plugin ) ) {
    7593        $cpt_plugin = new CPT_Plugin();
     
    83101function cpt_post_types() {
    84102    global $cpt_post_types;
     103    if ( ! class_exists( 'CPT_Post_Types' ) ) {
     104        cpt_core()->includes();
     105    }
    85106    if ( ! ( $cpt_post_types instanceof CPT_Post_Types ) ) {
    86107        $cpt_post_types = new CPT_Post_Types();
     
    94115function cpt_shortcodes() {
    95116    global $cpt_shortcodes;
     117    if ( ! class_exists( 'CPT_Shortcodes' ) ) {
     118        cpt_core()->includes();
     119    }
    96120    if ( ! ( $cpt_shortcodes instanceof CPT_Shortcodes ) ) {
    97121        $cpt_shortcodes = new CPT_Shortcodes();
     
    105129function cpt_taxonomies() {
    106130    global $cpt_taxonomies;
     131    if ( ! class_exists( 'CPT_Taxonomies' ) ) {
     132        cpt_core()->includes();
     133    }
    107134    if ( ! ( $cpt_taxonomies instanceof CPT_Taxonomies ) ) {
    108135        $cpt_taxonomies = new CPT_Taxonomies();
     
    116143function cpt_ui() {
    117144    global $cpt_ui;
     145    if ( ! class_exists( 'CPT_Ui' ) ) {
     146        cpt_core()->includes();
     147    }
    118148    if ( ! ( $cpt_ui instanceof CPT_Ui ) ) {
    119149        $cpt_ui = new CPT_Ui();
     
    127157function cpt_utils() {
    128158    global $cpt_utils;
     159    if ( ! class_exists( 'CPT_Utils' ) ) {
     160        cpt_core()->includes();
     161    }
    129162    if ( ! ( $cpt_utils instanceof CPT_Utils ) ) {
    130163        $cpt_utils = new CPT_Utils();
  • custom-post-types/trunk/readme.txt

    r3197600 r3206477  
    44Donate link: https://totalpress.org/donate?utm_source=wordpress_org&utm_medium=plugin_page&utm_campaign=custom_post_types
    55Requires at least: 4.0
    6 Tested up to: 6.7
    7 Stable tag: 5.0.5
     6Tested up to: 6.4
     7Stable tag: 5.0.6
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    188188== Changelog ==
    189189
     190= 5.0.6 - 2024-04-03 =
     191* FIX: version_compare first argument null;
     192* FIX: check if class exist before short load using functions.php;
     193* FEAT: add phpversion on feedback request;
     194
    190195= 5.0.5 - 2024-04-03 =
    191196* FIX: sanitize shortcodes output;
Note: See TracChangeset for help on using the changeset viewer.