Skip to content

Commit

Permalink
Improve inline documentation #5238 (#5239)
Browse files Browse the repository at this point in the history
* Improve inline documentation #5238

* remove more @access public #5238
  • Loading branch information
Shelob9 authored and aduth committed Feb 28, 2018
1 parent 5a0767e commit ec79a84
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/class-wp-block-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class WP_Block_Type {
* Block type key.
*
* @since 0.6.0
* @access public
* @var string
*/
public $name;
Expand All @@ -27,7 +26,6 @@ class WP_Block_Type {
* Block type render callback.
*
* @since 0.6.0
* @access public
* @var callable
*/
public $render_callback;
Expand All @@ -36,7 +34,6 @@ class WP_Block_Type {
* Block type attributes property schemas.
*
* @since 0.10.0
* @access public
* @var array
*/
public $attributes;
Expand All @@ -45,7 +42,6 @@ class WP_Block_Type {
* Block type editor script handle.
*
* @since 2.0.0
* @access public
* @var string
*/
public $editor_script;
Expand All @@ -54,7 +50,6 @@ class WP_Block_Type {
* Block type front end script handle.
*
* @since 2.0.0
* @access public
* @var string
*/
public $script;
Expand All @@ -63,7 +58,6 @@ class WP_Block_Type {
* Block type editor style handle.
*
* @since 2.0.0
* @access public
* @var string
*/
public $editor_style;
Expand All @@ -72,7 +66,6 @@ class WP_Block_Type {
* Block type front end style handle.
*
* @since 2.0.0
* @access public
* @var string
*/
public $style;
Expand All @@ -83,7 +76,6 @@ class WP_Block_Type {
* Will populate object properties from the provided arguments.
*
* @since 0.6.0
* @access public
*
* @see register_block_type()
*
Expand All @@ -101,7 +93,6 @@ public function __construct( $block_type, $args = array() ) {
* Renders the block type output for given attributes.
*
* @since 0.6.0
* @access public
*
* @param array $attributes Optional. Block attributes. Default empty array.
* @return string Rendered block type output.
Expand All @@ -120,7 +111,7 @@ public function render( $attributes = array() ) {
* Returns true if the block type is dynamic, or false otherwise. A dynamic
* block is one which defers its rendering to occur on-demand at runtime.
*
* @returns boolean Whether block type is dynamic.
* @return boolean Whether block type is dynamic.
*/
public function is_dynamic() {
return is_callable( $this->render_callback );
Expand Down Expand Up @@ -164,7 +155,6 @@ public function prepare_attributes_for_render( $attributes ) {
* Sets block type properties.
*
* @since 0.6.0
* @access public
*
* @param array|string $args Array or string of arguments for registering a block type.
*/
Expand Down

0 comments on commit ec79a84

Please sign in to comment.