Skip to content

Commit 995e32f

Browse files
committed
v1.0.0
1 parent 28498f3 commit 995e32f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

WPAssets.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @link https://gitlab.com/smncd/wp-assets
2929
* @license GNU Public License v3 or later http://www.gnu.org/licenses/gpl-3.0.txt
3030
* @copyright 2022 Simon Lagerlöf
31-
* @version 0.1.0
31+
* @version 1.0.0
3232
*/
3333
class WPAssets {
3434

@@ -51,7 +51,7 @@ class WPAssets {
5151
* @return void
5252
*
5353
* @see https://developer.wordpress.org/reference/functions/wp_register_style/
54-
* @since @next
54+
* @since 1.0.0
5555
*/
5656
public static function register_style(
5757
string $handle,
@@ -78,7 +78,7 @@ public static function register_style(
7878
* @return void
7979
*
8080
* @see https://developer.wordpress.org/reference/functions/wp_register_script/
81-
* @since @next
81+
* @since 1.0.0
8282
*/
8383
public static function register_script(
8484
string $handle,
@@ -105,7 +105,7 @@ public static function register_script(
105105
* @return void
106106
*
107107
* @see https://developer.wordpress.org/reference/functions/wp_enqueue_style/
108-
* @since @next
108+
* @since 1.0.0
109109
*/
110110
public static function enqueue_style(
111111
string $handle,
@@ -137,7 +137,7 @@ function() use ( $handle, $src, $dependencies, $version, $media ) {
137137
* @return void
138138
*
139139
* @see https://developer.wordpress.org/reference/functions/wp_enqueue_script/
140-
* @since @next
140+
* @since 1.0.0
141141
*/
142142
public static function enqueue_script(
143143
string $handle,
@@ -164,7 +164,7 @@ function() use ( $handle, $src, $dependencies, $version, $in_footer ) {
164164
* @param string $src
165165
*
166166
* @see https://developer.wordpress.org/reference/hooks/enqueue_block_editor_assets/
167-
* @since @next
167+
* @since 1.0.0
168168
*/
169169
public static function enqueue_editor_style( string $handle, string $src ):void {
170170
add_action( 'enqueue_block_editor_assets', function() use ( $handle, $src ) {
@@ -182,7 +182,7 @@ public static function enqueue_editor_style( string $handle, string $src ):void
182182
* @param string $src
183183
*
184184
* @see https://developer.wordpress.org/reference/hooks/enqueue_block_editor_assets/
185-
* @since @next
185+
* @since 1.0.0
186186
*/
187187
public static function enqueue_editor_script( string $handle, string $src ):void {
188188
add_action( 'enqueue_block_editor_assets', function() use ( $handle, $src ) {
@@ -201,7 +201,7 @@ public static function enqueue_editor_script( string $handle, string $src ):void
201201
*
202202
* @return array
203203
*
204-
* @since @next
204+
* @since 1.0.0
205205
*/
206206
private static function dependencies( string $src, array|null $dependencies ):array {
207207
if (isset($dependencies) && is_array($dependencies) && isset($dependencies[0]) ) return $dependencies;
@@ -219,7 +219,7 @@ private static function dependencies( string $src, array|null $dependencies ):ar
219219
*
220220
* @return string
221221
*
222-
* @since @next
222+
* @since 1.0.0
223223
*/
224224
private static function version( string $src, string|null $version ): string {
225225
if (isset($version) && is_string($version)) return $version;
@@ -238,7 +238,7 @@ private static function version( string $src, string|null $version ): string {
238238
*
239239
* @return array
240240
*
241-
* @since @next
241+
* @since 1.0.0
242242
*/
243243
private static function script_asset( string $src ): array {
244244
if ( pathinfo( $src, PATHINFO_EXTENSION ) !== 'js' ) return [];

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "smn/wp-assets",
33
"type": "library",
44
"license": "GPL-3.0",
5+
"version": "1.0.0",
56
"authors": [
67
{
78
"name": "Simon Lagerlöf",

0 commit comments

Comments
 (0)