Changeset 14014
- Timestamp:
- 09/02/2024 10:45:11 PM (2 months ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.editorconfig
r11946 r14014 21 21 trim_trailing_whitespace = false 22 22 23 [ {*.txt}]23 [*.txt] 24 24 end_of_line = crlf -
trunk/.github/workflows/unit-test-object.yml
r13859 r14014 1 name: Unit Tests - Object Cache Service1 name: Unit Tests 2 2 3 3 on: … … 12 12 jobs: 13 13 tests: 14 name: "Object Service ${{ matrix.object }} - WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }}"15 14 strategy: 16 15 fail-fast: false 17 16 matrix: 18 php: ['8.3'] 19 wp_version: ['trunk', 'latest', '6.1'] 20 multisite: [true, false] 21 object: ["false", "memcached", "redis"] 17 include: 18 - php: '8.3' 19 wp_version: 'trunk' 20 object: 'redis' 21 multisite: true 22 - php: '8.3' 23 wp_version: 'trunk' 24 object: 'memcached' 25 multisite: false 26 - php: '8.2' 27 wp_version: '6.4' 28 object: '' 29 multisite: false 30 - php: '8.2' 31 wp_version: 'latest' 32 object: '' 33 multisite: false 34 - php: '8.1' 35 wp_version: 'latest' 36 object: '' 37 multisite: false 38 - php: '7.4' 39 wp_version: '6.4' 40 object: '' 41 multisite: false 42 - php: '7.4' 43 wp_version: '6.4' 44 object: '' 45 multisite: true 22 46 uses: alleyinteractive/.github/.github/workflows/php-tests.yml@main 23 47 with: -
trunk/.github/workflows/unit-tests.yml
r13969 r14014 1 name: Unit Tests2 3 on:4 pull_request:5 paths-ignore:6 - 'docs/**'7 push:8 branches: [ master ]9 paths-ignore:10 - 'docs/**'11 12 jobs:13 tests:14 name: "WP: ${{ matrix.wp_version }} - PHP: ${{ matrix.php }}"15 runs-on: ubuntu-latest16 strategy:17 fail-fast: false18 matrix:19 php: ['7.4', '8.0', '8.1', '8.2', '8.3']20 wp_version: ['master']21 include:22 - php: '8.0'23 wp_version: 'latest'24 - php: '7.4'25 wp_version: 'latest'26 - php: '7.4'27 wp_version: '6.1'28 env:29 WP_ENV_PHP_VERSION: ${{ matrix.php }}30 WP_VERSION: ${{ matrix.wp_version }}31 32 steps:33 - name: Cancel previous runs of this workflow34 uses: styfle/cancel-workflow-action@0.12.135 with:36 access_token: ${{ github.token }}37 38 - name: Checkout repository39 uses: actions/checkout@v440 41 - name: Check Gitignored files42 run: if [[ ! -z $(git ls-files -i --exclude-standard) ]]; then exit 1; fi43 44 - name: Setup PHP45 uses: shivammathur/setup-php@v246 with:47 php-version: ${{ matrix.php }}48 extensions: gd, imagick, mysql, zip49 coverage: none50 tools: composer:v251 52 - name: Set up Node.js53 uses: actions/setup-node@v454 with:55 node-version: '>=20.10.0'56 57 - name: Log information58 run: |59 echo "$GITHUB_REF"60 echo "$GITHUB_EVENT_NAME"61 npm --version62 node --version63 git --version64 php --version65 composer --version66 67 - name: Install Composer dependencies68 uses: ramsey/composer-install@v369 70 - name: Cache node modules71 uses: actions/cache@v472 env:73 cache-name: cache-node-modules74 with:75 # npm cache files are stored in `~/.npm` on Linux/macOS76 path: ~/.npm77 key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}78 restore-keys: |79 ${{ runner.os }}-build-${{ env.cache-name }}-80 ${{ runner.os }}-build-81 ${{ runner.os }}-82 83 - name: Validate node modules84 run: if [[ -f package.json ]]; then npm audit --audit-level=high --production --cache ~/.npm; fi85 86 - name: Install node modules87 run: npm ci --cache ~/.npm88 89 - name: Setup WordPress90 run: |91 if [ ${{ env.WP_VERSION }} == 'latest' ]; then92 echo "{\"core\":null}" >> .wp-env.override.json93 else94 echo "{\"core\":\"WordPress/WordPress#${WP_VERSION}\"}" >> .wp-env.override.json95 fi96 97 - name: Install WordPress98 run: |99 chmod -R 767 ./100 npm run wp-env start -- --update101 102 - name: Running single site unit tests103 if: ${{ success() || failure() }}104 run: npm run test-php105 106 - name: Running multi site unit tests107 if: ${{ success() || failure() }}108 run: npm run test-php-multisite109 110 - name: Stop Docker environment111 if: ${{ success() || failure() }}112 run: npm run wp-env stop -
trunk/README.md
r12992 r14014 55 55 ## Credentials 56 56 57 To log in to the site, navigate to http://localhost:8888/wp-admin.57 To log in to the site, navigate to http://localhost:8888/wp-admin. 58 58 59 59 * Username: `admin` -
trunk/bp-loader.php
r13953 r14014 20 20 * Text Domain: buddypress 21 21 * Domain Path: /bp-languages/ 22 * Requires PHP: 5.623 * Requires at least: 6. 122 * Requires PHP: 7.0 23 * Requires at least: 6.4 24 24 * Version: 15.0.0-alpha 25 25 */ … … 29 29 30 30 // Assume you want to load from build 31 $bp_loader = dirname( __FILE__ ). '/build/bp-loader.php';31 $bp_loader = __DIR__ . '/build/bp-loader.php'; 32 32 33 33 // Load from source if no build exists 34 34 if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) { 35 $bp_loader = dirname( __FILE__ ). '/src/bp-loader.php';35 $bp_loader = __DIR__ . '/src/bp-loader.php'; 36 36 $bp_subdir = 'src'; 37 37 } else { … … 52 52 53 53 // Include BuddyPress 54 include( $bp_loader );54 require $bp_loader; 55 55 56 56 // Unset vars that were invoked in global scope -
trunk/composer.json
r13872 r14014 36 36 }, 37 37 "require": { 38 "php": ">= 5.6.0"38 "php": ">=7.0.0" 39 39 }, 40 40 "require-dev": { … … 50 50 "phpcbf": "@php ./vendor/bin/phpcbf . --basepath=.", 51 51 "phpcs-escape": "@php ./vendor/bin/phpcs src --extensions=php -sp --standard=BuddyPress --sniffs=WordPress.Security.EscapeOutput,WordPress.Security.SafeRedirect", 52 "phpcompat": "@php ./vendor/bin/phpcs --standard=PHPCompatibilityWP --extensions=php -sp --runtime-set testVersion 5.6- src tests",52 "phpcompat": "@php ./vendor/bin/phpcs --standard=PHPCompatibilityWP --extensions=php -sp --runtime-set testVersion 7.0- src tests", 53 53 "test:watch": [ 54 54 "Composer\\Config::disableProcessTimeout", -
trunk/phpcs.xml.dist
r13972 r14014 26 26 <arg name="severity" value="1"/> 27 27 28 <!-- Check against minimum PHP version, currently 7.0. --> 29 <config name="testVersion" value="7.0-"/> 30 31 <!-- Check against minimum WP version, currently 6.4. --> 32 <config name="minimum_wp_version" value="6.4"/> 33 28 34 <!-- What to exclude --> 29 35 <exclude-pattern>*/**/tests/</exclude-pattern> -
trunk/src/bp-loader.php
r13953 r14014 20 20 * Text Domain: buddypress 21 21 * Domain Path: /bp-languages/ 22 * Requires PHP: 5.623 * Requires at least: 6. 122 * Requires PHP: 7.0 23 * Requires at least: 6.4 24 24 * Version: 15.0.0-alpha 25 25 */ … … 34 34 35 35 // Required PHP version. 36 define( 'BP_REQUIRED_PHP_VERSION', ' 5.6.0' );36 define( 'BP_REQUIRED_PHP_VERSION', '7.0.0' ); 37 37 38 38 /** … … 77 77 return; 78 78 } else { 79 require dirname( __FILE__ ). '/class-buddypress.php';79 require __DIR__ . '/class-buddypress.php'; 80 80 81 81 /* … … 89 89 add_action( 'plugins_loaded', 'buddypress', (int) BUDDYPRESS_LATE_LOAD ); 90 90 91 // "And now here's something we hope you'll really like!".91 // "And now here's something we hope you'll really like!". 92 92 } else { 93 93 $GLOBALS['bp'] = buddypress(); -
trunk/src/readme.txt
r13963 r14014 5 5 License: GNU General Public License v2 or later 6 6 License URI: https://www.gnu.org/licenses/gpl-2.0.html 7 Requires PHP: 5.68 Requires at least: 6. 17 Requires PHP: 7.0 8 Requires at least: 6.4 9 9 Tested up to: 6.6 10 10 Stable tag: 14.0.0 … … 56 56 57 57 * PHP version 7.4 or greater. 58 * MySQL version 5.7 or greater OR MariaDB version 10.4or greater.58 * MySQL version 8.0 or greater OR MariaDB version 10.5 or greater. 59 59 * HTTPS support 60 60 … … 63 63 = Automatic installation = 64 64 65 Automatic installation is the easiest option as WordPress handles everything itself. To do an automatic install of BuddyPress, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.65 Automatic installation is the easiest option as WordPress handles everything itself. To do an automatic installation of BuddyPress, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New. 66 66 67 67 In the search field type "BuddyPress" and click Search Plugins. Once you've found it, you can view details about the latest release, such as community reviews, ratings, and description. Install BuddyPress by simply pressing "Install Now".
Note: See TracChangeset
for help on using the changeset viewer.