WP Meta SEO - Version 4.0.12

Version Description

  • Add : Compatibility with Google Search Console integration
Download this release

Release Info

Developer JoomUnited
Plugin Icon 128x128 WP Meta SEO
Version 4.0.12
Comparing to
See all releases

Code changes from version 4.0.11 to 4.0.12

assets/css/dashboard_widgets.css CHANGED
@@ -13,12 +13,12 @@
13
  }
14
 
15
  .wpms_dashboard_widgets_left{
16
- width: 60%;
17
  float: left;
18
  }
19
 
20
  .wpms_dashboard_widgets_right{
21
- width: 37%;
22
  float: left;
23
  height: 60px;
24
  }
13
  }
14
 
15
  .wpms_dashboard_widgets_left{
16
+ width: 80%;
17
  float: left;
18
  }
19
 
20
  .wpms_dashboard_widgets_right{
21
+ width: 17%;
22
  float: left;
23
  height: 60px;
24
  }
assets/css/main.css CHANGED
@@ -257,6 +257,11 @@
257
  margin-right: 10px;
258
  }
259
 
 
 
 
 
 
260
  .m-t-10 {
261
  margin-top: 10px;
262
  }
@@ -307,13 +312,17 @@
307
  }
308
 
309
  .wpms_width_80 {
310
- width: 80% !important;
311
  }
312
 
313
  .wpms_width_70 {
314
  width: 70%;
315
  }
316
 
 
 
 
 
317
  .wpms_width_50 {
318
  width: 50%;
319
  }
@@ -322,10 +331,42 @@
322
  width: 49%;
323
  }
324
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  .wpms_width_10 {
326
  width: 10%;
327
  }
328
 
 
 
 
 
329
  .wpms-no-shadow {
330
  box-shadow: none;
331
  }
@@ -514,6 +555,9 @@
514
  line-height: normal;
515
  letter-spacing: 1.4px;
516
  color: #568095;
 
 
 
517
  }
518
 
519
  .wpms-form-table .wp-list-table tr,
257
  margin-right: 10px;
258
  }
259
 
260
+ .m-t-0 {
261
+ margin: 0;
262
+ padding: 0;
263
+ }
264
+
265
  .m-t-10 {
266
  margin-top: 10px;
267
  }
312
  }
313
 
314
  .wpms_width_80 {
315
+ width: 80%;
316
  }
317
 
318
  .wpms_width_70 {
319
  width: 70%;
320
  }
321
 
322
+ .wpms_width_60 {
323
+ width: 60%;
324
+ }
325
+
326
  .wpms_width_50 {
327
  width: 50%;
328
  }
331
  width: 49%;
332
  }
333
 
334
+ .wpms_width_45 {
335
+ width: 45%;
336
+ }
337
+
338
+ .wpms_width_40 {
339
+ width: 40%;
340
+ }
341
+
342
+ .wpms_width_35 {
343
+ width: 35%;
344
+ }
345
+
346
+ .wpms_width_30 {
347
+ width: 30%;
348
+ }
349
+
350
+ .wpms_width_25 {
351
+ width: 25%;
352
+ }
353
+
354
+ .wpms_width_20 {
355
+ width: 20%;
356
+ }
357
+
358
+ .wpms_width_15 {
359
+ width: 15%;
360
+ }
361
+
362
  .wpms_width_10 {
363
  width: 10%;
364
  }
365
 
366
+ .wpms_width_5 {
367
+ width: 5%;
368
+ }
369
+
370
  .wpms-no-shadow {
371
  box-shadow: none;
372
  }
555
  line-height: normal;
556
  letter-spacing: 1.4px;
557
  color: #568095;
558
+ white-space: nowrap;
559
+ overflow: hidden;
560
+ text-overflow: ellipsis;
561
  }
562
 
563
  .wpms-form-table .wp-list-table tr,
assets/css/metabox-tabs.css CHANGED
@@ -465,10 +465,10 @@ div.wpmseo-tab-content {
465
  }
466
 
467
  .wpmseotab {
468
- width: 88%;
469
  background: #fff;
470
  float: left;
471
- margin: 0 6%;
472
  box-sizing: border-box;
473
  }
474
 
@@ -493,6 +493,10 @@ div.wpmseo-tab-content {
493
  color: #ffffff;
494
  }
495
 
 
 
 
 
