Plugin Directory

Changeset 2131688


Ignore:
Timestamp:
07/31/2019 08:28:30 PM (7 years ago)
Author:
munklefish
Message:

Trying to fix various commit issues

Location:
clinicalwp-core/trunk
Files:
4 edited
1 copied

Legend:

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

    r2129151 r2131688  
    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: 1.0.0
     9    Version: 1.0.4
    1010    Requires at least: 3.9
    1111    Tested up to: 5.2.2
    1212    Requires PHP: 5.0
    13     Stable tag: 1.0.0
     13    Stable tag: 1.0.4
    1414    Contributors: munklefish, missmanylayers, clinicalwp, codeclinic, freemius
    1515    Text Domain: Clinical-CMS-Core
     
    2121    return;
    2222
    23 define('CWP_Version', "1.0.0");
     23define('CWP_Version', "1.0.4");
    2424
    2525//include titan-framework locally
     
    671671            <li><hr/></li>
    672672                        <li>" . __('As a small digital creative studio we rely heavily on the quality of our work and the great reputation this builds. Please help us grow by spreading the word and letting others know about us.', 'Clinical-CMS-Core') . "</li>
    673             <li>&nbsp;</li><li>" . __('We\'d really appreciate a review on', 'Clinical-CMS-Core') . " <a href=\"https://www.facebook.com/codeclinicde?sk=reviews\" title=\"Like & Review Code Clinic Neumarkt\" target='_external'>Facebook.</a></li>
    674             <li>" . __('Or, you could place a review on', 'Clinical-CMS-Core') . " <a href=\"https://www.google.de/maps/place/Code+Clinic+KreativAgentur/@49.279113,11.4543233,17z/data=!4m5!3m4!1s0x479f6ffef75c77d9:0xe9695fff2782943a!8m2!3d49.279113!4d11.456512?hl=en\" title=\"Review Code Clinic Neumarkt\" target='_external'>Google.</a></li>
    675             </ul>";
     673            <li>&nbsp;</li><li><strong>" . __('We\'d really appreciate it if you could place a review/rating on', 'Clinical-CMS-Core') . " <a href=\"https://wordpress.org/support/plugin/clinicalwp-core/reviews/#new-post\" title=\"Rate & Review ClinicalWP\" target='_external'>WordPress Plugin Directory.</a></strong></li></ul>";
    676674        }
    677675
  • clinicalwp-core/trunk/README.txt

    r2129151 r2131688  
    88Tested up to: 5.2.2
    99Requires PHP: 5.0
    10 Version: 1.0.0
    11 Stable tag: 1.0.0
     10Version: 1.0.4
     11Stable tag: 1.0.4
    1212License: GPLv3
    1313License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
     
    131131
    132132== Upgrade Notice ==
     133= 1.0.2 (Released 2019/07/30) =
     134* Admin release - no noteable changes
     135
     136= 1.0.1 (Released 2019/07/30) =
     137* Minor code optimisations
     138* Fixed issue with removal of .htacess file rules causing overwriting main .htaccess
     139
    133140= 1.0.0 (Released 2019/07/26) =
    134141* Minor code optimisations
     
    172179
    173180== Changelog ==
     181= 1.0.2 (Released 2019/07/30) =
     182* Admin release - no noteable changes
     183
     184= 1.0.1 (Released 2019/07/30) =
     185* Minor code optimisations
     186* Fixed issue with removal of .htacess file rules causing overwriting main .htaccess
     187
    174188= 1.0.0 (Released 2019/07/26) =
    175189* Minor code optimisations
  • clinicalwp-core/trunk/includes/wp-config-scripts.php

    r2115085 r2131688  
    7272                $fp = fopen($file_path, "a");
    7373                if (flock($fp, LOCK_EX, $wouldblock)) {  //get file lock
    74                     $date = new DateTime( date() );
     74                    $date = new DateTime( date('D, d M Y H:i:s') ); //added 'D, d M Y H:i:s' - check doesnt cause issues
    7575                    $date->add(new DateInterval('P1Y0M1DT0H0M0S'));
    7676                    $expires = $date->format('D, M j G:i:s T Y');
  • clinicalwp-core/trunk/includes/wp-config_htacess_scripts.php

    r2129151 r2131688  
    243243        }
    244244
    245         static function Clinical_enable_gzip_php()
     245        /* static */ function Clinical_enable_gzip_php()
    246246        {
    247247            //enable gzip via .htaccess
     
    645645        }
    646646
    647         static function Clinical_enable_WP_POST_REVISIONS()
     647        /* static */ function Clinical_enable_WP_POST_REVISIONS()
    648648        {
    649649            //enable WP_POST_REVISIONS in wp-config
     
    682682        }
    683683
    684         static function Clinical_enable_WP_MEMORY_LIMIT()
     684        function Clinical_enable_WP_MEMORY_LIMIT()
    685685        {
    686686            //enable WP_MEMORY_LIMIT in wp-config
     
    703703        }
    704704
    705         static function Clinical_enable_WP_MAX_MEMORY_LIMIT()
     705        /* static */ function Clinical_enable_WP_MAX_MEMORY_LIMIT()
    706706        {
    707707            //enable WP_MAX_MEMORY_LIMIT in wp-config
     
    719719        }
    720720
    721         static function Clinical_enable_EMPTY_TRASH_DAYS()
     721        /* static */ function Clinical_enable_EMPTY_TRASH_DAYS()
    722722        {
    723723            //enable EMPTY_TRASH_DAYS in wp-config
     
    735735        }
    736736
    737         static function Clinical_enable_DISALLOW_FILE_EDIT()
     737        /* static */ function Clinical_enable_DISALLOW_FILE_EDIT()
    738738        {
    739739            //enable DISALLOW_FILE_EDIT in wp-config
     
    765765        }
    766766
    767         static function Clinical_enable_DISALLOW_FILE_MODS()
     767        /* static */ function Clinical_enable_DISALLOW_FILE_MODS()
    768768        {
    769769            //enable DISALLOW_FILE_MODS in wp-config
     
    795795        }
    796796
    797         static function Clinical_enable_IMAGE_EDITOR()
     797        /* static */ function Clinical_enable_IMAGE_EDITOR()
    798798        {
    799799            //enable DISALLOW_FILE_MODS in wp-config
     
    825825        }
    826826
    827         static function Clinical_enable_AUTOSAVE_INTERVAL()
     827        /* static */ function Clinical_enable_AUTOSAVE_INTERVAL()
    828828        {
    829829            //enable AUTOSAVE_INTERVAL in wp-config
     
    840840        }
    841841
    842         static function Clinical_enable_AUTO_UPDATES()
     842        /* static */ function Clinical_enable_AUTO_UPDATES()
    843843        {
    844844            //enable AUTOSAVE_INTERVAL in wp-config
     
    908908        }
    909909
    910         static function Clinical_enable_SSL_ADMIN()
     910        /* static */ function Clinical_enable_SSL_ADMIN()
    911911        {
    912912            //enable forced SSL in wp-config
     
    922922        }
    923923
    924         public static function Clinical_caching_configure()
     924        public /* static */ function Clinical_caching_configure()
    925925        {
    926926            //get options
     
    14521452
    14531453
    1454         public static function Clinical_caching_uninstall($method, $backup_filename = '')
     1454        public /* static */ function Clinical_caching_uninstall($method, $backup_filename = '')
    14551455        {
    14561456            /*
     
    14691469        }
    14701470
    1471         public static function Clinical_caching_erase_file($backup, $backup_filename = '', $method = '')
     1471        public /* static */ function Clinical_caching_erase_file($backup, $backup_filename = '', $method = '')
    14721472        {
    14731473            $status = true;
     
    14751475
    14761476            if ($backup) {
    1477                 if (copy(ABSPATH . '.htaccess', ABSPATH . $backup_filename) && $method != 6) {
    1478                     $status = true;
    1479                 } else if (copy(ABSPATH . 'wp-config.php', ABSPATH . $backup_filename) && $method == 6) {
    1480                     $status = true;
     1477                if ($method == 20) { ///includes
     1478                    if(copy(ABSPATH . 'wp-includes/.htaccess', ABSPATH . $backup_filename)){
     1479                        $status = true;
     1480                    }
     1481                    else { $status = false; }
     1482                }
     1483                else if ($method == 21){ //wp-content
     1484                    if(copy(ABSPATH . 'wp-content/.htaccess', ABSPATH . $backup_filename)){
     1485                        $status = true;
     1486                    }
     1487                    else { $status = false; }
     1488                }
     1489                else if (method == 22){ //wp-content/uploads
     1490                    if(copy(ABSPATH . 'wp-content/uploads/.htaccess', ABSPATH . $backup_filename)){
     1491                        $status = true;
     1492                    }
     1493                    else { $status = false; }
     1494                }
     1495                else if ($method != 6) {
     1496                    if(copy(ABSPATH . '.htaccess', ABSPATH . $backup_filename)){
     1497                        $status = true;
     1498                    }
     1499                    else { $status = false; }
     1500                } else if ($method == 6) {
     1501                    if (copy(ABSPATH . 'wp-config.php', ABSPATH . $backup_filename)) { 
     1502                        $status = true;
     1503                    }
     1504                    else { $status = false; }
    14811505                } else {
    14821506                    $status = false;
     
    18571881        }
    18581882
    1859         static function removeWPConfigs($sOne, $sTwo, $sThree)
     1883        /* static */ function removeWPConfigs($sOne, $sTwo, $sThree)
    18601884        {
    18611885            //read the entire string
     
    18761900        }
    18771901
    1878         static function addWPConfigs($sOne, $sTwo, $sThree)
     1902        /* static */ function addWPConfigs($sOne, $sTwo, $sThree)
    18791903        {
    18801904            //string to find and insert before
     
    18931917        }
    18941918
    1895         static function configSafety($file_path, $str)
     1919        /* static */ function configSafety($file_path, $str)
    18961920        {
    18971921            //get orig wp content
Note: See TracChangeset for help on using the changeset viewer.