Version Description
- Version fully tested with WordPress 6.0.1 + Multisite
- Removed unnecessary debug code
- Fixed issues with falsive attachment duplication
- Fixed issue inside tooltip while redirect to edit screen option was enabled
- Fixed issue while during duplication notice "Please select settings" appeared
- Fixed issue with multi-post duplication to different subsite
- Fixed post type restrictions, copy option won't appear in dropdown while copying is forbidden
- Fixed corner cases where copy action button was not displayed in subsites
- Fixed issues with backslashes and unicode characters - they should copied correctly now
- Default WordPress Posts and Pages are not longer treated as custom posts
- Resolved issues with scheduled clean-ups - sometimes this option settings were blank
- Resolved all deprecated warnings with PHP 8+
- NEW: Added automatic URL adjustment for multisites (premium)
- NEW: Added possibility to copy into multiple subsites at once - inside bulk modal (premium)
Download this release
Release Info
Developer | iclyde |
Plugin | Duplicate Post |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.3.1
- assets/css/cdp-global.min.css +1 -1
- assets/css/cdp-select.min.css +1 -1
- assets/js/cdp-bulk.min.js +1 -1
- assets/js/cdp-modal.min.js +1 -1
- copy-delete-posts.php +30 -17
- languages/index.html +0 -0
- menu/configuration.php +8 -1
- menu/modal.php +12 -1
- menu/tooltips.php +1 -1
- post/handler.php +56 -20
- readme.txt +38 -20
assets/css/cdp-global.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-family: 'Montserrat';font-style: italic;font-weight: 400;font-display: swap;src: local('Montserrat Italic'),local('Montserrat-Italic'),url('../fonts/Montserrat-Italic.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 200;font-display: swap;src: local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url('../fonts/Montserrat-ExtraLight.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 300;font-display: swap;src: local('Montserrat Light'),local('Montserrat-Light'),url('../fonts/Montserrat-Light.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 400;font-display: swap;src: local('Montserrat Regular'),local('Montserrat-Regular'),url('../fonts/Montserrat-Regular.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 500;font-display: swap;src: local('Montserrat Medium'),local('Montserrat-Medium'),url('../fonts/Montserrat-Medium.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 600;font-display: swap;src: local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url('../fonts/Montserrat-SemiBold.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 700;font-display: swap;src: local('Montserrat Bold'),local('Montserrat-Bold'),url('../fonts/Montserrat-Bold.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 800;font-display: swap;src: local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url('../fonts/Montserrat-ExtraBold.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.cdp-admin-bar-icon-noti::before{font-family: dashicons;content: '\f465';top: 5px;position: relative;color: rgba(240,245,250,.6);margin-right: 3px;font-size: 18px}.cdp-admin-bar-icon-noti{line-height: 1!important}.cdp-admin-bar-copy{line-height: 1!important}.cdp-ab-sub .ab-item[target="_self"]{display: none!important}.cdp-dropdown-submenu{padding-top: 0!important;padding: 0!important}.cdp-dropdown-submenu *{line-height: 25px!important}.cdp-dropdown-left-header{height: 25px!important;display: inline-block!important;width: calc(100% - 35px)!important;color: #eee!important;font-weight: bolder!important}.cdp-undone-notis .cdp-dropdown-left{cursor: progress}.cdp-dropdown-left{height: 25px!important;display: inline-block!important;width: calc(100% - 35px)!important}.cdp-dropdown-right{height: 25px!important;display: inline-block!important;width: 35px!important;text-align: right!important;cursor: pointer}.cdp-dropdown-hr{display: block;background: #035baa;border-color: #aaa;border-width: 1;margin-top: 4px;margin-bottom: 3px}.cdp-bnew-notis{font-style: italic}.cdp-tooltip-content{display: none}.cdp-text-overlay h1{margin: 0!important;margin-bottom: 10px!important}.cdp-copy-loader-overlay .cdp-text-overlay{position: absolute;left: calc(50% - 200px);top: calc(50% - 50px);height: 130px;width: 400px;margin: 0px auto;font-weight: bolder;overflow: hidden;color: #fff;text-align: center;font-size: 15px!important;line-height: 1.5!important}.cdp-copy-loader-overlay{display: none;position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;background: rgba(0,0,0,.4);z-index: 199999}.cdp-modal{display: none;position: fixed;width: 100vw;height: 100vh;top: 0;left: 0;background: rgba(80,182,168,.32);z-index: 100000}.cdp-modal input,.cdp-tooltip-content input{box-shadow: none!important;outline: 0!important}.cdp-modal input:focus,.cdp-tooltip-content input:focus{border-color: #50b6a8!important;box-shadow: none!important;outline: 0!important}.cdp-modal-content{position: absolute;top: 50%;left: 50%;line-height: normal;transform: translate(-50%,-50%);color: #333;background: #fff;z-index: 200000;min-width: 720px;max-width: 80vw;width: 35%;overflow-y: auto;max-height: 70vh}.cdp-modal-content .cdp-button{border-radius: 3px!important;font-size: 18px!important}.cdp-button.cdp-d-real-delete{border-radius: 3px;font-weight: 600;font-size: 19px!important;width: 569px!important;height: 53px!important}.cdp-button.cdp-d-real-cleanup-save{border-radius: 3px;font-weight: 600;font-size: 19px!important;width: 200px!important;height: 45px!important}.cdp-modal-padding{padding: 10px 15px}.cdp-modal-title{color: #000;text-align: center;font-size: 22px;font-weight: bolder;background: #f2f2f2;border-bottom: 1px solid #31538f;min-width: 300px}.cdp-modal-bottom-margin{margin-bottom: 10px}.cdp-notification-box{position: fixed;top: 15px;right: 15px;min-width: 100px;max-width: 40vw;z-index: 1000000}.cdp-notification.is-info,.cdp-title.is-info{background-color: rgb(12,150,183)}.cdp-notification.is-danger,.cdp-title.is-danger{background-color: rgb(228,112,111)}.cdp-notification.is-success,.cdp-title.is-success{background-color: rgb(109,183,153)}.cdp-alert-icon{height: 100%;width: 25px}.cdp-alert-icon .cdp-icon-bg{width: 25px;height: 25px}.cdp-alert-msg-title{padding-left: 40px!important}.cdp-notification .cdp-icon-bg{background-position: center;background-repeat: no-repeat;position: absolute;height: calc(100% - 36px)}.cdp-notification.is-success .cdp-icon-bg{background-image: url('../imgs/alert_success.png')}.cdp-notification.is-warning .cdp-icon-bg{background-image: url('../imgs/alert_warning.png')}.cdp-notification.is-info .cdp-icon-bg{background-image: url('../imgs/alert_info.png')}.cdp-notification.is-danger .cdp-icon-bg{background-image: url('../imgs/alert_error.png')}.cdp-notification.is-warning,.cdp-title.is-warning{background-color: rgb(236,177,53)}.cdp-title{margin-bottom: 3px;font-weight: 500;font-size: 15px!important}.cdp-notification{border-radius: 3px;padding: 18px 36px 18px 20px!important;position: relative;margin-bottom: 15px;padding-left: 3px;font-family: 'Montserrat',sans-serif!important;font-size: 15px!important;font-weight: 300;color: white}.cdp-times-button{top: 2px;right: 1px;position: absolute;background: none!important;border: none;font-size: 24px;cursor: pointer;font-weight: 500;color: white;opacity: .6;transition: opacity .2s;padding: 2px 9px!important}.cdp-times-button:hover{cursor: pointer;opacity: 1}.cdp-noti-hide{display: none}.cdp-modal-times{position: absolute;top: 10px;right: 10px;transition: all .3s;cursor: pointer;background: url('../imgs/close.png');width: 20px;height: 20px;background-position: center;background-repeat: no-repeat;background-size: cover;opacity: .4}.cdp-modal-times.cdp-no-border{border: 0!important}.cdp-modal-times:hover{opacity: 1}.cdp-modal *{font-family: 'Montserrat',sans-serif!important;font-weight: 400}.cdp-modal a{color: #50b6a8}.cdp-modal a:hover{color: #48a598}.cdp-modal a:active{color: #429388}.cdp-modal-checkboxes,.cdp-modal-checkboxes-r{width: 100%}.cdp-modal-checkboxes span,.cdp-modal-checkboxes-r span{font-weight: 400!important;font-size: 15px;line-height: 33px!important;cursor: pointer;color: black}.cdp-modal-checkboxes label,.cdp-modal-checkboxes-r label{display: inline-block;width: calc(25% - 4px);line-height: 2.5}.cdp-modal-checkboxes-three label:nth-child(1){width: calc(25% - 4px)!important}.cdp-modal-checkboxes-three label:nth-child(2):not(.cdp-yoast){width: calc(25% - 4px)!important}.cdp-modal-checkboxes-three label:nth-child(3),label.cdp-yoast{width: calc(25% - 4px)!important;max-width: 175px}.cdp-modal-copy-times{margin-top: 10px;text-align: center}.cdp-modal-copy-times-tooltip{text-align: center}.cdp-modal-copy-times-content{position: relative;padding: 17px;background: #f9f9f9}.cdp-copy-modal .cdp-modal-content{width: 850px!important;min-width: 850px!important;border-radius: 3px}.cdp-cp-pad{padding: 20px 65px}.cdp-modal-content h2{font-size: 16px;font-weight: 600}.cdp-modal-input-times{max-width: 60px!important;font-size: 15px!important}.cdp-modal-input-times{width: 55px;text-align: center;font-family: 'Montserrat',sans-serif;box-shadow: 0 0 0 transparent;padding: 5px 2px;border-radius: 3px;border: 1px solid #7e8993!important;background-color: #fff;color: #32373c;-webkit-appearance: none;-moz-appearance: textfield}.cdp-modal-input-times::-webkit-outer-spin-button,.cdp-modal-input-times::-webkit-inner-spin-button{-webkit-appearance: none;-moz-appearance: textfield}.cdp-modal-input-times-tooltip{width: 59px!important;font-family: 'Montserrat',sans-serif;margin: 0}.cdp-p-right-l{margin-left: 7px}.cdp-p-right-h{margin-left: 15px}.cdp-low-round{border-radius: 5px!important}.cdp-rl-round{border-radius: 2px!important}.cdp-no-round{border-radius: 0px!important}.cdp-copy-now-btn-tooltip{max-width: 88px;max-height: 13px;font-size: 16px!important;line-height: 14px;font-weight: 400!important}.cdp-f-w-thin{font-weight: 100!important}.cdp-f-w-extra-light{font-weight: 200!important}.cdp-f-w-light{font-weight: 300!important}.cdp-f-w-regular{font-weight: 400!important}.cdp-f-w-medium{font-weight: 500!important}.cdp-f-w-semi-bold{font-weight: 600!important}.cdp-f-w-bold{font-weight: 600!important}.cdp-f-w-extra-bold{font-weight: 700!important}.cdp-f-w-black{font-weight: 800!important}.cdp-f-s-10{font-size: 10px!important}.cdp-f-s-11{font-size: 11px!important}.cdp-f-s-12{font-size: 12px!important}.cdp-f-s-13{font-size: 13px!important}.cdp-f-s-14{font-size: 14px!important}.cdp-f-s-15{font-size: 15px!important}.cdp-f-s-16{font-size: 16px!important}.cdp-f-s-17{font-size: 17px!important}.cdp-f-s-18{font-size: 18px!important}.cdp-f-s-19{font-size: 19px!important}.cdp-f-s-20{font-size: 20px!important}.cdp-f-s-21{font-size: 21px!important}.cdp-f-s-22{font-size: 22px!important}.cdp-f-s-30{font-size: 30px!important}.cdp-tooltip-before{height: calc(190px - 20px - 16px);width: calc(246px - 6px - 20px);padding: 10px 3px}.cdp-below-tooltip-before{font-size: 12px}.cdp-sizes-profile-tooltip{width: 118px!important;max-width: 118px!important}.cdp-info-icon{position: absolute;top: calc(50% - 8px);width: 16px;height: 16px;background: url('../imgs/info.png');display: inline-block;line-height: 16px;background-repeat: no-repeat;background-position: center;background-size: cover;margin: 0;margin-left: 3px;cursor: pointer}.cdp-tbody-of-settings .cdp-info-icon{display: none!important;visibility: hidden}.cdp-premium-icon{position: absolute;width: 16px;height: 16px;top: calc(50% - 8px);background: url('../imgs/premium.png');display: inline-block;line-height: 16px;background-repeat: no-repeat;background-position: center;background-size: cover;padding: 0;margin-left: 7px;cursor: pointer}.cdp-big-icon{width: 22px;height: 22px;top: calc(50% - 11px);line-height: 22px}.cdp-relative{position: relative}.cdp-padding-20-h{padding-top: 20px;padding-bottom: 20px}.cdp-padding-10-h{padding-top: 10px;padding-bottom: 10px}.cdp-padding-5-h{padding-top: 5px;padding-bottom: 5px}.cdp-input-border{border-width: 1px!important;border-color: rgb(198,201,206)!important;outline: 0!important;box-shadow: none!important}.cdp-input-border:focus{border-color: #50b6a8!important;outline: 0!important;box-shadow: none!important}.cdp-lh-24{line-height: 24px}.cdp-lh-30{line-height: 30px}.cdp-lh-42{line-height: 42px}.cdp-lh-48{line-height: 48px}.cdp-p-20-b{padding-bottom: 20px!important}.cdp-p-35-b{padding-bottom: 35px!important}.cdp-checkboxes [type="checkbox"]{color: #555;clear: none;cursor: pointer;display: inline-block;margin: -.25rem .25rem 0 0;outline: 0;padding: 0;text-align: center;vertical-align: middle;-webkit-appearance: none;box-shadow: inset 0 1px 2px rgba(0,0,0,.1);border: 1px solid #50b6a8;height: 22px;width: 22px;margin-right: 5px;margin-top: -2px;background: #fff;transition: all .3s;border-radius: 6px;margin-right: 5px}.cdp-checkboxes [type="checkbox"]:checked{background: #50b6a8}.cdp-checkboxes [type="checkbox"]:checked::before{content: '';border-top: 2px solid white;border-left: 2px solid white;height: 9px!important;width: 5px!important;margin: -.1875rem 0 0 -.25rem;margin-top: 3px;margin-left: 7px;transform: rotate(220deg);float: left;display: inline-block;vertical-align: middle;position: relative!important;box-sizing: content-box!important}.cdp-p-25-h{padding-top: 25px;padding-bottom: 25px}.cdp-tooltip-c-t{margin-left: -20px;width: calc(100% + 40px)}#toplevel_page_copy-delete-posts img{margin-left: 6px}.cdp-copy-alert-success{display: block!important;position: fixed;left: 50%;text-align: center;z-index: 99998;transform: translate(-50%)}.cdp-original-info-b{max-width: calc(76vw - 340px - 180px);text-overflow: ellipsis;word-wrap: break-word;overflow: hidden;max-height: 36px}.cdp-black{color: black!important}.cdp-black-all *{color: black!important}#cdp-review-sad{opacity: 0;transition: all .3s}.cdp-pi-7{padding-left: 7px;padding-right: 7px}.cdp-pi-15{padding-left: 15px;padding-right: 15px}#cdp-review-notice a{color: #06bf49;text-decoration: none;transition: .3s all}#cdp-review-notice a:hover{opacity: .7}#cdp-review-notice a:active{opacity: .6}#cdp-review-notice #cdp-review-review{background: #06bf49;border-color: #08bd49;color: white!important}
|
1 |
+
@font-face{font-family: 'Montserrat';font-style: italic;font-weight: 400;font-display: swap;src: local('Montserrat Italic'),local('Montserrat-Italic'),url('../fonts/Montserrat-Italic.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 200;font-display: swap;src: local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url('../fonts/Montserrat-ExtraLight.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 300;font-display: swap;src: local('Montserrat Light'),local('Montserrat-Light'),url('../fonts/Montserrat-Light.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 400;font-display: swap;src: local('Montserrat Regular'),local('Montserrat-Regular'),url('../fonts/Montserrat-Regular.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 500;font-display: swap;src: local('Montserrat Medium'),local('Montserrat-Medium'),url('../fonts/Montserrat-Medium.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 600;font-display: swap;src: local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url('../fonts/Montserrat-SemiBold.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 700;font-display: swap;src: local('Montserrat Bold'),local('Montserrat-Bold'),url('../fonts/Montserrat-Bold.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family: 'Montserrat';font-style: normal;font-weight: 800;font-display: swap;src: local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url('../fonts/Montserrat-ExtraBold.woff2') format('woff2');unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.cdp-admin-bar-icon-noti::before{font-family: dashicons;content: '\f465';top: 5px;position: relative;color: rgba(240,245,250,.6);margin-right: 3px;font-size: 18px}.cdp-admin-bar-icon-noti{line-height: 1!important}.cdp-admin-bar-copy{line-height: 1!important}.cdp-ab-sub .ab-item[target="_self"]{display: none!important}.cdp-dropdown-submenu{padding-top: 0!important;padding: 0!important}.cdp-dropdown-submenu *{line-height: 25px!important}.cdp-dropdown-left-header{height: 25px!important;display: inline-block!important;width: calc(100% - 35px)!important;color: #eee!important;font-weight: bolder!important}.cdp-undone-notis .cdp-dropdown-left{cursor: progress}.cdp-dropdown-left{height: 25px!important;display: inline-block!important;width: calc(100% - 35px)!important}.cdp-dropdown-right{height: 25px!important;display: inline-block!important;width: 35px!important;text-align: right!important;cursor: pointer}.cdp-dropdown-hr{display: block;background: #035baa;border-color: #aaa;border-width: 1;margin-top: 4px;margin-bottom: 3px}.cdp-bnew-notis{font-style: italic}.cdp-tooltip-content{display: none}.cdp-text-overlay h1{margin: 0!important;margin-bottom: 10px!important}.cdp-copy-loader-overlay .cdp-text-overlay{position: absolute;left: calc(50% - 200px);top: calc(50% - 50px);height: 130px;width: 400px;margin: 0px auto;font-weight: bolder;overflow: hidden;color: #fff;text-align: center;font-size: 15px!important;line-height: 1.5!important}.cdp-copy-loader-overlay{display: none;position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;background: rgba(0,0,0,.4);z-index: 199999}.cdp-modal{display: none;position: fixed;width: 100vw;height: 100vh;top: 0;left: 0;background: rgba(80,182,168,.32);z-index: 100000}.cdp-modal input,.cdp-tooltip-content input{box-shadow: none!important;outline: 0!important}.cdp-modal input:focus,.cdp-tooltip-content input:focus{border-color: #50b6a8!important;box-shadow: none!important;outline: 0!important}.cdp-modal-content{position: absolute;top: 50%;left: 50%;line-height: normal;transform: translate(-50%,-50%);color: #333;background: #fff;z-index: 200000;min-width: 720px;max-width: 80vw;width: 35%;overflow-y: auto;max-height: 70vh}.cdp-modal-content .cdp-button{border-radius: 3px!important;font-size: 18px!important}.cdp-button.cdp-d-real-delete{border-radius: 3px;font-weight: 600;font-size: 19px!important;width: 569px!important;height: 53px!important}.cdp-button.cdp-d-real-cleanup-save{border-radius: 3px;font-weight: 600;font-size: 19px!important;width: 200px!important;height: 45px!important}.cdp-modal-padding{padding: 10px 15px}.cdp-modal-title{color: #000;text-align: center;font-size: 22px;font-weight: bolder;background: #f2f2f2;border-bottom: 1px solid #31538f;min-width: 300px}.cdp-modal-bottom-margin{margin-bottom: 10px}.cdp-notification-box{position: fixed;top: 15px;right: 15px;min-width: 100px;max-width: 40vw;z-index: 1000000}.cdp-notification.is-info,.cdp-title.is-info{background-color: rgb(12,150,183)}.cdp-notification.is-danger,.cdp-title.is-danger{background-color: rgb(228,112,111)}.cdp-notification.is-success,.cdp-title.is-success{background-color: rgb(109,183,153)}.cdp-alert-icon{height: 100%;width: 25px}.cdp-alert-icon .cdp-icon-bg{width: 25px;height: 25px}.cdp-alert-msg-title{padding-left: 40px!important}.cdp-notification .cdp-icon-bg{background-position: center;background-repeat: no-repeat;position: absolute;height: calc(100% - 36px)}.cdp-notification.is-success .cdp-icon-bg{background-image: url('../imgs/alert_success.png')}.cdp-notification.is-warning .cdp-icon-bg{background-image: url('../imgs/alert_warning.png')}.cdp-notification.is-info .cdp-icon-bg{background-image: url('../imgs/alert_info.png')}.cdp-notification.is-danger .cdp-icon-bg{background-image: url('../imgs/alert_error.png')}.cdp-notification.is-warning,.cdp-title.is-warning{background-color: rgb(236,177,53)}.cdp-title{margin-bottom: 3px;font-weight: 500;font-size: 15px!important}.cdp-notification{border-radius: 3px;padding: 18px 36px 18px 20px!important;position: relative;margin-bottom: 15px;padding-left: 3px;font-family: 'Montserrat',sans-serif!important;font-size: 15px!important;font-weight: 300;color: white}.cdp-times-button{top: 2px;right: 1px;position: absolute;background: none!important;border: none;font-size: 24px;cursor: pointer;font-weight: 500;color: white;opacity: .6;transition: opacity .2s;padding: 2px 9px!important}.cdp-times-button:hover{cursor: pointer;opacity: 1}.cdp-noti-hide{display: none}.cdp-modal-times{position: absolute;top: 10px;right: 10px;transition: all .3s;cursor: pointer;background: url('../imgs/close.png');width: 20px;height: 20px;background-position: center;background-repeat: no-repeat;background-size: cover;opacity: .4}.cdp-modal-times.cdp-no-border{border: 0!important}.cdp-modal-times:hover{opacity: 1}.cdp-modal *{font-family: 'Montserrat',sans-serif!important;font-weight: 400}.cdp-modal a{color: #50b6a8}.cdp-modal a:hover{color: #48a598}.cdp-modal a:active{color: #429388}.cdp-modal-checkboxes,.cdp-modal-checkboxes-r{width: 100%}.cdp-modal-checkboxes span,.cdp-modal-checkboxes-r span{font-weight: 400!important;font-size: 15px;line-height: 33px!important;cursor: pointer;color: black}.cdp-modal-checkboxes label,.cdp-modal-checkboxes-r label{display: inline-block;width: calc(25% - 4px);line-height: 2.5}.cdp-modal-checkboxes-three label:nth-child(1){width: calc(25% - 4px)!important}.cdp-modal-checkboxes-three label:nth-child(2):not(.cdp-yoast){width: calc(25% - 4px)!important}.cdp-modal-checkboxes-three label:nth-child(3),label.cdp-yoast{width: calc(25% - 4px)!important;max-width: 175px}.cdp-modal-copy-times{margin-top: 10px;text-align: center}.cdp-modal-copy-times-tooltip{text-align: center}.cdp-modal-copy-times-content{position: relative;padding: 17px;background: #f9f9f9}.cdp-copy-modal .cdp-modal-content{width: 850px!important;min-width: 850px!important;border-radius: 3px}.cdp-cp-pad{padding: 20px 65px}.cdp-modal-content h2{font-size: 16px;font-weight: 600}.cdp-modal-input-times{max-width: 60px!important;font-size: 15px!important}.cdp-modal-input-times{width: 55px;text-align: center;font-family: 'Montserrat',sans-serif;box-shadow: 0 0 0 transparent;padding: 5px 2px;border-radius: 3px;border: 1px solid #7e8993!important;background-color: #fff;color: #32373c;-webkit-appearance: none;-moz-appearance: textfield}.cdp-modal-input-times::-webkit-outer-spin-button,.cdp-modal-input-times::-webkit-inner-spin-button{-webkit-appearance: none;-moz-appearance: textfield}.cdp-modal-input-times-tooltip{width: 59px!important;font-family: 'Montserrat',sans-serif;margin: 0}.cdp-p-right-l{margin-left: 7px}.cdp-p-right-h{margin-left: 15px}.cdp-low-round{border-radius: 5px!important}.cdp-rl-round{border-radius: 2px!important}.cdp-no-round{border-radius: 0px!important}.cdp-copy-now-btn-tooltip{max-width: 88px;max-height: 13px;font-size: 16px!important;line-height: 14px;font-weight: 400!important}.cdp-f-w-thin{font-weight: 100!important}.cdp-f-w-extra-light{font-weight: 200!important}.cdp-f-w-light{font-weight: 300!important}.cdp-f-w-regular{font-weight: 400!important}.cdp-f-w-medium{font-weight: 500!important}.cdp-f-w-semi-bold{font-weight: 600!important}.cdp-f-w-bold{font-weight: 600!important}.cdp-f-w-extra-bold{font-weight: 700!important}.cdp-f-w-black{font-weight: 800!important}.cdp-f-s-10{font-size: 10px!important}.cdp-f-s-11{font-size: 11px!important}.cdp-f-s-12{font-size: 12px!important}.cdp-f-s-13{font-size: 13px!important}.cdp-f-s-14{font-size: 14px!important}.cdp-f-s-15{font-size: 15px!important}.cdp-f-s-16{font-size: 16px!important}.cdp-f-s-17{font-size: 17px!important}.cdp-f-s-18{font-size: 18px!important}.cdp-f-s-19{font-size: 19px!important}.cdp-f-s-20{font-size: 20px!important}.cdp-f-s-21{font-size: 21px!important}.cdp-f-s-22{font-size: 22px!important}.cdp-f-s-30{font-size: 30px!important}.cdp-tooltip-before{height: calc(190px - 20px - 16px);width: calc(246px - 6px - 20px);padding: 10px 3px}.cdp-below-tooltip-before{font-size: 12px}.cdp-sizes-profile-tooltip{width: 118px!important;max-width: 118px!important}.cdp-info-icon{position: absolute;top: calc(50% - 8px);width: 16px;height: 16px;background: url('../imgs/info.png');display: inline-block;line-height: 16px;background-repeat: no-repeat;background-position: center;background-size: cover;margin: 0;margin-left: 3px;cursor: pointer}.cdp-tbody-of-settings .cdp-info-icon{display: none!important;visibility: hidden}.cdp-premium-icon{position: absolute;width: 16px;height: 16px;top: calc(50% - 8px);background: url('../imgs/premium.png');display: inline-block;line-height: 16px;background-repeat: no-repeat;background-position: center;background-size: cover;padding: 0;margin-left: 7px;cursor: pointer}.cdp-big-icon{width: 22px;height: 22px;top: calc(50% - 11px);line-height: 22px}.cdp-relative{position: relative}.cdp-padding-20-h{padding-top: 20px;padding-bottom: 20px}.cdp-padding-10-h{padding-top: 10px;padding-bottom: 10px}.cdp-padding-5-h{padding-top: 5px;padding-bottom: 5px}.cdp-input-border{border-width: 1px!important;border-color: rgb(198,201,206)!important;outline: 0!important;box-shadow: none!important}.cdp-input-border:focus{border-color: #50b6a8!important;outline: 0!important;box-shadow: none!important}.cdp-lh-24{line-height: 24px}.cdp-lh-30{line-height: 30px}.cdp-lh-42{line-height: 42px}.cdp-lh-48{line-height: 48px}.cdp-p-20-b{padding-bottom: 20px!important}.cdp-p-35-b{padding-bottom: 35px!important}.cdp-checkboxes [type="checkbox"]{color: #555;clear: none;cursor: pointer;display: inline-block;margin: -.25rem .25rem 0 0;outline: 0;padding: 0;text-align: center;vertical-align: middle;-webkit-appearance: none;box-shadow: inset 0 1px 2px rgba(0,0,0,.1);border: 1px solid #50b6a8;height: 22px;width: 22px;margin-right: 5px;margin-top: -2px;background: #fff;transition: all .3s;border-radius: 6px;margin-right: 5px}.cdp-checkboxes [type="checkbox"]:checked{background: #50b6a8}.cdp-checkboxes [type="checkbox"]:checked::before{content: '';border-top: 2px solid white;border-left: 2px solid white;height: 9px!important;width: 5px!important;margin: -.1875rem 0 0 -.25rem;margin-top: 3px;margin-left: 7px;transform: rotate(220deg);float: left;display: inline-block;vertical-align: middle;position: relative!important;box-sizing: content-box!important}.cdp-p-25-h{padding-top: 25px;padding-bottom: 25px}.cdp-tooltip-c-t{margin-left: -20px;width: calc(100% + 40px)}#toplevel_page_copy-delete-posts img{margin-left: 6px}.cdp-copy-alert-success{display: block!important;position: fixed;left: 50%;text-align: center;z-index: 99998;transform: translate(-50%)}.cdp-original-info-b{max-width: calc(76vw - 340px - 180px);text-overflow: ellipsis;word-wrap: break-word;overflow: hidden;max-height: 36px}.cdp-black{color: black!important}.cdp-black-all *{color: black!important}#cdp-review-sad{opacity: 0;transition: all .3s}.cdp-pi-7{padding-left: 7px;padding-right: 7px}.cdp-pi-15{padding-left: 15px;padding-right: 15px}#cdp-review-notice a{color: #06bf49;text-decoration: none;transition: .3s all}#cdp-review-notice a:hover{opacity: .7}#cdp-review-notice a:active{opacity: .6}#cdp-review-notice #cdp-review-review{background: #06bf49;border-color: #08bd49;color: white!important}.cdp-multiple-sites-selector{line-height: 10px;font-size: 12px;color: #3e806c;opacity: 1;transition: opacity .3s;cursor: pointer}.cdp-multiple-sites-selector:hover{opacity: 0.8}.cdp-multiple-sites-selector:active{opacity: 0.6}.cdp-multi-site-at-once-selector select{outline: none!important;max-height: 100px;border-color: rgb(198,201,206)!important;color: black!important;box-shadow: none!important}.cdp-multi-site-at-once-selector select:active,.cdp-multi-site-at-once-selector select:hover,.cdp-multi-site-at-once-selector select:focus{border-color: #50b6a8!important}
|
assets/css/cdp-select.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cdp-nice-select{-webkit-tap-highlight-color: transparent;background-color: #fff;border-radius: 3px;border: solid 2px rgb(198,201,206);box-sizing: border-box;cursor: pointer;font-family: inherit;font-size: 14px;font-weight: 400;height: 32px;line-height: 30px;outline: none;padding-left: 28px;padding-right: 37px;padding-top: 0px!important;padding-bottom: 0px!important;position: relative;-webkit-transition: all 0.2s ease-in-out;transition: all 0.2s ease-in-out;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;white-space: nowrap;width: auto;outline: 0!important;display: inline-block
|
1 |
+
.cdp-nice-select{-webkit-tap-highlight-color: transparent;background-color: #fff;border-radius: 3px;border: solid 2px rgb(198,201,206);box-sizing: border-box;cursor: pointer;font-family: inherit;font-size: 14px;font-weight: 400;height: 32px;line-height: 30px;outline: none;padding-left: 28px;padding-right: 37px;padding-top: 0px!important;padding-bottom: 0px!important;position: relative;-webkit-transition: all 0.2s ease-in-out;transition: all 0.2s ease-in-out;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;white-space: nowrap;width: auto;outline: 0!important;display: inline-block;box-shadow: none!important;text-align: center;overflow: hidden!important;text-overflow: ellipsis;color: black!important}.cdp-nice-select:hover{border-color: #48a598!important}.cdp-nice-select:active,.cdp-nice-select.open,.cdp-nice-select:focus{border-color: #50b6a8!important}.cdp-nice-select.open{border-bottom-left-radius: 0;border-bottom-right-radius: 0}.cdp-sel-separat::before{content: '';border-left: 1px solid #c1c1c1;height: 34px;position: absolute;top: 9px;right: 38px}.cdp-nice-select:not(.cdpp-input-c):not(.cdp-select-padding):not(.cdp-redirect-select):not(.cdp-cool-select):not(.cdp-redirect-select2):not(.cdp-modal-select):not(.cdp-tooltip-select):not(.cdp-per-page-select-show) .list,.cdp-sel-separat .list{margin-left: -29px!important}.cdp-nice-select:not(.cdp-select-padding):not(.cdp-redirect-select):not(.cdp-cool-select):not(.cdp-redirect-select2):not(.cdp-tooltip-select):not(.cdp-dis-en-opt):not(.cdp-per-page-select-show):not(.cdp-pad-60-list) .option,.cdp-sel-separat:not(.cdp-pad-60-list) .option{padding-right: 40px}.cdp-nice-select:after{border-bottom: 1px solid #50b6a8;border-right: 1px solid #50b6a8;content: '';display: block;height: 8px;width: 8px;margin-top: -6px;pointer-events: none;position: absolute;right: 18px;top: 50%;-webkit-transform-origin: 66% 66%;-ms-transform-origin: 66% 66%;transform-origin: 66% 66%;-webkit-transform: rotate(45deg);-ms-transform: rotate(45deg);transform: rotate(45deg);-webkit-transition: all 0.15s ease-in-out;transition: all 0.15s ease-in-out}.cdp-nice-select:not(.cdp-select-padding):not(.cdp-tooltip-select):not(.cdp-per-page-select-show):not(.cdp-pad-49-list):not(.cdp-pad-60-list) .option{padding-left: 29px;padding-right: 34px}.cdp-nice-select.open:after{-webkit-transform: rotate(135deg);-ms-transform: rotate(135deg);transform: rotate(135deg)}.cdp-nice-select.open .list{opacity: 1;pointer-events: auto;-webkit-transform: scale(1) translateY(0);-ms-transform: scale(1) translateY(0);transform: scale(1) translateY(0)}.cdp-nice-select.disabled{border-color: rgba(198,201,206,0.5)!important;color: rgba(198,201,206,0.5)!important;pointer-events: none}.cdp-nice-select.disabled::before{border-color: rgba(198,201,206,0.7)!important}.cdp-nice-select.disabled:after{border-color: rgba(198,201,206,0.5)!important}.cdp-nice-select.wide{width: 100%}.cdp-nice-select.wide .list{left: 0!important;right: 0!important}.cdp-nice-select.right{float: right}.cdp-nice-select.right .list{left: auto;right: 0}.cdp-nice-select.small{font-size: 12px;height: 36px;line-height: 34px}.cdp-nice-select.small:after{height: 4px;width: 4px}.cdp-nice-select.small .option{line-height: 34px;min-height: 34px}.cdp-nice-select .list{background-color: #fff;border-radius: 5px;box-shadow: 0 0 0 1px rgba(68,68,68,0.11);box-sizing: border-box;margin-top: -2px;opacity: 0;padding: 0;pointer-events: none;position: fixed;margin-left: -10px;-webkit-transform-origin: 50% 0;-ms-transform-origin: 50% 0;transform-origin: 50% 0;-webkit-transform: scale(0.75) translateY(-21px);-ms-transform: scale(0.75) translateY(-21px);transform: scale(0.75) translateY(-21px);-webkit-transition: all 0.2s cubic-bezier(0.5,0,0,1.25),opacity 0.15s ease-out;transition: all 0.2s cubic-bezier(0.5,0,0,1.25),opacity 0.15s ease-out;z-index: 10000!important;max-height: 300px;overflow: auto;border-top-left-radius: 0;border-top-right-radius: 0;border: 1px solid #50b6a8;border-top: 1px solid #50b6a8}.cdp-nice-select .list:hover .option:not(:hover){background-color: transparent!important}.cdp-nice-select .option{cursor: pointer;font-weight: 400;line-height: 42px;list-style: none;min-height: 43px;outline: none;padding-left: 20px;padding-right: 44px;margin: 0!important;text-align: left;-webkit-transition: all 0.2s;transition: all 0.2s;border-bottom: 1px solid rgb(234,234,234)!important}.cdp-dd-p-43 .option{padding-right: 43px}.cdp-dd-p-40 .option{padding-right: 40px!important}.cdp-nice-select .option:last-child{border-bottom: 0}.cdp-nice-select .option:hover,.cdp-nice-select .option.focus,.cdp-nice-select .option.selected.focus{background-color: rgb(247,247,247);border-bottom: rgb(235,235,235)}.cdp-nice-select .option.selected{font-weight: 400}.cdp-nice-select .option.disabled{background-color: transparent;color: #999;cursor: default}.no-csspointerevents .cdp-nice-select .list{display: none}.no-csspointerevents .cdp-nice-select.open .list{display: block}.cdp-m-l-9-d .list{margin-left: -10px!important}.cdp-ow-border{border-width: 1px!important}.cdp-ow-border .list{border-width: 1px!important;margin-left: -21px}.cdp-select-black{color: black!important;font-size: 18px!important}.cdp-select-large{font-size: 18px!important;height: 56px!important;line-height: 56px!important;border-width: 1px!important;padding-right: 58px!important}.cdp-select-large .list{border-width: 1px!important;margin-left: 29px!important}.cdp-select-large:not(.cdp-pad-60-list):not(.cdp-tooltip-select) .list li{padding-right: 35px}.cdp-pad-49-list .option{padding-left: 49px!important}.cdp-pad-60-list .option{padding-right: 70px!important}.cdp-per-page-select-show{color: #292929!important}.cdp-per-page-select-show .list{margin-left: -21px!important;color: #292929!important}.cdp-per-page-select-show .option{padding-left: 21px!important}.cdp-dis-en-opt{width: 189px!important;height: 42px!important;text-align: center;line-height: 42px!important;font-size: 17px!important}.cdp-dis-en-opt:not(.cdp-tooltip-select) .option{padding-left: 52px!important;padding-right: 60px!important}.cdp-tooltip-select{min-height: 32px;max-height: 32px;max-width: 96px;min-width: 96px;border: 1px solid #d7d9dd!important;line-height: 30px!important;margin-top: 1px;padding-left: 10px!important;padding-right: 25px!important;text-align: left}.cdp-tooltip-select::before{content: '';border-left: 1px solid #c1c1c1;height: 20px;position: absolute;top: 5px;right: 20px}.cdp-tooltip-select::after{height: 5px;width: 5px;margin-top: -6px;right: 8px;top: calc(50% + 2px)}.cdp-tooltip-select .option{padding-left: 10px!important;padding-right: 28px!important;line-height: 30px!important;min-height: 30px!important}.cdp-tooltip-select .list{margin-left: -11px!important}.cdp-modal-select{min-height: 38px;max-height: 38px;max-width: 250px;border: 1px solid #d7d9dd!important;line-height: 38px!important;margin-top: 1px;padding-left: 10px!important;padding-right: 45px!important;text-align: left;margin-left: 5px;width: auto!important}.cdp-modal-select::before{content: '';border-left: 1px solid #c1c1c1;height: 26px;position: absolute;top: 6px;right: 30px}.cdp-modal-select::after{height: 5px;width: 5px;margin-top: -6px;right: 13px;top: calc(50% + 2px)}.cdp-modal-select .option{padding-left: 10px!important;padding-right: 12px!important;line-height: 29px!important;min-height: 29px!important}.cdp-modal-select-2 .option{min-width: 89px}.cdp-modal-select .list{margin-left: -11px!important}.cdp-max-600 .option{padding-left: 60px!important;padding-right: 85px!important}.cdp-premium-modal-dropdown .option{padding-right: 50px!important;text-align: center!important}.cdp-cool-select,.cdp-redirect-select{height: 42px!important;line-height: 42px!important;width: 149px!important;padding-left: 20px!important;font-size: 17px!important;padding-right: 50px!important}.cdp-cool-select .list,.cdp-redirect-select .list{margin-left: -21px!important}.cdp-cool-select .option,.cdp-redirect-select .option{padding-left: 24px!important;padding-right: 48px!important}.cdp-redirect-select2 .option{padding-left: 24px!important;padding-right: 60px!important}.cdp-cool-hour{width: 130px!important}.cdp-cool-hour .option{padding-left: 28px!important;padding-right: 64px!important}.cdp-cool-day{width: 110px!important}.cdp-cool-day .option{padding-left: 29px!important;padding-right: 50px!important}.cdp-cool-week{width: 140px!important;padding-left: 10px!important;padding-right: 40px!important}.cdp-cool-week .option{padding-left: 20px!important;padding-right: 51px!important}.cdp-cool-month{width: 130px!important;padding-left: 10px!important;padding-right: 40px!important}.cdp-cool-month .list{margin-left: -11px!important}.cdp-cool-month .option{padding-left: 20px!important;padding-right: 51px!important}.cdp-cool-do-not .option{padding-left: 22px!important;padding-right: 51px!important}
|
assets/js/cdp-bulk.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(o){$bulktop=o("#bulk-action-selector-top"),$bulkbot=o("#bulk-action-selector-bottom"),($bulktop.length>0||$bulkbot.length>0)&&(0==$bulktop.find('[value="cdp_bulk_copy"]').length&&$bulktop.append('<option value="cdp_bulk_copy">'+cdpBulkJS.strOptCopy+"</option>"),0==$bulkbot.find('[value="cdp_bulk_copy"]').length&&$bulkbot.append('<option value="cdp_bulk_copy">'+cdpBulkJS.strOptCopy+"</option>"),o("#cdp-current-post-id").remove())});
|
1 |
+
jQuery(document).ready(function(o){["edit-page","edit-post"].includes(pagenow)||($bulktop=o("#bulk-action-selector-top"),$bulkbot=o("#bulk-action-selector-bottom"),($bulktop.length>0||$bulkbot.length>0)&&(0==$bulktop.find('[value="cdp_bulk_copy"]').length&&$bulktop.append('<option value="cdp_bulk_copy">'+cdpBulkJS.strOptCopy+"</option>"),0==$bulkbot.find('[value="cdp_bulk_copy"]').length&&$bulkbot.append('<option value="cdp_bulk_copy">'+cdpBulkJS.strOptCopy+"</option>"),o("#cdp-current-post-id").remove()))});
|
assets/js/cdp-modal.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(o){o("#cdp-purl").val();let t="default";function e(){o.cdpModal("cdp-copy-modal-global");let t=o(".cdp-modal-input-profiles-r").val();o('[name="tooltip-which-profile-second-modal"]').val(t),o('.cdp-input-dynamic[name="tooltip-which-profile-second-modal"]').trigger("change")}function c(){if(o("#cdp-current-post-id").length>0)return[o("#cdp-current-post-id").val()];$rows=o("#the-list").find("tr"),$ids=[];for(var t=0;t<$rows.length;t++){let e=o($rows[t]);e.find('input[name="post[]"]').is(":checked")&&$ids.push(e.find('input[name="post[]"]').attr("value"))}return $ids}function
|
1 |
+
jQuery(document).ready(function(o){o("#cdp-purl").val();let t="default";function e(){o.cdpModal("cdp-copy-modal-global");let t=o(".cdp-modal-input-profiles-r").val();o('[name="tooltip-which-profile-second-modal"]').val(t),o('.cdp-input-dynamic[name="tooltip-which-profile-second-modal"]').trigger("change")}function c(){if(o("#cdp-current-post-id").length>0)return[o("#cdp-current-post-id").val()];$rows=o("#the-list").find("tr"),$ids=[];for(var t=0;t<$rows.length;t++){let e=o($rows[t]);e.find('input[name="post[]"]').is(":checked")&&$ids.push(e.find('input[name="post[]"]').attr("value"))}return $ids}function i(t=(()=>{})){window.onbeforeunload=null,$e=o(".cdp-copy-loader-overlay"),$e.is(":hidden")||$e.animate({opacity:0},300,function(){$e.hide(),t(!0)})}o(".cdp-admin-bar-copy").on("click",e),o("body").on("click",".cdp-editor-gutenberg-copy",e),o("body").on("click",".cdp-copy-btn-editor",e),o("body").on("click",".cdp-copy-modal-button",function(){let e=o(this).attr("data-cdp-btn"),n=["copy-quick","copy-custom","copy-custom-link"];if(n.includes(e)){let d={type:e},p=c(),l=o(".cdp-modal-checkboxes").find(".cdp-modal-option-r");if(p.length<=0)return void o.cdpNotification("warning",cdpModalJS.strRowCopyTryAgain);let a=o(".cdp-modal-input-profiles-r").val();d.custom={},d.times=o(".cdp-modal-input-times").val(),d.swap="2"==o(".cdp-swap").val()?"true":"false",d.profile=a,o(".cdp-multiple-sites-selector").is(":hidden")?d.site=o(".cdp-multi-site-at-once-selector select").val():d.site=o('.cdp-input-dynamic[name="tooltip-which-site-second-modal"]').val();let s=["clear","alloptions","custom","custom_named","null","undefined",null,void 0];if(a&&!s.includes(a)&&(t=a),!d.profile){if(!t||s.includes(t))return o.cdpNotification("warning",cdpModalJS.strSettCopyIssue),void i();d.profile=t}for(let t=0;t<l.length;++t)d.custom[o(l[t]).attr("name")]=o(l[t]).is(":checked");setTimeout(()=>{let t=o.cdptipster.instances();for(instance in t)t[instance].close()},10),function(t=(()=>{})){window.onbeforeunload=(()=>cdpModalJS.strCopyInProgress),$e=o(".cdp-copy-loader-overlay"),$e.is(":hidden")&&($e.show(),$e.animate({opacity:1},300,function(){t(!0)}))}(()=>{o.ajax({type:"POST",url:ajaxurl,data:{action:"cdp_action_handling",token:"cdp",f:"copy_post",origin:"modal",id:p,data:d},timeout:0}).done(function(t){o.isJsonString(t)&&(t=o.cdpParse(t));"error"==t.status?o.cdpNotification("error",cdpModalJS.strPostCopyIssue):(i(),e==n[2]||t.link&&t.link.length>0?"pConv"==t.link?(o.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"delete_success_img"}),"-28"==o(".cdp-copy-alert-success").position().top&&o(".cdp-copy-alert-success").animate({top:"32px",opacity:1},300),setTimeout(()=>{"32"==o(".cdp-copy-alert-success").position().top&&o(".cdp-copy-alert-success").animate({top:"-28px",opacity:0},300)},3e3),o.cdpModalClose("cdp-copy-modal-global")):window.location.href=t.link:"undefined"==typeof pagenow||"post"==pagenow||"page"==pagenow?(o.post(ajaxurl,{action:"cdp_action_handling",token:"cdp",f:"delete_success_img"}),"-28"==o(".cdp-copy-alert-success").position().top&&o(".cdp-copy-alert-success").animate({top:"32px",opacity:1},300),setTimeout(()=>{"32"==o(".cdp-copy-alert-success").position().top&&o(".cdp-copy-alert-success").animate({top:"-28px",opacity:0},300)},3e3),o("#cdp_notice_error_modal").length>0&&(o("#cdp_notice_error_modal").show(),o("#cdp_notice_error_modal").fadeIn(300),o("#cdp_notice_error_modal").animate({opacity:1},500),o("#cdp_notice_error_modal .cdp_notice_content").animate({opacity:1,top:"50%"},500)),o.cdpModalClose("cdp-copy-modal-global")):location.reload())}).fail(function(t){o.cdpNotification("error",cdpModalJS.strPostCopyIssueConsoleInfo),i(),console.log(t),console.log(t.responseText)})})}else o.cdpNotification(cdpModalJS.strRecogBtnIssue)}),o("body").on("click",".cdp-modal-copy-times-content .cdp-multiple-sites-selector",function(){o(".cdp-modal-copy-times-content .cdp-modal-select-2").fadeOut(300),o(".cdp-modal-copy-times-content .cdp-multiple-sites-selector").hide(300),o(".cdp-modal-copy-times-content .cdp-multi-site-at-once-selector").show(300)}),o("body").on("change","select.cdp-modal-input-profiles-r",function(){let e=["clear","alloptions","custom","custom_named","null","undefined",null,void 0];o(this).val()&&!e.includes(o(this).val())&&(t=o(this).val())}),o("#posts-filter").on("submit",function(t){"cdp_bulk_copy"==o("#bulk-action-selector-top").val()&&(t.preventDefault(),$ids=c(),$ids.length<=0?o.cdpNotification("warning",cdpModalJS.strRowCopyIssue):e())})});
|
copy-delete-posts.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Copy & Delete Posts
|
5 |
* Plugin URI: https://copy-delete-posts.com
|
6 |
* Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
|
7 |
-
* Version: 1.3.
|
8 |
* Author: Copy Delete Posts
|
9 |
* Author URI: https://copy-delete-posts.com/
|
10 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
@@ -30,7 +30,7 @@ analyst_init(array(
|
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
// Plugin constants
|
33 |
-
define('CDP_VERSION', '1.3.
|
34 |
define('CDP_WP_VERSION', get_bloginfo('version'));
|
35 |
define('CDP_SCRIPT_DEBUG', false);
|
36 |
define('CDP_ROOT_DIR', __DIR__);
|
@@ -126,6 +126,10 @@ add_action('upgrader_process_complete', function () {
|
|
126 |
*/
|
127 |
add_action('cdp_loaded', function () {
|
128 |
|
|
|
|
|
|
|
|
|
129 |
// Include footer banner
|
130 |
include_once trailingslashit(__DIR__) . '/banner/misc.php';
|
131 |
|
@@ -262,9 +266,11 @@ add_action('admin_enqueue_scripts', function () {
|
|
262 |
wp_enqueue_script('cdp', "{$cdp_plug_url}/assets/js/cdp{$min}.js", '', $ver, true);
|
263 |
|
264 |
wp_enqueue_script('cdp-modal', "{$cdp_plug_url}/assets/js/cdp-modal{$min}.js", '', $ver, true);
|
265 |
-
|
266 |
-
|
267 |
-
|
|
|
|
|
268 |
cdp_load_localize_end_js();
|
269 |
});
|
270 |
/** –– * */
|
@@ -381,9 +387,11 @@ add_filter('post_row_actions', function ($actions, $post) {
|
|
381 |
$type = $post->post_type;
|
382 |
|
383 |
// If user want to see the copy buton here pass
|
384 |
-
if (isset($g['cdp-display-posts']) && $g['cdp-display-posts'] == 'true')
|
385 |
-
|
386 |
-
|
|
|
|
|
387 |
|
388 |
return $actions;
|
389 |
}, 10, 2);
|
@@ -405,9 +413,11 @@ add_filter('page_row_actions', function ($actions, $page) {
|
|
405 |
$type = $page->post_type;
|
406 |
|
407 |
// If user want to see the copy buton here pass
|
408 |
-
if (isset($g['cdp-display-posts']) && $g['cdp-display-posts'] == 'true')
|
409 |
-
|
410 |
-
|
|
|
|
|
411 |
|
412 |
return $actions;
|
413 |
}, 10, 2);
|
@@ -426,8 +436,9 @@ add_filter('bulk_actions-edit-post', function ($bulk_actions) {
|
|
426 |
else
|
427 |
$g = cdp_default_global_options();
|
428 |
|
429 |
-
if (isset($g['cdp-display-bulk']) && $g['cdp-display-bulk'] == 'true')
|
430 |
-
|
|
|
431 |
|
432 |
return $bulk_actions;
|
433 |
});
|
@@ -446,8 +457,9 @@ add_filter('bulk_actions-edit-page', function ($bulk_actions) {
|
|
446 |
else
|
447 |
$g = cdp_default_global_options();
|
448 |
|
449 |
-
if (isset($g['cdp-display-bulk']) && $g['cdp-display-bulk'] == 'true')
|
450 |
-
|
|
|
451 |
|
452 |
return $bulk_actions;
|
453 |
});
|
@@ -853,7 +865,7 @@ function cdp_load_localize_end_js() {
|
|
853 |
'strDefCopySettingsLink' => __('here', 'copy-delete-posts'),
|
854 |
'strCopyToOtherSiteHtml' => __('If you’re on a multisite you can copy it to other sites with the Premium Plugin. <a href="https://sellcodes.com/CylMIdJD" target="_blank">Order it now!</a>', 'copy-delete-posts'),
|
855 |
'strPremFeatureHtml' => __('This is a Premium Feature.<br><a href="https://sellcodes.com/CylMIdJD" target="_blank">Check it out and upgrade today</a>,<br>we made it <b>really affordable!</b>', 'copy-delete-posts'),
|
856 |
-
'strPreOrderHtml' => __('
|
857 |
'strMultisiteCanCopy' => __('If you’re on a multisite you can copy it to other sites.', 'copy-delete-posts'),
|
858 |
'strChangeTypeOfCopy' => __('Change the type of this copy <span class="cdp-premium-icon cdp-big-icon"></span>', 'copy-delete-posts'),
|
859 |
'strPostDuplicateOf' => __('This post is a duplicate of', 'copy-delete-posts'),
|
@@ -932,7 +944,8 @@ function cdp_default_global_options() {
|
|
932 |
'cdp-references-edit' => 'false',
|
933 |
'cdp-premium-import' => 'false',
|
934 |
'cdp-premium-hide-tooltip' => 'false',
|
935 |
-
'cdp-
|
|
|
936 |
);
|
937 |
}
|
938 |
|
4 |
* Plugin Name: Copy & Delete Posts
|
5 |
* Plugin URI: https://copy-delete-posts.com
|
6 |
* Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
|
7 |
+
* Version: 1.3.1
|
8 |
* Author: Copy Delete Posts
|
9 |
* Author URI: https://copy-delete-posts.com/
|
10 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
// Plugin constants
|
33 |
+
define('CDP_VERSION', '1.3.1');
|
34 |
define('CDP_WP_VERSION', get_bloginfo('version'));
|
35 |
define('CDP_SCRIPT_DEBUG', false);
|
36 |
define('CDP_ROOT_DIR', __DIR__);
|
126 |
*/
|
127 |
add_action('cdp_loaded', function () {
|
128 |
|
129 |
+
if (get_option('_cdp_globals', false) === false) {
|
130 |
+
do_action('cdp_plugin_setup');
|
131 |
+
}
|
132 |
+
|
133 |
// Include footer banner
|
134 |
include_once trailingslashit(__DIR__) . '/banner/misc.php';
|
135 |
|
266 |
wp_enqueue_script('cdp', "{$cdp_plug_url}/assets/js/cdp{$min}.js", '', $ver, true);
|
267 |
|
268 |
wp_enqueue_script('cdp-modal', "{$cdp_plug_url}/assets/js/cdp-modal{$min}.js", '', $ver, true);
|
269 |
+
if ($g['cdp-content-custom'] == 'true') {
|
270 |
+
wp_enqueue_script('cdp-bulk', "{$cdp_plug_url}/assets/js/cdp-bulk{$min}.js", '', $ver, true);
|
271 |
+
$cdpBulkJSArgs = ['strOptCopy' => __('Copy', 'copy-delete-posts')];
|
272 |
+
wp_localize_script('cdp-bulk', 'cdpBulkJS', $cdpBulkJSArgs);
|
273 |
+
}
|
274 |
cdp_load_localize_end_js();
|
275 |
});
|
276 |
/** –– * */
|
387 |
$type = $post->post_type;
|
388 |
|
389 |
// If user want to see the copy buton here pass
|
390 |
+
if (isset($g['cdp-display-posts']) && $g['cdp-display-posts'] == 'true') {
|
391 |
+
if (($type == 'post' && $g['cdp-content-posts'] == 'true') || ($type != 'post' && $g['cdp-content-custom'] == 'true')) {
|
392 |
+
$actions['cdp_copy'] = "<a href='#'><span class='cdp-copy-button cdp-tooltip-copy' x='" . $type . "' title='" . __('test', 'copy-delete-posts') . "' data-cdp-id='{$post->ID}'>" . __('Copy', 'copy-delete-posts') . "</span></a>";
|
393 |
+
}
|
394 |
+
}
|
395 |
|
396 |
return $actions;
|
397 |
}, 10, 2);
|
413 |
$type = $page->post_type;
|
414 |
|
415 |
// If user want to see the copy buton here pass
|
416 |
+
if (isset($g['cdp-display-posts']) && $g['cdp-display-posts'] == 'true') {
|
417 |
+
if (($type == 'page' && $g['cdp-content-pages'] == 'true') || ($type != 'page' && $g['cdp-content-custom'] == 'true')) {
|
418 |
+
$actions['cdp_copy'] = "<a href='#'><span class='cdp-copy-button cdp-tooltip-copy' title='" . __('test', 'copy-delete-posts') . "' data-cdp-id='{$page->ID}'>" . __('Copy', 'copy-delete-posts') . "</span></a>";
|
419 |
+
}
|
420 |
+
}
|
421 |
|
422 |
return $actions;
|
423 |
}, 10, 2);
|
436 |
else
|
437 |
$g = cdp_default_global_options();
|
438 |
|
439 |
+
if (isset($g['cdp-display-bulk']) && $g['cdp-display-bulk'] == 'true' && isset($g['cdp-content-posts']) && $g['cdp-content-posts'] == 'true') {
|
440 |
+
$bulk_actions['cdp_bulk_copy'] = __('Copy', 'copy-delete-posts');
|
441 |
+
}
|
442 |
|
443 |
return $bulk_actions;
|
444 |
});
|
457 |
else
|
458 |
$g = cdp_default_global_options();
|
459 |
|
460 |
+
if (isset($g['cdp-display-bulk']) && $g['cdp-display-bulk'] == 'true' && isset($g['cdp-content-pages']) && $g['cdp-content-pages'] == 'true') {
|
461 |
+
$bulk_actions['cdp_bulk_copy'] = __('Copy', 'copy-delete-posts');
|
462 |
+
}
|
463 |
|
464 |
return $bulk_actions;
|
465 |
});
|
865 |
'strDefCopySettingsLink' => __('here', 'copy-delete-posts'),
|
866 |
'strCopyToOtherSiteHtml' => __('If you’re on a multisite you can copy it to other sites with the Premium Plugin. <a href="https://sellcodes.com/CylMIdJD" target="_blank">Order it now!</a>', 'copy-delete-posts'),
|
867 |
'strPremFeatureHtml' => __('This is a Premium Feature.<br><a href="https://sellcodes.com/CylMIdJD" target="_blank">Check it out and upgrade today</a>,<br>we made it <b>really affordable!</b>', 'copy-delete-posts'),
|
868 |
+
'strPreOrderHtml' => __('This is a Premium Feature.<br><a href="https://sellcodes.com/CylMIdJD" target="_blank">Check it out and upgrade today</a>,<br>we made it <b>really affordable!</b>', 'copy-delete-posts'),
|
869 |
'strMultisiteCanCopy' => __('If you’re on a multisite you can copy it to other sites.', 'copy-delete-posts'),
|
870 |
'strChangeTypeOfCopy' => __('Change the type of this copy <span class="cdp-premium-icon cdp-big-icon"></span>', 'copy-delete-posts'),
|
871 |
'strPostDuplicateOf' => __('This post is a duplicate of', 'copy-delete-posts'),
|
944 |
'cdp-references-edit' => 'false',
|
945 |
'cdp-premium-import' => 'false',
|
946 |
'cdp-premium-hide-tooltip' => 'false',
|
947 |
+
'cdp-premium-replace-domain' => 'false',
|
948 |
+
'cdp-menu-in-settings' => 'false'
|
949 |
);
|
950 |
}
|
951 |
|
languages/index.html
DELETED
File without changes
|
menu/configuration.php
CHANGED
@@ -170,7 +170,7 @@ function cdp_configuration() {
|
|
170 |
|
171 |
$preSelProf = 0;
|
172 |
$gepres = get_option('_cdp_preselections', array());
|
173 |
-
|
174 |
if (array_key_exists(get_current_user_id(), $gepres)) {
|
175 |
$preSelProf = $gepres[get_current_user_id()];
|
176 |
}
|
@@ -593,6 +593,13 @@ function cdp_configuration() {
|
|
593 |
<input id="cdp-o-premium-hide-tooltip"<?php echo ((!$areWePro)?' disabled="true"':''); ?> <?php echo ($areWePro && $gos['cdp-premium-hide-tooltip'] == 'true')?'checked ':''; ?> type="checkbox" class="cdp-other-inputs" name="cdp-premium-hide-tooltip" />
|
594 |
<span class="cdp-relative cdp-tooltip-premium" data-top="5"><?php _e('Hide copy tooltip on hover and only show the button', 'copy-delete-posts'); ?> <span class="cdp-premium-icon cdp-big-icon" style="right: -30px"></span></span>
|
595 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
596 |
<label for="cdp-o-premium-import">
|
597 |
<?php if (!isset($gos['cdp-premium-import'])) $gos['cdp-premium-import'] = false; ?>
|
598 |
<input id="cdp-o-premium-import"<?php echo ((!$areWePro)?' disabled="true"':''); ?> <?php echo ($areWePro && $gos['cdp-premium-import'] == 'true')?'checked ':''; ?> type="checkbox" class="cdp-other-inputs" name="cdp-premium-import" />
|
170 |
|
171 |
$preSelProf = 0;
|
172 |
$gepres = get_option('_cdp_preselections', array());
|
173 |
+
|
174 |
if (array_key_exists(get_current_user_id(), $gepres)) {
|
175 |
$preSelProf = $gepres[get_current_user_id()];
|
176 |
}
|
593 |
<input id="cdp-o-premium-hide-tooltip"<?php echo ((!$areWePro)?' disabled="true"':''); ?> <?php echo ($areWePro && $gos['cdp-premium-hide-tooltip'] == 'true')?'checked ':''; ?> type="checkbox" class="cdp-other-inputs" name="cdp-premium-hide-tooltip" />
|
594 |
<span class="cdp-relative cdp-tooltip-premium" data-top="5"><?php _e('Hide copy tooltip on hover and only show the button', 'copy-delete-posts'); ?> <span class="cdp-premium-icon cdp-big-icon" style="right: -30px"></span></span>
|
595 |
</label>
|
596 |
+
<?php if (is_multisite() || !$areWePro) { ?>
|
597 |
+
<label for="cdp-o-premium-replace-domain">
|
598 |
+
<?php if (!isset($gos['cdp-premium-replace-domain'])) $gos['cdp-premium-replace-domain'] = false; ?>
|
599 |
+
<input id="cdp-o-premium-replace-domain"<?php echo ((!$areWePro)?' disabled="true"':''); ?> <?php echo ($areWePro && $gos['cdp-premium-replace-domain'] == 'true')?'checked ':''; ?> type="checkbox" class="cdp-other-inputs" name="cdp-premium-replace-domain" />
|
600 |
+
<span class="cdp-relative cdp-tooltip-premium" data-top="5"><?php _e('Adjust URLs in post content for new subsite', 'copy-delete-posts'); ?> <span class="cdp-premium-icon cdp-big-icon" style="right: -30px"></span></span>
|
601 |
+
</label>
|
602 |
+
<?php } ?>
|
603 |
<label for="cdp-o-premium-import">
|
604 |
<?php if (!isset($gos['cdp-premium-import'])) $gos['cdp-premium-import'] = false; ?>
|
605 |
<input id="cdp-o-premium-import"<?php echo ((!$areWePro)?' disabled="true"':''); ?> <?php echo ($areWePro && $gos['cdp-premium-import'] == 'true')?'checked ':''; ?> type="checkbox" class="cdp-other-inputs" name="cdp-premium-import" />
|
menu/modal.php
CHANGED
@@ -221,6 +221,17 @@ function cdp_modal($screen = '', $profiles = array()) {
|
|
221 |
</div>
|
222 |
</div>
|
223 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
</div>
|
225 |
</div>
|
226 |
|
@@ -230,7 +241,7 @@ function cdp_modal($screen = '', $profiles = array()) {
|
|
230 |
|
231 |
<div class="cdp-center cdp-p-25-h">
|
232 |
<button class="cdp-button cdp-copy-modal-button cdp-f-s-15 cdp-f-w-regular" data-cdp-btn="copy-custom" style="height:44px; width:211px;padding:0 20px;line-height: 44px;"><?php _e('Copy it!', 'copy-delete-posts'); ?></button>
|
233 |
-
<?php if (isset($globals) && array_key_exists('afterCopy', $globals) && $globals['afterCopy'] == '3'): ?>
|
234 |
<button class="cdp-button cdp-copy-modal-button cdp-p-right-h cdp-f-s-15 cdp-f-w-regular" data-cdp-btn="copy-custom-link" style="height:44px; width:292px;padding:0 20px;line-height: 44px;margin-left: 15px !important;"><?php _e('Copy and jump to editing', 'copy-delete-posts'); ?></button>
|
235 |
<?php endif; ?>
|
236 |
</div>
|
221 |
</div>
|
222 |
</div>
|
223 |
</div>
|
224 |
+
<?php if (is_multisite()) { ?>
|
225 |
+
<div class="cdp-center cdp-multiple-sites-selector">
|
226 |
+
(<?php _e('click here to select multiple sites', 'copy-delete-posts'); ?>)
|
227 |
+
</div>
|
228 |
+
<div class="cdp-center cdp-multi-site-at-once-selector" style="display: none;">
|
229 |
+
<select multiple>
|
230 |
+
<option value="-1" selected><?php _e('this site', 'copy-delete-posts'); ?></option>
|
231 |
+
<?php if ($areWePro && function_exists('cdpp_get_sites')) echo cdpp_get_sites(true); ?>
|
232 |
+
</select>
|
233 |
+
</div>
|
234 |
+
<?php } ?>
|
235 |
</div>
|
236 |
</div>
|
237 |
|
241 |
|
242 |
<div class="cdp-center cdp-p-25-h">
|
243 |
<button class="cdp-button cdp-copy-modal-button cdp-f-s-15 cdp-f-w-regular" data-cdp-btn="copy-custom" style="height:44px; width:211px;padding:0 20px;line-height: 44px;"><?php _e('Copy it!', 'copy-delete-posts'); ?></button>
|
244 |
+
<?php if (isset($globals) && is_array($globals) && array_key_exists('afterCopy', $globals) && $globals['afterCopy'] == '3'): ?>
|
245 |
<button class="cdp-button cdp-copy-modal-button cdp-p-right-h cdp-f-s-15 cdp-f-w-regular" data-cdp-btn="copy-custom-link" style="height:44px; width:292px;padding:0 20px;line-height: 44px;margin-left: 15px !important;"><?php _e('Copy and jump to editing', 'copy-delete-posts'); ?></button>
|
246 |
<?php endif; ?>
|
247 |
</div>
|
menu/tooltips.php
CHANGED
@@ -292,7 +292,7 @@ function cdp_tooltip_content($profiles = array()) {
|
|
292 |
|
293 |
<div class="cdp-center cdp-padding" style="min-width: 420px; padding-bottom: 10px;">
|
294 |
<button class="cdp-button cdp-tooltip-btn-copy cdp-f-s-15 cdp-f-s-regular" data-cdp-btn="copy-custom" style="height:44px; width:211px;padding:0 20px;line-height: 44px;border-radius: 3px;"><?php _e('Copy it!', 'copy-delete-posts'); ?></button>
|
295 |
-
<?php if (isset($globals) && array_key_exists('afterCopy', $globals) && $globals['afterCopy'] == '3'): ?>
|
296 |
<button class="cdp-button cdp-tooltip-btn-copy cdp-f-s-15 cdp-f-s-regular" data-cdp-btn="copy-custom-link" style="height:44px; width:292px;padding:0 20px;line-height: 44px;border-radius: 3px;margin-left: 15px !important;"><?php _e('Copy and jump to editing', 'copy-delete-posts'); ?></button>
|
297 |
<?php endif; ?>
|
298 |
</div>
|
292 |
|
293 |
<div class="cdp-center cdp-padding" style="min-width: 420px; padding-bottom: 10px;">
|
294 |
<button class="cdp-button cdp-tooltip-btn-copy cdp-f-s-15 cdp-f-s-regular" data-cdp-btn="copy-custom" style="height:44px; width:211px;padding:0 20px;line-height: 44px;border-radius: 3px;"><?php _e('Copy it!', 'copy-delete-posts'); ?></button>
|
295 |
+
<?php if (isset($globals) && is_array($globals) && array_key_exists('afterCopy', $globals) && $globals['afterCopy'] == '3'): ?>
|
296 |
<button class="cdp-button cdp-tooltip-btn-copy cdp-f-s-15 cdp-f-s-regular" data-cdp-btn="copy-custom-link" style="height:44px; width:292px;padding:0 20px;line-height: 44px;border-radius: 3px;margin-left: 15px !important;"><?php _e('Copy and jump to editing', 'copy-delete-posts'); ?></button>
|
297 |
<?php endif; ?>
|
298 |
</div>
|
post/handler.php
CHANGED
@@ -293,13 +293,19 @@ function cdp_insert_new_post($areWePro = false) {
|
|
293 |
|
294 |
// Get all important pieces of information from requester
|
295 |
$data = ((isset($_POST['data'])) ? cdp_sanitize_array($_POST['data']) : false);
|
296 |
-
$site = isset($_POST['data']['site']) ? sanitize_text_field($_POST['data']['site']) : false;
|
297 |
$times = isset($_POST['data']['times']) ? sanitize_text_field($_POST['data']['times']) : 1;
|
298 |
$swap = isset($_POST['data']['swap']) ? sanitize_text_field($_POST['data']['swap']) : false;
|
299 |
$profile = isset($_POST['data']['profile']) ? sanitize_text_field($_POST['data']['profile']) : 'default';
|
300 |
$origin = isset($_POST['origin']) ? sanitize_text_field($_POST['origin']) : false;
|
301 |
$custom = isset($_POST['data']['custom']) ? cdp_sanitize_array($_POST['data']['custom']) : false;
|
302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
// Load default options for selected profile
|
304 |
$defaults = get_option('_cdp_profiles')[$profile];
|
305 |
|
@@ -319,7 +325,7 @@ function cdp_insert_new_post($areWePro = false) {
|
|
319 |
* @param $settings (array of preselected settings of profile or by user)
|
320 |
* @return array with insert ready values for wordpress post || false on wrong $post
|
321 |
*/
|
322 |
-
function cdp_filter_post($post, $swap, $opt, $settings, $taxonomies = false, $areWePro) {
|
323 |
|
324 |
// If $post has wrong format return false
|
325 |
if (!(is_array($post) || is_object($post)))
|
@@ -368,7 +374,7 @@ function cdp_insert_new_post($areWePro = false) {
|
|
368 |
'post_date' => ($settings['date'] ? $post['post_date'] : current_time('mysql')),
|
369 |
'post_status' => ($settings['status'] ? $post['post_status'] : 'draft'),
|
370 |
'post_author' => ($settings['author'] ? $post['post_author'] : wp_get_current_user()->ID),
|
371 |
-
'post_content' => ($settings['content']) ? $post['post_content'] : ' ',
|
372 |
'comment_status' => $post['comment_status'], // that's additional element which cannot be edited by user
|
373 |
'post_parent' => $post['post_parent'] // that's additional element which cannot be edited by user
|
374 |
);
|
@@ -500,11 +506,25 @@ function cdp_insert_new_post($areWePro = false) {
|
|
500 |
* @return array of new inserted post(s) and error status
|
501 |
* Structure of return array: { ids: [$ids], error: (count of errors) }
|
502 |
*/
|
503 |
-
function cdp_insert_post($id, $data, $times, $areWePro, $isChild = false, $p_ids = null, $site) {
|
504 |
|
505 |
// Get Wordpress database
|
506 |
global $wpdb;
|
507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
// Create empty array for new id(s) and error(s)
|
509 |
$results = array('ids' => array(), 'error' => 0, 'counter' => 0);
|
510 |
|
@@ -531,6 +551,12 @@ function cdp_insert_new_post($areWePro = false) {
|
|
531 |
$base_title = $data['post_title'];
|
532 |
$counter = intval($counter) + 1;
|
533 |
|
|
|
|
|
|
|
|
|
|
|
|
|
534 |
// Handle multisite for premium
|
535 |
if ($areWePro && function_exists('cdpp_handle_multisite'))
|
536 |
cdpp_handle_multisite($site);
|
@@ -545,6 +571,24 @@ function cdp_insert_new_post($areWePro = false) {
|
|
545 |
// Replace title with Counter if multiple copies
|
546 |
$data['post_title'] = str_replace('[Counter]', ($counter + $i), $base_title);
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
// Insert post with filtered data
|
549 |
$new = wp_insert_post($data, true);
|
550 |
|
@@ -674,8 +718,8 @@ function cdp_insert_new_post($areWePro = false) {
|
|
674 |
* @param $path string (path to original file)
|
675 |
* @return string path to new file
|
676 |
*/
|
677 |
-
function cdp_copy_attachment($path = '', $destination) {
|
678 |
-
if ($path == '')
|
679 |
return false;
|
680 |
|
681 |
$dirname = $destination;
|
@@ -883,11 +927,14 @@ function cdp_insert_new_post($areWePro = false) {
|
|
883 |
|
884 |
// Run the machine for selected post(s)
|
885 |
$g = get_option('_cdp_globals', array());
|
886 |
-
|
|
|
|
|
|
|
887 |
|
888 |
// Handle multisite for premium
|
889 |
if ($areWePro && function_exists('cdpp_handle_multisite'))
|
890 |
-
cdpp_handle_multisite($site);
|
891 |
|
892 |
$pConv = false;
|
893 |
if (array_key_exists('postConverter', $g) && $areWePro)
|
@@ -905,7 +952,7 @@ function cdp_insert_new_post($areWePro = false) {
|
|
905 |
|
906 |
// Handle multisite for premium fix
|
907 |
if ($areWePro && function_exists('cdpp_handle_multisite_after'))
|
908 |
-
cdpp_handle_multisite_after($site);
|
909 |
|
910 |
// Check performance by time
|
911 |
$copyTime = microtime(true) - $timein;
|
@@ -1259,17 +1306,6 @@ function cdp_hide_perf_notice() {
|
|
1259 |
*/
|
1260 |
function cdp_debug_function() {
|
1261 |
|
1262 |
-
// require_once('C:/Developer/Web/wordpress/wp-content/plugins/copy-delete-posts-premium/classes/methods.php');
|
1263 |
-
// $settings = get_option('cdpp_aci_settings', false);
|
1264 |
-
// $meth = new CDP_Premium($settings);
|
1265 |
-
// $posts = $meth->load_posts($settings['scan']);
|
1266 |
-
// $filtred = $meth->filter_posts($posts);
|
1267 |
-
|
1268 |
-
$cdp_cron = get_option('_cdp_crons', false);
|
1269 |
-
$things_to_debug = array(
|
1270 |
-
'$cdp_cron' => $cdp_cron
|
1271 |
-
);
|
1272 |
-
var_export($things_to_debug);
|
1273 |
}
|
1274 |
|
1275 |
/** –– **/
|
293 |
|
294 |
// Get all important pieces of information from requester
|
295 |
$data = ((isset($_POST['data'])) ? cdp_sanitize_array($_POST['data']) : false);
|
|
|
296 |
$times = isset($_POST['data']['times']) ? sanitize_text_field($_POST['data']['times']) : 1;
|
297 |
$swap = isset($_POST['data']['swap']) ? sanitize_text_field($_POST['data']['swap']) : false;
|
298 |
$profile = isset($_POST['data']['profile']) ? sanitize_text_field($_POST['data']['profile']) : 'default';
|
299 |
$origin = isset($_POST['origin']) ? sanitize_text_field($_POST['origin']) : false;
|
300 |
$custom = isset($_POST['data']['custom']) ? cdp_sanitize_array($_POST['data']['custom']) : false;
|
301 |
|
302 |
+
if (is_array($_POST['data']['site'])) {
|
303 |
+
$site = isset($_POST['data']['site']) ? cdp_sanitize_array($_POST['data']['site']) : false;
|
304 |
+
} else {
|
305 |
+
$site = isset($_POST['data']['site']) ? sanitize_text_field($_POST['data']['site']) : false;
|
306 |
+
$site = [$site];
|
307 |
+
}
|
308 |
+
|
309 |
// Load default options for selected profile
|
310 |
$defaults = get_option('_cdp_profiles')[$profile];
|
311 |
|
325 |
* @param $settings (array of preselected settings of profile or by user)
|
326 |
* @return array with insert ready values for wordpress post || false on wrong $post
|
327 |
*/
|
328 |
+
function cdp_filter_post($post, $swap, $opt, $settings, $taxonomies = false, $areWePro = false) {
|
329 |
|
330 |
// If $post has wrong format return false
|
331 |
if (!(is_array($post) || is_object($post)))
|
374 |
'post_date' => ($settings['date'] ? $post['post_date'] : current_time('mysql')),
|
375 |
'post_status' => ($settings['status'] ? $post['post_status'] : 'draft'),
|
376 |
'post_author' => ($settings['author'] ? $post['post_author'] : wp_get_current_user()->ID),
|
377 |
+
'post_content' => ($settings['content']) ? addslashes($post['post_content']) : ' ',
|
378 |
'comment_status' => $post['comment_status'], // that's additional element which cannot be edited by user
|
379 |
'post_parent' => $post['post_parent'] // that's additional element which cannot be edited by user
|
380 |
);
|
506 |
* @return array of new inserted post(s) and error status
|
507 |
* Structure of return array: { ids: [$ids], error: (count of errors) }
|
508 |
*/
|
509 |
+
function cdp_insert_post($id, $data, $times, $areWePro, $isChild = false, $p_ids = null, $site = -1) {
|
510 |
|
511 |
// Get Wordpress database
|
512 |
global $wpdb;
|
513 |
|
514 |
+
// Global Settings
|
515 |
+
$gos = cdp_default_global_options();
|
516 |
+
$gosCurrent = get_option('_cdp_globals');
|
517 |
+
|
518 |
+
if (!is_array($gosCurrent) || !isset($gosCurrent['others'])) {
|
519 |
+
$gosCurrent = $gos;
|
520 |
+
} else {
|
521 |
+
$gosCurrent = $gosCurrent['others'];
|
522 |
+
}
|
523 |
+
|
524 |
+
if (!isset($gosCurrent['cdp-premium-replace-domain'])) {
|
525 |
+
$gosCurrent['cdp-premium-replace-domain'] = $gos['cdp-premium-replace-domain'];
|
526 |
+
}
|
527 |
+
|
528 |
// Create empty array for new id(s) and error(s)
|
529 |
$results = array('ids' => array(), 'error' => 0, 'counter' => 0);
|
530 |
|
551 |
$base_title = $data['post_title'];
|
552 |
$counter = intval($counter) + 1;
|
553 |
|
554 |
+
$parsedPostHomeURL = parse_url(get_home_url());
|
555 |
+
$buildUrl = $parsedPostHomeURL['host'];
|
556 |
+
if (isset($parsedPostHomeURL['path'])) {
|
557 |
+
$buildUrl .= $parsedPostHomeURL['path'];
|
558 |
+
}
|
559 |
+
|
560 |
// Handle multisite for premium
|
561 |
if ($areWePro && function_exists('cdpp_handle_multisite'))
|
562 |
cdpp_handle_multisite($site);
|
571 |
// Replace title with Counter if multiple copies
|
572 |
$data['post_title'] = str_replace('[Counter]', ($counter + $i), $base_title);
|
573 |
|
574 |
+
// Adjust URLs for new subsite
|
575 |
+
if ($areWePro && isset($gosCurrent['cdp-premium-replace-domain']) && $gosCurrent['cdp-premium-replace-domain'] == 'true') {
|
576 |
+
if (isset($data['post_content']) && !empty($data['post_content']) && strlen($data['post_content']) > strlen($buildUrl)) {
|
577 |
+
|
578 |
+
$adjustedUrl = get_home_url();
|
579 |
+
|
580 |
+
$data['post_content'] = str_replace('http://www.' . $buildUrl, $adjustedUrl, $data['post_content']);
|
581 |
+
$data['post_content'] = str_replace('http://' . $buildUrl, $adjustedUrl, $data['post_content']);
|
582 |
+
$data['post_content'] = str_replace('https://www.' . $buildUrl, $adjustedUrl, $data['post_content']);
|
583 |
+
$data['post_content'] = str_replace('https://' . $buildUrl, $adjustedUrl, $data['post_content']);
|
584 |
+
$data['post_content'] = str_replace('http://www.' . $buildUrl, $adjustedUrl, $data['post_content']);
|
585 |
+
$data['post_content'] = str_replace('http://' . $buildUrl, $adjustedUrl, $data['post_content']);
|
586 |
+
$data['post_content'] = str_replace('https://www.' . $buildUrl, $adjustedUrl, $data['post_content']);
|
587 |
+
$data['post_content'] = str_replace('https://' . $buildUrl, $adjustedUrl, $data['post_content']);
|
588 |
+
|
589 |
+
}
|
590 |
+
}
|
591 |
+
|
592 |
// Insert post with filtered data
|
593 |
$new = wp_insert_post($data, true);
|
594 |
|
718 |
* @param $path string (path to original file)
|
719 |
* @return string path to new file
|
720 |
*/
|
721 |
+
function cdp_copy_attachment($path = '', $destination = '') {
|
722 |
+
if ($path == '' || $destination == '')
|
723 |
return false;
|
724 |
|
725 |
$dirname = $destination;
|
927 |
|
928 |
// Run the machine for selected post(s)
|
929 |
$g = get_option('_cdp_globals', array());
|
930 |
+
|
931 |
+
for ($i = 0; $i < sizeof($site); ++$i) {
|
932 |
+
$new_insertions = cdp_process_ids($ids, $swap, $settings, $times, $site[$i], $areWePro, $g);
|
933 |
+
}
|
934 |
|
935 |
// Handle multisite for premium
|
936 |
if ($areWePro && function_exists('cdpp_handle_multisite'))
|
937 |
+
cdpp_handle_multisite($site[0]);
|
938 |
|
939 |
$pConv = false;
|
940 |
if (array_key_exists('postConverter', $g) && $areWePro)
|
952 |
|
953 |
// Handle multisite for premium fix
|
954 |
if ($areWePro && function_exists('cdpp_handle_multisite_after'))
|
955 |
+
cdpp_handle_multisite_after($site[0]);
|
956 |
|
957 |
// Check performance by time
|
958 |
$copyTime = microtime(true) - $timein;
|
1306 |
*/
|
1307 |
function cdp_debug_function() {
|
1308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
}
|
1310 |
|
1311 |
/** –– **/
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: CopyDeletePosts, copydelete
|
3 |
Tags: Duplicate post, Copy posts, Copy pages, Duplicate posts, Duplicate pages, Clone posts, Clone pages, Delete posts, Delete pages, Duplicator, copy post, copy page
|
4 |
Requires at least: 4.6
|
5 |
-
Tested up to: 6.0
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
9 |
|
@@ -11,7 +11,8 @@ Duplicate post
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
**Try it out on your free dummy site: Click here => [https://tastewp.com/plugins/copy-delete-posts](https://tastewp.com/
|
|
|
15 |
|
16 |
Massively increase your WordPress productivity!
|
17 |
|
@@ -138,6 +139,9 @@ Other duplicate post plugins mostly only allow you to duplicate post to the same
|
|
138 |
= Is this plugin GDPR friendly? =
|
139 |
Copy Delete Posts WordPress plugin doesn’t store any site visitor information so it is completely GDPR friendly.
|
140 |
|
|
|
|
|
|
|
141 |
= Is the plugin also available in my language? =
|
142 |
So far we have translated the plugin into these languages:
|
143 |
|
@@ -173,6 +177,22 @@ Vietnamese: [Sao chép bài đăng, sao chép trang, sao chép bài đăng tùy
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
= 1.3.0 =
|
177 |
* Version fully tested with WordPress 6.0
|
178 |
* Removed unnecessary error logging
|
@@ -339,20 +359,18 @@ Vietnamese: [Sao chép bài đăng, sao chép trang, sao chép bài đăng tùy
|
|
339 |
* Initial release
|
340 |
|
341 |
== Upgrade Notice ==
|
342 |
-
= 1.3.
|
343 |
-
* Version fully tested with WordPress 6.0
|
344 |
-
* Removed unnecessary
|
345 |
-
*
|
346 |
-
* Fixed
|
347 |
-
* Fixed
|
348 |
-
* Fixed issue
|
349 |
-
* Fixed
|
350 |
-
*
|
351 |
-
* Fixed
|
352 |
-
*
|
353 |
-
*
|
354 |
-
*
|
355 |
-
*
|
356 |
-
*
|
357 |
-
* Added dedicated solution for Elementor posts and added duplication of cached CSS file
|
358 |
-
* Added support for SeedProd builder, added dedicated duplication for CSS files
|
2 |
Contributors: CopyDeletePosts, copydelete
|
3 |
Tags: Duplicate post, Copy posts, Copy pages, Duplicate posts, Duplicate pages, Clone posts, Clone pages, Delete posts, Delete pages, Duplicator, copy post, copy page
|
4 |
Requires at least: 4.6
|
5 |
+
Tested up to: 6.0.1
|
6 |
+
Stable tag: 1.3.1
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
**Try it out on your free dummy site: Click here => [https://tastewp.com/plugins/copy-delete-posts](https://demo.tastewp.com/cdp).**
|
15 |
+
(this trick works for all plugins in the WP repo - just replace "wordpress" with "tastewp" in the URL)
|
16 |
|
17 |
Massively increase your WordPress productivity!
|
18 |
|
139 |
= Is this plugin GDPR friendly? =
|
140 |
Copy Delete Posts WordPress plugin doesn’t store any site visitor information so it is completely GDPR friendly.
|
141 |
|
142 |
+
= ACF incompatibility =
|
143 |
+
ACF is not fully supported by Copy Delete Post, as ACF is something more than a simple post. The plugin can only cop native posts and pages ( that are aligned with WordPress standards ). ACF does not stick with these standards as they put multiple posts attached to one post ID, which is visible on the list, while others are hidden. So it’s tricky but our co founder is working on adding ACF plugin in the future ( c priority ).
|
144 |
+
|
145 |
= Is the plugin also available in my language? =
|
146 |
So far we have translated the plugin into these languages:
|
147 |
|
177 |
|
178 |
== Changelog ==
|
179 |
|
180 |
+
= 1.3.1 =
|
181 |
+
* Version fully tested with WordPress 6.0.1 + Multisite
|
182 |
+
* Removed unnecessary debug code
|
183 |
+
* Fixed issues with falsive attachment duplication
|
184 |
+
* Fixed issue inside tooltip while redirect to edit screen option was enabled
|
185 |
+
* Fixed issue while during duplication notice "Please select settings" appeared
|
186 |
+
* Fixed issue with multi-post duplication to different subsite
|
187 |
+
* Fixed post type restrictions, copy option won't appear in dropdown while copying is forbidden
|
188 |
+
* Fixed corner cases where copy action button was not displayed in subsites
|
189 |
+
* Fixed issues with backslashes and unicode characters - they should copied correctly now
|
190 |
+
* Default WordPress Posts and Pages are not longer treated as custom posts
|
191 |
+
* Resolved issues with scheduled clean-ups - sometimes this option settings were blank
|
192 |
+
* Resolved all deprecated warnings with PHP 8+
|
193 |
+
* NEW: Added automatic URL adjustment for multisites (premium)
|
194 |
+
* NEW: Added possibility to copy into multiple subsites at once - inside bulk modal (premium)
|
195 |
+
|
196 |
= 1.3.0 =
|
197 |
* Version fully tested with WordPress 6.0
|
198 |
* Removed unnecessary error logging
|
359 |
* Initial release
|
360 |
|
361 |
== Upgrade Notice ==
|
362 |
+
= 1.3.1 =
|
363 |
+
* Version fully tested with WordPress 6.0.1 + Multisite
|
364 |
+
* Removed unnecessary debug code
|
365 |
+
* Fixed issues with falsive attachment duplication
|
366 |
+
* Fixed issue inside tooltip while redirect to edit screen option was enabled
|
367 |
+
* Fixed issue while during duplication notice "Please select settings" appeared
|
368 |
+
* Fixed issue with multi-post duplication to different subsite
|
369 |
+
* Fixed post type restrictions, copy option won't appear in dropdown while copying is forbidden
|
370 |
+
* Fixed corner cases where copy action button was not displayed in subsites
|
371 |
+
* Fixed issues with backslashes and unicode characters - they should copied correctly now
|
372 |
+
* Default WordPress Posts and Pages are not longer treated as custom posts
|
373 |
+
* Resolved issues with scheduled clean-ups - sometimes this option settings were blank
|
374 |
+
* Resolved all deprecated warnings with PHP 8+
|
375 |
+
* NEW: Added automatic URL adjustment for multisites (premium)
|
376 |
+
* NEW: Added possibility to copy into multiple subsites at once - inside bulk modal (premium)
|
|
|
|