496
  .wpmseotab .optimization-row-box {
497
  padding: 20px 20px 10px 20px;
498
  box-sizing: border-box;
@@ -523,18 +527,6 @@ div.wpmseo-tab-content {
523
  right: 0
524
  }
525
 
526
- .gsc_keywords_filter {
527
- margin: 5px 0;
528
- width: 100%;
529
- float: left;
530
- }
531
-
532
- .gsc_keywords_filter .btnfilter {
533
- vertical-align: middle;
534
- height: 45px;
535
- line-height: 22px;
536
- }
537
-
538
  .wpms_list_gsc_keywords tr td {
539
  font-size: 15px;
540
  font-weight: 500;
@@ -545,6 +537,22 @@ div.wpmseo-tab-content {
545
  color: #404852;
546
  }
547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
  .wpmseo_gsc_keywords thead tr th {
549
  padding: 18px 10px !important;
550
  }
@@ -670,4 +678,227 @@ div.wpmseo-tab-content {
670
  line-height: 1.88;
671
  letter-spacing: 0.8px;
672
  color: #5f879b !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
673
  }
465
  }
466
 
467
  .wpmseotab {
468
+ width: 96%;
469
  background: #fff;
470
  float: left;
471
+ margin: 0 2%;
472
  box-sizing: border-box;
473
  }
474
 
493
  color: #ffffff;
494
  }
495
 
496
+ .wpmseotab.wpmseo_gsc_keywords table tfoot {
497
+ cursor: pointer;
498
+ }
499
+
500
  .wpmseotab .optimization-row-box {
501
  padding: 20px 20px 10px 20px;
502
  box-sizing: border-box;
527
  right: 0
528
  }
529
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  .wpms_list_gsc_keywords tr td {
531
  font-size: 15px;
532
  font-weight: 500;
537
  color: #404852;
538
  }
539
 
540
+ .wpms_list_gsc_keywords tr td.td-page-loader {
541
+ text-align: center;
542
+ margin: 0 !important;
543
+ padding: 0 !important;
544
+ }
545
+
546
+ .wpms_list_gsc_keywords .page-loader {
547
+ width: 100px;
548
+ height: 100px;
549
+ }
550
+
551
+ .wpms_list_gsc_keywords .page-loader-loadmore {
552
+ width: 50px;
553
+ height: 50px;
554
+ }
555
+
556
  .wpmseo_gsc_keywords thead tr th {
557
  padding: 18px 10px !important;
558
  }
678
  line-height: 1.88;
679
  letter-spacing: 0.8px;
680
  color: #5f879b !important;
