Changeset 2131688
- Timestamp:
- 07/31/2019 08:28:30 PM (7 years ago)
- Location:
- clinicalwp-core/trunk
- Files:
-
- 4 edited
- 1 copied
-
. (copied) (copied from clinicalwp-core/trunk)
-
Clinical_CMS.php (modified) (3 diffs)
-
README.txt (modified) (3 diffs)
-
includes/wp-config-scripts.php (modified) (1 diff)
-
includes/wp-config_htacess_scripts.php (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clinicalwp-core/trunk/Clinical_CMS.php
r2129151 r2131688 7 7 Description: Plugin for implementing ClinicalWP core customisations including; Speed Enhancements, Increased Security, Image Enhancements, Support Panels and much more. 8 8 //OLD Version: 3.7.9 9 Version: 1.0. 09 Version: 1.0.4 10 10 Requires at least: 3.9 11 11 Tested up to: 5.2.2 12 12 Requires PHP: 5.0 13 Stable tag: 1.0. 013 Stable tag: 1.0.4 14 14 Contributors: munklefish, missmanylayers, clinicalwp, codeclinic, freemius 15 15 Text Domain: Clinical-CMS-Core … … 21 21 return; 22 22 23 define('CWP_Version', "1.0. 0");23 define('CWP_Version', "1.0.4"); 24 24 25 25 //include titan-framework locally … … 671 671 <li><hr/></li> 672 672 <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> </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> </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>"; 676 674 } 677 675 -
clinicalwp-core/trunk/README.txt
r2129151 r2131688 8 8 Tested up to: 5.2.2 9 9 Requires PHP: 5.0 10 Version: 1.0. 011 Stable tag: 1.0. 010 Version: 1.0.4 11 Stable tag: 1.0.4 12 12 License: GPLv3 13 13 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html … … 131 131 132 132 == 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 133 140 = 1.0.0 (Released 2019/07/26) = 134 141 * Minor code optimisations … … 172 179 173 180 == 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 174 188 = 1.0.0 (Released 2019/07/26) = 175 189 * Minor code optimisations -
clinicalwp-core/trunk/includes/wp-config-scripts.php
r2115085 r2131688 72 72 $fp = fopen($file_path, "a"); 73 73 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 75 75 $date->add(new DateInterval('P1Y0M1DT0H0M0S')); 76 76 $expires = $date->format('D, M j G:i:s T Y'); -
clinicalwp-core/trunk/includes/wp-config_htacess_scripts.php
r2129151 r2131688 243 243 } 244 244 245 staticfunction Clinical_enable_gzip_php()245 /* static */ function Clinical_enable_gzip_php() 246 246 { 247 247 //enable gzip via .htaccess … … 645 645 } 646 646 647 staticfunction Clinical_enable_WP_POST_REVISIONS()647 /* static */ function Clinical_enable_WP_POST_REVISIONS() 648 648 { 649 649 //enable WP_POST_REVISIONS in wp-config … … 682 682 } 683 683 684 staticfunction Clinical_enable_WP_MEMORY_LIMIT()684 function Clinical_enable_WP_MEMORY_LIMIT() 685 685 { 686 686 //enable WP_MEMORY_LIMIT in wp-config … … 703 703 } 704 704 705 staticfunction Clinical_enable_WP_MAX_MEMORY_LIMIT()705 /* static */ function Clinical_enable_WP_MAX_MEMORY_LIMIT() 706 706 { 707 707 //enable WP_MAX_MEMORY_LIMIT in wp-config … … 719 719 } 720 720 721 staticfunction Clinical_enable_EMPTY_TRASH_DAYS()721 /* static */ function Clinical_enable_EMPTY_TRASH_DAYS() 722 722 { 723 723 //enable EMPTY_TRASH_DAYS in wp-config … … 735 735 } 736 736 737 staticfunction Clinical_enable_DISALLOW_FILE_EDIT()737 /* static */ function Clinical_enable_DISALLOW_FILE_EDIT() 738 738 { 739 739 //enable DISALLOW_FILE_EDIT in wp-config … … 765 765 } 766 766 767 staticfunction Clinical_enable_DISALLOW_FILE_MODS()767 /* static */ function Clinical_enable_DISALLOW_FILE_MODS() 768 768 { 769 769 //enable DISALLOW_FILE_MODS in wp-config … … 795 795 } 796 796 797 staticfunction Clinical_enable_IMAGE_EDITOR()797 /* static */ function Clinical_enable_IMAGE_EDITOR() 798 798 { 799 799 //enable DISALLOW_FILE_MODS in wp-config … … 825 825 } 826 826 827 staticfunction Clinical_enable_AUTOSAVE_INTERVAL()827 /* static */ function Clinical_enable_AUTOSAVE_INTERVAL() 828 828 { 829 829 //enable AUTOSAVE_INTERVAL in wp-config … … 840 840 } 841 841 842 staticfunction Clinical_enable_AUTO_UPDATES()842 /* static */ function Clinical_enable_AUTO_UPDATES() 843 843 { 844 844 //enable AUTOSAVE_INTERVAL in wp-config … … 908 908 } 909 909 910 staticfunction Clinical_enable_SSL_ADMIN()910 /* static */ function Clinical_enable_SSL_ADMIN() 911 911 { 912 912 //enable forced SSL in wp-config … … 922 922 } 923 923 924 public staticfunction Clinical_caching_configure()924 public /* static */ function Clinical_caching_configure() 925 925 { 926 926 //get options … … 1452 1452 1453 1453 1454 public staticfunction Clinical_caching_uninstall($method, $backup_filename = '')1454 public /* static */ function Clinical_caching_uninstall($method, $backup_filename = '') 1455 1455 { 1456 1456 /* … … 1469 1469 } 1470 1470 1471 public staticfunction Clinical_caching_erase_file($backup, $backup_filename = '', $method = '')1471 public /* static */ function Clinical_caching_erase_file($backup, $backup_filename = '', $method = '') 1472 1472 { 1473 1473 $status = true; … … 1475 1475 1476 1476 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; } 1481 1505 } else { 1482 1506 $status = false; … … 1857 1881 } 1858 1882 1859 staticfunction removeWPConfigs($sOne, $sTwo, $sThree)1883 /* static */ function removeWPConfigs($sOne, $sTwo, $sThree) 1860 1884 { 1861 1885 //read the entire string … … 1876 1900 } 1877 1901 1878 staticfunction addWPConfigs($sOne, $sTwo, $sThree)1902 /* static */ function addWPConfigs($sOne, $sTwo, $sThree) 1879 1903 { 1880 1904 //string to find and insert before … … 1893 1917 } 1894 1918 1895 staticfunction configSafety($file_path, $str)1919 /* static */ function configSafety($file_path, $str) 1896 1920 { 1897 1921 //get orig wp content
Note: See TracChangeset
for help on using the changeset viewer.