Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add private sites module #10333

Merged
merged 90 commits into from
May 27, 2019
Merged

Add private sites module #10333

merged 90 commits into from
May 27, 2019

Commits on May 24, 2019

  1. add private sites module

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    c782642 View commit details
    Browse the repository at this point in the history
  2. remove unneccessary code

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    7230928 View commit details
    Browse the repository at this point in the history
  3. fix linting issues

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    e14410e View commit details
    Browse the repository at this point in the history
  4. move fuctions to a class

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    b35b7a9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    100cf0f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7da8a69 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8530238 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d7516b4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    680e1cb View commit details
    Browse the repository at this point in the history
  10. fixes based on feedback

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    398af3a View commit details
    Browse the repository at this point in the history
  11. changes based on feedback

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    3967891 View commit details
    Browse the repository at this point in the history
  12. copy update

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    5841302 View commit details
    Browse the repository at this point in the history
  13. hide visibility settings

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    9235b44 View commit details
    Browse the repository at this point in the history
  14. copy update

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    7290403 View commit details
    Browse the repository at this point in the history
  15. remove extra text

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    9096358 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e346397 View commit details
    Browse the repository at this point in the history
  17. Update wording

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    b37e6fd View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e84985f View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    c529cf1 View commit details
    Browse the repository at this point in the history
  20. update release number

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    286c678 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    85abde5 View commit details
    Browse the repository at this point in the history
  22. remove unused variable

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    e089302 View commit details
    Browse the repository at this point in the history
  23. rebsase from master

    scruffian authored and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    464aefd View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    079ba48 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    2337047 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    c764e55 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    e861d94 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4af2421 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    9875776 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    528a040 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    3365cba View commit details
    Browse the repository at this point in the history
  32. Move blog_public update_option out of init

    Instead of updating blog_public option in init, we now update it when the private module is activated.
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    882966c View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    4c0749d View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    e22f1d4 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    a61df9a View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    b742d35 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    436b0b8 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    79d7993 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    75779c3 View commit details
    Browse the repository at this point in the history
  40. 1. Remove blog_public modifications 2. Hide sitemap for private sites…

    … 3. Rename Protected to Private
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    52247c6 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    ab0e1aa View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    cd282dd View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    3975e10 View commit details
    Browse the repository at this point in the history
  44. Removed the jetpack_get_available_modules filter since it doesn't sav…

    …e state for disabled modules; instead we're moving to use jetpack_get_available_modules filter
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    7692d20 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    0f314de View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    93f0377 View commit details
    Browse the repository at this point in the history
  47. Remove is_super_admin() checks and instead utilize the check for read…

    … capability in is_private_blog_user()
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    708d2a9 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    236c736 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    4754c06 View commit details
    Browse the repository at this point in the history
  50. 1. Bug fix (missing parenthesis) 2. For is_private_blog_user(), remov…

    …ed function param and instead made its value the current user's value 3. Removed protected for functions that don't need them
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    d4d745d View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    671298e View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    f5a2769 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    c74c725 View commit details
    Browse the repository at this point in the history
  54. Reverted the change to printf that removes wp_kses. Reinstated wp_kse…

    …s per feedback. Also, fixed a docblock comment
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    246be87 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    af2fa54 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    4caf5f2 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    b6fb351 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    58d5579 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    1a7acb8 View commit details
    Browse the repository at this point in the history
  60. Update modules/private/class-jetpack-private.php

    Copy change.
    
    Co-Authored-By: niranjan-uma-shankar <niranjan.u@gmail.com>
    jeherve and niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    b0c6ad2 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    7e573b5 View commit details
    Browse the repository at this point in the history
  62. Fixes issue of module states not being restored

    This revision fixes the issue originally reported by @mdawaffe in #10333 (review).
    The following changes are effected: (1) update_active_modules() was incorrectly saving the filtered modules to options. This has been fixed by making the function save only the newly activated modules to options. (2) deactivate_module() was incorrectly saving the filtered modules to options. This has been fixed by not passing the modules through filters (3) We now load the private module(if it has been activated) before loading any other module. This makes the other modules respect the actions and filters defined in the private module.
    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    6193ff0 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    1fc9611 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    c75f665 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    de6a656 View commit details
    Browse the repository at this point in the history
  66. Copy change

    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    ee20819 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    d80cc20 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    95ec371 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    6cf77f7 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    161fa34 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    3bca8c1 View commit details
    Browse the repository at this point in the history
  72. Update _inc/client/security/private.jsx

    Remove the constant since we're using the value in only one place.
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    4c7ba85 View commit details
    Browse the repository at this point in the history
  73. Update _inc/client/security/private.jsx

    Remove the constant.
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    c667924 View commit details
    Browse the repository at this point in the history
  74. Update class.jetpack.php

    The entire URL is brought inside `admin_url`
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    70581ea View commit details
    Browse the repository at this point in the history
  75. Update class.jetpack.php

    Fixing docblock
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    4fcf64a View commit details
    Browse the repository at this point in the history
  76. Update modules/module-extras.php

    Moving the entire URL inside `admin_url`
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    b97c591 View commit details
    Browse the repository at this point in the history
  77. Update modules/private/class-jetpack-private.php

    Moving the entire url inside `admin_url`
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    e3825fb View commit details
    Browse the repository at this point in the history
  78. Update modules/private/class-jetpack-private.php

    Minor change in the milestone -> 7.4 to 7.4.0
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    fe72ab6 View commit details
    Browse the repository at this point in the history
  79. Update modules/private/class-jetpack-private.php

    Moving the entire url inside `admin_url`
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    b3f1680 View commit details
    Browse the repository at this point in the history
  80. Update modules/private/class-jetpack-private.php

    Moving the entire url inside `admin_url`
    
    Co-Authored-By: Jeremy Herve <jeremy@tagada.hu>
    niranjan-uma-shankar and jeherve committed May 24, 2019
    Configuration menu
    Copy the full SHA
    36bba52 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    22e6850 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    270f951 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    702f30f View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    309a031 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    65f11d3 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    820c6eb View commit details
    Browse the repository at this point in the history
  87. Rebase

    niranjan-uma-shankar committed May 24, 2019
    Configuration menu
    Copy the full SHA
    7b6a5cf View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    3e9cf40 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2019

  1. Configuration menu
    Copy the full SHA
    11bd70d View commit details
    Browse the repository at this point in the history
  2. 1. For a private site, removes the 'Search engines are discouraged' m…

    …essage from At a glance dashboard 2. Adds a line break preceeding the 'Search engines are discouraged message'
    niranjan-uma-shankar committed May 27, 2019
    Configuration menu
    Copy the full SHA
    ee9ac54 View commit details
    Browse the repository at this point in the history