Plugin Directory

Changeset 2129151


Ignore:
Timestamp:
07/26/2019 02:25:08 PM (7 years ago)
Author:
munklefish
Message:

Committing version 1.0.0
Minor code optimisations

Location:
clinicalwp-core/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • clinicalwp-core/trunk/Clinical_CMS.php

    r2128679 r2129151  
    77    Description: Plugin for implementing ClinicalWP core customisations including; Speed Enhancements, Increased Security, Image Enhancements, Support Panels and much more.
    88    //OLD Version: 3.7.9
    9     Version: 0.9.9
     9    Version: 1.0.0
    1010    Requires at least: 3.9
    1111    Tested up to: 5.2.2
    1212    Requires PHP: 5.0
    13     Stable tag: 0.9.9
     13    Stable tag: 1.0.0
    1414    Contributors: munklefish, missmanylayers, clinicalwp, codeclinic, freemius
    1515    Text Domain: Clinical-CMS-Core
     
    2020if (!defined('ABSPATH'))
    2121    return;
     22
     23define('CWP_Version', "1.0.0");
    2224
    2325//include titan-framework locally
     
    3436        include_once ABSPATH . 'wp-admin/includes/plugin.php';
    3537        //force TitanFramework to reactivate
    36         if (is_plugin_active('titan-framework/titan-framework.php')) {
     38        //if (is_plugin_active('titan-framework/titan-framework.php')) {
    3739            deactivate_plugins('titan-framework/titan-framework.php');
    38         }
    39         if (!is_plugin_active('titan-framework/titan-framework.php')) {
     40        //}
     41        //if (!is_plugin_active('titan-framework/titan-framework.php')) {
    4042            activate_plugins('titan-framework/titan-framework.php');
    41         }
     43        //}
    4244    //}
    4345
     
    348350        function return_CMS_Ver_ID($arg = '')
    349351        {
    350             return "0.9.9";
     352            return CWP_Version; //for legacy calls to this function
    351353            //echo apply_filters( 'CMS_Ver_ID', '' );
    352354        }
     
    361363            $cmsVersion = $cmsInfo['mods'];
    362364
    363             return 'ClinicalWP ' . $cmsVersion . ' ' . $this->return_CMS_Ver_ID();
     365            return 'ClinicalWP ' . $cmsVersion . ' ' . CWP_Version;
    364366        }
    365367
     
    50325034
    50335035        //wp_enqueue_style( 'admin_css',  plugins_url( 'clinical_custom/clinicalWP-admin.css' , __FILE__, $this->return_CMS_Ver_ID() ) );
    5034         wp_enqueue_style('admin_css', plugins_url('clinical_custom/clinicalWP-admin.min.css', __FILE__, $this->return_CMS_Ver_ID()));
     5036        wp_enqueue_style('admin_css', plugins_url('clinical_custom/clinicalWP-admin.min.css', __FILE__, CWP_Version));
    50355037    }
    50365038
  • clinicalwp-core/trunk/README.txt

    r2128679 r2129151  
    88Tested up to: 5.2.2
    99Requires PHP: 5.0
    10 Version: 0.9.9
    11 Stable tag: 0.9.9
     10Version: 1.0.0
     11Stable tag: 1.0.0
    1212License: GPLv3
    1313License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    131131
    132132== Upgrade Notice ==
     133= 1.0.0 (Released 2019/07/26) =
     134* Minor code optimisations
     135
    133136= 0.9.9 (Released 2019/07/25) =
    134137* Fixed issue causing Data Cache warning when Object caching not available
     
    169172
    170173== Changelog ==
     174= 1.0.0 (Released 2019/07/26) =
     175* Minor code optimisations
     176
    171177= 0.9.9 (Released 2019/07/25) =
    172178* Fixed issue causing Data Cache warning when Object caching not available
  • clinicalwp-core/trunk/includes/wp-config_htacess_scripts.php

    r2115085 r2129151  
    365365                $status = false;
    366366            }
    367             error_log("Failed to write KeepAlive to htacess");
    368367            return $status;
    369368        }
     
    15951594                            if (strpos($line, 'START ClinicalWP KeepAlive') !== false) {
    15961595                                $inLoop = true;
    1597                                 error_log('LOOP START');
     1596                                //error_log('LOOP START');
    15981597                            }
    15991598                            if (strpos($line, 'END ClinicalWP KeepAlive') !== false) {
    16001599                                $inLoop = false;
    1601                                 error_log('LOOP STOP');
     1600                                //error_log('LOOP STOP');
    16021601                                continue;
    16031602                            }
     
    16061605                                fflush($fp);
    16071606                            }
    1608                         }//KeepAlive
     1607                        }//Secure Readme file
    16091608                        else if ($method == 18) {
    16101609                            if (strpos($line, 'START ClinicalWP Readme') !== false) {
    16111610                                $inLoop = true;
    1612                                 error_log('LOOP START');
     1611                                //error_log('LOOP START');
    16131612                            }
    16141613                            if (strpos($line, 'END ClinicalWP Readme') !== false) {
    16151614                                $inLoop = false;
    1616                                 error_log('LOOP STOP');
     1615                                //error_log('LOOP STOP');
    16171616                                continue;
    16181617                            }
     
    16211620                                fflush($fp);
    16221621                            }
    1623                         }//KeepAlive
     1622                        }//Secure Indexes
    16241623                        else if ($method == 19) {
    16251624                            if (strpos($line, 'START ClinicalWP Indexes') !== false) {
    16261625                                $inLoop = true;
    1627                                 error_log('LOOP START');
     1626                                //error_log('LOOP START');
    16281627                            }
    16291628                            if (strpos($line, 'END ClinicalWP Indexes') !== false) {
    16301629                                $inLoop = false;
    1631                                 error_log('LOOP STOP');
     1630                                //error_log('LOOP STOP');
    16321631                                continue;
    16331632                            }
     
    16361635                                fflush($fp);
    16371636                            }
    1638                         }//KeepAlive
     1637                        }//Secure Includes
    16391638                        else if ($method == 20) {
    16401639                            if (strpos($line, 'START ClinicalWP Includes') !== false) {
    16411640                                $inLoop = true;
    1642                                 error_log('LOOP START');
     1641                                //error_log('LOOP START');
    16431642                            }
    16441643                            if (strpos($line, 'END ClinicalWP Includes') !== false) {
    16451644                                $inLoop = false;
    1646                                 error_log('LOOP STOP');
     1645                                //error_log('LOOP STOP');
    16471646                                continue;
    16481647                            }
     
    16511650                                fflush($fp);
    16521651                            }
    1653                         }//KeepAlive
     1652                        }//Secure WP-Content
    16541653                        else if ($method == 21) {
    16551654                            if (strpos($line, 'START ClinicalWP Content') !== false) {
    16561655                                $inLoop = true;
    1657                                 error_log('LOOP START');
     1656                                //error_log('LOOP START');
    16581657                            }
    16591658                            if (strpos($line, 'END ClinicalWP Content') !== false) {
    16601659                                $inLoop = false;
    1661                                 error_log('LOOP STOP');
     1660                                //error_log('LOOP STOP');
    16621661                                continue;
    16631662                            }
     
    16661665                                fflush($fp);
    16671666                            }
    1668                         }//KeepAlive
     1667                        }//Secure Uploads folder
    16691668                        else if ($method == 22) {
    16701669                            if (strpos($line, 'START ClinicalWP Uploads') !== false) {
    16711670                                $inLoop = true;
    1672                                 error_log('LOOP START');
     1671                                //error_log('LOOP START');
    16731672                            }
    16741673                            if (strpos($line, 'END ClinicalWP Uploads') !== false) {
    16751674                                $inLoop = false;
    1676                                 error_log('LOOP STOP');
     1675                                //error_log('LOOP STOP');
    16771676                                continue;
    16781677                            }
     
    16811680                                fflush($fp);
    16821681                            }
    1683                         }//KeepAlive
     1682                        }//Prevent Browser Jacking
    16841683                        else if ($method == 23) {
    16851684                            if (strpos($line, 'START ClinicalWP Jacking') !== false) {
    16861685                                $inLoop = true;
    1687                                 error_log('LOOP START');
     1686                                //error_log('LOOP START');
    16881687                            }
    16891688                            if (strpos($line, 'END ClinicalWP Jacking') !== false) {
    16901689                                $inLoop = false;
    1691                                 error_log('LOOP STOP');
     1690                                //error_log('LOOP STOP');
    16921691                                continue;
    16931692                            }
     
    16961695                                fflush($fp);
    16971696                            }
    1698                         }//KeepAlive
     1697                        }//Prevent XSS
    16991698                        else if ($method == 24) {
    17001699                            if (strpos($line, 'START ClinicalWP XSS') !== false) {
    17011700                                $inLoop = true;
    1702                                 error_log('LOOP START');
     1701                                //error_log('LOOP START');
    17031702                            }
    17041703                            if (strpos($line, 'END ClinicalWP XSS') !== false) {
    17051704                                $inLoop = false;
    1706                                 error_log('LOOP STOP');
     1705                                //error_log('LOOP STOP');
    17071706                                continue;
    17081707                            }
     
    17111710                                fflush($fp);
    17121711                            }
    1713                         }//KeepAlive
     1712                        }//Prevent Traces
    17141713                        else if ($method == 25) {
    17151714                            if (strpos($line, 'START ClinicalWP Trace') !== false) {
    17161715                                $inLoop = true;
    1717                                 error_log('LOOP START');
     1716                                //error_log('LOOP START');
    17181717                            }
    17191718                            if (strpos($line, 'END ClinicalWP Trace') !== false) {
    17201719                                $inLoop = false;
    1721                                 error_log('LOOP STOP');
     1720                                //error_log('LOOP STOP');
    17221721                                continue;
    17231722                            }
     
    17261725                                fflush($fp);
    17271726                            }
    1728                         }//KeepAlive
     1727                        }//Prevent Sniffing
    17291728                        else if ($method == 26) {
    17301729                            if (strpos($line, 'START ClinicalWP NoSniff') !== false) {
    17311730                                $inLoop = true;
    1732                                 error_log('LOOP START');
     1731                               //error_log('LOOP START');
    17331732                            }
    17341733                            if (strpos($line, 'END ClinicalWP NoSniff') !== false) {
    17351734                                $inLoop = false;
    1736                                 error_log('LOOP STOP');
     1735                                //error_log('LOOP STOP');
    17371736                                continue;
    17381737                            }
Note: See TracChangeset for help on using the changeset viewer.