681
+ }
682
+
683
+
684
+ .wpms-top-description {
685
+ text-align: center;
686
+ font-size: 16px;
687
+ padding: 25px 0;
688
+ font-weight: 500;
689
+ line-height: 1.2;
690
+ }
691
+
692
+ #wpms-csl-search-submit {
693
+ height: 45px;
694
+ margin: 0;
695
+ cursor: pointer;
696
+ white-space: nowrap;
697
+ overflow: hidden;
698
+ text-overflow: ellipsis;
699
+ min-width: unset !important;
700
+ max-width: 150px !important;
701
+ }
702
+
703
+ input.wpms-search-key-csl {
704
+ padding-right: 40px !important;
705
+ }
706
+
707
+ input.wpms-search-key-csl:focus,
708
+ select.obtain,
709
+ input.obtain{
710
+ border-color: #ff8726;
711
+ box-shadow: 0 0 2px #ff8726;
712
+ }
713
+
714
+ .search { position: relative; }
715
+ .search .icons-key-csl-search {
716
+ position: absolute;
717
+ font-size: 30px;
718
+ top: 8px;
719
+ right: 6px;
720
+ opacity: 0.3;
721
+ cursor: pointer;
722
+ }
723
+
724
+ .search .icons-key-csl-search.obtain {
725
+ color : #ff8726;
726
+ opacity: 1;
727
+ }
728
+
729
+ .gsc_keywords .label-filter {
730
+ font-size: 14px;
731
+ font-style: normal;
732
+ font-stretch: normal;
733
+ letter-spacing: 0.7px;
734
+ color: #404852;
735
+ font-family: 'Roboto', sans-serif;
736
+ text-align: center;
737
+ height: 45px;
738
+ line-height: 45px;
739
+ cursor: default;
740
+ white-space: nowrap;
741
+ overflow: hidden;
742
+ text-overflow: ellipsis;
743
+ }
744
+
745
+ .gsc_keywords select {
746
+ height: 45px;
747
+ border-radius: 4px;
748
+ font-size: 14px;
749
+ font-style: normal;
750
+ font-stretch: normal;
751
+ line-height: normal;
752
+ letter-spacing: 0.7px;
753
+ color: #404852;
754
+ font-family: 'Roboto', sans-serif;
755
+ cursor: pointer;
756
+ }
757
+
758
+ .gsc_keywords_type {
759
+ text-align: center;
760
+ }
761
+
762
+ .gsc_keywords_type .material-icons {
763
+ font-size: 28px;
764
+ height: 45px;
765
+ line-height: 45px;
766
+ cursor: pointer;
767
+ }
768
+
769
+ #gsc_keywords_table {
770
+ margin-top: 25px
771
+ }
772
+
773
+ #gsc_keywords_table tr >th:nth-child(4),
774
+ #gsc_keywords_table tr >th:nth-child(5),
775
+ #gsc_keywords_table tr >td:nth-child(4),
776
+ #gsc_keywords_table tr >td:nth-child(5){
777
+ display: none;
778
+ }
779
+
780
+ #gsc_keywords_table label.gsc-sort-by:before {
781
+ font-size: 16px;
782
+ padding-right: 2px;
783
+ }
784
+
785
+ #gsc_keywords_table label.gsc-sort-by.down:before {
786
+ content: '\25bc';
787
+ }
788
+
789
+ #gsc_keywords_table label.gsc-sort-by.up:before {
790
+ content: '\25b2';
791
+ }
792
+
793
+ .filter-row-wrapper-field{position: relative}
794
+ .wpms-popup {
795
+ display: none;
796
+ position : absolute;
797
+ margin: 0;
798
+ padding: 5px 0;
799
+ border-radius: 2px;
800
+ background-color: #fafafa;
801
+ -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
802
+ box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
803
+ }
804
+
805
+ #filter-row-list.wpms-popup{
806
+ width: 130px;
807
+ max-width: 130px;
808
+ color: #555;
809
+ top: 40px;
810
+ left: -50px;
811
+ }
812
+
813
+ #filter-row-list.wpms-popup ul{
814
+ list-style: none;
815
+ text-align: left;
816
+ margin: 0;
817
+ }
818
+
819
+ #filter-row-list.wpms-popup ul li{
820
+ margin: 10px 0;
821
+ padding: 10px 0;
822
+ font-size: 14px;
823
+ font-style: normal;
824
+ font-stretch: normal;
825
+ line-height: normal;
826
+ letter-spacing: 0.7px;
827
+ font-family: 'Roboto', sans-serif;
828
+ }
829
+
830
+
831
+ #filter-row-list.wpms-popup ul li:hover{
832
+ background: #ededed;
833
+ }
834
+
835
+ #filter-row-list.wpms-popup ul li input[type="checkbox"]{
836
+ vertical-align : middle;
837
+ margin: 0 5px 0 15px;
838
+ }
839
+
840
+
841
+
842
+ @media screen and (max-width: 1368px) {
843
+ .gsc_keywords.search_gsc_keywords_content {
844
+ width: 100%;
845
+ margin-bottom: 15px;
846
+ }
847
+
848
+ .gsc_keywords.filter_gsc_keywords_content {
849
+ width: 100%;
850
+ }
851
+
852
+ .gsc_keywords .type-filter-input {
853
+ width: 80% !important;
854
+ margin: 0 !important;
855
+ }
856
+
857
+ .gsc_keywords .label-filter {
858
+ text-align: left;
859
+ width: 15% !important;
860
+ }
861
+
862
+ .gsc_keywords .search {
863
+ width: 80% !important;
864
+ margin-top: 10px;
865
+ }
866
+
867
+ .gsc_keywords .button-search {
868
+ margin-top: 10px;
869
+ width: 15%;
870
+ }
871
+
872
+ .gsc_keywords.filter_gsc_keywords_content .gsc_keywords_time_filter {
873
+ width: 90%;
874
+ margin-left: 0 !important;
875
+ }
876
+ }
877
+
878
+ @media screen and (max-width: 790px) {
879
+ .gsc_keywords .type-filter-input {
880
+ width: 65% !important;
881
+ }
882
+
883
+ .gsc_keywords .label-filter {
884
+ width: 30% !important;
885
+ }
886
+
887
+ .gsc_keywords .search {
888
+ width: 71% !important;
889
+ }
890
+
891
+ .gsc_keywords .button-search {
892
+ width: 28%;
893
+ }
894
+ }
895
+
896
+ @media screen and (min-width: 1368px) {
897
+ .gsc_keywords.search_gsc_keywords_content {
898
+ width: 80%;
899
+ }
900
+
901
+ .gsc_keywords.filter_gsc_keywords_content {
902
+ width: 20%;
903
+ }
904
  }
assets/js/wp-metaseo-metabox.js CHANGED
@@ -319,58 +319,238 @@ jQuery(document).ready(function ($) {
319
  msUpdateDesc();
320
  });
321
 
