Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9449711
[debug] [cron] Added Site URL, Added Cron Table, Separated tables in …
DanieleAlessandra Mar 15, 2024
1d52af2
[debug] Added Add-ons table
DanieleAlessandra Mar 22, 2024
11a4d13
[wordpress-compliance] Fix the loading/enqueueing of JS scripts in WP…
bahiirwa Mar 27, 2024
9acc3ad
[api-connectivity] Ensure that the API connectivity state is updated …
fajardoleo Mar 27, 2024
c5d6acb
[fix] [hidden-plans] [notices] Added `is_hidden` property to `FS_Plug…
DanieleAlessandra Mar 27, 2024
93e4db2
[version] [pre-release] 2.6.2.3
swashata Mar 27, 2024
23a7e73
[build] [translation] Fix translation build error.
swashata Jan 30, 2024
46af7d1
[build] [js] [scss] Add uniform build steps for SASS and JS.
swashata Jan 31, 2024
3e7ab36
[ci] [doc] Add translation and build checking in the CI + Add methods…
swashata Jan 31, 2024
c91a6aa
[export] [git] Add irrelevant files to the export-ignore.
swashata Jan 31, 2024
43510ee
[dep] [node-fetch] Remove node-fetch since it is already present in c…
swashata Jan 31, 2024
3ecbea7
[readme] [update] Add link to the contributing file.
swashata Mar 6, 2024
0f6b0f1
[translation] [update] Add informative log and a manual confirmation …
swashata Mar 31, 2024
3f436e5
[account] [addon] [license] [php-8.1] Fixed an issue with the expirat…
fajardoleo Mar 28, 2023
ad1ce45
[license] [php-8.1] Also fixed an issue with the logic that checks, u…
fajardoleo Apr 4, 2023
13bbba6
[php82] Suppress dynamic properties missing warning for PHP versions …
bahiirwa Mar 31, 2024
44e5e1c
[garbage-collector] Fixed an issue related to modified slugs.
fajardoleo Mar 14, 2024
00b596f
[translation] [build] [update] Add all available languages to the bui…
swashata Mar 31, 2024
7e3b11e
[version] [compile] [languages] Version 2.7.0
swashata Mar 31, 2024
0864963
[license] [sticky] [renewal] Remove sticky message when license is ma…
DanieleAlessandra Mar 27, 2024
bc644c2
[updates-check] [api] [cache] Improved the updates check API response…
fajardoleo Mar 28, 2024
5a1aa07
[i18n] Update the strings for case sensitivity. Remove lines spacings…
bahiirwa Apr 9, 2024
f32be34
[subscription-cancellation] [button-text] [l10n] Use proper localizat…
swashata Apr 21, 2024
9dafc31
[version] [pre-release] 2.7.0.2
swashata Apr 21, 2024
28514bc
[version] [compile] [i18n] Version 2.7.1
swashata Apr 22, 2024
1228545
Hotfix
DanieleAlessandra Apr 24, 2024
50108d8
[version] Version 2.7.2
DanieleAlessandra Apr 24, 2024
94bad37
Merge pull request #709 from Freemius/hotfix/bug-707
swashata Apr 24, 2024
689fd56
[deactivation] [ui] [fix] Fix UI glitch in the deactivation feedback …
swashata May 9, 2024
679bc3b
[cleanup] [version] Delete old commented out code and prepare v2.7.3.
swashata Jun 30, 2024
c23bd6b
[compile] Version 2.7.3
swashata Jun 30, 2024
a441b57
[opt-in] Fixed an issue with the opt-in moderation and API connectivi…
fajardoleo May 22, 2024
9d01cf5
[localhost-url] Updated the supported localhost site URLs (added supp…
fajardoleo Jun 17, 2024
5feee60
Merge pull request #717 from Freemius/feature/supported-localhost-url…
fajardoleo Jul 2, 2024
59cf95d
[plugin-information-dialog] [updates] Updated the update mechanism to…
fajardoleo Jul 18, 2024
729f854
[plugin-information-dialog] Try to fetch data from WP only when the p…
fajardoleo Jul 17, 2024
a7927c4
[plan-entity] Added missing FS_Plugin_Plan property declarations to p…
fajardoleo Jun 26, 2024
557b0f9
[cleanup] Remove unused mixins from the codebase. The autoprefixer in…
bahiirwa Apr 10, 2024
c0c2270
[scss] [update] [cleanup] Some mixing related cleanup, no style changes.
swashata Jul 22, 2024
e237c2d
[security] Add missing index.php for direct downloads from GitHub.
bahiirwa Apr 15, 2024
1567a03
[debug] [logging] Automatically turn off `fs_debug_mode`after 24 hour…
DanieleAlessandra Jul 22, 2024
de76663
[filters] [pricing-url] Updated the pricing_url filter so that it als…
fajardoleo Jul 17, 2024
9ab6c3a
[debug] [cron] Added Site URL, Added Cron Table, Separated tables in …
DanieleAlessandra Mar 15, 2024
d3f6a0d
[debug] Added Add-ons table
DanieleAlessandra Mar 22, 2024
4f7f3a6
Merge branch 'feature/enrich-debug-page-with-site-url-and-cron' of gi…
DanieleAlessandra Jul 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generate from here: https://app.transifex.com/user/settings/api/
TRANSIFEX_API="..."
TRANSIFEX_ORGANIZATION=freemius
TRANSIFEX_PROJECT=sdk-testing
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phpcs.xml export-ignore
phpcompat.xml export-ignore
phpstan.neon export-ignore
.editorconfig export-ignore
/assets/scripts/ export-ignore
/patches/ export-ignore
/gulptasks/ export-ignore
.example.env export-ignore
CONTRIBUTING.md export-ignore
package-lock.json export-ignore

# Declare files that will always have CRLF line endings on checkout.
#*.php text eol=crlf
Expand Down
35 changes: 31 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Run CI tests via Github.
name: PHPCS and Static Analysis.
name: Static Analysis and Build

on:
pull_request:
Expand All @@ -8,9 +8,9 @@ on:
- master

jobs:
run:
staticAnalysis:
runs-on: ubuntu-latest
name: PHPCS
name: PHP Static Analysis
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -43,4 +43,31 @@ jobs:
run: composer phpstan

- name: Run PHPCS
run: composer phpcs:ci
run: composer phpcs:ci

canBuild:
runs-on: ubuntu-latest
name: Can Build

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Log debug information
run: |
node --version
npm --version

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Create POT file
run: npm run pot
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ node_modules
transifex-config.json
*.orig
npm-debug.log
package-lock.json
vendor
.DS_Store
error-phpstan.xml
error-phpcs.log
error-phpcs.log
.env
/assets/css/**/*.css.map
58 changes: 58 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Contributing to Freemius SDK for WordPress

We love to receive contributions from our community — you! There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into Freemius SDK for WordPress itself.
Please be sure to read our [contributing guide](https://freemius.com/help/documentation/wordpress-sdk/freemius-sdk-contribute/) before making a pull request.

## Setup Node.js

We make use of several Node.js packages to build and test the SDK. To install them, you need to have Node.js installed on your machine. We recommend using
[nvm](https://github.com/nvm-sh/nvm). Once you have it installed, run the following commands to install the correct version of Node.js and the dependencies:

```bash
# Make sure to use the latest LTS version of Node.js.
nvm install --lts
nvm use --lts

