diff --git a/.gitignore b/.gitignore index e829503a4..be37bb1b1 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ builder.yml !tests/_support/.gitkeep tests/_support/* .php_cs.cache +.sass-cache/* diff --git a/composer.json b/composer.json index 2ed3529a1..dd3b0f042 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ } ], "dist": { - "url": "https://github.com/publishpress/PublishPress/releases/download/v3.4.1/publishpress-3.4.1.zip", + "url": "https://github.com/publishpress/PublishPress/releases/download/v3.5.0/publishpress-3.5.0.zip", "type": "zip" }, "require": { diff --git a/includes.php b/includes.php index d1b4456a7..14bc1f442 100644 --- a/includes.php +++ b/includes.php @@ -33,7 +33,7 @@ if (!defined('PP_LOADED')) { // Define constants - define('PUBLISHPRESS_VERSION', '3.4.1'); + define('PUBLISHPRESS_VERSION', '3.5.0'); define('PUBLISHPRESS_BASE_PATH', __DIR__); define('PUBLISHPRESS_FILE_PATH', PUBLISHPRESS_BASE_PATH . '/publishpress.php'); define('PUBLISHPRESS_LIBRARIES_PATH', PUBLISHPRESS_BASE_PATH . '/libraries'); diff --git a/modules/calendar/lib/async-calendar/styles/async-calendar.css b/modules/calendar/lib/async-calendar/styles/async-calendar.css index 00ba7a99b..5cb545ee8 100644 --- a/modules/calendar/lib/async-calendar/styles/async-calendar.css +++ b/modules/calendar/lib/async-calendar/styles/async-calendar.css @@ -151,6 +151,12 @@ .publishpress-calendar-popup table th { font-weight: bold; } +.publishpress-calendar-popup table td { + word-wrap: break-word; + word-break: break-word; + white-space: normal; + padding-right: 35px; +} .publishpress-calendar-popup .publishpress-calendar-popup-title { font-weight: bold; width: 100%; diff --git a/modules/calendar/lib/async-calendar/styles/async-calendar.css.map b/modules/calendar/lib/async-calendar/styles/async-calendar.css.map index b0b7287bd..37e12dfd4 100644 --- a/modules/calendar/lib/async-calendar/styles/async-calendar.css.map +++ b/modules/calendar/lib/async-calendar/styles/async-calendar.css.map @@ -1 +1 @@ -{"version":3,"sources":["loader.less","spinner.less","popup.less","async-calendar.less"],"names":[],"mappings":"AAAA,2BAGI;EACI,cAAA;EACA,aAAA;EACA,WAAA;EACA,kBAAA;EACA,kBAAA;EACA,sBAAA;EACA,kBAAA;;AAVR,2BAgBI;EACI,cAAA;EACA,UAAA;EACA,iBAAA;EACA,iBAAA;EACA,4CAAA;EACA,kBAAA;;AAGJ;EACI;IACI,mBAAA;;;;;;AAQZ;EACI,WAAA;EACA,YAAA;EACA,iBAAA;;AAGJ,aAAc;EACV,UAAA;EACA,WAAA;EACA,yBAAA;EACA,WAAA;EACA,kEAAA;EACA,0DAAA;;AAEJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,2BAAA;EACA,mBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AAEJ;EACI;EAAI;EAAK;IACL,mBAAmB,gBAAnB;IACA,WAAW,gBAAX;;EACF;IACI,mBAAmB,gBAAnB;IACA,WAAW,gBAAX;;;AAIV;EACI;EAAI;EAAK;IACL,mBAAmB,gBAAnB;IACA,WAAW,gBAAX;;EACF;IACI,mBAAmB,gBAAnB;IACA,WAAW,gBAAX;;;AC7FV;EACI,+DAAA;EACA,qBAAA;;AAGJ;EACI;IACI,WAAW,YAAX;;EAEJ;IACI,WAAW,cAAX;;;ACNR;EACI,wCAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,WAAA;EACA,MAAA;EACA,YAAA;;AAGJ;EACI,sBAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,gBAAA;EACA,YAAA;EACA,YAAA;EACA,0CAAA;EACA,6CAAA;EACA,qCAA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EACA,gBAAA;EACA,eAAA;;AAjIR,sBAoII,gCAA+B,4BAA6B;EACxD,cAAA;;AAIR;EACI,qBAAA;EACA,uBAAA;EACA,0BAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;EACA,sBAAA;;AAGJ,6BAA8B;EAC1B,iBAAA;;AAGJ;AACA;EACI,YAAA;;AAGJ,sBAAsB,mBAAoB,MAAM,GAAG;EAC/C,eAAA","file":"async-calendar.css"} \ No newline at end of file +{"version":3,"sources":["loader.less","spinner.less","popup.less","async-calendar.less"],"names":[],"mappings":"AAAA,2BAGI;EACI,cAAA;EACA,aAAA;EACA,WAAA;EACA,kBAAA;EACA,kBAAA;EACA,sBAAA;EACA,kBAAA;;AAVR,2BAgBI;EACI,cAAA;EACA,UAAA;EACA,iBAAA;EACA,iBAAA;EACA,4CAAA;EACA,kBAAA;;AAGJ;EACI;IACI,mBAAA;;;;;;AAQZ;EACI,WAAA;EACA,YAAA;EACA,iBAAA;;AAGJ,aAAc;EACV,UAAA;EACA,WAAA;EACA,yBAAA;EACA,WAAA;EACA,kEAAA;EACA,0DAAA;;AAEJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,2BAAA;EACA,mBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AACJ,aAAc;EACV,6BAAA;EACA,qBAAA;;AAEJ;EACI;EAAI;EAAK;IACL,mBAAmB,gBAAnB;IACA,WAAW,gBAAX;;EACF;IACI,mBAAmB,gBAAnB;IACA,WAAW,gBAAX;;;AAIV;EACI;EAAI;EAAK;IACL,mBAAmB,gBAAnB;IACA,WAA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iBAAA;;AAzFR,sBA4FI;AA5FJ,sBA6FI;EACI,iBAAA;EACA,WAAA;EACA,eAAA;EACA,eAAA;;AAjGR,sBA4FI,kCAOI;AAnGR,sBA6FI,iCAMI;EACI,eAAA;EACA,gBAAA;;AArGZ,sBAyGI,kCAAiC;AAzGrC,sBA0GI,iCAAgC;EAC5B,cAAA;;AA3GR,sBA8GI,+BAA8B;EAC1B,6BAAA;EACA,SAAS,OAAT;EACA,eAAA;EACA,iBAAA;EACA,YAAA;EACA,eAAA;EACA,iBAAA;EACA,+DAAA;;AAtHR,sBAyHI;EACI,iBAAA;;AA1HR,sBA6HI,gCAAgC;EAC5B,kBAAA;EACA,cAAA;EACA,gBAAA;EACA,eAAA;;AAjIR,sBAoII,gCAA+B,4BAA6B;EACxD,cAAA;;AAIR;EACI,qBAAA;EACA,uBAAA;EACA,0BAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EACA,eAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;EACA,sBAAA;;AAGJ,6BAA8B;EAC1B,iBAAA;;AAGJ;AACA;EACI,YAAA;;AAGJ,sBAAsB,mBAAoB,MAAM,GAAG;EAC/C,eAAA","file":"async-calendar.css"} \ No newline at end of file diff --git a/modules/calendar/lib/async-calendar/styles/popup.less b/modules/calendar/lib/async-calendar/styles/popup.less index 662d06e76..103b0a589 100644 --- a/modules/calendar/lib/async-calendar/styles/popup.less +++ b/modules/calendar/lib/async-calendar/styles/popup.less @@ -47,6 +47,13 @@ th { font-weight: bold; } + + td { + word-wrap: break-word; + word-break: break-word; + white-space: normal; + padding-right: 35px; + } } .publishpress-calendar-popup-title { diff --git a/modules/editorial-comments/editorial-comments.php b/modules/editorial-comments/editorial-comments.php index d6dcc6e4f..8e117bf9e 100644 --- a/modules/editorial-comments/editorial-comments.php +++ b/modules/editorial-comments/editorial-comments.php @@ -88,6 +88,8 @@ public function init() add_action('admin_init', [$this, 'register_settings']); add_action('admin_enqueue_scripts', [$this, 'add_admin_scripts']); add_action('wp_ajax_publishpress_ajax_insert_comment', [$this, 'ajax_insert_comment']); + add_action('wp_ajax_publishpress_ajax_edit_comment', [$this, 'ajax_edit_comment']); + add_action('wp_ajax_publishpress_ajax_delete_comment', [$this, 'ajax_delete_comment']); // Add Editorial Comments to the calendar if the calendar is activated if ($this->module_enabled('calendar')) { @@ -148,6 +150,14 @@ public function add_admin_scripts() 'all' ); + wp_localize_script( + 'publishpress-editorial-comments', + 'publishpressEditorialCommentsParams', + [ + 'loadingImgSrc' => esc_url(admin_url('/images/wpspin_light.gif')), + ] + ); + $thread_comments = (int)get_option('thread_comments'); ?>