Skip to content

Commit 441fc4b

Browse files
release: v1.2.2
1 parent 33bf5a8 commit 441fc4b

9 files changed

Lines changed: 145 additions & 27 deletions

File tree

blocks/generated/analyze-number-sequence/block.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
"number": {
3838
"type": "string",
3939
"default": ""
40+
},
41+
"context": {
42+
"type": "string",
43+
"default": ""
4044
}
4145
},
4246
"render": "file:./render.php"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "roxyapi",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "WordPress plugin for RoxyAPI. Astrology, tarot, numerology, horoscope, I Ching, biorhythm, and more.",
55
"license": "GPL-2.0-or-later",
66
"author": {

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: astrology, horoscope, tarot, numerology, vedic
44
Requires at least: 6.5
55
Tested up to: 6.9
66
Requires PHP: 7.4
7-
Stable tag: 1.2.1
7+
Stable tag: 1.2.2
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

roxyapi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: RoxyAPI — Astrology, Vedic, Tarot, Numerology
44
* Plugin URI: https://roxyapi.com/docs/integrations/wordpress
55
* Description: Add astrology, daily horoscopes, tarot card pulls, numerology readings, and Vedic and Western birth charts to any WordPress page. Blocks and shortcodes. Calculations cross-checked against the NASA JPL Horizons ephemeris.
6-
* Version: 1.2.1
6+
* Version: 1.2.2
77
* Requires at least: 6.5
88
* Tested up to: 6.9
99
* Requires PHP: 7.4
@@ -21,7 +21,7 @@
2121
exit;
2222
}
2323

24-
const ROXYAPI_VERSION = '1.2.1';
24+
const ROXYAPI_VERSION = '1.2.2';
2525
const ROXYAPI_UI_VERSION = '0.5.0';
2626
const ROXYAPI_PHP_MIN = '7.4.0';
2727
const ROXYAPI_PLUGIN_FILE = __FILE__;

specs/openapi.json

Lines changed: 130 additions & 19 deletions
Large diffs are not rendered by default.

src/Generated/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,11 +2886,12 @@ static function () use ( $query, $number ) {
28862886
*
28872887
* @return array|\WP_Error
28882888
*/
2889-
public static function analyzeNumberSequence( $lang = null, $number = null ) {
2889+
public static function analyzeNumberSequence( $lang = null, $number = null, $context = null ) {
28902890
$query = array_filter(
28912891
array(
28922892
'lang' => $lang,
28932893
'number' => $number,
2894+
'context' => $context,
28942895
),
28952896
static function ( $v ) {
28962897
return $v !== null && $v !== '';

src/Generated/Endpoints.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,7 @@ public static function all(): array {
23002300
'attributes' => array(
23012301
'lang' => 'en',
23022302
'number' => '1234',
2303+
'context' => 'clock',
23032304
),
23042305
),
23052306
'getDailyAngelNumber' => array(

src/Generated/Shortcodes/AnalyzeNumberSequence.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ public static function render( $atts, $content = '', $tag = '' ): string {
3333
array(
3434
'lang' => '',
3535
'number' => '',
36+
'context' => '',
3637
),
3738
is_array( $atts ) ? $atts : array(),
3839
(string) $tag
3940
);
4041

4142
wp_enqueue_style( 'roxyapi-frontend' );
4243

43-
$data = \RoxyAPI\Generated\Client::analyzeNumberSequence( $atts['lang'], $atts['number'] );
44+
$data = \RoxyAPI\Generated\Client::analyzeNumberSequence( $atts['lang'], $atts['number'], $atts['context'] );
4445

4546
if ( is_wp_error( $data ) ) {
4647
return \RoxyAPI\Support\Templates::api_error( $data );

0 commit comments

Comments
 (0)