# Install with a frozen lockfile.
npm ci
````

Now you may check the available commands by running:

```bash
npm run
```

## Translations

We use a custom build to extract translations and generate the POT file. The prerequisites are:

- You must be a team member of Freemius.
- You must have access to our [Transifex](https://app.transifex.com/freemius/wordpress-sdk/dashboard/) project.
- You have set the `.env` file in the project with the needed variables. Check the `.env.example` file for reference.

Now, you can run the following commands:


```bash
# Run the script to extract translations and generate the POT file.
npm run translate
```

## Development and Build

To compile SASS and JS during development, run

```bash
npm run dev
```

This will watch for changes and compile changed files. The system is also hooked with
live-reload, so you don't need to refresh the page to see the changes. Simply install the
[LiveReload browser extension](https://chromewebstore.google.com/detail/livereload++/ciehpookapcdlakedibajeccomagbfab) and enable it.

To build the SDK for production, run

```bash
npm run build
```
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,7 @@ The free version is the one that you should give your users to download. Therefo
Copyright (c) Freemius®, Inc.

Licensed under the GNU general public license (version 3).

## Contributing

Please see our [contributing guide](CONTRIBUTING.md).
2 changes: 1 addition & 1 deletion assets/css/admin/account.css
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion assets/css/admin/account.css.map

This file was deleted.

Loading