322
- jQuery('.gsc_keywords_filter .btnfilter').click(function () {
323
- var startDate = $('.startDate').val();
324
- var endDate = $('.endDate').val();
 
 
 
 
 
 
325
  var postId = $('#post_ID').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  jQuery.ajax({
327
  url: ajaxurl,
328
  method: 'POST',
329
  dataType: 'json',
330
  data: {
331
  action: 'wpms_filter_search_keywords',
332
- startDate: startDate,
333
- endDate: endDate,
334
  postId: postId,
 
 
 
 
335
  wpms_nonce: wpms_localize.wpms_nonce
336
  },
337
  success: function (res) {
 
338
  if(res.status){
339
  $('.wpms_load_more_keyword').data('page',2);
340
  $('.wpms_list_gsc_keywords tr').remove();
341
  $('.wpms_list_gsc_keywords').append(res.html);
 
 
342
  }
343
  }
344
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  });
346
 
347
- jQuery('.search-key-csl').click(function () {
348
- var keycsl = $('.wpms-search-key-csl').val();
349
- if (keycsl.trim() === '') {
350
- $('.wpms_list_gsc_keywords tr').show();
 
 
351
  } else {
352
- $('.wpms_list_gsc_keywords tr').hide();
353
- $('.wpms_list_gsc_keywords tr:contains('+ keycsl +')').show();
354
  }
355
 
 
 
 
 
 
 
 
 
 
 
 
356
  });
357
 
358
- jQuery('.wpms_load_more_keyword').click(function () {
359
- var $this = $(this);
360
- var page = $this.data('page');
361
- var startDate = $('.startDate').val();
362
- var endDate = $('.endDate').val();
 
 
 
363
  var postId = $('#post_ID').val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  jQuery.ajax({
365
  url: ajaxurl,
366
  method: 'POST',
367
  dataType: 'json',
368
  data: {
369
  action: 'wpms_filter_search_keywords',
370
- startDate: startDate,
371
- endDate: endDate,
372
  postId: postId,
373
  page:page,
 
 
 
 
374
  wpms_nonce: wpms_localize.wpms_nonce
375
  },
376
  success: function (res) {
@@ -378,10 +558,12 @@ jQuery(document).ready(function ($) {
378
  $this.data('page',res.page);
379
  $('.wpms_list_gsc_keywords tr').remove();
380
  $('.wpms_list_gsc_keywords').append(res.html);
 
 
381
  }
382
  }
383
  });
384
- });
385
 
386
  // Set time out because of tinymce is initialized later then this is done
387
  setTimeout(
@@ -458,7 +640,6 @@ $(document).on("click",".editor-post-permalink-editor__save", function () {
458
  $(document).on("keypress",".editor-post-permalink-editor__edit", function (e) {
459
  if(e.which === 13){
460
  var slug = $(this).val();
461
- console.log(wpmseoMetaboxL10n.wpmseo_permalink_template);
462
  url = wpmseoMetaboxL10n.wpmseo_permalink_template.replace('%postname%', slug).replace('http://', '');
463
  $('#wpmseosnippet').find('.url').html(url);
464
  }
319
  msUpdateDesc();
320
  });
321
 
322
+ jQuery('.gsc_keywords_time_filter select').change(function () {
323
+ wpms_filter_search_keywords();
324
+ });
325
+
326
+ // Call ajax to search keywords
327
+ function wpms_filter_search_keywords() {
328
+ var time = $('select[name="gsc_keywords_time_filter_select"] option:selected').val();
329
+ var keycsl = $('input.wpms-search-key-csl').val().trim().toLocaleString();
330
+ var searchType = $('select[name="filter_type_name"] option:selected').val();
331
  var postId = $('#post_ID').val();
332
+ var showitems = [];
333
+ jQuery('input[name="filter-row-name"]:checked').each(function () {
334
+ showitems.push(this.value);
335
+ });
336
+
337
+ var sorteditem = jQuery("#gsc_keywords_table label.sorted");
338
+ var dataSort = '';
339
+ if (sorteditem.length > 0) {
340
+ dataSort = JSON.stringify([sorteditem.attr('data-sort'), sorteditem.attr('data-order')]);
341
+ }
342
+
343
+ $('tbody#the-list').html('<tr><td colspan="6" class="td-page-loader"><img class="page-loader-loadmore" src="'+wpmseoMetaboxL10n.image_loader+'"></td></tr>');
344
+
345
  jQuery.ajax({
346
  url: ajaxurl,
347
  method: 'POST',
348
  dataType: 'json',
349
  data: {
350
  action: 'wpms_filter_search_keywords',
351
+ time : time,
 
352
  postId: postId,
353
+ showitems : showitems,
354
+ keycsl : keycsl,
355
+ searchType : searchType,
356
+ dataSort : dataSort,
357
  wpms_nonce: wpms_localize.wpms_nonce
358
  },
359
  success: function (res) {
360
+ $('.wpms_load_more_keyword td.td-page-loader').remove();
361
  if(res.status){
362
  $('.wpms_load_more_keyword').data('page',2);
363
  $('.wpms_list_gsc_keywords tr').remove();
364
  $('.wpms_list_gsc_keywords').append(res.html);
365
+ } else {
366
+ $('.wpms_list_gsc_keywords').html('<tr><td colspan="6">'+wpmseoMetaboxL10n.keyword_filter_return+'</td></tr>');
367
  }
368
  }
369
  });
370
+ }
371
+
372
+ jQuery('#wpms-csl-search-submit').click(function (e) {
373
+ var keycsl = jQuery('.wpms-search-key-csl').val().trim().toLocaleString();
374
+
375
+ if (keycsl === '') {
376
+ $('#wpms-search-input-csl').focus();
377
+ }
378
+
379
+ wpms_filter_search_keywords();
380
+ });
381
+
382
+ jQuery('select[name="filter_type_name"]').change(function(){
383
+ var select = $(this).val();
384
+ var placeholder = 'Add keywords like "Apple pie recipe..."';
385
+ if (select === 'page') {
386
+ placeholder = 'Paste URL to fetch the Google Search keywords';
387
+ }
388
+
389
+ $(".icons-key-csl-search").removeClass('obtain');
390
+ $("#wpms-search-input-csl").val('').attr('placeholder', placeholder).focus();
391
+ });
392
+
393
+ jQuery('#wpms-search-input-csl').on('keyup', function() {
394
+ var keycsl = $(this).val();
395
+
396
+ if (keycsl === '') {
397
+ $(".icons-key-csl-search").removeClass('obtain');
398
+ } else {
399
+ $("#wpms-search-input-csl").removeClass('obtain');
400
+ $(".icons-key-csl-search").addClass('obtain');
401
+ }
402
+ });
403
+
404
+ addLinkToSearchBox('page-load');
405
+ jQuery('.icons-key-csl-search').on('click', function() {
406
+ addLinkToSearchBox();
407
+ jQuery("#wpms-search-input-csl").focus();
408
+ jQuery('select[name="filter_type_name"]').val('page');
409
+ return false;
410
+ });
411
+
412
+ function addLinkToSearchBox(action)
413
+ {
414
+ var link = jQuery('#wp-admin-bar-view .ab-item');
415
+ var prelink = jQuery('#wp-admin-bar-preview .ab-item');
416
+ var newlink = jQuery('.is-link');
417
+
418
+ if (link.length || prelink.length) {
419
+ if (link.length) {
420
+ jQuery("#wpms-search-input-csl").val(link.attr('href'));
421
+ }
422
+
423
+ if (prelink.length) {
424
+ jQuery("#wpms-search-input-csl").val(prelink.attr('href'));
425
+ }
426
+ } else {
427
+ if (newlink.length) {
428
+ jQuery("#wpms-search-input-csl").val(newlink.attr('href'));
429
+ }
430
+ }
431
+
432
+ jQuery(".icons-key-csl-search").addClass('obtain');
433
+
434
+ if (action) {
435
+ wpms_filter_search_keywords();
436
+ }
437
+ }
438
+
439
+ // Show filter row
440
+ jQuery('.filter-row').click(function () {
441
+ jQuery('#filter-row-list').toggle('fade');
442
+ });
443
+ // Show filter row outside
444
+ jQuery(document).mouseup(function (e) {
445
+ var container = jQuery("#filter-row-list");
446
+ // if the target of the click isn't the container nor a descendant of the container
447
+ if (!container.is(e.target) && container.has(e.target).length === 0) {
448
+ container.hide('fade');
449
+ }
450
+ });
451
+
452
+ // Set filter row
453
+ jQuery('.filter-row-checkbox').click(function () {
454
+ var showitems = [];
455
+ jQuery('input[name="filter-row-name"]:checked').each(function () {
456
+ showitems.push(this.value);
457
+ });
458
+ jQuery('#gsc_keywords_table tr >th:nth-child(4),#gsc_keywords_table tr >th:nth-child(5),#gsc_keywords_table tr >td:nth-child(4), #gsc_keywords_table tr >td:nth-child(5)').hide();
459
+
460
+
461
+ if (showitems.length > 0) {
462
+ jQuery.each(showitems, function (i, showitem) {
463
+ jQuery('#gsc_keywords_table tr >th:nth-child('+showitem+'), #gsc_keywords_table tr >td:nth-child('+showitem+')').show();
464
+ });
465
+ }
466
+ });
467
+
468
+ function isGutenbergActive() {
469
+ return typeof wp !== 'undefined' && typeof wp.blocks !== 'undefined';
470
+ }
471
+
472
+ // Save post edit gutenberg
473
+ if (isGutenbergActive()) {
474
+ wp.data.subscribe(function () {
475
+ var isSavingPost = wp.data.select('core/editor').isSavingPost();
476
+ var isAutosavingPost = wp.data.select('core/editor').isAutosavingPost();
477
+
478
+ if (isSavingPost && !isAutosavingPost) {
479
+ wpms_filter_search_keywords();
480
+ }
481
+ });
482
+ }
483
+
484
+ // Enter action
485
+ $(document).on("keypress","#wpms-search-input-csl", function (e) {
486
+ if(e.which === 13){
487
+ e.preventDefault();
488
+ wpms_filter_search_keywords();
489
+ }
490
  });
491
 
492
+ // Sort table
493
+ jQuery('#gsc_keywords_table label.gsc-sort-by').on('click', function() {
494
+ jQuery('#gsc_keywords_table label.gsc-sort-by').not($(this)).removeClass('sorted down up');
495
+
496
+ if ($(this).hasClass('down')) {
497
+ $(this).removeClass('down').addClass('sorted up').attr('data-order', 'ascending');
498
  } else {
499
+ $(this).removeClass('up').addClass('sorted down').attr('data-order', 'descending');
 
500
  }
501
 
502
+ var page = jQuery('#gsc_keywords_table tfoot').data('page');
503
+ if (typeof page === 'undefined') {
504
+ page = 2;
505
+ }
506
+ wpms_filter_search_keywords_more(parseInt(page) - 1, 1);
507
+ });
508
+
509
+
510
+ jQuery('#gsc_keywords_table tfoot').click(function () {
511
+ var page = $(this).data('page');
512
+ wpms_filter_search_keywords_more(page, 2);
513
  });
514
 
515
+ function wpms_filter_search_keywords_more(page, type) {
516
+ if (typeof page === 'undefined') {
517
+ page = 1;
518
+ }
519
+ var $this = jQuery('#gsc_keywords_table tfoot');
520
+ var time = $('select[name="gsc_keywords_time_filter_select"] option:selected').val();
521
+ var keycsl = jQuery('input.wpms-search-key-csl').val().trim().toLocaleString();
522
+ var searchType = $('select[name="filter_type_name"] option:selected').val();
523
  var postId = $('#post_ID').val();
524
+ var showitems = [];
525
+ jQuery('input[name="filter-row-name"]:checked').each(function () {
526
+ showitems.push(this.value);
527
+ });
528
+
529
+ var sorteditem = jQuery("#gsc_keywords_table label.sorted");
530
+ var dataSort = '';
531
+ if (sorteditem.length > 0) {
532
+ dataSort = JSON.stringify([sorteditem.attr('data-sort'), sorteditem.attr('data-order')]);
533
+ }
534
+ var loadder = '<tr><td colspan="6" class="td-page-loader"><img class="page-loader-loadmore" src="'+wpmseoMetaboxL10n.image_loader+'"></td></tr>';
535
+ if (type === 1) {
536
+ // Sort loader
537
+ $('tbody#the-list').html(loadder);
538
+ } else {
539
+ $('tbody#the-list').append(loadder);
540
+ }
541
  jQuery.ajax({
542
  url: ajaxurl,
543
  method: 'POST',
544
  dataType: 'json',
545
  data: {
546
  action: 'wpms_filter_search_keywords',
547
+ time : time,
 
548
  postId: postId,
549
  page:page,
550
+ showitems : showitems,
551
+ keycsl : keycsl,
552
+ searchType : searchType,
553
+ dataSort : dataSort,
554
  wpms_nonce: wpms_localize.wpms_nonce
555
  },
556
  success: function (res) {
558
  $this.data('page',res.page);
559
  $('.wpms_list_gsc_keywords tr').remove();
560
  $('.wpms_list_gsc_keywords').append(res.html);
561
+ } else {
562
+ $('.wpms_list_gsc_keywords').html('<tr><td colspan="6">'+wpmseoMetaboxL10n.keyword_filter_return+'</td></tr>');
563
  }
564
  }
565
  });
566
+ }
567
 
568
  // Set time out because of tinymce is initialized later then this is done
569
  setTimeout(
640
  $(document).on("keypress",".editor-post-permalink-editor__edit", function (e) {
641
  if(e.which === 13){
642
  var slug = $(this).val();
 
643
  url = wpmseoMetaboxL10n.wpmseo_permalink_template.replace('%postname%', slug).replace('http://', '');
644
  $('#wpmseosnippet').find('.url').html(url);
645
  }
inc/class.metaseo-admin.php CHANGED
@@ -2854,15 +2854,19 @@ class MetaSeoAdmin
2854
  null
2855
  );
2856
 
2857
- $submenu_pages[] = array(
2858
- 'metaseo_dashboard',
2859
- esc_html__('Search Console', 'wp-meta-seo'),
2860
- esc_html__('Search Console', 'wp-meta-seo'),
2861
- $manage_options_cap,
2862
- 'metaseo_console',
2863
- array($metaseo_addon->admin_features['metaseo_gsc'], 'display'),
2864
- null
2865
- );
 
 
 
 
2866
  }
2867
 
2868
  $submenu_pages[] = array(
@@ -3327,6 +3331,8 @@ class MetaSeoAdmin
3327
  $countrys = apply_filters('wpms_get_countryList', array());
3328
  $local_business_html = apply_filters('wpmsaddon_local_business', '', $local_business, $countrys);
3329
 
 
 
3330
  $default_settings = wpmsGetDefaultSettings();
3331
  $settings = get_option('_metaseo_settings');
3332
  if (is_array($settings)) {
2854
  null
2855
  );
2856
 
2857
+ // REMOVE SEARCH CONSOLE TAB, WAIT NEW API FROM GOOGLE GUYS
2858
+ //
2859
+ //
2860
+ //
2861
+ // $submenu_pages[] = array(
2862
+ // 'metaseo_dashboard',
2863
+ // esc_html__('Search Console', 'wp-meta-seo'),
2864
+ // esc_html__('Search Console', 'wp-meta-seo'),
2865
+ // $manage_options_cap,
2866
+ // 'metaseo_console',
2867
+ // array($metaseo_addon->admin_features['metaseo_gsc'], 'display'),
2868
+ // null
2869
+ // );
2870
  }
2871
 
2872
  $submenu_pages[] = array(
3331
  $countrys = apply_filters('wpms_get_countryList', array());
3332
  $local_business_html = apply_filters('wpmsaddon_local_business', '', $local_business, $countrys);
3333
 
3334
+ $search_console_html = apply_filters('wpmsaddon_search_console', '');
3335
+
3336
  $default_settings = wpmsGetDefaultSettings();
3337
  $settings = get_option('_metaseo_settings');
3338
  if (is_array($settings)) {
inc/class.metaseo-metabox.php CHANGED
@@ -398,7 +398,9 @@ class WPMSEOMetabox extends WPMSEOMeta
398
  'wpmseo_keyword_suggest_nonce' => wp_create_nonce('wpmseo-get-suggest'),
399
  'wpmseo_replace_vars_nonce' => wp_create_nonce('wpmseo-replace-vars'),
400
  'no_parent_text' => esc_html__('(no parent)', 'wp-meta-seo'),
401
- 'show_keywords' => 0
 
 
402
  );
403
  $settings = get_option('_metaseo_settings');
404
  if (isset($settings['metaseo_showkeywords']) && (int) $settings['metaseo_showkeywords'] === 1) {
398
  'wpmseo_keyword_suggest_nonce' => wp_create_nonce('wpmseo-get-suggest'),
399
  'wpmseo_replace_vars_nonce' => wp_create_nonce('wpmseo-replace-vars'),
400
  'no_parent_text' => esc_html__('(no parent)', 'wp-meta-seo'),
401
+ 'show_keywords' => 0,
402
+ 'image_loader' => esc_url(WPMETASEO_PLUGIN_URL . '/assets/images/ajax-loader1.gif'),
403
+ 'keyword_filter_return' => esc_html__('No search queries are currently indexed in the search console... Try typing custom keywords.', 'wp-meta-seo')
404
  );
405
  $settings = get_option('_metaseo_settings');
406
  if (isset($settings['metaseo_showkeywords']) && (int) $settings['metaseo_showkeywords'] === 1) {
inc/install-wizard/content/viewEvironment.php CHANGED
@@ -40,7 +40,7 @@ defined('ABSPATH') || die('No direct script access allowed!');
40
  <p class="description text_left">
41
  <?php esc_html_e('Your PHP version is ', 'wp-meta-seo'); ?>
42
  <?php echo esc_html(PHP_VERSION) ?>
43
- <?php esc_html_e('. For performance and security reasons it better to run PHP 7.2+. Comparing to previous versions the execution time of PHP 7.X is more than twice as fast and has 30 percent lower memory consumption', 'wp-meta-seo'); ?>
44
  </p>
45
  <?php else : ?>
46
  <p class="description">
40
  <p class="description text_left">
41
  <?php esc_html_e('Your PHP version is ', 'wp-meta-seo'); ?>
42
  <?php echo esc_html(PHP_VERSION) ?>
43
+ <?php esc_html_e('. For performance and security reasons it better to run PHP 7.3+. Comparing to previous versions the execution time of PHP 7.X is more than twice as fast and has 30 percent lower memory consumption', 'wp-meta-seo'); ?>
44
  </p>
45
  <?php else : ?>
46
  <p class="description">
inc/pages/settings.php CHANGED
@@ -26,6 +26,14 @@ $tabs_data[] = array(
26
  'icon' => 'directions'
27
  );
28
 
 
 
 
 
 
 
 
 
29
  $tabs_data[] = array(
30
  'id' => 'breadcrumb',
31
  'title' => __('Breadcrumb', 'wp-meta-seo'),
26
  'icon' => 'directions'
27
  );
28
 
29
+ if (is_plugin_active(WPMSEO_ADDON_FILENAME)) {
30
+ $tabs_data[] = array(
31
+ 'id' => 'search_console',
32
+ 'title' => __('Search Console', 'wp-meta-seo'),
33
+ 'icon' => 'extension'
34
+ );
35
+ }
36
+
37
  $tabs_data[] = array(
38
  'id' => 'breadcrumb',
39
  'title' => __('Breadcrumb', 'wp-meta-seo'),
inc/pages/settings/search_console.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Prohibit direct script loading */
3
+ defined('ABSPATH') || die('No direct script access allowed!');
4
+ if (is_plugin_active(WPMSEO_ADDON_FILENAME)) {
5
+ // phpcs:ignore WordPress.Security.EscapeOutput -- Content escaped in 'wp-meta-seo-addon/inc/page/local_business.php' file
6
+ echo $search_console_html;
7
+ }
inc/pages/settings/system_check.php CHANGED
@@ -38,7 +38,7 @@ defined('ABSPATH') || die('No direct script access allowed!');
38
  <p class="ju-description text_left p_warning">
39
  <?php esc_html_e('Your PHP version is ', 'wp-meta-seo'); ?>
40
  <?php echo esc_html(PHP_VERSION) ?>
41
- <?php esc_html_e('. For performance and security reasons it better to run PHP 7.2+. Comparing to previous versions the execution time of PHP 7.X is more than twice as fast and has 30 percent lower memory consumption', 'wp-meta-seo'); ?>
42
  </p>
43
  <?php else : ?>
44
  <p class="ju-description text_center">
38
  <p class="ju-description text_left p_warning">
39
  <?php esc_html_e('Your PHP version is ', 'wp-meta-seo'); ?>
40
  <?php echo esc_html(PHP_VERSION) ?>
41
+ <?php esc_html_e('. For performance and security reasons it better to run PHP 7.3+. Comparing to previous versions the execution time of PHP 7.X is more than twice as fast and has 30 percent lower memory consumption', 'wp-meta-seo'); ?>
42
  </p>
43
  <?php else : ?>
44
  <p class="ju-description text_center">
languages/wp-meta-seo-en_US.mo CHANGED
Binary file
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: JoomUnited
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.0
5
- Tested up to: 5.2.3
6
- Stable tag: 4.0.11
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -258,6 +258,9 @@ Yes WP Meta SEO is compatible with Gutenberg editor since 3.7 version.
258
 
259
  == Changelog ==
260
 
 
 
 
261
  = 4.0.11 =
262
  * Fix : Material fonts missing
263
 
2
  Contributors: JoomUnited
3
  Tags: google, webmaster tools, keywords, meta, meta description, meta keywords, meta title, robots meta, search engine optimization, seo, wordpress seo, yahoo, image optimization, image resize, custom post seo, redirect, redirection, 301, broken link
4
  Requires at least: 4.0
5
+ Tested up to: 5.2.4
6
+ Stable tag: 4.0.12
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
258
 
259
  == Changelog ==
260
 
261
+ = 4.0.12 =
262
+ * Add : Compatibility with Google Search Console integration
263
+
264
  = 4.0.11 =
265
  * Fix : Material fonts missing
266
 
wp-meta-seo.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
- * Version: 4.0.11
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
@@ -132,7 +132,7 @@ if (!defined('WPMSEO_VERSION')) {
132
  /**
133
  * Plugin version
134
  */
135
- define('WPMSEO_VERSION', '4.0.11');
136
  }
137
 
138
  if (!defined('WPMS_CLIENTID')) {
4
  * Plugin Name: WP Meta SEO
5
  * Plugin URI: http://www.joomunited.com/wordpress-products/wp-meta-seo
6
  * Description: WP Meta SEO is a plugin for WordPress to fill meta for content, images and main SEO info in a single view.
7
+ * Version: 4.0.12
8
  * Text Domain: wp-meta-seo
9
  * Domain Path: /languages
10
  * Author: JoomUnited
132
  /**
133
  * Plugin version
134
  */
135
+ define('WPMSEO_VERSION', '4.0.12');
136
  }
137
 
138
  if (!defined('WPMS_CLIENTID')) {