Changeset 2386984
- Timestamp:
- 09/23/2020 09:56:56 AM (5 years ago)
- Location:
- siteattention/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (3 diffs)
-
admin/class-siteattention-admin.php (modified) (1 diff)
-
admin/js/siteattention-module.js (modified) (4 diffs)
-
includes/siteattention_seo_tool.php (modified) (1 diff)
-
siteattention.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
siteattention/trunk/README.txt
r2358836 r2386984 6 6 Requires at least: 4.8 7 7 Tested up to: 5.4 8 Stable tag: 3.0. 58 Stable tag: 3.0.6 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 105 105 * Fixed UI issue 106 106 107 = 3.0.6 = 108 109 * Released published and draft pages features 110 107 111 == Upgrade Notice == 108 112 … … 139 143 140 144 * Fixed UI issue 145 146 = 3.0.6 = 147 148 * Released published and draft pages features -
siteattention/trunk/admin/class-siteattention-admin.php
r2353991 r2386984 135 135 'post_type' => get_current_screen()->id, 136 136 'iid' => $instance_id, 137 'url' => get_permalink( ),137 'url' => get_permalink(get_the_ID()), 138 138 'site_url' => site_url(), 139 139 'pid' => get_the_ID(), -
siteattention/trunk/admin/js/siteattention-module.js
r2353991 r2386984 148 148 getUrl() 149 149 { 150 if(SiteAttentionInfo.published == 'publish'){ 151 SiteAttentionInfo.url = wp.data.select( 'core/editor' ).getPermalink(); 152 } 150 153 return SiteAttentionInfo.url; 151 154 } … … 166 169 getPublished() 167 170 { 168 return SiteAttentionInfo.published === '1'; 171 if(SiteAttentionInfo.published == 'publish'){ 172 SiteAttentionInfo.published = true; 173 } else { 174 SiteAttentionInfo.published = false; 175 } 176 return SiteAttentionInfo.published; 169 177 } 170 178 … … 1133 1141 (new SiteAttentionWordPress()).setScore(); 1134 1142 } 1135 1136 1143 }); 1137 1144 … … 1141 1148 } 1142 1149 }); 1150 1151 var editPost = wp.data.select( 'core/editor' ), lastIsSaving = false; 1152 wp.data.subscribe(function() { 1153 var isSaving = editPost.isSavingPost(); 1154 if ( isSaving !== lastIsSaving && !isSaving ) { 1155 var isCurrentPostPublished = editPost.isCurrentPostPublished(); 1156 var isAutosavingPost = editPost.isAutosavingPost(); 1157 if (isCurrentPostPublished && !isAutosavingPost) { 1158 var getKeywordVal = $('#SiteAttention_list_keyword').val(); 1159 if(getKeywordVal != undefined && getKeywordVal != '') { 1160 lastIsSaving = isSaving; 1161 SiteAttentionInfo.published = 'publish'; 1162 (new SiteAttentionWordPress()).secureRules(); 1163 } 1164 } 1165 } 1166 lastIsSaving = isSaving; 1167 }); 1143 1168 } )(jQuery); -
siteattention/trunk/includes/siteattention_seo_tool.php
r2358836 r2386984 34 34 35 35 36 define ( 'SITEATTENTION_VERSION' , '3.0. 5' );36 define ( 'SITEATTENTION_VERSION' , '3.0.6' ); 37 37 define ( 'SITEATTENTION_NAME' , 'SiteAttention' ); 38 38 define ( 'SITEATTENTION_URL' , SITEATTENTION_API_URL ); -
siteattention/trunk/siteattention.php
r2358836 r2386984 16 16 * Plugin Name: SiteAttention 17 17 * Description: Simple and intuitive SEO tool to help improve seach ranking. 18 * Version: 3.0. 518 * Version: 3.0.6 19 19 * Author: siteattention 20 20 * Author URI: https://siteattention.com … … 25 25 */ 26 26 27 define('SITEATTENTION_API_URL', 'https:// rest.siteattention.com/api');27 define('SITEATTENTION_API_URL', 'https://laraveldev.siteattention.com/api'); 28 28 define('SITEATTENTION_DASH_URL', 'https://dashboard.siteattention.com'); 29 29 define('SITEATTENTION_PL_URL', rtrim(plugin_dir_url(__FILE__), '/'));
Note: See TracChangeset
for help on using the changeset viewer.