rebase on oct-10-2023
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* WP_Style_Engine_CSS_Rules_Store
|
||||
*
|
||||
* A store for WP_Style_Engine_CSS_Rule objects.
|
||||
* Style Engine: WP_Style_Engine_CSS_Rules_Store class
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage StyleEngine
|
||||
@@ -10,9 +8,9 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class WP_Style_Engine_CSS_Rules_Store.
|
||||
* Core class used as a store for WP_Style_Engine_CSS_Rule objects.
|
||||
*
|
||||
* Holds, sanitizes, processes and prints CSS declarations for the style engine.
|
||||
* Holds, sanitizes, processes, and prints CSS declarations for the style engine.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*/
|
||||
@@ -51,7 +49,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param string $store_name The name of the store.
|
||||
*
|
||||
* @return WP_Style_Engine_CSS_Rules_Store|void
|
||||
*/
|
||||
public static function get_store( $store_name = 'default' ) {
|
||||
@@ -81,8 +78,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* Clears all stores from static::$stores.
|
||||
*
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function remove_all_stores() {
|
||||
static::$stores = array();
|
||||
@@ -94,8 +89,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param string $name The store name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_name( $name ) {
|
||||
$this->name = $name;
|
||||
@@ -130,8 +123,8 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param string $selector The CSS selector.
|
||||
*
|
||||
* @return WP_Style_Engine_CSS_Rule|void Returns a WP_Style_Engine_CSS_Rule object, or null if the selector is empty.
|
||||
* @return WP_Style_Engine_CSS_Rule|void Returns a WP_Style_Engine_CSS_Rule object,
|
||||
* or void if the selector is empty.
|
||||
*/
|
||||
public function add_rule( $selector ) {
|
||||
$selector = trim( $selector );
|
||||
@@ -155,8 +148,6 @@ class WP_Style_Engine_CSS_Rules_Store {
|
||||
* @since 6.1.0
|
||||
*
|
||||
* @param string $selector The CSS selector.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function remove_rule( $selector ) {
|
||||
unset( $this->rules[ $selector ] );
|
||||
|
||||
Reference in New Issue
Block a user